Files
openclaw-config/cache/control-ui-assets/d08fd045b9cb86d13f0b4aa403c8a06ddcd32e533058ae463245169e5cff5e85/assets/control-ui-boot-wpHCbPL9.js
T

858 lines
416 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{$ as n,$n as r,C as i,Cr as a,Ei as o,Fn as s,Gn as c,Hn as l,In as u,Jn as d,Kn as f,Ln as p,Pn as m,Qn as h,Rn as ee,Sr as g,Un as te,Vn as ne,Wn as re,Xn as ie,Yn as ae,Zn as oe,_r as se,bn as _,br as ce,et as le,gr as ue,ir as de,lr as fe,nt as pe,qn as me,ur as he,vr as ge,w as _e,wn as ve,wr as ye,xr as be,yr as xe,zn as Se}from"./control-ui-foundation-CeFMP1Ly.js";import{B as Ce,I as we,J as Te,R as Ee,W as De,Z as Oe,at as v,c as ke,et as Ae,ft as je,lt as Me,ot as Ne,rt as Pe,st as Fe,u as Ie,z as Le}from"./lit-runtime-BEtFSUCp.js";import{t as Re}from"./control-ui-boot-gfE6fZcA.js";function ze(e){return typeof e==`string`&&e.trim()||null}function Be(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0?e:null}function Ve(e,t){return Be(_(_(e)?.__openclaw)?.seq)??Be(t?.messageSeq)}function He(e){let t=ze(e);return t?.endsWith(`:user`)?t.slice(0,-5)||null:t}function Ue(e,t){let n=_(e),r=ze(n?.role)?.toLowerCase();if(!n||!r)return null;let i=_(n.__openclaw),a=ze(i?.importedFrom),o=ze(i?.cliSessionId),s=ze(i?.externalId),c=ze(i?.idempotencyKey)??ze(n.idempotencyKey)??ze(t?.idempotencyKey)??ze(t?.clientRunId),l=He(c),u=He(t?.runId),d=He(i?.runId),f=ze(i?.mirrorOrigin)!==null,p=r===`assistant`&&ze(n.api)?.toLowerCase()===`cli`,m=p&&l?.startsWith(`cli-assistant:`)?ze(l.slice(14)):l,h=i&&Object.keys(i).every(e=>e===`idempotencyKey`)?m:null;return{role:r,id:ze(i?.id)??ze(t?.messageId),sequence:Ve(e,t),idempotencyKey:c,runId:r===`assistant`?d??u??(p||!f?m:null)??h:d??m??u,isImported:!!(a||o||s),externalSource:a&&o&&s?JSON.stringify([a,o,s]):null}}function We(){return(We=e((()=>{})))()}function Ge(e){return typeof e==`string`&&e.trim()||null}function Ke(e,t,n={}){let r=Ge(t.runId);if(!r||typeof t.state!=`string`||![`delta`,`final`,`error`,`aborted`].includes(t.state))return null;let i=t.message,a=ve(i)?Ge(i.stopReason):null,o=Ge(t.stopReason)??a,s=Ge(t.errorKind),c={runId:r,...i===void 0?{}:{message:i},scope:n},l=dt(e,t.state===`delta`?{type:`runDelta`,...c}:{type:`runTerminal`,...c,status:t.state===`aborted`?`aborted`:t.state===`error`?s===`timeout`?`timeout`:`error`:t.yielded===!0&&o===`end_turn`?`yielded`:o===`error`?`error`:`completed`,...o===null?{}:{stopReason:o},...s===null?{}:{errorKind:s},...typeof t.errorMessage==`string`?{errorMessage:t.errorMessage}:{}});return{projection:l,previousRun:e.runs[r],currentRun:l.runs[r]}}function qe(){return(qe=e((()=>{gt()})))()}function Je(e){let t=Ue(e);if(!t||t.role!==`user`&&t.role!==`assistant`)return!1;let n=_(_(e)?.__openclaw);return!n||Object.keys(n).every(e=>e===`idempotencyKey`)}function Ye(e,t){let n=Ue(e,t?.envelope),r=t?.live!==!0&&Je(e)?n?.runId:null,i=He(t?.pendingRunId??r);return{message:e,identity:n,live:t?.live===!0,pending:i!==null,pendingRunId:i}}function Xe(e){let t=null;return e.map(e=>{let n=Ye(e);return n.identity?.role===`user`?(t=n.pending?n.pendingRunId:null,n):t&&n.identity?.role===`assistant`&&!n.pending&&Je(e)?Ye(e,{pendingRunId:t}):(Je(e)||(t=null),n)})}function Ze(e={},t=[]){let n=Xe(t);return{scope:{...e},entries:n,messages:n.map(e=>e.message),runs:{},hasTransportGap:!1}}function Qe(e,t){return ht.every(n=>e[n]===void 0||t[n]===void 0||e[n]===t[n])}function $e(e){let t={...e.scope};for(let n of ht)e[n]!==void 0&&Object.assign(t,{[n]:e[n]});return t}function et(e,t){return!e||!t||e.role!==t.role?!1:e.isImported||t.isImported?!e.isImported||!t.isImported?!1:e.externalSource||t.externalSource?!!(e.externalSource&&e.externalSource===t.externalSource):e.sequence!==null&&t.sequence!==null&&e.sequence===t.sequence:e.id||t.id?!!(e.id&&t.id&&e.id===t.id):e.sequence!==null&&t.sequence!==null&&e.sequence===t.sequence}function tt(e,t,n=!1){if(et(e.identity,t.identity))return!0;let r=e.identity?.id?e:t.identity?.id?t:null,i=r===e?t:r===t?e:null,a=_(_(r?.message)?.__openclaw);if(r?.live&&i?.live&&r.identity?.role===`assistant`&&i.identity?.role===`assistant`&&!r.identity.isImported&&!i.identity.isImported&&!i.identity.id&&r.identity.runId&&r.identity.runId===i.identity.runId&&(ze(a?.mirrorOrigin)===null||a?.runTerminal===!0))return!0;let o=e.identity,s=t.identity,c=_(_(e.message)?.__openclaw);if(n&&t.live&&o&&s&&o.role===s.role&&!o.isImported&&!s.isImported&&o.id&&!s.id&&(o.sequence!==null&&o.sequence===s.sequence||o.role===`assistant`&&s.sequence===null&&o.runId!==null&&o.runId===s.runId&&(ze(c?.mirrorOrigin)===null||c?.runTerminal===!0)))return!0;if(e.pending&&t.pending)return!!(e.identity?.role===t.identity?.role&&e.pendingRunId&&e.pendingRunId===t.pendingRunId);let l=e.pending?e:t.pending?t:null,u=l===e?t:l===t?e:null;return!!(l&&u&&l.identity&&u.identity&&l.identity.role===u.identity.role&&!l.identity.isImported&&!u.identity.isImported&&l.pendingRunId&&l.pendingRunId===u.identity.runId&&(l.identity.sequence===null||u.identity.sequence===null||l.identity.sequence===u.identity.sequence))}function nt(e,t){return{...e,entries:t,messages:t.map(e=>e.message)}}function rt(e,t,n){let r=t.identity?.sequence,i=r==null?-1:e.findIndex(e=>{let t=e.identity?.sequence;return t!=null&&t>r});if(r!=null&&i<0&&(i=e.length),t.identity?.role===`user`&&t.identity.runId){let a=t.identity.runId,o=n?.[a]?.message,s=e=>e.identity?.role===`assistant`&&(e.identity.runId===a||e.message===o);if(r!=null){let n=[],r=[];for(let t of e.slice(0,i))(t.identity?.sequence===null&&s(t)?r:n).push(t);return[...n,t,...r,...e.slice(i)]}let c=e.findIndex(s);c>=0&&(i<0||c<i)&&(i=c)}return i<0?[...e,t]:[...e.slice(0,i),t,...e.slice(i)]}function it(e,t,n,r={}){if(!Qe(e.scope,r))return e;let i=Ye(t,{envelope:n,live:!0});if(!i.identity)return e;let a=e.entries.findIndex(e=>tt(e,i));if(a<0)return nt(e,rt(e.entries,i,e.runs));let o=e.entries[a];if(o&&o.message===t&&o.live&&!o.pending||o&&!o.pending&&o.identity?.id&&!i.identity.id)return e;if(o&&i.identity.sequence!==null&&(o.pending||o.identity?.sequence===null)){let t=i.identity.sequence;return nt(e,e.entries.some(({identity:e},n)=>e?.sequence!=null&&(n<a?e.sequence>t:e.sequence<t))?rt(e.entries.filter((e,t)=>t!==a),i,e.runs):e.entries.toSpliced(a,1,i))}return nt(e,[...e.entries.slice(0,a),i,...e.entries.slice(a+1)])}function at(e,t,n={},r={}){let i=r.shouldIncludeMessage?t.filter(r.shouldIncludeMessage):t;if(!Qe(e.scope,n))return Ze(n,i);let a=Xe(i);for(let t of e.entries)!t.live&&!t.pending||r.shouldIncludeMessage?.(t.message)===!1||a.filter(e=>tt(e,t,!0)).length===1||(a=rt(a,t,e.runs));return{...nt(e,a),scope:{...e.scope,...n},hasTransportGap:!1}}function ot(e){if(typeof e==`string`)return e.trim().length>0;let t=_(e);if(!t)return!1;let n=Array.isArray(t.content)&&t.content.some(e=>{let t=_(e);return t?t.type!==`text`||ze(t.text)!==null:typeof e==`string`&&e.trim().length>0}),r=_(t.__openclaw)?.media;return!!(typeof t.content==`string`&&t.content.trim()||n||Array.isArray(r)&&r.length>0)}function st(e){if(!ot(e))return null;let t=Ue(e);if(t?.externalSource)return`import:${t.role}:${t.externalSource}`;if(t?.id&&!t.isImported)return`id:${t.role}:${t.id}`;if(t?.sequence!==null&&t?.sequence!==void 0)return`seq:${t.role}:${t.sequence}`;let n=_(e),r=_(n?.__openclaw);try{return`content:${JSON.stringify([t?.role??`assistant`,typeof e==`string`?e:n?.content??null,r?.media??null,t?.isImported?[r?.importedFrom??null,r?.cliSessionId??null,r?.externalId??null]:null])}`}catch{return null}}function ct(e,t){let n=st(t);return!!(n&&e&&(e.acceptedFinalMessageIdentities?.includes(n)||st(e.message)===n))}function lt(e){let t=Object.entries(e);if(t.length<=pt)return e;let n=t.filter(([,e])=>e.status===`streaming`),r=t.filter(([,e])=>e.status!==`streaming`),i=Math.max(0,mt-n.length),a=i>0?r.slice(-i):[];return Object.fromEntries([...n,...a])}function ut(e,t){let n=ze(t.errorMessage),r={...t};n?r.errorMessage=n:delete r.errorMessage;let i=e.runs[t.runId];if(i&&i.status!==`streaming`){let r=st(t.message),a=t.status===`completed`||t.status===`yielded`,o=!ot(i.message)||(i.acceptedFinalMessageIdentities?.length??0)>0,s=a&&(i.status===t.status||o)&&r!==null&&!ct(i,t.message),c=s&&!ot(i.message),l=ze(i.errorMessage)===null&&n!==null;if(!s&&!l)return e;let u=st(i.message),d=i.acceptedFinalMessageIdentities??(u?[u]:[]);return{...e,runs:{...e.runs,[t.runId]:{...i,...c?{message:t.message}:{},...s&&r?{acceptedFinalMessageIdentities:[...d,r].slice(-32)}:{},...l&&n?{errorMessage:n,...t.errorKind?{errorKind:t.errorKind}:{}}:{}}}}}let a=i&&i.status===`streaming`&&t.status!==`streaming`?Object.fromEntries(Object.entries(e.runs).filter(([e])=>e!==t.runId)):e.runs,o=t.status===`completed`||t.status===`yielded`?st(t.message):null;return{...e,runs:lt({...a,[t.runId]:{...i,...r,...o?{acceptedFinalMessageIdentities:[o]}:{},...t.message===void 0&&i?.message!==void 0?{message:i.message}:{}}})}}function dt(e,t){let n=$e(t);if(t.type===`snapshotLoaded`)return Qe(e.scope,n)?at(e,t.messages,n,t.options):e;if(t.type===`sessionReset`){let{sessionKey:t,sessionId:r,agentId:i}=e.scope;return Qe({sessionKey:t,sessionId:r,agentId:i},n)?Ze({...e.scope,...n}):e}if(!Qe(e.scope,n))return e;switch(t.type){case`messagePersisted`:return it(e,t.message,t.envelope??t,n);case`sendPending`:{let n=He(t.idempotencyKey??t.runId),r=Ye(t.message,{pendingRunId:n});if(!n||!r.identity)return e;let i=e.entries.find(e=>e.message===t.message);return i&&!i.pending&&r.identity.id===null&&!r.identity.isImported&&r.identity.runId===n?nt(e,e.entries.map(e=>e===i?{...i,pending:!0,pendingRunId:n}:e)):i||e.entries.some(e=>tt(e,r))?e:nt(e,rt(e.entries,r,e.runs))}case`sendAcknowledged`:{let n=He(t.idempotencyKey??t.runId),r=He(t.previousRunId);if(!n||!r||r===n)return e;let i=!1,a=e.entries.flatMap(t=>{if(!t.pending||t.pendingRunId!==r)return[t];i=!0;let a={...t,pendingRunId:n};return e.entries.some(e=>!e.pending&&tt(a,e))?[]:[a]});return i?nt(e,a):e}case`sendFailed`:{let n=He(t.runId),r=e.entries.filter(e=>!e.pending||e.pendingRunId!==n);return r.length===e.entries.length?e:nt(e,r)}case`runDelta`:return ut(e,{runId:t.runId,status:`streaming`,...t.message===void 0?{}:{message:t.message}});case`runTerminal`:return ut(e,{runId:t.runId,status:t.status,...t.message===void 0?{}:{message:t.message},...t.stopReason===void 0?{}:{stopReason:t.stopReason},...t.errorKind===void 0?{}:{errorKind:t.errorKind},...t.errorMessage===void 0?{}:{errorMessage:t.errorMessage}});case`transportGap`:return e.hasTransportGap?e:{...e,hasTransportGap:!0};case`reconnected`:return e;default:return e}}function ft(e,t,n={}){return Ke(e,t,n)}var pt,mt,ht;function gt(){return(gt=e((()=>{We(),qe(),pt=200,mt=150,ht=[`sessionKey`,`sessionId`,`agentId`,`lifecycleRevision`,`activeLeafEntryId`]})))()}var _t;function vt(){return(vt=e((()=>{i(),_t=class{constructor(e,t,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,t.context!==void 0){let e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&=(this.unsubscribe(),void 0)}dispatchRequest(){this.host.dispatchEvent(new _e(this.context,this.host,this.t,this.subscribe))}}})))()}function yt({context:e,subscribe:t}){return(n,r)=>{typeof r==`object`?r.addInitializer((function(){new _t(this,{context:e,callback:e=>{n.set.call(this,e)},subscribe:t})})):n.constructor.addInitializer((n=>{new _t(n,{context:e,callback:e=>{n[r]=e},subscribe:t})}))}}function bt(){return(bt=e((()=>{vt()})))()}function xt(e,t=!1){return t?{h:Number(e&Tt),l:Number(e>>Et&Tt)}:{h:Number(e>>Et&Tt)|0,l:Number(e&Tt)|0}}function St(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=xt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}function Ct(e,t,n,r){let i=Dt(n),a=Ot(n);e.setUint32(t,r?a:i,r),e.setUint32(t+4,r?i:a,r)}function wt(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}var Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt;function Vt(){return(Vt=e((()=>{Tt=BigInt(2**32-1),Et=BigInt(32),Dt=e=>e/2**32|0,Ot=e=>e>>>0,kt=(e,t,n)=>e>>>n,At=(e,t,n)=>e<<32-n|t>>>n,jt=(e,t,n)=>e>>>n|t<<32-n,Mt=(e,t,n)=>e<<32-n|t>>>n,Nt=(e,t,n)=>e<<64-n|t>>>n-32,Pt=(e,t,n)=>e>>>n-32|t<<64-n,Ft=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),It=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Lt=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),Rt=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,zt=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),Bt=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0})))()}function Ht(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function Ut(e,t=``){if(typeof e!=`number`)throw TypeError(en(t)+`expected number, got `+typeof e);if(!Number.isSafeInteger(e)||e<0)throw RangeError(en(t)+`expected integer >= 0, got `+e);return e}function Wt(e,t,n=``){if(Ht(e)&&(t===void 0||e.length===t))return e;t!==void 0&&Ut(t,`length`);let r=Ht(e),i=t===void 0?``:` of length ${t}`,a=r?`length=${e.length}`:`type=${typeof e}`,o=en(n)+`expected Uint8Array`+i+`, got `+a;throw r?RangeError(o):TypeError(o)}function Gt(e){if(typeof e!=`function`||typeof e.create!=`function`)throw TypeError(`expected hash wrapped by utils.createHasher`);if(Ut(e.outputLen),Ut(e.blockLen),e.outputLen<1||e.blockLen<1)throw Error(`hash blockLen / outputLen must be >= 1`)}function Kt(e,t=!0){if(e.destroyed)throw Error(`hash was destroyed`);if(t&&e.finished)throw Error(`digest() was already called`)}function qt(e,t){Wt(e,void 0,`output`);let n=t.outputLen;if(!(e.length>=n))throw RangeError(`"output" expected length >= `+n)}function Jt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Yt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xt(e,t){return e<<32-t|e>>>t}function Zt(e){if(Wt(e),nn)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=rn[e[n]];return t}function Qt(e,t,n=`opts`){return tn(e,`defaults`),t!==void 0&&tn(t,n),Object.assign(e,t)}function $t(e,t={}){if(typeof e!=`function`)throw TypeError(`"hashCons" expected function, got type=`+typeof e);t=Qt({},t,`info`);let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}var en,tn,nn,rn,an;function on(){return(on=e((()=>{en=e=>e?`"${e}" `:``,tn=(e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError((t===`object`?``:`"${t}" `)+`expected object, got type=`+typeof e)},nn=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,rn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`)),an=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})})))()}function sn(e,t,n){return e&t^~e&n}function cn(e,t,n){return e&t^e&n^t&n}var ln,un,dn,fn,pn;function mn(){return(mn=e((()=>{Vt(),on(),ln=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=Yt(this.buffer)}update(e){Kt(this),Wt(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length,a=!1;for(let o=0;o<i;){let s=Math.min(r-this.pos,i-o);if(s===r){let t=Yt(e);for(;r<=i-o;o+=r)this.process(t,o);a=!0;continue}n.set(o===0&&s===i?e:e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===r&&(this.process(t,0),this.pos=0,a=!0)}return this.length+=e.length,a&&this.roundClean(),this}digestInto(e){Kt(this),qt(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,t.fill(0,a),this.padOffset>r-a&&(this.process(n,0),t.fill(0)),Ct(n,r-8,this.length*8,i),this.process(n,0),this.roundClean();let o=e===t?n:Yt(e),s=this.outputLen,c=s/4,l=this.get();if(s%4||c>l.length)throw Error(`invalid outputLen`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneIntoMeta(e){let{buffer:t,length:n,finished:r,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=r,e.length=n,e.pos=a,a&&e.buffer.set(t),e}clone(){return this._cloneInto()}},un=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),dn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),fn=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),pn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])})))()}var hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln;function Rn(){return(Rn=e((()=>{mn(),Vt(),on(),hn=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),gn=new Uint32Array(64),_n=class extends ln{A=0;B=0;C=0;D=0;E=0;F=0;G=0;H=0;constructor(e,t){super(64,e,8,!1),this.A=t[0]|0,this.B=t[1]|0,this.C=t[2]|0,this.D=t[3]|0,this.E=t[4]|0,this.F=t[5]|0,this.G=t[6]|0,this.H=t[7]|0}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let n=0;n<16;n++,t+=4)gn[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=gn[e-15],n=gn[e-2],r=Xt(t,7)^Xt(t,18)^t>>>3,i=Xt(n,17)^Xt(n,19)^n>>>10;gn[e]=i+gn[e-7]+r+gn[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=Xt(o,6)^Xt(o,11)^Xt(o,25),u=l+t+sn(o,s,c)+hn[e]+gn[e]|0,d=(Xt(n,2)^Xt(n,13)^Xt(n,22))+cn(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){Jt(gn)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Jt(this.buffer)}},vn=class extends _n{constructor(){super(32,un)}},yn=class extends _n{constructor(){super(28,dn)}},bn=St(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map(e=>BigInt(e))),xn=bn[0],Sn=bn[1],Cn=new Uint32Array(80),wn=new Uint32Array(80),Tn=class extends ln{Ah=0;Al=0;Bh=0;Bl=0;Ch=0;Cl=0;Dh=0;Dl=0;Eh=0;El=0;Fh=0;Fl=0;Gh=0;Gl=0;Hh=0;Hl=0;constructor(e,t){super(128,e,16,!1),this.Ah=t[0]|0,this.Al=t[1]|0,this.Bh=t[2]|0,this.Bl=t[3]|0,this.Ch=t[4]|0,this.Cl=t[5]|0,this.Dh=t[6]|0,this.Dl=t[7]|0,this.Eh=t[8]|0,this.El=t[9]|0,this.Fh=t[10]|0,this.Fl=t[11]|0,this.Gh=t[12]|0,this.Gl=t[13]|0,this.Hh=t[14]|0,this.Hl=t[15]|0}get(){let{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:p,Hh:m,Hl:h}=this;return[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h]}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.Ah=e|0,this.Al=t|0,this.Bh=n|0,this.Bl=r|0,this.Ch=i|0,this.Cl=a|0,this.Dh=o|0,this.Dl=s|0,this.Eh=c|0,this.El=l|0,this.Fh=u|0,this.Fl=d|0,this.Gh=f|0,this.Gl=p|0,this.Hh=m|0,this.Hl=h|0}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let n=0;n<16;n++,t+=4)Cn[n]=e.getUint32(t),wn[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=Cn[e-15]|0,n=wn[e-15]|0,r=jt(t,n,1)^jt(t,n,8)^kt(t,n,7),i=Mt(t,n,1)^Mt(t,n,8)^At(t,n,7),a=Cn[e-2]|0,o=wn[e-2]|0,s=jt(a,o,19)^Nt(a,o,61)^kt(a,o,6),c=Mt(a,o,19)^Pt(a,o,61)^At(a,o,6),l=Lt(i,c,wn[e-7],wn[e-16]),u=Rt(l,r,s,Cn[e-7],Cn[e-16]);Cn[e]=u|0,wn[e]=l|0}let{Ah:n,Al:r,Bh:i,Bl:a,Ch:o,Cl:s,Dh:c,Dl:l,Eh:u,El:d,Fh:f,Fl:p,Gh:m,Gl:h,Hh:ee,Hl:g}=this;for(let e=0;e<80;e++){let t=jt(u,d,14)^jt(u,d,18)^Nt(u,d,41),te=Mt(u,d,14)^Mt(u,d,18)^Pt(u,d,41),ne=u&f^~u&m,re=d&p^~d&h,ie=zt(g,te,re,Sn[e],wn[e]),ae=Bt(ie,ee,t,ne,xn[e],Cn[e]),oe=ie|0,se=jt(n,r,28)^Nt(n,r,34)^Nt(n,r,39),_=Mt(n,r,28)^Pt(n,r,34)^Pt(n,r,39),ce=n&i^n&o^i&o,le=r&a^r&s^a&s;ee=m|0,g=h|0,m=f|0,h=p|0,f=u|0,p=d|0,{h:u,l:d}=wt(c|0,l|0,ae|0,oe|0),c=o|0,l=s|0,o=i|0,s=a|0,i=n|0,a=r|0;let ue=Ft(oe,_,le);n=It(ue,ae,se,ce),r=ue|0}({h:n,l:r}=wt(this.Ah|0,this.Al|0,n|0,r|0)),{h:i,l:a}=wt(this.Bh|0,this.Bl|0,i|0,a|0),{h:o,l:s}=wt(this.Ch|0,this.Cl|0,o|0,s|0),{h:c,l}=wt(this.Dh|0,this.Dl|0,c|0,l|0),{h:u,l:d}=wt(this.Eh|0,this.El|0,u|0,d|0),{h:f,l:p}=wt(this.Fh|0,this.Fl|0,f|0,p|0),{h:m,l:h}=wt(this.Gh|0,this.Gl|0,m|0,h|0),{h:ee,l:g}=wt(this.Hh|0,this.Hl|0,ee|0,g|0),this.set(n,r,i,a,o,s,c,l,u,d,f,p,m,h,ee,g)}roundClean(){Jt(Cn,wn)}destroy(){this.destroyed=!0,Jt(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},En=class extends Tn{constructor(){super(64,pn)}},Dn=class extends Tn{constructor(){super(48,fn)}},On=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),kn=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),An=class extends Tn{constructor(){super(28,On)}},jn=class extends Tn{constructor(){super(32,kn)}},Mn=$t(()=>new vn,an(1)),Nn=$t(()=>new yn,an(4)),Pn=$t(()=>new En,an(3)),Fn=$t(()=>new Dn,an(2)),In=$t(()=>new jn,an(6)),Ln=$t(()=>new An,an(5))})))()}var zn;function Bn(){return(Bn=e((()=>{zn={assign:0,create:0,clone:0,discard:0,update:0}})))()}function Vn(e,t){return zn.assign+=1,{...e,...t}}function Hn(){return(Hn=e((()=>{Bn()})))()}function Un(e,t,n){return e>=t&&e<=n}function Wn(e){return e===8205}function Gn(e){return Un(e,55296,56319)}function Kn(e){return Un(e,127462,127487)}function qn(e){return Un(e,65024,65039)}function Jn(e){return Un(e,768,879)||Un(e,6832,6911)||Un(e,7616,7679)||Un(e,65056,65071)}function Yn(e){return e>65535?2:1}function Xn(e,t){for(;t<e.length;){let n=e.codePointAt(t);if(Jn(n)||qn(n))t+=Yn(n);else break}return t}function Zn(e,t){let n=e.codePointAt(t),r=t+Yn(n);for(r=Xn(e,r);r<e.length-1&&Wn(e.codePointAt(r));){let t=e.codePointAt(r+1);r+=1+Yn(t),r=Xn(e,r)}return Kn(n)&&r<e.length&&Kn(e.codePointAt(r))&&(r+=Yn(e.codePointAt(r))),r}function Qn(e){return Gn(e)||Jn(e)||qn(e)||Wn(e)}function $n(e){let t=0,n=0;for(;n<e.length;)n=Zn(e,n),t++;return t}function er(e,t){if(t===0)return!0;let n=0,r=0;for(;r<e.length;)if(r=Zn(e,r),n++,n>=t)return!0;return!1}function tr(e,t){let n=0,r=0;for(;r<e.length;)if(r=Zn(e,r),n++,n>t)return!1;return!0}function nr(e,t){if(t===0)return!0;let n=0;for(;n<e.length;){if(Qn(e.charCodeAt(n)))return er(e,t);if(n++,n>=t)return!0}return!1}function rr(e,t){let n=0;for(;n<e.length;){if(Qn(e.charCodeAt(n)))return tr(e,t);if(n++,n>t)return!1}return!0}var ir=t({Counted:()=>kr,Entries:()=>Mr,EntriesRegExp:()=>jr,Every:()=>Tr,EveryAll:()=>Er,GraphemeCount:()=>Sr,HasPropertyKey:()=>w,IsArray:()=>y,IsBigInt:()=>ar,IsBoolean:()=>or,IsClassInstance:()=>br,IsConstructor:()=>sr,IsDeepEqual:()=>Lr,IsEqual:()=>S,IsFunction:()=>cr,IsGreaterEqualThan:()=>vr,IsGreaterThan:()=>hr,IsInteger:()=>lr,IsLessEqualThan:()=>_r,IsLessThan:()=>gr,IsMaxLength:()=>Cr,IsMinLength:()=>wr,IsMultipleOf:()=>yr,IsNull:()=>ur,IsNumber:()=>dr,IsObject:()=>b,IsObjectNotArray:()=>fr,IsString:()=>x,IsSymbol:()=>pr,IsUndefined:()=>mr,IsUnsafePropertyKey:()=>Ar,IsValueLike:()=>xr,Keys:()=>T,ShiftLeft:()=>C,Some:()=>Dr,SomeAll:()=>Or,Symbols:()=>Nr,Values:()=>Pr});function y(e){return Array.isArray(e)}function ar(e){return S(typeof e,`bigint`)}function or(e){return S(typeof e,`boolean`)}function sr(e){if(mr(e)||!cr(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function cr(e){return S(typeof e,`function`)}function lr(e){return Number.isInteger(e)}function ur(e){return S(e,null)}function dr(e){return Number.isFinite(e)}function fr(e){return b(e)&&!y(e)}function b(e){return S(typeof e,`object`)&&!ur(e)}function x(e){return S(typeof e,`string`)}function pr(e){return S(typeof e,`symbol`)}function mr(e){return S(e,void 0)}function S(e,t){return e===t}function hr(e,t){return e>t}function gr(e,t){return e<t}function _r(e,t){return e<=t}function vr(e,t){return e>=t}function yr(e,t){if(ar(e)||ar(t))return BigInt(e)%BigInt(t)===0n;if(!dr(e)||lr(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t),Math.abs(n+t))<1e-10}function br(e){if(!b(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return!ur(t)&&S(typeof t.constructor,`function`)&&!(S(t.constructor,globalThis.Object)||S(t.constructor.name,`Object`))}function xr(e){return ar(e)||or(e)||ur(e)||dr(e)||x(e)||mr(e)}function Sr(e){return $n(e)}function Cr(e,t){return rr(e,t)}function wr(e,t){return nr(e,t)}function Tr(e,t,n){for(let r=t;r<e.length;r++)if(!n(e[r],r))return!1;return!0}function Er(e,t,n){let r=!0;for(let i=t;i<e.length;i++)n(e[i],i)||(r=!1);return r}function Dr(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}function Or(e,t){let n=!1;for(let r=0;r<e.length;r++)t(e[r],r)&&(n=!0);return n}function kr(e,t){return e.reduce((e,n,r)=>t(n,r)?++e:e,0)}function C(e,t,n){return S(e.length,0)?n():t(e[0],e.slice(1))}function Ar(e){return S(e,`__proto__`)||S(e,`constructor`)||S(e,`prototype`)}function w(e,t){return Ar(t)?Object.prototype.hasOwnProperty.call(e,t):t in e}function jr(e){return T(e).map(t=>[RegExp(`^${t}$`),e[t]])}function Mr(e){return Object.entries(e)}function T(e){return Object.getOwnPropertyNames(e)}function Nr(e){return Object.getOwnPropertySymbols(e)}function Pr(e){return Object.values(e)}function Fr(e,t){if(!b(t))return!1;let n=T(e);return S(n.length,T(t).length)&&n.every(n=>Lr(e[n],t[n]))}function Ir(e,t){return y(t)&&S(e.length,t.length)&&e.every((n,r)=>Lr(e[r],t[r]))}function Lr(e,t){return y(e)?Ir(e,t):b(e)?Fr(e,t):S(e,t)}function Rr(){return(Rr=e((()=>{})))()}function zr(e){return ki.test(e)}function Br(e,t){return`(${e} && ${t})`}function Vr(e,t){return`(${e} || ${t})`}function Hr(e){return`!(${e})`}function Ur(e){return`Array.isArray(${e})`}function Wr(e){return`typeof ${e} === "bigint"`}function Gr(e){return`typeof ${e} === "boolean"`}function Kr(e){return`Number.isInteger(${e})`}function qr(e){return`${e} === null`}function Jr(e){return`Number.isFinite(${e})`}function Yr(e){return Br(Xr(e),Hr(Ur(e)))}function Xr(e){return`typeof ${e} === "object" && ${e} !== null`}function Zr(e){return`typeof ${e} === "string"`}function Qr(e){return`typeof ${e} === "symbol"`}function $r(e){return`${e} === undefined`}function ei(e){return`typeof ${e} === "function"`}function ti(e){return`Guard.IsConstructor(${e})`}function ni(e,t){return`${e} === ${t}`}function ri(e,t){return`${e} > ${t}`}function ii(e,t){return`${e} < ${t}`}function ai(e,t){return`${e} <= ${t}`}function oi(e,t){return`${e} >= ${t}`}function si(e,t){return`Guard.IsMinLength(${e}, ${t})`}function ci(e,t){return`Guard.IsMaxLength(${e}, ${t})`}function li(e,t,n,r){return S(t,`0`)?`${e}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${t}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${e}, (${n[0]}, ${n[1]}) => ${r})`}function ui(e,t,n){return`${e}.some((${t[0]}, ${t[1]}) => ${n})`}function di(e,t,n){return`((value, callback) => { let result = false; for(let index = 0; index < value.length; index++) if (callback(value[index], index)) result = true; return result })(${e}, (${t[0]}, ${t[1]}) => ${n})`}function fi(e,t,n){return`${e}.reduce((result, ${t[0]}, ${t[1]}) => (${n}) ? ++result : result, 0)`}function pi(e){return`Object.entries(${e})`}function mi(e){return`Object.getOwnPropertyNames(${e})`}function hi(e,t){return S(t,`"__proto__"`)||S(t,`"constructor"`)?`Object.prototype.hasOwnProperty.call(${e}, ${t})`:`${t} in ${e}`}function gi(e,t){return`Guard.IsDeepEqual(${e}, ${t})`}function _i(e){return`[${e.join(`, `)}]`}function vi(e,t){return`((${e.join(`, `)}) => ${t})`}function yi(e,t){return`${e}(${t.join(`, `)})`}function bi(e,t){return`new ${e}(${t.join(`, `)})`}function E(e,t){return`${e}${zr(t)?`.${t}`:`[${D(t)}]`}`}function D(e){if(!xr(e))throw Error(`Unsupported Constant`);return x(e)?JSON.stringify(e):`${e}`}function xi(e,t,n){return`(${e} ? ${t} : ${n})`}function Si(e){return`{ ${e.join(`; `)}; }`}function Ci(e,t){return`const ${e} = ${t}`}function wi(e,t){return`if(${e}) { ${t} }`}function Ti(e){return`return ${e}`}function Ei(e){return S(e.length,0)?`true`:e.reduce((e,t)=>Br(e,t))}function Di(e){return S(e.length,0)?`false`:e.reduce((e,t)=>Vr(e,t))}function Oi(e,t){return`Guard.IsMultipleOf(${e}, ${t})`}var ki;function Ai(){return(Ai=e((()=>{Rr(),ki=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u})))()}function ji(e){return e instanceof Boolean}function Mi(e){return e instanceof Number}function Ni(e){return e instanceof String}function Pi(e){return globalThis.ArrayBuffer.isView(e)}function Fi(e){return e instanceof globalThis.RegExp}function Ii(e){return e instanceof globalThis.Date}function Li(e){return e instanceof globalThis.Set}function Ri(e){return e instanceof globalThis.Map}var zi;function O(){return(O=e((()=>{Ai(),Rr(),zi=ir})))()}function Bi(e){return e}function Vi(e){return w(e,`~kind`)||w(e,`~unsafe`)}function Hi(e){let t={};for(let n of T(e)){if(Ar(n))continue;let r=Object.getOwnPropertyDescriptor(e,n);r.value=Xi(r.value),S(r.enumerable,!0)?t[n]=r.value:Object.defineProperty(t,n,r)}return t}function Ui(e){let t={};for(let n of T(e))Ar(n)||(t[n]=Xi(e[n]));for(let n of Nr(e))t[n]=Xi(e[n]);return t}function Wi(e){return br(e)?Bi(e):Vi(e)?Hi(e):Ui(e)}function Gi(e){return e.map(e=>Xi(e))}function Ki(e){return e.slice()}function qi(e){return new RegExp(e.source,e.flags)}function Ji(e){return new Map(Xi([...e.entries()]))}function Yi(e){return new Set(Xi([...e.values()]))}function Xi(e){return Pi(e)?Ki(e):Fi(e)?qi(e):Ri(e)?Ji(e):Li(e)?Yi(e):y(e)?Gi(e):b(e)?Wi(e):e}function Zi(e){return zn.clone+=1,Xi(e)}function Qi(){return(Qi=e((()=>{O(),Bn()})))()}function $i(){return ea}var ea;function ta(){return(ta=e((()=>{ea={immutableTypes:!1,maxErrors:8,maxInstantiationCount:128,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0}})))()}function na(e,t){for(let n of Object.keys(t))Object.defineProperty(e,n,{configurable:!0,writable:!0,enumerable:!1,value:t[n]});return e}function ra(e,t){return{...e,...t}}function ia(e,t,n={}){zn.create+=1;let r=$i(),i=ra(t,n),a=r.enumerableKind?ra(i,e):na(i,e);return r.immutableTypes?Object.freeze(a):a}function aa(){return(aa=e((()=>{ta(),Bn()})))()}function oa(e,t){zn.discard+=1;let n={};for(let r of T(e)){if(t.includes(r))continue;let i=Object.getOwnPropertyDescriptor(e,r);i.value=Zi(i.value),Object.defineProperty(n,r,i)}return n}function sa(){return(sa=e((()=>{O(),Bn(),Qi()})))()}function k(e,t,n){zn.update+=1;let r=$i(),i=Zi(e);for(let e of Object.keys(t))Object.defineProperty(i,e,{configurable:!0,writable:!0,enumerable:r.enumerableKind,value:t[e]});for(let e of Object.keys(n))Object.defineProperty(i,e,{configurable:!0,enumerable:!0,writable:!0,value:n[e]});return i}function ca(){return(ca=e((()=>{ta(),Bn(),Qi()})))()}function la(e,t){return b(e)&&w(e,`~kind`)&&S(e[`~kind`],t)}function ua(e){return b(e)}function A(){return(A=e((()=>{O()})))()}function da(e,t,n){return ia({"~kind":`Deferred`},{type:`deferred`,action:e,parameters:t,options:n},{})}function fa(e){return la(e,`Deferred`)}function pa(){return(pa=e((()=>{aa(),A()})))()}function ma(e){return k(e,{"~readonly":!0},{})}function ha(e,t){return k(ma(e),{},t)}function ga(e,t,n,r){return ha(q(e,t,n),r)}function _a(){return(_a=e((()=>{ca(),J()})))()}function va(e){return k(e,{"~optional":!0},{})}function ya(e,t){return k(va(e),{},t)}function ba(e,t,n,r){return ya(q(e,t,n),r)}function xa(){return(xa=e((()=>{ca(),J()})))()}function j(e,t){return ia({"~kind":`Array`},{type:`array`,items:e},t)}function Sa(e){return la(e,`Array`)}function Ca(e){return oa(e,[`~kind`,`type`,`items`])}function wa(){return(wa=e((()=>{aa(),sa(),A()})))()}function Ta(e,t,n={}){return ia({"~kind":`Constructor`},{type:`constructor`,parameters:e,instanceType:t},n)}function Ea(e){return la(e,`Constructor`)}function Da(e){return oa(e,[`~kind`,`type`,`parameters`,`instanceType`])}function Oa(){return(Oa=e((()=>{aa(),sa(),A()})))()}function ka(e,t,n={}){return ia({"~kind":`Function`},{type:`function`,parameters:e,returnType:t},n)}function Aa(e){return la(e,`Function`)}function ja(e){return oa(e,[`~kind`,`type`,`parameters`,`returnType`])}function Ma(){return(Ma=e((()=>{aa(),sa(),A()})))()}function Na(e,t){return ia({"~kind":`Ref`},{$ref:e},t)}function Pa(e){return la(e,`Ref`)}function Fa(){return(Fa=e((()=>{aa(),A()})))()}function Ia(e,t){return ia({"~kind":`Generic`},{type:`generic`,parameters:e,expression:t})}function La(e){return la(e,`Generic`)}function Ra(){return(Ra=e((()=>{aa(),A()})))()}function za(e){return ia({"~kind":`Any`},{},e)}function Ba(e){return la(e,`Any`)}function Va(){return(Va=e((()=>{aa(),A()})))()}function Ha(e){return ia({"~kind":`Never`},{not:{}},e)}function Ua(e){return la(e,`Never`)}var Wa;function Ga(){return(Ga=e((()=>{aa(),A(),Wa=`(?!)`})))()}function Ka(e,t={}){return ya(e,t)}function qa(){return(qa=e((()=>{xa()})))()}function M(e){return Ka(e)}function Ja(e){return ua(e)&&w(e,`~optional`)}function Ya(){return(Ya=e((()=>{O(),A(),qa()})))()}function Xa(e){return T(e).filter(t=>!Ja(e[t]))}function Za(e){return T(e)}function Qa(e){return Pr(e)}function $a(){return($a=e((()=>{O(),Ya()})))()}function N(e,t={}){let n=Xa(e);return ia({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function eo(e){return la(e,`Object`)}function to(e){return oa(e,[`~kind`,`type`,`properties`,`required`])}function no(){return(no=e((()=>{aa(),sa(),A(),$a()})))()}function P(e){return ia({"~kind":`Unknown`},{},e)}function ro(e){return la(e,`Unknown`)}function io(){return(io=e((()=>{aa(),A()})))()}function ao(e,t,n){return ia({"~kind":`Cyclic`},{$defs:T(e).reduce((t,n)=>({...t,[n]:k(e[n],{},{$id:n})}),{}),$ref:t},n)}function oo(e){return la(e,`Cyclic`)}function so(){return(so=e((()=>{O(),ca(),aa(),A()})))()}function co(e){return k(e,{"~unsafe":null},{})}function lo(e){return fr(e)&&w(e,`~unsafe`)&&ur(e[`~unsafe`])}function uo(){return(uo=e((()=>{O(),ca()})))()}function fo(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function po(e){return la(e,`Infer`)}function mo(){return(mo=e((()=>{A()})))()}function ho(e,t,n,r={}){return ia({"~kind":`Dependent`},{if:e,then:t,else:n},r)}function go(e){return la(e,`Dependent`)}function _o(e){return oa(e,[`~kind`,`if`,`then`,`else`])}function vo(){return(vo=e((()=>{aa(),sa(),A()})))()}function yo(e){return fr(e)}function bo(e){return T(e).filter(e=>isNaN(e)).reduce((t,n)=>[...t,e[n]],[])}function xo(){return(xo=e((()=>{O()})))()}function So(e,t){return ia({"~kind":`Enum`},{enum:yo(e)?bo(e):e},t)}function Co(e){return la(e,`Enum`)}function wo(){return(wo=e((()=>{aa(),A(),xo()})))()}function To(e,t={}){return ia({"~kind":`Intersect`},{allOf:e},t)}function Eo(e){return la(e,`Intersect`)}function Do(e){return oa(e,[`~kind`,`allOf`])}function Oo(){return(Oo=e((()=>{aa(),sa(),A()})))()}function ko(){try{return jo(`null`)(),!0}catch{return!1}}function Ao(){return mr(Mo)&&(Mo=ko()),Mo&&$i().useAcceleration}function jo(...e){return new globalThis.Function(...e)}var Mo;function No(){return(No=e((()=>{ta(),O(),Mo=void 0})))()}function Po(){throw Error(`Unreachable`)}var Fo=t({Hash:()=>ts,HashCode:()=>es});function Io(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function Lo(e){return typeof e==`number`}function Ro(e){rs^=os[e],rs=rs*is%as}function zo(e){Ro(ns.Array);for(let t of e)$o(t)}function Bo(e){Ro(ns.BigInt),cs.setBigInt64(0,e);for(let e of ls)Ro(e)}function Vo(e){Ro(ns.Boolean),Ro(+!!e)}function Ho(e){Ro(ns.Constructor),$o(e.toString())}function Uo(e){Ro(ns.Date),$o(e.getTime())}function Wo(e){Ro(ns.Function),$o(e.toString())}function Go(e){Ro(ns.Null)}function Ko(e){Ro(ns.Number),cs.setFloat64(0,e,!0);for(let e of ls)Ro(e)}function qo(e){Ro(ns.Object);for(let t of Io(e).sort())$o(t),$o(e[t])}function Jo(e){Ro(ns.RegExp),Yo(e.toString())}function Yo(e){Ro(ns.String);for(let t of us.encode(e))Ro(t)}function Xo(e){Ro(ns.Symbol),$o(e.toString())}function Zo(e){Ro(ns.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e<t.length;e++)Ro(t[e])}function Qo(e){return Ro(ns.Undefined)}function $o(e){return Pi(e)?Zo(e):Ii(e)?Uo(e):Fi(e)?Jo(e):ji(e)?Vo(e.valueOf()):Ni(e)?Yo(e.valueOf()):Mi(e)?Ko(e.valueOf()):Lo(e)?Ko(e):y(e)?zo(e):or(e)?Vo(e):ar(e)?Bo(e):sr(e)?Ho(e):ur(e)?Go(e):b(e)?qo(e):x(e)?Yo(e):pr(e)?Xo(e):mr(e)?Qo(e):cr(e)?Wo(e):Po()}function es(e){return rs=BigInt(`14695981039346656037`),$o(e),rs}function ts(e){return es(e).toString(16).padStart(16,`0`)}var ns,rs,is,as,os,ss,cs,ls,us;function ds(){return(ds=e((()=>{O(),(function(e){e[e.Array=0]=`Array`,e[e.BigInt=1]=`BigInt`,e[e.Boolean=2]=`Boolean`,e[e.Date=3]=`Date`,e[e.Constructor=4]=`Constructor`,e[e.Function=5]=`Function`,e[e.Null=6]=`Null`,e[e.Number=7]=`Number`,e[e.Object=8]=`Object`,e[e.RegExp=9]=`RegExp`,e[e.String=10]=`String`,e[e.Symbol=11]=`Symbol`,e[e.TypeArray=12]=`TypeArray`,e[e.Undefined=13]=`Undefined`})(ns||={}),rs=BigInt(`14695981039346656037`),[is,as]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],os=Array.from({length:256}).map((e,t)=>BigInt(t)),ss=new Float64Array(1),cs=new DataView(ss.buffer),ls=new Uint8Array(ss.buffer),us=new TextEncoder})))()}function fs(){return(fs=e((()=>{ds()})))()}function ps(e){switch(e.keyword){case`additionalProperties`:return`must not have additional properties`;case`anyOf`:return`must match a schema in anyOf`;case`boolean`:return`schema is false`;case`const`:return`must be equal to constant`;case`contains`:return`must contain at least 1 valid item`;case`dependencies`:return`must have properties ${e.params.dependencies.join(`, `)} when property ${e.params.property} is present`;case`dependentRequired`:return`must have properties ${e.params.dependencies.join(`, `)} when property ${e.params.property} is present`;case`enum`:return`must be equal to one of the allowed values`;case`exclusiveMaximum`:return`must be ${e.params.comparison} ${e.params.limit}`;case`exclusiveMinimum`:return`must be ${e.params.comparison} ${e.params.limit}`;case`format`:return`must match format "${e.params.format}"`;case`if`:return`must match "${e.params.failingKeyword}" schema`;case`maxItems`:return`must not have more than ${e.params.limit} items`;case`maxLength`:return`must not have more than ${e.params.limit} characters`;case`maxProperties`:return`must not have more than ${e.params.limit} properties`;case`maximum`:return`must be ${e.params.comparison} ${e.params.limit}`;case`minItems`:return`must not have fewer than ${e.params.limit} items`;case`minLength`:return`must not have fewer than ${e.params.limit} characters`;case`minProperties`:return`must not have fewer than ${e.params.limit} properties`;case`minimum`:return`must be ${e.params.comparison} ${e.params.limit}`;case`multipleOf`:return`must be multiple of ${e.params.multipleOf}`;case`not`:return`must not be valid`;case`oneOf`:return`must match exactly one schema in oneOf`;case`pattern`:return`must match pattern "${e.params.pattern}"`;case`propertyNames`:return`property names ${e.params.propertyNames.join(`, `)} are invalid`;case`required`:return`must have required properties ${e.params.requiredProperties.join(`, `)}`;case`type`:return typeof e.params.type==`string`?`must be ${e.params.type}`:`must be either ${e.params.type.join(` or `)}`;case`unevaluatedItems`:return`must not have unevaluated items`;case`unevaluatedProperties`:return`must not have unevaluated properties`;case`uniqueItems`:return`must not have duplicate items`;case`~refine`:return e.params.message;default:return`an unknown validation error occurred`}}function ms(){return hs}var hs;function gs(){return(gs=e((()=>{hs=ps})))()}function _s(){return(_s=e((()=>{fs()})))()}function vs(){return(vs=e((()=>{_s()})))()}function ys(e){return ua(e)&&w(e,`~codec`)&&b(e[`~codec`])&&w(e[`~codec`],`encode`)&&w(e[`~codec`],`decode`)}function bs(){return(bs=e((()=>{vs(),O(),A()})))()}function xs(e){return ua(e)&&w(e,`~immutable`)}function Ss(){return(Ss=e((()=>{O(),A(),Sx()})))()}function Cs(e,t={}){return ha(e,t)}function ws(){return(ws=e((()=>{_a()})))()}function Ts(e){return ua(e)&&w(e,`~readonly`)}function Es(){return(Es=e((()=>{O(),A()})))()}function Ds(e,t){return k(e,{"~refine":As(e)?[...e[`~refine`],t]:[t]},{})}function Os(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[e,t,()=>`Refine Error`]});return Ds(t,{check:n,error:r})}function ks(e){return fr(e)&&w(e,`check`)&&w(e,`error`)&&cr(e.check)&&cr(e.error)}function As(e){return ua(e)&&w(e,`~refine`)&&y(e[`~refine`])&&Tr(e[`~refine`],0,e=>ks(e))}function js(){return(js=e((()=>{ca(),O(),A()})))()}function Ms(e){return ia({"~kind":`BigInt`},{type:`bigint`},e)}function Ns(e){return la(e,`BigInt`)}var Ps;function Fs(){return(Fs=e((()=>{aa(),A(),Ps=`-?(?:0|[1-9][0-9]*)n`})))()}function F(e){return ia({"~kind":`Boolean`},{type:`boolean`},e)}function Is(e){return la(e,`Boolean`)}function Ls(){return(Ls=e((()=>{aa(),A()})))()}function I(e){return ia({"~kind":`Integer`},{type:`integer`},e)}function Rs(e){return la(e,`Integer`)}var zs;function Bs(){return(Bs=e((()=>{aa(),A(),zs=`-?(?:0|[1-9][0-9]*)`})))()}function Vs(e){return ar(e)?`bigint`:or(e)?`boolean`:dr(e)?`number`:x(e)?`string`:(()=>{throw new Js(e)})()}function L(e,t){return ia({"~kind":`Literal`},{type:Vs(e),const:e},t)}function Hs(e){return ar(e)||or(e)||dr(e)||x(e)}function Us(e){return qs(e)&&ar(e.const)}function Ws(e){return qs(e)&&or(e.const)}function Gs(e){return qs(e)&&dr(e.const)}function Ks(e){return qs(e)&&x(e.const)}function qs(e){return la(e,`Literal`)}var Js;function Ys(){return(Ys=e((()=>{aa(),O(),A(),Js=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}}})))()}function R(e){return ia({"~kind":`Null`},{type:`null`},e)}function Xs(e){return la(e,`Null`)}function Zs(){return(Zs=e((()=>{aa(),A()})))()}function z(e){return ia({"~kind":`Number`},{type:`number`},e)}function Qs(e){return la(e,`Number`)}var $s;function ec(){return(ec=e((()=>{aa(),A(),$s=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`})))()}function tc(e){return ia({"~kind":`Symbol`},{type:`symbol`},e)}function nc(e){return la(e,`Symbol`)}function rc(){return(rc=e((()=>{aa(),A()})))()}function B(e){return ia({"~kind":`String`},{type:`string`},e)}function ic(e){return la(e,`String`)}function ac(){return(ac=e((()=>{aa(),A()})))()}function V(e,t={}){return ia({"~kind":`Union`},{anyOf:e},t)}function H(e){return la(e,`Union`)}function oc(e){return oa(e,[`~kind`,`anyOf`])}function U(){return(U=e((()=>{aa(),sa(),A()})))()}function sc(e){let t=Fd(e);return S(t.length,2)?t[0]:[]}function cc(){return(cc=e((()=>{O(),Id()})))()}function lc(e){return!0}function uc(e){return C(e,(e,t)=>fc(e)?uc(t):!1,()=>!0)}function dc(e){return!S(e.length,0)&&uc(e)}function fc(e){return H(e)?dc(e.anyOf):qs(e)?lc(e.const):!1}function pc(e){return dc(e)}function mc(){return(mc=e((()=>{O(),Ys(),U()})))()}function hc(e){return ia({"~kind":`TemplateLiteral`},{type:`string`,pattern:e},{})}function gc(){return(gc=e((()=>{aa()})))()}function _c(e,t,n=[]){return C(e,(e,r)=>_c(r,t,[...n,`${e}${t}`]),()=>n)}function vc(e,t){return S(e.length,0)?[`${t}`]:_c(e,t)}function yc(e,t,n=[]){return C(t,(t,r)=>yc(e,r,[...n,...bc(e,t)]),()=>n)}function bc(e,t){return H(t)?yc(e,t.anyOf):qs(t)?vc(e,t.const):Po()}function xc(e,t){return C(t,(t,n)=>xc(bc(e,t),n),()=>e)}function Sc(e){return e.map(e=>L(e))}function Cc(e){return V(Sc(xc([],e)))}function wc(e){return S(e.length,0)?Po():S(e.length,1)&&qs(e[0])?e[0]:Cc(e)}function Tc(e){let t=sc(e);return S(t.length,0)?B():pc(t)?wc(t):hc(e)}function Ec(e){let t=Tc(e);return sf(t)?B():t}function Dc(){return(Dc=e((()=>{O(),Ys(),ac(),cf(),U(),cc(),mc(),gc()})))()}function Oc(e,t){return ia({"~kind":`Record`},{type:`object`,patternProperties:{[e]:t}})}function kc(){return(kc=e((()=>{aa()})))()}function Ac(e){return Oc(pu,e)}function jc(){return(jc=e((()=>{mu(),kc()})))()}function Mc(e){return N({true:e,false:e})}function Nc(){return(Nc=e((()=>{no()})))()}function Pc(e,t={}){let[n,r,i]=[e,e.length,!1];return ia({"~kind":`Tuple`},{type:`array`,additionalItems:i,items:n,minItems:r},t)}function Fc(e){return la(e,`Tuple`)}function Ic(e){return oa(e,[`~kind`,`type`,`items`,`minItems`,`additionalItems`])}function Lc(){return(Lc=e((()=>{aa(),sa(),A()})))()}function Rc(e){return oa(e,[`~readonly`])}function zc(e,t){return k(Rc(e),{},t)}function Bc(e,t,n,r){return zc(q(e,t,n),r)}function Vc(){return(Vc=e((()=>{sa(),ca(),J()})))()}function Hc(e,t={}){return zc(e,t)}function Uc(){return(Uc=e((()=>{Vc()})))()}function Wc(e){return oa(e,[`~optional`])}function Gc(e,t){return k(Wc(e),{},t)}function Kc(e,t,n,r){return Gc(q(e,t,n),r)}function qc(){return(qc=e((()=>{sa(),ca(),J()})))()}function Jc(e,t={}){return Gc(e,t)}function Yc(){return(Yc=e((()=>{qc()})))()}function Xc(e){return e.reduceRight((e,t,n)=>({[n]:t,...e}),{})}function Zc(e){return N(Xc(e.items))}function Qc(){return(Qc=e((()=>{no()})))()}function $c(e){return eo(e)||Fc(e)}function el(e,t){return Ts(e)?!!Ts(t):!1}function tl(e,t){return Ja(e)?!!Ja(t):!1}function nl(e,t){let n=el(e,t),r=tl(e,t),i=Hc(Jc(wl([e,t])));return n&&r?Cs(Ka(i)):n&&!r?Cs(i):!n&&r?Ka(i):i}function rl(e,t,n){return n in e?n in t?nl(e[n],t[n]):e[n]:n in t?t[n]:Ha()}function il(e,t){return[...new Set([...T(e),...T(t)])].reduce((n,r)=>({...n,[r]:rl(e,t,r)}),{})}function al(e){return eo(e)?e.properties:Fc(e)?Xc(e.items):{}}function ol(e,t){return N(il(al(e),al(t)))}function sl(){return(sl=e((()=>{O(),Es(),Ya(),no(),Ga(),Lc(),ws(),qa(),Uc(),Yc(),Qc(),W()})))()}function cl(e,t){let n=Qm(e,t);return S(n,2)?e:S(n,3)||S(n,0)?t:Ha()}function ll(e,t){let n=$c(e),r=$c(t);return n&&r?ol(e,t):n&&!r?e:!n&&r?t:cl(e,t)}function ul(e,t){return Ua(e)||Ba(e)?e:ro(e)||Ua(t)||Ba(t)?t:ro(t)?e:ll(e,t)}function dl(){return(dl=e((()=>{O(),Va(),Ga(),io(),$m(),sl()})))()}function fl(e,t){return H(e)||H(t)}function pl(e,t){let n=Dl(e),r=Dl(t);return fl(n,r)?wl([n,r]):ul(n,r)}function ml(e,t,n=[]){return C(t,(t,r)=>ml(e,r,[...n,pl(t,e)]),()=>S(n.length,0)?[e]:n)}function hl(e,t,n=[]){return C(e,(e,r)=>hl(r,t,[...n,...gl([e],t)]),()=>n)}function gl(e,t=[]){return C(e,(e,n)=>H(e)?gl(n,hl(e.anyOf,t)):gl(n,ml(e,t)),()=>t)}function _l(){return(_l=e((()=>{O(),U(),dl(),W()})))()}function vl(e,t){return mf(Ym({},e,t))?[]:[e]}function yl(e,t,n=[]){return C(e,(e,r)=>yl(r,t,[...n,...vl(e,t)]),()=>n)}function bl(e,t){let n=Dl(e);return El(yl(H(n)?n.anyOf:[n],t))}function xl(){return(xl=e((()=>{O(),U(),Zm(),W()})))()}function Sl(e,t,n){return El([wl([e,t]),bl(n,e)])}function Cl(e,t=[]){return C(e,(e,n)=>Cl(n,[...t,L(e)]),()=>El(t))}function wl(e){return El(rh(gl(e)))}function Tl(e){return Dl(Ec(e))}function El(e){return Ol(rh(e))}function Dl(e){return go(e)?Sl(e.if,e.then,e.else):Co(e)?Cl(e.enum):Eo(e)?wl(e.allOf):sf(e)?Tl(e.pattern):H(e)?El(e.anyOf):e}function Ol(e){return S(e.length,1)?e[0]:S(e.length,0)?Ha():V(e)}function W(){return(W=e((()=>{O(),vo(),wo(),Oo(),Ys(),Ga(),cf(),U(),_l(),ih(),xl(),Dc()})))()}function kl(e,t){return Ql(Cl(e),t)}function Al(){return(Al=e((()=>{$l(),W()})))()}function jl(e,t){return Oc(du,t)}function Ml(){return(Ml=e((()=>{mu(),kc()})))()}function Nl(e,t){return Ql(wl(e),t)}function Pl(){return(Pl=e((()=>{W(),$l()})))()}function Fl(e,t){return x(e)||dr(e)?N({[e]:t}):S(e,!1)?N({false:t}):S(e,!0)?N({true:t}):N({})}function Il(){return(Il=e((()=>{O(),no()})))()}function Ll(e,t){return Oc(fu,t)}function Rl(){return(Rl=e((()=>{mu(),kc()})))()}function zl(e,t){return w(e,`pattern`)&&(x(e.pattern)||e.pattern instanceof RegExp)?Oc(e.pattern.toString(),t):Oc(pu,t)}function Bl(){return(Bl=e((()=>{O(),mu(),kc()})))()}function Vl(e,t){return pc(sc(e))?Ql(Tl(e),t):Oc(e,t)}function Hl(){return(Hl=e((()=>{$l(),cc(),mc(),W(),kc()})))()}function Ul(e){return H(e)?Wl(e.anyOf):[e]}function Wl(e,t=[]){return C(e,(e,n)=>Wl(n,[...t,...Ul(e)]),()=>t)}function Gl(){return(Gl=e((()=>{O(),U()})))()}function Kl(e){return e.some(e=>ic(e)||Qs(e)||Rs(e))}function ql(e,t){return S(Kl(e),!0)?Oc(pu,t):void 0}function Jl(e,t){return e.reduce((e,n)=>qs(n)&&(x(n.const)||dr(n.const))?{...e,[n.const]:t}:e,{})}function Yl(e,t){return N(Jl(e,t))}function Xl(e,t){let n=Wl(e),r=ql(n,t);return ua(r)?r:Yl(n,t)}function Zl(){return(Zl=e((()=>{O(),A(),Ys(),ec(),Bs(),no(),ac(),mu(),Gl(),kc()})))()}function Ql(e,t){return Ba(e)?Ac(t):Is(e)?Mc(t):Co(e)?kl(e.enum,t):Rs(e)?jl(e,t):Eo(e)?Nl(e.allOf,t):qs(e)?Fl(e.const,t):Qs(e)?Ll(e,t):H(e)?Xl(e.anyOf,t):ic(e)?zl(e,t):sf(e)?Vl(e.pattern,t):N({})}function $l(){return($l=e((()=>{Va(),Ls(),wo(),Oo(),Bs(),Ys(),ec(),no(),ac(),cf(),U(),jc(),Nc(),Al(),Ml(),Pl(),Il(),Rl(),Bl(),Hl(),Zl()})))()}function eu(e,t,n){return lx([e])?k(Ql(e,t),{},n):ru(e,t,n)}function tu(e,t,n,r,i){return eu(q(e,t,n),q(e,t,r),i)}function nu(){return(nu=e((()=>{ca(),mu(),$l(),J()})))()}function ru(e,t,n={}){return da(`Record`,[e,t],n)}function iu(e,t,n={}){return eu(e,t,n)}function au(e,t){return Oc(e,t)}function ou(e){return S(e,pu)?B():S(e,du)?I():S(e,fu)?z():Tc(e)}function su(e){return T(e.patternProperties)[0]}function cu(e){return ou(su(e))}function lu(e){return e.patternProperties[su(e)]}function uu(e){return la(e,`Record`)}var du,fu,pu;function mu(){return(mu=e((()=>{O(),A(),Bs(),ec(),ac(),pa(),Dc(),kc(),nu(),du=`^${zs}$`,fu=`^${$s}$`,pu=`^.*$`})))()}function hu(e){return ia({"~kind":`Rest`},{type:`rest`,items:e},{})}function gu(e){return la(e,`Rest`)}function _u(){return(_u=e((()=>{aa(),A()})))()}function vu(e){return la(e,`This`)}function yu(){return(yu=e((()=>{A()})))()}function bu(e){return ia({"~kind":`Undefined`},{type:`undefined`},e)}function xu(e){return la(e,`Undefined`)}function Su(){return(Su=e((()=>{aa(),A()})))()}function Cu(e){return la(e,`Void`)}function wu(){return(wu=e((()=>{A()})))()}function Tu(){return(Tu=e((()=>{bs(),Ss(),Ya(),js(),Va(),wa(),Fs(),Ls(),Kh(),Oa(),so(),wo(),Ma(),Ra(),vo(),Bs(),Oo(),Ys(),Ga(),Zs(),ec(),io(),rc(),no(),mu(),Fa(),_u(),A(),ac(),cf(),Lc(),Su(),U(),wu()})))()}function Eu(e){return Ms()}function Du(e){return B()}function Ou(e){return z()}function ku(e){return I()}function Au(e){return Ha()}function ju(e){return L(e)}function Mu(e){return e}function Nu(e){return V(e[1])}function Pu(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Fu(e){return[e[0],...e[1]]}function Iu(e){return e}function Lu(e){return e[1]}function Ru(){return(Ru=e((()=>{Tu(),Dx()})))()}function zu(e){return S(e.length,2)}function Bu(e,t,n){return zu(e)?t(e[0],e[1]):n()}function Vu(){return(Vu=e((()=>{Rr()})))()}function Hu(e,t){return S(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Uu(e,t){for(let n=0;n<e.length;n++){let r=Hu(e[n],t);if(zu(r))return r}return[]}function Wu(){return(Wu=e((()=>{Vu(),Rr()})))()}function Gu(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}var Ku,qu,Ju;function Yu(){return(Yu=e((()=>{Ku=[...Gu(97,122),...Gu(65,90)],qu=Gu(49,57),Ju=[`0`,...qu]})))()}function Xu(e){let t=e.indexOf(rd);return S(t,-1)?``:e.slice(t+2)}function Zu(e){let t=e.indexOf(`
`);return S(t,-1)?``:e.slice(t)}function Qu(e){return e.replace(/^[ \t\r\f\v]+/,``)}function $u(e){let t=Qu(e);return t.startsWith(nd)?$u(Xu(t.slice(2))):t.startsWith(td)?$u(Zu(t.slice(2))):t}function ed(e){let t=e.trimStart();return t.startsWith(nd)?ed(Xu(t.slice(2))):t.startsWith(td)?ed(Zu(t.slice(2))):t}var td,nd,rd;function id(){return(id=e((()=>{Rr(),Yu(),td=`//`,nd=`/*`,rd=`*/`})))()}function ad(){return(ad=e((()=>{id(),Yu(),[...Ju]})))()}function od(){return(od=e((()=>{id(),Yu(),ad()})))()}function sd(){return(sd=e((()=>{od()})))()}function cd(e,t){return Uu([e],t)}function ld(e,t){return S(e,``)?[``,t]:e.startsWith(`
`)?cd(e,$u(t)):e.startsWith(` `)?cd(e,t):cd(e,ed(t))}function ud(){return(ud=e((()=>{Rr(),id(),Wu(),Yu()})))()}var dd;function fd(){return(fd=e((()=>{id(),Yu(),dd=[...Ku,`_`,`$`],[...dd,...Ju]})))()}function pd(){return(pd=e((()=>{id(),Yu(),ad(),[...Ju]})))()}function md(){return(md=e((()=>{id(),Yu(),pd()})))()}function hd(e){return S(e,``)?[]:[e.slice(0,1),e.slice(1)]}function gd(e,t){return C(e,(e,n)=>t.startsWith(e)?!0:gd(n,t),()=>!1)}function _d(e,t,n=``){return Bu(hd(t),(r,i)=>gd(e,t)?[n,t]:_d(e,i,`${n}${r}`),()=>[])}function vd(){return(vd=e((()=>{Vu(),Rr()})))()}function yd(){return(yd=e((()=>{id(),Yu()})))()}function bd(){return(bd=e((()=>{id(),yd()})))()}function xd(e,t){return Bu(_d(e,t),(e,t)=>S(e,``)?[]:[e,t],()=>[])}function Sd(){return(Sd=e((()=>{Rr(),Vu(),vd()})))()}function Cd(){return(Cd=e((()=>{sd(),ud(),fd(),od(),md(),yd(),bd(),ad(),pd(),Sd(),vd()})))()}var G,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd;function Id(){return(Id=e((()=>{Ru(),Cd(),G=(e,t,n=()=>[])=>e.length===2?t(e):n(),wd=e=>G(ld(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[Eu(e),t]),Td=e=>G(ld(`.*`,e),([e,t])=>[Du(e),t]),Ed=e=>G(ld(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Ou(e),t]),Dd=e=>G(ld(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[ku(e),t]),Od=e=>G(ld(`(?!)`,e),([e,t])=>[Au(e),t]),kd=e=>G(xd([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[ju(e),t]),Ad=e=>G(G(wd(e),([e,t])=>[e,t],()=>G(Td(e),([e,t])=>[e,t],()=>G(Ed(e),([e,t])=>[e,t],()=>G(Dd(e),([e,t])=>[e,t],()=>G(Od(e),([e,t])=>[e,t],()=>G(jd(e),([e,t])=>[e,t],()=>G(kd(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Mu(e),t]),jd=e=>G(G(ld(`(`,e),([e,t])=>G(Pd(t),([t,n])=>G(ld(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Nu(e),t]),Md=e=>G(G(G(Nd(e),([e,t])=>G(ld(`|`,t),([t,n])=>G(Md(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>G(G(Nd(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>G([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[Pu(e),t]),Nd=e=>G(G(Ad(e),([e,t])=>G(Pd(t),([t,n])=>[[e,t],n])),([e,t])=>[Fu(e),t]),Pd=e=>G(G(Md(e),([e,t])=>[e,t],()=>G(Nd(e),([e,t])=>[e,t],()=>[])),([e,t])=>[Iu(e),t]),Fd=e=>G(G(ld(`^`,e),([e,t])=>G(Pd(t),([t,n])=>G(ld(`$`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Lu(e),t])})))()}function Ld(){return(Ld=e((()=>{Id()})))()}function Rd(e){return e.join(`|`)}function zd(e){return e.slice(1,e.length-1)}function Bd(e,t,n){return Zd(t,`${n}${e}`)}function Vd(e,t){return Zd(e,`${t}${Ps}`)}function Hd(e,t){return Zd(e,`${t}${zs}`)}function Ud(e,t){return Zd(e,`${t}${$s}`)}function Wd(e,t){return Xd(V([L(`false`),L(`true`)]),e,t)}function Gd(e,t){return Zd(e,`${t}.*`)}function Kd(e,t,n){return Zd(t,`${n}${zd(e)}`)}function qd(e,t,n){return Xd(tf(e,{}),t,n)}function Jd(e,t,n){return Xd(Cl(e),t,n)}function Yd(e,t,n,r=[]){return C(e,(e,i)=>Yd(i,t,n,[...r,Xd(e,[],``)]),()=>Zd(t,`${n}(${Rd(r)})`))}function Xd(e,t,n){return Co(e)?Jd(e.enum,t,n):Rs(e)?Hd(t,n):qs(e)?Bd(e.const,t,n):Ns(e)?Vd(t,n):Is(e)?Wd(t,n):Qs(e)?Ud(t,n):ic(e)?Gd(t,n):sf(e)?Kd(e.pattern,t,n):of(e)?qd(e.parameters[0],t,n):H(e)?Yd(e.anyOf,t,n):Wa}function Zd(e,t){return C(e,(e,n)=>Xd(e,n,t),()=>t)}function Qd(e){return`^${Zd(e,``)}$`}function $d(e){return hc(Qd(e))}function ef(){return(ef=e((()=>{O(),wo(),Ys(),U(),cf(),Fs(),ac(),ec(),Bs(),Ls(),Ga(),gc(),W(),rf()})))()}function tf(e,t){return lx(e)?k($d(e),{},t):af(e,t)}function nf(e,t,n,r){return tf(fx(e,t,n),r)}function rf(){return(rf=e((()=>{ca(),cf(),ef(),J()})))()}function af(e,t={}){return da(`TemplateLiteral`,[e],t)}function of(e){return ua(e)&&w(e,`action`)&&S(e.action,`TemplateLiteral`)}function sf(e){return la(e,`TemplateLiteral`)}function cf(){return(cf=e((()=>{_s(),O(),A(),pa(),Ld(),rf()})))()}function lf(e){return ia({"~kind":`ExtendsUnion`},{inferred:e})}function uf(e){return b(e)&&w(e,`~kind`)&&w(e,`inferred`)&&S(e[`~kind`],`ExtendsUnion`)&&b(e.inferred)}function K(e){return ia({"~kind":`ExtendsTrue`},{inferred:e})}function df(e){return b(e)&&w(e,`~kind`)&&w(e,`inferred`)&&S(e[`~kind`],`ExtendsTrue`)&&b(e.inferred)}function ff(){return ia({"~kind":`ExtendsFalse`},{})}function pf(e){return b(e)&&w(e,`~kind`)&&S(e[`~kind`],`ExtendsFalse`)}function mf(e){return uf(e)||df(e)}function hf(e,t,n){return mf(e)?t(e.inferred):n()}function gf(){return(gf=e((()=>{O(),aa()})))()}function _f(e,t,n,r){return hf(lm(e,n,r),r=>K(Vn(Vn(e,r),{[t]:n})),()=>ff())}function vf(e,t){return K(e)}function yf(e,t,n,r,i){return hf(lm(e,t,n),e=>hf(lm(e,t,r),e=>K(e),()=>ff()),()=>hf(lm(e,t,i),e=>K(e),()=>ff()))}function bf(e,t,n){return lm(e,t,Cl(n))}function xf(e,t,n){return C(n,(n,r)=>hf(lm(e,t,n),e=>xf(e,t,r),()=>ff()),()=>K(e))}function Sf(e,t,n){return lm(e,t,Tl(n))}function Cf(e,t,n){return C(n,(n,r)=>hf(lm(e,t,n),e=>K(e),()=>Cf(e,t,r)),()=>ff())}function wf(e,t,n){return Ba(n)?vf(e,t):go(n)?yf(e,t,n.if,n.then,n.else):Co(n)?bf(e,t,n.enum):po(n)?_f(e,n.name,t,n.extends):Eo(n)?xf(e,t,n.allOf):sf(n)?Sf(e,t,n.pattern):H(n)?Cf(e,t,n.anyOf):ro(n)?K(e):ff()}function Tf(){return(Tf=e((()=>{O(),Hn(),Va(),vo(),wo(),mo(),Oo(),cf(),U(),io(),um(),gf(),W()})))()}function Ef(e,t,n){return po(n)?wf(e,t,n):Ba(n)||ro(n)?K(e):lf(e)}function Df(){return(Df=e((()=>{mo(),Va(),io(),Tf(),gf()})))()}function Of(e,t){let n=xs(e),r=xs(t);return n&&r||!n&&r?!0:!(n&&!r)}function kf(e,t,n,r){return Sa(r)?Of(t,r)?lm(e,n,r.items):ff():wf(e,t,r)}function Af(){return(Af=e((()=>{wa(),Ss(),Tf(),um(),gf()})))()}function jf(e,t,n){return Ns(n)?K(e):wf(e,t,n)}function Mf(){return(Mf=e((()=>{Fs(),Tf(),gf()})))()}function Nf(e,t,n){return Is(n)?K(e):wf(e,t,n)}function Pf(){return(Pf=e((()=>{Ls(),Tf(),gf()})))()}function Ff(e,t,n,r,i){let a=po(r)?t:r,o=po(r)?r:t,s=Ja(t),c=Ja(r);return!s&&c?ff():hf(lm(e,a,o),e=>Rf(e,n,i),()=>ff())}function If(e,t,n,r){return C(r,(r,i)=>Ff(e,t,n,r,i),()=>Ja(t)?K(e):ff())}function Lf(e,t,n){return C(t,(t,r)=>If(e,t,r,n),()=>K(e))}function Rf(e,t,n){return Lf(e,t,n)}function zf(){return(zf=e((()=>{O(),mo(),Ya(),um(),gf()})))()}function Bf(e,t,n){return Cu(n)?K(e):lm(e,t,n)}function Vf(){return(Vf=e((()=>{wu(),um(),gf()})))()}function Hf(e,t,n,r){return Ba(r)||ro(r)?K(e):Ea(r)?hf(Rf(e,t,r.parameters),e=>Bf(e,n,r.instanceType),()=>ff()):ff()}function Uf(){return(Uf=e((()=>{Va(),Oa(),io(),gf(),zf(),Vf()})))()}function Wf(e,t,n,r,i){return hf(lm(e,t,i),()=>lm(e,n,i),()=>lm(e,r,i))}function Gf(){return(Gf=e((()=>{um(),gf()})))()}function Kf(e,t,n){return lm(e,Cl(t),n)}function qf(){return(qf=e((()=>{um(),W()})))()}function Jf(e,t,n,r){return Ba(r)||ro(r)?K(e):Aa(r)?hf(Rf(e,t,r.parameters),e=>Bf(e,n,r.returnType),()=>ff()):ff()}function Yf(){return(Yf=e((()=>{Va(),Ma(),io(),gf(),zf(),Vf()})))()}function Xf(e,t,n){return Rs(n)||Qs(n)?K(e):wf(e,t,n)}function Zf(){return(Zf=e((()=>{Bs(),ec(),Tf(),gf()})))()}function Qf(e,t,n){return lm(e,wl(t),n)}function $f(){return($f=e((()=>{um(),ch()})))()}function ep(e,t,n){return t===n?K(e):ff()}function tp(e,t,n){return qs(n)?ep(e,t,n.const):Ns(n)?K(e):wf(e,L(t),n)}function np(e,t,n){return qs(n)?ep(e,t,n.const):Is(n)?K(e):wf(e,L(t),n)}function rp(e,t,n){return qs(n)?ep(e,t,n.const):Qs(n)?K(e):wf(e,L(t),n)}function ip(e,t,n){return qs(n)?ep(e,t,n.const):ic(n)?K(e):wf(e,L(t),n)}function ap(e,t,n){return ar(t.const)?tp(e,t.const,n):or(t.const)?np(e,t.const,n):dr(t.const)?rp(e,t.const,n):x(t.const)?ip(e,t.const,n):Po()}function op(){return(op=e((()=>{O(),Ys(),Fs(),Ls(),ec(),ac(),Tf(),gf()})))()}function sp(e,t,n){return po(n)?wf(e,t,n):K(e)}function cp(){return(cp=e((()=>{mo(),Tf(),gf()})))()}function lp(e,t,n){return Xs(n)?K(e):wf(e,t,n)}function up(){return(up=e((()=>{Zs(),Tf(),gf()})))()}function dp(e,t,n){return Qs(n)?K(e):wf(e,t,n)}function fp(){return(fp=e((()=>{ec(),Tf(),gf()})))()}function pp(e,t,n){return Ja(t)?Ja(n)?K(e):ff():K(e)}function mp(e,t,n){return po(n)&&Ua(n.extends)?ff():hf(lm(e,t,n),e=>pp(e,t,n),()=>ff())}function hp(e,t){return e.reduce((e,n)=>n in t&&mf(t[n])?{...e,...t[n].inferred}:Po(),{})}function gp(e,t,n){let r={};for(let i of T(n))r[i]=i in t?mp({},t[i],n[i]):Ja(n[i])?po(n[i])?K(Vn(e,{[n[i].name]:n[i].extends})):K(e):ff();let i=Pr(r).every(e=>mf(e)),a=i?hp(T(r),r):{};return i?K(a):ff()}function _p(e,t,n){let r=gp(e,t,n);return mf(r)?K(Vn(e,r.inferred)):ff()}function vp(e,t,n){return _p(e,t,n)}function yp(e,t){return T(t).reduce((n,r)=>({...n,[r]:w(e,r)?H(n[r])?V([...n[r].anyOf,t[r]]):V([e[r],t[r]]):t[r]}),e)}function bp(e,t,n,r){return C(t,(t,i)=>hf(lm({},e[t],n),t=>bp(e,i,n,yp(r,t)),()=>ff()),()=>K(r))}function xp(e,t,n,r){return bp(t,T(t),r,e)}function Sp(e,t,n){return uu(n)?xp(e,t,su(n),lu(n)):eo(n)?vp(e,t,n.properties):wf(e,N(t),n)}function Cp(){return(Cp=e((()=>{Hn(),O(),Ya(),mo(),Ga(),no(),mu(),U(),um(),Tf(),gf()})))()}function wp(e,t){return S(T(t).length,0)?K(e):ff()}function Tp(e,t,n,r,i){return lm(e,n,i)}function Ep(e,t,n,r){return uu(r)?Tp(e,ou(t),n,ou(su(r)),lu(r)):eo(r)?wp(e,r.properties):Ba(r)||ro(r)?K(e):ff()}function Dp(){return(Dp=e((()=>{O(),Va(),io(),no(),mu(),um(),gf()})))()}function Op(e,t,n){return ic(n)?K(e):wf(e,t,n)}function kp(){return(kp=e((()=>{ac(),Tf(),gf()})))()}function Ap(e,t,n){return nc(n)?K(e):wf(e,t,n)}function jp(){return(jp=e((()=>{rc(),Tf(),gf()})))()}function Mp(e,t,n){return lm(e,Tl(t),n)}function Np(){return(Np=e((()=>{um(),W()})))()}function Pp(e,t){return ia({"~kind":`Inferrable`},{name:e,type:t},{})}function Fp(e){return b(e)&&w(e,`~kind`)&&w(e,`name`)&&w(e,`type`)&&S(e[`~kind`],`Inferrable`)&&x(e.name)&&b(e.type)}function Ip(e){return gu(e)?po(e.items)?Sa(e.items.extends)?Pp(e.items.name,e.items.extends.items):ro(e.items.extends)?Pp(e.items.name,e.items.extends):void 0:Po():void 0}function Lp(e){return po(e)?Pp(e.name,e.extends):void 0}function Rp(e,t,n=[]){return C(e,(e,r)=>hf(lm({},e,t),()=>Rp(r,t,[...n,e]),()=>void 0),()=>n)}function zp(e,t,n,r){let i=Rp(n,r);return y(i)?K(Vn(e,{[t]:Pc(i)})):ff()}function Bp(e,t,n,r){let i=Rp(n,r);return y(i)?K(Vn(e,{[t]:V(i)})):ff()}function Vp(){return(Vp=e((()=>{aa(),Hn(),O(),wa(),io(),Lc(),um(),U(),mo(),_u(),gf()})))()}function Hp(e){return[...e].reverse()}function Up(e,t){return t?Hp(e):e}function Wp(e){let t=e.length>0?e[0]:void 0;return ua(ua(t)?Ip(t):void 0)}function Gp(e,t,n,r,i,a){return hf(lm(e,n,i),e=>Jp(e,t,r,a),()=>ff())}function Kp(e,t,n,r,i){let a=Ip(r);return Fp(a)?zp(e,a.name,Up(n,t),a.type):C(n,(n,a)=>Gp(e,t,n,a,r,i),()=>ff())}function qp(e,t,n,r){return C(r,(r,i)=>Kp(e,t,n,r,i),()=>S(n.length,0)?K(e):ff())}function Jp(e,t,n,r){return qp(e,t,n,r)}function Yp(e,t,n){let r=dx(e,cx([],[]),n),i=Wp(r);return Jp(e,i,Up(t,i),Up(r,i))}function Xp(e,t,n){let r=Lp(n);return Fp(r)?Bp(e,r.name,t,r.type):C(t,(t,r)=>hf(lm(e,t,n),e=>Xp(e,r,n),()=>ff()),()=>K(e))}function Zp(e,t,n){let r=dx(e,cx([],[]),t);return Fc(n)?Yp(e,r,n.items):Sa(n)?Xp(e,r,n.items):wf(e,Pc(r),n)}function Qp(){return(Qp=e((()=>{O(),A(),wa(),Lc(),um(),Tf(),gf(),J(),Vp()})))()}function $p(e,t,n){return Cu(n)||xu(n)?K(e):wf(e,t,n)}function em(){return(em=e((()=>{Su(),wu(),Tf(),gf()})))()}function tm(e,t,n){return C(n,(n,r)=>hf(lm(e,t,n),e=>K(e),()=>tm(e,t,r)),()=>ff())}function nm(e,t,n){return C(t,(t,r)=>hf(tm(e,t,n),e=>nm(e,r,n),()=>ff()),()=>K(e))}function rm(e,t,n){let r=Lp(n);return Fp(r)?Bp(e,r.name,t,r.type):H(n)?nm(e,t,n.anyOf):nm(e,t,[n])}function im(){return(im=e((()=>{O(),U(),um(),gf(),Vp()})))()}function am(e,t,n){return po(n)?wf(e,t,n):Ba(n)||ro(n)?K(e):ff()}function om(){return(om=e((()=>{Va(),io(),mo(),Tf(),gf()})))()}function sm(e,t,n){return Cu(n)?K(e):wf(e,t,n)}function cm(){return(cm=e((()=>{wu(),Tf(),gf()})))()}function lm(e,t,n){return Ba(t)?Ef(e,t,n):Sa(t)?kf(e,t,t.items,n):Ns(t)?jf(e,t,n):Is(t)?Nf(e,t,n):Ea(t)?Hf(e,t.parameters,t.instanceType,n):go(t)?Wf(e,t.if,t.then,t.else,n):Co(t)?Kf(e,t.enum,n):Aa(t)?Jf(e,t.parameters,t.returnType,n):Rs(t)?Xf(e,t,n):Eo(t)?Qf(e,t.allOf,n):qs(t)?ap(e,t,n):Ua(t)?sp(e,t,n):Xs(t)?lp(e,t,n):Qs(t)?dp(e,t,n):eo(t)?Sp(e,t.properties,n):uu(t)?Ep(e,su(t),lu(t),n):ic(t)?Op(e,t,n):nc(t)?Ap(e,t,n):sf(t)?Mp(e,t.pattern,n):Fc(t)?Zp(e,t.items,n):xu(t)?$p(e,t,n):H(t)?rm(e,t.anyOf,n):ro(t)?am(e,t,n):Cu(t)?sm(e,t,n):ff()}function um(){return(um=e((()=>{Df(),Af(),Mf(),Pf(),Uf(),Gf(),qf(),Yf(),Zf(),$f(),op(),cp(),up(),fp(),Cp(),Dp(),kp(),jp(),Np(),Qp(),em(),im(),om(),cm(),Va(),wa(),Fs(),Ls(),Oa(),vo(),wo(),Ma(),Bs(),Oo(),Ys(),Ga(),Zs(),ec(),no(),mu(),ac(),rc(),cf(),Lc(),Su(),io(),U(),wu(),gf()})))()}function dm(e,t){return wl([...e,N(t)])}function fm(e,t,n){return lx(e)?k(dm(e,t),{},n):hm(e,t,n)}function pm(e,t,n,r,i){return fm(fx(e,t,n),ux(e,t,r),i)}function mm(){return(mm=e((()=>{ca(),no(),W(),Dx(),J()})))()}function hm(e,t,n={}){return da(`Interface`,[e,t],n)}function gm(e){return ua(e)&&w(e,`action`)&&S(e.action,`Interface`)}function _m(){return(_m=e((()=>{O(),A(),pa(),mm()})))()}function vm(e,t,n){return e.includes(n)?!0:xm([...e,n],t,t[n])}function ym(e,t,n){return bm(e,t,Qa(n))}function bm(e,t,n){return C(n,(n,r)=>xm(e,t,n)?!0:bm(e,t,r),()=>!1)}function xm(e,t,n){return Pa(n)?vm(e,t,n.$ref):Sa(n)?xm(e,t,n.items):Ea(n)?bm(e,t,[...n.parameters,n.instanceType]):Aa(n)?bm(e,t,[...n.parameters,n.returnType]):gm(n)?ym(e,t,n.parameters[1]):Eo(n)?bm(e,t,n.allOf):eo(n)?ym(e,t,n.properties):H(n)?bm(e,t,n.anyOf):Fc(n)?bm(e,t,n.items):uu(n)?xm(e,t,lu(n)):!1}function Sm(e,t,n){return xm(e,t,n)}function Cm(){return(Cm=e((()=>{O(),wa(),Oa(),Ma(),Oo(),no(),$a(),mu(),Lc(),U(),Fa(),_m()})))()}function wm(e,t){return t.reduce((t,n)=>Sm([n],e,e[n])?[...t,n]:t,[])}function Tm(e){return wm(e,Za(e))}function Em(){return(Em=e((()=>{$a(),Cm()})))()}function Dm(e,t,n){return n.includes(t)?n:t in e?Am(e,e[t],[...n,t]):Po()}function Om(e,t,n){return km(e,Qa(t),n)}function km(e,t,n){return t.reduce((t,n)=>Am(e,n,t),n)}function Am(e,t,n){return Pa(t)?Dm(e,t.$ref,n):Sa(t)?Am(e,t.items,n):Ea(t)?km(e,[...t.parameters,t.instanceType],n):Aa(t)?km(e,[...t.parameters,t.returnType],n):gm(t)?Om(e,t.parameters[1],n):Eo(t)?km(e,t.allOf,n):eo(t)?Om(e,t.properties,n):H(t)?km(e,t.anyOf,n):Fc(t)?km(e,t.items,n):uu(t)?Am(e,lu(t),n):n}function jm(e,t,n){return Am(e,n,[t])}function Mm(){return(Mm=e((()=>{wa(),Oa(),Ma(),Oo(),no(),$a(),mu(),Lc(),U(),Fa(),_m()})))()}function Nm(e){return za()}function Pm(e){return T(e).reduce((t,n)=>({...t,[n]:Im(e[n])}),{})}function Fm(e){return e.reduce((e,t)=>[...e,Im(t)],[])}function Im(e){return Pa(e)?Nm(e.$ref):Sa(e)?j(Im(e.items),Ca(e)):Ea(e)?Ta(Fm(e.parameters),Im(e.instanceType)):Aa(e)?ka(Fm(e.parameters),Im(e.returnType)):Eo(e)?To(Fm(e.allOf)):eo(e)?N(Pm(e.properties)):uu(e)?iu(cu(e),Im(lu(e))):H(e)?V(Fm(e.anyOf)):Fc(e)?Pc(Fm(e.items)):e}function Lm(e,t){return t in e?Im(e[t]):P()}function Rm(e){return Lm(e.$defs,e.$ref)}function zm(){return(zm=e((()=>{O(),Va(),wa(),Oa(),Ma(),Oo(),no(),mu(),Fa(),Lc(),U(),io()})))()}function Bm(e,t,n){let r=fx(e,cx([],[]),t),i=ux({},cx([],[]),n);return wl([...r,N(i)])}function Vm(e,t){return T(e).filter(e=>t.includes(e)).reduce((t,n)=>{let r=e[n],i=gm(r)?Bm(e,r.parameters[0],r.parameters[1]):r;return{...t,[n]:i}},{})}function Hm(e,t,n){return ao(Vm(e,jm(e,t,n)),t)}function Um(){return(Um=e((()=>{O(),so(),no(),Mm(),Dx(),J(),W()})))()}function Wm(e,t){return t in e?Pa(e[t])?Wm(e,e[t].$ref):e[t]:Ha()}function Gm(e,t){return Wm(e,t)}function Km(){return(Km=e((()=>{Ga(),Fa()})))()}function qm(){return(qm=e((()=>{Em(),Cm(),Mm(),zm(),Um()})))()}function Jm(e){return oo(e)?Rm(e):lo(e)?P():e}function Ym(e,t,n){return lm(e,Jm(t),Jm(n))}function Xm(){return(Xm=e((()=>{so(),io(),uo(),um(),qm()})))()}function Zm(){return(Zm=e((()=>{Xm(),gf()})))()}function Qm(e,t){let n=[Ym({},e,t),Ym({},t,e)];return mf(n[0])&&mf(n[1])?0:mf(n[0])&&pf(n[1])?2:pf(n[0])&&mf(n[1])?3:1}function $m(){return($m=e((()=>{Zm()})))()}function eh(e,t,n=[],r=t){return C(t,(t,i)=>{let a=Qm(e,t);return S(a,2)||S(a,0)?r:S(a,1)?eh(e,i,[...n,t],r):eh(e,i,n,r)},()=>[...n,e])}function th(e,t,n){let r=Dl(e);return Ba(r)||ro(r)?[r]:Ua(r)?nh(t,n):eo(r)?nh(t,[...n,r]):nh(t,eh(r,n))}function nh(e,t=[]){return C(e,(e,n)=>th(e,n,t),()=>t)}function rh(e){return Wl(nh(e))}function ih(){return(ih=e((()=>{O(),Va(),Ga(),no(),io(),$m(),Gl(),W()})))()}function ah(e,t){return k(Dl(e),{},t)}function oh(e,t,n,r){return ah(q(e,t,n),r)}function sh(){return(sh=e((()=>{ca(),J(),W()})))()}function ch(){return(ch=e((()=>{ih(),$m(),sl(),_l(),W(),sh(),dl()})))()}function lh(e,t=[]){return fa(e)&&S(e.action,`Conditional`)?Pa(e.parameters[0])?lh(e.parameters[2],lh(e.parameters[3],[...t,e.parameters[0].$ref])):lh(e.parameters[2],lh(e.parameters[3],t)):fa(e)&&S(e.action,`Mapped`)&&fa(e.parameters[1])&&S(e.parameters[1].action,`KeyOf`)&&Pa(e.parameters[1].parameters[0])?[...t,e.parameters[1].parameters[0].$ref]:t}function uh(e,t){return e.reduce((e,n)=>[...e,t.includes(n.name)],[])}function dh(e,t,n=[]){return C(e,(e,r)=>C(t,(t,i)=>dh(r,i,[...n,[t,e]]),()=>n),()=>n)}function fh(e){return sf(e)?Tl(e.pattern):Co(e)?Cl(e.enum):e}function ph(e){let t=fh(e);return H(t)?[...t.anyOf]:[t]}function mh(e,t){return e.reduce((e,n)=>[...e,[...n,t]],[])}function hh(e,t){return t.reduce((t,n)=>[...t,...mh(e,n)],[])}function gh(e){return e.reduce((e,t)=>S(t[0],!0)?hh(e,ph(t[1])):hh(e,[t[1]]),[[]])}function _h(e,t,n){let r=dh(t,uh(e,lh(n)));return fa(n)&&S(n.action,`Conditional`)||fa(n)&&S(n.action,`Mapped`)?gh(r):[t]}function vh(){return(vh=e((()=>{O(),U(),pa(),wo(),cf(),Fa(),W()})))()}function yh(){return[`(not-resolvable)`,Ha()]}function bh(){return[`(not-generic)`,Ha()]}function xh(e,t,n){return[e,Ia(t,n)]}function Sh(e,t,n){return t in e?Ch(e,t,e[t],n):yh()}function Ch(e,t,n,r){return La(n)?xh(t,n.parameters,n.expression):Pa(n)?Sh(e,n.$ref,r):bh()}function wh(e,t,n){return Ch(e,`(anonymous)`,t,n)}function Th(){return(Th=e((()=>{Ra(),Fa(),Ga()})))()}function Eh(e,t,n){if(po(t)||Gh(t)||mf(Ym({},t,n)))return;let r={parameter:e,expect:n,actual:t};throw Error(`Argument for parameter ${e} does not satisfy constraint`,{cause:r})}function Dh(e,t,n,r,i){let a=q(e,t,i);return Eh(n,a,r),Vn(e,{[n]:a})}function Oh(e,t,n,r,i){let a=q(e,t,n.extends),o=q(e,t,n.equals);return C(i,(i,o)=>kh(Dh(e,t,n.name,a,i),t,r,o),()=>kh(Dh(e,t,n.name,a,o),t,r,[]))}function kh(e,t,n,r){return C(n,(n,i)=>Oh(e,t,n,i,r),()=>e)}function Ah(e,t,n,r){return kh(e,t,n,r)}function jh(){return(jh=e((()=>{O(),Hn(),J(),Zm(),mo(),Kh()})))()}function Mh(){if(!gr(Hh,$i().maxInstantiationCount))throw Error(`Type instantiation is excessively deep and possibly infinite`)}function Nh(){Mh(),Hh++,Vh++}function Ph(){Vh--,S(Vh,0)&&(Hh=0)}function Fh(e){return hr(e.callstack.length,0)?e.callstack[e.callstack.length-1]:``}function Ih(e,t){return S(Fh(e),t)}function Lh(e,t,n,r,i,a){Nh();try{let o=Ah(e,t,r,a),s=q(o,cx([...t.callstack,n.$ref],t.visited),i);return q(o,cx([],[]),s)}finally{Ph()}}function Rh(e,t,n,r,i,a){return a.reduce((a,o)=>{let s=Lh(e,t,n,r,i,o);return[...a,s]},[])}function zh(e,t,n,r,i,a){let o=Rh(e,t,n,r,i,_h(r,a,i));return S(o.length,1)?o[0]:El(o)}function Bh(e,t,n,r){let i=fx(e,t,r),a=wh(e,n,r),o=a[0],s=a[1];return La(s)?Ih(t,o)?Wh(Na(o),i):zh(e,t,Na(o),s.parameters,s.expression,i):Wh(n,i)}var Vh,Hh;function Uh(){return(Uh=e((()=>{ta(),O(),Kh(),Fa(),Ra(),ch(),J(),vh(),Th(),jh(),Vh=0,Hh=0})))()}function Wh(e,t){return ia({"~kind":`Call`},{type:`call`,target:e,arguments:t},{})}function Gh(e){return la(e,`Call`)}function Kh(){return(Kh=e((()=>{aa(),A(),Uh(),J()})))()}function qh(e){return oa(e,[`~immutable`])}function Jh(e,t){return k(qh(e),{},t)}function Yh(e,t,n,r){return Jh(q(e,t,n),r)}function Xh(){return(Xh=e((()=>{sa(),ca(),J()})))()}function Zh(e,t){return e(t)}function Qh(e,t){return x(t)?L(Zh(e,t)):L(t)}function $h(){return($h=e((()=>{O(),Ys()})))()}function eg(e,t){return ig(e,Tl(t))}function tg(){return(tg=e((()=>{ag(),ch()})))()}function ng(e,t){return V(t.map(t=>ig(e,t)))}function rg(){return(rg=e((()=>{U(),ag()})))()}function ig(e,t){return qs(t)?Qh(e,t.const):sf(t)?eg(e,t.pattern):H(t)?ng(e,t.anyOf):t}function ag(){return(ag=e((()=>{Ys(),cf(),U(),$h(),tg(),rg()})))()}function og(e,t={}){return da(`Capitalize`,[e],t)}function sg(){return(sg=e((()=>{pa(),Eg()})))()}function cg(e,t={}){return da(`Lowercase`,[e],t)}function lg(){return(lg=e((()=>{pa(),Eg()})))()}function ug(e,t={}){return da(`Uncapitalize`,[e],t)}function dg(){return(dg=e((()=>{pa(),Eg()})))()}function fg(e,t={}){return da(`Uppercase`,[e],t)}function pg(){return(pg=e((()=>{pa(),Eg()})))()}function mg(e,t){return lx([e])?k(ig(Sg,e),{},t):og(e,t)}function hg(e,t){return lx([e])?k(ig(Cg,e),{},t):cg(e,t)}function gg(e,t){return lx([e])?k(ig(wg,e),{},t):ug(e,t)}function _g(e,t){return lx([e])?k(ig(Tg,e),{},t):fg(e,t)}function vg(e,t,n,r){return mg(q(e,t,n),r)}function yg(e,t,n,r){return hg(q(e,t,n),r)}function bg(e,t,n,r){return gg(q(e,t,n),r)}function xg(e,t,n,r){return _g(q(e,t,n),r)}var Sg,Cg,wg,Tg;function Eg(){return(Eg=e((()=>{ca(),ag(),J(),sg(),lg(),dg(),pg(),Sg=e=>e[0].toUpperCase()+e.slice(1),Cg=e=>e.toLowerCase(),wg=e=>e[0].toLowerCase()+e.slice(1),Tg=e=>e.toUpperCase()})))()}function Dg(e,t,n,r,i={}){return da(`Conditional`,[e,t,n,r],i)}function Og(){return(Og=e((()=>{pa(),Mg(),J()})))()}function kg(e,t,n,r,i,a){let o=Ym(e,n,r);return uf(o)?V([q(o.inferred,t,i),q(e,t,a)]):df(o)?q(o.inferred,t,i):q(e,t,a)}function Ag(e,t,n,r,i,a,o){return lx([n,r])?k(kg(e,t,n,r,i,a),{},o):Dg(n,r,i,a,o)}function jg(e,t,n,r,i,a,o){return Ag(e,t,q(e,t,n),q(e,t,r),i,a,o)}function Mg(){return(Mg=e((()=>{ca(),U(),Zm(),J(),Og()})))()}function Ng(){return(Ng=e((()=>{Mg()})))()}function Pg(e,t={}){return da(`ConstructorParameters`,[e],t)}function Fg(){return(Fg=e((()=>{pa(),zg()})))()}function Ig(e){let t=Ea(e)?e.parameters:[];return Pc(dx({},cx([],[]),t))}function Lg(e,t){return lx([e])?k(Ig(e),{},t):Pg(e,t)}function Rg(e,t,n,r){return Lg(q(e,t,n),r)}function zg(){return(zg=e((()=>{ca(),Oa(),Lc(),Fg(),J()})))()}function Bg(e,t,n={}){return da(`Exclude`,[e,t],n)}function Vg(){return(Vg=e((()=>{pa(),Wg()})))()}function Hg(e,t,n){return lx([e,t])?k(bl(e,t),{},n):Bg(e,t,n)}function Ug(e,t,n,r,i){return Hg(q(e,t,n),q(e,t,r),i)}function Wg(){return(Wg=e((()=>{ca(),J(),Vg(),xl()})))()}function Gg(e,t,n={}){return da(`Extract`,[e,t],n)}function Kg(){return(Kg=e((()=>{pa(),$g()})))()}function qg(e,t){return mf(Ym({},e,t))?[e]:[]}function Jg(e,t,n=[]){return C(e,(e,r)=>Jg(r,t,[...n,...qg(e,t)]),()=>n)}function Yg(e,t){let n=Dl(e);return El(Jg(H(n)?n.anyOf:[n],t))}function Xg(){return(Xg=e((()=>{O(),U(),Zm(),W()})))()}function Zg(e,t,n){return lx([e,t])?k(Yg(e,t),{},n):Gg(e,t,n)}function Qg(e,t,n,r,i){return Zg(q(e,t,n),q(e,t,r),i)}function $g(){return($g=e((()=>{ca(),J(),Kg(),Xg()})))()}function e_(e,t,n={}){return da(`Index`,[e,t],n)}function t_(){return(t_=e((()=>{pa(),vv()})))()}function n_(e,t){return g_(Gm(e,t))}function r_(){return(r_=e((()=>{__(),Km()})))()}function i_(e,t,n){return g_(Sl(e,t,n))}function a_(){return(a_=e((()=>{__(),W()})))()}function o_(e,t){let n=T(e).filter(e=>!w(t,e)),r=T(t).filter(t=>!w(e,t)),i=T(e).filter(e=>w(t,e)),a=n.reduce((t,n)=>({...t,[n]:e[n]}),{}),o=r.reduce((e,n)=>({...e,[n]:t[n]}),{}),s=i.reduce((n,r)=>({...n,[r]:wl([e[r],t[r]])}),{});return Vn(Vn(a,o),s)}function s_(e){return e.reduce((e,t)=>o_(e,g_(t)),{})}function c_(){return(c_=e((()=>{Hn(),O(),__(),W()})))()}function l_(e){return e}function u_(e){return g_(Zc(Pc(e)))}function d_(){return(d_=e((()=>{Lc(),Qc(),__()})))()}function f_(e,t){return T(e).filter(e=>e in t).reduce((n,r)=>({...n,[r]:El([e[r],t[r]])}),{})}function p_(e,t){return C(e,(e,n)=>p_(n,f_(t,g_(e))),()=>t)}function m_(e){return C(e,(e,t)=>p_(t,g_(e)),()=>Po())}function h_(){return(h_=e((()=>{O(),W(),__()})))()}function g_(e){return oo(e)?n_(e.$defs,e.$ref):go(e)?i_(e.if,e.then,e.else):Eo(e)?s_(e.allOf):H(e)?m_(e.anyOf):Fc(e)?u_(e.items):eo(e)?l_(e.properties):{}}function __(){return(__=e((()=>{so(),vo(),Oo(),no(),Lc(),U(),r_(),a_(),c_(),d_(),h_()})))()}function v_(e){return N(g_(e))}function y_(){return(y_=e((()=>{no(),__()})))()}function b_(){return(b_=e((()=>{y_()})))()}function x_(e){let t=`${e}`;return S_.test(t)?parseInt(t):e}var S_;function C_(){return(C_=e((()=>{S_=RegExp(`^(?:0|[1-9][0-9]*)$`)})))()}function w_(e){return L(x_(e))}function T_(e){return e.map(e=>E_(e))}function E_(e){return Eo(e)?To(T_(e.allOf)):H(e)?V(T_(e.anyOf)):qs(e)?w_(e.const):e}function D_(e,t){return mf(Ym({},E_(t),z()))?e:qs(t)&&S(t.const,`length`)?z():Ha()}function O_(){return(O_=e((()=>{O(),Oo(),U(),Ys(),ec(),Ga(),Zm(),C_()})))()}function k_(e,t){return H_(Gm(e,t))}function A_(){return(A_=e((()=>{U_(),Km()})))()}function j_(e,t,n){return H_(Sl(e,t,n))}function M_(){return(M_=e((()=>{U_(),W()})))()}function N_(e){return H_(Cl(e))}function P_(){return(P_=e((()=>{U_(),W()})))()}function F_(e){return H_(wl(e))}function I_(){return(I_=e((()=>{W(),U_()})))()}function L_(e){return[`${e}`]}function R_(e){return H_(Tl(e))}function z_(){return(z_=e((()=>{U_(),W()})))()}function B_(e){return e.reduce((e,t)=>[...e,...H_(t)],[])}function V_(){return(V_=e((()=>{U_()})))()}function H_(e){return oo(e)?k_(e.$defs,e.$ref):go(e)?j_(e.if,e.then,e.else):Co(e)?N_(e.enum):Eo(e)?F_(e.allOf):qs(e)?L_(e.const):sf(e)?R_(e.pattern):H(e)?B_(e.anyOf):[]}function U_(){return(U_=e((()=>{so(),vo(),wo(),Oo(),Ys(),cf(),U(),A_(),M_(),P_(),I_(),z_(),V_()})))()}function W_(e){return H_(e)}function G_(){return(G_=e((()=>{U_()})))()}function K_(e,t){return t.map(t=>q_(e,t))}function q_(e,t){return Sa(t)?j(q_(e,t.items)):Ea(t)?Ta(K_(e,t.parameters),q_(e,t.instanceType)):Aa(t)?ka(K_(e,t.parameters),q_(e,t.returnType)):Fc(t)?Pc(K_(e,t.items)):H(t)?V(K_(e,t.anyOf)):Eo(t)?To(K_(e,t.allOf)):vu(t)?N(e):t}function J_(e,t){return q_(e,t)}function Y_(){return(Y_=e((()=>{wa(),Oa(),Ma(),Oo(),no(),Lc(),yu(),U()})))()}function X_(e,t){return J_(e,t in e?e[t]:Ha())}function Z_(e,t){return t.reduce((t,n)=>[...t,X_(e,n)],[])}function Q_(e,t){return El(Z_(e,W_(t)))}function $_(e){return e.filter(e=>nv.test(e))}function ev(e){return El(Z_(e,$_(Za(e))))}function tv(e,t){return Qs(t)?ev(e):Q_(e,t)}var nv;function rv(){return(rv=e((()=>{ec(),Ga(),$a(),W(),G_(),mu(),Y_(),nv=new RegExp(du)})))()}function iv(e){return L(x_(e))}function av(e){return e.map(e=>ov(e))}function ov(e){return Eo(e)?To(av(e.allOf)):H(e)?V(av(e.anyOf)):qs(e)?iv(e.const):e}function sv(){return(sv=e((()=>{U(),Oo(),Ys(),C_()})))()}function cv(e,t){return e.reduceRight((e,n,r)=>mf(Ym({},L(r),t))?[n,...e]:e,[])}function lv(e,t){return Ol(cv(e,ov(t)))}function uv(e){return Ol(e)}function dv(e,t){return qs(t)&&S(t.const,`length`)?L(e.length):Qs(t)||Rs(t)?uv(e):lv(e,t)}function fv(){return(fv=e((()=>{O(),Ys(),ec(),Bs(),W(),Zm(),sv()})))()}function pv(e,t){return Sa(e)?D_(e.items,t):eo(e)?tv(e.properties,t):Fc(e)?dv(e.items,t):Ha()}function mv(){return(mv=e((()=>{wa(),Ga(),no(),Lc(),O_(),rv(),fv()})))()}function hv(e){return oo(e)||go(e)||Eo(e)||H(e)?v_(e):e}function gv(e,t,n){return lx([e,t])?k(pv(hv(e),t),{},n):e_(e,t,n)}function _v(e,t,n,r,i){return gv(q(e,t,n),q(e,t,r),i)}function vv(){return(vv=e((()=>{ca(),so(),vo(),Oo(),U(),J(),t_(),b_(),mv()})))()}function yv(e,t={}){return da(`InstanceType`,[e],t)}function bv(){return(bv=e((()=>{pa(),wv()})))()}function xv(e){return Ea(e)?e.instanceType:Ha()}function Sv(e,t){return lx([e])?k(xv(e),{},t):yv(e,t)}function Cv(e,t,n,r={}){return Sv(q(e,t,n),r)}function wv(){return(wv=e((()=>{ca(),Oa(),Ga(),bv(),J()})))()}function Tv(e,t={}){return da(`KeyOf`,[e],t)}function Ev(){return(Ev=e((()=>{pa(),Uv()})))()}function Dv(){return V([z(),B(),tc()])}function Ov(){return(Ov=e((()=>{ec(),ac(),rc(),U()})))()}function kv(e){return z()}function Av(){return(Av=e((()=>{ec()})))()}function jv(e){return e.reduce((e,t)=>Hs(t)?[...e,L(x_(t))]:Po(),[])}function Mv(e){return Ol(jv(T(e)))}function Nv(){return(Nv=e((()=>{O(),Ys(),C_(),W()})))()}function Pv(e){return cu(e)}function Fv(){return(Fv=e((()=>{mu()})))()}function Iv(e){return Ol(e.map((e,t)=>L(t)))}function Lv(){return(Lv=e((()=>{Ys(),W()})))()}function Rv(e){return Ba(e)?Dv():Sa(e)?kv(e.items):eo(e)?Mv(e.properties):uu(e)?Pv(e):Fc(e)?Iv(e.items):Ha()}function zv(){return(zv=e((()=>{Va(),wa(),Ga(),no(),mu(),Lc(),Ov(),Av(),Nv(),Fv(),Lv()})))()}function Bv(e){return oo(e)||go(e)||Eo(e)||H(e)?v_(e):e}function Vv(e,t){return lx([e])?k(Rv(Bv(e)),{},t):Tv(e,t)}function Hv(e,t,n,r){return Vv(q(e,t,n),r)}function Uv(){return(Uv=e((()=>{ca(),so(),vo(),Oo(),U(),Ev(),J(),b_(),zv()})))()}function Wv(e,t,n,r,i={}){return da(`Mapped`,[e,t,n,r],i)}function Gv(){return(Gv=e((()=>{pa(),sy(),J()})))()}function Kv(e){return Xv(Tl(e))}function qv(e){return e.reduce((e,t)=>[...e,...Xv(t)],[])}function Jv(e){return Xv(Cl(e))}function Yv(e){return dr(e)?[L(`${e}`)]:[L(e)]}function Xv(e){return Co(e)?Jv(e.enum):qs(e)?Yv(e.const):sf(e)?Kv(e.pattern):H(e)?qv(e.anyOf):[e]}function Zv(e){return Xv(e)}function Qv(){return(Qv=e((()=>{O(),Ys(),wo(),cf(),U(),W()})))()}function $v(e){return sf(e)?Tl(e.pattern):e}function ey(e,t,n,r,i,a){let o=Vn(e,{[n.name]:r}),s=$v(q(o,t,i)),c=q(o,t,a);return Gs(s)||Ks(s)?{[s.const]:c}:{}}function ty(e,t,n,r,i,a){return r.reduce((r,o)=>[...r,ey(e,t,n,o,i,a)],[])}function ny(e){return e.reduce((e,t)=>[...e,N(t)],[])}function ry(e,t,n,r,i,a){return wl(ny(ty(e,t,n,Zv(r),i,a)))}function iy(){return(iy=e((()=>{Hn(),Ys(),no(),cf(),J(),W(),Qv()})))()}function ay(e,t,n,r,i,a,o){return lx([r])?k(ry(e,t,n,r,i,a),{},o):Wv(n,r,i,a,o)}function oy(e,t,n,r,i,a,o){return ay(e,t,n,q(e,t,r),i,a,o)}function sy(){return(sy=e((()=>{ca(),Gv(),J(),iy()})))()}function cy(e,t,n){let r=Vn(e,t);return T(t).filter(e=>n.includes(e)).reduce((e,n)=>({...e,[n]:Hm(r,n,t[n])}),{})}function ly(e,t,n){let r=Vn(e,t);return T(t).filter(e=>!n.includes(e)).reduce((e,n)=>({...e,[n]:q(r,cx([],[]),t[n])}),{})}function uy(e,t,n){let r=Tm(t),i=cy(e,t,r),a=ly(e,t,r);return k({...i,...a},{},n)}function dy(e,t,n,r){return uy(e,n,r)}function fy(){return(fy=e((()=>{O(),Hn(),ca(),J(),Em(),Um()})))()}function py(e,t={}){return da(`NonNullable`,[e],t)}function my(){return(my=e((()=>{pa(),vy()})))()}function hy(e){return Hg(e,V([R(),bu()]),{})}function gy(e,t){return lx([e])?k(hy(e),{},t):py(e,t)}function _y(e,t,n,r){return gy(q(e,t,n),r)}function vy(){return(vy=e((()=>{ca(),Zs(),Su(),U(),Wg(),my(),J()})))()}function yy(e,t,n={}){return da(`Omit`,[e,t],n)}function by(){return(by=e((()=>{pa(),Oy()})))()}function xy(e){let t=v_(e);return eo(t)?t.properties:Po()}function Sy(){return(Sy=e((()=>{no(),b_()})))()}function Cy(e,t){return T(e).reduce((n,r)=>t.includes(r)?n:{...n,[r]:e[r]},{})}function wy(e,t){return N(Cy(xy(e),W_(t)))}function Ty(){return(Ty=e((()=>{O(),no(),G_(),Sy()})))()}function Ey(e,t,n){return lx([e,t])?k(wy(e,t),{},n):yy(e,t,n)}function Dy(e,t,n,r,i){return Ey(q(e,t,n),q(e,t,r),i)}function Oy(){return(Oy=e((()=>{ca(),by(),J(),Ty()})))()}function ky(e,t={}){return da(`Parameters`,[e],t)}function Ay(){return(Ay=e((()=>{pa(),Py()})))()}function jy(e){let t=Aa(e)?e.parameters:[];return Pc(dx({},cx([],[]),t))}function My(e,t){return lx([e])?k(jy(e),{},t):ky(e,t)}function Ny(e,t,n,r){return My(q(e,t,n),r)}function Py(){return(Py=e((()=>{ca(),Ma(),Lc(),Ay(),J()})))()}function Fy(e,t={}){return da(`Partial`,[e],t)}function Iy(e,t={}){return Xy(e,t)}function Ly(){return(Ly=e((()=>{pa(),Qy()})))()}function Ry(e,t){let n=Jy(Gm(e,t));return ao(Vn(e,{[t]:n}),t)}function zy(){return(zy=e((()=>{Hn(),so(),Yy(),Km()})))()}function By(e,t,n){return Jy(Sl(e,t,n))}function Vy(){return(Vy=e((()=>{Yy(),W()})))()}function Hy(e){return Jy(wl(e))}function Uy(){return(Uy=e((()=>{Yy(),W()})))()}function Wy(e){return V(e.map(e=>Jy(e)))}function Gy(){return(Gy=e((()=>{U(),Yy()})))()}function Ky(e){return N(T(e).reduce((t,n)=>({...t,[n]:Ka(e[n])}),{}))}function qy(){return(qy=e((()=>{O(),no(),qa()})))()}function Jy(e){return oo(e)?Ry(e.$defs,e.$ref):go(e)?By(e.if,e.then,e.else):Eo(e)?Hy(e.allOf):H(e)?Wy(e.anyOf):eo(e)?Ky(e.properties):N({})}function Yy(){return(Yy=e((()=>{so(),vo(),Oo(),no(),U(),zy(),Vy(),Uy(),Gy(),qy()})))()}function Xy(e,t){return lx([e])?k(Jy(e),{},t):Fy(e,t)}function Zy(e,t,n,r){return Xy(q(e,t,n),r)}function Qy(){return(Qy=e((()=>{ca(),Ly(),Yy(),J()})))()}function $y(e,t,n={}){return da(`Pick`,[e,t],n)}function eb(){return(eb=e((()=>{pa(),ob()})))()}function tb(e,t){return T(e).reduce((n,r)=>t.includes(r)?Vn(n,{[r]:e[r]}):n,{})}function nb(e,t){return N(tb(xy(e),W_(t)))}function rb(){return(rb=e((()=>{Hn(),O(),no(),G_(),Sy()})))()}function ib(e,t,n){return lx([e,t])?k(nb(e,t),{},n):$y(e,t,n)}function ab(e,t,n,r,i){return ib(q(e,t,n),q(e,t,r),i)}function ob(){return(ob=e((()=>{ca(),eb(),J(),rb()})))()}function sb(e,t={}){return da(`ReadonlyObject`,[e],t)}function cb(){return(cb=e((()=>{pa(),Db()})))()}function lb(e){return xx(j(e))}function ub(){return(ub=e((()=>{wa(),Sx()})))()}function db(e,t){let n=Cb(Gm(e,t));return ao(Vn(e,{[t]:n}),t)}function fb(){return(fb=e((()=>{Hn(),so(),wb(),Km()})))()}function pb(e,t,n){return Cb(Sl(e,t,n))}function mb(){return(mb=e((()=>{wb(),W()})))()}function hb(e){return Cb(wl(e))}function gb(){return(gb=e((()=>{wb(),W()})))()}function _b(e){return N(T(e).reduce((t,n)=>({...t,[n]:Cs(e[n])}),{}))}function vb(){return(vb=e((()=>{O(),no(),ws()})))()}function yb(e){return xx(Pc(e))}function bb(){return(bb=e((()=>{Lc(),Sx()})))()}function xb(e){return V(e.map(e=>Cb(e)))}function Sb(){return(Sb=e((()=>{U(),wb()})))()}function Cb(e){return Sa(e)?lb(e.items):oo(e)?db(e.$defs,e.$ref):go(e)?pb(e.if,e.then,e.else):Eo(e)?hb(e.allOf):eo(e)?_b(e.properties):Fc(e)?yb(e.items):H(e)?xb(e.anyOf):e}function wb(){return(wb=e((()=>{wa(),so(),vo(),Oo(),no(),Lc(),U(),ub(),fb(),mb(),gb(),vb(),bb(),Sb()})))()}function Tb(e,t){return lx([e])?k(Cb(e),{},t):sb(e)}function Eb(e,t,n,r){return Tb(q(e,t,n),r)}function Db(){return(Db=e((()=>{ca(),cb(),wb(),J()})))()}function Ob(e,t,n,r){return t.visited.includes(r)?n:r in e?q(e,cx(t.callstack,[...t.visited,r]),e[r]):n}function kb(){return(kb=e((()=>{J()})))()}function Ab(e,t){let n=Bb(Gm(e,t));return ao(Vn(e,{[t]:n}),t)}function jb(){return(jb=e((()=>{Hn(),so(),Vb(),Km()})))()}function Mb(e,t,n){return Bb(Sl(e,t,n))}function Nb(){return(Nb=e((()=>{Vb(),W()})))()}function Pb(e){return Bb(wl(e))}function Fb(){return(Fb=e((()=>{Vb(),W()})))()}function Ib(e){return V(e.map(e=>Bb(e)))}function Lb(){return(Lb=e((()=>{U(),Vb()})))()}function Rb(e){return N(T(e).reduce((t,n)=>({...t,[n]:Jc(e[n])}),{}))}function zb(){return(zb=e((()=>{O(),no(),Yc()})))()}function Bb(e){return oo(e)?Ab(e.$defs,e.$ref):go(e)?Mb(e.if,e.then,e.else):Eo(e)?Pb(e.allOf):H(e)?Ib(e.anyOf):eo(e)?Rb(e.properties):N({})}function Vb(){return(Vb=e((()=>{so(),vo(),Oo(),no(),U(),jb(),Nb(),Fb(),Lb(),zb()})))()}function Hb(e,t={}){return da(`Required`,[e],t)}function Ub(){return(Ub=e((()=>{pa(),Kb()})))()}function Wb(e,t){return lx([e])?k(Bb(e),{},t):Hb(e,t)}function Gb(e,t,n,r){return Wb(q(e,t,n),r)}function Kb(){return(Kb=e((()=>{ca(),Vb(),Ub(),J()})))()}function qb(e,t={}){return da(`ReturnType`,[e],t)}function Jb(){return(Jb=e((()=>{pa(),Qb()})))()}function Yb(e){return Aa(e)?e.returnType:Ha()}function Xb(e,t){return lx([e])?k(Yb(e),{},t):qb(e,t)}function Zb(e,t,n,r={}){return Xb(q(e,t,n),r)}function Qb(){return(Qb=e((()=>{ca(),Ma(),Ga(),Jb(),J()})))()}function $b(e,t){return da(`With`,[e,t],{})}function ex(e,t){return nx(e,t)}function tx(){return(tx=e((()=>{pa(),ix()})))()}function nx(e,t){return lx([e])?k(e,{},t):$b(e,t)}function rx(e,t,n,r){return nx(q(e,t,n),r)}function ix(){return(ix=e((()=>{ca(),J(),tx()})))()}function ax(e){return gu(e)?Fc(e.items)?ox(e.items.items):po(e.items)||Pa(e.items)?[e]:[Ha()]:[e]}function ox(e){return e.reduce((e,t)=>[...e,...ax(t)],[])}function sx(){return(sx=e((()=>{mo(),Ga(),_u(),Fa(),Lc()})))()}function cx(e,t){return{callstack:e,visited:t}}function lx(e){return C(e,(e,t)=>!Pa(e)&&lx(t),()=>!0)}function ux(e,t,n){return T(n).reduce((r,i)=>({...r,[i]:q(e,t,n[i])}),{})}function dx(e,t,n){return ox(fx(e,t,n))}function fx(e,t,n){return n.map(n=>q(e,t,n))}function px(e,t){let n=Ja(e)?ya(t,{}):t,r=Ts(e)?ha(n,{}):n;return xs(e)?vx(r,{}):r}function mx(e,t,n,r,i){return S(n,`AddImmutable`)?yx(e,t,r[0],i):S(n,`RemoveImmutable`)?Yh(e,t,r[0],i):S(n,`AddReadonly`)?ga(e,t,r[0],i):S(n,`RemoveReadonly`)?Bc(e,t,r[0],i):S(n,`AddOptional`)?ba(e,t,r[0],i):S(n,`RemoveOptional`)?Kc(e,t,r[0],i):S(n,`Capitalize`)?vg(e,t,r[0],i):S(n,`Conditional`)?jg(e,t,r[0],r[1],r[2],r[3],i):S(n,`ConstructorParameters`)?Rg(e,t,r[0],i):S(n,`Evaluate`)?oh(e,t,r[0],i):S(n,`Exclude`)?Ug(e,t,r[0],r[1],i):S(n,`Extract`)?Qg(e,t,r[0],r[1],i):S(n,`Index`)?_v(e,t,r[0],r[1],i):S(n,`InstanceType`)?Cv(e,t,r[0],i):S(n,`Interface`)?pm(e,t,r[0],r[1],i):S(n,`KeyOf`)?Hv(e,t,r[0],i):S(n,`Lowercase`)?yg(e,t,r[0],i):S(n,`Mapped`)?oy(e,t,r[0],r[1],r[2],r[3],i):S(n,`Module`)?dy(e,t,r[0],i):S(n,`NonNullable`)?_y(e,t,r[0],i):S(n,`Pick`)?ab(e,t,r[0],r[1],i):S(n,`Parameters`)?Ny(e,t,r[0],i):S(n,`Partial`)?Zy(e,t,r[0],i):S(n,`Omit`)?Dy(e,t,r[0],r[1],i):S(n,`ReadonlyObject`)?Eb(e,t,r[0],i):S(n,`Record`)?tu(e,t,r[0],r[1],i):S(n,`Required`)?Gb(e,t,r[0],i):S(n,`ReturnType`)?Zb(e,t,r[0],i):S(n,`TemplateLiteral`)?nf(e,t,r[0],i):S(n,`Uncapitalize`)?bg(e,t,r[0],i):S(n,`Uppercase`)?xg(e,t,r[0],i):S(n,`With`)?rx(e,t,r[0],r[1]):da(n,r,i)}function hx(e,t,n){return px(n,Pa(n)?Ob(e,t,n,n.$ref):Sa(n)?j(q(e,t,n.items),Ca(n)):Gh(n)?Bh(e,t,n.target,n.arguments):Ea(n)?Ta(fx(e,t,n.parameters),q(e,t,n.instanceType),Da(n)):Aa(n)?ka(fx(e,t,n.parameters),q(e,t,n.returnType),ja(n)):go(n)?ho(q(e,t,n.if),q(e,t,n.then),q(e,t,n.else),_o(n)):Eo(n)?To(fx(e,t,n.allOf),Do(n)):eo(n)?N(ux(e,t,n.properties),to(n)):uu(n)?au(su(n),q(e,t,lu(n))):gu(n)?hu(q(e,t,n.items)):Fc(n)?Pc(dx(e,t,n.items),Ic(n)):H(n)?V(fx(e,t,n.anyOf),oc(n)):n)}function q(e,t,n){return fa(n)?mx(e,t,n.action,n.parameters,n.options):hx(e,t,n)}function gx(e,t){return q(e,cx([],[]),t)}function J(){return(J=e((()=>{O(),bx(),_a(),xa(),wa(),Oa(),pa(),Ma(),Kh(),vo(),Oo(),no(),mu(),Lc(),U(),Fa(),_u(),Xh(),Vc(),qc(),Ya(),Ss(),Es(),Uh(),Eg(),Ng(),zg(),sh(),Wg(),$g(),vv(),wv(),mm(),Uv(),sy(),fy(),vy(),Oy(),Py(),Qy(),ob(),Db(),nu(),kb(),Kb(),Qb(),rf(),ix(),sx()})))()}function _x(e){return k(e,{"~immutable":!0},{})}function vx(e,t){return k(_x(e),{},t)}function yx(e,t,n,r){return vx(q(e,t,n),r)}function bx(){return(bx=e((()=>{ca(),J()})))()}function xx(e,t={}){return vx(e,t)}function Sx(){return(Sx=e((()=>{bx()})))()}function Cx(){return(Cx=e((()=>{Xh()})))()}function wx(e,t={}){return ah(e,t)}function Tx(){return(Tx=e((()=>{sh()})))()}function Ex(){return(Ex=e((()=>{J(),fy()})))()}function Dx(){return(Dx=e((()=>{Sx(),Cx(),Uc(),Yc(),sg(),Og(),Fg(),Tx(),Vg(),Kg(),t_(),bv(),_m(),Ev(),lg(),Gv(),Ex(),my(),by(),Ay(),Ly(),eb(),cb(),Ub(),Jb(),dg(),pg(),tx()})))()}function Ox(){return(Ox=e((()=>{zg()})))()}function kx(){return(kx=e((()=>{Wg()})))()}function Ax(){return(Ax=e((()=>{$g()})))()}function jx(){return(jx=e((()=>{vv()})))()}function Mx(){return(Mx=e((()=>{wv()})))()}function Nx(){return(Nx=e((()=>{mm()})))()}function Px(){return(Px=e((()=>{Eg()})))()}function Fx(){return(Fx=e((()=>{Uv()})))()}function Ix(){return(Ix=e((()=>{sy()})))()}function Lx(){return(Lx=e((()=>{fy()})))()}function Rx(){return(Rx=e((()=>{vy()})))()}function zx(){return(zx=e((()=>{Oy()})))()}function Bx(){return(Bx=e((()=>{Py()})))()}function Vx(){return(Vx=e((()=>{cc(),Ld()})))()}function Hx(){return(Hx=e((()=>{Qy()})))()}function Ux(){return(Ux=e((()=>{ob()})))()}function Wx(e,t){let n=Qm(e,t);return S(n,3)?1:+!!S(n,1)}function Gx(e,t,n=[]){return C(t,(r,i)=>S(Wx(e,r),1)?Gx(e,i,[...n,r]):[...n,e,...t],()=>[...n,e])}function Kx(e,t=[]){return C(e,(e,n)=>Kx(n,Gx(e,t)),()=>t)}function qx(e){return Kx(e)}function Jx(){return(Jx=e((()=>{O(),$m()})))()}function Yx(){return(Yx=e((()=>{Jx()})))()}function Xx(){return(Xx=e((()=>{Db()})))()}function Zx(){return(Zx=e((()=>{nu()})))()}function Qx(){return(Qx=e((()=>{kb()})))()}function $x(){return($x=e((()=>{Kb()})))()}function eS(){return(eS=e((()=>{Qb()})))()}function tS(){return(tS=e((()=>{cc()})))()}function nS(){return(nS=e((()=>{Dc(),ef(),tS()})))()}function rS(){return(rS=e((()=>{ix()})))()}function iS(){return(iS=e((()=>{J(),Ng(),Ox(),qm(),ch(),kx(),Ax(),jx(),Mx(),Nx(),Px(),Fx(),Ix(),Lx(),Rx(),b_(),zx(),Bx(),Vx(),Hx(),Ux(),Yx(),Xx(),Zx(),Qx(),$x(),eS(),nS(),rS()})))()}function aS(){return(aS=e((()=>{Tu(),J(),Id()})))()}function oS(){return(oS=e((()=>{aS()})))()}function sS(){return(sS=e((()=>{J(),Zm(),oS(),sg(),Og(),Fg(),Tx(),Vg(),Kg(),Dx(),bv(),_m(),Ev(),lg(),Gv(),Ex(),my(),by(),Ay(),Ly(),eb(),cb(),Ub(),Jb(),dg(),pg(),tx(),bs(),Ss(),Ya(),js(),wa(),Ls(),Kh(),wo(),Bs(),Oo(),Ys(),Zs(),ec(),no(),mu(),ac(),cf(),Lc(),U(),io(),uo()})))()}function cS(){return(cS=e((()=>{Dx(),iS(),Zm(),oS(),Tu(),sS()})))()}function Y(e){return N(e,{additionalProperties:!1})}function lS(){return(lS=e((()=>{cS()})))()}var uS,dS,fS,pS;function mS(){return(mS=e((()=>{uS=`value`,dS=/^[a-z][a-z0-9_-]{0,63}$/,fS=`~(?:[^01]|$)`,pS=`^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$`})))()}var hS,gS,_S,X,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS;function jS(){return(jS=e((()=>{cS(),pe(),mS(),lS(),hS=/^[A-Z][A-Z0-9_]{0,127}$/,gS=[`external_user`,`inter_session`,`internal_system`],_S=512,X=B({minLength:1}),vS=B({minLength:1,maxLength:512}),yS=B({minLength:1,maxLength:_S}),bS=Y({kind:B({enum:[...gS]}),originSessionId:M(B()),sourceSessionKey:M(B()),sourceChannel:M(B()),sourceTool:M(B())}),xS=So(n),SS=So(le),CS=B({pattern:dS.source}),wS=Y({source:L(`env`),provider:CS,id:B({pattern:hS.source})}),TS=co({type:`string`,anyOf:[{const:uS},{allOf:[{pattern:`^/`},{not:{pattern:fS}}]}]}),ES=Y({source:L(`file`),provider:CS,id:TS}),DS=Y({source:L(`exec`),provider:CS,id:B({pattern:pS})}),OS=Y({source:L(`store`),provider:CS,id:B({pattern:hS.source})}),kS=V([wS,ES,DS,OS]),AS=V([B(),kS])})))()}var MS,NS,PS,FS,IS,LS,RS;function zS(){return(zS=e((()=>{cS(),lS(),jS(),MS=B({minLength:1,maxLength:256,pattern:`^[^\\r\\n]*\\S[^\\r\\n]*$`}),NS=B({minLength:1,maxLength:8192}),Y({sessionKey:M(X),idempotencyKey:X,title:M(MS),body:M(NS)}),PS={requestId:X},FS=Y({...PS,status:L(`requested`),message:X}),IS=Y({...PS,status:L(`publishing`),message:X}),LS=Y({...PS,status:L(`published`),url:X,repository:X,branch:X,headCommit:X}),RS=Y({...PS,status:L(`failed`),code:V([L(`identity_changed`),L(`identity_unavailable`),L(`session_changed`),L(`workspace_changed`),L(`not_git`),L(`not_github`),L(`no_changes`),L(`push_rejected`),L(`github_rejected`),L(`unavailable`)]),message:X,nextAction:X}),V([FS,IS,LS,RS])})))()}var BS;function VS(){return(VS=e((()=>{BS=[`auth`,`auth_permanent`,`format`,`rate_limit`,`overloaded`,`billing`,`server_error`,`timeout`,`tls_certificate`,`context_overflow`,`model_not_found`,`session_expired`,`empty_response`,`no_error_details`,`unclassified`,`unknown`]})))()}var HS,US;function WS(){return(WS=e((()=>{cS(),VS(),HS=BS.map(e=>L(e)),US=V(HS)})))()}function GS(e,t){return Object.assign(t,{"x-openclaw-since":e}),t}var KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC;function sC(){return(sC=e((()=>{cS(),lS(),KS=65536,qS=26214400,JS=B({minLength:1,maxLength:256,pattern:`^\\S(?:.*\\S)?$`}),YS=B({minLength:1,maxLength:128}),XS=V([L(`invalid-credential`),L(`credential-expired`),L(`environment-mismatch`),L(`environment-unavailable`),L(`bundle-mismatch`),L(`version-mismatch`),L(`session-mismatch`),L(`placement-mismatch`),L(`owner-epoch-mismatch`),L(`rpc-set-mismatch`),L(`protocol-features-mismatch`)]),ZS=V([XS,L(`admission-rejected`),L(`invalid-handshake`),L(`protocol-mismatch`),L(`gateway-unavailable`),L(`invalid-frame`),L(`slow-consumer`),L(`method-not-allowed`),L(`invalid-heartbeat`),L(`credential-replaced`),L(`gateway-shutdown`)]),QS=V([L(`INVALID_REQUEST`),L(`UNAVAILABLE`)]),$S=Y({reason:ZS}),eC=Y({code:QS,message:B({minLength:1,maxLength:256}),details:$S,retryable:M(F()),retryAfterMs:M(I({minimum:0}))}),tC=Y({type:L(`res`),id:YS,ok:L(!1),error:eC}),nC=Y({input:z({minimum:0}),output:z({minimum:0}),cacheRead:z({minimum:0}),cacheWrite:z({minimum:0}),contextUsage:M(V([Y({state:L(`available`),promptTokens:z({minimum:0}),totalTokens:z({minimum:0})}),Y({state:L(`unavailable`)})])),totalTokens:z({minimum:0}),cost:Y({input:z({minimum:0}),output:z({minimum:0}),cacheRead:z({minimum:0}),cacheWrite:z({minimum:0}),total:z({minimum:0}),totalOrigin:M(L(`provider-billed`))})}),rC=Y({type:JS,timestamp:I({minimum:0}),error:M(Y({name:M(B({maxLength:256})),message:B({maxLength:KS}),stack:M(B({maxLength:KS})),code:M(V([B({maxLength:256}),z()]))})),details:M(iu(B({minLength:1,maxLength:256}),P()))}),iC=B({maxLength:KS}),aC=I({minimum:0,maximum:2**53-1}),oC=I({minimum:1,maximum:2**53-1})})))()}function cC(e){return Y(e)}var lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC,RC,zC,BC,VC,HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw;function mw(){return(mw=e((()=>{cS(),pe(),lS(),WS(),zS(),sC(),lC=[`worker.heartbeat`,`worker.transcript.commit`,`worker.live-event`,`worker.sessions.spawn`,`worker.sessions.send`,`worker.github.publish`,`worker.portal`,`worker.computer`],uC=8192,dC=KS,fC=B({minLength:16,maxLength:256}),pC=B({minLength:1,maxLength:128}),mC=B({minLength:64,maxLength:64,pattern:`^[a-f0-9]{64}$`}),hC=GS(`2026.7`,Y({bundleHash:mC,openclawVersion:B({minLength:1,maxLength:128}),protocolFeatures:j(pC,{maxItems:64,uniqueItems:!0}),bundlePrewarm:M(I({minimum:1,maximum:2**53-1}))})),gC={environmentId:JS,credential:fC,ownerEpoch:I({minimum:0,maximum:2**53-1}),rpcSetVersion:I({minimum:1,maximum:2**53-1}),handshake:hC},_C=V([Y({...gC,sessionId:R(),runId:R()}),Y({...gC,sessionId:JS,runId:JS})]),vC=Y({minProtocol:I({minimum:1}),maxProtocol:I({minimum:1}),client:Y({id:L(n.WORKER),version:B({minLength:1,maxLength:128}),platform:B({minLength:1,maxLength:128}),mode:L(le.WORKER)}),role:L(`worker`),admission:_C}),Y({type:L(`req`),id:YS,method:L(`connect`),params:vC}),yC=Y({type:L(`worker-hello-ok`),environmentId:JS,sessionId:V([JS,R()]),ownerEpoch:I({minimum:0,maximum:2**53-1}),rpcSetVersion:I({minimum:1,maximum:2**53-1}),protocolFeatures:j(pC,{maxItems:64,uniqueItems:!0}),credentialExpiresAtMs:I({minimum:0}),policy:Y({heartbeatIntervalMs:I({minimum:1}),maxPayload:I({minimum:1})})}),bC=Y({type:L(`res`),id:YS,ok:L(!0),payload:yC}),V([bC,tC]),xC=V([L(`ready`),L(`busy`),L(`draining`)]),SC=Y({sentAtMs:I({minimum:0}),status:xC}),CC=Y({receivedAtMs:I({minimum:0}),status:L(`ok`),ownerEpoch:I({minimum:0,maximum:2**53-1})}),Y({type:L(`req`),id:YS,method:L(lC[0]),params:SC}),wC=Y({type:L(`res`),id:YS,ok:L(!0),payload:CC}),V([wC,tC]),TC=B({minLength:1,maxLength:256}),Y({toolCallId:TC,task:B({minLength:1,maxLength:uC}),label:M(B({minLength:1,maxLength:256})),agentId:M(JS),model:M(B({minLength:1,maxLength:256})),runTimeoutSeconds:M(I({minimum:0,maximum:86400}))}),Y({toolCallId:TC,sessionKey:B({minLength:1,maxLength:1024}),message:B({minLength:1,maxLength:uC}),timeoutSeconds:M(I({minimum:0,maximum:86400}))}),Y({toolCallId:TC,title:M(MS),body:M(NS)}),Y({toolCallId:TC,action:V([L(`open`),L(`list`),L(`close`)]),port:M(I({minimum:1,maximum:65535})),title:M(B({minLength:1,maxLength:256})),description:M(B({maxLength:uC})),path:M(B({maxLength:1024,pattern:`^/`})),id:M(B({minLength:1,maxLength:256}))}),EC=Y({resultJson:B({minLength:2,maxLength:KS})}),V([Y({type:L(`res`),id:YS,ok:L(!0),payload:EC}),tC]),DC=Y({type:L(`text`),text:B({maxLength:KS}),textSignature:M(B({minLength:1,maxLength:KS}))}),OC=Y({type:L(`thinking`),thinking:B({maxLength:KS}),thinkingSignature:M(B({minLength:1,maxLength:KS})),redacted:M(F())}),kC=Y({type:L(`image`),data:B({minLength:1,maxLength:qS}),mimeType:B({minLength:1,maxLength:256})}),AC=Y({type:L(`toolCall`),id:JS,name:JS,arguments:iu(B({minLength:1,maxLength:256}),P()),thoughtSignature:M(B({minLength:1,maxLength:KS})),executionMode:M(V([L(`sequential`),L(`parallel`)]))}),jC=B({minLength:2,maxLength:16,pattern:`^[a-z0-9]+$`}),MC=Y({v:L(1),type:JS,id:M(B({minLength:1,maxLength:KS})),data:B({minLength:1,maxLength:dC}),replayIndex:M(I({minimum:0,maximum:2**53-1})),provider:JS,api:JS,model:JS,baseUrlHash:M(jC),sessionHash:M(jC),authProfileHash:M(jC)}),NC=Y({role:L(`user`),content:j(V([DC,kC]),{minItems:1,maxItems:128}),timestamp:I({minimum:0})}),PC=Y({role:L(`assistant`),content:j(V([DC,OC,AC]),{maxItems:128}),api:JS,provider:JS,model:JS,responseModel:M(JS),responseId:M(JS),providerReplay:M(MC),diagnostics:M(j(rC,{maxItems:128})),usage:nC,stopReason:V([L(`stop`),L(`length`),L(`toolUse`),L(`error`),L(`aborted`)]),errorMessage:M(B({maxLength:KS})),errorCode:M(B({maxLength:256})),errorType:M(B({maxLength:256})),errorBody:M(B({maxLength:KS})),timestamp:I({minimum:0})}),FC=Y({role:L(`toolResult`),toolCallId:JS,toolName:JS,content:j(V([DC,kC]),{maxItems:128}),details:M(P()),isError:F(),timestamp:I({minimum:0})}),IC=V([NC,PC,FC]),LC=Y({runEpoch:I({minimum:0,maximum:2**53-1}),seq:I({minimum:1,maximum:2**53-1}),baseLeafId:V([JS,R()]),messages:j(IC,{minItems:1,maxItems:64})}),RC=Y({entryIds:j(JS,{minItems:1,maxItems:64}),newLeafId:JS}),zC=V([L(`stale-base-leaf`),L(`epoch-mismatch`),L(`invalid-batch`),L(`session-not-attached`)]),BC=Y({code:L(`INVALID_REQUEST`),message:B({minLength:1,maxLength:256}),details:Y({reason:zC})}),Y({type:L(`req`),id:YS,method:L(lC[1]),params:LC}),VC=Y({type:L(`res`),id:YS,ok:L(!0),payload:RC}),HC=Y({type:L(`res`),id:YS,ok:L(!1),error:BC}),V([VC,HC,tC]),UC=M(iC),WC=M(aC),GC=B({minLength:1,maxLength:KS,pattern:`^\\S(?:.*\\S)?$`}),KC=cC({text:iC,delta:iC,replace:M(L(!0)),mediaUrls:M(j(GC,{maxItems:128})),phase:M(V([L(`commentary`),L(`final_answer`)])),itemId:M(JS)}),qC=cC({text:iC,delta:iC}),JC={name:JS,toolCallId:JS,hideFromChannelProgress:M(L(!0))},YC=V([cC({...JC,phase:L(`start`),args:P()}),cC({...JC,phase:L(`update`),partialResult:P()}),cC({...JC,phase:L(`result`),meta:UC,isError:F(),result:P(),toolErrorSummary:UC})]),XC={kind:V([L(`exec`),L(`plugin`),L(`unknown`)]),title:iC,itemId:M(JS),toolCallId:M(JS),approvalId:M(JS),approvalSlug:M(JS),command:UC,host:UC,reason:UC,scope:M(V([L(`turn`),L(`session`)])),message:UC},ZC=V([cC({...XC,phase:L(`requested`),status:V([L(`pending`),L(`unavailable`)])}),cC({...XC,phase:L(`resolved`),status:V([L(`approved`),L(`denied`),L(`failed`)])})]),QC=cC({phase:L(`start`),startedAt:aC}),$C=cC({provider:GC,model:GC,error:iC,reason:M(US),authMode:M(GC),status:WC,code:M(B({minLength:1,maxLength:KS}))}),ew={selectedProvider:GC,selectedModel:GC,activeProvider:GC,activeModel:GC},tw=cC({...ew,phase:L(`fallback`),reasonSummary:iC,attemptSummaries:j(iC,{maxItems:128}),attempts:j($C,{maxItems:128})}),nw=cC({...ew,phase:L(`fallback_cleared`),previousActiveModel:M(GC)}),rw=cC({phase:L(`fallback_step`),fallbackStepType:L(`fallback_step`),fallbackStepFromModel:GC,fallbackStepToModel:M(GC),fallbackStepFromFailureReason:M(US),fallbackStepFromFailureDetail:UC,fallbackStepChainPosition:WC,fallbackStepFinalOutcome:V([L(`next_fallback`),L(`succeeded`),L(`chain_exhausted`)])}),iw={startedAt:WC,endedAt:aC,stopReason:M(JS),yielded:M(L(!0)),timeoutPhase:M(V([L(`queue`),L(`preflight`),L(`provider`),L(`post_turn`),L(`gateway_draining`)])),providerStarted:M(F()),aborted:M(F()),toolErrorSummary:UC,livenessState:M(V([L(`working`),L(`paused`),L(`blocked`),L(`abandoned`)])),replayInvalid:M(L(!0))},aw=V([cC({...iw,phase:L(`finishing`),error:UC}),cC({...iw,phase:L(`end`)}),cC({...iw,phase:L(`error`),error:iC,fallbackExhaustedFailure:M(L(!0))})]),ow=V([QC,tw,nw,rw,aw]),sw=V([cC({kind:L(`assistant`),payload:KC}),cC({kind:L(`thinking`),payload:qC}),cC({kind:L(`tool`),payload:YC}),cC({kind:L(`approval`),payload:ZC}),cC({kind:L(`lifecycle`),payload:ow})]),cw=cC({runEpoch:aC,lastAckedSeq:aC,seq:oC,runId:JS,event:sw}),lw=cC({ackedSeq:aC}),uw=V([cC({reason:V([L(`epoch-mismatch`),L(`session-not-attached`),L(`invalid-event`),L(`capacity-exceeded`)])}),cC({reason:L(`resync-required`),ackedSeq:aC,expectedSeq:oC})]),dw=cC({code:L(`INVALID_REQUEST`),message:B({minLength:1,maxLength:256}),details:uw}),cC({type:L(`req`),id:YS,method:L(lC[2]),params:cw}),fw=cC({type:L(`res`),id:YS,ok:L(!0),payload:lw}),pw=cC({type:L(`res`),id:YS,ok:L(!1),error:dw}),V([fw,pw,tC])})))()}function hw(e){let t=e.trim().toLowerCase();return yw.find(e=>e===t)??null}function gw(){if(Sw===void 0)try{Sw=RegExp(`^\\p{RGI_Emoji}$`,`v`)}catch{Sw=null}return Sw}function _w(e){return e.length>16||/^[!-~]$/u.test(e)?!1:[...new Intl.Segmenter(void 0,{granularity:`grapheme`}).segment(e)].length===1}function vw(e){let t=e.trim();if(!t)return null;if(xw.has(t))return t;let n=gw();return(n?n.test(t):_w(t))?t:null}var yw,bw,xw,Sw;function Cw(){return(Cw=e((()=>{yw=[`red`,`blue`,`green`,`yellow`,`purple`,`orange`,`pink`,`cyan`],bw=[`braces`,`book`,`monitor`,`bot`,`kanban`,`coins`],xw=new Set(bw)})))()}function ww(e){return w(e,`~refine`)&&y(e[`~refine`])&&Tr(e[`~refine`],0,e=>b(e)&&w(e,`check`)&&w(e,`error`)&&cr(e.check)&&cr(e.error))}function Tw(){return(Tw=e((()=>{O()})))()}function Ew(e){return b(e)&&!y(e)}function Dw(e){return or(e)}function Ow(e){return Ew(e)||Dw(e)}function kw(){return(kw=e((()=>{O()})))()}function Aw(e){return w(e,`additionalItems`)&&Ow(e.additionalItems)}function jw(){return(jw=e((()=>{O(),kw()})))()}function Mw(e){return w(e,`additionalProperties`)&&Ow(e.additionalProperties)}function Nw(){return(Nw=e((()=>{O(),kw()})))()}function Pw(e){return w(e,`allOf`)&&y(e.allOf)&&e.allOf.every(e=>Ow(e))}function Fw(){return(Fw=e((()=>{O(),kw()})))()}function Iw(e){return w(e,`$anchor`)&&x(e.$anchor)}function Lw(){return(Lw=e((()=>{O()})))()}function Rw(e){return w(e,`anyOf`)&&y(e.anyOf)&&e.anyOf.every(e=>Ow(e))}function zw(){return(zw=e((()=>{O(),kw()})))()}function Bw(e){return w(e,`const`)}function Vw(){return(Vw=e((()=>{O()})))()}function Hw(e){return w(e,`contains`)&&Ow(e.contains)}function Uw(){return(Uw=e((()=>{O(),kw()})))()}function Ww(e){return w(e,`default`)}function Gw(){return(Gw=e((()=>{O()})))()}function Kw(e){return w(e,`dependencies`)&&b(e.dependencies)&&Object.values(e.dependencies).every(e=>Ow(e)||y(e)&&e.every(e=>x(e)))}function qw(){return(qw=e((()=>{O(),kw()})))()}function Jw(e){return w(e,`dependentRequired`)&&b(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>y(e)&&e.every(e=>x(e)))}function Yw(){return(Yw=e((()=>{O()})))()}function Xw(e){return w(e,`dependentSchemas`)&&b(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>Ow(e))}function Zw(){return(Zw=e((()=>{O(),kw()})))()}function Qw(e){return w(e,`$dynamicAnchor`)&&x(e.$dynamicAnchor)}function $w(){return($w=e((()=>{O()})))()}function eT(e){return w(e,`$dynamicRef`)&&x(e.$dynamicRef)}function tT(){return(tT=e((()=>{O()})))()}function nT(e){return w(e,`else`)&&Ow(e.else)}function rT(){return(rT=e((()=>{O(),kw()})))()}function iT(e){return w(e,`enum`)&&y(e.enum)}function aT(){return(aT=e((()=>{O()})))()}function oT(e){return w(e,`exclusiveMaximum`)&&(dr(e.exclusiveMaximum)||ar(e.exclusiveMaximum))}function sT(){return(sT=e((()=>{O()})))()}function cT(e){return w(e,`exclusiveMinimum`)&&(dr(e.exclusiveMinimum)||ar(e.exclusiveMinimum))}function lT(){return(lT=e((()=>{O()})))()}function uT(e){return w(e,`format`)&&x(e.format)}function dT(){return(dT=e((()=>{O()})))()}function fT(e){return w(e,`$id`)&&x(e.$id)}function pT(){return(pT=e((()=>{O()})))()}function mT(e){return w(e,`if`)&&Ow(e.if)}function hT(){return(hT=e((()=>{O(),kw()})))()}function gT(e){return w(e,`items`)&&(Ow(e.items)||y(e.items)&&e.items.every(e=>Ow(e)))}function _T(e){return gT(e)&&y(e.items)}function vT(){return(vT=e((()=>{O(),kw()})))()}function yT(e){return w(e,`maximum`)&&(dr(e.maximum)||ar(e.maximum))}function bT(){return(bT=e((()=>{O()})))()}function xT(e){return w(e,`maxContains`)&&dr(e.maxContains)}function ST(){return(ST=e((()=>{O()})))()}function CT(e){return w(e,`maxItems`)&&dr(e.maxItems)}function wT(){return(wT=e((()=>{O()})))()}function TT(e){return w(e,`maxLength`)&&dr(e.maxLength)}function ET(){return(ET=e((()=>{O()})))()}function DT(e){return w(e,`maxProperties`)&&dr(e.maxProperties)}function OT(){return(OT=e((()=>{O()})))()}function kT(e){return w(e,`minimum`)&&(dr(e.minimum)||ar(e.minimum))}function AT(){return(AT=e((()=>{O()})))()}function jT(e){return w(e,`minContains`)&&dr(e.minContains)}function MT(){return(MT=e((()=>{O()})))()}function NT(e){return w(e,`minItems`)&&dr(e.minItems)}function PT(){return(PT=e((()=>{O()})))()}function FT(e){return w(e,`minLength`)&&dr(e.minLength)}function IT(){return(IT=e((()=>{O()})))()}function LT(e){return w(e,`minProperties`)&&dr(e.minProperties)}function RT(){return(RT=e((()=>{O()})))()}function zT(e){return w(e,`multipleOf`)&&(dr(e.multipleOf)||ar(e.multipleOf))}function BT(){return(BT=e((()=>{O()})))()}function VT(e){return w(e,`not`)&&Ow(e.not)}function HT(){return(HT=e((()=>{O(),kw()})))()}function UT(e){return w(e,`oneOf`)&&y(e.oneOf)&&e.oneOf.every(e=>Ow(e))}function WT(){return(WT=e((()=>{O(),kw()})))()}function GT(e){return w(e,`pattern`)&&(x(e.pattern)||e.pattern instanceof RegExp)}function KT(){return(KT=e((()=>{O()})))()}function qT(e){return w(e,`patternProperties`)&&b(e.patternProperties)&&Object.values(e.patternProperties).every(e=>Ow(e))}function JT(){return(JT=e((()=>{O(),kw()})))()}function YT(e){return w(e,`prefixItems`)&&y(e.prefixItems)&&e.prefixItems.every(e=>Ow(e))}function XT(){return(XT=e((()=>{O(),kw()})))()}function ZT(e){return w(e,`properties`)&&b(e.properties)&&Object.values(e.properties).every(e=>Ow(e))}function QT(){return(QT=e((()=>{O(),kw()})))()}function $T(e){return w(e,`propertyNames`)&&(b(e.propertyNames)||Ow(e.propertyNames))}function eE(){return(eE=e((()=>{O(),kw()})))()}function tE(e){return w(e,`$recursiveAnchor`)&&or(e.$recursiveAnchor)}function nE(e){return tE(e)&&S(e.$recursiveAnchor,!0)}function rE(){return(rE=e((()=>{O()})))()}function iE(e){return w(e,`$recursiveRef`)&&x(e.$recursiveRef)}function aE(){return(aE=e((()=>{O()})))()}function oE(e){return w(e,`$ref`)&&x(e.$ref)}function sE(){return(sE=e((()=>{O()})))()}function cE(e){return w(e,`required`)&&y(e.required)&&e.required.every(e=>x(e))}function lE(){return(lE=e((()=>{O()})))()}function uE(e){return w(e,`then`)&&Ow(e.then)}function dE(){return(dE=e((()=>{O(),kw()})))()}function fE(e){return w(e,`type`)&&(x(e.type)||y(e.type)&&e.type.every(e=>x(e)))}function pE(){return(pE=e((()=>{O()})))()}function mE(e){return w(e,`uniqueItems`)&&or(e.uniqueItems)}function hE(){return(hE=e((()=>{O()})))()}function gE(e){return w(e,`unevaluatedItems`)&&Ow(e.unevaluatedItems)}function _E(){return(_E=e((()=>{O(),kw()})))()}function vE(e){return w(e,`unevaluatedProperties`)&&Ow(e.unevaluatedProperties)}function yE(){return(yE=e((()=>{O(),kw()})))()}function bE(e){return gE(e)||vE(e)||Dr(T(e),t=>SE(e[t]))}function xE(e){return Dr(e,e=>SE(e))}function SE(e){return y(e)?xE(e):b(e)?bE(e):!1}function CE(e,t){return SE(t)||Dr(T(e),t=>SE(e[t]))}var wE,TE,EE,DE;function OE(){return(OE=e((()=>{_E(),yE(),O(),wE=class{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}Push(){return yi(E(`context`,`Push`),[])}Pop(){return yi(E(`context`,`Pop`),[])}AddIndex(e){return yi(E(`context`,`AddIndex`),[e])}AddKey(e){return yi(E(`context`,`AddKey`),[e])}Merge(e){return yi(E(`context`,`Merge`),[e])}},TE=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(e=>this.GetIndices().add(e)),t.GetKeys().forEach(e=>this.GetKeys().add(e));return!0}},EE=class extends TE{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},DE=class extends EE{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}}})))()}function kE(e){let t=`External[${ME.variables.length}]`;return ME.variables.push(e),t}function AE(){ME.variables=[]}function jE(){return{...ME}}var ME;function NE(){return(NE=e((()=>{ME={identifier:`External`,variables:[]}})))()}function PE(e,t,n,r){return li(kE(n[`~refine`].map(e=>e)),D(0),[`refinement`,`_`],yi(E(`refinement`,`check`),[r]))}function FE(e,t,n,r){return Tr(n[`~refine`],0,(e,t)=>e.check(r))}function IE(e,t,n,r,i,a){return Er(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function LE(){return(LE=e((()=>{NE(),O()})))()}function RE(){return`var_${zE++}`}var zE;function BE(){return(BE=e((()=>{zE=0})))()}function VE(e){return gT(e)&&y(e.items)}function HE(e,t,n,r){let[i,a]=[RE(),RE()],o=DN(e,t,n.additionalItems,i),s=ii(a,D(n.items.length)),c=t.AddIndex(a);return li(r,D(0),[i,a],Vr(s,Br(o,c)))}function UE(e,t,n,r){let[i,a]=[RE(),RE()],o=DN(e,t,n.additionalItems,i),s=ii(a,D(n.items.length));return li(r,D(0),[i,a],Vr(s,o))}function WE(e,t,n,r){return VE(n)?t.UseUnevaluated()?HE(e,t,n,r):UE(e,t,n,r):D(!0)}function GE(e,t,n,r){return!VE(n)||Tr(r,0,(r,i)=>gr(i,n.items.length)||kN(e,t,n.additionalItems,r)&&t.AddIndex(i))}function KE(e,t,n,r,i,a){return!VE(i)||Tr(a,0,(a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return gr(o,i.items.length)||jN(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)})}function qE(){return(qE=e((()=>{vT(),BE(),O(),NN()})))()}function JE(e){return new RegExp(e,`u`)}function YE(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function XE(e){let t=[];return qT(e)&&t.push(...T(e.patternProperties)),ZT(e)&&t.push(...T(e.properties).map(YE)),S(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function ZE(e,t,n){return cE(t)&&ZT(t)&&!qT(t)&&S(t.additionalProperties,!1)&&S(T(t.properties).length,t.required.length)}function QE(e,t,n){return ni(E(yi(E(`Object`,`getOwnPropertyNames`),[n]),`length`),D(t.required.length))}function $E(e,t,n,r){let[i,a]=[RE(),RE()],o=kE(JE(XE(n))),s=DN(e,t,n.additionalProperties,`${r}[${i}]`),c=yi(E(o,`test`),[i]),l=t.AddKey(i),u=t.UseUnevaluated()?Vr(c,Br(s,l)):Vr(c,s);return li(mi(r),D(0),[i,a],u)}function eD(e,t,n,r){return ZE(t,n,r)?QE(t,n,r):$E(e,t,n,r)}function tD(e,t,n,r){let i=JE(XE(n));return Tr(T(r),0,(a,o)=>i.test(a)||kN(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function nD(e,t,n,r,i,a){let o=JE(XE(i)),s=[];return Er(T(a),0,(c,l)=>{let u=`${n}/additionalProperties`,d=`${r}/${c}`,f=new DE,p=o.test(c)||jN(e,f,u,d,i.additionalProperties,a[c])&&t.AddKey(c);return p||s.push(c),p})||t.AddError({keyword:`additionalProperties`,schemaPath:n,instancePath:r,params:{additionalProperties:s}})}function rD(){return(rD=e((()=>{JT(),QT(),lE(),NE(),BE(),OE(),O(),NN()})))()}function iD(e,t,n,r,i){let a=Ci(`results`,`[]`),o=n.map((e,t)=>Ci(`context_${t}`,bi(`CheckContext`,[]))),s=n.map((n,i)=>Ci(`condition_${i}`,yi(vi([`context`],ON(e,t,n,r)),[`context_${i}`]))),c=n.map((e,t)=>wi(`condition_${t}`,yi(E(`results`,`push`),[`context_${t}`]))),l=Ti(Br(i,t.Merge(`results`)));return yi(vi([],Si([a,...o,...s,...c,l])),[])}function aD(){return(aD=e((()=>{O(),NN()})))()}function oD(e,t,n,r){return iD(e,t,n.allOf,r,ni(E(`results`,`length`),D(n.allOf.length)))}function sD(e,t,n,r){return Ei(n.allOf.map(n=>ON(e,t,n,r)))}function cD(e,t,n,r){return t.UseUnevaluated()?oD(e,t,n,r):sD(e,t,n,r)}function lD(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new TE;return AN(e,i,n,r)?[...t,i]:t},[]);return S(i.length,n.allOf.length)&&t.Merge(i)}function uD(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new DE,u=MN(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=S(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function dD(){return(dD=e((()=>{OE(),aD(),O(),NN()})))()}function fD(e,t,n,r){return iD(e,t,n.anyOf,r,ri(E(`results`,`length`),D(0)))}function pD(e,t,n,r){return Di(n.anyOf.map(n=>ON(e,t,n,r)))}function mD(e,t,n,r){return t.UseUnevaluated()?fD(e,t,n,r):pD(e,t,n,r)}function hD(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new TE;return AN(e,i,n,r)?[...t,i]:t},[]);return hr(i.length,0)&&t.Merge(i)}function gD(e,t,n,r,i,a){let o=[],s=i.anyOf.reduce((t,i,s)=>{let c=new DE,l=MN(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=hr(s.length,0)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c||t.AddError({keyword:`anyOf`,schemaPath:n,instancePath:r,params:{}})}function _D(){return(_D=e((()=>{OE(),aD(),O(),NN()})))()}function vD(e,t,n,r){return D(!!n)}function yD(e,t,n,r){return n}function bD(e,t,n,r,i,a){return yD(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function xD(){return(xD=e((()=>{O()})))()}function SD(e,t,n,r){return xr(n.const)?ni(r,D(n.const)):gi(r,kE(n.const))}function CD(e,t,n,r){return xr(n.const)?S(r,n.const):Lr(r,n.const)}function wD(e,t,n,r,i,a){return CD(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function TD(){return(TD=e((()=>{NE(),O()})))()}function ED(e){return!(jT(e)&&S(e.minContains,0))}function DD(e,t,n,r){let[i,a]=[RE(),RE()];return Br(Hr(ni(E(r,`length`),D(0))),di(r,[i,a],Br(ON(e,t,n.contains,i),t.AddIndex(a))))}function OD(e,t,n,r){let[i]=[RE()];return Br(Hr(ni(E(r,`length`),D(0))),ui(r,[i,`_`],ON(e,t,n.contains,i)))}function kD(e,t,n,r){return ED(n)?t.UseUnevaluated()?DD(e,t,n,r):OD(e,t,n,r):D(!0)}function AD(e,t,n,r){return!ED(n)||!S(r.length,0)&&Or(r,(r,i)=>AN(e,t,n.contains,r)&&t.AddIndex(i))}function jD(e,t,n,r,i,a){return AD(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function MD(){return(MD=e((()=>{MT(),BE(),O(),NN()})))()}function ND(e,t,n,r){return Vr(ni(E(mi(r),`length`),D(0)),Ei(Mr(n.dependencies).map(([n,i])=>{let a=Hr(hi(r,D(n))),o=ON(e,t,i,r);return Vr(a,y(i)?(e=>Ei(e.map(e=>hi(r,D(e)))))(i):o)})))}function PD(e,t,n,r){let i=S(T(r).length,0),a=Tr(Mr(n.dependencies),0,([n,i])=>!w(r,n)||(y(i)?i.every(e=>w(r,e)):AN(e,t,i,r)));return i||a}function FD(e,t,n,r,i,a){let o=S(T(a).length,0),s=Er(Mr(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!w(a,i)||(y(o)?o.every(e=>w(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):MN(e,t,s,r,o,a))});return o||s}function ID(){return(ID=e((()=>{O(),NN()})))()}function LD(e,t,n,r){return Vr(ni(E(mi(r),`length`),D(0)),Ei(Mr(n.dependentRequired).map(([e,t])=>Vr(Hr(hi(r,D(e))),Ei(t.map(e=>hi(r,D(e))))))))}function RD(e,t,n,r){let i=S(T(r).length,0),a=Tr(Mr(n.dependentRequired),0,([e,t])=>!w(r,e)||t.every(e=>w(r,e)));return i||a}function zD(e,t,n,r,i,a){let o=S(T(a).length,0),s=Er(Mr(i.dependentRequired),0,([e,i])=>!w(a,e)||Er(i,0,o=>w(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function BD(){return(BD=e((()=>{O()})))()}function VD(e,t,n,r){return Vr(ni(E(mi(r),`length`),D(0)),Ei(Mr(n.dependentSchemas).map(([n,i])=>Vr(Hr(hi(r,D(n))),ON(e,t,i,r)))))}function HD(e,t,n,r){let i=S(T(r).length,0),a=Tr(Mr(n.dependentSchemas),0,([n,i])=>!w(r,n)||AN(e,t,i,r));return i||a}function UD(e,t,n,r,i,a){let o=S(T(a).length,0),s=Er(Mr(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!w(a,i)||MN(e,t,s,r,o,a)});return o||s}function WD(){return(WD=e((()=>{O(),NN()})))()}function GD(e,t,n,r){return BN(e,t,e.DynamicRef(n)??!1,r)}function KD(e,t,n,r){let i=e.DynamicRef(n)??!1;return Ow(i)&&AN(e,t,i,r)}function qD(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return Ow(o)&&MN(e,t,`#`,r,o,a)}function JD(){return(JD=e((()=>{WN(),kw(),NN()})))()}function YD(e,t,n,r){return Di(n.enum.map(e=>xr(e)?ni(r,D(e)):gi(r,kE(e))))}function XD(e,t,n,r){return Dr(n.enum,e=>xr(e)?S(r,e):Lr(r,e))}function ZD(e,t,n,r,i,a){return XD(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function QD(){return(QD=e((()=>{NE(),O()})))()}function $D(e,t,n,r){return ii(r,D(n.exclusiveMaximum))}function eO(e,t,n,r){return gr(r,n.exclusiveMaximum)}function tO(e,t,n,r,i,a){return eO(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function nO(){return(nO=e((()=>{O()})))()}function rO(e,t,n,r){return ri(r,D(n.exclusiveMinimum))}function iO(e,t,n,r){return hr(r,n.exclusiveMinimum)}function aO(e,t,n,r,i,a){return iO(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}function oO(){return(oO=e((()=>{O()})))()}function sO(e){return e%4==0&&(e%100!=0||e%400==0)}function cO(e){let t=uO.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&sO(n)?29:lO[r])}var lO,uO;function dO(){return(dO=e((()=>{lO=[0,31,28,31,30,31,30,31,31,30,31,30,31],uO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/})))()}function fO(e,t=!0){let n=pO.exec(e);if(!n||t&&!n[4]&&!n[5])return!1;let r=+n[1],i=+n[2],a=+n[3];if(r>23||i>59||a>60)return!1;if(n[5]){let e=+n[6],t=+n[7];if(e>23||t>59)return!1}if(a<60)return!0;let o=n[5]===`-`?-1:1,s=+(n[6]||0),c=+(n[7]||0);return((r*60+i-o*(s*60+c))%1440+1440)%1440==1439}var pO;function mO(){return(mO=e((()=>{pO=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:([Zz])|([+-])(\d\d):(\d\d))?$/})))()}function hO(e){let t=e.split(/T/i);return t.length===2&&cO(t[0])&&fO(t[1])}function gO(){return(gO=e((()=>{dO(),mO()})))()}function _O(e){return vO.test(e)}var vO;function yO(){return(yO=e((()=>{vO=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/})))()}function bO(e){return xO.test(e)}var xO;function SO(){return(SO=e((()=>{xO=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\.)*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i})))()}var CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO;function qO(){return(qO=e((()=>{CO=/^(?!-).*(?<!-)$/,wO=/^(?!..--)/,TO=/^[a-zA-Z0-9-]*$/,EO=/[^\p{ASCII}]/u,DO=/[0-9]/,OO=/[\u{0660}-\u{0669}]/u,kO=/[\u{06f0}-\u{06f9}]/u,AO=/[\u{002e}\u{002c}\u{003a}\u{002f}]/u,jO=/[\u{002d}\u{002b}]/u,MO=/\p{Mn}/u,NO=/\p{Mc}/u,PO=/[\p{Mn}\p{Mc}\p{Me}]/u,FO=/\p{L}/u,IO=/\p{Nd}/u,LO=/\p{Script=Greek}/u,RO=/\p{Script=Hebrew}/u,zO=/[\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}]/u,BO=/[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Thaana}\p{Script=Mandaic}]/u,VO=/[\u{094d}\u{09cd}\u{0a4d}\u{0acd}\u{0b4d}\u{0bcd}\u{0c4d}\u{0ccd}\u{0d3b}\u{0d3c}\u{0d4d}\u{0dca}\u{1b44}\u{1baa}\u{1bab}\u{a9c0}\u{11046}\u{1107f}\u{110b9}\u{11133}\u{11134}\u{111c0}\u{11235}\u{1134d}\u{11442}\u{114c2}\u{115bf}\u{1163f}\u{116b6}\u{11c3f}\u{11d44}\u{11d45}]/u,HO=/[\u{0640}\u{07fa}\u{302e}\u{302f}\u{3031}\u{3032}\u{3033}\u{3034}\u{3035}\u{303b}]/u,UO=/[\u{00b7}\u{0375}\u{05f3}\u{05f4}\u{200c}\u{200d}\u{30fb}]/u,WO=/[\u{00df}\u{03c2}\u{06fd}\u{06fe}\u{0f0b}\u{3007}]/u,GO=new RegExp([DO,kO].map(e=>e.source).join(`|`),`u`),KO=new RegExp([FO,jO,AO,IO,MO,NO,UO,WO].map(e=>e.source).join(`|`),`u`)})))()}function JO(e){return CO.test(e)&&wO.test(e)&&TO.test(e)}function YO(){return(YO=e((()=>{qO()})))()}function XO(){throw null}function ZO(e){return e.toLowerCase().startsWith(`xn--`)}function QO(e,t,n){e=n?Math.floor(e/ok):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=nk;return r+Math.floor(36*e/(e+ak))}function $O(e){let t=[],n=ck,r=0,i=sk,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n<a;n++){let r=e.charCodeAt(n);r>=128&&XO(),t.push(r)}let o=a<0?0:a+1;for(;o<e.length;){let a=r,s=1,c=nk;for(;;){o>=e.length&&XO();let t=e.charCodeAt(o++),n;t>=97&&t<=122?n=t-97:t>=48&&t<=57?n=t-48+26:XO(),r+=n*s;let a=c<=i?rk:c>=i+ik?ik:c-i;if(n<a)break;s*=nk-a,c+=nk}let l=t.length+1;i=QO(r-a,l,a===0),n+=Math.floor(r/l),r%=l,t.splice(r,0,n),r++}return String.fromCodePoint(...t)}function ek(e){return e<26?String.fromCharCode(e+97):String.fromCharCode(e-26+48)}function tk(e){let t=e.replace(lk,``),n=t.length,r=n>0?[t,`-`]:[],i=Array.from(e,e=>e.codePointAt(0)),a=ck,o=0,s=sk,c=n;for(;c<i.length;){let e=1/0;for(let t of i)t>=a&&t<e&&(e=t);o+=(e-a)*(c+1),a=e;for(let e of i)if(e<a&&o++,e===a){let e=o;for(let t=nk;;t+=nk){let n=t<=s?rk:t>=s+ik?ik:t-s;if(e<n)break;let i=n+(e-n)%(nk-n);r.push(ek(i)),e=Math.floor((e-n)/(nk-n))}r.push(ek(e)),s=QO(o,c+1,c===n),o=0,c++}o++,a++}return r.join(``)}var nk,rk,ik,ak,ok,sk,ck,lk;function uk(){return(uk=e((()=>{qO(),nk=36,rk=1,ik=26,ak=38,ok=700,sk=72,ck=128,lk=new RegExp(EO.source,`gu`)})))()}function dk(e){if(ZO(e))try{return pk($O(e.slice(4).toLowerCase()))}catch{return!1}return pk(e)}function fk(e){let t=String.fromCodePoint(e);return GO.test(t)?`EN`:OO.test(t)?`AN`:MO.test(t)?`NSM`:RO.test(t)?`R`:BO.test(t)?`AL`:FO.test(t)?`L`:`ON`}function pk(e){for(let t of e)if(_k.test(fk(t.codePointAt(0))))return!0;return!1}function mk(e){let t=!1,n=gk,r=!1,i=!1,a=!0;for(let o of e){let e=fk(o.codePointAt(0));if(a){if(e!==`L`&&e!==`R`&&e!==`AL`)return!1;t=e===`R`||e===`AL`,n=t?hk:gk,a=!1}if(!n.test(e))return!1;e===`EN`?r=!0:e===`AN`&&(i=!0)}return!(t&&r&&i)}var hk,gk,_k;function vk(){return(vk=e((()=>{uk(),qO(),hk=/^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/,gk=/^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/,_k=/^(?:R|AL|AN)$/})))()}function yk(e){return EO.test(e)&&tk(e).length+4>63}function bk(e){return e[0]===`-`||e[e.length-1]===`-`||e.slice(2).join(``).startsWith(`--`)}function xk(e){if(yk(e)||pk(e)&&!mk(e))return!1;let t=[...e],n=t.map(e=>e.codePointAt(0)),r=n.length;if(bk(t)||PO.test(t[0]))return!1;let i=!1;for(let e=0;e<r;e++){let r=n[e],a=t[e];if(HO.test(a)||!KO.test(a))return!1;zO.test(a)&&(i=!0);let o=n[e-1],s=n[e+1];switch(r){case 183:if(o!==108||s!==108)return!1;break;case 885:if(!s||!LO.test(t[e+1]))return!1;break;case 1523:case 1524:if(!o||!RO.test(t[e-1]))return!1;break;case 8204:if(!o||o<128&&!VO.test(t[e-1]))return!1;break;case 8205:if(!o||!VO.test(t[e-1]))return!1}}return!(e.includes(`・`)&&!i)}function Sk(){return(Sk=e((()=>{qO(),vk(),uk()})))()}function Ck(e){if(!ZO(e))return!1;try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=$O(t);return EO.test(n)?xk(n):!1}catch{return!1}}function wk(){return(wk=e((()=>{uk(),Sk(),qO()})))()}function Tk(e){return e.length>0&&e.length<=63}function Ek(e){return Tk(e)&&(Ck(e)||JO(e))}function Dk(e){return e.length===0||e.length>253||e.charCodeAt(e.length-1)===46?!1:e.split(`.`).every(e=>Ek(e))}function Ok(){return(Ok=e((()=>{YO(),wk()})))()}function kk(e){return e.length>0&&e.length<=63}function Ak(e){return kk(e)&&(Ck(e)||xk(e))}function jk(e){return e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`)}function Mk(e){if(e.length===0||e.includes(` `))return!1;let t=jk(e);if(t.length>253)return!1;let n=t.split(`.`),r=n.some(e=>dk(e));return n.every(e=>Ak(e)&&(!r||mk(e)))}function Nk(){return(Nk=e((()=>{vk(),Sk(),wk()})))()}function Pk(){return(Pk=e((()=>{Ok(),Nk()})))()}function Fk(e){return Dk(e)}function Ik(){return(Ik=e((()=>{Pk()})))()}function Lk(e){return Rk.test(e.normalize(`NFC`))}var Rk;function zk(){return(zk=e((()=>{Rk=/^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu})))()}function Bk(e){return Mk(e)}function Vk(){return(Vk=e((()=>{Pk()})))()}function Hk(e){return Uk.test(e)}var Uk;function Wk(){return(Wk=e((()=>{Uk=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/})))()}function Gk(e){return Kk.test(e)}var Kk;function qk(){return(qk=e((()=>{Kk=/^(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:)?[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)$/i})))()}function Jk(e){return!Yk.test(e)&&!Xk.test(e)&&URL.canParse(e,`http://example.com`)}var Yk,Xk;function Zk(){return(Zk=e((()=>{Yk=/[\x00-\x20\x7F\\]|%(?![0-9a-fA-F]{2})/,Xk=/^[a-zA-Z][a-zA-Z0-9+\-.]*\/\//})))()}function Qk(e){return e.length<eA?e.replace(tA,`[::1]`):e}function $k(e){return!nA.test(e)&&URL.canParse(Qk(e))}var eA,tA,nA;function rA(){return(rA=e((()=>{eA=2048,tA=/\[[vV][0-9a-fA-F]+\.[^\]]+\]/,nA=/[\x00-\x20<>\^`{|}\\]/})))()}function iA(e){return aA.test(e)}var aA;function oA(){return(oA=e((()=>{aA=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i})))()}function sA(e){return cA.test(e)}var cA;function lA(){return(lA=e((()=>{cA=/^(?:\/(?:[^~/]|~0|~1)*)*$/})))()}function uA(e){try{return new RegExp(e,`u`),!0}catch{return!1}}function dA(e){return fA.test(e)}var fA;function pA(){return(pA=e((()=>{fA=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/})))()}function mA(e){return hA.test(e)}var hA;function gA(){return(gA=e((()=>{hA=/^(?:[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?)(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i})))()}function _A(e){return vA.test(e)}var vA;function yA(){return(yA=e((()=>{vA=/^(?:(?:[^\x00-\x20"<>%\\^`{|}\x7f]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?)*\})*$/i})))()}function bA(e){return xA.test(e)}var xA;function SA(){return(SA=e((()=>{xA=/^[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i})))()}function CA(e){return URL.canParse(e)}function wA(e){return TA.test(e)}var TA;function EA(){return(EA=e((()=>{TA=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i})))()}function DA(){PA.clear()}function OA(){return[...PA.entries()]}function kA(e,t){PA.set(e,t)}function AA(e){return PA.has(e)}function jA(e){return PA.get(e)}function MA(e,t){return PA.get(e)?.(t)??!0}function NA(){DA(),PA.set(`date-time`,hO),PA.set(`date`,cO),PA.set(`duration`,_O),PA.set(`email`,bO),PA.set(`hostname`,Fk),PA.set(`idn-email`,Lk),PA.set(`idn-hostname`,Bk),PA.set(`ipv4`,Hk),PA.set(`ipv6`,Gk),PA.set(`iri-reference`,Jk),PA.set(`iri`,$k),PA.set(`json-pointer-uri-fragment`,iA),PA.set(`json-pointer`,sA),PA.set(`regex`,uA),PA.set(`relative-json-pointer`,dA),PA.set(`time`,fO),PA.set(`uri-reference`,mA),PA.set(`uri-template`,_A),PA.set(`uri`,bA),PA.set(`url`,CA),PA.set(`uuid`,wA)}var PA;function FA(){return(FA=e((()=>{gO(),dO(),yO(),SO(),Ik(),zk(),Vk(),Wk(),qk(),Zk(),rA(),oA(),lA(),pA(),mO(),gA(),yA(),SA(),EA(),PA=new Map,NA()})))()}var IA=t({Clear:()=>DA,Entries:()=>OA,Get:()=>jA,Has:()=>AA,IsDate:()=>cO,IsDateTime:()=>hO,IsDuration:()=>_O,IsEmail:()=>bO,IsHostname:()=>Fk,IsIPv4:()=>Hk,IsIPv6:()=>Gk,IsIdnEmail:()=>Lk,IsIdnHostname:()=>Bk,IsIri:()=>$k,IsIriReference:()=>Jk,IsJsonPointer:()=>sA,IsJsonPointerUriFragment:()=>iA,IsRegex:()=>uA,IsRelativeJsonPointer:()=>dA,IsTime:()=>fO,IsUri:()=>bA,IsUriReference:()=>mA,IsUriTemplate:()=>_A,IsUrl:()=>CA,IsUuid:()=>wA,Reset:()=>NA,Set:()=>kA,Test:()=>MA});function LA(){return(LA=e((()=>{FA(),gO(),dO(),yO(),SO(),Ik(),zk(),Vk(),Wk(),qk(),Zk(),rA(),oA(),lA(),pA(),mO(),gA(),yA(),SA(),EA()})))()}function RA(){return(RA=e((()=>{LA()})))()}function zA(e,t,n,r){return yi(E(`Format`,`Test`),[D(n.format),r])}function BA(e,t,n,r){return MA(n.format,r)}function VA(e,t,n,r,i,a){return BA(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function HA(){return(HA=e((()=>{RA(),O()})))()}function UA(e,t,n,r){let i=!uE(n)||n.then,a=!nT(n)||n.else;return xi(ON(e,t,n.if,r),ON(e,t,i,r),ON(e,t,a,r))}function WA(e,t,n,r){let i=!uE(n)||n.then,a=!nT(n)||n.else;return AN(e,t,n.if,r)?AN(e,t,i,r):AN(e,t,a,r)}function GA(e,t,n,r,i,a){let o=!uE(i)||i.then,s=!nT(i)||i.else,c=new DE,l=MN(e,c,`${n}/if`,r,i.if,a)?MN(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):MN(e,t,`${n}/else`,r,s,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`else`}});return l&&t.Merge([c]),l}function KA(){return(KA=e((()=>{dE(),rT(),OE(),O(),NN()})))()}function qA(e,t,n,r){return Ei(n.items.map((n,i)=>Vr(ai(E(r,`length`),D(i)),Br(DN(e,t,n,`${r}[${i}]`),t.AddIndex(D(i))))))}function JA(e,t,n,r){return Ei(n.items.map((n,i)=>Vr(ai(E(r,`length`),D(i)),DN(e,t,n,`${r}[${i}]`))))}function YA(e,t,n,r){return t.UseUnevaluated()?qA(e,t,n,r):JA(e,t,n,r)}function XA(e,t,n,r){return Tr(n.items,0,(n,i)=>_r(r.length,i)||kN(e,t,n,r[i])&&t.AddIndex(i))}function ZA(e,t,n,r,i,a){return Er(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return _r(a.length,o)||jN(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function QA(e,t,n,r){let i=YT(n)?n.prefixItems.length:0,a=DN(e,t,n.items,`element`),o=t.AddIndex(`index`);return li(r,D(i),[`element`,`index`],Br(a,o))}function $A(e,t,n,r){let i=YT(n)?n.prefixItems.length:0,a=DN(e,t,n.items,`element`);return li(r,D(i),[`element`,`index`],a)}function ej(e,t,n,r){return t.UseUnevaluated()?QA(e,t,n,r):$A(e,t,n,r)}function tj(e,t,n,r){return Tr(r,YT(n)?n.prefixItems.length:0,(r,i)=>kN(e,t,n.items,r)&&t.AddIndex(i))}function nj(e,t,n,r,i,a){return Er(a,YT(i)?i.prefixItems.length:0,(a,o)=>jN(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function rj(e,t,n,r){return _T(n)?YA(e,t,n,r):ej(e,t,n,r)}function ij(e,t,n,r){return _T(n)?XA(e,t,n,r):tj(e,t,n,r)}function aj(e,t,n,r,i,a){return _T(i)?ZA(e,t,n,r,i,a):nj(e,t,n,r,i,a)}function oj(){return(oj=e((()=>{XT(),vT(),O(),NN()})))()}function sj(e){return Hw(e)}function cj(e,t,n,r){if(!sj(n))return D(!0);let[i]=[RE()];return ai(fi(r,[i,`_`],ON(e,t,n.contains,i)),D(n.maxContains))}function lj(e,t,n,r){return!sj(n)||_r(kr(r,r=>AN(e,t,n.contains,r)),n.maxContains)}function uj(e,t,n,r,i,a){let o=jT(i)?i.minContains:1;return lj(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function dj(){return(dj=e((()=>{Uw(),MT(),BE(),O(),NN()})))()}function fj(e,t,n,r){return ai(r,D(n.maximum))}function pj(e,t,n,r){return _r(r,n.maximum)}function mj(e,t,n,r,i,a){return pj(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function hj(){return(hj=e((()=>{O()})))()}function gj(e,t,n,r){return ai(E(r,`length`),D(n.maxItems))}function _j(e,t,n,r){return _r(r.length,n.maxItems)}function vj(e,t,n,r,i,a){return _j(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function yj(){return(yj=e((()=>{O()})))()}function bj(e,t,n,r){return ci(r,D(n.maxLength))}function xj(e,t,n,r){return Cr(r,n.maxLength)}function Sj(e,t,n,r,i,a){return xj(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Cj(){return(Cj=e((()=>{O()})))()}function wj(e,t,n,r){return ai(E(mi(r),`length`),D(n.maxProperties))}function Tj(e,t,n,r){return _r(T(r).length,n.maxProperties)}function Ej(e,t,n,r,i,a){return Tj(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function Dj(){return(Dj=e((()=>{O()})))()}function Oj(e){return Hw(e)}function kj(e,t,n,r){let[i,a]=[RE(),RE()];return oi(fi(r,[i,a],Br(ON(e,t,n.contains,i),t.AddIndex(a))),D(n.minContains))}function Aj(e,t,n,r){let[i]=[RE()];return oi(fi(r,[i,`_`],ON(e,t,n.contains,i)),D(n.minContains))}function jj(e,t,n,r){return Oj(n)?t.UseUnevaluated()?kj(e,t,n,r):Aj(e,t,n,r):D(!0)}function Mj(e,t,n,r){return!Oj(n)||vr(kr(r,(r,i)=>AN(e,t,n.contains,r)&&t.AddIndex(i)),n.minContains)}function Nj(e,t,n,r,i,a){return Mj(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Pj(){return(Pj=e((()=>{Uw(),BE(),O(),NN()})))()}function Fj(e,t,n,r){return oi(r,D(n.minimum))}function Ij(e,t,n,r){return vr(r,n.minimum)}function Lj(e,t,n,r,i,a){return Ij(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Rj(){return(Rj=e((()=>{O()})))()}function zj(e,t,n,r){return oi(E(r,`length`),D(n.minItems))}function Bj(e,t,n,r){return vr(r.length,n.minItems)}function Vj(e,t,n,r,i,a){return Bj(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Hj(){return(Hj=e((()=>{O()})))()}function Uj(e,t,n,r){return si(r,D(n.minLength))}function Wj(e,t,n,r){return wr(r,n.minLength)}function Gj(e,t,n,r,i,a){return Wj(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function Kj(){return(Kj=e((()=>{O()})))()}function qj(e,t,n,r){return oi(E(mi(r),`length`),D(n.minProperties))}function Jj(e,t,n,r){return vr(T(r).length,n.minProperties)}function Yj(e,t,n,r,i,a){return Jj(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function Xj(){return(Xj=e((()=>{O()})))()}function Zj(e,t,n,r){return Oi(r,D(n.multipleOf))}function Qj(e,t,n,r){return yr(r,n.multipleOf)}function $j(e,t,n,r,i,a){return Qj(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function eM(){return(eM=e((()=>{O()})))()}function tM(e,t,n,r){return iD(e,t,[n.not],r,Hr(ni(E(`results`,`length`),D(1))))}function nM(e,t,n,r){return Hr(ON(e,t,n.not,r))}function rM(e,t,n,r){return t.UseUnevaluated()?tM(e,t,n,r):nM(e,t,n,r)}function iM(e,t,n,r){let i=new TE;return!AN(e,i,n.not,r)&&t.Merge([i])}function aM(e,t,n,r,i,a){return iM(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function oM(){return(oM=e((()=>{OE(),aD(),O(),NN()})))()}function sM(e,t,n,r){return iD(e,t,n.oneOf,r,ni(E(`results`,`length`),D(1)))}function cM(e,t,n,r){let[i]=[RE()];return ni(fi(_i(n.oneOf.map(n=>ON(e,t,n,r))),[i,`_`],ni(i,D(!0))),D(1))}function lM(e,t,n,r){return t.UseUnevaluated()?sM(e,t,n,r):cM(e,t,n,r)}function uM(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new TE;return AN(e,i,n,r)?[...t,i]:t},[]);return S(i.length,1)&&t.Merge(i)}function dM(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new DE,u=MN(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=S(c.length,1)&&t.Merge(c);return!l&&S(s.length,0)&&o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),l||t.AddError({keyword:`oneOf`,schemaPath:n,instancePath:r,params:{passingSchemas:s}})}function fM(){return(fM=e((()=>{OE(),aD(),O(),NN(),BE()})))()}function pM(e,t,n,r){return yi(E(kE(x(n.pattern)?JE(n.pattern):n.pattern),`test`),[r])}function mM(e,t,n,r){return(x(n.pattern)?JE(n.pattern):n.pattern).test(r)}function hM(e,t,n,r,i,a){return mM(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function gM(){return(gM=e((()=>{NE(),O()})))()}function _M(e,t,n,r){return Ei(Mr(n.patternProperties).map(([n,i])=>{let[a,o]=[RE(),RE()],s=Hr(yi(E(kE(JE(n)),`test`),[a])),c=DN(e,t,i,o),l=t.AddKey(a),u=t.UseUnevaluated()?Vr(s,Br(c,l)):Vr(s,c);return li(pi(r),D(0),[`[${a}, ${o}]`,`_`],u)}))}function vM(e,t,n,r){return Tr(Mr(n.patternProperties),0,([n,i])=>{let a=JE(n);return Tr(Mr(r),0,([n,r])=>!a.test(n)||kN(e,t,i,r)&&t.AddKey(n))})}function yM(e,t,n,r,i,a){return Er(Mr(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=JE(i);return Er(Mr(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||jN(e,t,s,a,o,i)&&t.AddKey(n)})})}function bM(){return(bM=e((()=>{NE(),BE(),O(),NN()})))()}function xM(e,t,n,r){return Ei(n.prefixItems.map((n,i)=>{let a=ai(E(r,`length`),D(i)),o=DN(e,t,n,`${r}[${i}]`),s=t.AddIndex(D(i));return Vr(a,t.UseUnevaluated()?Br(o,s):o)}))}function SM(e,t,n,r){return S(r.length,0)||Tr(n.prefixItems,0,(n,i)=>_r(r.length,i)||kN(e,t,n,r[i])&&t.AddIndex(i))}function CM(e,t,n,r,i,a){return S(a.length,0)||Er(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return _r(a.length,o)||jN(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function wM(){return(wM=e((()=>{O(),NN()})))()}function TM(e,t){return e.includes(t)||$i().exactOptionalPropertyTypes}function EM(e,t){return $r(E(e,t))}function DM(e,t){return mr(e[t])}function OM(){return(OM=e((()=>{ta(),O()})))()}function kM(e,t,n,r){let i=cE(n)?n.required:[];return Ei(Mr(n.properties).map(([n,a])=>{let o=Hr(hi(r,D(n))),s=DN(e,t,a,E(r,n)),c=t.AddKey(D(n)),l=t.UseUnevaluated()?Br(s,c):s,u=i.includes(n)?l:Vr(o,l);return TM(i,n)?u:Vr(EM(r,n),u)}))}function AM(e,t,n,r){let i=cE(n)?n.required:[];return Tr(Mr(n.properties),0,([n,a])=>{let o=!w(r,n)||kN(e,t,a,r[n])&&t.AddKey(n);return TM(i,n)?o:DM(r,n)||o})}function jM(e,t,n,r,i,a){let o=cE(i)?i.required:[];return Er(Mr(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!w(a,i)||jN(e,t,c,l,s,a[i])&&t.AddKey(i);return TM(o,i)?u():DM(a,i)||u()})}function MM(){return(MM=e((()=>{lE(),O(),NN(),OM()})))()}function NM(e,t,n,r){let[i,a]=[RE(),RE()];return li(mi(r),D(0),[i,a],ON(e,t,n.propertyNames,i))}function PM(e,t,n,r){return Tr(T(r),0,(r,i)=>AN(e,t,n.propertyNames,r))}function FM(e,t,n,r,i,a){let o=[];return Er(T(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=MN(e,new DE,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function IM(){return(IM=e((()=>{BE(),OE(),O(),NN()})))()}function LM(e,t,n,r){return BN(e,t,e.RecursiveRef(n)??!1,r)}function RM(e,t,n,r){let i=e.RecursiveRef(n)??!1;return Ow(i)&&AN(e,t,i,r)}function zM(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return Ow(o)&&MN(e,t,`#`,r,o,a)}function BM(){return(BM=e((()=>{WN(),kw(),NN()})))()}function VM(e,t,n,r){let i=vi([`context`,`value`],BN(e,t,n,`value`));return yi(vi([`context`,`value`],Si([Ci(`nextContext`,bi(`CheckContext`,[])),Ci(`result`,yi(i,[`nextContext`,`value`])),wi(`result`,t.Merge(`[nextContext]`)),Ti(`result`)])),[`context`,r])}function HM(e,t,n,r){return BN(e,t,n,r)}function UM(e,t,n,r){let i=e.Ref(n)??!1;return t.UseUnevaluated()?VM(e,t,i,r):HM(e,t,i,r)}function WM(e,t,n,r){let i=e.Ref(n)??!1,a=new TE,o=Ow(i)&&AN(e,a,i,r);return o&&t.Merge([a]),o}function GM(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new DE,c=Ow(o)&&MN(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function KM(){return(KM=e((()=>{WN(),kw(),OE(),O(),NN()})))()}function qM(e,t,n,r){return Ei(n.required.map(e=>hi(r,D(e))))}function JM(e,t,n,r){return Tr(n.required,0,e=>w(r,e))}function YM(e,t,n,r,i,a){let o=[];return Er(i.required,0,e=>{let t=w(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function XM(){return(XM=e((()=>{O()})))()}function ZM(e,t,n,r){return S(n,`object`)?Yr(r):S(n,`array`)?Ur(r):S(n,`boolean`)?Gr(r):S(n,`integer`)?Kr(r):S(n,`number`)?Jr(r):S(n,`null`)?qr(r):S(n,`string`)?Zr(r):S(n,`bigint`)?Wr(r):S(n,`constructor`)?ti(r):S(n,`function`)?ei(r):S(n,`symbol`)?Qr(r):S(n,`undefined`)||S(n,`void`)?$r(r):D(!0)}function QM(e,t,n,r,i){return S(n,`object`)?fr(i):S(n,`array`)?y(i):S(n,`boolean`)?or(i):S(n,`integer`)?lr(i):S(n,`number`)?dr(i):S(n,`null`)?ur(i):S(n,`string`)?x(i):S(n,`bigint`)?ar(i):S(n,`constructor`)?sr(i):S(n,`function`)?cr(i):S(n,`symbol`)?pr(i):S(n,`undefined`)?mr(i):!S(n,`void`)||mr(i)}function $M(e,t,n,r){return Di(n.map(n=>ZM(e,t,n,r)))}function eN(e,t,n,r,i){return Dr(n,n=>QM(e,t,n,r,i))}function tN(e,t,n,r){return y(n.type)?$M(e,t,n.type,r):ZM(e,t,n.type,r)}function nN(e,t,n,r){return y(n.type)?eN(e,t,n.type,n,r):QM(e,t,n.type,n,r)}function rN(e,t,n,r,i,a){return(y(i.type)?eN(e,t,i.type,i,a):QM(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function iN(){return(iN=e((()=>{O()})))()}function aN(e,t,n,r){let[i,a]=[RE(),RE()],o=yi(E(`context`,`GetIndices`),[]),s=yi(E(`indices`,`has`),[i]),c=ON(e,t,n.unevaluatedItems,a),l=yi(E(`context`,`AddIndex`),[i]),u=li(r,D(0),[a,i],Br(Vr(s,c),l));return yi(vi([`context`],Si([Ci(`indices`,o),Ti(u)])),[`context`])}function oN(e,t,n,r){let i=t.GetIndices();return Tr(r,0,(r,a)=>(i.has(a)||AN(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function sN(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return Er(a,0,(a,c)=>{let l=new DE,u=(o.has(c)||MN(e,l,n,r,i.unevaluatedItems,a))&&t.AddIndex(c);return u||s.push(c),u})||t.AddError({keyword:`unevaluatedItems`,schemaPath:n,instancePath:r,params:{unevaluatedItems:s}})}function cN(){return(cN=e((()=>{BE(),OE(),O(),NN()})))()}function lN(e,t,n,r){let[i,a]=[RE(),RE()],o=yi(E(`context`,`GetKeys`),[]),s=yi(E(`keys`,`has`),[i]),c=yi(E(`context`,`AddKey`),[i]),l=ON(e,t,n.unevaluatedProperties,a),u=li(pi(r),D(0),[`[${i}, ${a}]`,`_`],Vr(s,Br(l,c)));return yi(vi([`context`],Si([Ci(`keys`,o),Ti(u)])),[`context`])}function uN(e,t,n,r){let i=t.GetKeys();return Tr(Mr(r),0,([r,a])=>i.has(r)||AN(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function dN(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return Er(Mr(a),0,([a,c])=>{let l=new DE,u=o.has(a)||MN(e,l,n,r,i.unevaluatedProperties,c)&&t.AddKey(a);return u||s.push(a),u})||t.AddError({keyword:`unevaluatedProperties`,schemaPath:n,instancePath:r,params:{unevaluatedProperties:s}})}function fN(){return(fN=e((()=>{BE(),OE(),O(),NN()})))()}function pN(e){return!S(e.uniqueItems,!1)}function mN(e,t,n,r){return pN(n)?ni(E(bi(`Set`,[yi(E(r,`map`),[E(`Hashing`,`Hash`)])]),`size`),E(r,`length`)):D(!0)}function hN(e,t,n,r){if(!pN(n))return!0;let i=new Set(r.map(ts)).size,a=r.length;return S(i,a)}function gN(e,t,n,r,i,a){if(!pN(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=ts(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return S(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function _N(){return(_N=e((()=>{fs(),O()})))()}function vN(e,t){return fE(e)&&(y(e.type)&&hr(e.type.length,0)&&Tr(e.type,0,e=>S(e,t))||S(e.type,t))}function yN(e){return vN(e,`object`)}function bN(e){return Ew(e)&&(Mw(e)||Kw(e)||Jw(e)||Xw(e)||ZT(e)||qT(e)||$T(e)||LT(e)||DT(e)||cE(e)||vE(e))}function xN(e){return vN(e,`array`)}function SN(e){return Ew(e)&&(Aw(e)||gT(e)||Hw(e)||xT(e)||CT(e)||jT(e)||NT(e)||YT(e)||gE(e)||mE(e))}function CN(e){return vN(e,`string`)}function wN(e){return Ew(e)&&(FT(e)||TT(e)||uT(e)||GT(e))}function TN(e){return vN(e,`number`)||vN(e,`bigint`)}function EN(e){return Ew(e)&&(kT(e)||yT(e)||oT(e)||cT(e)||zT(e))}function DN(e,t,n,r){return t.UseUnevaluated()?Br(Br(t.Push(),ON(e,t,n,r)),t.Pop()):ON(e,t,n,r)}function ON(e,t,n,r){e.Push(n);let i=[];if(Dw(n))return vD(e,t,n,r);if(fE(n)&&i.push(tN(e,t,n,r)),bN(n)){let a=[];cE(n)&&a.push(qM(e,t,n,r)),Mw(n)&&a.push(eD(e,t,n,r)),Kw(n)&&a.push(ND(e,t,n,r)),Jw(n)&&a.push(LD(e,t,n,r)),Xw(n)&&a.push(VD(e,t,n,r)),qT(n)&&a.push(_M(e,t,n,r)),ZT(n)&&a.push(kM(e,t,n,r)),$T(n)&&a.push(NM(e,t,n,r)),LT(n)&&a.push(qj(e,t,n,r)),DT(n)&&a.push(wj(e,t,n,r));let o=Ei(a),s=Vr(Hr(Yr(r)),o);i.push(yN(n)?o:s)}if(SN(n)){let a=[];Aw(n)&&a.push(WE(e,t,n,r)),Hw(n)&&a.push(kD(e,t,n,r)),gT(n)&&a.push(rj(e,t,n,r)),xT(n)&&a.push(cj(e,t,n,r)),CT(n)&&a.push(gj(e,t,n,r)),jT(n)&&a.push(jj(e,t,n,r)),NT(n)&&a.push(zj(e,t,n,r)),YT(n)&&a.push(xM(e,t,n,r)),mE(n)&&a.push(mN(e,t,n,r));let o=Ei(a),s=Vr(Hr(Ur(r)),o);i.push(xN(n)?o:s)}if(wN(n)){let a=[];TT(n)&&a.push(bj(e,t,n,r)),FT(n)&&a.push(Uj(e,t,n,r)),uT(n)&&a.push(zA(e,t,n,r)),GT(n)&&a.push(pM(e,t,n,r));let o=Ei(a),s=Vr(Hr(Zr(r)),o);i.push(CN(n)?o:s)}if(EN(n)){let a=[];oT(n)&&a.push($D(e,t,n,r)),cT(n)&&a.push(rO(e,t,n,r)),yT(n)&&a.push(fj(e,t,n,r)),kT(n)&&a.push(Fj(e,t,n,r)),zT(n)&&a.push(Zj(e,t,n,r));let o=Ei(a),s=Vr(Hr(Vr(Jr(r),Wr(r))),o);i.push(TN(n)?o:s)}oE(n)&&i.push(UM(e,t,n,r)),iE(n)&&i.push(LM(e,t,n,r)),eT(n)&&i.push(GD(e,t,n,r)),Bw(n)&&i.push(SD(e,t,n,r)),iT(n)&&i.push(YD(e,t,n,r)),mT(n)&&i.push(UA(e,t,n,r)),VT(n)&&i.push(rM(e,t,n,r)),Pw(n)&&i.push(cD(e,t,n,r)),Rw(n)&&i.push(mD(e,t,n,r)),UT(n)&&i.push(lM(e,t,n,r)),gE(n)&&i.push(Vr(Hr(Ur(r)),aN(e,t,n,r))),vE(n)&&i.push(Vr(Hr(Xr(r)),lN(e,t,n,r))),ww(n)&&i.push(PE(e,t,n,r));let a=Ei(i);return e.Pop(n),a}function kN(e,t,n,r){return t.Push()&&AN(e,t,n,r)&&t.Pop()}function AN(e,t,n,r){e.Push(n);let i=Dw(n)?yD(e,t,n,r):(!fE(n)||nN(e,t,n,r))&&(!(b(r)&&!y(r))||(!cE(n)||JM(e,t,n,r))&&(!Mw(n)||tD(e,t,n,r))&&(!Kw(n)||PD(e,t,n,r))&&(!Jw(n)||RD(e,t,n,r))&&(!Xw(n)||HD(e,t,n,r))&&(!qT(n)||vM(e,t,n,r))&&(!ZT(n)||AM(e,t,n,r))&&(!$T(n)||PM(e,t,n,r))&&(!LT(n)||Jj(e,t,n,r))&&(!DT(n)||Tj(e,t,n,r)))&&(!y(r)||(!Aw(n)||GE(e,t,n,r))&&(!Hw(n)||AD(e,t,n,r))&&(!gT(n)||ij(e,t,n,r))&&(!xT(n)||lj(e,t,n,r))&&(!CT(n)||_j(e,t,n,r))&&(!jT(n)||Mj(e,t,n,r))&&(!NT(n)||Bj(e,t,n,r))&&(!YT(n)||SM(e,t,n,r))&&(!mE(n)||hN(e,t,n,r)))&&(!x(r)||(!TT(n)||xj(e,t,n,r))&&(!FT(n)||Wj(e,t,n,r))&&(!uT(n)||BA(e,t,n,r))&&(!GT(n)||mM(e,t,n,r)))&&(!(dr(r)||ar(r))||(!oT(n)||eO(e,t,n,r))&&(!cT(n)||iO(e,t,n,r))&&(!yT(n)||pj(e,t,n,r))&&(!kT(n)||Ij(e,t,n,r))&&(!zT(n)||Qj(e,t,n,r)))&&(!oE(n)||WM(e,t,n,r))&&(!iE(n)||RM(e,t,n,r))&&(!eT(n)||KD(e,t,n,r))&&(!Bw(n)||CD(e,t,n,r))&&(!iT(n)||XD(e,t,n,r))&&(!mT(n)||WA(e,t,n,r))&&(!VT(n)||iM(e,t,n,r))&&(!Pw(n)||lD(e,t,n,r))&&(!Rw(n)||hD(e,t,n,r))&&(!UT(n)||uM(e,t,n,r))&&(!gE(n)||!y(r)||oN(e,t,n,r))&&(!vE(n)||!b(r)||uN(e,t,n,r))&&(!ww(n)||FE(e,t,n,r));return e.Pop(n),i}function jN(e,t,n,r,i,a){return t.Push()&&MN(e,t,n,r,i,a)&&t.Pop()}function MN(e,t,n,r,i,a){e.Push(i);let o=Dw(i)?bD(e,t,n,r,i,a):!!((!fE(i)||rN(e,t,n,r,i,a))&+(!(b(a)&&!y(a))||!!((!cE(i)||YM(e,t,n,r,i,a))&+(!Mw(i)||nD(e,t,n,r,i,a))&(!Kw(i)||FD(e,t,n,r,i,a))&(!Jw(i)||zD(e,t,n,r,i,a))&(!Xw(i)||UD(e,t,n,r,i,a))&(!qT(i)||yM(e,t,n,r,i,a))&(!ZT(i)||jM(e,t,n,r,i,a))&(!$T(i)||FM(e,t,n,r,i,a))&(!LT(i)||Yj(e,t,n,r,i,a))&(!DT(i)||Ej(e,t,n,r,i,a))))&(!y(a)||!!((!Aw(i)||KE(e,t,n,r,i,a))&+(!Hw(i)||jD(e,t,n,r,i,a))&(!gT(i)||aj(e,t,n,r,i,a))&(!xT(i)||uj(e,t,n,r,i,a))&(!CT(i)||vj(e,t,n,r,i,a))&(!jT(i)||Nj(e,t,n,r,i,a))&(!NT(i)||Vj(e,t,n,r,i,a))&(!YT(i)||CM(e,t,n,r,i,a))&(!mE(i)||gN(e,t,n,r,i,a))))&(!x(a)||!!((!TT(i)||Sj(e,t,n,r,i,a))&+(!FT(i)||Gj(e,t,n,r,i,a))&(!uT(i)||VA(e,t,n,r,i,a))&(!GT(i)||hM(e,t,n,r,i,a))))&(!(dr(a)||ar(a))||!!((!oT(i)||tO(e,t,n,r,i,a))&+(!cT(i)||aO(e,t,n,r,i,a))&(!yT(i)||mj(e,t,n,r,i,a))&(!kT(i)||Lj(e,t,n,r,i,a))&(!zT(i)||$j(e,t,n,r,i,a))))&(!oE(i)||GM(e,t,n,r,i,a))&(!iE(i)||zM(e,t,n,r,i,a))&(!eT(i)||qD(e,t,n,r,i,a))&(!Bw(i)||wD(e,t,n,r,i,a))&(!iT(i)||ZD(e,t,n,r,i,a))&(!mT(i)||GA(e,t,n,r,i,a))&(!VT(i)||aM(e,t,n,r,i,a))&(!Pw(i)||uD(e,t,n,r,i,a))&(!Rw(i)||gD(e,t,n,r,i,a))&(!UT(i)||dM(e,t,n,r,i,a))&(!gE(i)||!y(a)||sN(e,t,n,r,i,a))&(!vE(i)||!b(a)||dN(e,t,n,r,i,a)))&&(!ww(i)||IE(e,t,n,r,i,a));return e.Pop(i),o}function NN(){return(NN=e((()=>{pE(),kw(),Nw(),qw(),Yw(),Zw(),QT(),JT(),eE(),RT(),OT(),lE(),yE(),jw(),vT(),Uw(),ST(),wT(),MT(),PT(),XT(),_E(),hE(),IT(),ET(),dT(),KT(),AT(),bT(),sT(),lT(),BT(),sE(),aE(),tT(),Vw(),aT(),hT(),HT(),Fw(),zw(),WT(),Tw(),LE(),O(),qE(),rD(),dD(),_D(),xD(),TD(),MD(),ID(),BD(),WD(),JD(),QD(),nO(),oO(),HA(),KA(),oj(),dj(),hj(),yj(),Cj(),Dj(),Pj(),Rj(),Hj(),Kj(),Xj(),eM(),oM(),fM(),gM(),bM(),wM(),MM(),IM(),BM(),KM(),XM(),iN(),cN(),fN(),_N()})))()}function PN(){return`${VN[0]++}`}function FN(e,t){HN.has(e)||HN.set(e,new Map);let n=HN.get(e);if(n.has(t))return n.get(t);let r=PN();return n.set(t,r),r}function IN(e,t,n,r){return e.UseUnevaluated()?yi(`check_${n}`,[`context`,r]):yi(`check_${n}`,[r])}function LN(e,t,n,r){let i=ON(e,t,n,`value`);return t.UseUnevaluated()?Ci(`check_${r}`,vi([`context`,`value`],i)):Ci(`check_${r}`,vi([`value`],i))}function RN(){VN[0]=0,HN.clear(),UN.clear()}function zN(){return[...UN.values()]}function BN(e,t,n,r){let i=FN(n,e.BaseURL().href),a=IN(t,n,i,r);return UN.has(i)?a:(UN.set(i,``),UN.set(i,LN(e,t,n,i)),a)}var VN,HN,UN;function WN(){return(WN=e((()=>{O(),NN(),VN=[0],HN=new Map,UN=new Map})))()}function GN(e,t){return b(t)&&!Ar(e)?t[e]:void 0}function KN(e,t){return e.reduce((e,t)=>GN(t,e),t)}function qN(e){if(S(e.length,0))return[];let t=e.split(`/`).map(e=>e.replace(/~1/g,`/`).replace(/~0/g,`~`));return t.length>0&&t[0]===``?t.slice(1):t}function JN(e,t){return KN(qN(t),e)}function YN(){return(YN=e((()=>{O()})))()}function XN(e,t,n){if(e.$id===n.hash)return e;let r=new URL(e.$id,t.href),i=new URL(n.href,t.href);if(S(r.pathname,i.pathname))return n.hash.startsWith(`#`)?$N(e,t,n):e}function ZN(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return S(r.href,i.href)?e:void 0}function QN(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return S(r.href,i.href)?e:void 0}function $N(e,t,n){if(n.href.endsWith(`#`))return e;if(!n.hash.startsWith(`#`))return;let r=decodeURIComponent(n.hash.slice(1));if(r.startsWith(`/`))return JN(e,r)}function eP(e,t,n){if(fT(e)){let r=XN(e,t,n);if(!mr(r))return r}if(Iw(e)){let r=ZN(e,t,n);if(!mr(r))return r}if(Qw(e)){let r=QN(e,t,n);if(!mr(r))return r}return $N(e,t,n)}function tP(e,t,n){return e.reduce((e,r)=>{let i=iP(r,t,n);return mr(i)?e:i},void 0)}function nP(e){return S(e,`const`)||S(e,`enum`)}function rP(e,t,n){return T(e).reduce((r,i)=>{if(nP(i))return r;let a=iP(e[i],t,n);return mr(a)?r:a},void 0)}function iP(e,t,n){let r=Ew(e)&&fT(e)?new URL(e.$id,t.href):t;if(Ew(e)){let t=eP(e,r,n);if(!mr(t))return t}if(y(e))return tP(e,r,n);if(b(e))return rP(e,r,n)}function aP(e){return e.href.split(`#`)[0]}function oP(e,t){return w(e,t)?e[t]:void 0}function sP(e,t,n){return iP(e,t,n)}function cP(e,t,n){let r=aP(n);if(S(r,aP(t))||!w(e,r))return;let i=e[r];return iP(i,Ew(i)&&fT(i)?new URL(i.$id,dP.href):new URL(r),n)}function lP(e,t,n){let r=fT(t)?new URL(t.$id,dP.href):dP,i=new URL(n,r.href);return oP(e,n)??sP(t,r,i)??cP(e,r,i)}function uP(e,t,n,r,i){let a=r.$dynamicRef.startsWith(`#`)?lP(e,n,r.$dynamicRef):lP(e,t,r.$dynamicRef);if(!mr(a))return!Ew(a)||!Qw(a)||new URL(r.$dynamicRef,dP).hash.startsWith(`#/`)?a:i.find(e=>e.$dynamicAnchor===a.$dynamicAnchor)??a}var dP;function fP(){return(fP=e((()=>{O(),YN(),pT(),Lw(),$w(),kw(),dP=new URL(`https://json-schema.org`)})))()}function pP(){return(pP=e((()=>{fP()})))()}var mP,hP,gP,_P,vP;function yP(){return(yP=e((()=>{kw(),pT(),Lw(),rE(),$w(),O(),pP(),mP=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},vP=class{constructor(e,t){hP.add(this),this.context=e,this.schema=t,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,t)=>new URL(t.$id,e),dP)}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Ew(e)&&(fT(e)&&(this.ids.push(e),mP(this,hP,`m`,gP).call(this,e)),Iw(e)&&this.anchors.push(e),nE(e)&&this.recursiveAnchors.push(e),Qw(e)&&this.dynamicAnchors.push(e))}Pop(e){Ew(e)&&(fT(e)&&(this.ids.pop(),mP(this,hP,`m`,_P).call(this,e)),Iw(e)&&this.anchors.pop(),nE(e)&&this.recursiveAnchors.pop(),Qw(e)&&this.dynamicAnchors.pop())}Ref(e){let t=this.schema;return e.$ref.startsWith(`#`)?lP(this.context,this.Base(),e.$ref):lP(this.context,t,e.$ref)}RecursiveRef(e){return nE(this.Base())?lP(this.context,this.recursiveAnchors[0],e.$recursiveRef):lP(this.context,this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return uP(this.context,t,this.Base(),e,this.dynamicAnchors)}},hP=new WeakSet,gP=function e(t,n=!0){if(!Ew(t))return;let r=t;if(!(!n&&fT(r))){!n&&Qw(r)&&this.dynamicAnchors.push(r);for(let t of T(r))mP(this,hP,`m`,e).call(this,r[t],!1)}},_P=function e(t,n=!0){if(!Ew(t))return;let r=t;if(!(!n&&fT(r))){!n&&Qw(r)&&this.dynamicAnchors.pop();for(let t of T(r))mP(this,hP,`m`,e).call(this,r[t],!1)}}})))()}function bP(){return(bP=e((()=>{OE(),NE(),WN(),yP(),HA(),KA(),oj(),dj(),Pj(),oM(),fM(),bM(),wM(),MM(),IM(),BM(),KM(),NN(),cN(),fN(),_N()})))()}function xP(e){return`${e.Functions().join(`;
`)}; return (value) => { ${(e.UseUnevaluated()?[`const context = new CheckContext({}, {})`,`return ${e.Entry()}`]:[`return ${e.Entry()}`]).join(`; `)} }`}function SP(e,t){return jo(`CheckContext`,`Guard`,`Format`,`Hashing`,e.External().identifier,t)(TE,ir,IA,Fo,e.External().variables)}function CP(e){let t=new vP(e.Context(),e.Schema()),n=new TE;return r=>AN(t,n,e.Schema(),r)}function wP(e,t){return Ao()?SP(e,t):CP(e)}function TP(...e){let[t,n]=fo(e,{2:(e,t)=>[e,t],1:e=>[{},e]});AE(),RN();let r=new vP(t,n),i=new wE(CE(t,n)),a=BN(r,i,n,`value`),o=zN(),s=jE();return new DP(t,n,s,o,a,i.UseUnevaluated())}var EP,DP;function OP(){return(OP=e((()=>{No(),fs(),O(),RA(),bP(),EP=class{constructor(e,t,n){this.isAccelerated=e,this.code=t,this.check=n}IsAccelerated(){return this.isAccelerated}Code(){return this.code}Check(e){return this.check(e)}},DP=class{constructor(e,t,n,r,i,a){this.context=e,this.schema=t,this.external=n,this.functions=r,this.entry=i,this.useUnevaluated=a}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Entry(){return this.entry}Evaluate(){let e=xP(this),t=wP(this,e);return new EP(Ao(),e,t)}}})))()}function kP(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=$i(),a=ms(),o=[];return[MN(new vP(t,n),new EE(e=>{if(!vr(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function AP(){return(AP=e((()=>{ta(),gs(),O(),bP()})))()}function jP(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return AN(new vP(t,n),new TE,n,r)}function MP(){return(MP=e((()=>{bP()})))()}function NP(){return(NP=e((()=>{MP(),AP()})))()}function PP(){return(PP=e((()=>{OP(),AP(),NP()})))()}function FP(){return(FP=e((()=>{bP(),pP(),Gw(),OP(),PP(),MP(),NP(),AP()})))()}function IP(){return(IP=e((()=>{FP()})))()}function LP(){return(LP=e((()=>{IP()})))()}function RP(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return jP(t,n,r)}function zP(){return(zP=e((()=>{IP()})))()}function BP(){return(BP=e((()=>{zP()})))()}function VP(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=kP(t,n,r);return a}function HP(){return(HP=e((()=>{IP()})))()}function UP(){return(UP=e((()=>{HP()})))()}var WP;function GP(){return(GP=e((()=>{BP(),UP(),WP=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}}})))()}function KP(){return(KP=e((()=>{GP()})))()}function Z(){return(Z=e((()=>{Dx(),iS(),Zm(),oS(),Tu()})))()}function qP(e,t,n){return y(n)?n.map(n=>mF(e,t.items,n)):n}function JP(){return(JP=e((()=>{O(),hF()})))()}function YP(e,t,n){return mF({...e,...t.$defs},Na(t.$ref),n)}function XP(){return(XP=e((()=>{Z(),hF()})))()}function ZP(e,t){let n=w(t,`unevaluatedProperties`)?{additionalProperties:t.unevaluatedProperties}:{},r=wx(gx(e,t));return eo(r)?ex(r,n):r}function QP(e,t,n){return mF(e,ZP(e,t),n)}function $P(){return($P=e((()=>{Z(),O(),hF()})))()}function eF(e){return w(e,`additionalProperties`)?e.additionalProperties:void 0}function tF(){return(tF=e((()=>{O()})))()}function nF(e,t,n){if(!b(n)||y(n))return n;let r=eF(t);for(let i of T(n)){if(w(t.properties,i)){n[i]=mF(e,t.properties[i],n[i]);continue}if(or(r)&&S(r,!0)||ua(r)&&RP(e,r,n[i])){n[i]=mF(e,r,n[i]);continue}delete n[i]}return n}function rF(){return(rF=e((()=>{Z(),O(),hF(),BP(),tF()})))()}function iF(e,t,n){if(!b(n))return n;let r=eF(t),[i,a]=[new RegExp(su(t)),lu(t)];for(let t of T(n)){if(i.test(t)){n[t]=mF(e,a,n[t]);continue}if(or(r)&&S(r,!0)||ua(r)&&RP(e,r,n[t])){n[t]=mF(e,r,n[t]);continue}delete n[t]}return n}function aF(){return(aF=e((()=>{Z(),O(),hF(),BP(),tF()})))()}function oF(e,t,n){return w(e,t.$ref)?mF(e,e[t.$ref],n):n}function sF(){return(sF=e((()=>{O(),hF()})))()}function cF(e,t,n){if(!y(n))return n;let r=Math.min(n.length,t.items.length);for(let i=0;i<r;i++)n[i]=mF(e,t.items[i],n[i]);return hr(n.length,r)?n.slice(0,r):n}function lF(){return(lF=e((()=>{O(),hF()})))()}function uF(e){return Zi(e)}function dF(){return(dF=e((()=>{Qi()})))()}function fF(e,t,n){for(let r of t.anyOf){let t=mF(e,r,uF(n));if(RP(e,r,t))return t}return n}function pF(){return(pF=e((()=>{BP(),dF(),hF()})))()}function mF(e,t,n){return Sa(t)?qP(e,t,n):oo(t)?YP(e,t,n):Eo(t)?QP(e,t,n):eo(t)?nF(e,t,n):uu(t)?iF(e,t,n):Pa(t)?oF(e,t,n):Fc(t)?cF(e,t,n):H(t)?fF(e,t,n):n}function hF(){return(hF=e((()=>{Z(),JP(),XP(),$P(),rF(),aF(),sF(),lF(),pF()})))()}function gF(e,t){for(let n of zi.Keys(e))zi.HasPropertyKey(t,n)||(t[n]=e[n]);return t}function _F(e){let t={};for(let n of zi.Keys(e))t[n]=bF(e[n]);return t}function vF(e){return yF(qx(e))}function yF(e){return e.map(e=>bF(e))}function bF(e){return gF(e,Sa(e)?j(bF(e.items),Ca(e)):Eo(e)?To(yF(e.allOf)):H(e)?V(vF(e.anyOf)):eo(e)?N(_F(e.properties)):uu(e)?iu(cu(e),bF(lu(e))):Fc(e)?Pc(yF(e.items)):e)}function xF(e){return bF(e)}function SF(){return(SF=e((()=>{O(),Z()})))()}function CF(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return mF(t,$i().unionPrioritySort?xF(n):n,r)}function wF(){return(wF=e((()=>{vs(),hF(),SF()})))()}function TF(){return(TF=e((()=>{wF()})))()}function EF(e){return b(e)&&w(e,`value`)}function Q(e){return{value:e}}function DF(){return(DF=e((()=>{O()})))()}function OF(e){return y(e)?Q(e):Q([e])}function kF(){return(kF=e((()=>{O(),DF()})))()}function AF(e){return S(e,!0)?Q(BigInt(1)):Q(BigInt(0))}function jF(e){return IF.test(e)}function MF(e){return LF.test(e)}function NF(e){return RF.test(e)}function PF(e){let t=e.toLowerCase();return jF(e)?Q(BigInt(e.slice(0,e.length-1))):MF(e)?Q(BigInt(e.split(`.`)[0])):NF(e)?Q(BigInt(e)):S(t,`false`)?Q(BigInt(0)):S(t,`true`)?Q(BigInt(1)):void 0}function FF(e){return ar(e)?Q(e):or(e)?AF(e):dr(e)?Q(BigInt(Math.trunc(e))):ur(e)?Q(BigInt(0)):x(e)?PF(e):mr(e)?Q(BigInt(0)):void 0}var IF,LF,RF;function zF(){return(zF=e((()=>{O(),DF(),IF=/^-?(0|[1-9]\d*)n$/,LF=/^-?(0|[1-9]\d*)\.\d+$/,RF=/^-?(0|[1-9]\d*)$/})))()}function BF(e){return S(e,BigInt(0))?Q(!1):S(e,BigInt(1))?Q(!0):void 0}function VF(e){return S(e,0)?Q(!1):S(e,1)?Q(!0):void 0}function HF(e){return S(e.toLowerCase(),`false`)?Q(!1):S(e.toLowerCase(),`true`)?Q(!0):S(e,`0`)?Q(!1):S(e,`1`)?Q(!0):void 0}function UF(e){return ar(e)?BF(e):or(e)?Q(e):dr(e)?VF(e):ur(e)?Q(!1):x(e)?HF(e):mr(e)?Q(!1):void 0}function WF(){return(WF=e((()=>{O(),DF()})))()}function GF(e){return S(e,BigInt(0))?Q(null):void 0}function KF(e){return S(e,!1)?Q(null):void 0}function qF(e){return S(e,0)?Q(null):void 0}function JF(e){let t=e.toLowerCase();return S(t,`undefined`)||S(t,`null`)||S(e,``)||S(e,`0`)?Q(null):void 0}function YF(e){return ar(e)?GF(e):or(e)?KF(e):dr(e)?qF(e):ur(e)?Q(null):x(e)?JF(e):mr(e)?Q(null):void 0}function XF(){return(XF=e((()=>{O(),DF()})))()}function ZF(e){return e<=tI&&e>=nI?Q(Number(e)):void 0}function QF(e){return Q(+!!e)}function $F(e){let t=+e;if(dr(t))return Q(t);let n=e.toLowerCase();if(S(n,`false`))return Q(0);if(S(n,`true`))return Q(1);let r=FF(e);if(EF(r))return r.value<=tI&&r.value>=nI?Q(Number(r.value)):void 0}function eI(e){return ar(e)?ZF(e):or(e)?QF(e):dr(e)?Q(e):ur(e)?Q(0):x(e)?$F(e):mr(e)?Q(0):void 0}var tI,nI;function rI(){return(rI=e((()=>{O(),DF(),zF(),tI=BigInt(2**53-1),nI=BigInt(-(2**53-1))})))()}function iI(e){return ar(e)||or(e)||dr(e)?Q(e.toString()):ur(e)?Q(`null`):x(e)?Q(e):mr(e)?Q(``):void 0}function aI(){return(aI=e((()=>{O(),DF()})))()}function oI(e){return S(e,BigInt(0))?Q(void 0):void 0}function sI(e){return S(e,!1)?Q(void 0):void 0}function cI(e){return S(e,0)?Q(void 0):void 0}function lI(e){let t=e.toLowerCase();return S(t,`undefined`)||S(t,`null`)||S(e,``)||S(e,`0`)?Q(void 0):void 0}function uI(e){return ar(e)?oI(e):or(e)?sI(e):dr(e)?cI(e):ur(e)?Q(void 0):x(e)?lI(e):mr(e)?Q(e):void 0}function dI(){return(dI=e((()=>{O(),DF()})))()}function fI(){return(fI=e((()=>{kF(),zF(),WF(),XF(),rI(),DF(),aI(),dI()})))()}function pI(){return(pI=e((()=>{fI()})))()}function mI(e,t,n){return OF(n).value.map(n=>cL(e,t.items,n))}function hI(){return(hI=e((()=>{lL(),pI()})))()}function gI(e,t,n){let r=FF(n);return EF(r)?r.value:n}function _I(){return(_I=e((()=>{pI()})))()}function vI(e,t,n){let r=UF(n);return EF(r)?r.value:n}function yI(){return(yI=e((()=>{pI()})))()}function bI(e,t,n){return cL({...e,...t.$defs},Na(t.$ref),n)}function xI(){return(xI=e((()=>{Z(),lL()})))()}function SI(e,t,n){return cL(e,wx(t),n)}function CI(){return(CI=e((()=>{Z(),lL()})))()}function wI(e,t,n){let r=eI(n);return EF(r)?Math.trunc(r.value):n}function TI(){return(TI=e((()=>{pI()})))()}function EI(e,t,n){return cL(e,wx(gx(e,t)),n)}function DI(){return(DI=e((()=>{Z(),lL()})))()}function OI(e,t,n){let r=FF(n);return EF(r)&&S(t.const,r.value)?r.value:n}function kI(e,t,n){let r=UF(n);return EF(r)&&S(t.const,r.value)?r.value:n}function AI(e,t,n){let r=eI(n);return EF(r)&&S(t.const,r.value)?r.value:n}function jI(e,t,n){let r=iI(n);return EF(r)&&S(t.const,r.value)?r.value:n}function MI(e,t,n){return S(t.const,n)?n:Us(t)?OI(e,t,n):Ws(t)?kI(e,t,n):Gs(t)?AI(e,t,n):Ks(t)?jI(e,t,n):Po()}function NI(){return(NI=e((()=>{O(),Z(),pI()})))()}function PI(e,t,n){let r=YF(n);return EF(r)?r.value:n}function FI(){return(FI=e((()=>{pI()})))()}function II(e,t,n){let r=eI(n);return EF(r)?r.value:n}function LI(){return(LI=e((()=>{pI()})))()}function RI(e,t,n,r){let i=T(r);for(let[a,o]of t)for(let t of i)a.test(t)||(r[t]=cL(e,n,r[t]));return r}function zI(){return(zI=e((()=>{O(),lL()})))()}function BI(e,t,n){return Ja(e)&&mr(n[t])}function VI(){return(VI=e((()=>{O(),Z()})))()}function HI(e,t,n){let r=jr(t.properties),i=T(n);for(let[t,a]of r)for(let r of i)!t.test(r)||BI(a,r,n)||(n[r]=cL(e,a,n[r]));return w(t,`additionalProperties`)&&b(t.additionalProperties)?RI(e,r,t.additionalProperties,n):n}function UI(e,t,n){return fr(n)?HI(e,t,n):n}function WI(){return(WI=e((()=>{O(),lL(),zI(),VI()})))()}function GI(e,t,n){let r=jr(t.patternProperties),i=T(n);for(let[t,a]of r)for(let r of i)t.test(r)&&(n[r]=cL(e,a,n[r]));return w(t,`additionalProperties`)&&b(t.additionalProperties)?RI(e,r,t.additionalProperties,n):n}function KI(e,t,n){return fr(n)?GI(e,t,n):n}function qI(){return(qI=e((()=>{O(),lL(),zI()})))()}function JI(e,t,n){return w(e,t.$ref)?cL(e,e[t.$ref],n):n}function YI(){return(YI=e((()=>{lL(),O()})))()}function XI(e,t,n){let r=iI(n);return EF(r)?r.value:n}function ZI(){return(ZI=e((()=>{pI()})))()}function QI(e,t,n){return cL(e,wx(t),n)}function $I(){return($I=e((()=>{Z(),lL()})))()}function eL(e,t,n){if(!y(n))return n;for(let r=0;r<Math.min(t.items.length,n.length);r++)n[r]=cL(e,t.items[r],n[r]);return n}function tL(){return(tL=e((()=>{O(),lL()})))()}function nL(e,t,n){let r=uI(n);return EF(r)?r.value:n}function rL(){return(rL=e((()=>{pI()})))()}function iL(e,t,n){if(t.anyOf.some(t=>RP(e,t,n)))return n;let r=t.anyOf.map(t=>cL(e,t,uF(n))).find(n=>RP(e,t,n));return mr(r)?n:r}function aL(){return(aL=e((()=>{O(),BP(),dF(),lL()})))()}function oL(e,t,n){return EF(uI(n))?void 0:n}function sL(){return(sL=e((()=>{pI()})))()}function cL(e,t,n){return Sa(t)?mI(e,t,n):Ns(t)?gI(e,t,n):Is(t)?vI(e,t,n):oo(t)?bI(e,t,n):Co(t)?SI(e,t,n):Rs(t)?wI(e,t,n):Eo(t)?EI(e,t,n):qs(t)?MI(e,t,n):Xs(t)?PI(e,t,n):Qs(t)?II(e,t,n):eo(t)?UI(e,t,n):uu(t)?KI(e,t,n):Pa(t)?JI(e,t,n):ic(t)?XI(e,t,n):sf(t)?QI(e,t,n):Fc(t)?eL(e,t,n):xu(t)?nL(e,t,n):H(t)?iL(e,t,n):Cu(t)?oL(e,t,n):n}function lL(){return(lL=e((()=>{Z(),hI(),_I(),yI(),xI(),CI(),TI(),DI(),NI(),FI(),LI(),WI(),qI(),YI(),ZI(),$I(),tL(),rL(),aL(),sL()})))()}function uL(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return cL(t,n,r)}function dL(){return(dL=e((()=>{lL()})))()}function fL(){return(fL=e((()=>{dL()})))()}function pL(e,t,n){if(!y(n))return n;for(let r=0;r<n.length;r++)n[r]=jL(e,t.items,n[r]);return n}function mL(){return(mL=e((()=>{O(),ML()})))()}function hL(e,t,n){return jL({...e,...t.$defs},Na(t.$ref),n)}function gL(){return(gL=e((()=>{Z(),ML()})))()}function _L(e,t){return mr(t)?cr(e.default)?e.default():uF(e.default):t}function vL(){return(vL=e((()=>{O(),dF()})))()}function yL(e,t,n){return jL(e,wx(gx(e,t)),n)}function bL(){return(bL=e((()=>{Z(),ML()})))()}function xL(e,t,n){if(!b(n))return n;let r=T(t.properties);for(let i of r){let r=jL(e,t.properties[i],n[i]);mr(r)&&(Ja(t.properties[i])||!w(t.properties[i],`default`))||(n[i]=r)}if(!Mw(t)||or(t.additionalProperties))return n;for(let i of T(n))r.includes(i)||(n[i]=jL(e,t.additionalProperties,n[i]));return n}function SL(){return(SL=e((()=>{Z(),O(),ML(),Nw()})))()}function CL(e,t,n){if(!b(n))return n;let[r,i]=[new RegExp(su(t)),lu(t)];for(let t of T(n))r.test(t)&&Ww(i)&&(n[t]=jL(e,i,n[t]));if(!Mw(t))return n;for(let i of T(n))r.test(i)||(n[i]=jL(e,t.additionalProperties,n[i]));return n}function wL(){return(wL=e((()=>{Z(),Nw(),Gw(),O(),ML()})))()}function TL(e,t,n){return w(e,t.$ref)?jL(e,e[t.$ref],n):n}function EL(){return(EL=e((()=>{O(),ML()})))()}function DL(e,t,n){if(!y(n))return n;let[r,i]=[t.items,Math.max(t.items.length,n.length)];for(let t=0;t<i;t++)t<r.length&&(n[t]=jL(e,r[t],n[t]));return n}function OL(){return(OL=e((()=>{O(),ML()})))()}function kL(e,t,n){for(let r of t.anyOf){let t=jL(e,r,uF(n));if(RP(e,r,t))return t}return n}function AL(){return(AL=e((()=>{BP(),dF(),ML()})))()}function jL(e,t,n){let r=Ww(t)?_L(t,n):n;return Sa(t)?pL(e,t,r):oo(t)?hL(e,t,r):Eo(t)?yL(e,t,r):eo(t)?xL(e,t,r):uu(t)?CL(e,t,r):Pa(t)?TL(e,t,r):Fc(t)?DL(e,t,r):H(t)?kL(e,t,r):r}function ML(){return(ML=e((()=>{IP(),Z(),mL(),gL(),vL(),bL(),SL(),wL(),EL(),OL(),AL()})))()}function NL(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return jL(t,n,r)}function PL(){return(PL=e((()=>{ML()})))()}function FL(){return(FL=e((()=>{PL()})))()}function IL(e){return(...t)=>{let[n,r,i]=fo(t,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return e.reduce((e,t)=>t(n,r,e),i)}}function LL(){return(LL=e((()=>{})))()}function RL(e,t,n){return t[`~codec`].decode(n)}function zL(e,t,n){return t[`~codec`].encode(n)}function BL(e,t,n,r){return ys(n)?S(e,`Decode`)?RL(t,n,r):zL(t,n,r):r}function VL(){return(VL=e((()=>{O(),Z()})))()}function HL(e,t,n,r){if(!y(r))return r;for(let i=0;i<r.length;i++)r[i]=yR(e,t,n.items,r[i]);return BL(e,t,n,r)}function UL(e,t,n,r){let i=BL(e,t,n,r);if(!y(i))return i;for(let r=0;r<i.length;r++)i[r]=yR(e,t,n.items,i[r]);return i}function WL(e,t,n,r){return S(e,`Decode`)?HL(e,t,n,r):UL(e,t,n,r)}function GL(){return(GL=e((()=>{O(),bR(),VL()})))()}function KL(e,t,n,r){return r=yR(e,{...t,...n.$defs},Na(n.$ref),r),BL(e,t,n,r)}function qL(){return(qL=e((()=>{Z(),bR(),VL()})))()}function JL(e){return e.reduce((e,t)=>({...e,...t}),{})}function YL(e,t){for(let n of t)if(!Lr(e,n))return n;return e}function XL(e,t,n,r){if(S(n.allOf.length,0))return BL(e,t,n,r);let i=n.allOf.map(n=>yR(e,t,n,CF(n,uF(r))));return BL(e,t,n,i.every(e=>b(e))?JL(i):YL(r,i))}function ZL(e,t,n,r){if(S(n.allOf.length,0))return BL(e,t,n,r);let i=BL(e,t,n,r),a=n.allOf.map(n=>yR(e,t,n,CF(n,uF(i))));return a.every(e=>b(e))?JL(a):YL(i,a)}function QL(e,t,n,r){return S(e,`Decode`)?XL(e,t,n,r):ZL(e,t,n,r)}function $L(){return($L=e((()=>{O(),bR(),VL(),dF(),TF()})))()}function eR(e,t,n,r){if(!fr(r))return r;for(let i of T(n.properties))!w(r,i)||BI(n.properties[i],i,r)||(r[i]=yR(e,t,n.properties[i],r[i]));return BL(e,t,n,r)}function tR(e,t,n,r){let i=BL(e,t,n,r);if(!fr(i))return i;for(let r of T(n.properties))!w(i,r)||BI(n.properties[r],r,i)||(i[r]=yR(e,t,n.properties[r],i[r]));return i}function nR(e,t,n,r){return S(e,`Decode`)?eR(e,t,n,r):tR(e,t,n,r)}function rR(){return(rR=e((()=>{O(),bR(),VL(),VI()})))()}function iR(e,t,n,r){if(!fr(r))return r;let i=new RegExp(su(n));for(let a of T(r))i.test(a)&&(r[a]=yR(e,t,lu(n),r[a]));return BL(e,t,n,r)}function aR(e,t,n,r){let i=BL(e,t,n,r);if(!fr(i))return i;let a=new RegExp(su(n));for(let r of T(i))a.test(r)&&(i[r]=yR(e,t,lu(n),i[r]));return i}function oR(e,t,n,r){return S(e,`Decode`)?iR(e,t,n,r):aR(e,t,n,r)}function sR(){return(sR=e((()=>{O(),Z(),bR(),VL()})))()}function cR(e,t,n,r){return w(t,n.$ref)?yR(e,t,t[n.$ref],r):r}function lR(e,t,n,r){return S(e,`Decode`)?BL(e,t,n,cR(e,t,n,r)):cR(e,t,n,BL(e,t,n,r))}function uR(){return(uR=e((()=>{O(),bR(),VL()})))()}function dR(e,t,n,r){if(!y(r))return r;for(let i=0;i<Math.min(n.items.length,r.length);i++)r[i]=yR(e,t,n.items[i],r[i]);return BL(e,t,n,r)}function fR(e,t,n,r){let i=BL(e,t,n,r);if(!y(i))return r;for(let r=0;r<Math.min(n.items.length,i.length);r++)i[r]=yR(e,t,n.items[r],i[r]);return i}function pR(e,t,n,r){return S(e,`Decode`)?dR(e,t,n,r):fR(e,t,n,r)}function mR(){return(mR=e((()=>{O(),bR(),VL()})))()}function hR(e,t,n,r){for(let i of n.anyOf)if(RP(t,i,r))return BL(e,t,n,yR(e,t,i,r));return r}function gR(e,t,n,r){let i=BL(e,t,n,r);for(let r of n.anyOf){let n=yR(e,t,r,uF(i));if(RP(t,r,n))return n}return i}function _R(e,t,n,r){return S(e,`Decode`)?hR(e,t,n,r):gR(e,t,n,r)}function vR(){return(vR=e((()=>{O(),VL(),bR(),dF(),BP()})))()}function yR(e,t,n,r){return Sa(n)?WL(e,t,n,r):oo(n)?KL(e,t,n,r):Eo(n)?QL(e,t,n,r):eo(n)?nR(e,t,n,r):uu(n)?oR(e,t,n,r):Pa(n)?lR(e,t,n,r):Fc(n)?pR(e,t,n,r):H(n)?_R(e,t,n,r):BL(e,t,n,r)}function bR(){return(bR=e((()=>{Z(),GL(),qL(),$L(),rR(),sR(),uR(),mR(),vR(),VL()})))()}function xR(e,t,n){if(!RP(e,t,n))throw new wR(n,VP(e,t,n));return n}function SR(e,t,n){return yR(`Decode`,e,$i().unionPrioritySort?xF(t):t,n)}function CR(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return TR(t,n,r)}var wR,TR;function ER(){return(ER=e((()=>{vs(),KP(),BP(),UP(),TF(),dF(),fL(),FL(),LL(),bR(),SF(),wR=class extends WP{constructor(e,t){super(`Decode`,e,t)}},TR=IL([(e,t,n)=>uF(n),(e,t,n)=>NL(e,t,n),(e,t,n)=>uL(e,t,n),(e,t,n)=>CF(e,t,n),(e,t,n)=>xR(e,t,n),(e,t,n)=>SR(e,t,n)])})))()}function DR(e,t,n){if(!RP(e,t,n))throw new AR(n,VP(e,t,n));return n}function OR(e,t,n){return yR(`Encode`,e,$i().unionPrioritySort?xF(t):t,n)}function kR(...e){let[t,n,r]=fo(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return jR(t,n,r)}var AR,jR;function MR(){return(MR=e((()=>{vs(),KP(),BP(),UP(),TF(),dF(),fL(),FL(),LL(),bR(),SF(),AR=class extends WP{constructor(e,t){super(`Encode`,e,t)}},jR=IL([(e,t,n)=>uF(n),(e,t,n)=>OR(e,t,n),(e,t,n)=>NL(e,t,n),(e,t,n)=>uL(e,t,n),(e,t,n)=>CF(e,t,n),(e,t,n)=>DR(e,t,n)])})))()}function NR(e,t){return ys(t)||VR(e,t.items)}function PR(e,t){return ys(t)||RR({...e,...t.$defs},Na(t.$ref))}function FR(e,t){return ys(t)||t.allOf.some(t=>VR(e,t))}function IR(e,t){return ys(t)||T(t.properties).some(n=>VR(e,t.properties[n]))}function LR(e,t){return ys(t)||VR(e,lu(t))}function RR(e,t){return!UR.has(t.$ref)&&(UR.add(t.$ref),ys(t)||w(e,t.$ref)&&VR(e,e[t.$ref]))}function zR(e,t){return ys(t)||t.items.some(t=>VR(e,t))}function BR(e,t){return ys(t)||t.anyOf.some(t=>VR(e,t))}function VR(e,t){return Sa(t)?NR(e,t):oo(t)?PR(e,t):Eo(t)?FR(e,t):eo(t)?IR(e,t):uu(t)?LR(e,t):Pa(t)?RR(e,t):Fc(t)?zR(e,t):H(t)?BR(e,t):ys(t)}function HR(...e){let[t,n]=fo(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return UR.clear(),VR(t,n)}var UR;function WR(){return(WR=e((()=>{O(),Z(),UR=new Set})))()}function GR(){return(GR=e((()=>{ER(),MR(),WR()})))()}var KR;function qR(){return(qR=e((()=>{KR=class extends Error{constructor(e,t){super(t),this.type=e}}})))()}function JR(e,t){return cr(t.default)?t.default(t):b(t.default)?uF(t.default):t.default}function YR(){return(YR=e((()=>{O(),dF()})))()}function XR(e,t){if(mE(t)&&!Ww(t))throw new KR(t,`Arrays with uniqueItems constraints must specify a default annotation`);let n=NT(t)?t.minItems:0;return Array.from({length:n},()=>Pz(e,t.items))}function ZR(){return(ZR=e((()=>{hE(),Gw(),PT(),Fz(),qR()})))()}function QR(e,t){return cT(t)?BigInt(t.exclusiveMinimum)+BigInt(1):kT(t)?BigInt(t.minimum):BigInt(0)}function $R(){return($R=e((()=>{lT(),AT()})))()}function ez(e,t){return!1}function tz(e,t){let n=Pz(e,t.instanceType);return class{constructor(){Object.assign(this,n)}}}function nz(){return(nz=e((()=>{Fz()})))()}function rz(e,t){return Pz({...e,...t.$defs},Na(t.$ref))}function iz(){return(iz=e((()=>{Z(),Fz()})))()}function az(e,t){return Pz(e,wx(t))}function oz(){return(oz=e((()=>{Z(),Fz()})))()}function sz(e,t){let n=Pz(e,t.returnType);return()=>n}function cz(){return(cz=e((()=>{Fz()})))()}function lz(e,t){return cT(t)&&dr(t.exclusiveMinimum)?t.exclusiveMinimum+1:kT(t)?t.minimum:0}function uz(){return(uz=e((()=>{O(),lT(),AT()})))()}function dz(e,t){return Pz(e,wx(gx(e,t)))}function fz(){return(fz=e((()=>{Z(),Fz()})))()}function pz(e,t){return t.const}function mz(e,t){throw new KR(t,`Cannot create TNever types`)}function hz(){return(hz=e((()=>{qR()})))()}function gz(e,t){return null}function _z(e,t){return cT(t)&&dr(t.exclusiveMinimum)?t.exclusiveMinimum+1:kT(t)?t.minimum:0}function vz(){return(vz=e((()=>{O(),lT(),AT()})))()}function yz(e,t){return(mr(t.required)?[]:t.required).reduce((n,r)=>({...n,[r]:Pz(e,t.properties[r])}),{})}function bz(){return(bz=e((()=>{O(),Fz()})))()}function xz(e,t){if(LT(t)&&!Ww(t))throw new KR(t,`Record with the minProperties constraint must have a default annotation`);return{}}function Sz(){return(Sz=e((()=>{RT(),Gw(),qR()})))()}function Cz(e,t){return w(e,t.$ref)?Pz(e,e[t.$ref]):(()=>{throw new KR(t,`Unable to deref Ref`)})()}function wz(){return(wz=e((()=>{O(),Fz(),qR()})))()}function Tz(e,t){if((GT(t)||uT(t))&&!Ww(t))throw Error(`Strings with format or pattern constraints must specify default`);let n=FT(t)?t.minLength:0;return``.padEnd(n)}function Ez(){return(Ez=e((()=>{KT(),dT(),Gw(),IT()})))()}function Dz(e,t){return Symbol()}function Oz(e,t){let n=Ec(t.pattern);if(ic(n))throw new KR(t,`Unable to create TemplateLiteral due to infinite type expansion`);return Pz(e,n)}function kz(){return(kz=e((()=>{Z(),nS(),Fz(),qR()})))()}function Az(e,t){return Array.from({length:t.minItems},(n,r)=>Pz(e,t.items[r]))}function jz(){return(jz=e((()=>{Fz()})))()}function Mz(e,t){if(S(t.anyOf.length,0))throw Error(`Unable to create Union with no variants`);return Pz(e,t.anyOf[0])}function Nz(){return(Nz=e((()=>{O(),Fz()})))()}function Pz(e,t){return Ww(t)?JR(e,t):Sa(t)?XR(e,t):Ns(t)?QR(e,t):Is(t)?ez(e,t):Ea(t)?tz(e,t):oo(t)?rz(e,t):Co(t)?az(e,t):Aa(t)?sz(e,t):Rs(t)?lz(e,t):Eo(t)?dz(e,t):qs(t)?pz(e,t):Ua(t)?mz(e,t):Xs(t)?gz(e,t):Qs(t)?_z(e,t):eo(t)?yz(e,t):uu(t)?xz(e,t):Pa(t)?Cz(e,t):ic(t)?Tz(e,t):nc(t)?Dz(e,t):sf(t)?Oz(e,t):Fc(t)?Az(e,t):xu(t)?void 0:H(t)?Mz(e,t):(Cu(t),void 0)}function Fz(){return(Fz=e((()=>{Z(),Gw(),YR(),ZR(),$R(),nz(),iz(),oz(),cz(),uz(),fz(),hz(),vz(),bz(),Sz(),wz(),Ez(),kz(),jz(),Nz()})))()}function Iz(...e){let[t,n]=fo(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return Pz(t,n)}function Lz(){return(Lz=e((()=>{Fz()})))()}function Rz(){return(Rz=e((()=>{Lz()})))()}function zz(){return(zz=e((()=>{fs()})))()}function Bz(){return(Bz=e((()=>{zz()})))()}function Vz(e,t,n){if(!RP(e,t,n))throw new Hz(n,VP(e,t,n));return n}var Hz,Uz;function Wz(){return(Wz=e((()=>{_s(),KP(),BP(),UP(),TF(),dF(),fL(),FL(),LL(),Hz=class extends WP{constructor(e,t){super(`Parse`,e,t)}},Uz=IL([(e,t,n)=>uF(n),(e,t,n)=>NL(e,t,n),(e,t,n)=>uL(e,t,n),(e,t,n)=>CF(e,t,n),(e,t,n)=>Vz(e,t,n)])})))()}function Gz(){return(Gz=e((()=>{Wz()})))()}var Kz,qz,Jz;function Yz(){return(Yz=e((()=>{Z(),Kz=N({type:L(`insert`),path:B(),value:P()}),qz=Object({type:L(`update`),path:B(),value:P()}),Jz=N({type:L(`delete`),path:B()}),V([Kz,qz,Jz])})))()}function Xz(){return(Xz=e((()=>{Yz()})))()}function Zz(){return(Zz=e((()=>{BP(),Rz(),Bz(),cB()})))()}function Qz(){return(Qz=e((()=>{Z(),cB()})))()}function $z(){return($z=e((()=>{Z(),cB()})))()}function eB(){return(eB=e((()=>{BP(),Rz(),cB()})))()}function tB(){return(tB=e((()=>{Z(),Rz(),BP(),cB()})))()}function nB(){return(nB=e((()=>{cB()})))()}function rB(){return(rB=e((()=>{nS(),cB()})))()}function iB(){return(iB=e((()=>{BP(),Rz(),cB()})))()}function aB(){return(aB=e((()=>{Z(),BP()})))()}function oB(){return(oB=e((()=>{Z(),ch(),BP(),Rz(),cB(),aB()})))()}function sB(){return(sB=e((()=>{BP(),Rz(),fL()})))()}function cB(){return(cB=e((()=>{Z(),BP(),Rz(),Zz(),Qz(),$z(),eB(),tB(),nB(),rB(),iB(),oB(),sB()})))()}function lB(){return(lB=e((()=>{cB(),KP()})))()}function uB(){return(uB=e((()=>{lB()})))()}function dB(){return(dB=e((()=>{VI(),SF(),aB()})))()}function fB(){return(fB=e((()=>{KP(),BP(),TF(),GR(),fL(),Rz(),FL(),UP(),Bz(),Gz(),Xz(),uB()})))()}function pB(){return(pB=e((()=>{KP(),BP(),TF(),GR(),fL(),Rz(),UP(),FL(),Bz(),Gz(),Xz(),uB(),dB(),fB()})))()}var mB;function hB(){return(hB=e((()=>{ta(),pB(),IP(),mB=class{constructor(e,t){this.hasCodec=HR(e,t),this.buildResult=TP(e,t),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(e){return this.evaluateResult.Check(e)}Parse(e){if(this.Check(e))return e;if($i().correctiveParse)return Uz(this.Context(),this.Type(),e);throw new Hz(e,this.Errors(e))}Errors(e){return this.IsAccelerated()&&this.Check(e)?[]:VP(this.Context(),this.Type(),e)}Clean(e){return CF(this.Context(),this.Type(),e)}Convert(e){return uL(this.Context(),this.Type(),e)}Create(){return Iz(this.Context(),this.Type())}Default(e){return NL(this.Context(),this.Type(),e)}Decode(e){return this.hasCodec?CR(this.Context(),this.Type(),e):this.Parse(e)}Encode(e){return this.hasCodec?kR(this.Context(),this.Type(),e):this.Parse(e)}}})))()}function gB(...e){let[t,n]=fo(e,{2:(e,t)=>[e,t],1:e=>[{},e]});return new mB(t,n)}function _B(){return(_B=e((()=>{hB()})))()}function vB(){return(vB=e((()=>{LP(),_B(),hB()})))()}function yB(e,t){let n,r=null,i=()=>(n??=gB(e),n),a=(e=>{let n=t?.(e);if(n)return r=[n],!1;let a=i(),o=a.Check(e);return r=o?null:[...a.Errors(e)],o});return Object.defineProperties(a,{errors:{configurable:!0,enumerable:!0,get:()=>r,set:e=>{r=e??null}},schema:{configurable:!0,enumerable:!0,get:()=>e}}),a}function bB(){return(bB=e((()=>{vB()})))()}var xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB;function RB(){return(RB=e((()=>{cS(),lS(),jS(),xB=P(),SB=Y({id:X,pluginId:X,pluginName:M(X),surface:V([L(`session`),L(`tool`),L(`run`),L(`settings`),L(`tab`),L(`widget`)]),label:X,description:M(B()),placement:M(B()),schema:M(xB),requiredScopes:M(j(X))}),Y({}),Y({ok:L(!0),descriptors:j(SB)}),Y({pluginId:X,actionId:X,sessionKey:M(X),agentId:M(X),payload:M(xB)}),CB=Y({ok:L(!0),result:M(xB),continueAgent:M(F()),reply:M(xB)}),wB=Y({ok:L(!1),error:B(),code:M(B()),details:M(xB)}),V([CB,wB]),TB=Y({source:L(`clawhub`),packageName:X}),EB=Y({source:L(`official`),pluginId:X}),DB=V([TB,EB]),OB=Y({id:X,name:X,packageName:M(X),description:M(B()),version:M(X),kind:M(j(X)),origin:M(X),installed:F(),enabled:F(),state:V([L(`enabled`),L(`disabled`),L(`not-installed`),L(`error`)]),featured:M(F()),featuredAt:M(I({minimum:0})),order:M(z()),hasIcon:M(F()),install:M(DB),error:M(B()),category:M(X),removable:M(F())}),Y({}),Y({plugins:j(OB),diagnostics:j(P()),mutationAllowed:F()}),Y({pluginId:X}),kB=Y({effective:F(),configured:M(F())}),AB=Y({kind:V([L(`bundled`),L(`clawhub`),L(`npm`),L(`git`),L(`path`),L(`archive`),L(`marketplace`),L(`official-catalog`)]),spec:M(X),packageName:M(X),integrity:M(X),integrityKind:M(V([L(`ssri`),L(`sha256`),L(`git-commit`)]))}),jB=Y({channels:j(X),providers:j(X),tools:j(X),contracts:j(X),hooks:j(X),mcpServers:j(X),cliCommands:j(X),cliBackends:j(X),skills:j(X),dangerousConfigFlags:j(X)}),MB=Y({hooks:Y({allowPromptInjection:kB,allowConversationAccess:kB}),llm:M(Y({allowModelOverride:M(F()),allowedModels:M(j(X)),allowedCompletionModels:M(j(X)),allowAuthProfileOverride:M(F()),allowAgentIdOverride:M(F())})),subagent:M(Y({allowModelOverride:M(F()),allowedModels:M(j(X))}))}),NB=Y({disposition:V([L(`clean`),L(`review-recommended`),L(`review-required`),L(`blocked`)]),reasons:M(j(B())),checkedAt:M(X),acknowledgedAt:M(X),pending:M(F()),stale:M(F())}),PB=Iy(jB,{additionalProperties:!1}),Y({capabilityConsentCode:L(`PLUGIN_CAPABILITY_CONSENT_REQUIRED`),pluginId:X,reviewToken:X,widened:M(PB),acceptedAt:M(X)}),Y({ok:L(!0),plugin:Y({id:X,name:X,version:M(X),description:M(B()),origin:M(X),installed:F(),enabled:F()}),source:M(AB),declared:jB,reviewToken:X,grants:MB,trust:M(NB)}),FB=Y({reviewToken:X}),Y({query:X,limit:M(I({minimum:1,maximum:100}))}),IB=Y({name:X,displayName:X,family:V([L(`code-plugin`),L(`bundle-plugin`)]),channel:V([L(`official`),L(`community`),L(`private`)]),isOfficial:F(),summary:M(B()),latestVersion:M(X),runtimeId:M(X),downloads:M(z({minimum:0})),verificationTier:M(X)}),LB=Y({score:z(),package:IB}),Y({results:j(LB)}),V([Y({source:L(`clawhub`),packageName:X,version:M(X),acknowledgeInstallPolicyWarning:M(L(!0)),acknowledgeCapabilities:M(FB)}),Y({source:L(`official`),pluginId:X,acknowledgeInstallPolicyWarning:M(L(!0)),acknowledgeCapabilities:M(FB)})]),Y({ok:L(!0),plugin:OB,restartRequired:L(!0),warnings:M(j(B()))}),Y({}),Y({ok:L(!0)}),Y({pluginId:X}),Y({ok:L(!0),pluginId:X,restartRequired:L(!0),removed:j(B()),warnings:M(j(B()))}),Y({pluginId:X,enabled:F(),acknowledgeCapabilities:M(FB)}),Y({ok:L(!0),plugin:OB,restartRequired:F(),warnings:M(j(B()))})})))()}var zB,BB;function VB(){return(VB=e((()=>{jS(),zB=X,BB=X})))()}var HB,UB,WB;function GB(){return(GB=e((()=>{cS(),lS(),jS(),HB=V([Y({type:L(`profile`),id:X}),Y({type:L(`agent`),id:X}),Y({type:L(`remote`),pluginId:X,domain:X,idKind:X,id:X}),Y({type:L(`observation`),pluginId:V([X,R()]),accountId:V([X,R()]),senderKind:V([L(`human`),L(`bot`),L(`unknown`)]),id:X}),Y({type:L(`legacy`),actorType:B(),source:V([B(),R()]),id:B()})]),UB=Y({identity:HB,label:M(X),avatarUrl:M(X)}),WB=Y({identity:Y({type:L(`profile`),id:X}),label:M(X),avatarUrl:M(X),sessionCount:I({minimum:1})})})))()}var KB,qB;function JB(){return(JB=e((()=>{cS(),KB=V([L(`shared`),L(`read-only`),L(`suggest`),L(`draft`)]),qB=V([L(`admin`),L(`owner`),L(`member`),L(`viewer`)])})))()}var YB,XB,ZB,QB,$B;function eV(){return(eV=e((()=>{cS(),lS(),jS(),VB(),GB(),JB(),YB=V([L(`read-only`),L(`guarded`),L(`workspace`),L(`full`)]),XB=V([L(`queued`),L(`running`),L(`done`),L(`failed`),L(`killed`),L(`timeout`)]),ZB=Y({mcpServers:M(iu(B({minLength:1}),F())),mcpToolsDeny:M(iu(B({minLength:1}),j(X))),skills:M(iu(B({minLength:1}),F())),webSearch:M(F())}),QB=Y({type:V([L(`human`),L(`agent`),L(`system`)]),id:M(X),label:M(X),avatarUrl:M(X),identity:M(HB)}),$B=Y({actor:QB,assignedBy:M(QB),assignedAt:M(z({minimum:0}))}),N({key:B(),sessionId:M(B()),incognito:M(L(!0)),kind:V([L(`direct`),L(`group`),L(`global`),L(`unknown`)]),label:M(B()),icon:M(B()),color:M(B()),channelAvatarUrl:M(X),boardFace:M(V([L(`chat`),L(`dashboard`)])),displayName:M(B()),derivedTitle:M(B()),lastMessagePreview:M(B()),channel:M(B()),classification:M(zB),agentId:M(X),accountId:M(X),peerKind:M(BB),isMain:M(F()),isBackground:M(F()),chatType:M(V([L(`direct`),L(`group`),L(`channel`)])),updatedAt:M(V([z(),R()])),archived:M(F()),archivedAt:M(z()),archivedBy:M(QB),pinned:M(F()),pinnedAt:M(z()),unread:M(F()),lastReadAt:M(z()),markedUnreadAt:M(z()),lastActivityAt:M(z()),lastInteractionAt:M(z()),status:M(XB),lastRunError:M(B()),lastRunId:M(X),restartRecoveryStatus:M(L(`tombstoned`)),activeLeafEntryId:M(V([X,R()])),spawnedBy:M(B()),parentSessionKey:M(B()),controlOwnerSessionKey:M(B()),childSessions:M(j(B())),forkedFromParent:M(F()),spawnDepth:M(z()),subagentRole:M(V([L(`orchestrator`),L(`leaf`)])),subagentControlScope:M(V([L(`children`),L(`none`)])),swarmGroupId:M(B()),worktree:M(N({id:B(),branch:B(),repoRoot:B()})),execNode:M(B()),execCwd:M(B()),spawnedWorkspaceDir:M(B()),spawnedCwd:M(B()),permissionMode:M(YB),sessionRoot:M(B()),createdVia:M(V([L(`operator`),L(`spawn`),L(`channel`),L(`cron`),L(`talk`),L(`run`),L(`plugin`),L(`internal`)])),createdActor:M(QB),owner:M($B),participants:M(j(UB,{maxItems:4})),participantCount:M(I({minimum:0})),visibility:M(KB),sharingRole:M(qB),createdAt:M(z()),forkSource:M(N({sessionKey:B(),sessionId:B(),entryId:M(B())})),previousSessionId:M(B()),inputTokens:M(z()),outputTokens:M(z()),totalTokens:M(z()),totalTokensFresh:M(F()),contextTokens:M(z()),estimatedCostUsd:M(z()),model:M(B()),modelProvider:M(B()),modelOverrideSource:M(V([L(`user`),L(`auto`),R()])),toolOverrides:M(ZB)},{additionalProperties:!0})})))()}var tV;function nV(){return(nV=e((()=>{tV=`^(?!\\.{1,2}$)(?:[^\\uD800-\\uDFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])+$`})))()}var rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV;function UV(){return(UV=e((()=>{cS(),nV(),lS(),jS(),rV=B({minLength:1,pattern:tV,description:`Exact full approval id encoded safely in deep-link paths.`}),iV=V([L(`exec`),L(`plugin`),L(`system-agent`)]),aV=V([L(`allow-once`),L(`allow-always`),L(`deny`)]),oV=V([L(`allow-once`),L(`allow-always`)]),V([L(`user`),L(`timeout`),L(`malformed-verdict`),L(`no-route`),L(`run-aborted`),L(`gateway-restart`),L(`storage-corrupt`)]),sV=V([L(`user`)]),cV=V([L(`user`),L(`malformed-verdict`),L(`no-route`),L(`storage-corrupt`)]),lV=V([L(`timeout`)]),uV=V([L(`run-aborted`),L(`gateway-restart`)]),dV=V([L(`info`),L(`warning`),L(`critical`)]),fV=Y({kind:L(`message-send`),target:B({minLength:1,maxLength:128}),recipientCount:I({minimum:1,maximum:1e6}),recipients:M(j(B({minLength:1,maxLength:128}),{maxItems:5})),audience:M(V([L(`internal`),L(`external`)]))}),pV=Y({kind:L(`payment`),amount:B({minLength:1,maxLength:40}),currency:B({minLength:1,maxLength:12}),target:B({minLength:1,maxLength:128})}),mV=Y({kind:L(`external-post`),target:B({minLength:1,maxLength:128}),visibility:V([L(`public`),L(`restricted`)])}),hV=Y({kind:L(`standing-grant`),automation:B({minLength:1,maxLength:128}),command:B({minLength:1,maxLength:256}),expiresInDays:M(I({minimum:1,maximum:3650}))}),gV=V([fV,pV,mV,hV]),_V=j(aV,{minItems:1,maxItems:3,uniqueItems:!0,contains:L(`deny`),description:`Available reviewer decisions. Deny is always available so malformed or unsafe input can fail closed.`}),vV=Pc([L(`allow-once`),L(`deny`)]),yV=N({kind:L(`exec`),commandText:X,commandPreview:M(V([B(),R()])),warningText:M(V([B(),R()])),host:M(V([B(),R()])),nodeId:M(V([X,R()])),agentId:M(V([X,R()])),scope:M(gV),allowedDecisions:_V},{additionalProperties:!1,description:`Reviewer-safe exec presentation. Runtime cwd, environment, system-run binding, and execution plan are intentionally excluded.`}),bV=Y({kind:L(`plugin`),title:B({minLength:1,maxLength:80}),description:B({minLength:1,maxLength:512}),detail:M(B({minLength:1,maxLength:16384})),severity:dV,pluginId:M(V([X,R()])),toolName:M(V([X,R()])),agentId:M(V([X,R()])),scope:M(gV),allowedDecisions:_V}),xV=Y({kind:L(`system-agent`),title:B({minLength:1,maxLength:80}),description:B({minLength:1,maxLength:512}),proposalHash:B({pattern:`^[a-f0-9]{64}$`}),agentId:M(V([X,R()])),allowedDecisions:vV}),SV=V([yV,bV,xV]),CV={id:rV,urlPath:X,createdAtMs:I({minimum:0}),expiresAtMs:I({minimum:0}),presentation:SV},wV=Y({agentId:M(X),sessionKey:M(X)}),TV=Y({kind:V([L(`device`),L(`channel`),L(`runtime`),L(`system`)]),id:M(X)}),EV={resolvedAtMs:I({minimum:0}),source:M(wV),resolver:M(TV)},DV=Y({...CV,status:L(`pending`),sourceSessionKey:M(X)}),OV=Y({...CV,...EV,status:L(`allowed`),decision:oV,reason:sV}),kV=Y({...CV,...EV,status:L(`denied`),decision:L(`deny`),reason:cV}),AV=Y({...CV,...EV,status:L(`expired`),reason:lV}),jV=Y({...CV,...EV,status:L(`cancelled`),reason:uV}),MV=V([DV,OV,kV,AV,jV]),NV=V([OV,kV,AV,jV]),Y({id:CV.id}),PV=Y({approval:MV}),Y({cursor:M(B({minLength:1,maxLength:512})),limit:M(I({minimum:1,maximum:100})),kind:M(iV)}),FV=Y({items:j(NV),nextCursor:M(B({minLength:1,maxLength:512}))}),IV=Y({channel:X,accountId:X,senderId:X}),Y({id:CV.id,kind:iV,decision:aV,reviewer:M(IV),grantExpiresInDays:M(I({minimum:1,maximum:3650}))}),LV=Y({applied:F(),approval:NV}),RV={sessionKey:X,sourceSessionKey:M(X),updatedAtMs:I({minimum:0})},zV=GS(`2026.7`,Y({...RV,phase:L(`pending`),approval:DV})),BV=GS(`2026.7`,Y({...RV,phase:L(`terminal`),approval:NV})),VV=GS(`2026.7`,V([zV,BV])),HV=GS(`2026.7`,Y({sessionKey:X,updatedAtMs:I({minimum:0}),approvals:j(DV),truncated:F()}))})))()}function WV(){return Y({id:X,type:X,label:M(X),status:GV,platform:M(X),sessionHost:M(F()),workerSlots:M(QV),workerBundle:M(ZV),lastConnectedAtMs:M(I({minimum:0})),lastDisconnectedAtMs:M(I({minimum:0})),lastSeenAtMs:M(I({minimum:0})),lastSeenReason:M(X),trust:M(KV),capabilities:M(j(X)),invocableCommands:M(j(B({minLength:1,maxLength:128}),{maxItems:128,uniqueItems:!0})),desktop:M(F()),issues:M(j(XV,{minItems:1,maxItems:8})),worker:M($V)})}var GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH;function aH(){return(aH=e((()=>{cS(),lS(),jS(),GV=B({enum:[`available`,`unavailable`,`starting`,`stopping`,`error`]}),KV=B({enum:[`persistent`,`disposable`]}),qV=V([L(`requested`),L(`provisioning`),L(`bootstrapping`),L(`ready`),L(`attached`),L(`idle`),L(`draining`),L(`destroying`),L(`destroyed`),L(`failed`),L(`orphaned`)]),JV=V([L(`stopped`),L(`connecting`),L(`connected`),L(`reconnecting`)]),YV=V([L(`browser`),L(`terminal`)]),XV=Y({code:L(`update-required`),action:L(`update-and-reconnect`),updateCommand:L(`openclaw update`),headlessReconnectCommand:L(`openclaw node restart`)}),ZV=V([Y({status:L(`installed`),version:X}),Y({status:L(`missing`)})]),QV=Os(Y({total:I({minimum:1,maximum:1024}),available:I({minimum:0,maximum:1024})}),e=>e.available<=e.total,e=>`available worker slots ${e.available} exceed total ${e.total}`),$V=Y({providerId:X,leaseId:M(X),state:qV,ageMs:I({minimum:0}),idleMs:M(I({minimum:0})),attachedSessionIds:j(X),tunnelStatus:JV,error:M(X),desktop:M(F()),desktopApps:M(j(YV,{maxItems:8,uniqueItems:!0}))}),eH=WV(),Y({}),tH=Y({id:B({minLength:1,maxLength:128}),label:B({minLength:1,maxLength:128}),cpu:M(I({minimum:1,maximum:65536})),memoryGb:M(I({minimum:1,maximum:65536})),default:M(F())}),nH=j(tH,{minItems:1,maxItems:32}),rH=V([L(`worker-turn`),L(`remote-exec`)]),iH=Y({id:X,providerId:X,trust:M(KV),executionMode:M(rH),executionModes:M(V([Pc([rH]),Pc([L(`worker-turn`),L(`remote-exec`)])])),machines:M(nH)}),Y({environments:j(eH),profiles:M(j(iH))}),Y({environmentId:X}),WV(),Y({profileId:X,idempotencyKey:X}),WV(),Y({environmentId:X,force:M(F())}),WV(),Y({environmentId:X,control:M(F())}),Y({transport:B({enum:[`rfb`]}),wsPath:X,expiresAtMs:I({minimum:0}),control:F(),vncPassword:M(X)}),Y({environmentId:X,app:YV}),Y({app:YV,status:L(`ready`)})})))()}var oH,sH,cH,lH,uH,dH,fH,pH,mH;function hH(){return(hH=e((()=>{cS(),lS(),jS(),Y({}),oH=B({minLength:1,maxLength:128,pattern:`^[A-Z][A-Z0-9_]{0,127}$`}),sH=B({pattern:`^github-setup-[a-f0-9]{32}$`}),cH=B({minLength:1,maxLength:128,pattern:`^(?:[A-Z][A-Z0-9_]{0,127}|github-setup-[a-f0-9]{32})$`}),lH={name:oH,scopeKind:L(`team`),scopeId:L(``),createdAtMs:I({minimum:0}),updatedAtMs:I({minimum:0}),updatedBy:M(B())},uH=j(B({minLength:1,maxLength:253}),{maxItems:128,uniqueItems:!0}),dH=Y({...lH,kind:L(`secret`),allowedHosts:M(GS(`2026.8`,uH))}),fH=Y({...lH,kind:L(`env`),value:B({maxLength:65536})}),pH=V([dH,fH]),Y({}),Y({entries:j(pH)}),Y({name:cH,value:B({maxLength:65536}),kind:V([L(`secret`),L(`env`)]),allowedHosts:M(GS(`2026.8`,uH))}),Y({name:cH}),Y({ok:L(!0),reloaded:F(),warningCount:M(I({minimum:0}))}),Y({commandName:X,targetIds:j(X),allowedPaths:M(j(X)),forcedActivePaths:M(j(X)),optionalActivePaths:M(j(X)),providerOverrides:M(Y({webSearch:M(X),webFetch:M(X)}))}),mH=Y({path:M(X),pathSegments:j(X),value:P()}),Y({ok:M(F()),assignments:M(j(mH)),diagnostics:M(j(X)),inactiveRefPaths:M(j(X))})})))()}var gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU,EU,DU,OU,kU,AU;function jU(){return(jU=e((()=>{cS(),lS(),aH(),jS(),hH(),eV(),gH=Y({id:X,fallback:M(V([L(`openclaw`),L(`none`)])),cloudPlacementSupported:M(F()),cloudPlacementExecutionMode:M(rH),devicePlacement:M(Y({requiredNodeCommands:j(B({minLength:1,maxLength:128}),{maxItems:32,uniqueItems:!0}),consumesWorkerSlot:F()})),devicePlacementSupported:M(F()),source:V([L(`env`),L(`agent`),L(`defaults`),L(`model`),L(`provider`),L(`implicit`),L(`session`),L(`session-key`)])}),_H=Y({id:X,label:X}),vH=Y({id:X,label:X,contextWindow:I({minimum:1})}),yH=Y({id:X,name:X,provider:X,alias:M(X),tags:M(j(X)),available:M(F()),unavailableReason:M(V([L(`missing-auth`),L(`auth-failed`),L(`cooldown`)])),unavailableUntil:M(I({minimum:0})),contextWindow:M(I({minimum:1})),contextWindows:M(j(vH)),contextWindowDefault:M(X),reasoning:M(F()),thinkingLevels:M(j(_H)),thinkingDefault:M(X),effectiveFastMode:M(V([F(),L(`auto`)])),supportsTools:M(F()),agentRuntime:M(gH),apiKeySupported:M(F()),input:M(j(V([L(`text`),L(`image`),L(`audio`),L(`video`),L(`document`)])))}),bH=V([L(`agent`),L(`system`)]),xH=V([L(`operator`),L(`agent`),L(`claw`)]),SH=Y({id:X,kind:M(bH),createdVia:M(xH),creatorAgentId:M(V([X,R()])),createdAt:M(I({minimum:0})),name:M(X),identity:M(Y({name:M(X),theme:M(X),emoji:M(X),avatar:M(X),avatarUrl:M(X)})),workspace:M(X),workspaceGit:M(F()),model:M(Y({primary:M(X),fallbacks:M(j(X))})),agentRuntime:M(gH),thinkingLevels:M(j(_H)),thinkingOptions:M(j(X)),thinkingDefault:M(X),defaultPermissionMode:M(YB)}),Y({}),CH=V([L(`sole`),L(`legacy`),L(`explicit`)]),Y({defaultId:X,ownership:M(CH),selectionRequired:M(F()),mainKey:X,scope:V([L(`per-sender`),L(`global`)]),agents:j(SH)}),Y({name:X,workspace:M(X),model:M(X),emoji:M(B()),avatar:M(B())}),Y({ok:L(!0),agentId:X,name:X,workspace:X,model:M(X)}),Y({agentId:X,name:M(X),workspace:M(X),model:M(V([X,R()])),emoji:M(B()),avatar:M(B())}),Y({ok:L(!0),agentId:X}),Y({agentId:X,deleteFiles:M(F())}),Y({ok:L(!0),agentId:X,removedBindings:I({minimum:0}),removed:M(j(Y({path:X,method:V([L(`trash`),L(`missing`)])}))),failed:M(j(Y({path:X,reason:X}))),purgeFailed:M(L(!0))}),wH=Y({name:X,path:X,missing:F(),expectedAbsent:M(F()),size:M(I({minimum:0})),updatedAtMs:M(I({minimum:0})),content:M(B())}),Y({agentId:X}),Y({agentId:X,workspace:X,files:j(wH)}),Y({agentId:X,name:X}),Y({agentId:X,workspace:X,file:wH}),Y({agentId:X,name:X,content:B()}),Y({ok:L(!0),agentId:X,workspace:X,file:wH}),N({agentId:M(X),includeProviderCapabilities:M(F()),preparedOnly:M(F()),refresh:M(F()),view:M(V([L(`default`),L(`configured`),L(`provider-config`),L(`all`)]))},{additionalProperties:!1,not:{properties:{preparedOnly:{const:!0},refresh:{const:!0}},required:[`preparedOnly`,`refresh`]}}),Y({refresh:M(F()),agentId:M(B())}),Y({provider:X,profileIds:M(j(X,{minItems:1})),agentId:M(B())}),TH=Y({provider:X,profileId:M(X),status:V([L(`ready`),L(`auth-rejected`),L(`unavailable`)])}),Y({models:j(yH),providerOutcomes:M(j(TH))}),Y({provider:X,profileId:M(X),timeoutMs:M(I({minimum:1})),agentId:M(B())}),EH=V([L(`ok`),L(`auth`),L(`rate_limit`),L(`billing`),L(`timeout`),L(`format`),L(`unknown`),L(`no_model`)]),DH=Y({profileId:M(X),label:X,status:EH,latencyMs:M(I({minimum:0})),error:M(B())}),Y({provider:X,status:EH,latencyMs:M(I({minimum:0})),error:M(B()),results:j(DH)}),Y({agentId:M(X)}),Y({}),Y({bins:j(X)}),OH=B({minLength:64,maxLength:64,pattern:`^[a-fA-F0-9]{64}$`}),kH=B({minLength:1,maxLength:2048}),AH=B({minLength:1,maxLength:5592408}),Y({kind:L(`skill-archive`),slug:X,sizeBytes:I({minimum:1}),sha256:M(OH),force:M(F()),idempotencyKey:M(kH)}),Y({uploadId:X,offset:I({minimum:0}),dataBase64:AH}),Y({uploadId:X,sha256:M(OH)}),jH="ClawHub skill reference: `@owner/slug`, `skills-sh:owner/repo/slug`, or a bare `slug` when no publisher is known.",MH=`not-scanned-by-clawhub`,V([Y({agentId:M(X),name:X,installId:X,dangerouslyForceUnsafeInstall:M(F({deprecated:!0,description:`Deprecated compatibility field. Current servers ignore it; install policy is controlled by security.installPolicy.`})),timeoutMs:M(I({minimum:1e3}))}),Y({agentId:M(X),source:L(`clawhub`),slug:B({minLength:1,description:jH}),version:M(X),force:M(F()),timeoutMs:M(I({minimum:1e3}))}),Y({agentId:M(X),source:L(`upload`),uploadId:X,slug:X,force:M(F()),sha256:M(OH),timeoutMs:M(I({minimum:1e3}))})]),V([Y({skillKey:X,enabled:M(F()),apiKey:M(B()),env:M(iu(X,B()))}),Y({agentId:M(X),source:L(`clawhub`),slug:M(X),all:M(F()),force:M(F())})]),Y({query:M(X),limit:M(I({minimum:1,maximum:100}))}),Y({results:j(Y({score:z(),slug:X,installRef:B({minLength:1,description:"Source-qualified reference for this result. Send it as `slug` to skills.install; several publishers can share one slug."}),installOnly:M(L(!0,{description:"Present when ClawHub serves this result install-only: offer install directly with `installRef`, because skills.detail cannot answer for it. Absence means the ordinary review-then-install flow, so results from servers that predate this field keep their existing behavior."})),trustState:M(L(MH,{description:`Present when ClawHub resolves this result from a source it has not scanned.`})),displayName:X,summary:M(B()),icon:M(V([B(),R()])),version:M(X),updatedAt:M(I())}))}),Y({slug:B({minLength:1,description:jH})}),Y({agentId:M(X)}),Y({skill:V([Y({slug:X,displayName:X,summary:M(B()),tags:M(iu(X,B())),channel:M(V([B(),R()])),isOfficial:M(V([F(),R()])),createdAt:I(),updatedAt:I()}),R()]),latestVersion:M(V([Y({version:X,createdAt:I(),changelog:M(B())}),R()])),metadata:M(V([Y({os:M(V([j(B()),R()])),systems:M(V([j(B()),R()]))}),R()])),owner:M(V([Y({handle:M(V([X,R()])),displayName:M(V([X,R()])),image:M(V([B(),R()])),official:M(V([F(),R()])),channel:M(V([B(),R()])),isOfficial:M(V([F(),R()]))}),R()]))}),Y({schema:L(`openclaw.skills.security-verdicts.v1`),items:j(Y({registry:X,ok:F(),decision:X,reasons:j(B()),requestedSlug:X,requestedOwnerHandle:M(X),requestedVersion:X,slug:M(V([X,R()])),version:M(V([X,R()])),displayName:M(V([B(),R()])),publisherHandle:M(V([B(),R()])),publisherDisplayName:M(V([B(),R()])),createdAt:M(V([I(),R()])),checkedAt:M(V([I(),R()])),skillUrl:M(V([B(),R()])),securityAuditUrl:M(V([B(),R()])),securityStatus:M(V([B(),R()])),securityPassed:M(V([F(),R()])),error:M(Y({code:M(B()),message:M(B())}))}))}),Y({agentId:M(X),skillKey:X}),Y({schema:L(`openclaw.skills.skill-card.v1`),skillKey:X,path:X,sizeBytes:I({minimum:0}),content:B()}),NH=V([L(`pending`),L(`applied`),L(`rejected`),L(`quarantined`),L(`stale`)]),PH=V([L(`create`),L(`update`)]),FH=V([L(`pending`),L(`clean`),L(`failed`),L(`quarantined`)]),IH=V([L(`skill-workshop`),L(`cli`),L(`gateway`)]),LH=B({minLength:1,maxLength:1048576}),RH=Y({path:X,content:B({maxLength:262144})}),zH=Y({path:X,sizeBytes:I({minimum:0,maximum:262144}),hash:OH,targetExisted:M(F()),targetContentHash:M(OH)}),BH=Y({ruleId:X,severity:V([L(`info`),L(`warn`),L(`critical`)]),file:X,line:I({minimum:1}),message:X,evidence:B()}),VH=Y({state:FH,scannedAt:X,critical:I({minimum:0}),warn:I({minimum:0}),info:I({minimum:0}),findings:j(BH)}),HH=Y({skillName:X,skillKey:X,skillDir:X,skillFile:X,source:M(X),currentContentHash:M(X)}),UH=Y({agentId:M(X),sessionKey:M(X),runId:M(X),messageId:M(X)}),WH=Y({ruleId:B({minLength:1,maxLength:256}),severity:V([L(`info`),L(`warn`),L(`critical`)]),message:B({minLength:1,maxLength:4e3}),file:M(B({minLength:1,maxLength:1024})),line:M(I({minimum:1}))}),GH=Y({summary:M(B({maxLength:8e3})),findings:M(j(WH,{maxItems:200})),metrics:M(iu(B(),V([B({maxLength:4e3}),z(),F()]),{maxProperties:64,propertyNames:B({minLength:1,maxLength:128})})),evaluatorVersion:M(B({minLength:1,maxLength:128})),mode:M(B({minLength:1,maxLength:128})),decision:M(V([L(`pass`),L(`revise`),L(`block`)])),decisionReason:M(B({maxLength:2e3}))}),KH={pluginId:B({minLength:1,maxLength:128}),pluginVersion:M(B({minLength:1,maxLength:128})),evaluatorId:B({minLength:1,maxLength:128})},qH=V([Y({...KH,status:L(`completed`),result:GH}),Y({...KH,status:L(`skipped`)}),Y({...KH,status:L(`error`),error:B({minLength:1,maxLength:2e3})})]),JH=Y({id:X,proposedVersion:X,revisionHash:OH,trigger:V([L(`manual`),L(`apply`)]),startedAt:X,completedAt:X,correlationId:M(X),targetTreeSha256:M(OH),outcomes:j(qH,{maxItems:64})}),YH=Y({schema:L(`openclaw.skill-workshop.proposal.v1`),id:X,kind:PH,status:NH,title:X,description:X,createdAt:X,updatedAt:X,createdBy:IH,origin:M(UH),proposedVersion:X,draftFile:L(`PROPOSAL.md`),draftHash:X,supportFiles:M(j(zH,{maxItems:64})),target:HH,scan:VH,goal:M(B()),evidence:M(B()),appliedAt:M(X),rejectedAt:M(X),quarantinedAt:M(X),staleAt:M(X),statusReason:M(B()),evaluation:M(JH)}),XH=Y({id:X,kind:PH,status:NH,title:X,description:X,skillName:X,skillKey:X,createdAt:X,updatedAt:X,scanState:FH}),Y({agentId:M(X)}),Y({schema:L(`openclaw.skill-workshop.proposals-manifest.v1`),updatedAt:X,proposals:j(XH)}),Y({agentId:M(X),proposalId:X}),Y({record:YH,revisionHash:M(OH),content:B(),supportFiles:M(j(RH,{maxItems:64}))}),Y({agentId:M(X),name:X,description:X,content:LH,supportFiles:M(j(RH,{maxItems:64})),goal:M(B()),evidence:M(B())}),Y({agentId:M(X),skillName:X,description:M(X),content:LH,supportFiles:M(j(RH,{maxItems:64})),goal:M(B()),evidence:M(B())}),Y({agentId:M(X),proposalId:X,expectedRevisionHash:M(OH),correlationId:M(B({minLength:1,maxLength:256})),content:M(LH),supportFiles:M(j(RH,{maxItems:64})),description:M(X),goal:M(B()),evidence:M(B())}),Y({agentId:M(X),targetAgentId:M(X),proposalId:X,expectedRevisionHash:OH,instructions:B({minLength:1,maxLength:32768}),sessionKey:X,sessionId:M(X),idempotencyKey:X}),N({runId:X,status:V([L(`started`),L(`in_flight`),L(`ok`),L(`timeout`),L(`error`)])},{additionalProperties:!0}),Y({agentId:M(X),proposalId:X,expectedRevisionHash:OH,correlationId:M(B({minLength:1,maxLength:256})),reason:M(B())}),Y({agentId:M(X),proposalId:X,expectedRevisionHash:M(OH),correlationId:M(B({minLength:1,maxLength:256})),reason:M(B())}),Y({agentId:M(X),proposalId:X,expectedRevisionHash:M(OH),correlationId:M(B({minLength:1,maxLength:256}))}),Y({record:YH,evaluation:JH}),ZH=V([L(`created`),L(`revised`),L(`evaluation_completed`),L(`applied`),L(`rejected`),L(`quarantined`),L(`stale`)]),QH=Y({type:V([L(`agent`),L(`gateway`),L(`plugin`),L(`system`)]),id:M(X)}),$H=iu(B(),V([B({maxLength:4e3}),z(),F(),R()]),{maxProperties:32,propertyNames:B({minLength:1,maxLength:80})}),eU=Y({sequence:I({minimum:1}),eventId:X,proposalId:X,proposedVersion:X,revisionHash:OH,type:ZH,occurredAt:X,actor:QH,correlationId:M(X),payload:M($H),evaluation:M(JH)}),Y({agentId:M(X),proposalId:M(X),afterSequence:M(I({minimum:0})),limit:M(I({minimum:1,maximum:200}))}),Y({events:j(eU,{maxItems:200}),nextSequence:M(I({minimum:1}))}),Y({record:YH,targetSkillFile:X}),tU=V([L(`active`),L(`stale`),L(`archived`)]),nU=Y({skillFile:X,skillKey:X,skillName:X,state:tU,pinned:F(),createdAtMs:z(),stateChangedAtMs:z(),lastUsedAtMs:V([z(),R()]),useCount:z(),archivedReason:V([B(),R()])}),rU=Y({left:X,right:X,score:z()}),iU=Y({attemptedAtMs:z(),succeededAtMs:M(z()),error:M(B())}),aU=Y({attemptedAtMs:z(),outcome:V([L(`applied`),L(`proposed`),L(`nothing`),L(`failed`)]),proposalId:M(B()),error:M(B()),usage:M(Y({inputTokens:z(),cachedInputTokens:z(),outputTokens:z()}))}),Y({}),Y({lastAttemptAtMs:V([z(),R()]),lastSuccessAtMs:V([z(),R()]),lastError:V([B(),R()]),collectionReview:M(iu(X,iU)),experienceReview:M(iu(X,aU)),counts:Y({active:z(),stale:z(),archived:z()}),skills:j(nU),overlaps:j(rU)}),Y({skill:X}),Y({agentId:M(X),includePlugins:M(F())}),oU=V([L(`system`),L(`agent`)]),Y({agentId:X,selectedScope:oU}),sU=V([L(`system-detected`),L(`system-configured`),L(`agent-override`)]),cU=B({minLength:1,pattern:`\\S`}),lU=Y({name:M(cU),email:M(cU)}),uU=Y({source:sU,credentialKind:V([L(`native`),L(`managed-pat`),L(`managed-oauth`)]),credentialState:V([L(`available`),L(`unavailable`),L(`configured_unavailable`),L(`unverified`),L(`rate_limited`)]),account:V([Y({login:X}),R()]),gitAuthor:Y({name:V([B(),R()]),email:V([B(),R()])}),evidence:V([L(`github-api`),L(`none`),L(`unverified`),L(`rate-limited`)]),accessExpiresAtMs:V([I({minimum:0}),R()]),refreshState:V([L(`not_applicable`),L(`available`),L(`expired`),L(`unavailable`),L(`refreshing`),L(`failed`)]),oauthScopes:j(B({minLength:1,maxLength:128,pattern:`\\S`}),{maxItems:32}),repositoryGrants:L(`unknown`)}),dU=Y({scope:oU,configured:F(),identity:V([uU,R()])}),fU=Y({agentId:X,selectedScope:oU,selected:dU,effective:uU}),pU=Y({scope:oU,agentId:X,mode:L(`managed`),secretName:sH,gitAuthor:M(lU)}),mU=Y({scope:oU,agentId:X,mode:L(`inherit`)}),V([pU,mU]),hU=B({pattern:`^github-device-[a-f0-9]{32}$`}),Y({scope:oU,agentId:X}),Y({requestId:hU,userCode:B({pattern:`^[A-Z0-9]{4}-[A-Z0-9]{4}$`}),verificationUri:L(`https://github.com/login/device`),expiresInMs:I({minimum:1,maximum:9e5}),pollAfterMs:I({minimum:1e3,maximum:6e4})}),Y({requestId:hU}),gU=Y({status:L(`pending`),retryAfterMs:I({minimum:1,maximum:6e4})}),_U=Y({status:L(`slow_down`),retryAfterMs:I({minimum:1,maximum:6e4})}),vU=Y({status:L(`access_denied`)}),yU=Y({status:L(`expired`)}),bU=Y({status:L(`incorrect_device_code`)}),xU=Y({status:L(`network_error`),retryAfterMs:I({minimum:1,maximum:6e4})}),SU=Y({status:L(`failed`),reason:V([L(`identity_changed`),L(`setup_failed`)])}),CU=Y({status:L(`success`),githubStatus:fU}),V([gU,_U,vU,yU,bU,xU,SU,CU]),Y({requestId:hU}),Y({cancelled:F()}),Y({agentId:M(X),sessionKey:X}),Y({name:X,args:M(iu(B(),P())),sessionKey:M(X),agentId:M(X),confirm:M(F()),idempotencyKey:M(X),conversationReadOrigin:M(L(`direct-operator`))}),wU=Y({id:V([L(`minimal`),L(`coding`),L(`messaging`),L(`full`)]),label:X}),TU=Y({id:X,label:X,description:B(),source:V([L(`core`),L(`plugin`)]),pluginId:M(X),optional:M(F()),risk:M(V([L(`low`),L(`medium`),L(`high`)])),tags:M(j(X)),defaultProfiles:j(V([L(`minimal`),L(`coding`),L(`messaging`),L(`full`)]))}),EU=Y({id:X,label:X,source:V([L(`core`),L(`plugin`)]),pluginId:M(X),tools:j(TU)}),Y({agentId:X,profiles:j(wU),groups:j(EU)}),DU=Y({id:X,label:X,description:B(),rawDescription:B(),source:V([L(`core`),L(`plugin`),L(`channel`),L(`mcp`)]),pluginId:M(X),channelId:M(X),mcpServer:M(X),mcpToolName:M(X),deniedBySession:M(L(!0)),risk:M(V([L(`low`),L(`medium`),L(`high`)])),tags:M(j(X))}),OU=Y({id:V([L(`core`),L(`plugin`),L(`channel`),L(`mcp`)]),label:X,source:V([L(`core`),L(`plugin`),L(`channel`),L(`mcp`)]),tools:j(DU)}),kU=Y({id:X,severity:V([L(`info`),L(`warning`)]),message:B(),servers:M(j(X))}),Y({agentId:X,profile:X,groups:j(OU),notices:M(j(kU))}),AU=Y({code:X,message:X,details:M(P())}),Y({ok:F(),toolName:X,output:M(P()),requiresApproval:M(F()),approvalId:M(X),source:M(V([L(`core`),L(`plugin`),L(`mcp`),L(`channel`),B()])),error:M(AU)})})))()}var MU,NU,PU,FU,IU,LU,RU,zU,BU,VU;function HU(){return(HU=e((()=>{cS(),lS(),jS(),MU=B({minLength:1,maxLength:1024,pattern:`^[A-Za-z0-9_./\\[\\]\\-*]+$`}),NU=Y({channel:M(B()),to:M(B()),accountId:M(B()),threadId:M(V([B(),z()]))}),Y({}),Y({raw:X,baseHash:M(X)}),PU={raw:X,baseHash:M(X),sessionKey:M(B()),deliveryContext:M(NU),note:M(B()),restartDelayMs:M(I({minimum:0}))},Y(PU),Y({...PU,replacePaths:M(j(X,{maxItems:256}))}),Y({}),Y({path:MU}),Y({refreshCheckout:M(F())}),FU=Y({sha:X,subject:B({maxLength:120})}),IU=Y({currentVersion:X,latestVersion:X,channel:X,currentSha:M(X),upstreamRef:M(X),upstreamSha:M(X),commitsBehind:M(I({minimum:0})),commits:M(j(FU,{maxItems:5}))}),LU={currentSha:M(X),commitAtMs:M(I({minimum:0})),installedAtMs:M(I({minimum:0}))},RU=V([Y({...LU,status:L(`current`)}),Y({...LU,status:L(`behind`),commitsBehind:I({minimum:1})}),Y({...LU,status:L(`ahead`),commitsAhead:I({minimum:1})}),Y({...LU,status:L(`diverged`),commitsAhead:I({minimum:1}),commitsBehind:I({minimum:1})}),Y({...LU,status:L(`unavailable`),reason:V([L(`fetch-failed`),L(`no-upstream`),L(`no-upstream-sha`),L(`comparison-failed`),L(`git-unavailable`)])})]),zU=Y({channel:X,autoEnabled:F(),install:M(Y({kind:V([L(`package`),L(`git`),L(`unknown`)]),git:M(RU)})),target:M(V([Y({kind:L(`package`),version:X}),Y({kind:L(`git`),upstreamRef:X,upstreamSha:X,commitsBehind:I({minimum:0})})])),campaign:M(Y({id:X,state:V([L(`waiting-for-idle`),L(`countdown`),L(`applying`)]),announcedAtMs:I({minimum:0}),applyAtMs:M(I({minimum:0})),holdUntilMs:M(I({minimum:0})),forceAtMs:I({minimum:0}),updatedAtMs:I({minimum:0})}))}),Y({sentinel:P(),updateAvailable:V([IU,R()]),effectiveChannel:M(V([L(`stable`),L(`extended-stable`),L(`beta`),L(`dev`)])),schedule:M(zU)}),Y({}),Y({ok:F(),schedule:M(zU)}),Y({sessionKey:M(B()),deliveryContext:M(NU),note:M(B()),continuationMessage:M(B()),restartDelayMs:M(I({minimum:0})),timeoutMs:M(I({minimum:1})),target:M(Y({kind:L(`git`),upstreamRef:B({minLength:1,pattern:`^[^\\s\\u0000-\\u001f\\u007f-\\u009f]+$`}),upstreamSha:B({pattern:`^[a-fA-F0-9]{40}$`})}))}),BU=Y({label:M(B()),help:M(B()),docsUrl:M(B()),tags:M(j(B())),group:M(B()),order:M(I()),advanced:M(F()),sensitive:M(F()),placeholder:M(B()),presentation:M(L(`phone-number`)),itemTemplate:M(P())}),Y({schema:P(),uiHints:iu(B(),BU),version:X,generatedAt:X}),VU=Y({key:X,path:X,type:M(V([B(),j(B())])),required:F(),hasChildren:F(),reloadKind:M(V([L(`restart`),L(`hot`),L(`none`)])),hint:M(BU),hintPath:M(B())}),Y({path:X,schema:P(),reloadKind:M(V([L(`restart`),L(`hot`),L(`none`)])),hint:M(BU),hintPath:M(B()),children:j(VU)})})))()}var UU,WU,GU,KU,qU,JU;function YU(){return(YU=e((()=>{cS(),jU(),lS(),HU(),jS(),GB(),UU=Y({host:M(X),ip:M(X),version:M(X),platform:M(X),deviceFamily:M(X),modelIdentifier:M(X),timeZone:M(X),mode:M(X),lastInputSeconds:M(I({minimum:0})),reason:M(X),tags:M(j(X)),text:M(B()),ts:I({minimum:0}),onlineSince:M(I({minimum:0})),lastActivityAt:M(I({minimum:0})),deviceId:M(X),roles:M(j(X)),scopes:M(j(X)),instanceId:M(X),user:M(Y({id:X,identity:M(WB.properties.identity),email:M(X),name:M(X),avatarUrl:M(X)})),watchedSessions:M(j(X))}),WU=Y({path:B(),count:I({minimum:0}),recent:j(Y({key:B(),updatedAt:V([I({minimum:0}),R()]),age:V([I({minimum:0}),R()])}))}),GU=Y({ok:M(L(!0)),ts:M(I({minimum:0})),durationMs:M(I({minimum:0})),eventLoop:M(Y({degraded:F(),degradedSinceMs:M(V([I({minimum:0}),R()])),reasons:j(V([L(`event_loop_delay`),L(`event_loop_utilization`),L(`cpu`)])),intervalMs:z({minimum:0}),delayP99Ms:z({minimum:0}),delayMaxMs:z({minimum:0}),utilization:z({minimum:0}),cpuCoreRatio:z({minimum:0})})),plugins:M(Y({loaded:j(B()),errors:j(Y({id:B(),origin:B(),activated:F(),activationSource:M(B()),activationReason:M(B()),failurePhase:M(B()),error:B()})),unavailable:M(j(Y({id:B(),state:L(`configured-unavailable`),diagnostic:Y({kind:L(`plugin-verification`),reason:B(),detail:B()})})))})),contextEngines:M(Y({quarantined:j(Y({engineId:B(),owner:M(B()),operation:B(),reason:B(),failedAt:I({minimum:0})}))})),deliveryQueues:M(Y({failed:j(Y({queueName:B(),count:I({minimum:0}),oldestFailedAt:M(I({minimum:0}))})),ingressFailed:M(j(Y({channelId:B(),accountId:B(),count:I({minimum:0}),oldestFailedAt:M(I({minimum:0}))}))),ingressPressure:M(j(Y({channelId:B(),accountId:B(),laneCount:I({minimum:0}),pendingCount:I({minimum:0}),claimedCount:I({minimum:0}),blockedCount:I({minimum:0}),oldestReceivedAt:I({minimum:0})})))})),modelPricing:M(Y({state:V([L(`ok`),L(`degraded`),L(`disabled`)]),sources:j(Y({source:V([L(`openrouter`),L(`litellm`),L(`bootstrap`),L(`refresh`)]),state:V([L(`ok`),L(`degraded`)]),lastFailureAt:M(I({minimum:0})),detail:M(B())})),lastFailureAt:M(I({minimum:0})),detail:M(B())})),configReload:M(Y({hotReloadStatus:V([L(`active`),L(`disabled`)])})),channels:M(iu(B(),P())),channelOrder:M(j(B())),channelLabels:M(iu(B(),B())),heartbeatSeconds:M(I({minimum:0})),defaultAgentId:M(B()),agents:M(j(Y({agentId:B(),name:M(B()),isDefault:F(),heartbeat:Y({enabled:F(),every:B(),everyMs:V([I({minimum:0}),R()]),prompt:B(),target:B(),model:M(B()),session:M(B()),ackMaxChars:I({minimum:0})}),sessions:WU}))),sessions:M(WU)}),KU=Y({defaultAgentId:X,modelConfigured:M(F()),ownership:M(CH),selectionRequired:M(F()),mainKey:X,mainSessionKey:X,scope:M(X)}),qU=Y({presence:I({minimum:0}),health:I({minimum:0})}),JU=Y({presence:j(UU),health:GU,stateVersion:qU,uptimeMs:I({minimum:0}),appliedConfigHash:M(V([X,R()])),configPath:M(X),stateDir:M(X),sessionDefaults:M(KU),authMode:M(V([L(`none`),L(`token`),L(`password`),L(`trusted-proxy`)])),updateAvailable:M(IU),updateSchedule:M(zU)})})))()}var XU;function ZU(){return(ZU=e((()=>{XU={BOARD_WIDGET_PUT_CANVAS_DOC:`board-widget-put-canvas-doc`,CHAT_SEND_ROUTING_CONTRACT:`chat-send-routing-contract`,GATEWAY_RESTART_TARGET_SAFE:`gateway-restart-target-safe-v1`,NODE_WORKER_BUNDLE_RETENTION:`node-worker-bundle-retention-v1`,NODE_WORKER_BUNDLE_STATUS:`node-worker-bundle-status-v1`,NODE_WORKER_ENVIRONMENT_SESSION:`node-worker-environment-session-v1`,NODE_WORKER_PORTAL_STREAM:`node-worker-portal-stream-v1`,SESSION_SCOPED_CHAT_METADATA:`session-scoped-chat-metadata`,SESSION_UNREAD_ACK_CONTRACT:`session-unread-ack-contract`,SESSION_GOAL_START:`session-goal-start-v1`,SYSTEM_AGENT_WIZARD_CANCEL:`openclaw-chat-wizard-cancel`,SYSTEM_AGENT_SETUP_MODEL_REF:`openclaw-setup-model-ref`,TASK_SUGGESTIONS_ACCEPT_MODES:`taskSuggestions.acceptModes`}})))()}var QU,$U,eW,tW;function nW(){return(nW=e((()=>{cS(),lS(),jS(),JB(),YU(),mw(),ZU(),Y({ts:I({minimum:0})}),Y({reason:X,restartExpectedMs:M(I({minimum:0}))}),Y({minProtocol:I({minimum:1}),maxProtocol:I({minimum:1}),client:Y({id:xS,displayName:M(X),version:X,buildId:M(B({minLength:1,maxLength:96})),platform:X,deviceFamily:M(X),modelIdentifier:M(X),timeZone:M(B({minLength:1,maxLength:64})),mode:SS,instanceId:M(X)}),caps:M(j(X,{default:[]})),commands:M(j(X)),computerUse:M(P()),workerRuns:M(hC),permissions:M(iu(X,F())),pathEnv:M(B()),role:M(X),scopes:M(j(X)),device:M(Y({id:X,publicKey:X,signature:X,signedAt:I({minimum:0}),nonce:X})),auth:M(Y({token:M(B()),bootstrapToken:M(B()),deviceToken:M(B()),password:M(B()),approvalRuntimeToken:M(B()),agentRuntimeIdentityToken:M(B())})),locale:M(B()),userAgent:M(B())}),Y({type:L(`hello-ok`),protocol:I({minimum:1}),server:Y({version:X,buildId:M(B({minLength:1,maxLength:96})),bootId:M(B({minLength:1,maxLength:96})),controlUiBuildSource:M(V([L(`bundled`),L(`configured`)])),connId:X}),features:Y({methods:j(X),events:j(X),capabilities:M(j(X))}),snapshot:JU,controlUiTabs:M(j(Y({pluginId:X,id:X,label:X,description:M(B()),icon:M(B()),path:M(B()),placement:M(B()),requiresGatewayAuth:M(F()),group:M(V([L(`control`),L(`agent`)])),order:M(z())}))),controlUiWidgetKinds:M(j(Y({pluginId:X,kind:X,label:X}))),pluginSurfaceUrls:M(iu(X,X)),auth:Y({deviceToken:M(X),recoveryMigrationAllowed:M(L(!0)),recoveryScope:M(X),role:X,scopes:j(X),issuedAtMs:M(I({minimum:0})),deviceTokens:M(j(Y({deviceToken:X,role:X,scopes:j(X),issuedAtMs:I({minimum:0})})))}),policy:Y({maxPayload:I({minimum:1}),maxBufferedBytes:I({minimum:1}),tickIntervalMs:I({minimum:1}),attachments:M(Y({maxBytes:I({minimum:1}),maxImageBytes:I({minimum:1})})),allowedSessionVisibilities:M(j(KB)),hasMultipleSessionSharingIdentities:M(F())})}),QU=Y({code:X,message:X,details:M(P()),retryable:M(F()),retryAfterMs:M(I({minimum:0}))}),$U=Y({type:L(`req`),id:X,method:X,params:M(P()),traceparent:M(B({maxLength:128}))}),eW=Y({type:L(`res`),id:X,ok:F(),payload:M(P()),error:M(QU)}),tW=Y({type:L(`event`),event:X,payload:M(P()),seq:M(I({minimum:0})),stateVersion:M(qU)}),V([$U,eW,tW],{discriminator:`type`})})))()}var rW,iW;function aW(){return(aW=e((()=>{rW=1e3,iW=`pending:`})))()}var oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW;function SW(){return(SW=e((()=>{cS(),aW(),lS(),jS(),Y({cursor:M(I({minimum:0})),limit:M(I({minimum:1,maximum:5e3})),maxBytes:M(I({minimum:1,maximum:1e6}))}),Y({file:X,cursor:I({minimum:0}),size:I({minimum:0}),lines:j(B()),truncated:M(F()),reset:M(F()),skippedBytes:M(I({minimum:0}))}),Y({sessionKey:X,agentId:M(X),cursor:M(B()),limit:M(I({minimum:1,maximum:rW})),offset:M(I({minimum:0})),pendingBefore:M(I({minimum:1})),messageId:M(X),sessionId:M(X),maxChars:M(I({minimum:1,maximum:5e5}))}),oW=Y({items:j(Y({id:X,runId:M(B({minLength:1,maxLength:256})),message:P(),acceptedAt:z(),state:B({enum:[`queued`,`cancelled`,`interrupted`]})}),{maxItems:20}),total:I({minimum:0}),nextBefore:M(I({minimum:1}))}),sW=Y({kind:L(`delta`),messages:j(P()),deltaCursor:B(),sessionInfo:P(),agentsList:M(P()),inFlightRun:M(P()),metadata:M(P()),pendingInputs:M(oW)}),cW=Y({kind:L(`reset`)}),V([sW,cW]),Y({agentId:M(X),sessionKey:M(B({minLength:1,description:`Read the authorized session's persisted auth-profile selection instead of neutral agent metadata.`}))}),Y({sessionKey:X,agentId:M(X),items:j(Y({id:B({minLength:1,maxLength:64}),name:B({minLength:1,maxLength:200}),input:B({minLength:1,maxLength:4e3})}),{minItems:1,maxItems:24})}),Y({titles:iu(B(),B()),disabled:M(F())}),Y({sessionKey:X,agentId:M(X),messageId:X,maxChars:M(I({minimum:1,maximum:2e6}))}),Y({ok:F(),message:M(P()),unavailableReason:M(V([L(`not_found`),L(`oversized`),L(`not_visible`)]))}),lW=N({type:M(B()),mimeType:M(B()),fileName:M(B()),content:M(P()),sizeBytes:M(z()),durationMs:M(z()),width:M(z()),height:M(z())},{additionalProperties:!0}),uW=j(lW),dW=iu(B({minLength:1,maxLength:128}),P(),{maxProperties:16}),fW=[`steer`,`followup`,`collect`,`interrupt`],pW=Y({kind:L(`session-goal-start`),version:L(1),issuedAtMs:I({minimum:0})}),Y({sessionKey:vS,agentId:M(X),sessionId:M(X),message:B(),intent:M(pW),thinking:M(B()),fastMode:M(V([F(),L(`auto`)])),fastAutoOnSeconds:M(I({minimum:1})),queueMode:M(B({enum:[...fW]})),deliver:M(F()),originatingChannel:M(B()),originatingTo:M(B()),originatingAccountId:M(B()),originatingThreadId:M(B()),replyToId:M(X),attachments:M(uW),toolBindings:M(dW),timeoutMs:M(I({minimum:0})),systemInputProvenance:M(bS),systemProvenanceReceipt:M(B()),suppressCommandInterpretation:M(F()),expectedLeafEntryId:M(V([X,R()])),expectedSessionRoutingContract:M(X),idempotencyKey:X}),Y({sessionKey:X,agentId:M(X),runId:M(X),preserveSideRuns:M(F())}),Y({sessionKey:X,agentId:M(X),message:X,label:M(B({maxLength:100}))}),mW={runId:X,sessionKey:X,agentId:M(X),spawnedBy:M(X),seq:I({minimum:0})},hW=V([L(`refusal`),L(`timeout`),L(`rate_limit`),L(`context_length`),L(`unknown`)]),gW=V([L(`preparing_workspace`),L(`naming_worktree`),L(`creating_worktree`),L(`running_setup`),L(`provisioning_environment`),L(`preparing_context`),L(`starting_model`)]),_W=Y({...mW,state:L(`status`),phase:gW}),vW=Y({...mW,state:L(`delta`),message:M(P()),deltaText:B(),replace:M(F()),usage:M(P())}),yW=Y({...mW,state:L(`final`),message:M(P()),usage:M(P()),stopReason:M(B()),yielded:M(L(!0))}),bW=Y({...mW,state:L(`aborted`),message:M(P()),errorMessage:M(B()),stopReason:M(B())}),xW=Y({...mW,state:L(`error`),message:M(P()),errorMessage:M(B()),errorKind:M(hW),usage:M(P()),stopReason:M(B())}),V([_W,vW,yW,bW,xW])})))()}var CW,wW;function TW(){return(TW=e((()=>{cS(),lS(),SW(),jS(),eV(),JB(),CW=24e4,wW=Y({key:M(X),idempotencyKey:M(X),agentId:M(X),label:M(yS),category:M(yS),model:M(X),contextWindow:M(X),thinkingLevel:M(X),fastMode:M(V([F(),L(`auto`)])),permissionMode:M(YB),toolOverrides:M(ZB),incognito:M(F()),visibility:M(KB),catalogId:M(X),parentSessionKey:M(X),spawnDepth:M(I({minimum:1,description:`Spawn-lineage depth for spawn-owned creations (visible subagent sessions); requires parentSessionKey. Omitted creations persist as root sessions (depth 0).`})),fork:M(F({description:`Fork the parent transcript; requires parentSessionKey.`})),forkFrom:M(L(`last-completed`,{description:`Fork through the parent's last completed assistant message; requires fork=true.`})),emitCommandHooks:M(F()),succeedsParent:M(F({description:`When sessions.create creates a distinct child, whether that child succeeds its parent and emits the parent's terminal session_end. Requires parentSessionKey and emitCommandHooks. False keeps the parent active; omission preserves legacy behavior.`})),task:M(B()),message:M(B()),attachments:M(uW),projectId:M(B({minLength:1,description:`Start in a registered project; operator.write.`})),projectGitUrl:M(B({minLength:1,maxLength:2048,description:`Prepare a remote project before the initial agent turn; operator.write.`})),worktree:M(F()),worktreeBaseRef:M(B({minLength:1,description:`Base ref for the new managed worktree branch. Requires worktree=true.`})),worktreeName:M(B({pattern:`^[a-z0-9][a-z0-9-]{0,63}$`,description:`Managed worktree name; becomes branch openclaw/<name>. Requires worktree=true.`})),execNode:M(B({minLength:1,description:`Bind session exec to host=node with this node id/name. Requires operator.admin.`})),cwd:M(B({minLength:1,description:`Absolute Gateway working directory, managed-worktree source directory, or working directory on execNode. Gateway paths outside configured agent workspaces and all execNode paths require operator.admin.`}))})})))()}var EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW;function QW(){return(QW=e((()=>{cS(),lS(),nW(),SW(),RB(),jS(),TW(),eV(),EW=V([L(`on-track`),L(`grinding`),L(`stuck`),L(`waiting-on-user`),L(`wrapping-up`),L(`done`),L(`failed`)]),DW=Y({completed:I({minimum:0}),total:I({minimum:0})}),OW=Y({sessionKey:X,agentId:M(X),runId:M(X),revision:I({minimum:1}),updatedAt:I({minimum:0}),headline:B({minLength:1,maxLength:120}),assessment:M(B({minLength:1,maxLength:320})),health:EW,planProgress:M(DW)}),Y({visible:F()}),Y({ok:L(!0)}),kW=Y({question:B({minLength:1,maxLength:400}),answer:B({minLength:1,maxLength:1200}),ts:I({minimum:0})}),Y({sessionKey:X,agentId:M(X),question:B({minLength:1,maxLength:400})}),Y({answer:B({minLength:1,maxLength:1200}),ts:I({minimum:0})}),Y({sessionKey:X,agentId:M(X)}),Y({exchanges:j(kW,{maxItems:24})}),Y({sessionKey:X,agentId:M(X)}),Y({ok:L(!0)}),AW=V([L(`manual`),L(`auto-threshold`),L(`overflow-retry`),L(`timeout-retry`)]),Y({operationId:X,operation:L(`compact`),phase:V([L(`start`),L(`end`)]),sessionKey:X,agentId:M(X),ts:I({minimum:0}),completed:M(F()),reason:M(B())}),jW=Y({sessionId:X,sessionFile:M(X),leafId:M(X),entryId:M(X)}),MW=Y({checkpointId:X,sessionKey:X,sessionId:X,createdAt:I({minimum:0}),reason:AW,tokensBefore:M(I({minimum:0})),tokensAfter:M(I({minimum:0})),tokensVersion:M(L(1)),summary:M(B()),firstKeptEntryId:M(X),preCompaction:jW,postCompaction:jW}),NW=V([L(`modified`),L(`read`)]),PW=V([L(`modified`),L(`read`),L(`mixed`)]),FW=V([L(`utf8`),L(`base64`)]),IW=V([L(`text`),L(`image`),L(`unsupported`)]),LW=B({minLength:64,maxLength:64,pattern:`^[a-f0-9]{64}$`}),RW=Y({path:X,workspacePath:M(X),name:X,kind:NW,missing:F(),size:M(I({minimum:0})),updatedAtMs:M(I({minimum:0})),content:M(B()),hash:M(LW),mimeType:M(X),contentEncoding:M(FW),previewKind:M(IW)}),zW=Y({path:B(),name:X,kind:V([L(`file`),L(`directory`)]),sessionKind:M(PW),size:M(I({minimum:0})),updatedAtMs:M(I({minimum:0}))}),BW=Y({path:B(),parentPath:M(B()),search:M(B()),entries:j(zW),truncated:M(F())}),Y({sessionKey:X,agentId:M(X),path:M(B()),search:M(B())}),Y({sessionKey:X,root:M(X),gitCheckout:M(F()),files:j(RW),browser:M(BW)}),Y({sessionKey:X,path:X,agentId:M(X)}),Y({sessionKey:X,root:M(X),file:RW}),Y({sessionKey:X,path:X,agentId:M(X),content:B(),expectedHash:LW}),Y({sessionKey:X,root:M(X),file:RW}),Y({key:X,agentId:M(X)}),Y({ok:F(),path:M(X),error:M(X)}),VW=V([L(`added`),L(`modified`),L(`deleted`),L(`renamed`)]),HW=Y({path:X,oldPath:M(X),status:VW,additions:I({minimum:0}),deletions:I({minimum:0}),binary:M(F()),untracked:M(F()),patch:M(B()),truncated:M(F())}),UW=Y({sha:X,subject:B()}),WW=V([L(`all`),L(`uncommitted`),L(`commit`)]),Y({sessionKey:X,agentId:M(X),scope:M(WW),commit:M(X)}),Y({sessionKey:X,root:M(X),branch:M(X),baseRef:M(X),aheadCount:M(I({minimum:0})),commits:M(j(UW,{maxItems:50})),mergeBase:M(UW),files:j(HW),additions:I({minimum:0}),deletions:I({minimum:0}),truncated:M(F()),unavailableReason:M(V([L(`unknown_session`),L(`not_git`),L(`unknown_commit`)]))}),Y({agentId:M(X),sessionKeys:M(j(X,{minItems:1,maxItems:200})),query:B({minLength:1,maxLength:4096}),limit:M(I({minimum:1,maximum:25}))}),GW=Y({sessionKey:X,sessionId:X,messageId:X,role:V([L(`user`),L(`assistant`)]),timestamp:I({minimum:0}),snippet:B(),score:z()}),Y({results:j(GW),indexing:M(F()),truncated:M(F())}),Y({agent:M(X),allAgents:M(F()),enforce:M(F()),activeKey:M(X),fixMissing:M(F()),fixDmScope:M(F())}),Y({keys:j(X,{minItems:1}),limit:M(I({minimum:1})),maxChars:M(I({minimum:20}))}),Y({key:X,includeDerivedTitles:M(F()),includeLastMessage:M(F())}),KW=Y({id:X,path:X,branch:X}),N({ok:L(!0),key:X,sessionId:M(X),entry:M(iu(B(),P())),runStarted:M(F()),runId:M(X),messageSeq:M(I({minimum:1})),runError:M(QU),worktree:M(KW)},{additionalProperties:!0}),Y({key:X,agentId:M(X),message:B(),thinking:M(B()),attachments:M(uW),timeoutMs:M(I({minimum:0})),idempotencyKey:M(X)}),Y({key:X,agentId:M(X),includeApprovals:M(L(!0))}),Y({key:X,agentId:M(X)}),Y({key:M(X),runId:M(X),agentId:M(X),clearQueued:M(F())}),Y({key:X,agentId:M(X),pluginId:X,namespace:X,value:M(xB),unset:M(F())}),Y({ok:L(!0),key:X,value:M(xB)}),Y({key:X,agentId:M(X),reason:M(V([L(`new`),L(`reset`)]))}),Y({key:X,agentId:M(X),owner:Y({type:V([L(`agent`),L(`human`)]),id:X})}),Y({ok:L(!0),key:X,owner:$B}),Y({}),qW=Y({name:yS,position:I({minimum:0})}),JW=Y({name:yS,cwd:M(X),worktree:M(F())}),YW=B({minLength:1,maxLength:512}),Y({groups:j(qW),sectionOrder:M(j(YW))}),Y({}),Y({defaults:j(JW)}),Y({names:j(yS),sectionOrder:M(j(YW))}),Y({name:yS,to:yS}),Y({name:yS,cwd:V([X,R()]),worktree:F()}),Y({ok:L(!0),defaults:j(JW)}),Y({name:yS}),Y({ok:L(!0),groups:j(qW),sectionOrder:M(j(YW)),updatedSessions:M(I({minimum:0}))}),Y({key:X,agentId:M(X),maxLines:M(I({minimum:1}))}),Y({key:X,agentId:M(X)}),Y({key:X,agentId:M(X),checkpointId:X}),Y({key:X,agentId:M(X),checkpointId:X}),Y({sessionKey:X,agentId:M(X),entryId:X}),Y({sessionKey:X,agentId:M(X),entryId:X}),XW=Y({mimeType:B(),data:B()}),Y({editorText:M(B()),editorAttachments:M(j(XW))}),Y({sessionKey:X,editorText:M(B()),editorAttachments:M(j(XW))}),ZW=Y({leafEntryId:X,headline:B(),messageCount:I({minimum:0}),updatedAt:M(X),active:F()}),Y({sessionKey:X,agentId:M(X)}),Y({branches:j(ZW)}),Y({sessionKey:X,agentId:M(X),leafEntryId:X}),Y({}),Y({ok:L(!0),key:X,checkpoints:j(MW)}),Y({ok:L(!0),sourceKey:X,key:X,sessionId:X,checkpoint:MW,entry:N({sessionId:X,updatedAt:I({minimum:0})},{additionalProperties:!0})}),Y({ok:L(!0),key:X,sessionId:X,checkpoint:MW,entry:N({sessionId:X,updatedAt:I({minimum:0})},{additionalProperties:!0})}),Y({key:M(X),agentId:M(X),agentScope:M(L(`all`)),startDate:M(B({pattern:`^\\d{4}-\\d{2}-\\d{2}$`})),endDate:M(B({pattern:`^\\d{4}-\\d{2}-\\d{2}$`})),mode:M(V([L(`utc`),L(`gateway`),L(`specific`)])),range:M(V([L(`7d`),L(`30d`),L(`90d`),L(`1y`),L(`all`)])),groupBy:M(V([L(`instance`),L(`family`)])),includeHistorical:M(F({deprecated:!0,description:`Deprecated alias for groupBy: family.`})),utcOffset:M(B({pattern:`^UTC[+-]\\d{1,2}(?::[0-5]\\d)?$`,deprecated:!0,description:`Deprecated compatibility fallback; use timeZone.`})),timeZone:M(X),limit:M(I({minimum:1})),includeContextWeight:M(F())})})))()}function $W(e){let t=[`th`,`en`].join(``);return Object.fromEntries([[t,{required:e}]])}var eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG;function TG(){return(TG=e((()=>{cS(),lS(),jS(),Y({enabled:F(),phase:M(B())}),Y({includeSecrets:M(F())}),Y({text:X,voiceId:M(B()),modelId:M(B()),outputFormat:M(B()),speed:M(z()),rateWpm:M(I({minimum:1})),stability:M(z()),similarity:M(z()),style:M(z()),speakerBoost:M(F()),seed:M(I({minimum:0})),normalize:M(B()),language:M(B()),latencyTier:M(I({minimum:0}))}),Y({text:X}),eG=V([L(`realtime`),L(`stt-tts`),L(`transcription`)]),tG=V([L(`webrtc`),L(`provider-websocket`),L(`gateway-relay`),L(`managed-room`)]),nG=V([L(`agent-consult`),L(`direct-tools`),L(`none`)]),rG=V([L(`status`),L(`steer`),L(`cancel`),L(`followup`)]),iG=V([L(`session.started`),L(`session.ready`),L(`session.closed`),L(`session.error`),L(`session.replaced`),L(`turn.started`),L(`turn.ended`),L(`turn.cancelled`),L(`capture.started`),L(`capture.stopped`),L(`capture.cancelled`),L(`capture.once`),L(`input.audio.delta`),L(`input.audio.committed`),L(`transcript.delta`),L(`transcript.done`),L(`output.text.delta`),L(`output.text.done`),L(`output.audio.started`),L(`output.audio.delta`),L(`output.audio.done`),L(`tool.call`),L(`tool.progress`),L(`tool.result`),L(`tool.error`),L(`usage.metrics`),L(`latency.metrics`),L(`health.changed`)]),aG=[`turn.started`,`turn.ended`,`turn.cancelled`,`input.audio.delta`,`input.audio.committed`,`transcript.delta`,`transcript.done`,`output.text.delta`,`output.text.done`,`output.audio.started`,`output.audio.delta`,`output.audio.done`,`tool.call`,`tool.progress`,`tool.result`,`tool.error`],oG=[`capture.started`,`capture.stopped`,`capture.cancelled`,`capture.once`],N({id:X,type:iG,sessionId:X,turnId:M(B()),captureId:M(B()),seq:I({minimum:1}),timestamp:X,mode:eG,transport:tG,brain:nG,provider:M(B()),final:M(F()),callId:M(B()),itemId:M(B()),parentId:M(B()),payload:P()},{additionalProperties:!1,allOf:[{if:{properties:{type:{enum:aG}},required:[`type`]},...$W([`turnId`])},{if:{properties:{type:{enum:oG}},required:[`type`]},...$W([`captureId`])}]}),sG=B({pattern:`^[A-Za-z0-9_-]{1,128}$`}),Y({sessionKey:M(X),voiceSessionId:M(sG),provider:M(B()),model:M(B()),voice:M(B()),vadThreshold:M(z()),silenceDurationMs:M(I({minimum:1})),prefixPaddingMs:M(I({minimum:0})),reasoningEffort:M(B()),mode:M(eG),transport:M(tG),brain:M(nG),capabilities:M(j(V([L(`camera-frame`),L(`voice-transcript`),L(`gateway-control-v1`)]),{uniqueItems:!0}))}),Y({sessionKey:X,voiceSessionId:M(sG),callId:X,name:X,args:M(P()),relaySessionId:M(X)}),Y({sessionKey:X,voiceSessionId:sG,entryId:sG,role:V([L(`user`),L(`assistant`)]),text:X,timestamp:M(z())}),Y({sessionKey:X,voiceSessionId:sG}),Y({ok:L(!0)}),Y({runId:X,idempotencyKey:X}),Y({sessionKey:X,text:X,mode:M(rG)}),Y({ok:F(),mode:rG,sessionKey:X,sessionId:M(X),active:F(),queued:M(F()),aborted:M(F()),target:M(V([L(`embedded_run`),L(`reply_run`)])),reason:M(B()),message:B(),speak:F(),show:F(),suppress:F(),providerResult:M(Y({status:L(`cancelled`),message:B()})),enqueuedAtMs:M(z()),deliveredAtMs:M(z())}),Y({sessionKey:M(B()),spawnedBy:M(X),provider:M(B()),model:M(B()),voice:M(B()),language:M(B({pattern:`^[a-z]{2}$`})),vadThreshold:M(z()),silenceDurationMs:M(I({minimum:1})),prefixPaddingMs:M(I({minimum:0})),reasoningEffort:M(B()),mode:M(eG),transport:M(tG),brain:M(nG),ttlMs:M(I({minimum:1e3,maximum:36e5}))}),Y({sessionId:X,audioBase64:X,timestamp:M(z())}),Y({sessionId:X,turnId:M(B()),reason:M(B())}),cG=Y({ok:L(!0),status:M(V([L(`applied`),L(`stale`),L(`idle`)])),turnId:M(X)}),Y({sessionId:X,callId:X,result:P(),options:M(Y({suppressResponse:M(F()),willContinue:M(F())}))}),Y({sessionId:X,sessionKey:M(X),text:X,mode:M(rG)}),Y({sessionId:X}),Y({}),lG=Y({id:X,label:X,configured:F(),aliases:M(j(X)),models:M(j(B())),voices:M(j(B())),voicesByModel:M(iu(B(),j(B()))),defaultModel:M(B()),modes:M(j(eG)),transports:M(j(tG)),brains:M(j(nG)),inputAudioFormats:M(j(Y({encoding:V([L(`pcm16`),L(`g711_ulaw`)]),sampleRateHz:I({minimum:1}),channels:I({minimum:1})}))),outputAudioFormats:M(j(Y({encoding:V([L(`pcm16`),L(`g711_ulaw`)]),sampleRateHz:I({minimum:1}),channels:I({minimum:1})}))),supportsBrowserSession:M(F()),supportsBargeIn:M(F()),supportsToolCalls:M(F()),supportsVideoFrames:M(F()),supportsSessionResumption:M(F())}),uG=Y({ready:M(F()),activeProvider:M(B()),providers:j(lG)}),Y({modes:j(eG),transports:j(tG),brains:j(nG),speech:uG,transcription:uG,realtime:uG}),dG=Y({inputEncoding:V([L(`pcm16`),L(`g711_ulaw`)]),inputSampleRateHz:I({minimum:1}),outputEncoding:V([L(`pcm16`),L(`g711_ulaw`)]),outputSampleRateHz:I({minimum:1})}),Y({sessionId:X,provider:M(B()),mode:eG,transport:tG,brain:nG,relaySessionId:M(X),transcriptionSessionId:M(X),handoffId:M(X),roomId:M(X),roomUrl:M(X),token:M(X),audio:M(P()),model:M(B()),voice:M(B()),expiresAt:M(z())}),Y({ok:F()}),fG=Y({provider:X,transport:L(`webrtc`),voiceSessionId:X,clientSecret:X,offerUrl:M(B()),offerHeaders:M(iu(B(),B())),model:M(B()),voice:M(B()),expiresAt:M(z()),clientControl:M(Y({owner:L(`gateway`)}))}),pG=Y({provider:X,transport:L(`provider-websocket`),voiceSessionId:X,protocol:X,clientSecret:X,websocketUrl:X,audio:dG,initialMessage:M(P()),model:M(B()),voice:M(B()),expiresAt:M(z())}),mG=Y({provider:X,transport:L(`gateway-relay`),voiceSessionId:M(X),relaySessionId:X,audio:dG,model:M(B()),voice:M(B()),expiresAt:M(z())}),hG=Y({provider:X,transport:L(`managed-room`),voiceSessionId:M(X),roomUrl:X,token:M(B()),model:M(B()),voice:M(B()),expiresAt:M(z())}),V([fG,pG,mG,hG]),gG={apiKey:M(AS)},_G=N(gG,{additionalProperties:!0}),vG=Y({provider:M(B()),providers:M(iu(B(),_G)),model:M(B()),speakerVoice:M(B()),speakerVoiceId:M(B()),voice:M(B()),instructions:M(B()),mode:M(eG),transport:M(tG),vadThreshold:M(z({minimum:0,maximum:1})),silenceDurationMs:M(I({minimum:1})),prefixPaddingMs:M(I({minimum:0})),reasoningEffort:M(B({minLength:1})),brain:M(nG),consultRouting:M(V([L(`provider-direct`),L(`force-agent-consult`)]))}),yG=Y({provider:B(),config:_G}),bG=Y({provider:M(B()),providers:M(iu(B(),_G)),realtime:M(vG),resolved:M(yG),consultThinkingLevel:M(B()),consultFastMode:M(F()),speechLocale:M(B()),interruptOnSpeech:M(F()),silenceTimeoutMs:M(I({minimum:1}))}),Y({config:Y({talk:M(bG),session:M(Y({mainKey:M(B())})),ui:M(Y({seamColor:M(B())}))})}),Y({audioBase64:X,provider:X,outputFormat:M(B()),voiceCompatible:M(F()),mimeType:M(B()),fileExtension:M(B())}),Y({audioBase64:X,provider:X,outputFormat:M(B()),mimeType:M(B()),fileExtension:M(B())}),Y({probe:M(F()),timeoutMs:M(I({minimum:0})),channel:M(X)}),xG=N({accountId:X,name:M(B()),enabled:M(F()),configured:M(F()),linked:M(F()),running:M(F()),connected:M(F()),reconnectAttempts:M(I({minimum:0})),lastConnectedAt:M(V([I({minimum:0}),R()])),lastError:M(V([B(),R()])),healthState:M(B()),lastStartAt:M(V([I({minimum:0}),R()])),lastStopAt:M(V([I({minimum:0}),R()])),lastInboundAt:M(V([I({minimum:0}),R()])),lastOutboundAt:M(V([I({minimum:0}),R()])),lastTransportActivityAt:M(V([I({minimum:0}),R()])),busy:M(F()),activeRuns:M(I({minimum:0})),lastRunActivityAt:M(V([I({minimum:0}),R()])),activeRunStartedAt:M(V([I({minimum:0}),R()])),lastProbeAt:M(V([I({minimum:0}),R()])),mode:M(B()),dmPolicy:M(B()),allowFrom:M(j(B())),tokenSource:M(B()),botTokenSource:M(B()),appTokenSource:M(B()),credentialSource:M(V([B(),R()])),audienceType:M(V([B(),R()])),audience:M(V([B(),R()])),webhookPath:M(V([B(),R()])),webhookUrl:M(V([B(),R()])),baseUrl:M(B()),allowUnmentionedGroups:M(F()),cliPath:M(V([B(),R()])),dbPath:M(V([B(),R()])),port:M(V([I({minimum:0}),R()])),probe:M(P()),audit:M(P()),application:M(P())},{additionalProperties:!0}),SG=Y({id:X,label:X,detailLabel:X,systemImage:M(B())}),CG=Y({degraded:F(),degradedSinceMs:M(V([I({minimum:0}),R()])),reasons:j(V([L(`event_loop_delay`),L(`event_loop_utilization`),L(`cpu`)])),intervalMs:I({minimum:0}),delayP99Ms:z({minimum:0}),delayMaxMs:z({minimum:0}),utilization:z({minimum:0}),cpuCoreRatio:z({minimum:0})}),Y({ts:I({minimum:0}),channelOrder:j(X),channelLabels:iu(X,X),channelDetailLabels:M(iu(X,X)),channelSystemImages:M(iu(X,X)),channelMeta:M(j(SG)),channels:iu(X,P()),channelAccounts:iu(X,j(xG)),channelDefaultAccountId:iu(X,X),eventLoop:M(CG),partial:M(F()),warnings:M(j(B()))}),Y({channel:X,accountId:M(B())}),Y({channel:X,accountId:M(B())}),Y({channel:X,accountId:M(B())}),Y({force:M(F()),timeoutMs:M(I({minimum:0})),verbose:M(F()),accountId:M(B())}),wG=B({maxLength:16384,pattern:`^data:image/png;base64,`}),Y({timeoutMs:M(I({minimum:0})),accountId:M(B()),currentQrDataUrl:M(wG)})})))()}function EG(e){return e!==void 0&&e!==`local`&&e!==`reclaimed`}function DG(){return(DG=e((()=>{})))()}var OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG;function zG(){return(zG=e((()=>{cS(),lS(),jS(),OG=V([L(`queued`),L(`running`),L(`completed`),L(`failed`),L(`cancelled`),L(`timed_out`)]),kG=V([B(),I({minimum:0})]),AG=V([L(`pending`),L(`delivered`),L(`session_queued`),L(`failed`),L(`dismissed`),L(`parent_missing`),L(`not_applicable`)]),jG=V([L(`succeeded`),L(`blocked`)]),MG=GS(`2026.8`,Y({files:I({minimum:0}),added:I({minimum:0}),removed:I({minimum:0})})),NG=Y({id:X,kind:M(B()),runtime:M(B()),status:OG,title:M(B()),agentId:M(B()),sessionKey:M(B()),childSessionKey:M(B()),ownerKey:M(B()),runId:M(B()),taskId:M(B()),flowId:M(B()),parentTaskId:M(B()),sourceId:M(B()),createdAt:M(kG),updatedAt:M(kG),startedAt:M(kG),endedAt:M(kG),toolUseCount:M(I({minimum:0})),lastToolName:M(B()),lastActivity:M(GS(`2026.8`,B({maxLength:200}))),diffStat:M(MG),progressSummary:M(B()),terminalSummary:M(B()),error:M(B()),deliveryStatus:M(AG),terminalOutcome:M(jG),result:M(B()),prompt:M(B())}),Y({status:M(V([OG,j(OG)])),agentId:M(X),sessionKey:M(X),limit:M(I({minimum:1,maximum:500})),cursor:M(B())}),PG=Y({tasks:j(NG),nextCursor:M(B())}),Y({taskId:X}),FG=Y({task:NG}),Y({taskId:X,reason:M(B())}),IG=Y({found:F(),cancelled:F(),reason:M(B()),task:M(NG)}),Y({taskIds:j(X,{minItems:1,maxItems:10})}),LG=Y({taskId:X,ok:F(),reason:M(B()),duplicateRisk:M(F()),task:M(NG)}),RG=Y({results:j(LG,{maxItems:10})})})))()}var BG;function VG(){return(VG=e((()=>{bB(),TG(),BG=yB(cG)})))()}function HG(e,t){let n=t||KG;return UG(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function UG(e,t,n){if(GG(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return WG(e.children,t,n)}return Array.isArray(e)?WG(e,t,n):``}function WG(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=UG(e[i],t,n);return r.join(``)}function GG(e){return!!(e&&typeof e==`object`)}var KG;function qG(){return(qG=e((()=>{KG={}})))()}function JG(e){let t=`&`+e+`;`;YG.innerHTML=t;let n=YG.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var YG;function XG(){return(XG=e((()=>{YG=document.createElement(`i`)})))()}function ZG(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function QG(e,t){return e.length>0?(ZG(e,e.length,0,t),e):t}function $G(e){let t={},n=-1;for(;++n<e.length;)eK(t,e[n]);return t}function eK(e,t){let n;for(n in t){let r=(nK.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){nK.call(r,a)||(r[a]=[]);let e=i[a];tK(r[a],Array.isArray(e)?e:e?[e]:[])}}}function tK(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ZG(e,0,0,r)}var nK;function rK(){return(rK=e((()=>{nK={}.hasOwnProperty})))()}function iK(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?``:String.fromCodePoint(n)}function aK(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}function oK(e){return e!==null&&(e<32||e===127)}function $(e){return e!==null&&e<-2}function sK(e){return e!==null&&(e<0||e===32)}function cK(e){return e===-2||e===-1||e===32}function lK(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}var uK,dK,fK,pK,mK,hK,gK,_K;function vK(){return(vK=e((()=>{uK=lK(/[A-Za-z]/),dK=lK(/[\dA-Za-z]/),fK=lK(/[#-'*+\--9=?A-Z^-~]/),pK=lK(/\d/),mK=lK(/[\dA-Fa-f]/),hK=lK(/[!-/:-@[-`{-~]/),gK=lK(/\p{P}|\p{S}/u),_K=lK(/\s/)})))()}function yK(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return cK(r)?(e.enter(n),s(r)):t(r)}function s(r){return cK(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function bK(){return(bK=e((()=>{vK()})))()}function xK(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),yK(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return $(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var SK;function CK(){return(CK=e((()=>{bK(),vK(),SK={tokenize:xK}})))()}function wK(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&te();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}g(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return ZG(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(DK,u,d)(a)}function u(e){return i&&te(),g(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(DK,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&te(),g(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){ee(e.exit(`chunkFlow`),!0),g(0),e.consume(n);return}return $(n)?(e.consume(n),ee(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function ee(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(g(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;ZG(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function g(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function te(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function TK(e,t,n){return yK(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}var EK,DK;function OK(){return(OK=e((()=>{bK(),vK(),EK={tokenize:wK},DK={tokenize:TK}})))()}function kK(e){if(e===null||sK(e)||_K(e))return 1;if(gK(e))return 2}function AK(){return(AK=e((()=>{vK()})))()}function jK(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function MK(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};PK(d,-c),PK(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=QG(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=QG(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=QG(l,jK(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=QG(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=QG(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ZG(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function NK(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=kK(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=kK(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function PK(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var FK;function IK(){return(IK=e((()=>{AK(),FK={name:`attention`,resolveAll:MK,tokenize:NK}})))()}function LK(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return uK(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||dK(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||dK(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||oK(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):fK(t)?(e.consume(t),l):n(t)}function u(e){return dK(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||dK(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var RK;function zK(){return(zK=e((()=>{vK(),RK={name:`autolink`,tokenize:LK}})))()}function BK(e,t,n){return r;function r(t){return cK(t)?yK(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||$(e)?t(e):n(e)}}var VK;function HK(){return(HK=e((()=>{bK(),vK(),VK={partial:!0,tokenize:BK}})))()}function UK(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return cK(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function WK(e,t,n){let r=this;return i;function i(t){return cK(t)?yK(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(KK,t,n)(r)}}function GK(e){e.exit(`blockQuote`)}var KK;function qK(){return(qK=e((()=>{bK(),vK(),KK={continuation:{tokenize:WK},exit:GK,name:`blockQuote`,tokenize:UK}})))()}function JK(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return hK(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var YK;function XK(){return(XK=e((()=>{vK(),YK={name:`characterEscape`,tokenize:JK}})))()}function ZK(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=dK,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=mK,u):(e.enter(`characterReferenceValue`),a=7,o=pK,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===dK&&!JG(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var QK;function $K(){return($K=e((()=>{XG(),vK(),QK={name:`characterReference`,tokenize:ZK}})))()}function eq(e,t,n){let r=this,i={partial:!0,tokenize:ie},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),cK(t)?yK(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||$(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(nq,h,re)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):cK(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),yK(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||$(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,re,ee)(t)}function ee(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),g}function g(t){return a>0&&cK(t)?yK(e,te,`linePrefix`,a+1)(t):te(t)}function te(t){return t===null||$(t)?e.check(nq,h,re)(t):(e.enter(`codeFlowValue`),ne(t))}function ne(t){return t===null||$(t)?(e.exit(`codeFlowValue`),te(t)):(e.consume(t),ne)}function re(n){return e.exit(`codeFenced`),t(n)}function ie(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),cK(t)?yK(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),cK(t)?yK(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function tq(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var nq,rq;function iq(){return(iq=e((()=>{bK(),vK(),nq={partial:!0,tokenize:tq},rq={concrete:!0,name:`codeFenced`,tokenize:eq}})))()}function aq(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),yK(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):$(t)?e.attempt(cq,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||$(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function oq(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):yK(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):$(e)?i(e):n(e)}}var sq,cq;function lq(){return(lq=e((()=>{bK(),vK(),sq={name:`codeIndented`,tokenize:aq},cq={partial:!0,tokenize:oq}})))()}function uq(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function dq(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function fq(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||$(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var pq;function mq(){return(mq=e((()=>{vK(),pq={name:`codeText`,previous:dq,resolve:uq,tokenize:fq}})))()}function hq(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}var gq;function _q(){return(_q=e((()=>{gq=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&hq(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),hq(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),hq(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);hq(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);hq(this.left,t.reverse())}}}}})))()}function vq(e){let t={},n=-1,r,i,a,o,s,c,l,u=new gq(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,yq(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return ZG(e,0,1/0,u.slice(0)),!l}function yq(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,ee=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,ee.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):ee.pop(),f=ee.length;f--;){let t=s.slice(ee[f],ee[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}function bq(){return(bq=e((()=>{_q()})))()}function xq(e){return vq(e),e}function Sq(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):$(t)?e.check(Tq,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Cq(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),yK(e,a,`linePrefix`)}function a(i){if(i===null||$(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}var wq,Tq;function Eq(){return(Eq=e((()=>{bK(),vK(),bq(),wq={resolve:xq,tokenize:Sq},Tq={partial:!0,tokenize:Cq}})))()}function Dq(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||oK(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||$(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||sK(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||oK(i)?n(i):(e.consume(i),i===92?ee:h)}function ee(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Oq(){return(Oq=e((()=>{vK()})))()}function kq(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):$(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||$(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!cK(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Aq(){return(Aq=e((()=>{vK()})))()}function jq(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),yK(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Mq(){return(Mq=e((()=>{bK(),vK()})))()}function Nq(e,t){let n;return r;function r(i){return $(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):cK(i)?yK(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}function Pq(){return(Pq=e((()=>{bK(),vK()})))()}function Fq(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return kq.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=aK(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return sK(t)?Nq(e,l)(t):l(t)}function l(t){return Dq(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Rq,d,d)(t)}function d(t){return cK(t)?yK(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Iq(e,t,n){return r;function r(t){return sK(t)?Nq(e,i)(t):n(t)}function i(t){return jq(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return cK(t)?yK(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$(e)?t(e):n(e)}}var Lq,Rq;function zq(){return(zq=e((()=>{Oq(),Aq(),bK(),Mq(),Pq(),vK(),Lq={name:`definition`,tokenize:Fq},Rq={partial:!0,tokenize:Iq}})))()}function Bq(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Vq;function Hq(){return(Hq=e((()=>{vK(),Vq={name:`hardBreakEscape`,tokenize:Bq}})))()}function Uq(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},ZG(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Wq(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||sK(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$(n)?(e.exit(`atxHeading`),t(n)):cK(n)?yK(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||sK(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Gq;function Kq(){return(Kq=e((()=>{bK(),vK(),Gq={name:`headingAtx`,resolve:Uq,tokenize:Wq}})))()}var qq,Jq;function Yq(){return(Yq=e((()=>{qq=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Jq=[`pre`,`script`,`style`,`textarea`]})))()}function Xq(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Zq(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ve):uK(s)?(e.consume(s),o=String.fromCharCode(s),ee):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):uK(a)?(e.consume(a),i=4,r.interrupt?t:ve):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ve):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:ue:m):n(i)}function h(t){return uK(t)?(e.consume(t),o=String.fromCharCode(t),ee):n(t)}function ee(s){if(s===null||s===47||s===62||sK(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Jq.includes(l)?(i=1,r.interrupt?t(s):ue(s)):qq.includes(o.toLowerCase())?(i=6,c?(e.consume(s),g):r.interrupt?t(s):ue(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?te(s):ne(s))}return s===45||dK(s)?(e.consume(s),o+=String.fromCharCode(s),ee):n(s)}function g(i){return i===62?(e.consume(i),r.interrupt?t:ue):n(i)}function te(t){return cK(t)?(e.consume(t),te):ce(t)}function ne(t){return t===47?(e.consume(t),ce):t===58||t===95||uK(t)?(e.consume(t),re):cK(t)?(e.consume(t),ne):ce(t)}function re(t){return t===45||t===46||t===58||t===95||dK(t)?(e.consume(t),re):ie(t)}function ie(t){return t===61?(e.consume(t),ae):cK(t)?(e.consume(t),ie):ne(t)}function ae(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,oe):cK(t)?(e.consume(t),ae):se(t)}function oe(t){return t===c?(e.consume(t),c=null,_):t===null||$(t)?n(t):(e.consume(t),oe)}function se(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||sK(t)?ie(t):(e.consume(t),se)}function _(e){return e===47||e===62||cK(e)?ne(e):n(e)}function ce(t){return t===62?(e.consume(t),le):n(t)}function le(t){return t===null||$(t)?ue(t):cK(t)?(e.consume(t),le):n(t)}function ue(t){return t===45&&i===2?(e.consume(t),me):t===60&&i===1?(e.consume(t),he):t===62&&i===4?(e.consume(t),ye):t===63&&i===3?(e.consume(t),ve):t===93&&i===5?(e.consume(t),_e):$(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(tJ,be,de)(t)):t===null||$(t)?(e.exit(`htmlFlowData`),de(t)):(e.consume(t),ue)}function de(t){return e.check(nJ,fe,be)(t)}function fe(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),pe}function pe(t){return t===null||$(t)?de(t):(e.enter(`htmlFlowData`),ue(t))}function me(t){return t===45?(e.consume(t),ve):ue(t)}function he(t){return t===47?(e.consume(t),o=``,ge):ue(t)}function ge(t){if(t===62){let n=o.toLowerCase();return Jq.includes(n)?(e.consume(t),ye):ue(t)}return uK(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ge):ue(t)}function _e(t){return t===93?(e.consume(t),ve):ue(t)}function ve(t){return t===62?(e.consume(t),ye):t===45&&i===2?(e.consume(t),ve):ue(t)}function ye(t){return t===null||$(t)?(e.exit(`htmlFlowData`),be(t)):(e.consume(t),ye)}function be(n){return e.exit(`htmlFlow`),t(n)}}function Qq(e,t,n){let r=this;return i;function i(t){return $(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function $q(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(VK,t,n)}}var eJ,tJ,nJ;function rJ(){return(rJ=e((()=>{vK(),Yq(),HK(),eJ={concrete:!0,name:`htmlFlow`,resolveTo:Xq,tokenize:Zq},tJ={partial:!0,tokenize:$q},nJ={partial:!0,tokenize:Qq}})))()}function iJ(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),ie):t===63?(e.consume(t),ne):uK(t)?(e.consume(t),se):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):uK(t)?(e.consume(t),te):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):$(t)?(o=d,he(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?me(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),ee):$(t)?(o=h,he(t)):(e.consume(t),h)}function ee(t){return t===93?(e.consume(t),g):h(t)}function g(t){return t===62?me(t):t===93?(e.consume(t),g):h(t)}function te(t){return t===null||t===62?me(t):$(t)?(o=te,he(t)):(e.consume(t),te)}function ne(t){return t===null?n(t):t===63?(e.consume(t),re):$(t)?(o=ne,he(t)):(e.consume(t),ne)}function re(e){return e===62?me(e):ne(e)}function ie(t){return uK(t)?(e.consume(t),ae):n(t)}function ae(t){return t===45||dK(t)?(e.consume(t),ae):oe(t)}function oe(t){return $(t)?(o=oe,he(t)):cK(t)?(e.consume(t),oe):me(t)}function se(t){return t===45||dK(t)?(e.consume(t),se):t===47||t===62||sK(t)?_(t):n(t)}function _(t){return t===47?(e.consume(t),me):t===58||t===95||uK(t)?(e.consume(t),ce):$(t)?(o=_,he(t)):cK(t)?(e.consume(t),_):me(t)}function ce(t){return t===45||t===46||t===58||t===95||dK(t)?(e.consume(t),ce):le(t)}function le(t){return t===61?(e.consume(t),ue):$(t)?(o=le,he(t)):cK(t)?(e.consume(t),le):_(t)}function ue(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,de):$(t)?(o=ue,he(t)):cK(t)?(e.consume(t),ue):(e.consume(t),fe)}function de(t){return t===i?(e.consume(t),i=void 0,pe):t===null?n(t):$(t)?(o=de,he(t)):(e.consume(t),de)}function fe(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||sK(t)?_(t):(e.consume(t),fe)}function pe(e){return e===47||e===62||sK(e)?_(e):n(e)}function me(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function he(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ge}function ge(t){return cK(t)?yK(e,_e,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):_e(t)}function _e(t){return e.enter(`htmlTextData`),o(t)}}var aJ;function oJ(){return(oJ=e((()=>{bK(),vK(),aJ={name:`htmlText`,tokenize:iJ}})))()}function sJ(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&ZG(e,0,e.length,n),e}function cJ(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=QG(s,e.slice(a+1,a+r+3)),s=QG(s,[[`enter`,u,t]]),s=QG(s,jK(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=QG(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=QG(s,e.slice(o+1)),s=QG(s,[[`exit`,c,t]]),ZG(e,a,e.length,s),e}function lJ(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(aK(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(mJ,u,o?u:d)(t):t===91?e.attempt(hJ,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(gJ,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function uJ(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return sK(t)?Nq(e,a)(t):a(t)}function a(t){return t===41?u(t):Dq(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return sK(t)?Nq(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?jq(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return sK(t)?Nq(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function dJ(e,t,n){let r=this;return i;function i(t){return kq.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(aK(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function fJ(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var pJ,mJ,hJ,gJ;function _J(){return(_J=e((()=>{Oq(),Aq(),Mq(),Pq(),vK(),pJ={name:`labelEnd`,resolveAll:sJ,resolveTo:cJ,tokenize:lJ},mJ={tokenize:uJ},hJ={tokenize:dJ},gJ={tokenize:fJ}})))()}function vJ(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var yJ;function bJ(){return(bJ=e((()=>{_J(),yJ={name:`labelStartImage`,resolveAll:pJ.resolveAll,tokenize:vJ}})))()}function xJ(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var SJ;function CJ(){return(CJ=e((()=>{_J(),SJ={name:`labelStartLink`,resolveAll:pJ.resolveAll,tokenize:xJ}})))()}function wJ(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),yK(e,t,`linePrefix`)}}var TJ;function EJ(){return(EJ=e((()=>{bK(),TJ={name:`lineEnding`,tokenize:wJ}})))()}function DJ(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||$(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),cK(t)?yK(e,s,`whitespace`)(t):s(t))}}var OJ;function kJ(){return(kJ=e((()=>{bK(),vK(),OJ={name:`thematicBreak`,tokenize:DJ}})))()}function AJ(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:pK(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(OJ,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return pK(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(VK,r.interrupt?n:u,e.attempt(IJ,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return cK(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function jJ(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(VK,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,yK(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!cK(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(LJ,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,yK(e,e.attempt(FJ,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function MJ(e,t,n){let r=this;return yK(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function NJ(e){e.exit(this.containerState.type)}function PJ(e,t,n){let r=this;return yK(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!cK(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var FJ,IJ,LJ;function RJ(){return(RJ=e((()=>{bK(),vK(),HK(),kJ(),FJ={continuation:{tokenize:jJ},exit:NJ,name:`list`,tokenize:AJ},IJ={partial:!0,tokenize:PJ},LJ={partial:!0,tokenize:MJ}})))()}function zJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function BJ(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),cK(t)?yK(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var VJ;function HJ(){return(HJ=e((()=>{bK(),vK(),VJ={name:`setextUnderline`,resolveTo:zJ,tokenize:BJ}})))()}function UJ(e){let t=this,n=e.attempt(VK,r,e.attempt(this.parser.constructs.flowInitial,i,yK(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wq,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var WJ;function GJ(){return(GJ=e((()=>{HK(),Eq(),bK(),WJ={tokenize:UJ}})))()}function KJ(e){return{resolveAll:qJ(e===`text`?JJ:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function qJ(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function JJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var YJ,XJ,ZJ;function QJ(){return(QJ=e((()=>{YJ={resolveAll:qJ()},XJ=KJ(`string`),ZJ=KJ(`text`)})))()}var $J=t({attentionMarkers:()=>sY,contentInitial:()=>tY,disable:()=>cY,document:()=>eY,flow:()=>rY,flowInitial:()=>nY,insideSpan:()=>oY,string:()=>iY,text:()=>aY}),eY,tY,nY,rY,iY,aY,oY,sY,cY;function lY(){return(lY=e((()=>{IK(),zK(),qK(),XK(),$K(),iq(),lq(),mq(),zq(),Hq(),Kq(),rJ(),oJ(),_J(),bJ(),CJ(),EJ(),RJ(),HJ(),kJ(),QJ(),eY={42:FJ,43:FJ,45:FJ,48:FJ,49:FJ,50:FJ,51:FJ,52:FJ,53:FJ,54:FJ,55:FJ,56:FJ,57:FJ,62:KK},tY={91:Lq},nY={[-2]:sq,[-1]:sq,32:sq},rY={35:Gq,42:OJ,45:[VJ,OJ],60:eJ,61:VJ,95:OJ,96:rq,126:rq},iY={38:QK,92:YK},aY={[-5]:TJ,[-4]:TJ,[-3]:TJ,33:yJ,38:QK,42:FK,60:[RK,aJ],91:SJ,92:[Vq,YK],93:pJ,95:FK,96:pq},oY={null:[FK,YJ]},sY={null:[42,95]},cY={null:[]}})))()}function uY(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:oe(ie),check:oe(ae),consume:te,enter:ne,exit:re,interrupt:oe(ae,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=QG(o,e),ee(),o[o.length-1]===null?(se(t,0),l.events=jK(a,l.events,l),l.events):[]}function f(e,t){return fY(p(e),t)}function p(e){return dY(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,ce()}function ee(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=u(e)}function te(e){$(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,ce()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function ne(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function re(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function ie(e,t){se(e,t.from)}function ae(e,t){t.restore()}function oe(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=_(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function se(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ZG(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function _(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,ce()}}function ce(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dY(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function fY(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
`;break;case-3:o=`\r
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function pY(){return(pY=e((()=>{vK()})))()}function mY(e){let t={constructs:$G([$J,...(e||{}).extensions||[]]),content:n(SK),defined:[],document:n(EK),flow:n(WJ),lazy:{},string:n(XJ),text:n(ZJ)};return t;function n(e){return n;function n(n){return uY(t,e,n)}}}function hY(){return(hY=e((()=>{rK(),CK(),OK(),GJ(),QJ(),lY(),pY()})))()}function gY(e){for(;!vq(e););return e}function _Y(){return(_Y=e((()=>{bq()})))()}function vY(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(yY.lastIndex=u,c=yY.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var yY;function bY(){return(bY=e((()=>{yY=/[\0\t\n\r]/g})))()}function xY(e){return e.replace(CY,SY)}function SY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return iK(n.slice(t?2:1),t?16:10)}return JG(n)||e}var CY;function wY(){return(wY=e((()=>{XG(),CY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi})))()}function TY(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?DY(e.position):`start`in e||`end`in e?DY(e):`line`in e||`column`in e?EY(e):``}function EY(e){return OY(e&&e.line)+`:`+OY(e&&e.column)}function DY(e){return EY(e&&e.start)+`-`+EY(e&&e.end)}function OY(e){return e&&typeof e==`number`?e:1}function kY(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),AY(n)(gY(mY(n).document().write(vY()(e,t,!0))))}function AY(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ie),autolinkProtocol:_,autolinkEmail:_,atxHeading:a(Me),blockQuote:a(Oe),characterEscape:_,characterReference:_,codeFenced:a(v),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(v,o),codeText:a(ke,o),codeTextData:_,data:_,codeFlowValue:_,definition:a(Ae),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(je),hardBreakEscape:a(Ne),hardBreakTrailing:a(Ne),htmlFlow:a(Pe,o),htmlFlowData:_,htmlText:a(Pe,o),htmlTextData:_,image:a(Fe),label:o,link:a(Ie),listItem:a(Re),listItemValue:f,listOrdered:a(Le,d),listUnordered:a(Le),paragraph:a(ze),reference:xe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Me),strong:a(Be),thematicBreak:a(He)},exit:{atxHeading:c(),atxHeadingSequence:ie,autolink:c(),autolinkEmail:De,autolinkProtocol:Ee,blockQuote:c(),characterEscapeValue:ce,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:we,characterReference:Te,codeFenced:c(ee),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:ce,codeIndented:c(g),codeText:c(pe),codeTextData:ce,data:ce,definition:c(),definitionDestinationString:re,definitionLabelString:te,definitionTitleString:ne,emphasis:c(),hardBreakEscape:c(ue),hardBreakTrailing:c(ue),htmlFlow:c(de),htmlFlowData:ce,htmlText:c(fe),htmlTextData:ce,image:c(he),label:_e,labelText:ge,lineEnding:le,link:c(me),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Se,resourceDestinationString:ve,resourceTitleString:ye,resource:be,setextHeading:c(se),setextHeadingLineSequence:oe,setextHeadingText:ae,strong:c(),thematicBreak:c()}};MY(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];FY.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||PY).call(a,void 0,e[0])}for(r.position={start:jY(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:jY(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:jY(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||PY).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+TY({start:e.start,end:e.end})+`): its not open`);n.position.end=jY(e.end)}function u(){return HG(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function te(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=aK(this.sliceSerialize(e)).toLowerCase()}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ie(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function ae(){this.data.setextHeadingSlurpLineEnding=!0}function oe(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ve(),n.position={start:jY(e.start),end:void 0},t.push(n)),this.stack.push(n)}function ce(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=jY(e.end)}function le(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=jY(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),ce.call(this,e))}function ue(){this.data.atHardBreak=!0}function de(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function pe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function me(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function he(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ge(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=xY(t),n.identifier=aK(t).toLowerCase()}function _e(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ve(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ye(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function be(){this.data.inReference=void 0}function xe(){this.data.referenceType=`collapsed`}function Se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=aK(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function Ce(e){this.data.characterReferenceType=e.type}function we(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=iK(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=JG(t);let i=this.stack[this.stack.length-1];i.value+=r}function Te(e){let t=this.stack.pop();t.position.end=jY(e.end)}function Ee(e){ce.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function De(e){ce.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function Oe(){return{type:`blockquote`,children:[]}}function v(){return{type:`code`,lang:null,meta:null,value:``}}function ke(){return{type:`inlineCode`,value:``}}function Ae(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function je(){return{type:`emphasis`,children:[]}}function Me(){return{type:`heading`,depth:0,children:[]}}function Ne(){return{type:`break`}}function Pe(){return{type:`html`,value:``}}function Fe(){return{type:`image`,title:null,url:``,alt:null}}function Ie(){return{type:`link`,title:null,url:``,children:[]}}function Le(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Re(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ze(){return{type:`paragraph`,children:[]}}function Be(){return{type:`strong`,children:[]}}function Ve(){return{type:`text`,value:``}}function He(){return{type:`thematicBreak`}}}function jY(e){return{line:e.line,column:e.column,offset:e.offset}}function MY(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?MY(e,r):NY(e,r)}}function NY(e,t){let n;for(n in t)if(FY.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function PY(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+TY({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+TY({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+TY({start:t.start,end:t.end})+`) is still open`)}var FY;function IY(){return(IY=e((()=>{qG(),hY(),_Y(),bY(),wY(),XG(),FY={}.hasOwnProperty})))()}function LY(){return{enter:{table:RY,tableData:HY,tableHeader:HY,tableRow:BY},exit:{codeText:UY,table:zY,tableData:VY,tableHeader:VY,tableRow:VY}}}function RY(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function zY(e){this.exit(e),this.data.inTable=void 0}function BY(e){this.enter({type:`tableRow`,children:[]},e)}function VY(e){this.exit(e)}function HY(e){this.enter({type:`tableCell`,children:[]},e)}function UY(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,WY));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function WY(e,t){return t===`|`?t:e}function GY(){return(GY=e((()=>{})))()}function KY(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}var qY;function JY(){return(JY=e((()=>{qY=class{constructor(){this.map=[]}add(e,t,n){KY(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}})))()}function YY(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function XY(){return{flow:{null:{name:`table`,tokenize:ZY,resolveAll:QY}}}}function ZY(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?ae:c;return a===ae&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):$(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):cK(t)?yK(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||sK(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,cK(t)?yK(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?ee(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):ie(t)}function h(t){return cK(t)?yK(e,ee,`whitespace`)(t):ee(t)}function ee(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),g):t===45?(a+=1,g(t)):t===null||$(t)?re(t):ie(t)}function g(t){return t===45?(e.enter(`tableDelimiterFiller`),te(t)):ie(t)}function te(t){return t===45?(e.consume(t),te):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),ne):(e.exit(`tableDelimiterFiller`),ne(t))}function ne(t){return cK(t)?yK(e,re,`whitespace`)(t):re(t)}function re(n){return n===124?m(n):n===null||$(n)?!o||i!==a?ie(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):ie(n)}function ie(e){return n(e)}function ae(t){return e.enter(`tableRow`),oe(t)}function oe(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),oe):n===null||$(n)?(e.exit(`tableRow`),t(n)):cK(n)?yK(e,oe,`whitespace`)(n):(e.enter(`data`),se(n))}function se(t){return t===null||t===124||sK(t)?(e.exit(`data`),oe(t)):(e.consume(t),t===92?_:se)}function _(t){return t===92||t===124?(e.consume(t),se):se(t)}}function QY(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new qY;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(eX(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=$Y(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=$Y(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=$Y(f,t,o,i,n,d)):(o[0]=o[1],d=$Y(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&eX(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=YY(t.events,n))}return e}function $Y(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},tX(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=tX(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=tX(t.events,n[2]),a=tX(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},tX(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function eX(e,t,n,r,i){let a=[],o=tX(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function tX(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}function nX(){return(nX=e((()=>{bK(),vK(),JY()})))()}function rX(e,t=!0){let n=[],r=0;for(;r<e.length;){let i=e.indexOf(`<`,r);if(i===-1)break;let a=iX(e,i,t);if(a.kind===`tag`){n.push(a.tag),r=a.tag.index+a.tag.text.length;continue}if(a.kind===`pending`)return{tags:n,pendingStart:i};r=a.next}return{tags:n}}function iX(e,t,n){let r=oX(e,t+1),i=!1;e.charAt(r)===`/`&&(i=!0,r=oX(e,r+1));let a=r;for(;r<e.length&&cX(e.charCodeAt(r));)r+=1;let o=e.slice(a,r).toLowerCase();if(!o)return r===e.length&&!n?{kind:`pending`}:aX(e,t);if(!hX.has(o)){let i=mX.some(e=>e.startsWith(o));return r===e.length&&!n&&i?{kind:`pending`}:aX(e,t)}if(r===e.length)return n?aX(e,t):{kind:`pending`};let s=e.charAt(r);if(!sX(s)&&s!==`/`&&s!==`>`)return aX(e,t);let c,l=``;for(;r<e.length;r+=1){let n=e.charAt(r);if(c){n===c&&(c=void 0);continue}if(n===`"`||n===`'`){c=n;continue}if(n===`<`)return aX(e,t);if(n===`>`){let n=r+1;return{kind:`tag`,tag:{index:t,text:e.slice(t,n),isClose:i,isSelfClosing:!i&&l===`/`,isPrivate:o===`internal`}}}sX(n)||(l=n)}return n?aX(e,t):{kind:`pending`}}function aX(e,t){let n=e.indexOf(`<`,t+1);return{kind:`invalid`,next:n===-1?e.length:n}}function oX(e,t){let n=t;for(;n<e.length&&sX(e.charAt(n));)n+=1;return n}function sX(e){return/\s/u.test(e)}function cX(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===58}function lX(e){if(!e)return{codeSpans:[],retainStart:0};let t=kY(e,{extensions:[gX,XY()],mdastExtensions:[LY()]}),n=[],r=[t];for(;r.length>0;){let e=r.pop();if(!e)continue;if(e.type===`code`||e.type===`inlineCode`){let t=e.position?.start?.offset,r=e.position?.end?.offset;t!==void 0&&r!==void 0&&n.push([t,r])}let t=e.children??[];for(let e=t.length-1;e>=0;--e){let n=t[e];n&&r.push(n)}}let i=t.children??[];return{codeSpans:n.toSorted((e,t)=>e[0]-t[0]),retainStart:i.at(-1)?.position?.start?.offset??e.length}}function uX(e){return/[`~\t]| {4}/u.test(e)?lX(e).codeSpans:[]}function dX(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=t[i];if(!a)return!1;if(e<a[0])r=i-1;else if(e>=a[1])n=i+1;else return!0}return!1}function fX(e,t,n,r){let i=[],a=(e,t)=>{if(!t)return;let r=i.at(-1);r?.kind===e?r.text+=t:i.push({kind:e,text:t}),e===`text`&&t.trim()&&(n.visibleEver=!0)},o=e=>{e&&(n.depth>0&&n.pending?(n.pending.content+=e,n.pending.protectedClose||=rX(e).tags.some(e=>e.isClose)):a(`text`,e))},s=r.start??0,c=rX(e.slice(s),r.final),l=[];for(let e of c.tags){let n={index:e.index+s,isClose:e.isClose,isSelfClosing:e.isSelfClosing,isPrivate:e.isPrivate,text:e.text};dX(n.index,t)||l.push(n)}let u=[];if(r.scope===`leading`){let e=!1;for(let t=l.length-1;t>=0;--t)e||=l[t]?.isPrivate===!0,u[t]=e,e||=l[t]?.isClose===!0}let d=s;for(let t=0;t<l.length;t+=1){let s=l[t];if(!s)continue;let c=e.slice(d,s.index);o(c);let f=s.index+s.text.length;if(s.isSelfClosing){if(n.depth===0&&r.scope===`leading`&&n.visibleEver){a(`text`,e.slice(s.index)),d=e.length;break}d=f;continue}if(!s.isClose){if(n.depth===0&&r.scope===`leading`&&n.visibleEver&&!u[t]){a(`text`,e.slice(s.index)),d=e.length;break}n.depth===0?n.pending={content:``,containsPrivate:s.isPrivate,openTag:s.text,protectedClose:!1,visibleBefore:n.visibleEver}:n.pending&&(n.pending.containsPrivate||=s.isPrivate),n.depth+=1,d=f;continue}if(n.depth>0){--n.depth,n.depth===0&&n.pending?(n.pending.containsPrivate||a(`thinking`,n.pending.content),n.pending=void 0):n.pending&&(n.pending.protectedClose=!0),d=f;continue}if(r.mode===`visible`)o(s.text);else{let t=e.slice(f);if(c.trim()&&t.trim()){let e=i.filter(e=>e.kind===`thinking`);i.splice(0,i.length,...e),n.visibleEver=!1}}d=f}if(o(e.slice(d)),r.final&&n.depth>0&&n.pending){let e=n.pending;e.containsPrivate||(r.mode===`static-preserve`||r.mode===`static-strict`&&!e.visibleBefore&&!e.protectedClose||r.mode===`visible`&&!e.protectedClose?a(`text`,r.mode===`visible`&&e.visibleBefore?e.openTag+e.content:e.content):a(`thinking`,e.content)),n.depth=0,n.pending=void 0}return i}function pX(e,t){return fX(e,uX(e),{depth:0,visibleEver:!1},{final:!0,mode:t.mode===`preserve`?`static-preserve`:`static-strict`,scope:t.scope}).filter(e=>e.kind===`text`).map(e=>e.text).join(``)}var mX,hX,gX;function _X(){return(_X=e((()=>{IY(),GY(),nX(),mX=[`think`,`thinking`,`thought`,`reasoning`,`internal`,`antthinking`,`antml:think`,`antml:thinking`,`antml:thought`,`antml:reasoning`,`mm:think`,`mm:thinking`,`mm:thought`,`mm:reasoning`],hX=new Set(mX),gX={disable:{null:[`htmlFlow`,`htmlText`]}}})))()}function vX(){return(vX=e((()=>{_X()})))()}function yX(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function bX(){return(bX=e((()=>{})))()}function xX(){return(xX=e((()=>{Re()})))()}function SX(){let e={};for(let[t,n]of Object.entries(TX))e[n]??=t;return e}function CX(e){if(!e)return;let t=e.split(`;`)[0]?.trim().toLowerCase();if(t)return EX[t]??t}function wX(e){return yX(CX(e))}var TX,EX;function DX(){return(DX=e((()=>{Re(),bX(),xX(),TX={"image/avif":`.avif`,"image/heic":`.heic`,"image/heic-sequence":`.heic`,"image/heif":`.heif`,"image/heif-sequence":`.heif`,"image/bmp":`.bmp`,"image/jpg":`.jpg`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/svg+xml":`.svg`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/aiff":`.aiff`,"audio/x-aiff":`.aiff`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/mp3":`.mp3`,"audio/wav":`.wav`,"audio/wave":`.wav`,"audio/x-wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/amr":`.amr`,"audio/opus":`.opus`,"audio/webm":`.webm`,"audio/x-m4a":`.m4a`,"audio/m4a":`.m4a`,"audio/mp4":`.m4a`,"audio/x-caf":`.caf`,"video/x-msvideo":`.avi`,"video/x-m4v":`.m4v`,"video/mp4":`.mp4`,"video/x-matroska":`.mkv`,"video/webm":`.webm`,"video/x-flv":`.flv`,"video/x-ms-wmv":`.wmv`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/yaml":`.yaml`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`,"text/html":`.html`,"text/xml":`.xml`,"text/css":`.css`,"application/xml":`.xml`},{...SX()},EX={"image/apng":`image/png`,"text/yaml":`application/yaml`,"application/x-yaml":`application/yaml`,"application/xml":`text/xml`}})))()}var OX,kX,AX,jX;function MX(){return(MX=e((()=>{Fe(),OX={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},kX=Symbol(),AX=class{get taskComplete(){return this.t||=this.i===1?new Promise(((e,t)=>{this.o=e,this.h=t})):this.i===3?Promise.reject(this.l):Promise.resolve(this.u),this.t}constructor(e,t,n){this.p=0,this.i=0,(this._=e).addController(this);let r=typeof t==`object`?t:{task:t,args:n};this.v=r.task,this.j=r.args,this.m=r.argsEqual??jX,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,`initialValue`in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){!0===this.autoRun&&this.S()}hostUpdated(){this.autoRun===`afterUpdate`&&this.S()}T(){if(this.j===void 0)return;let e=this.j();if(!Array.isArray(e))throw Error(`The args function must return an array`);return e}async S(){let e=this.T(),t=this.O;this.O=e,e===t||e===void 0||t!==void 0&&this.m(t,e)||await this.run(e)}async run(e){let t,n;e??=this.T(),this.O=e,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun===`afterUpdate`?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let i=!1;try{t=await this.v(e,{signal:this.q.signal})}catch(e){i=!0,n=e}if(this.p===r){if(t===kX)this.i=0;else{if(!1===i){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(n)}catch{}this.i=3,this.h?.(n)}this.u=t,this.l=n}this._.requestUpdate()}}abort(e){this.i===1&&this.q?.abort(e)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(e){switch(this.i){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error(`Unexpected status: `+this.i)}}},jX=(e,t)=>e===t||e.length===t.length&&e.every(((e,n)=>!Ne(e,t[n])))})))()}function NX(){return(NX=e((()=>{MX()})))()}function PX(e){return o(e)}function FX(){return(FX=e((()=>{})))()}var IX;function LX(){return(LX=e((()=>{IX=class extends Event{constructor(e){super(`wa-tab-hide`,{bubbles:!0,cancelable:!1,composed:!0}),this.detail=e}}})))()}var RX;function zX(){return(zX=e((()=>{RX=class extends Event{constructor(e){super(`wa-tab-show`,{bubbles:!0,cancelable:!1,composed:!0}),this.detail=e}}})))()}var BX;function VX(){return(VX=e((()=>{De(),BX=Me`
:host {
--indicator-color: var(--wa-color-brand-fill-loud);
--track-color: var(--wa-color-neutral-fill-normal);
--track-width: 0.125rem;
/* Private */
--safe-track-width: max(0.5px, round(var(--track-width), 0.5px));
display: block;
}
.tab-group {
display: flex;
border-radius: 0;
}
.tabs {
display: flex;
position: relative;
}
.indicator {
position: absolute;
}
.tab-group-has-scroll-controls .nav-container {
position: relative;
padding: 0 1.5em;
}
.body {
display: block;
}
.scroll-button {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
bottom: 0;
width: 1.5em;
}
.scroll-button-start {
inset-inline-start: 0;
}
.scroll-button-end {
inset-inline-end: 0;
}
/*
* Top
*/
.tab-group-top {
flex-direction: column;
}
.tab-group-top .nav-container {
order: 1;
}
.tab-group-top .nav {
display: flex;
overflow-x: auto;
/* Hide scrollbar in Firefox */
scrollbar-width: none;
}
/* Hide scrollbar in Chrome/Safari */
.tab-group-top .nav::-webkit-scrollbar {
width: 0;
height: 0;
}
.tab-group-top .tabs {
flex: 1 1 auto;
position: relative;
flex-direction: row;
border-bottom: solid var(--safe-track-width) var(--track-color);
}
.tab-group-top .indicator {
bottom: calc(-1 * var(--safe-track-width));
border-bottom: solid var(--safe-track-width) var(--indicator-color);
}
.tab-group-top .body {
order: 2;
}
.tab-group-top ::slotted(wa-tab[active]) {
border-block-end: solid var(--safe-track-width) var(--indicator-color);
margin-block-end: calc(-1 * var(--safe-track-width));
}
.tab-group-top .body slot::slotted(wa-tab-panel) {
--padding: var(--wa-space-xl) 0;
}
/*
* Bottom
*/
.tab-group-bottom {
flex-direction: column;
}
.tab-group-bottom .nav-container {
order: 2;
}
.tab-group-bottom .nav {
display: flex;
overflow-x: auto;
/* Hide scrollbar in Firefox */
scrollbar-width: none;
}
/* Hide scrollbar in Chrome/Safari */
.tab-group-bottom .nav::-webkit-scrollbar {
width: 0;
height: 0;
}
.tab-group-bottom .tabs {
flex: 1 1 auto;
position: relative;
flex-direction: row;
border-top: solid var(--safe-track-width) var(--track-color);
}
.tab-group-bottom .indicator {
top: calc(-1 * var(--safe-track-width));
border-top: solid var(--safe-track-width) var(--indicator-color);
}
.tab-group-bottom .body {
order: 1;
}
.tab-group-bottom ::slotted(wa-tab[active]) {
border-block-start: solid var(--safe-track-width) var(--indicator-color);
margin-block-start: calc(-1 * var(--safe-track-width));
}
.tab-group-bottom .body slot::slotted(wa-tab-panel) {
--padding: var(--wa-space-xl) 0;
}
/*
* Start
*/
.tab-group-start {
flex-direction: row;
}
.tab-group-start .nav-container {
order: 1;
}
.tab-group-start .tabs {
flex: 0 0 auto;
flex-direction: column;
border-inline-end: solid var(--safe-track-width) var(--track-color);
}
.tab-group-start .indicator {
inset-inline-end: calc(-1 * var(--safe-track-width));
border-right: solid var(--safe-track-width) var(--indicator-color);
}
.tab-group-start .body {
flex: 1 1 auto;
order: 2;
}
.tab-group-start ::slotted(wa-tab[active]) {
border-inline-end: solid var(--safe-track-width) var(--indicator-color);
margin-inline-end: calc(-1 * var(--safe-track-width));
}
.tab-group-start .body slot::slotted(wa-tab-panel) {
--padding: 0 var(--wa-space-xl);
}
/*
* End
*/
.tab-group-end {
flex-direction: row;
}
.tab-group-end .nav-container {
order: 2;
}
.tab-group-end .tabs {
flex: 0 0 auto;
flex-direction: column;
border-left: solid var(--safe-track-width) var(--track-color);
}
.tab-group-end .indicator {
inset-inline-start: calc(-1 * var(--safe-track-width));
border-inline-start: solid var(--safe-track-width) var(--indicator-color);
}
.tab-group-end .body {
flex: 1 1 auto;
order: 1;
}
.tab-group-end ::slotted(wa-tab[active]) {
border-inline-start: solid var(--safe-track-width) var(--indicator-color);
margin-inline-start: calc(-1 * var(--safe-track-width));
}
.tab-group-end .body slot::slotted(wa-tab-panel) {
--padding: 0 var(--wa-space-xl);
}
`})))()}var HX;function UX(){return(UX=e((()=>{LX(),zX(),VX(),h(),be(),ge(),a(),De(),Oe(),Le(),HX=class extends ce{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new se(this),this.hasScrollControls=!1,this.active=``,this.placement=`top`,this.activation=`auto`,this.withoutScrollControls=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels());let t=e.filter(e=>e.target.closest(`wa-tab-group`)===this);if(t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`wa-tab`).map(e=>e.target).find(e=>e.active);e&&e.closest(`wa-tab-group`)===this&&this.setActiveTab(e)}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),new IntersectionObserver((e,t)=>{if(e[0].intersectionRatio>0){if(this.setAriaLabels(),this.active){let e=this.tabs.find(e=>e.panel===this.active);e&&this.setActiveTab(e)}else this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1});t.unobserve(e[0].target)}}).observe(this.tabGroup)})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.nav&&this.resizeObserver?.unobserve(this.nav)}getAllTabs(){return[...this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()].filter(e=>e.tagName.toLowerCase()===`wa-tab`)}getAllPanels(){return[...this.defaultSlot.assignedElements()].filter(e=>e.tagName.toLowerCase()===`wa-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`wa-tab`);t?.closest(`wa-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`wa-tab`);if(t?.closest(`wa-tab-group`)===this){if([`Enter`,` `].includes(e.key)){t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault());return}if([`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,i=null;if(t?.tagName.toLowerCase()===`wa-tab`){if(e.key===`Home`)i=this.focusableTabs[0];else if(e.key===`End`)i=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);i=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);i=this.findNextFocusableTab(e,`forward`)}if(!i)return;i.tabIndex=0,i.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(i,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===i?0:-1}),[`top`,`bottom`].includes(this.placement)&&r(i,this.nav,`horizontal`),e.preventDefault()}}}}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e<this.tabs.length;){if(n=this.tabs[i]||null,n===null){n=t===`forward`?this.focusableTabs[0]:this.focusableTabs[this.focusableTabs.length-1];break}if(!n.disabled)break;i+=r}return n}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t={emitEvents:!0,scrollBehavior:`auto`,...t},e.closest(`wa-tab-group`)===this&&e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.active=e.panel,this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),[`top`,`bottom`].includes(this.placement)&&r(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.dispatchEvent(new IX({name:n.panel})),this.dispatchEvent(new RX({name:this.activeTab.panel})))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.updateComplete.then(()=>this.updateScrollControls())}updateActiveTab(){let e=this.tabs.find(e=>e.panel===this.active);e&&this.setActiveTab(e,{scrollBehavior:`smooth`})}updateScrollControls(){this.hasScrollControls=!this.withoutScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1}render(){let e=this.hasUpdated?this.localize.dir()===`rtl`:this.dir===`rtl`;return Te`
<div
part="base tab-group"
class=${Ce({"tab-group":!0,"tab-group-top":this.placement===`top`,"tab-group-bottom":this.placement===`bottom`,"tab-group-start":this.placement===`start`,"tab-group-end":this.placement===`end`,"tab-group-has-scroll-controls":this.hasScrollControls})}
@click=${this.handleClick}
@keydown=${this.handleKeyDown}
>
<div class="nav-container" part="nav">
${this.hasScrollControls?Te`
<wa-button
part="scroll-button scroll-button-start"
exportparts="base:scroll-button__base"
class="scroll-button scroll-button-start"
appearance="plain"
@click=${this.handleScrollToStart}
>
<wa-icon
name=${e?`chevron-right`:`chevron-left`}
library="system"
variant="solid"
label=${this.localize.term(`scrollToStart`)}
></wa-icon>
</wa-button>
`:``}
<!-- We have a focus listener because in Firefox (and soon to be Chrome) overflow containers are focusable. -->
<div class="nav" @focus=${()=>this.activeTab?.focus({preventScroll:!0})}>
<div part="tabs" class="tabs" role="tablist">
<slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
</div>
</div>
${this.hasScrollControls?Te`
<wa-button
part="scroll-button scroll-button-end"
class="scroll-button scroll-button-end"
exportparts="base:scroll-button__base"
appearance="plain"
@click=${this.handleScrollToEnd}
>
<wa-icon
name=${e?`chevron-left`:`chevron-right`}
library="system"
variant="solid"
label=${this.localize.term(`scrollToEnd`)}
></wa-icon>
</wa-button>
`:``}
</div>
<div part="body" class="body"><slot @slotchange=${this.syncTabsAndPanels}></slot></div>
</div>
`}},HX.css=BX,g([Ae(`.tab-group`)],HX.prototype,`tabGroup`,2),g([Ae(`.body slot`)],HX.prototype,`defaultSlot`,2),g([Ae(`.nav`)],HX.prototype,`nav`,2),g([Pe()],HX.prototype,`hasScrollControls`,2),g([v({reflect:!0})],HX.prototype,`active`,2),g([v()],HX.prototype,`placement`,2),g([v()],HX.prototype,`activation`,2),g([v({attribute:`without-scroll-controls`,type:Boolean})],HX.prototype,`withoutScrollControls`,2),g([de(`active`)],HX.prototype,`updateActiveTab`,1),g([de(`withoutScrollControls`,{waitUntilFirstUpdate:!0})],HX.prototype,`updateScrollControls`,1),HX=g([je(`wa-tab-group`)],HX)})))()}var WX;function GX(){return(GX=e((()=>{De(),WX=Me`
:host {
--padding: 0;
display: none;
}
:host([active]) {
display: block;
}
.tab-panel {
display: block;
padding: var(--padding);
}
`})))()}var KX,qX;function JX(){return(JX=e((()=>{GX(),be(),a(),De(),Oe(),Le(),KX=0,qX=class extends ce{constructor(){super(...arguments),this.attrId=++KX,this.componentId=`wa-tab-panel-${this.attrId}`,this.name=``,this.active=!1,this.role=`tabpanel`}connectedCallback(){super.connectedCallback(),this.id=(this.id||``).length>0?this.id:this.componentId}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return Te`
<slot
part="base"
class=${Ce({"tab-panel":!0,"tab-panel-active":this.active})}
></slot>
`}},qX.css=WX,g([v({reflect:!0})],qX.prototype,`name`,2),g([v({type:Boolean,reflect:!0})],qX.prototype,`active`,2),g([v({reflect:!0})],qX.prototype,`role`,2),g([de(`active`)],qX.prototype,`handleActiveChange`,1),qX=g([je(`wa-tab-panel`)],qX)})))()}var YX;function XX(){return(XX=e((()=>{De(),YX=Me`
:host {
display: inline-block;
color: var(--wa-color-neutral-on-quiet);
font-weight: var(--wa-font-weight-action);
}
.tab {
display: inline-flex;
align-items: center;
font: inherit;
padding: 1em 1.5em;
white-space: nowrap;
user-select: none;
-webkit-user-select: none;
cursor: pointer;
transition: color var(--wa-transition-fast) var(--wa-transition-easing);
::slotted(wa-icon:first-child) {
margin-inline-end: 0.5em;
}
::slotted(wa-icon:last-child) {
margin-inline-start: 0.5em;
}
}
@media (hover: hover) {
:host(:hover:not([disabled])) .tab {
color: currentColor;
}
}
:host(:focus) {
outline: transparent;
}
:host(:focus-visible) .tab {
outline: var(--wa-focus-ring);
outline-offset: calc(-1 * var(--wa-border-width-l) - var(--wa-focus-ring-offset));
}
:host([active]:not([disabled])) {
color: var(--wa-color-brand-on-quiet);
}
:host([disabled]) .tab {
opacity: 0.5;
cursor: not-allowed;
}
@media (forced-colors: active) {
:host([active]:not([disabled])) {
outline: solid 1px transparent;
outline-offset: -3px;
}
}
`})))()}var ZX,QX;function $X(){return($X=e((()=>{XX(),be(),a(),De(),Oe(),Le(),ZX=0,QX=class extends ce{constructor(){super(...arguments),this.attrId=++ZX,this.componentId=`wa-tab-${this.attrId}`,this.panel=``,this.active=!1,this.disabled=!1,this.tabIndex=0,this.slot=`nav`,this.role=`tab`}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id?.length>0?this.id:this.componentId,Te`
<div
part="base tab"
class=${Ce({tab:!0,"tab-active":this.active})}
>
<slot></slot>
</div>
`}},QX.css=YX,g([Ae(`.tab`)],QX.prototype,`tab`,2),g([v({reflect:!0})],QX.prototype,`panel`,2),g([v({type:Boolean,reflect:!0})],QX.prototype,`active`,2),g([v({type:Boolean,reflect:!0})],QX.prototype,`disabled`,2),g([v({type:Number,reflect:!0})],QX.prototype,`tabIndex`,2),g([v({reflect:!0})],QX.prototype,`slot`,2),g([v({reflect:!0})],QX.prototype,`role`,2),g([de(`active`)],QX.prototype,`handleActiveChange`,1),g([de(`disabled`)],QX.prototype,`handleDisabledChange`,1),QX=g([je(`wa-tab`)],QX)})))()}function eZ(){return(eZ=e((()=>{UX(),JX(),$X(),XX(),VX(),GX(),ee(),u(),p(),me(),c(),ne(),Se(),m(),s(),be(),ge(),xe()})))()}function tZ(){return(tZ=e((()=>{JX(),GX(),be()})))()}function nZ(){return(nZ=e((()=>{$X(),XX(),be()})))()}var rZ;function iZ(){return(iZ=e((()=>{rZ=(e={})=>{let{validationElement:t,validationProperty:n}=e;t||typeof document<`u`&&`createElement`in document&&(t=Object.assign(document.createElement(`input`),{required:!0})),n||=`value`;let r={observedAttributes:[`required`],message:t?.validationMessage,checkValidity(e){let t={message:``,isValid:!0,invalidKeys:[]};return(e.required??e.hasAttribute(`required`))&&(e[n]||(t.message=typeof r.message==`function`?r.message(e):r.message||``,t.isValid=!1,t.invalidKeys.push(`valueMissing`))),t}};return r}})))()}var aZ;function oZ(){return(oZ=e((()=>{De(),aZ=Me`
:host {
display: flex;
flex-direction: column;
}
/* Treat wrapped labels, inputs, and hints as direct children of the host element */
[part~='form-control'] {
display: contents;
}
/* Label */
:is([part~='form-control-label'], [part~='label']):has(*:not(:empty)),
:is([part~='form-control-label'], [part~='label']).has-label {
display: inline-flex;
color: var(--wa-form-control-label-color);
font-weight: var(--wa-form-control-label-font-weight);
line-height: var(--wa-form-control-label-line-height);
margin-block-end: 0.5em;
}
:host([required]) :is([part~='form-control-label'], [part~='label'])::after {
content: var(--wa-form-control-required-content);
margin-inline-start: var(--wa-form-control-required-content-offset);
color: var(--wa-form-control-required-content-color);
}
/* Help text */
[part~='hint'] {
display: block;
color: var(--wa-form-control-hint-color);
font-weight: var(--wa-form-control-hint-font-weight);
line-height: var(--wa-form-control-hint-line-height);
margin-block-start: 0.5em;
font-size: var(--wa-font-size-smaller);
&:not(.has-slotted, .has-hint) {
display: none;
}
}
`})))()}function sZ(e){return e===` `||e===` `}function cZ(e){return sZ(e)||e===`\r`}function lZ(e,t,n){let r=t;for(;r<n&&sZ(e[r]);)r+=1;return r}function uZ(e,t,n){for(let r of vZ){let i=t+r.length;if(i<=n&&e.slice(t,i).toLowerCase()===r)return{role:r,end:i}}return null}function dZ(e){let t=Math.min(e.lineEnd,e.contentStart+e.maxContentLength+1),n=-1;for(let r=e.contentStart;r<t;r+=1){let t=e.text[r];if(t==="`")return null;if(t===e.close){n=r;break}}if(n===-1)return null;let r=n-e.contentStart;return r<e.minContentLength||r>e.maxContentLength?null:n+1}function fZ(e){return e===void 0||cZ(e)||e===`:`||e===``}function pZ(e,t,n){let r=uZ(e,t,n);if(!r)return null;let i=lZ(e,r.end,n);if(e[i]!==`[`)return null;let a=dZ({text:e,contentStart:i+1,lineEnd:n,close:`]`,minContentLength:1,maxContentLength:160});return!a||!fZ(e[a])?null:{start:t,end:a,kind:`role_timestamp_bracket`,role:r.role}}function mZ(e,t,n){if(e[t]!==`[`)return null;let r=dZ({text:e,contentStart:t+1,lineEnd:n,close:`]`,minContentLength:4,maxContentLength:160});if(!r)return null;let i=uZ(e,lZ(e,r,n),n);if(!i)return null;let a=lZ(e,i.end,n);return e[a]!==`:`&&e[a]!==``?null:{start:t,end:a+1,kind:`timestamp_role_colon`,role:i.role}}function hZ(e,t,n){if(e[t]!==`<`)return null;let r=uZ(e,lZ(e,t+1,n),n),i=r?e[r.end]:void 0;if(!r||i!==`>`&&!sZ(i))return null;let a=dZ({text:e,contentStart:r.end,lineEnd:n,close:`>`,minContentLength:0,maxContentLength:160});return!a||!fZ(e[a])?null:{start:t,end:a,kind:`angle_role_header`,role:r.role}}function gZ(e,t){return e.start<t.end&&e.end>t.start}function _Z(e,t=[]){let n=[],r=[...t].toSorted((e,t)=>e.start-t.start||e.end-t.end),i=0,a=0;for(;a<e.length;){let t=e.indexOf(`
`,a),o=t===-1?e.length:t,s=lZ(e,a,o),c=mZ(e,s,o)??hZ(e,s,o)??pZ(e,s,o);if(c){for(;;){let e=r[i];if(!e||e.end>c.start)break;i+=1}let e=r[i];(!e||!gZ(c,e))&&n.push(c)}if(t===-1)break;a=t+1}return n}var vZ;function yZ(){return(yZ=e((()=>{vZ=[`assistant`,`developer`,`system`,`user`]})))()}function bZ(e){return CZ.exec(e)?.[0]}function xZ(e,t){let n=t?2:1;for(;n<e.length;){let t=e.charCodeAt(n);if(!(t>=65&&t<=90||t>=97&&t<=122)&&!(t>=48&&t<=57)&&t!==45)break;n+=1}return e.slice(t?2:1,n).toLowerCase()}function*SZ(e){let t=0;for(;t<e.length;){let n=e.indexOf(`<`,t);if(n<0)return;let r=bZ(e.slice(n));if(!r){t=n+1;continue}let i=r.startsWith(`</`),a=n+r.length,o=xZ(r,i);if(!o){t=a;continue}yield{raw:r,start:n,end:a,name:o,closing:i,selfClosing:!i&&r.trimEnd().endsWith(`/>`)},t=a}}var CZ;function wZ(){return(wZ=e((()=>{CZ=/^(?:<[A-Za-z][A-Za-z0-9-]*(?:\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\s*=\s*(?:[^"'=<>`\x00-\x20]+|'[^']*'|"[^"]*"))?)*\s*\/?>|<\/[A-Za-z][A-Za-z0-9-]*\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\?[\s\S]*?\?>|<![A-Za-z][^>]*>|<!\[CDATA\[[\s\S]*?\]\]>)/})))()}function TZ(e){let t=[],n=[],r=-1;for(let i of SZ(e))if(IZ.has(i.name)){if(i.closing){let e=n.lastIndexOf(i.name);e!==-1&&(n.splice(e),n.length===0&&r!==-1&&(t.push({start:r,end:i.end}),r=-1))}else i.selfClosing||(n.length===0&&(r=i.start),n.push(i.name))}return n.length>0&&r!==-1&&t.push({start:r,end:e.length}),t}function EZ(e,t){return e.type===`softbreak`||e.type===`hardbreak`?{text:`
`,excludedRanges:[]}:e.type===`html_inline`&&t.isStructuralHtmlInline?.(e)===!0?null:e.type===`text`||e.type===`html_inline`?{text:e.content,excludedRanges:[]}:e.type===`code_inline`?{text:e.content,excludedRanges:[{start:0,end:e.content.length}]}:e.type===`image`?e.children&&e.children.length>0?DZ(e.children,t):{text:e.content,excludedRanges:[]}:null}function DZ(e,t){let n=``,r=[];for(let i of e){let e=EZ(i,t);if(!e)continue;let a=n.length;n+=e.text;for(let t of e.excludedRanges)r.push({start:a+t.start,end:a+t.end})}return r.push(...TZ(n)),{text:n,excludedRanges:r}}function OZ(e,t,n,r=t.type){let i=new e(r,r===`assistant_transcript_role_text`?``:t.tag,0);return Object.assign(i,t),i.type=r,i.content=n,i.children=null,i}function kZ(e,t,n,r){let i=OZ(e,t,n,FZ);return i.meta={...t.meta&&typeof t.meta==`object`?t.meta:{},assistantTranscriptRoleHeader:{kind:r.kind,role:r.role}},i}function AZ(e){let{token:t,visibleStart:n}=e,r=n+t.content.length,i=e.spans[e.spanStartIndex];if(!i||i.start>=r)return[t];let a=[],o=0;for(let i=e.spanStartIndex;i<e.spans.length;i+=1){let s=e.spans[i];if(!s||s.start>=r)break;if(s.end<=n)continue;let c=Math.max(s.start,n)-n,l=Math.min(s.end,r)-n;c>o&&a.push(OZ(e.TokenType,t,t.content.slice(o,c))),l>c&&a.push(kZ(e.TokenType,t,t.content.slice(c,l),s)),o=l}return o<t.content.length&&a.push(OZ(e.TokenType,t,t.content.slice(o))),a}function jZ(e,t,n,r){let i=DZ(t,r),a=_Z(i.text,i.excludedRanges);if(a.length===0)return t;let o=[],s=0,c=0;for(let n of t){let t=EZ(n,r);if(!t){o.push(n);continue}let i=t.text;for(;;){let e=a[c];if(!e||e.end>s)break;c+=1}if(n.type===`text`||n.type===`html_inline`)o.push(...AZ({TokenType:e,token:n,visibleStart:s,spanStartIndex:c,spans:a}));else if(n.type===`image`){let e=s+i.length,t=[];for(let n=c;n<a.length;n+=1){let r=a[n];if(!r||r.start>=e)break;r.end<=s||t.push({...r,start:Math.max(r.start,s)-s,end:Math.min(r.end,e)-s})}t.length>0&&(n.meta={...n.meta&&typeof n.meta==`object`?n.meta:{},assistantTranscriptRoleImage:{text:i,spans:t}}),o.push(n)}else o.push(n);s+=i.length}return n?o:MZ(o)}function MZ(e){let t=[],n=new Set;for(let r of e){if(r.type===`link_open`){t.push({token:r,containsRole:!1});continue}let e=r.meta?.assistantTranscriptRoleImage;if(r.type===`assistant_transcript_role_text`||e?.spans.length){for(let e of t)e.containsRole=!0;continue}if(r.type!==`link_close`)continue;let i=t.pop();i?.containsRole&&(n.add(i.token),n.add(r))}let r=[];for(let t of e){if(n.has(t))continue;let e=r.at(-1);if(e?.type===`assistant_transcript_role_text`&&t.type===`assistant_transcript_role_text`){e.content+=t.content;continue}r.push(t)}return r}function NZ(e,t){let n=_Z(t.content,TZ(t.content));return n.length===0?[t]:AZ({TokenType:e,token:t,visibleStart:0,spanStartIndex:0,spans:n})}function PZ(e,t={}){e.core.ruler.after(`text_join`,`assistant_transcript_roles`,e=>{if(e.env?.assistantTranscriptRoleHeaders!==!0)return;let n=[],r=e.env?.assistantTranscriptRolePreserveLinks===!0;for(let i of e.tokens){if(i.type===`inline`&&i.children){i.children=jZ(e.Token,i.children,r,t),n.push(i);continue}if(i.type===`html_block`){n.push(...NZ(e.Token,i));continue}n.push(i)}e.tokens=n})}var FZ,IZ;function LZ(){return(LZ=e((()=>{yZ(),wZ(),FZ=`assistant_transcript_role_text`,IZ=new Set([`code`,`pre`,`script`,`style`,`textarea`])})))()}var RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$;function v$(){return(v$=e((()=>{RZ=Object.defineProperty,zZ=Object.defineProperties,BZ=Object.getOwnPropertyDescriptors,VZ=Object.getOwnPropertySymbols,HZ=Object.prototype.hasOwnProperty,UZ=Object.prototype.propertyIsEnumerable,WZ=(e,t,n)=>t in e?RZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GZ=(e,t)=>{for(var n in t||={})HZ.call(t,n)&&WZ(e,n,t[n]);if(VZ)for(var n of VZ(t))UZ.call(t,n)&&WZ(e,n,t[n]);return e},KZ=(e,t)=>zZ(e,BZ(t)),qZ=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e[i]===`\\`&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},JZ=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},YZ=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]===`\\`&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!JZ(e,n)&&(t+=1)}return t},XZ=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]===`\\`&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){r=!r,a+=2;continue}if(!r&&e[a]==="`"){if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}}return!1},ZZ=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,QZ=e=>!e||typeof e!=`string`||!e.includes(`>`)?e:e.replace(ZZ,(t,n,r,i)=>qZ(e,i)?t:`${n}\\>${r}`),$Z=/(\*\*)([^*]*\*?)$/,eQ=/(__)([^_]*?)$/,tQ=/(\*\*\*)([^*]*?)$/,nQ=/(\*)([^*]*?)$/,rQ=/(_)([^_]*?)$/,iQ=/(`)([^`]*?)$/,aQ=/(~~)([^~]*?)$/,oQ=/^[\s_~*`]*$/,sQ=/^[\s]*[-*+][\s]+$/,cQ=/[\p{L}\p{N}_]/u,lQ=/^```[^`\n]*```?$/,uQ=/^\*{4,}$/,dQ=/(__)([^_]+)_$/,fQ=/(~~)([^~]+)~$/,pQ=/~~/g,mQ=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95||cQ.test(e)},hQ=(e,t)=>{let n=1;for(let r=t-1;r>=0;--r)if(e[r]===`]`)n+=1;else if(e[r]===`[`&&(--n,n===0))return r;return-1},gQ=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]===`[`)n+=1;else if(e[r]===`]`&&(--n,n===0))return r;return-1},_Q=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]===`\\`&&e[i+1]===`$`){i+=1;continue}e[i]===`$`&&(e[i+1]===`$`?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},vQ=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===`)`)return!0;if(e[n]===`
`)return!1}return!1},yQ=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`)`)return!1;if(e[n]===`(`)return n>0&&e[n-1]===`]`&&vQ(e,t);if(e[n]===`
`)return!1}return!1},bQ=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`>`)return!1;if(e[n]===`<`){let t=n+1<e.length?e[n+1]:``;return t>=`a`&&t<=`z`||t>=`A`&&t<=`Z`||t===`/`}if(e[n]===`
`)return!1}return!1},xQ=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;--n)if(e[n]===`
`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
`){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(e!==` `&&e!==` `){s=!0;break}return o>=3&&!s},SQ=(e,t,n,r)=>n===`\\`||e.includes(`$`)&&_Q(e,t)?!0:n!==`*`&&r===`*`?(t<e.length-2?e[t+2]:``)!==`*`:!!(n===`*`||n&&r&&mQ(n)&&mQ(r)||(!n||n===` `||n===` `||n===`
`)&&(!r||r===` `||r===` `||r===`
`)),CQ=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`*`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;SQ(e,i,a,o)||(t+=1)}return t},wQ=(e,t,n,r)=>!!(n===`\\`||e.includes(`$`)&&_Q(e,t)||yQ(e,t)||bQ(e,t)||n===`_`||r===`_`||n&&r&&mQ(n)&&mQ(r)),TQ=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`_`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;wQ(e,i,a,o)||(t+=1)}return t},EQ=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]===`*`?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},DQ=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]===`*`&&r+1<e.length&&e[r+1]===`*`&&(t+=1,r+=1)}return t},OQ=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]===`_`&&r+1<e.length&&e[r+1]===`_`&&(t+=1,r+=1)}return t},kQ=(e,t,n)=>{if(!t||oQ.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
`),i=r===-1?0:r+1,a=e.substring(i,n);return sQ.test(a)&&t.includes(`
`)?!0:xQ(e,n,`*`)},AQ=e=>{let t=e.match($Z);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return qZ(e,r)||XZ(e,r)||kQ(e,n,r)?e:DQ(e)%2==1?n.endsWith(`*`)?`${e}*`:`${e}**`:e},jQ=(e,t,n)=>{if(!t||oQ.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
`),i=r===-1?0:r+1,a=e.substring(i,n);return sQ.test(a)&&t.includes(`
`)?!0:xQ(e,n,`_`)},MQ=e=>{let t=e.match(eQ);if(!t){let t=e.match(dQ);if(t){let n=e.lastIndexOf(t[1]);if(!(qZ(e,n)||XZ(e,n))&&OQ(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return qZ(e,r)||XZ(e,r)||jQ(e,n,r)?e:OQ(e)%2==1?`${e}__`:e},NQ=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]===`*`&&e[n-1]!==`*`&&e[n+1]!==`*`&&e[n-1]!==`\\`&&!_Q(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if((!t||t===` `||t===` `||t===`
`)&&(!r||r===` `||r===` `||r===`
`)||t&&r&&mQ(t)&&mQ(r))continue;return n}}return-1},PQ=e=>{if(!e.match(nQ))return e;let t=NQ(e);if(t===-1||qZ(e,t)||XZ(e,t))return e;let n=e.substring(t+1);return!n||oQ.test(n)?e:CQ(e)%2==1?`${e}*`:e},FQ=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]===`_`&&e[n-1]!==`_`&&e[n+1]!==`_`&&e[n-1]!==`\\`&&!_Q(e,n)&&!yQ(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if(t&&r&&mQ(t)&&mQ(r))continue;return n}}return-1},IQ=e=>{let t=e.length;for(;t>0&&e[t-1]===`
`;)--t;return t<e.length?`${e.slice(0,t)}_${e.slice(t)}`:`${e}_`},LQ=e=>{if(!e.endsWith(`**`))return null;let t=e.slice(0,-2);if(DQ(t)%2!=1)return null;let n=t.indexOf(`**`),r=FQ(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},RQ=e=>{if(!e.match(rQ))return e;let t=FQ(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||oQ.test(n)||qZ(e,t)||XZ(e,t))return e;if(TQ(e)%2==1){let t=LQ(e);return t===null?IQ(e):t}return e},zQ=e=>{let t=DQ(e),n=CQ(e);return t%2==0&&n%2==0},BQ=(e,t,n)=>!t||oQ.test(t)||qZ(e,n)||XZ(e,n)?!0:xQ(e,n,`*`),VQ=e=>{if(uQ.test(e))return e;let t=e.match(tQ);if(!t)return e;let n=t[2];return BQ(e,n,e.lastIndexOf(t[1]))?e:EQ(e)%2==1?zQ(e)?e:`${e}***`:e},HQ=/<[a-zA-Z/][^>]*$/,UQ=e=>{let t=e.match(HQ);return!t||t.index===void 0||qZ(e,t.index)?e:e.substring(0,t.index).trimEnd()},WQ=e=>!e.match(lQ)||e.includes(`
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,GQ=e=>(e.match(/```/g)||[]).length%2==1,KQ=e=>{let t=WQ(e);if(t!==null)return t;let n=e.match(iQ);if(n&&!GQ(e)){let t=n[2];if(!t||oQ.test(t))return e;if(YZ(e)%2==1)return`${e}\``}return e},qQ=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",JQ=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!qQ(e,r)&&(n=!n),!n&&e[r]===`$`&&e[r+1]===`$`&&(t+=1,r+=1);return t},YQ=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]===`\\`){r+=1;continue}if(e[r]==="`"&&!qQ(e,r)){n=!n;continue}!n&&e[r]===`$`&&(r+1<e.length&&e[r+1]===`$`?r+=1:t+=1)}return t},XQ=e=>{if(e.endsWith(`$`)&&!e.endsWith(`$$`))return`${e}$`;let t=e.indexOf(`$$`);return t!==-1&&e.indexOf(`
`,t)!==-1&&!e.endsWith(`
`)?`${e}
$$`:`${e}$$`},ZQ=e=>JQ(e)%2==0?e:XQ(e),QQ=e=>YQ(e)%2==1?`${e}$`:e,$Q=(e,t,n)=>{if(e.substring(t+2).includes(`)`))return null;let r=hQ(e,t);if(r===-1||qZ(e,r))return null;let i=r>0&&e[r-1]===`!`,a=i?r-1:r,o=e.substring(0,a);if(i)return o;let s=e.substring(r+1,t);return n===`text-only`?`${o}${s}`:`${o}[${s}](streamdown:incomplete-link)`},e$=(e,t)=>{for(let n=0;n<t;n++)if(e[n]===`[`&&!qZ(e,n)){if(n>0&&e[n-1]===`!`)continue;let t=gQ(e,n);if(t===-1)return n;if(t+1<e.length&&e[t+1]===`(`){let r=e.indexOf(`)`,t+2);r!==-1&&(n=r)}}return t},t$=(e,t,n)=>{let r=t>0&&e[t-1]===`!`,i=r?t-1:t;if(!e.substring(t+1).includes(`]`)){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=e$(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}if(gQ(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=e$(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},n$=(e,t=`protocol`)=>{let n=e.lastIndexOf(`](`);if(n!==-1&&!qZ(e,n)){let r=$Q(e,n,t);if(r!==null)return r}for(let n=e.length-1;n>=0;--n)if(e[n]===`[`&&!qZ(e,n)){let r=t$(e,n,t);if(r!==null)return r}return e},r$=/^-{1,2}$/,i$=/^[\s]*-{1,2}[\s]+$/,a$=/^={1,2}$/,o$=/^[\s]*={1,2}[\s]+$/,s$=e=>{if(!e||typeof e!=`string`)return e;let t=e.lastIndexOf(`
`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(r$.test(i)&&!n.match(i$)){let t=r.split(`
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(a$.test(i)&&!n.match(o$)){let t=r.split(`
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},c$=RegExp(`(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])`,`gu`),l$=e=>!e||typeof e!=`string`||!e.includes(`~`)?e:e.replace(c$,(t,n)=>qZ(e,n)?t:`\\~`),u$=e=>{let t=e.match(aQ);if(t){let n=t[2];if(!n||oQ.test(n))return e;let r=e.lastIndexOf(t[1]);if(qZ(e,r)||XZ(e,r))return e;if(e.match(pQ)?.length%2==1)return`${e}~~`}else{let t=e.match(fQ);if(t){let n=e.lastIndexOf(t[0].slice(0,2));if(qZ(e,n)||XZ(e,n))return e;if(e.match(pQ)?.length%2==1)return`${e}~`}}return e},d$=e=>e!==!1,f$=e=>e===!0,p$={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},m$=[{handler:{name:`singleTilde`,handle:l$,priority:p$.SINGLE_TILDE},optionKey:`singleTilde`},{handler:{name:`comparisonOperators`,handle:QZ,priority:p$.COMPARISON_OPERATORS},optionKey:`comparisonOperators`},{handler:{name:`htmlTags`,handle:UQ,priority:p$.HTML_TAGS},optionKey:`htmlTags`},{handler:{name:`setextHeadings`,handle:s$,priority:p$.SETEXT_HEADINGS},optionKey:`setextHeadings`},{handler:{name:`links`,handle:n$,priority:p$.LINKS},optionKey:`links`,earlyReturn:e=>e.endsWith(`](streamdown:incomplete-link)`)},{handler:{name:`boldItalic`,handle:VQ,priority:p$.BOLD_ITALIC},optionKey:`boldItalic`},{handler:{name:`bold`,handle:AQ,priority:p$.BOLD},optionKey:`bold`},{handler:{name:`italicDoubleUnderscore`,handle:MQ,priority:p$.ITALIC_DOUBLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`italicSingleAsterisk`,handle:PQ,priority:p$.ITALIC_SINGLE_ASTERISK},optionKey:`italic`},{handler:{name:`italicSingleUnderscore`,handle:RQ,priority:p$.ITALIC_SINGLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`inlineCode`,handle:KQ,priority:p$.INLINE_CODE},optionKey:`inlineCode`},{handler:{name:`strikethrough`,handle:u$,priority:p$.STRIKETHROUGH},optionKey:`strikethrough`},{handler:{name:`katex`,handle:ZQ,priority:p$.KATEX},optionKey:`katex`},{handler:{name:`inlineKatex`,handle:QQ,priority:p$.INLINE_KATEX},optionKey:`inlineKatex`}],h$=e=>{let t=e?.linkMode??`protocol`;return m$.filter(({handler:t,optionKey:n})=>t.name===`links`?d$(e?.links)||d$(e?.images):t.name===`inlineKatex`?f$(e?.inlineKatex):d$(e?.[n])).map(({handler:e,earlyReturn:n})=>e.name===`links`?{handler:KZ(GZ({},e),{handle:e=>n$(e,t)}),earlyReturn:t===`protocol`?n:void 0}:{handler:e,earlyReturn:n})},g$=(e,t)=>{if(!e||typeof e!=`string`)return e;let n=e.endsWith(` `)&&!e.endsWith(` `)?e.slice(0,-1):e,r=h$(t),i=(t?.handlers??[]).map(e=>({handler:KZ(GZ({},e),{priority:e.priority??p$.DEFAULT}),earlyReturn:void 0})),a=[...r,...i].sort((e,t)=>(e.handler.priority??0)-(t.handler.priority??0));for(let{handler:e,earlyReturn:t}of a)if(n=e.handle(n),t!=null&&t(n))return n;return n},_$=g$})))()}function y$(e,t){let n=[],r=t?.atLineStart??!0,i=t?.open?{...t.open,start:0}:void 0,a=0;for(;a<=e.length;){let t=e.indexOf(`
`,a),o=t===-1?e.length:t,s=e.slice(a,o).replace(/\r$/,``),c=s.match(/^( {0,3})(`{3,}|~{3,})(.*)$/);if(c&&(a>0||r)){let[,e,r,l]=c;if(e===void 0||r===void 0||l===void 0){if(t===-1)break;a=t+1;continue}let u=r.charAt(0),d=r.length;if(!i)i={start:a,markerChar:u,markerLen:d,openLine:s,marker:r,indent:e};else if(i.markerChar===u&&d>=i.markerLen&&/^[ \t]*$/.test(l)){let e=o;n.push({start:i.start,end:e,openLine:i.openLine,marker:i.marker,indent:i.indent}),i=void 0}}if(t===-1)break;a=t+1}return i&&n.push({start:i.start,end:e.length,openLine:i.openLine,marker:i.marker,indent:i.indent}),{spans:n,state:{atLineStart:e.length===0?r:e.endsWith(`
`),...i?{open:{markerChar:i.markerChar,markerLen:i.markerLen,openLine:i.openLine,marker:i.marker,indent:i.indent}}:{}}}}function b$(e){return y$(e).spans}function x$(){return(x$=e((()=>{})))()}var S$,C$,w$;function T$(){return(T$=e((()=>{S$={emoji:`🧩`,detailKeys:[`command`,`path`,`url`,`targetUrl`,`targetId`,`ref`,`element`,`node`,`nodeId`,`id`,`requestId`,`to`,`channelId`,`guildId`,`userId`,`name`,`query`,`pattern`,`messageId`]},C$=JSON.parse(`{"bash":{"emoji":"🛠️","title":"Bash","detailKeys":["command"]},"computer":{"emoji":"🖱️","title":"Computer","detailKeys":["action","coordinate","text","node","nodeId","screenIndex"]},"mobile_ui":{"emoji":"📱","title":"Mobile UI","detailKeys":["action","mobileAction","snapshotId","node","nodeId"]},"screen":{"emoji":"🖥️","title":"Screen","detailKeys":["action","sessionKey","dock"]},"terminal":{"emoji":"⌨️","title":"Terminal","detailKeys":["action","sessionId","command","cwd"]},"portal":{"emoji":"🌐","title":"Portal","detailKeys":["action","port","id","title","path"]},"process":{"emoji":"🧰","title":"Process","detailKeys":["sessionId"]},"read":{"emoji":"📖","title":"Read","detailKeys":["path"]},"write":{"emoji":"✍️","title":"Write","detailKeys":["path"]},"edit":{"emoji":"📝","title":"Edit","detailKeys":["path"]},"attach":{"emoji":"📎","title":"Attach","detailKeys":["path","url","fileName"]},"api":{"emoji":"🌐","title":"API","detailKeys":["url","endpoint","path","method","name"]},"browser":{"emoji":"🌐","title":"Browser","actions":{"status":{"label":"status"},"start":{"label":"start"},"stop":{"label":"stop"},"tabs":{"label":"tabs"},"open":{"label":"open","detailKeys":["targetUrl"]},"focus":{"label":"focus","detailKeys":["targetId"]},"close":{"label":"close","detailKeys":["targetId"]},"snapshot":{"label":"snapshot","detailKeys":["targetUrl","targetId","ref","element","format"]},"screenshot":{"label":"screenshot","detailKeys":["targetUrl","targetId","ref","element"]},"navigate":{"label":"navigate","detailKeys":["targetUrl","targetId"]},"console":{"label":"console","detailKeys":["level","targetId"]},"pdf":{"label":"pdf","detailKeys":["targetId"]},"upload":{"label":"upload","detailKeys":["paths","ref","inputRef","element","targetId"]},"dialog":{"label":"dialog","detailKeys":["accept","promptText","targetId"]},"act":{"label":"act","detailKeys":["request.kind","request.ref","request.selector","request.text","request.value"]}}},"canvas":{"emoji":"🖼️","title":"Canvas","actions":{"present":{"label":"present","detailKeys":["target","node","nodeId"]},"hide":{"label":"hide","detailKeys":["node","nodeId"]},"navigate":{"label":"navigate","detailKeys":["url","node","nodeId"]}}},"dashboard":{"emoji":"📋","title":"Dashboard","detailKeys":["action","tabId","name","title"]},"nodes":{"emoji":"📱","title":"Nodes","actions":{"status":{"label":"status"},"describe":{"label":"describe","detailKeys":["node","nodeId"]},"pending":{"label":"pending"},"approve":{"label":"approve","detailKeys":["requestId"]},"reject":{"label":"reject","detailKeys":["requestId"]},"notify":{"label":"notify","detailKeys":["node","nodeId","title","body"]},"camera_snap":{"label":"camera snap","detailKeys":["node","nodeId","facing","deviceId"]},"camera_list":{"label":"camera list","detailKeys":["node","nodeId"]},"camera_clip":{"label":"camera clip","detailKeys":["node","nodeId","facing","duration","durationMs"]},"camera_ptz":{"label":"camera PTZ","detailKeys":["ptzOperation","node","nodeId","deviceId"]},"screen_record":{"label":"screen record","detailKeys":["node","nodeId","duration","durationMs","fps","screenIndex"]},"screen_snapshot":{"label":"screen snapshot","detailKeys":["node","nodeId","screenIndex","maxWidth"]}}},"cron":{"emoji":"⏰","title":"Cron","actions":{"status":{"label":"status"},"list":{"label":"list"},"add":{"label":"add","detailKeys":["job.name","job.id","job.schedule","job.cron"]},"update":{"label":"update","detailKeys":["id"]},"remove":{"label":"remove","detailKeys":["id"]},"run":{"label":"run","detailKeys":["id"]},"runs":{"label":"runs","detailKeys":["id"]},"wake":{"label":"wake","detailKeys":["text","mode"]}}},"get_goal":{"emoji":"🎯","title":"Get Goal","detailKeys":[]},"create_goal":{"emoji":"🎯","title":"Create Goal","detailKeys":["objective","token_budget"]},"update_goal":{"emoji":"🎯","title":"Update Goal","detailKeys":["status"]},"progress_card":{"emoji":"🗺️","title":"Progress Card","detailKeys":["plan.0.step","markdown"]},"ask_user":{"emoji":"❓","title":"Ask User","detailKeys":["questions.0.question"]},"secrets":{"emoji":"🔑","title":"Secrets","detailKeys":["action","name","kind"]},"suggest_task":{"emoji":"✨","title":"Suggest Task","detailKeys":["title","tldr","cwd"]},"dismiss_task":{"emoji":"🗑️","title":"Dismiss Task","detailKeys":["task_id","reason"]},"skill_workshop":{"emoji":"🧰","title":"Skill Workshop","detailKeys":["action","name","proposal_id"]},"openclaw":{"emoji":"🦀","title":"OpenClaw","detailKeys":["action","path","model"]},"gateway":{"emoji":"🔌","title":"Gateway","detailKeys":["action","path"]},"exec":{"emoji":"🛠️","title":"Exec","detailKeys":["command"]},"tool_call":{"emoji":"🧰","title":"Tool Call","detailKeys":[]},"tool_call_update":{"emoji":"🧰","title":"Tool Call","detailKeys":[]},"session_status":{"emoji":"📊","title":"Session Status","detailKeys":["sessionKey","model"]},"github_publish":{"emoji":"🔀","title":"GitHub Publish","detailKeys":["title"]},"github_identity_status":{"emoji":"🔐","title":"GitHub Identity Status","detailKeys":[]},"sessions":{"emoji":"🗂️","title":"Session Settings","actions":{"patch":{"label":"update","detailKeys":["sessionKey","label","pinned","archived","model","thinkingLevel"]},"group_list":{"label":"groups"},"group_set":{"label":"set groups","detailKeys":["names"]},"group_rename":{"label":"rename group","detailKeys":["name","to"]},"group_delete":{"label":"delete group","detailKeys":["name"]}}},"sessions_list":{"emoji":"🗂️","title":"Sessions","detailKeys":["kinds","label","agentId","search","limit","activeMinutes","includeDerivedTitles","includeLastMessage","messageLimit"]},"conversations_list":{"emoji":"💬","title":"Conversations","detailKeys":["channel","limit"]},"conversations_send":{"emoji":"📨","title":"Conversation Send","detailKeys":["conversationRef"]},"conversations_turn":{"emoji":"↔️","title":"Conversation Turn","detailKeys":["conversationRef","timeoutSeconds"]},"sessions_send":{"emoji":"📨","title":"Session Send","detailKeys":["label","sessionKey","agentId","timeoutSeconds"]},"sessions_history":{"emoji":"🧾","title":"Session History","detailKeys":["sessionKey","limit","includeTools"]},"sessions_search":{"emoji":"🔎","title":"Session Search","detailKeys":["query","sessionKey","limit"]},"transcripts":{"emoji":"🎙️","title":"Transcripts","actions":{"start":{"label":"start","detailKeys":["sessionId","title","providerId","accountId","guildId","channelId","meetingUrl"]},"stop":{"label":"stop","detailKeys":["sessionId"]},"status":{"label":"status"},"import":{"label":"import","detailKeys":["sessionId","title","providerId","meetingUrl","speakerLabel"]},"summarize":{"label":"summarize","detailKeys":["sessionId"]}}},"sessions_spawn":{"emoji":"🧑‍🔧","title":"Sub-agent","detailKeys":["label","task","agentId","model","thinking","runTimeoutSeconds","cleanup"]},"agents_wait":{"emoji":"⏳","title":"Wait for Agents","detailKeys":["ids","timeoutSeconds"]},"structured_output":{"emoji":"🧾","title":"Structured Output","detailKeys":["result"]},"subagents":{"emoji":"🤖","title":"Subagents","actions":{"list":{"label":"list","detailKeys":["recentMinutes"]},"kill":{"label":"kill","detailKeys":["target"]},"steer":{"label":"steer","detailKeys":["target"]}}},"agents_list":{"emoji":"🧭","title":"Agents","detailKeys":[]},"memory_search":{"emoji":"🧠","title":"Memory Search","detailKeys":["query"]},"memory_get":{"emoji":"📓","title":"Memory Get","detailKeys":["path","from","lines"]},"web_search":{"emoji":"🔎","title":"Web Search","detailKeys":["query","count"]},"web_fetch":{"emoji":"📄","title":"Web Fetch","detailKeys":["url","extractMode","maxChars"]},"code_execution":{"emoji":"🧮","title":"Code Execution","detailKeys":["task"]},"message":{"emoji":"✉️","title":"Message","actions":{"send":{"label":"send","detailKeys":["provider","to","media","replyTo","threadId"]},"poll":{"label":"poll","detailKeys":["provider","to","pollQuestion"]},"react":{"label":"react","detailKeys":["provider","to","messageId","emoji","remove"]},"reactions":{"label":"reactions","detailKeys":["provider","to","messageId","limit"]},"read":{"label":"read","detailKeys":["provider","to","limit"]},"edit":{"label":"edit","detailKeys":["provider","to","messageId"]},"delete":{"label":"delete","detailKeys":["provider","to","messageId"]},"pin":{"label":"pin","detailKeys":["provider","to","messageId"]},"unpin":{"label":"unpin","detailKeys":["provider","to","messageId"]},"list-pins":{"label":"list pins","detailKeys":["provider","to"]},"permissions":{"label":"permissions","detailKeys":["provider","channelId","to"]},"thread-create":{"label":"thread create","detailKeys":["provider","channelId","threadName"]},"thread-list":{"label":"thread list","detailKeys":["provider","guildId","channelId"]},"thread-reply":{"label":"thread reply","detailKeys":["provider","channelId","messageId"]},"search":{"label":"search","detailKeys":["provider","guildId","query"]},"sticker":{"label":"sticker","detailKeys":["provider","to","stickerId"]},"member-info":{"label":"member","detailKeys":["provider","guildId","userId"]},"role-info":{"label":"roles","detailKeys":["provider","guildId"]},"emoji-list":{"label":"emoji list","detailKeys":["provider","guildId"]},"emoji-upload":{"label":"emoji upload","detailKeys":["provider","guildId","emojiName"]},"sticker-upload":{"label":"sticker upload","detailKeys":["provider","guildId","stickerName"]},"role-add":{"label":"role add","detailKeys":["provider","guildId","userId","roleId"]},"role-remove":{"label":"role remove","detailKeys":["provider","guildId","userId","roleId"]},"channel-info":{"label":"channel","detailKeys":["provider","channelId"]},"channel-list":{"label":"channels","detailKeys":["provider","guildId"]},"voice-status":{"label":"voice","detailKeys":["provider","guildId","userId"]},"event-list":{"label":"events","detailKeys":["provider","guildId"]},"event-create":{"label":"event create","detailKeys":["provider","guildId","eventName"]},"timeout":{"label":"timeout","detailKeys":["provider","guildId","userId"]},"kick":{"label":"kick","detailKeys":["provider","guildId","userId"]},"ban":{"label":"ban","detailKeys":["provider","guildId","userId"]}}},"apply_patch":{"emoji":"🩹","title":"Apply Patch","detailKeys":[]},"image":{"emoji":"🖼️","title":"Image","detailKeys":["path","paths","url","urls","prompt","model"]},"view_image":{"emoji":"🖼️","title":"View Image","detailKeys":["path","paths","url","urls","prompt","model"]},"image_generate":{"emoji":"🎨","title":"Image Generation","actions":{"generate":{"label":"generate","detailKeys":["prompt","model","count","resolution","aspectRatio"]},"list":{"label":"list","detailKeys":["provider","model"]}}},"music_generate":{"emoji":"🎵","title":"Music Generation","actions":{"generate":{"label":"generate","detailKeys":["prompt","model","durationSeconds","format","instrumental"]},"list":{"label":"list","detailKeys":["provider","model"]}}},"video_generate":{"emoji":"🎬","title":"Video Generation","actions":{"generate":{"label":"generate","detailKeys":["prompt","model","durationSeconds","resolution","aspectRatio","audio","watermark"]},"list":{"label":"list","detailKeys":["provider","model"]}}},"pdf":{"emoji":"📑","title":"PDF","detailKeys":["path","paths","url","urls","prompt","pageRange","model"]},"sessions_yield":{"emoji":"⏸️","title":"Yield"},"tts":{"emoji":"🔊","title":"TTS","detailKeys":["text","channel"]}}`),w$={version:1,fallback:S$,tools:C$}})))()}var E$;function D$(){return(D$=e((()=>{De(),E$=Me`
:host {
--checked-icon-color: var(--wa-form-control-activated-color);
--checked-icon-scale: 0.7;
color: var(--wa-form-control-value-color);
display: inline-flex;
flex-direction: row;
align-items: top;
font-family: inherit;
font-weight: var(--wa-form-control-value-font-weight);
line-height: var(--wa-form-control-value-line-height);
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
:host(:focus) {
outline: none;
}
/* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */
:host(:not(:state(checked))) svg circle {
opacity: 0;
}
[part~='label'] {
display: inline;
}
[part~='hint'] {
margin-block-start: 0.5em;
}
/* Default spacing for default appearance radios */
:host([appearance='default']) {
margin-block: 0.375em; /* Half of the original 0.75em gap on each side */
}
:host([appearance='default'][data-wa-radio-horizontal]) {
margin-block: 0;
margin-inline: 0.5em; /* Half of the original 1em gap on each side */
}
/* Remove margin from first/last items to prevent extra space */
:host([appearance='default'][data-wa-radio-first]) {
margin-block-start: 0;
margin-inline-start: 0;
}
:host([appearance='default'][data-wa-radio-last]) {
margin-block-end: 0;
margin-inline-end: 0;
}
/* Button appearance have no spacing, they get handled by the overlap margins below */
:host([appearance='button']) {
margin: 0;
align-items: center;
min-height: var(--wa-form-control-height);
background-color: var(--wa-color-surface-default);
border: var(--wa-form-control-border-width) var(--wa-form-control-border-style) var(--wa-form-control-border-color);
border-radius: var(--wa-border-radius-m);
padding: 0 var(--wa-form-control-padding-inline);
transition:
background-color var(--wa-transition-fast),
border-color var(--wa-transition-fast);
}
/* Default appearance */
:host([appearance='default']) {
.control {
flex: 0 0 auto;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--wa-form-control-toggle-size);
height: var(--wa-form-control-toggle-size);
border-color: var(--wa-form-control-border-color);
border-radius: 50%;
border-style: var(--wa-form-control-border-style);
border-width: var(--wa-form-control-border-width);
background-color: var(--wa-form-control-background-color);
color: transparent;
transition:
background var(--wa-transition-normal),
border-color var(--wa-transition-fast),
box-shadow var(--wa-transition-fast),
color var(--wa-transition-fast);
transition-timing-function: var(--wa-transition-easing);
margin-inline-end: 0.5em;
}
.checked-icon {
display: flex;
fill: currentColor;
width: var(--wa-form-control-toggle-size);
height: var(--wa-form-control-toggle-size);
scale: var(--checked-icon-scale);
}
}
/* Button appearance */
:host([appearance='button']) {
.control {
display: none;
}
}
/* Checked */
:host(:state(checked)) .control {
color: var(--checked-icon-color);
border-color: var(--wa-form-control-activated-color);
background-color: var(--wa-form-control-background-color);
}
/* Focus */
:host(:focus-visible) .control {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
/* Disabled */
:host(:state(disabled)) {
opacity: 0.5;
cursor: not-allowed;
}
/* Horizontal grouping - remove inner border radius */
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-inner]) {
border-radius: 0;
}
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-first]) {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-last]) {
border-start-start-radius: 0;
border-end-start-radius: 0;
}
/* Vertical grouping - remove inner border radius */
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-inner]) {
border-radius: 0;
}
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-first]) {
border-end-start-radius: 0;
border-end-end-radius: 0;
}
:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-last]) {
border-start-start-radius: 0;
border-start-end-radius: 0;
}
@media (hover: hover) {
:host([appearance='button']:hover:not(:state(disabled), :state(checked))) {
background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover));
}
}
:host([appearance='button']:focus-visible) {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
:host([appearance='button']:state(checked)) {
border-color: var(--wa-form-control-activated-color);
background-color: var(--wa-color-brand-fill-quiet);
}
:host([appearance='button']:state(checked):focus-visible) {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
/* Button overlap margins */
:host([appearance='button'][data-wa-radio-horizontal]:not([data-wa-radio-first])) {
margin-inline-start: calc(-1 * var(--wa-form-control-border-width));
}
:host([appearance='button'][data-wa-radio-vertical]:not([data-wa-radio-first])) {
margin-block-start: calc(-1 * var(--wa-form-control-border-width));
}
/* Ensure interactive states are visible above adjacent buttons */
:host([appearance='button']:hover),
:host([appearance='button']:state(checked)) {
position: relative;
z-index: 1;
}
:host([appearance='button']:focus-visible) {
z-index: 2;
}
`})))()}var O$;function k$(){return(k$=e((()=>{D$(),oZ(),me(),te(),ne(),a(),De(),Oe(),O$=class extends f{constructor(){super(),this.checked=!1,this.forceDisabled=!1,this.appearance=`default`,this.disabled=!1,this.handleClick=()=>{!this.disabled&&!this.forceDisabled&&(this.checked=!0)},this.addEventListener(`click`,this.handleClick)}handleSizeChange(){re(this.localName,this.size)}connectedCallback(){super.connectedCallback(),this.setInitialAttributes()}setInitialAttributes(){this.setAttribute(`role`,`radio`),this.tabIndex=0,this.setAttribute(`aria-disabled`,this.disabled||this.forceDisabled?`true`:`false`)}updated(e){if(super.updated(e),e.has(`checked`)&&(this.customStates.set(`checked`,this.checked),this.setAttribute(`aria-checked`,this.checked?`true`:`false`),!this.disabled&&!this.forceDisabled&&(this.tabIndex=this.checked?0:-1)),e.has(`disabled`)||e.has(`forceDisabled`)){let e=this.disabled||this.forceDisabled;this.customStates.set(`disabled`,e),this.setAttribute(`aria-disabled`,e?`true`:`false`),this.tabIndex=e?-1:this.checked?0:-1}}setValue(){}render(){return Te`
<span part="control" class="control">
${this.checked?Te`
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" part="checked-icon" class="checked-icon">
<circle cx="8" cy="8" r="8" />
</svg>
`:``}
</span>
<slot part="label" class="label"></slot>
`}},O$.css=[aZ,l,E$],g([Pe()],O$.prototype,`checked`,2),g([Pe()],O$.prototype,`forceDisabled`,2),g([v({reflect:!0})],O$.prototype,`value`,2),g([v({reflect:!0})],O$.prototype,`appearance`,2),g([v({reflect:!0})],O$.prototype,`size`,2),g([de(`size`)],O$.prototype,`handleSizeChange`,1),g([v({type:Boolean})],O$.prototype,`disabled`,2),O$=g([je(`wa-radio`)],O$),O$.disableWarning?.(`change-in-update`)})))()}function A$(){return(A$=e((()=>{k$(),D$(),oZ(),me(),ne(),m(),s(),be()})))()}var j$;function M$(){return(M$=e((()=>{De(),j$=Me`
.form-control {
position: relative;
border: none;
padding: 0;
margin: 0;
}
.label {
padding: 0;
}
.radio-group-required .label::after {
content: var(--wa-form-control-required-content);
margin-inline-start: var(--wa-form-control-required-content-offset);
}
[part~='form-control-input'] {
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 0; /* Radios handle their own spacing */
}
/* Horizontal */
:host([orientation='horizontal']) [part~='form-control-input'] {
flex-direction: row;
}
/* Help text */
[part~='hint'] {
margin-block-start: 0.5em;
}
`})))()}var N$;function P$(){return(P$=e((()=>{M$(),iZ(),oZ(),fe(),me(),oe(),te(),ne(),a(),De(),Oe(),Le(),N$=class extends f{constructor(){super(),this.hasSlotController=new ie(this,`hint`,`label`),this.label=``,this.hint=``,this.name=null,this.disabled=!1,this.orientation=`vertical`,this._value=null,this.defaultValue=this.getAttribute(`value`)||null,this.required=!1,this.withLabel=!1,this.withHint=!1,this.handleRadioClick=e=>{let t=e.target.closest(`wa-radio`);if(!t||t.disabled||t.forceDisabled||this.disabled)return;let n=this.value;this.value=t.value,t.checked=!0;let r=this.getAllRadios();for(let e of r)t!==e&&(e.checked=!1,e.setAttribute(`tabindex`,`-1`));this.value!==n&&this.updateComplete.then(()=>{this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))})},this.addEventListener(`keydown`,this.handleKeyDown),this.addEventListener(`click`,this.handleRadioClick)}static get validators(){let e=[rZ({validationElement:Object.assign(document.createElement(`input`),{required:!0,type:`radio`,name:he(`__wa-radio`)})})];return[...super.validators,...e]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(e){typeof e==`number`&&(e=String(e)),this.valueHasChanged=!0,this._value=e}handleSizeChange(){re(this.localName,this.size)}get validationTarget(){let e=this.querySelector(`:is(wa-radio):not([disabled])`);if(e)return e}updated(e){(e.has(`disabled`)||e.has(`size`)||e.has(`value`)||e.has(`defaultValue`))&&this.syncRadioElements()}formResetCallback(...e){this._value=null,super.formResetCallback(...e),this.syncRadioElements()}getAllRadios(){return[...this.querySelectorAll(`wa-radio`)]}handleLabelClick(){this.focus()}async syncRadioElements(){let e=this.getAllRadios();if(e.forEach((t,n)=>{this.size&&t.setAttribute(`size`,this.size),t.toggleAttribute(`data-wa-radio-horizontal`,this.orientation!==`vertical`),t.toggleAttribute(`data-wa-radio-vertical`,this.orientation===`vertical`),t.toggleAttribute(`data-wa-radio-first`,n===0),t.toggleAttribute(`data-wa-radio-inner`,n!==0&&n!==e.length-1),t.toggleAttribute(`data-wa-radio-last`,n===e.length-1),t.forceDisabled=this.disabled}),await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=!e.disabled&&e.value===this.value})),this.disabled)e.forEach(e=>{e.tabIndex=-1});else{let t=e.filter(e=>!e.disabled),n=t.find(e=>e.checked);t.length>0&&(n?t.forEach(e=>{e.tabIndex=e.checked?0:-1}):t.forEach((e,t)=>{e.tabIndex=t===0?0:-1})),e.filter(e=>e.disabled).forEach(e=>{e.tabIndex=-1})}}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key)||this.disabled)return;let t=this.getAllRadios().filter(e=>!e.disabled);if(t.length<=0)return;e.preventDefault();let n=this.value,r=t.find(e=>e.checked)??t[0],i=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,a=t.indexOf(r)+i;a||=0,a<0&&(a=t.length-1),a>t.length-1&&(a=0);let o=t.some(e=>e.tagName.toLowerCase()===`wa-radio-button`);this.getAllRadios().forEach(e=>{e.checked=!1,o||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,o?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==n&&this.updateComplete.then(()=>{this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}),e.preventDefault()}focus(e){if(this.disabled)return;let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`,`withLabel`),t=this.hasSlotController.test(`hint`,`withHint`),n=this.label?!0:!!e,r=this.hint?!0:!!t;return Te`
<fieldset
part="form-control"
class=${Ce({"form-control":!0,"form-control-radio-group":!0,"form-control-has-label":n})}
role="radiogroup"
aria-labelledby="label"
aria-describedby="hint"
aria-errormessage="error-message"
aria-orientation=${this.orientation}
>
<label
part="form-control-label"
id="label"
class=${Ce({label:!0,"has-label":n})}
aria-hidden=${n?`false`:`true`}
@click=${this.handleLabelClick}
>
<slot name="label">${this.label}</slot>
</label>
<slot part="form-control-input" @slotchange=${this.syncRadioElements}></slot>
<slot
id="hint"
name="hint"
part="hint"
class=${Ce({"has-slotted":r})}
aria-hidden=${r?`false`:`true`}
>${this.hint}</slot
>
</fieldset>
`}},N$.css=[l,aZ,j$],N$.shadowRootOptions={...f.shadowRootOptions,delegatesFocus:!0},g([Ae(`slot:not([name])`)],N$.prototype,`defaultSlot`,2),g([v()],N$.prototype,`label`,2),g([v({attribute:`hint`})],N$.prototype,`hint`,2),g([v({reflect:!0})],N$.prototype,`name`,2),g([v({type:Boolean,reflect:!0})],N$.prototype,`disabled`,2),g([v({reflect:!0})],N$.prototype,`orientation`,2),g([Pe()],N$.prototype,`value`,1),g([v({attribute:`value`,reflect:!0})],N$.prototype,`defaultValue`,2),g([v({reflect:!0})],N$.prototype,`size`,2),g([de(`size`)],N$.prototype,`handleSizeChange`,1),g([v({type:Boolean,reflect:!0})],N$.prototype,`required`,2),g([v({type:Boolean,attribute:`with-label`})],N$.prototype,`withLabel`,2),g([v({type:Boolean,attribute:`with-hint`})],N$.prototype,`withHint`,2),N$=g([je(`wa-radio-group`)],N$),N$.disableWarning?.(`change-in-update`)})))()}function F$(){return(F$=e((()=>{P$(),k$(),D$(),M$(),oZ(),me(),ne(),m(),s(),be()})))()}var I$;function L$(){return(L$=e((()=>{De(),I$=Me`
:host {
--height: var(--wa-form-control-toggle-size);
--width: calc(var(--height) * 1.75);
--thumb-size: 0.75em;
display: inline-flex;
line-height: var(--wa-form-control-value-line-height);
}
label {
position: relative;
display: flex;
align-items: center;
font: inherit;
color: var(--wa-form-control-value-color);
vertical-align: middle;
cursor: pointer;
}
.switch {
flex: 0 0 auto;
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: var(--width);
height: var(--height);
background-color: var(--wa-form-control-background-color);
border-color: var(--wa-form-control-border-color);
border-radius: var(--height);
border-style: var(--wa-form-control-border-style);
border-width: var(--wa-form-control-border-width);
transition-property: translate, background, border-color, box-shadow;
transition-duration: var(--wa-transition-normal);
transition-timing-function: var(--wa-transition-easing);
}
:host([did-ssr]:not(:defined)) .switch {
transition-property: unset;
transition-duration: unset;
transition-timing-function: unset;
}
.switch .thumb {
aspect-ratio: 1 / 1;
width: var(--thumb-size);
height: var(--thumb-size);
background-color: var(--wa-form-control-border-color);
border-radius: 50%;
translate: calc((var(--width) - var(--height)) / -2);
transition: inherit;
}
.switch .thumb:dir(rtl) {
translate: calc((var(--width) - var(--height)) / 2);
}
.input {
position: absolute;
opacity: 0;
padding: 0;
margin: 0;
pointer-events: none;
}
/* Focus */
label:not(.disabled) .input:focus-visible ~ .switch .thumb {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
/* Checked */
.checked .switch {
background-color: var(--wa-form-control-activated-color);
border-color: var(--wa-form-control-activated-color);
}
.checked .switch .thumb {
background-color: var(--wa-color-surface-default);
translate: calc((var(--width) - var(--height)) / 2);
}
.checked .switch .thumb:dir(rtl) {
translate: calc((var(--width) - var(--height)) / -2);
}
/* Disabled */
label:has(> :disabled) {
opacity: 0.5;
cursor: not-allowed;
}
[part~='label'] {
display: inline-block;
line-height: var(--height);
margin-inline-start: 0.5em;
user-select: none;
-webkit-user-select: none;
}
:host([required]) [part~='label']::after {
content: var(--wa-form-control-required-content);
color: var(--wa-form-control-required-content-color);
margin-inline-start: var(--wa-form-control-required-content-offset);
}
@media (forced-colors: active) {
:checked:enabled + .switch:hover .thumb,
:checked + .switch .thumb {
background-color: ButtonText;
}
}
`})))()}var R$;function z$(){return(z$=e((()=>{L$(),oZ(),ae(),me(),oe(),te(),ne(),ge(),a(),De(),Oe(),Le(),we(),ke(),R$=class extends f{constructor(){super(...arguments),this.hasSlotController=new ie(this,`hint`),this.localize=new se(this),this.title=``,this.name=null,this._value=this.getAttribute(`value`)??null,this.size=`m`,this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute(`checked`),this.required=!1,this.hint=``,this.withHint=!1}static get validators(){return[...super.validators,d()]}get value(){return this._value??`on`}set value(e){this._value=e}handleSizeChange(){re(this.localName,this.size)}get checked(){return this.valueHasChanged?!!this._checked:this._checked??this.defaultChecked}set checked(e){this._checked=!!e,this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.updateComplete.then(()=>{this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))})}handleKeyDown(e){let t=this.localize.dir()===`rtl`;e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=t,this.updateComplete.then(()=>{this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0}))})),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!t,this.updateComplete.then(()=>{this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0}))}))}willUpdate(e){super.willUpdate(e),(e.has(`value`)||e.has(`checked`)||e.has(`defaultChecked`)||e.has(`disabled`))&&this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){if(this.didSSR&&!this.hasUpdated){this.updateComplete.then(()=>{this.handleValueOrCheckedChange()});return}this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked),this.customStates.set(`checked`,this.checked),this.updateValidity()}handleDisabledChange(){this.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}setValue(e,t){if(!this.checked){this.internals.setFormValue(null,null);return}this.internals.setFormValue(e??`on`,t)}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}render(){let e=this.hasSlotController.test(`hint`,`withHint`),t=this.hint?!0:!!e,n=this.didSSR&&!this.hasUpdated?this.checked:this.defaultChecked,r=this.didSSR&&!this.hasUpdated?null:Ie(this.checked);return Te`
<label
part="base switch"
class=${Ce({checked:this.checked,disabled:this.disabled})}
>
<input
class="input"
type="checkbox"
title=${this.title}
name=${Ee(this.name)}
value=${Ee(this.value)}
.checked=${Ee(r)}
?checked=${n}
?disabled=${this.disabled}
?required=${this.required}
role="switch"
aria-checked=${this.checked?`true`:`false`}
aria-describedby="hint"
@click=${this.handleClick}
@keydown=${this.handleKeyDown}
/>
<span part="control" class="switch">
<span part="thumb" class="thumb"></span>
</span>
<slot part="label" class="label"></slot>
</label>
<slot
id="hint"
name="hint"
part="hint"
class=${Ce({"has-slotted":t})}
aria-hidden=${t?`false`:`true`}
>${this.hint}</slot
>
`}},R$.shadowRootOptions={...f.shadowRootOptions,delegatesFocus:!0},R$.css=[aZ,l,I$],g([Ae(`input[type="checkbox"]`)],R$.prototype,`input`,2),g([v()],R$.prototype,`title`,2),g([v({reflect:!0})],R$.prototype,`name`,2),g([v({reflect:!0})],R$.prototype,`value`,1),g([v({reflect:!0})],R$.prototype,`size`,2),g([de(`size`)],R$.prototype,`handleSizeChange`,1),g([v({type:Boolean})],R$.prototype,`disabled`,2),g([v({type:Boolean,attribute:!1})],R$.prototype,`checked`,1),g([v({type:Boolean,attribute:`checked`,reflect:!0})],R$.prototype,`defaultChecked`,2),g([v({type:Boolean,reflect:!0})],R$.prototype,`required`,2),g([v({attribute:`hint`})],R$.prototype,`hint`,2),g([v({attribute:`with-hint`,type:Boolean})],R$.prototype,`withHint`,2),g([de([`checked`,`defaultChecked`])],R$.prototype,`handleStateChange`,1),g([de(`disabled`,{waitUntilFirstUpdate:!0})],R$.prototype,`handleDisabledChange`,1),R$=g([je(`wa-switch`)],R$),R$.disableWarning?.(`change-in-update`)})))()}function B$(){return(B$=e((()=>{z$(),L$(),oZ(),me(),ne(),be(),ge(),xe()})))()}function V$(){return u1||=document.createElement(`div`).style}function H$(e){if(f1[e])return f1[e];let t=V$();if(e in t)return f1[e]=e;let n=e[0].toUpperCase()+e.slice(1),r=d1.length;for(;r--;){let i=`${d1[r]}${n}`;if(i in t)return f1[e]=i}}function U$(e,t){return parseFloat(t[H$(e)])||0}function W$(e,t,n=window.getComputedStyle(e)){let r=t===`border`?`Width`:``;return{left:U$(`${t}Left${r}`,n),right:U$(`${t}Right${r}`,n),top:U$(`${t}Top${r}`,n),bottom:U$(`${t}Bottom${r}`,n)}}function G$(e,t,n){e.style[H$(t)]=n}function K$(e,t){G$(e,`transition`,`${H$(`transform`)} ${t.duration}ms ${t.easing}`)}function q$(e,{x:t,y:n,scale:r,isSVG:i},a){if(G$(e,`transform`,`scale(${r}) translate(${t}px, ${n}px)`),i&&l1){let t=window.getComputedStyle(e).getPropertyValue(`transform`);e.setAttribute(`transform`,t)}}function J$(e){let t=e.parentNode;(!t||t.nodeType!==1)&&(t=document.documentElement);let n=window.getComputedStyle(e),r=window.getComputedStyle(t),i=e.getBoundingClientRect(),a=t.getBoundingClientRect();return{elem:{style:n,width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right,margin:W$(e,`margin`,n),border:W$(e,`border`,n)},parent:{style:r,width:a.width,height:a.height,top:a.top,bottom:a.bottom,left:a.left,right:a.right,padding:W$(t,`padding`,r),border:W$(t,`border`,r)}}}function Y$(e,t,n,r){p1[e].split(` `).forEach(e=>{t.addEventListener(e,n,r)})}function X$(e,t,n){p1[e].split(` `).forEach(e=>{t.removeEventListener(e,n)})}function Z$(e,t){let n=e.length;for(;n--;)if(e[n].pointerId===t.pointerId)return n;return-1}function Q$(e,t){let n;if(t.touches){n=0;for(let r of t.touches)r.pointerId=n++,Q$(e,r);return}n=Z$(e,t),n>-1&&e.splice(n,1),e.push(t)}function $$(e,t){if(t.touches){for(;e.length;)e.pop();return}let n=Z$(e,t);n>-1&&e.splice(n,1)}function e1(e){e=e.slice(0);let t=e.pop(),n;for(;n=e.pop();)t={clientX:(n.clientX-t.clientX)/2+t.clientX,clientY:(n.clientY-t.clientY)/2+t.clientY};return t}function t1(e){if(e.length<2)return 0;let t=e[0],n=e[1];return Math.sqrt(Math.abs(n.clientX-t.clientX)**2+Math.abs(n.clientY-t.clientY)**2)}function n1(e){let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1}function r1(e){return(e.getAttribute(`class`)||``).trim()}function i1(e,t){return e.nodeType===1&&` ${r1(e)} `.indexOf(` ${t} `)>-1}function a1(e,t){for(let n=e;n!=null;n=n.parentNode)if(i1(n,t.excludeClass)||t.exclude.indexOf(n)>-1)return!0;return!1}function o1(e){return m1.test(e.namespaceURI)&&e.nodeName.toLowerCase()!==`svg`}function s1(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function c1(e,t){if(!e)throw Error(`Panzoom requires an element as an argument`);if(e.nodeType!==1)throw Error(`Panzoom requires an element with a nodeType of 1`);if(!n1(e))throw Error(`Panzoom should be called on elements that have been attached to the DOM`);t={...h1,...t};let n=o1(e),r=e.parentNode;r.style.overflow=t.overflow,r.style.userSelect=`none`,r.style.touchAction=t.touchAction,(t.canvas?r:e).style.cursor=t.cursor,e.style.userSelect=`none`,e.style.touchAction=t.touchAction,G$(e,`transformOrigin`,typeof t.origin==`string`?t.origin:n?`0 0`:`50% 50%`);function i(){r.style.overflow=``,r.style.userSelect=``,r.style.touchAction=``,r.style.cursor=``,e.style.cursor=``,e.style.userSelect=``,e.style.touchAction=``,G$(e,`transformOrigin`,``)}function a(n={}){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);(n.hasOwnProperty(`cursor`)||n.hasOwnProperty(`canvas`))&&(r.style.cursor=e.style.cursor=``,(t.canvas?r:e).style.cursor=t.cursor),n.hasOwnProperty(`overflow`)&&(r.style.overflow=n.overflow),n.hasOwnProperty(`touchAction`)&&(r.style.touchAction=n.touchAction,e.style.touchAction=n.touchAction)}let o=0,s=0,c=1,l=!1;h(t.startScale,{animate:!1,force:!0}),setTimeout(()=>{m(t.startX,t.startY,{animate:!1,force:!0})});function u(t,n,r){if(r.silent)return;let i=new CustomEvent(t,{detail:n});e.dispatchEvent(i)}function d(t,r,i){let a={x:o,y:s,scale:c,isSVG:n,originalEvent:i};return requestAnimationFrame(()=>{typeof r.animate==`boolean`&&(r.animate?K$(e,r):G$(e,`transition`,`none`)),r.setTransform(e,a,r),u(t,a,r),u(`panzoomchange`,a,r)}),a}function f(n,r,i,a){let l={...t,...a},u={x:o,y:s,opts:l};if(!a?.force&&(l.disablePan||l.panOnlyWhenZoomed&&c===l.startScale))return u;if(n=parseFloat(n),r=parseFloat(r),l.disableXAxis||(u.x=(l.relative?o:0)+n),l.disableYAxis||(u.y=(l.relative?s:0)+r),l.contain){let t=J$(e),n=t.elem.width/c,r=t.elem.height/c,a=n*i,o=r*i,s=(a-n)/2,d=(o-r)/2;if(l.contain===`inside`){let e=(-t.elem.margin.left-t.parent.padding.left+s)/i,n=(t.parent.width-a-t.parent.padding.left-t.elem.margin.left-t.parent.border.left-t.parent.border.right+s)/i;u.x=Math.max(Math.min(u.x,n),e);let r=(-t.elem.margin.top-t.parent.padding.top+d)/i,c=(t.parent.height-o-t.parent.padding.top-t.elem.margin.top-t.parent.border.top-t.parent.border.bottom+d)/i;u.y=Math.max(Math.min(u.y,c),r)}else if(l.contain===`outside`){let e=(-(a-t.parent.width)-t.parent.padding.left-t.parent.border.left-t.parent.border.right+s)/i,n=(s-t.parent.padding.left)/i;u.x=Math.max(Math.min(u.x,n),e);let r=(-(o-t.parent.height)-t.parent.padding.top-t.parent.border.top-t.parent.border.bottom+d)/i,c=(d-t.parent.padding.top)/i;u.y=Math.max(Math.min(u.y,c),r)}}return l.roundPixels&&(u.x=Math.round(u.x),u.y=Math.round(u.y)),u}function p(n,r){let i={...t,...r},a={scale:c,opts:i};if(!r?.force&&i.disableZoom)return a;let o=t.minScale,s=t.maxScale;if(i.contain){let n=J$(e),r=n.elem.width/c,i=n.elem.height/c;if(r>1&&i>1){let e=n.parent.width-n.parent.border.left-n.parent.border.right,a=n.parent.height-n.parent.border.top-n.parent.border.bottom,c=e/r,l=a/i;t.contain===`inside`?s=Math.min(s,c,l):t.contain===`outside`&&(o=Math.max(o,c,l))}}return a.scale=Math.min(Math.max(n,o),s),a}function m(e,t,r,i){let a=f(e,t,c,r);return o!==a.x||s!==a.y?(o=a.x,s=a.y,d(`panzoompan`,a.opts,i)):{x:o,y:s,scale:c,isSVG:n,originalEvent:i}}function h(e,t,n){let r=p(e,t),i=r.opts;if(!t?.force&&i.disableZoom)return;e=r.scale;let a=o,l=s;if(i.focal){let t=i.focal;a=(t.x/e-t.x/c+o*e)/e,l=(t.y/e-t.y/c+s*e)/e}let u=f(a,l,e,{relative:!1,force:!0});return o=u.x,s=u.y,c=e,d(`panzoomzoom`,i,n)}function ee(e,n){let r={...t,animate:!0,...n};return h(c*Math.exp((e?1:-1)*r.step),r)}function g(e){return ee(!0,e)}function te(e){return ee(!1,e)}function ne(t,r,i,a){let o=J$(e),s={width:o.parent.width-o.parent.padding.left-o.parent.padding.right-o.parent.border.left-o.parent.border.right,height:o.parent.height-o.parent.padding.top-o.parent.padding.bottom-o.parent.border.top-o.parent.border.bottom},l=r.clientX-o.parent.left-o.parent.padding.left-o.parent.border.left-o.elem.margin.left,u=r.clientY-o.parent.top-o.parent.padding.top-o.parent.border.top-o.elem.margin.top;n||(l-=o.elem.width/c/2,u-=o.elem.height/c/2);let d={x:l/s.width*(s.width*t),y:u/s.height*(s.height*t)};return h(t,{...i,animate:!1,focal:d},a)}function re(e,n){e.preventDefault();let r={...t,...n,animate:!1},i=(e.deltaY===0&&e.deltaX?e.deltaX:e.deltaY)<0?1:-1,a=p(c*Math.exp(i*r.step/3),r).scale;return ne(a,e,r,e)}function ie(e){let n={...t,animate:!0,force:!0,...e};c=p(n.startScale,n).scale;let r=f(n.startX,n.startY,c,n);return o=r.x,s=r.y,d(`panzoomreset`,n)}let ae,oe,se,_,ce,le,ue=[];function de(e){if(a1(e.target,t))return;Q$(ue,e),l=!0,t.handleStartEvent(e),ae=o,oe=s,u(`panzoomstart`,{x:o,y:s,scale:c,isSVG:n,originalEvent:e},t);let r=e1(ue);se=r.clientX,_=r.clientY,ce=c,le=t1(ue)}function fe(e){if(!l||ae===void 0||oe===void 0||se===void 0||_===void 0)return;Q$(ue,e);let n=e1(ue),r=ue.length>1,i=c;r&&(le===0&&(le=t1(ue)),i=p((t1(ue)-le)*t.step/80+ce).scale,ne(i,n,{animate:!1},e)),(!r||t.pinchAndPan)&&m(ae+(n.clientX-se)/i,oe+(n.clientY-_)/i,{animate:!1},e)}function pe(e){ue.length===1&&u(`panzoomend`,{x:o,y:s,scale:c,isSVG:n,originalEvent:e},t),$$(ue,e),l&&(l=!1,ae=oe=se=_=void 0)}let me=!1;function he(){me||(me=!0,Y$(`down`,t.canvas?r:e,de),Y$(`move`,document,fe,{passive:!0}),Y$(`up`,document,pe,{passive:!0}))}function ge(){me=!1,X$(`down`,t.canvas?r:e,de),X$(`move`,document,fe),X$(`up`,document,pe)}return t.noBind||he(),{bind:he,destroy:ge,eventNames:p1,getPan:()=>({x:o,y:s}),getScale:()=>c,getOptions:()=>s1(t),handleDown:de,handleMove:fe,handleUp:pe,pan:m,reset:ie,resetStyle:i,setOptions:a,setStyle:(t,n)=>G$(e,t,n),zoom:h,zoomIn:g,zoomOut:te,zoomToPoint:ne,zoomWithWheel:re}}var l1,u1,d1,f1,p1,m1,h1;function g1(){return(g1=e((()=>{typeof window<`u`&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window.CustomEvent!=`function`&&(window.CustomEvent=function(e,t){t||={bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n})),l1=typeof document<`u`&&!!document.documentMode,d1=[`webkit`,`moz`,`ms`],f1={},p1={down:`mousedown`,move:`mousemove`,up:`mouseup mouseleave`},typeof window<`u`&&(typeof window.PointerEvent==`function`?p1={down:`pointerdown`,move:`pointermove`,up:`pointerup pointerleave pointercancel`}:typeof window.TouchEvent==`function`&&(p1={down:`touchstart`,move:`touchmove`,up:`touchend touchcancel`})),m1=/^http:[\w\.\/]+svg$/,h1={animate:!1,canvas:!1,cursor:`move`,disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:`ease-in-out`,exclude:[],excludeClass:`panzoom-exclude`,handleStartEvent:e=>{e.preventDefault(),e.stopPropagation()},maxScale:4,minScale:.125,overflow:`hidden`,panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:q$,startX:0,startY:0,startScale:1,step:.3,touchAction:`none`},c1.defaultOptions=h1})))()}function _1(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function v1(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function y1(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var b1,x1;function S1(){return(S1=e((()=>{b1=(e,t)=>Math.abs(e-t)<1.01,x1=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})}})))()}function C1(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function w1(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=C1(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=z1(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1;function B1(){return(B1=e((()=>{S1(),E1=()=>{if(T1!==void 0)return T1;if(typeof navigator>`u`)return T1=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return T1=!0;let e=navigator.maxTouchPoints;return T1=navigator.platform===`MacIntel`&&e!==void 0&&e>0},D1=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},O1=e=>e,k1=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},A1=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(D1(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(D1(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},j1={passive:!0},M1=typeof window>`u`||`onscrollend`in window,N1=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&M1,o=0,s=a?null:x1(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,j1),a&&r.addEventListener(`scrollend`,u,j1),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},P1=(e,t)=>N1(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),F1=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},I1=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},L1=I1,R1=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:O1,rangeExtractor:k1,onChange:()=>{},measureElement:F1,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=v1(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!E1()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,j1),e.addEventListener(`touchend`,n,j1),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(E1()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=v1(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=v1(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=_1(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,ee=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,ee&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,ee&&this.laneAssignments.set(i,u);let g=l.get(e),te=typeof g==`number`?g:this.options.estimateSize(i),ne=h+te;d[i]={index:i,start:h,size:te,end:ne,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=ne}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=v1(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=w1(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=v1(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(!this.isIndexInRange(e))return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=v1(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return y1(t[z1(0,t.length-1,r?e=>n[e*2]:e=>y1(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e===0?!1:E1()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&b1(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},z1=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0}})))()}var V1,H1;function U1(){return(U1=e((()=>{B1(),V1=class{constructor(e,t){this.cleanup=()=>{};let n={...t,onChange:(e,n)=>{var r;this.host.updateComplete.then(()=>this.host.requestUpdate()),(r=t.onChange)==null||r.call(t,e,n)}};this.virtualizer=new R1(n),(this.host=e).addController(this)}getVirtualizer(){return this.virtualizer}hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},H1=class extends V1{constructor(e,t){super(e,{observeElementRect:A1,observeElementOffset:P1,scrollToFn:L1,...t})}}})))()}function W1(){return(W1=e((()=>{ue(),ye(),be(),ge(),xe()})))()}export{IG as $,Zs as $t,eZ as A,Kt as An,ER as At,DX as B,gt as Bn,vw as Bt,PZ as C,Nn as Cn,eV as Ct,iZ as D,Ln as Dn,yB as Dt,rZ as E,Pn as En,bB as Et,NX as F,on as Fn,MP as Ft,vX as G,We as Gn,cS as Gt,CX as H,at as Hn,jS as Ht,AX as I,yt as In,yw as It,rX as J,V as Jt,uX as K,Ue as Kn,iu as Kt,kX as L,bt as Ln,bw as Lt,UX as M,qt as Mn,zP as Mt,FX as N,Zt as Nn,IP as Nt,nZ as O,In as On,pB as Ot,PX as P,Jt as Pn,jP as Pt,NG as Q,R as Qt,MX as R,Ze as Rn,Cw as Rt,LZ as S,Rn as Sn,ZB as St,oZ as T,Fn as Tn,GB as Tt,bX as U,dt as Un,Y as Ut,wX as V,Je as Vn,X as Vt,yX as W,ft as Wn,lS as Wt,VG as X,B as Xt,pX as Y,U as Yt,BG as Z,ac as Zt,x$ as _,vn as _n,LV as _t,k1 as a,Ls as an,EG as at,v$ as b,An as bn,UV as bt,P1 as c,M as cn,CW as ct,g1 as d,wa as dn,iW as dt,L as en,FG as et,B$ as f,O as fn,aW as ft,w$ as g,yn as gn,FV as gt,T$ as h,Rr as hn,PV as ht,R1 as i,F as in,DG as it,HX as j,Gt as jn,RP as jt,tZ as k,Wt as kn,CR as kt,A1 as l,Ya as ln,wW as lt,A$ as m,Cr as mn,ZU as mt,H1 as n,I as nn,RG as nt,B1 as o,P as on,OW as ot,F$ as p,Lr as pn,XU as pt,_X as q,Ve as qn,mu as qt,U1 as r,Bs as rn,zG as rt,F1 as s,io as sn,QW as st,W1 as t,Ys as tn,PG as tt,c1 as u,j as un,TW as ut,b$ as v,Dn as vn,VV as vt,aZ as w,Mn as wn,HB as wt,FZ as x,jn as xn,YB as xt,_$ as y,En as yn,HV as yt,OX as z,ct as zn,hw as zt};
//# sourceMappingURL=control-ui-boot-wpHCbPL9.js.map