@ccdd/project 3.3.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -12
- package/dist/monitor-ui/assets/GraphView-6yzqBOLv.js +27 -0
- package/dist/monitor-ui/assets/ValidationView-BMqI2XQ5.css +1 -0
- package/dist/monitor-ui/assets/ValidationView-BwHWjMUI.js +1 -0
- package/dist/monitor-ui/assets/{elk-api-D5d3gWoP.js → elk-api-BwZQovT5.js} +1 -1
- package/dist/monitor-ui/assets/{elk.bundled-0eaKiuBP.js → elk.bundled-CQowIhI8.js} +1 -1
- package/dist/monitor-ui/assets/index-CoJ9_gC3.js +7 -0
- package/dist/monitor-ui/assets/{index-DDwx11D7.css → index-D0yfhUlt.css} +1 -1
- package/dist/monitor-ui/index.html +2 -2
- package/dist/scripts/prepare-demo.js +25 -44
- package/dist/scripts/prepare-demo.js.map +1 -1
- package/dist/src/artifact-scope.d.ts +6 -0
- package/dist/src/artifact-scope.js +27 -0
- package/dist/src/artifact-scope.js.map +1 -0
- package/dist/src/artifacts/index.d.ts +7 -155
- package/dist/src/artifacts/index.js +0 -354
- package/dist/src/artifacts/index.js.map +1 -1
- package/dist/src/artifacts/instruction.d.ts +6 -9
- package/dist/src/artifacts/instruction.js +28 -36
- package/dist/src/artifacts/instruction.js.map +1 -1
- package/dist/src/artifacts/mcp-server.js +8 -9
- package/dist/src/artifacts/mcp-server.js.map +1 -1
- package/dist/src/artifacts/scope.d.ts +12 -0
- package/dist/src/artifacts/scope.js +34 -0
- package/dist/src/artifacts/scope.js.map +1 -0
- package/dist/src/artifacts/tool-check.d.ts +2 -6
- package/dist/src/artifacts/tool-check.js +16 -20
- package/dist/src/artifacts/tool-check.js.map +1 -1
- package/dist/src/artifacts/types.d.ts +3 -37
- package/dist/src/artifacts/types.js +5 -89
- package/dist/src/artifacts/types.js.map +1 -1
- package/dist/src/broker/config.d.ts +5 -6
- package/dist/src/broker/config.js +183 -130
- package/dist/src/broker/config.js.map +1 -1
- package/dist/src/broker/graph.d.ts +14 -21
- package/dist/src/broker/graph.js +68 -70
- package/dist/src/broker/graph.js.map +1 -1
- package/dist/src/broker/index.d.ts +6 -28
- package/dist/src/broker/index.js +84 -234
- package/dist/src/broker/index.js.map +1 -1
- package/dist/src/cli.d.ts +1 -21
- package/dist/src/cli.js +2 -329
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +13 -15
- package/dist/src/definitions.d.ts +33 -23
- package/dist/src/diagnostics-cli.d.ts +9 -0
- package/dist/src/diagnostics-cli.js +94 -0
- package/dist/src/diagnostics-cli.js.map +1 -0
- package/dist/src/doctor/index.d.ts +2 -4
- package/dist/src/doctor/index.js +17 -63
- package/dist/src/doctor/index.js.map +1 -1
- package/dist/src/executors/auth.d.ts +1 -1
- package/dist/src/executors/auth.js +2 -2
- package/dist/src/executors/auth.js.map +1 -1
- package/dist/src/executors/human-preparation.js +2 -10
- package/dist/src/executors/human-preparation.js.map +1 -1
- package/dist/src/executors/index.js +30 -29
- package/dist/src/executors/index.js.map +1 -1
- package/dist/src/executors/pi.js +36 -4
- package/dist/src/executors/pi.js.map +1 -1
- package/dist/src/executors/process.js +19 -11
- package/dist/src/executors/process.js.map +1 -1
- package/dist/src/executors/telemetry.d.ts +4 -0
- package/dist/src/executors/telemetry.js +24 -0
- package/dist/src/executors/telemetry.js.map +1 -0
- package/dist/src/monitor/actions.js +3 -3
- package/dist/src/monitor/actions.js.map +1 -1
- package/dist/src/monitor/server.js +12 -95
- package/dist/src/monitor/server.js.map +1 -1
- package/dist/src/monitor/store.js +6 -42
- package/dist/src/monitor/store.js.map +1 -1
- package/dist/src/monitor/types.d.ts +3 -13
- package/dist/src/monitor/ui/critic-presentation.js +1 -1
- package/dist/src/monitor/ui/critic-presentation.js.map +1 -1
- package/dist/src/monitor/ui/graph-layout.d.ts +0 -1
- package/dist/src/monitor/ui/graph-layout.js +1 -23
- package/dist/src/monitor/ui/graph-layout.js.map +1 -1
- package/dist/src/monitor/ui/tool-input.d.ts +1 -1
- package/dist/src/monitor/ui/tool-input.js +2 -3
- package/dist/src/monitor/ui/tool-input.js.map +1 -1
- package/dist/src/project/cli.js +18 -30
- package/dist/src/project/cli.js.map +1 -1
- package/dist/src/project/graph.js +2 -2
- package/dist/src/project/graph.js.map +1 -1
- package/dist/src/project/identity.js +83 -56
- package/dist/src/project/identity.js.map +1 -1
- package/dist/src/project/index.d.ts +0 -3
- package/dist/src/project/index.js +2 -6
- package/dist/src/project/index.js.map +1 -1
- package/dist/src/project/query.d.ts +2 -1
- package/dist/src/project/query.js +49 -74
- package/dist/src/project/query.js.map +1 -1
- package/dist/src/project/store.js +3 -3
- package/dist/src/project/store.js.map +1 -1
- package/dist/src/project/types.d.ts +4 -4
- package/dist/src/requester/index.d.ts +2 -9
- package/dist/src/requester/index.js +17 -96
- package/dist/src/requester/index.js.map +1 -1
- package/dist/src/sdk.d.ts +3 -8
- package/dist/src/sdk.js +2 -3
- package/dist/src/sdk.js.map +1 -1
- package/dist/src/tools/contracts.d.ts +44 -80
- package/dist/src/tools/diagnostics.js +2 -2
- package/dist/src/tools/diagnostics.js.map +1 -1
- package/dist/src/tools/environment.d.ts +1 -0
- package/dist/src/tools/environment.js +7 -11
- package/dist/src/tools/environment.js.map +1 -1
- package/dist/src/tools/manifest.d.ts +0 -1
- package/dist/src/tools/manifest.js +1 -25
- package/dist/src/tools/manifest.js.map +1 -1
- package/dist/src/tools/runner.d.ts +19 -14
- package/dist/src/tools/runner.js +163 -118
- package/dist/src/tools/runner.js.map +1 -1
- package/dist/src/tools/schema.js +1 -1
- package/dist/src/tools/schema.js.map +1 -1
- package/dist/src/workspaces/index.d.ts +5 -12
- package/dist/src/workspaces/index.js +33 -217
- package/dist/src/workspaces/index.js.map +1 -1
- package/package.json +38 -10
- package/dist/monitor-ui/assets/GraphView-BSZlEAs3.js +0 -27
- package/dist/monitor-ui/assets/ValidationView-DaEF78J-.js +0 -1
- package/dist/monitor-ui/assets/ValidationView-p5r8lX18.css +0 -1
- package/dist/monitor-ui/assets/index-BQlWbkpH.js +0 -8
- package/dist/src/artifacts/data.d.ts +0 -5
- package/dist/src/artifacts/data.js +0 -100
- package/dist/src/artifacts/data.js.map +0 -1
- package/dist/src/artifacts/groups.d.ts +0 -13
- package/dist/src/artifacts/groups.js +0 -93
- package/dist/src/artifacts/groups.js.map +0 -1
- package/dist/src/artifacts/human.d.ts +0 -38
- package/dist/src/artifacts/human.js +0 -156
- package/dist/src/artifacts/human.js.map +0 -1
- package/dist/src/artifacts/sources.d.ts +0 -11
- package/dist/src/artifacts/sources.js +0 -106
- package/dist/src/artifacts/sources.js.map +0 -1
- package/dist/src/review/cli.d.ts +0 -8
- package/dist/src/review/cli.js +0 -136
- package/dist/src/review/cli.js.map +0 -1
- package/dist/src/review/client.d.ts +0 -30
- package/dist/src/review/client.js +0 -193
- package/dist/src/review/client.js.map +0 -1
- package/dist/src/review/server.d.ts +0 -11
- package/dist/src/review/server.js +0 -249
- package/dist/src/review/server.js.map +0 -1
- package/dist/src/review/types.d.ts +0 -10
- package/dist/src/review/types.js +0 -17
- package/dist/src/review/types.js.map +0 -1
- package/dist/src/tools/host.d.ts +0 -7
- package/dist/src/tools/host.js +0 -98
- package/dist/src/tools/host.js.map +0 -1
- package/dist/src/tools/runtime-host.d.ts +0 -1
- package/dist/src/tools/runtime-host.js +0 -212
- package/dist/src/tools/runtime-host.js.map +0 -1
- package/dist/src/workspaces/transfer.d.ts +0 -52
- package/dist/src/workspaces/transfer.js +0 -372
- package/dist/src/workspaces/transfer.js.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GraphView-BSZlEAs3.js","assets/GraphView-CYMJ1Nb7.css","assets/ValidationView-DaEF78J-.js","assets/ValidationView-p5r8lX18.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>ne(e)===`[object Map]`,C=e=>ne(e)===`[object Set]`,w=e=>ne(e)===`[object Date]`,T=e=>typeof e==`function`,E=e=>typeof e==`string`,D=e=>typeof e==`symbol`,O=e=>typeof e==`object`&&!!e,ee=e=>(O(e)||T(e))&&T(e.then)&&T(e.catch),te=Object.prototype.toString,ne=e=>te.call(e),k=e=>ne(e).slice(8,-1),A=e=>ne(e)===`[object Object]`,re=e=>E(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,j=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ie=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ae=/-\w/g,M=ie(e=>e.replace(ae,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,se=ie(e=>e.replace(oe,`-$1`).toLowerCase()),ce=ie(e=>e.charAt(0).toUpperCase()+e.slice(1)),le=ie(e=>e?`on${ce(e)}`:``),ue=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me,he=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ge(e){if(x(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=E(r)?be(r):ge(r);if(i)for(let e in i)t[e]=i[e]}return t}if(E(e)||O(e))return e}var _e=/;(?![^(]*\))/g,ve=/:([^]+)/,ye=/\/\*[^]*?\*\//g;function be(e){let t={};return e.replace(ye,``).split(_e).forEach(e=>{if(e){let n=e.split(ve);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t=``;if(E(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){let r=xe(e[n]);r&&(t+=r+` `)}else if(O(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var Se=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ce=u(Se);Se+``;function we(e){return!!e||e===``}function Te(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=De(e[r],t[r]);return n}function Ee(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&De(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function De(e,t){if(e===t)return!0;let n=w(e),r=w(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=D(e),r=D(t),n||r)return e===t;if(n=x(e),r=x(t),n||r)return n&&r?Te(e,t):!1;if(n=O(e),r=O(t),n||r){if(!n||!r)return!1;if(n=S(e),r=S(t),n||r||(n=C(e),r=C(t),n||r))return n&&r?Ee(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!De(e[n],t[n]))return!1}}return String(e)===String(t)}function Oe(e,t){return e.findIndex(e=>De(e,t))}var ke=e=>!!(e&&e.__v_isRef===!0),N=e=>E(e)?e:e==null?``:x(e)||O(e)&&(e.toString===te||!T(e.toString))?ke(e)?N(e.value):JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>ke(t)?Ae(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[je(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>je(e))}:D(t)?je(t):O(t)&&!x(t)&&!A(t)?String(t):t,je=(e,t=``)=>D(e)?`Symbol(${e.description??t})`:e,Me,Ne=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Me&&(Me.active?(this.parent=Me,this.index=(Me.scopes||(Me.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Me;try{return Me=this,e()}finally{Me=t}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){if(this._on>0&&--this._on===0){if(Me===this)Me=this.prevScope;else{let e=Me;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Pe(e){return new Ne(e)}function Fe(){return Me}function Ie(e,t=!1){Me&&Me.cleanups.push(e)}var P,Le=new WeakSet,Re=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&(Me.active?Me.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Le.has(this)&&(Le.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||He(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tt(this),Ge(this);let e=P,t=Ze;P=this,Ze=!0;try{return this.fn()}finally{Ke(this),P=e,Ze=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ye(e);this.deps=this.depsTail=void 0,tt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qe(this)&&this.run()}get dirty(){return qe(this)}},ze=0,Be,Ve;function He(e,t=!1){if(e.flags|=8,t){e.next=Ve,Ve=e;return}e.next=Be,Be=e}function Ue(){ze++}function We(){if(--ze>0)return;if(Ve){let e=Ve;for(Ve=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Be;){let t=Be;for(Be=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ge(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ke(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ye(r),Xe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Je(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Je(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nt)||(e.globalVersion=nt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qe(e))))return;e.flags|=2;let t=e.dep,n=P,r=Ze;P=e,Ze=!0;try{Ge(e);let n=e.fn(e._value);(t.version===0||ue(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Ze=r,Ke(e),e.flags&=-3}}function Ye(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ye(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ze=!0,Qe=[];function $e(){Qe.push(Ze),Ze=!1}function et(){let e=Qe.pop();Ze=e===void 0||e}function tt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var nt=0,rt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},it=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!Ze||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new rt(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,at(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,nt++,this.notify(e)}notify(e){Ue();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{We()}}};function at(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)at(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ot=new WeakMap,st=Symbol(``),ct=Symbol(``),lt=Symbol(``);function ut(e,t,n){if(Ze&&P){let t=ot.get(e);t||ot.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new it),r.map=t,r.key=n),r.track()}}function dt(e,t,n,r,i,a){let o=ot.get(e);if(!o){nt++;return}let s=e=>{e&&e.trigger()};if(Ue(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&re(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===lt||!D(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(lt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(st)),S(e)&&s(o.get(ct)));break;case`delete`:i||(s(o.get(st)),S(e)&&s(o.get(ct)));break;case`set`:S(e)&&s(o.get(st))}}We()}function ft(e,t){let n=ot.get(e);return n&&n.get(t)}function pt(e){let t=F(e);return t===e?t:(ut(t,`iterate`,lt),Qt(e)?t:t.map(tn))}function mt(e){return ut(e=F(e),`iterate`,lt),e}function ht(e,t){return Zt(e)?nn(Xt(e)?tn(t):t):tn(t)}var gt={__proto__:null,[Symbol.iterator](){return _t(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return pt(this).concat(...e.map(e=>x(e)?pt(e):e))},entries(){return _t(this,`entries`,e=>(e[1]=ht(this,e[1]),e))},every(e,t){return yt(this,`every`,e,t,void 0,arguments)},filter(e,t){return yt(this,`filter`,e,t,e=>e.map(e=>ht(this,e)),arguments)},find(e,t){return yt(this,`find`,e,t,e=>ht(this,e),arguments)},findIndex(e,t){return yt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return yt(this,`findLast`,e,t,e=>ht(this,e),arguments)},findLastIndex(e,t){return yt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return yt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return xt(this,`includes`,e)},indexOf(...e){return xt(this,`indexOf`,e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return xt(this,`lastIndexOf`,e)},map(e,t){return yt(this,`map`,e,t,void 0,arguments)},pop(){return St(this,`pop`)},push(...e){return St(this,`push`,e)},reduce(e,...t){return bt(this,`reduce`,e,t)},reduceRight(e,...t){return bt(this,`reduceRight`,e,t)},shift(){return St(this,`shift`)},some(e,t){return yt(this,`some`,e,t,void 0,arguments)},splice(...e){return St(this,`splice`,e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return St(this,`unshift`,e)},values(){return _t(this,`values`,e=>ht(this,e))}};function _t(e,t,n){let r=mt(e),i=r[t]();return r!==e&&!Qt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var vt=Array.prototype;function yt(e,t,n,r,i,a){let o=mt(e),s=o!==e&&!Qt(e),c=o[t];if(c!==vt[t]){let t=c.apply(e,a);return s?tn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ht(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function bt(e,t,n,r){let i=mt(e),a=i!==e&&!Qt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ht(e,t)),n.call(this,t,ht(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ht(e,c):c}function xt(e,t,n){let r=F(e);ut(r,`iterate`,lt);let i=r[t](...n);return(i===-1||i===!1)&&$t(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function St(e,t,n=[]){$e(),Ue();let r=F(e)[t].apply(e,n);return We(),et(),r}var Ct=u(`__proto__,__v_isRef,__isVue`),wt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(D));function Tt(e){D(e)||(e=String(e));let t=F(this);return ut(t,`has`,e),t.hasOwnProperty(e)}var Et=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Wt:Ut:i?Ht:Vt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=gt[t]))return e;if(t===`hasOwnProperty`)return Tt}let o=Reflect.get(e,t,I(e)?e:n);if((D(t)?wt.has(t):Ct(t))||(r||ut(e,`get`,t),i))return o;if(I(o)){let e=a&&re(t)?o:o.value;return r&&O(e)?Jt(e):e}return O(o)?r?Jt(o):Kt(o):o}},Dt=class extends Et{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&re(t);if(!this._isShallow){let e=Zt(i);if(!Qt(n)&&!Zt(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:b(e,t),s=Reflect.set(e,t,n,I(e)?e:r);return e===F(r)&&s&&(o?ue(n,i)&&dt(e,`set`,t,n,i):dt(e,`add`,t,n)),s}deleteProperty(e,t){let n=b(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&dt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!D(t)||!wt.has(t))&&ut(e,`has`,t),n}ownKeys(e){return ut(e,`iterate`,x(e)?`length`:st),Reflect.ownKeys(e)}},Ot=class extends Et{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},kt=new Dt,At=new Ot,jt=new Dt(!0),Mt=e=>e,Nt=e=>Reflect.getPrototypeOf(e);function Pt(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Mt:t?nn:tn;return!t&&ut(a,`iterate`,c?ct:st),_(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Ft(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function It(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(ue(n,a)&&ut(i,`get`,n),ut(i,`get`,a));let{has:o}=Nt(i),s=t?Mt:e?nn:tn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ut(F(t),`iterate`,st),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(ue(t,i)&&ut(r,`has`,t),ut(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?Mt:e?nn:tn;return!e&&ut(o,`iterate`,st),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:Ft(`add`),set:Ft(`set`),delete:Ft(`delete`),clear:Ft(`clear`)}:{add(e){let n=F(this),r=Nt(n),i=F(e),a=!t&&!Qt(e)&&!Zt(e)?i:e;return r.has.call(n,a)||ue(e,a)&&r.has.call(n,e)||ue(i,a)&&r.has.call(n,i)||(n.add(a),dt(n,`add`,a,a)),this},set(e,n){!t&&!Qt(n)&&!Zt(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Nt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ue(n,s)&&dt(r,`set`,e,n,s):dt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Nt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&dt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&dt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Pt(r,e,t)}),n}function Lt(e,t){let n=It(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var Rt={get:Lt(!1,!1)},zt={get:Lt(!1,!0)},Bt={get:Lt(!0,!1)},Vt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap;function Gt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Kt(e){return Zt(e)?e:Yt(e,!1,kt,Rt,Vt)}function qt(e){return Yt(e,!1,jt,zt,Ht)}function Jt(e){return Yt(e,!0,At,Bt,Ut)}function Yt(e,t,n,r,i){if(!O(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Gt(k(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Xt(e){return Zt(e)?Xt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Qt(e){return!!(e&&e.__v_isShallow)}function $t(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function en(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&fe(e,`__v_skip`,!0),e}var tn=e=>O(e)?Kt(e):e,nn=e=>O(e)?Jt(e):e;function I(e){return e?e.__v_isRef===!0:!1}function L(e){return an(e,!1)}function rn(e){return an(e,!0)}function an(e,t){return I(e)?e:new on(e,t)}var on=class{constructor(e,t){this.dep=new it,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:tn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Qt(e)||Zt(e);e=n?e:F(e),ue(e,t)&&(this._rawValue=e,this._value=n?e:tn(e),this.dep.trigger())}};function sn(e){return I(e)?e.value:e}function cn(e){return T(e)?e():sn(e)}var ln={get:(e,t,n)=>t===`__v_raw`?e:sn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function un(e){return Xt(e)?e:new Proxy(e,ln)}var dn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new it,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function fn(e){return new dn(e)}function pn(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=_n(e,n);return t}var mn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=D(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!x(e)||D(this._key)||!re(this._key))do r=!$t(i)||Qt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=sn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ft(this._raw,this._key)}},hn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function gn(e,t,n){return I(e)?e:T(e)?new hn(e):O(e)&&arguments.length>1?_n(e,t,n):L(e)}function _n(e,t,n){return new mn(e,t,n)}var vn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new it(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return He(this,!0),!0}get value(){let e=this.dep.track();return Je(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function yn(e,t,n=!1){let r,i;return T(e)?r=e:(r=e.get,i=e.set),new vn(r,i,n)}var bn={},xn=new WeakMap,Sn=void 0;function Cn(e,t=!1,n=Sn){if(n){let t=xn.get(n);t||xn.set(n,t=[]),t.push(e)}}function wn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Qt(e)||i===!1||i===0?Tn(e,1):Tn(e),u,f,m,h,g=!1,_=!1;if(I(e)?(f=()=>e.value,g=Qt(e)):Xt(e)?(f=()=>l(e),g=!0):x(e)?(_=!0,g=e.some(e=>Xt(e)||Qt(e)),f=()=>e.map(e=>{if(I(e))return e.value;if(Xt(e))return l(e);if(T(e))return c?c(e,2):e()})):f=T(e)?t?c?()=>c(e,2):e:()=>{if(m){$e();try{m()}finally{et()}}let t=Sn;Sn=u;try{return c?c(e,3,[h]):e(h)}finally{Sn=t}}:p,t&&i){let e=f,t=i===!0?1/0:i;f=()=>Tn(e(),t)}let y=Fe(),b=()=>{u.stop(),y&&y.active&&v(y.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return b(),n}}let S=_?Array(e.length).fill(bn):bn,C=e=>{if(u.flags&1&&(u.dirty||e)){if(t){let n=u.run();if(e||i||g||(_?n.some((e,t)=>ue(e,S[t])):ue(n,S))){m&&m();let e=Sn;Sn=u;try{let e=[n,S===bn?void 0:_&&S[0]===bn?[]:S,h];S=n,c?c(t,3,e):t(...e)}finally{Sn=e}}}else u.run()}};return s&&s(C),u=new Re(f),u.scheduler=o?()=>o(C,!1):C,h=e=>Cn(e,!1,u),m=u.onStop=()=>{let e=xn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();xn.delete(u)}},t?r?C(!0):S=u.run():o?o(C.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Tn(e,t=1/0,n){if(t<=0||!O(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))Tn(e.value,t,n);else if(x(e))for(let r=0;r<e.length;r++)Tn(e[r],t,n);else if(C(e)||S(e))e.forEach(e=>{Tn(e,t,n)});else if(A(e)){for(let r in e)Tn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tn(e[r],t,n)}return e}function En(e,t,n,r){try{return r?e(...r):e()}catch(e){On(e,t,n)}}function Dn(e,t,n,r){if(T(e)){let i=En(e,t,n,r);return i&&ee(i)&&i.catch(e=>{On(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Dn(e[a],t,n,r));return i}}function On(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||d;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){$e(),En(a,null,10,[e,i,o]),et();return}}kn(e,n,i,r,o)}function kn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var An=[],jn=-1,Mn=[],Nn=null,Pn=0,Fn=Promise.resolve(),In=null;function Ln(e){let t=In||Fn;return e?t.then(this?e.bind(this):e):t}function Rn(e){let t=jn+1,n=An.length;for(;t<n;){let r=t+n>>>1,i=An[r],a=Wn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function zn(e){if(!(e.flags&1)){let t=Wn(e),n=An[An.length-1];!n||!(e.flags&2)&&t>=Wn(n)?An.push(e):An.splice(Rn(t),0,e),e.flags|=1,Bn()}}function Bn(){In||=Fn.then(Gn)}function Vn(e){if(!x(e))Nn&&e.id===-1?Nn.splice(Pn+1,0,e):e.flags&1||(Mn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Mn.push(e[t]);Bn()}function Hn(e,t,n=jn+1){for(;n<An.length;n++){let t=An[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;An.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Un(e){if(Mn.length){let e=[...new Set(Mn)].sort((e,t)=>Wn(e)-Wn(t));if(Mn.length=0,Nn){for(let t=0;t<e.length;t++)Nn.push(e[t]);return}for(Nn=e,Pn=0;Pn<Nn.length;Pn++){let e=Nn[Pn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Nn=null,Pn=0}}var Wn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gn(e){try{for(jn=0;jn<An.length;jn++){let e=An[jn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),En(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;jn<An.length;jn++){let e=An[jn];e&&(e.flags&=-2)}jn=-1,An.length=0,Un(e),In=null,(An.length||Mn.length)&&Gn(e)}}var Kn=null,qn=null;function Jn(e){let t=Kn;return Kn=e,qn=e&&e.type.__scopeId||null,t}function Yn(e,t=Kn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ja(-1);let i=Jn(t),a=Da.length,o;try{o=e(...n)}finally{for(let e=Da.length;e>a;e--)ka();Jn(i),r._d&&ja(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Xn(e,t){if(Kn===null)return e;let n=fo(Kn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=d]=t[e];i&&(T(i)&&(i={mounted:i,updated:i}),i.deep&&Tn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Zn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&($e(),Dn(c,n,8,[e.el,s,e,t]),et())}}function Qn(e,t){if(Za){let n=Za.provides,r=Za.parent&&Za.parent.provides;r===n&&(n=Za.provides=Object.create(r)),n[e]=t}}function $n(e,t,n=!1){let r=Qa();if(r||Pi){let i=Pi?Pi._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&T(t)?t.call(r&&r.proxy):t}}var er=Symbol.for(`v-scx`),tr=()=>$n(er);function nr(e,t,n){return rr(e,t,n)}function rr(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(io){if(a===`sync`){let e=tr();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=Za;s.call=(e,t,n)=>Dn(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{da(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():zn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=wn(e,t,s);return io&&(l?l.push(m):c&&m()),m}function ir(e,t,n){let r=this.proxy,i=E(e)?e.includes(`.`)?ar(r,e):()=>r[e]:e.bind(r,r),a;T(t)?a=t:(a=t.handler,n=t);let o=to(this),s=rr(i,a.bind(r),n);return o(),s}function ar(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var or=new WeakMap,sr=Symbol(`_vte`),cr=e=>e.__isTeleport,lr=e=>e&&(e.disabled||e.disabled===``),ur=e=>e&&(e.defer||e.defer===``),dr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,fr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,pr=(e,t)=>{let n=e&&e.to;return E(n)?t?t(n):null:n},mr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=lr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=lr(e.props),r=e.target=pr(e.props,m),a=yr(r,e,h,p);r&&(o!==`svg`&&dr(r)?o=`svg`:o!==`mathml`&&fr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),vr(e,!1)))},S=e=>{let t=()=>{if(or.get(e)===t){if(or.delete(e),lr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),vr(e,!0)}x(e)}};or.set(e,t),da(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),ur(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),vr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=or.get(e);if(u){u.flags|=8,or.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=lr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||dr(p)?o=`svg`:(o===`mathml`||fr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),_a(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=pr(t.props,m);e&&(t.target=e,hr(t,e,null,l,0))}else g&&hr(t,p,h,l,1);vr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=lr(f),m=a||!p,h=or.get(e);if(h&&(h.flags|=8,or.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:hr,hydrate:gr};function hr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!or.has(e)&&(!d||lr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function gr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=pr(t.props,c),h=lr(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||yr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||yr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),vr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var _r=mr;function vr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function yr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[sr]=o,e&&(r(a,e,i),r(o,e,i)),o}var br=Symbol(`_leaveCb`);function xr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ta){t=n;break}}return t}function Sr(e){if(!Ir(e))return cr(e.type)&&e.children?xr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&T(n.default))return n.default()}}function Cr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Cr(cr(n.type)&&Sr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wr(e,t){return T(e)?_({name:e.name},t,{setup:e}):e}function Tr(){let e=Qa();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function Er(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Dr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Or=new WeakMap;function kr(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>kr(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Nr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&kr(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?fo(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=F(f),h=f===d?m:e=>!Dr(u,e)&&b(p,e),g=(e,t)=>!(t&&Dr(u,t));if(l!=null&&l!==c){if(Ar(t),E(l))u[l]=null,h(l)&&(f[l]=null);else if(I(l)){let e=t;g(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(T(c))En(c,s,12,[o,u]);else{let t=E(c),r=I(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r&&(g(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Or.delete(e)};t.id=-1,Or.set(e,t),da(t,n)}else Ar(e),s()}}}function Ar(e){let t=Or.get(e);t&&(t.flags|=8,Or.delete(e))}var jr=e=>e.nodeType===8;he().requestIdleCallback,he().cancelIdleCallback;function Mr(e,t){if(jr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(jr(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Nr=e=>!!e.type.__asyncLoader;function Pr(e){T(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return wr({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Mr(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Za;if(Er(e),u)return()=>Fr(u,e);let t=t=>{l=null,On(t,e,13,!r)};if(s&&e.suspense||io)return p().then(t=>()=>Fr(t,e)).catch(e=>(t(e),()=>r?U(r,{error:e}):null));let a=L(!1),c=L(),d=L(!!i),f,m;return Jr(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ir(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Fr(u,e);if(c.value&&r)return U(r,{error:c.value});if(n&&!d.value)return Fr(n,e)}}})}function Fr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=U(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ir=e=>e.type.__isKeepAlive;function Lr(e,t){zr(e,`a`,t)}function Rr(e,t){zr(e,`da`,t)}function zr(e,t,n=Za){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Vr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ir(e.parent.vnode)&&Br(r,t,n,e),e=e.parent}}function Br(e,t,n,r){let i=Vr(t,e,r,!0);Jr(()=>{v(r[t],i)},n)}function Vr(e,t,n=Za,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{$e();let i=to(n),a=Dn(t,n,e,r);return i(),et(),a};return r?i.unshift(a):i.push(a),a}}var Hr=e=>(t,n=Za)=>{(!io||e===`sp`)&&Vr(e,(...e)=>t(...e),n)},Ur=Hr(`bm`),Wr=Hr(`m`),Gr=Hr(`bu`),Kr=Hr(`u`),qr=Hr(`bum`),Jr=Hr(`um`),Yr=Hr(`sp`),Xr=Hr(`rtg`),Zr=Hr(`rtc`);function Qr(e,t=Za){Vr(`ec`,e,t)}var $r=`components`;function ei(e,t){return ri($r,e,!0,t)||e}var ti=Symbol.for(`v-ndc`);function ni(e){return E(e)?ri($r,e,!1)||e:e||ti}function ri(e,t,n=!0,r=!1){let i=Kn||Za;if(i){let n=i.type;if(e===$r){let e=po(n,!1);if(e&&(e===t||e===M(t)||e===ce(M(t))))return n}let a=ii(i[e]||n[e],t)||ii(i.appContext[e],t);return!a&&r?n:a}}function ii(e,t){return e&&(e[t]||e[M(t)]||e[ce(M(t))])}function R(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||E(e)){let n=o&&Xt(e),r=!1,s=!1;n&&(r=!Qt(e),s=Zt(e),e=mt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?nn(tn(e[n])):tn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(O(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function ai(e,t,n,r,i,a){if(n??={},Kn.ce||Kn.parent&&Nr(Kn.parent)&&Kn.parent.ce){let e=a!=null&&n.key==null?_({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),B(),Na(z,null,[U(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=Da.length;B();let c;try{let i=o&&oi(o(n)),s=n.key||a||i&&i.key;c=Na(z,{key:(s&&!D(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Da.length;e>s;e--)ka();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function oi(e){return e.some(e=>!Pa(e)||!(e.type===Ta||e.type===z&&!oi(e.children)))?e:null}var si=e=>e?ro(e)?fo(e):si(e.parent):null,ci=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>si(e.parent),$root:e=>si(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xi(e),$forceUpdate:e=>e.f||=()=>{zn(e.update)},$nextTick:e=>e.n||=Ln.bind(e.proxy),$watch:e=>ir.bind(e)}),li=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),ui={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(li(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else gi&&(o[t]=0)}let l=ci[t],u,f;if(l)return t===`$attrs`&&ut(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return li(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||li(t,s)||b(a,s)||b(r,s)||b(ci,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function di(){return pi(`useSlots`).slots}function fi(){return pi(`useAttrs`).attrs}function pi(e){let t=Qa();return t.setupContext||=uo(t)}function mi(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function hi(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}var gi=!0;function _i(e){let t=xi(e),n=e.proxy,r=e.ctx;gi=!1,t.beforeCreate&&yi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:E,errorCaptured:D,serverPrefetch:ee,expose:te,inheritAttrs:ne,components:k,directives:A,filters:re}=t;if(l&&vi(l,r,null),o)for(let e in o){let t=o[e];T(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);O(t)&&(e.data=Kt(t))}if(gi=!0,a)for(let e in a){let t=a[e],i=G({get:T(t)?t.bind(n,n):T(t.get)?t.get.bind(n,n):p,set:!T(t)&&T(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)bi(s[e],r,n,e);if(c){let e=T(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Qn(t,e[t])})}u&&yi(u,e,`c`);function j(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Ur,d),j(Wr,f),j(Gr,m),j(Kr,h),j(Lr,g),j(Rr,_),j(Qr,D),j(Zr,w),j(Xr,E),j(qr,y),j(Jr,S),j(Yr,ee),x(te)){if(te.length){let t=e.exposed||={};te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}C&&e.render===p&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),k&&(e.components=k),A&&(e.directives=A),ee&&Er(e)}function vi(e,t,n=p){x(e)&&(e=Ei(e));for(let n in e){let r=e[n],i;i=O(r)?`default`in r?$n(r.from||n,r.default,!0):$n(r.from||n):$n(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function yi(e,t,n){Dn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function bi(e,t,n,r){let i=r.includes(`.`)?ar(n,r):()=>n[r];if(E(e)){let n=t[e];T(n)&&nr(i,n)}else if(T(e))nr(i,e.bind(n));else if(O(e)){if(x(e))e.forEach(e=>bi(e,t,n,r));else{let r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)&&nr(i,r,e)}}}function xi(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Si(c,e,o,!0)),Si(c,t,o)),O(t)&&a.set(t,c),c}function Si(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Si(e,a,n,!0),i&&i.forEach(t=>Si(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ci[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ci={data:wi,props:ki,emits:ki,methods:Oi,computed:Oi,beforeCreate:Di,created:Di,beforeMount:Di,mounted:Di,beforeUpdate:Di,updated:Di,beforeDestroy:Di,beforeUnmount:Di,destroyed:Di,unmounted:Di,activated:Di,deactivated:Di,errorCaptured:Di,serverPrefetch:Di,components:Oi,directives:Oi,watch:Ai,provide:wi,inject:Ti};function wi(e,t){return t?e?function(){return _(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function Ti(e,t){return Oi(Ei(e),Ei(t))}function Ei(e){if(x(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Di(e,t){return e?[...new Set([].concat(e,t))]:t}function Oi(e,t){return e?_(Object.create(null),e,t):t}function ki(e,t){return e?x(e)&&x(t)?[...new Set([...e,...t])]:_(Object.create(null),mi(e),mi(t??{})):t}function Ai(e,t){if(!e)return t;if(!t)return e;let n=_(Object.create(null),e);for(let r in t)n[r]=Di(e[r],t[r]);return n}function ji(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Mi=0;function Ni(e,t){return function(n,r=null){T(n)||(n=_({},n)),r!=null&&!O(r)&&(r=null);let i=ji(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Mi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_o,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&T(e.install)?(a.add(e),e.install(c,...t)):T(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||U(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,fo(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Dn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Pi;Pi=c;try{return e()}finally{Pi=t}}};return c}}var Pi=null,Fi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${M(t)}Modifiers`]||e[`${se(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&Fi(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>E(e)?e.trim():e)),o.number&&(i=i.map(pe)));let s,c=r[s=le(t)]||r[s=le(M(t))];!c&&a&&(c=r[s=le(se(t))]),c&&Dn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Dn(l,e,6,i)}}var Li=new WeakMap;function Ri(e,t,n=!1){let r=n?Li:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!T(e)){let r=e=>{let n=Ri(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(O(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),O(e)&&r.set(e,o),o)}function zi(e,t){return!e||!h(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,se(t))||b(e,t))}function Bi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=Jn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ua(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=Ua(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Vi(s)}}catch(t){Da.length=0,On(t,e,1),v=U(Ta)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=Hi(y,a)),b=Ba(b,y,!1,!0))}return n.dirs&&(b=Ba(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Cr(cr(b.type)&&Sr(b)||b,n.transition),v=b,Jn(_),v}var Vi=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},Hi=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ui(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Wi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Gi(o,r,n)&&!zi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Wi(r,o,l):!!o;return!1}function Wi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Gi(t,e,a)&&!zi(n,a))return!0}return!1}function Gi(e,t,n){let r=e[n],i=t[n];return n===`style`&&O(r)&&O(i)?!De(r,i):r!==i}function Ki({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var qi={},Ji=()=>Object.create(qi),Yi=e=>Object.getPrototypeOf(e)===qi;function Xi(e,t,n,r=!1){let i={},a=Ji();e.propsDefaults=Object.create(null),Qi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:qt(i):e.type.props?i:a,e.attrs=a}function Zi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(zi(e.emitsOptions,o))continue;let u=t[o];if(c){if(b(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=M(o);i[t]=$i(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Qi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!b(t,a)&&((r=se(a))===a||!b(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=$i(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!b(t,e))&&(delete a[e],l=!0)}l&&dt(e.attrs,`set`,``)}function Qi(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(j(c))continue;let l=t[c],u;i&&b(i,u=M(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:zi(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=F(n),r=s||d;for(let o=0;o<a.length;o++){let s=a[o];n[s]=$i(i,t,s,r[s],e,!b(r,s))}}return o}function $i(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=b(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&T(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=to(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===se(n))&&(r=!0))}return r}var ea=new WeakMap;function ta(e,t,n=!1){let r=n?ea:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!T(e)){let r=e=>{c=!0;let[n,r]=ta(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return O(e)&&r.set(e,f),f;if(x(a))for(let e=0;e<a.length;e++){let t=M(a[e]);na(t)&&(o[t]=d)}else if(a)for(let e in a){let t=M(e);if(na(t)){let n=a[e],r=o[t]=x(n)||T(n)?{type:n}:_({},n),i=r.type,c=!1,l=!0;if(x(i))for(let e=0;e<i.length;++e){let t=i[e],n=T(t)&&t.name;if(n===`Boolean`){c=!0;break}n===`String`&&(l=!1)}else c=T(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||b(r,`default`))&&s.push(t)}}let l=[o,s];return O(e)&&r.set(e,l),l}function na(e){return e[0]!==`$`&&!j(e)}var ra=e=>e===`_`||e===`_ctx`||e===`$stable`,ia=e=>x(e)?e.map(Ua):[Ua(e)],aa=(e,t,n)=>{if(t._n)return t;let r=Yn((...e)=>ia(t(...e)),n);return r._c=!1,r},oa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ra(n))continue;let i=e[n];if(T(i))t[n]=aa(n,i,r);else if(i!=null){let e=ia(i);t[n]=()=>e}}},sa=(e,t)=>{let n=ia(t);e.slots.default=()=>n},ca=(e,t,n)=>{for(let r in t)(n||!ra(r))&&(e[r]=t[r])},la=(e,t,n)=>{let r=e.slots=Ji();if(e.vnode.shapeFlag&32){let e=t._;e?(ca(r,t,n),n&&fe(r,`_`,e,!0)):oa(t,r)}else t&&sa(e,t)},ua=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:ca(i,t,n):(a=!t.$stable,oa(t,i)),o=t}else t&&(sa(e,t),o={default:1});if(a)for(let e in i)!ra(e)&&o[e]==null&&delete i[e]},da=Ca;function fa(e){return pa(e)}function pa(e,t){let n=he();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Fa(e,t)&&(r=ge(e),le(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case wa:y(e,t,n,r);break;case Ta:b(e,t,n,r);break;case Ea:e??x(t,n,r,o);break;case z:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?kr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&kr(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,ma(e,c),l,d),_&&Zn(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!j(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&qa(p,i,e)}_&&Zn(e,null,i,`beforeMount`);let v=ga(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&da(()=>{try{p&&qa(p,i,e),v&&g.enter(f),_&&Zn(e,null,i,`mounted`)}finally{}},s)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Sa(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Wa(e[l]):Ua(e[l]);v(null,c,t,n,r,i,a,o,s)}},O=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&ha(n,!1),(g=h.onVnodeBeforeUpdate)&&qa(g,n,t,e),p&&Zn(t,e,n,`beforeUpdate`),n&&ha(n,!0),f&&(!e.dynamicChildren||e.dynamicChildren.length!==f.length)&&(l=0,s=!1,f=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?ee(e.dynamicChildren,f,c,n,r,ma(t,i),o):s||M(e,t,c,null,n,r,ma(t,i),o,!1),l>0){if(l&16)te(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=m[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&f==null&&te(c,m,h,n,i);((g=h.onVnodeUpdated)||p)&&da(()=>{g&&qa(g,n,t,e),p&&Zn(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===z||!Fa(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},te=(e,t,n,r,i)=>{if(t!==n){if(t!==d)for(let o in t)!j(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(j(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ne=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ee(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&_a(e,t,!0)):M(e,t,n,f,a,o,c,l,u)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):re(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=Xa(e,r,i);if(Ir(e)&&(s.ctx.renderer=ye),ao(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=U(Ta);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},re=(e,t,n)=>{let r=t.component=e.component;if(Ui(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ya(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{da(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;ha(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&de(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&qa(d,s,t,c),ha(e,!0);let f=Bi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&Ki(e,f.el),r&&da(r,i),(d=t.props&&t.props.onVnodeUpdated)&&da(()=>qa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Nr(t);if(ha(e,!1),l&&de(l),!m&&(o=c&&c.onVnodeBeforeMount)&&qa(o,d,t),ha(e,!0),s&&xe){let t=()=>{e.subTree=Bi(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Bi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&da(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;da(()=>qa(o,d,e),i)}(t.shapeFlag&256||d&&Nr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&da(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Re(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>zn(u),ha(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Zi(e,t.props,r,n),ua(e,t.children,n),$e(),Hn(e),et()},M=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){se(l,f,n,r,i,a,o,s,c);return}if(p&256){oe(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&me(l,i,a),f!==l&&u(n,f)):d&16?m&16?se(l,f,n,r,i,a,o,s,c):me(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},oe=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p=0;for(;p<d;p++){let r=t[p]=c?Wa(t[p]):Ua(t[p]);v(e[p],r,n,null,i,a,o,s,c)}l>u?me(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},se=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?Wa(t[l]):Ua(t[l]);if(Fa(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?Wa(t[p]):Ua(t[p]);if(Fa(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)v(null,t[l]=c?Wa(t[l]):Ua(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=d;)le(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Wa(t[l]):Ua(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=d;l++){let r=e[l];if(y>=b){le(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Fa(r,t[_])){u=_;break}u===void 0?le(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?va(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||xa(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?ce(d,n,p,2):_--)}}},ce=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ce(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,ye);return}if(c===z){r(s,t,n);for(let e=0;e<u.length;e++)ce(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Ea){S(e,t,n);return}if(a!==2&&d&1&&l){if(a===0)l.persisted&&!s[br]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),da(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[br];s._isLeaving&&s[br](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},le=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&($e(),kr(s,null,n,e,!0),et()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Nr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&qa(_,t,e),u&6)pe(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Zn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?me(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&me(c,t,n),r&&ue(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&da(()=>{_&&qa(_,t,e),h&&Zn(e,null,t,`unmounted`),v&&(e.el=null)},n)},ue=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===z){fe(n,r);return}if(t===Ea){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},fe=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},pe=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ba(c),ba(l),r&&de(r),i.stop(),a&&(a.flags|=8,le(o,e,t,n)),s&&da(s,t),da(()=>{e.isUnmounted=!0},t)},me=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)le(e[o],t,n,r,i)},ge=e=>{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[sr];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(le(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,Hn(r),Un(),!1)},ye={p:v,um:le,m:ce,r:ue,mt:A,mc:D,pc:M,pbc:ee,n:ge,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:Ni(ve,be)}}function ma({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ha({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ga(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _a(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Wa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&_a(t,a)),a.type===wa&&(a.patchFlag===-1&&(a=i[e]=Wa(a)),a.el=t.el),a.type===Ta&&!a.el&&(a.el=t.el)}}function va(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ya(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ya(t)}function ba(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function xa(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?xa(t.subTree):null}var Sa=e=>e.__isSuspense;function Ca(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):Vn(e)}var z=Symbol.for(`v-fgt`),wa=Symbol.for(`v-txt`),Ta=Symbol.for(`v-cmt`),Ea=Symbol.for(`v-stc`),Da=[],Oa=null;function B(e=!1){Da.push(Oa=e?null:[])}function ka(){Da.pop(),Oa=Da[Da.length-1]||null}var Aa=1;function ja(e,t=!1){Aa+=e,e<0&&Oa&&t&&(Oa.hasOnce=!0)}function Ma(e){return e.dynamicChildren=Aa>0?Oa||f:null,ka(),Aa>0&&Oa&&Oa.push(e),e}function V(e,t,n,r,i,a){return Ma(H(e,t,n,r,i,a,!0))}function Na(e,t,n,r,i){return Ma(U(e,t,n,r,i,!0))}function Pa(e){return e?e.__v_isVNode===!0:!1}function Fa(e,t){return e.type===t.type&&e.key===t.key}var Ia=({key:e})=>e??null,La=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:E(e)||I(e)||T(e)?{i:Kn,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ia(t),ref:t&&La(t),scopeId:qn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Kn};return s?(Ga(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=E(n)?8:16),Aa>0&&!o&&Oa&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Oa.push(c),c}var U=Ra;function Ra(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ti)&&(e=Ta),Pa(e)){let r=Ba(e,t,!0);return n&&Ga(r,n),Aa>0&&!a&&Oa&&(r.shapeFlag&6?Oa[Oa.indexOf(e)]=r:Oa.push(r)),r.patchFlag=-2,r}if(mo(e)&&(e=e.__vccOpts),t){t=za(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=xe(e)),O(n)&&($t(n)&&!x(n)&&(n=_({},n)),t.style=ge(n))}let o=E(e)?1:Sa(e)?128:cr(e)?64:O(e)?4:T(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function za(e){return e?$t(e)||Yi(e)?_({},e):e:null}function Ba(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ia(l),ref:t&&t.ref?n&&a?x(a)?a.concat(La(t)):[a,La(t)]:La(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ba(e.ssContent),ssFallback:e.ssFallback&&Ba(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Cr(u,c.clone(u)),u}function Va(e=` `,t=0){return U(wa,null,e,t)}function Ha(e,t){let n=U(Ea,null,e);return n.staticCount=t,n}function W(e=``,t=!1){return t?(B(),Na(Ta,null,e)):U(Ta,null,e)}function Ua(e){return e==null||typeof e==`boolean`?U(Ta):x(e)?U(z,null,e.slice()):Pa(e)?Wa(e):U(wa,null,String(e))}function Wa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ba(e)}function Ga(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ga(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Yi(t)?t._ctx=Kn:r===3&&Kn&&(Kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(T(t)){if(r&65){Ga(e,{default:t});return}t={default:t,_ctx:Kn},n=32}else t=String(t),r&64?(n=16,t=[Va(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ka(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=xe([t.class,r.class]));else if(e===`style`)t.style=ge([t.style,r.style]);else if(h(e)){let n=t[e],i=r[e];i&&n!==i&&!(x(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!g(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function qa(e,t,n,r=null){Dn(e,t,7,[n,r])}var Ja=ji(),Ya=0;function Xa(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Ja,a={uid:Ya++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ta(r,i),emitsOptions:Ri(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Ii.bind(null,a),e.ce&&e.ce(a),a}var Za=null,Qa=()=>Za||Kn,$a,eo;{let e=he(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};$a=t(`__VUE_INSTANCE_SETTERS__`,e=>Za=e),eo=t(`__VUE_SSR_SETTERS__`,e=>io=e)}var to=e=>{let t=Za;return $a(e),e.scope.on(),()=>{e.scope.off(),$a(t)}},no=()=>{Za&&Za.scope.off(),$a(null)};function ro(e){return e.vnode.shapeFlag&4}var io=!1;function ao(e,t=!1,n=!1){t&&eo(t);let{props:r,children:i}=e.vnode,a=ro(e);Xi(e,r,a,t),la(e,i,n||t);let o=a?oo(e,t):void 0;return t&&eo(!1),o}function oo(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ui);let{setup:r}=n;if(r){$e();let n=e.setupContext=r.length>1?uo(e):null,i=to(e),a=En(r,e,0,[e.props,n]),o=ee(a);if(et(),i(),(o||e.sp)&&!Nr(e)&&Er(e),o){if(a.then(no,no),t)return a.then(n=>{eo(!0);try{so(e,n,t)}finally{eo(!1)}}).catch(t=>{On(t,e,0)});e.asyncDep=a}else so(e,a,t)}else co(e,t)}function so(e,t,n){T(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:O(t)&&(e.setupState=un(t)),co(e,n)}function co(e,t,n){let r=e.type;e.render||=r.render||p;{let t=to(e);$e();try{_i(e)}finally{et(),t()}}}var lo={get(e,t){return ut(e,`get`,``),e[t]}};function uo(e){return{attrs:new Proxy(e.attrs,lo),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function fo(e){return e.exposed?e.exposeProxy||=new Proxy(un(en(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ci)return ci[n](e)},has(e,t){return t in e||t in ci}}):e.proxy}function po(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function mo(e){return T(e)&&`__vccOpts`in e}var G=(e,t)=>yn(e,t,io);function ho(e,t,n){try{ja(-1);let r=arguments.length;return r===2?O(t)&&!x(t)?Pa(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Pa(n)&&(n=[n]),U(e,t,n))}finally{ja(1)}}function go(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(ue(n[e],t[e]))return!1;return Aa>0&&Oa&&Oa.push(e),!0}var _o=`3.5.42`,vo=void 0,yo=typeof window<`u`&&window.trustedTypes;if(yo)try{vo=yo.createPolicy(`vue`,{createHTML:e=>e})}catch{}var bo=vo?e=>vo.createHTML(e):e=>e,xo=`http://www.w3.org/2000/svg`,So=`http://www.w3.org/1998/Math/MathML`,Co=typeof document<`u`?document:null,wo=Co&&Co.createElement(`template`),To={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Co.createElementNS(xo,e):t===`mathml`?Co.createElementNS(So,e):n?Co.createElement(e,{is:n}):Co.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{wo.innerHTML=bo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=wo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Eo=Symbol(`_vtc`);function Do(e,t,n){let r=e[Eo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Oo=Symbol(`_vod`),ko=Symbol(`_vsh`),Ao={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Oo]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):jo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),jo(e,!0),r.enter(e)):r.leave(e,()=>{jo(e,!1)}):jo(e,t))},beforeUnmount(e,{value:t}){jo(e,t)}};function jo(e,t){e.style.display=t?e[Oo]:`none`,e[ko]=!t}var Mo=Symbol(``),No=/(?:^|;)\s*display\s*:/;function Po(e,t,n){let r=e.style,i=E(n),a=!1;if(n&&!i){if(t){if(E(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Io(r,t,``)}else for(let e in t)n[e]??Io(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Io(r,i,``):Bo(e,i,!E(t)&&t?t[i]:void 0,o)||Io(r,i,o)}}else if(i){if(t!==n){let e=r[Mo];e&&(n+=`;`+e),r.cssText=n,a=No.test(n)}}else t&&e.removeAttribute(`style`);Oo in e&&(e[Oo]=a?r.display:``,e[ko]&&(r.display=`none`))}var Fo=/\s*!important$/;function Io(e,t,n){if(x(n))n.forEach(n=>Io(e,t,n));else if(n??=``,t.startsWith(`--`))Fo.test(n)?e.setProperty(t,n.replace(Fo,``),`important`):e.setProperty(t,n);else{let r=zo(e,t);Fo.test(n)?e.setProperty(se(r),n.replace(Fo,``),`important`):e[r]=n}}var Lo=[`Webkit`,`Moz`,`ms`],Ro={};function zo(e,t){let n=Ro[t];if(n)return n;let r=M(t);if(r!==`filter`&&r in e)return Ro[t]=r;r=ce(r);for(let n=0;n<Lo.length;n++){let i=Lo[n]+r;if(i in e)return Ro[t]=i}return t}function Bo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&E(r)&&n===r}var Vo=`http://www.w3.org/1999/xlink`;function Ho(e,t,n,r,i,a=Ce(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,n):n==null||a&&!we(n)?e.removeAttribute(t):e.setAttribute(t,a?``:D(n)?String(n):n)}function Uo(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?bo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=we(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Wo(e,t,n,r){e.addEventListener(t,n,r)}function Go(e,t,n,r){e.removeEventListener(t,n,r)}var Ko=Symbol(`_vei`);function qo(e,t,n,r,i=null){let a=e[Ko]||(e[Ko]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Xo(t);r?Wo(e,n,a[t]=es(r,i),s):o&&(Go(e,n,o,s),a[t]=void 0)}}var Jo=/(Once|Passive|Capture)$/,Yo=/^on:?(?:Once|Passive|Capture)$/;function Xo(e){let t,n;for(;(n=e.match(Jo))&&!Yo.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):se(e.slice(2)),t]}var Zo=0,Qo=Promise.resolve(),$o=()=>Zo||=(Qo.then(()=>Zo=0),Date.now());function es(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(x(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Dn(e,t,5,a)}}else Dn(r,t,5,[e])};return n.value=e,n.attached=$o(),n}var ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ns=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Do(e,r,o):t===`style`?Po(e,n,r):h(t)?g(t)||qo(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):rs(e,t,r,o))?(Uo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ho(e,t,r,o,a,t!==`value`)):e._isVueCE&&(is(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!E(r)))?Uo(e,M(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ho(e,t,r,o))};function rs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ts(t)&&T(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ts(t)&&E(n)?!1:t in e}function is(e,t){let n=e._def.props;if(!n)return!1;let r=M(t);return Array.isArray(n)?n.some(e=>M(e)===r):Object.keys(n).some(e=>M(e)===r)}var as=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>de(t,e):t};function os(e){e.target.composing=!0}function ss(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var cs=Symbol(`_assign`),ls=Symbol(`_initialValue`);function us(e,t,n){return t&&(e=e.trim()),n&&(e=pe(e)),e}var ds={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[ls]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[ls]=e.defaultValue.replace(/\r\n?/g,`
|
|
3
|
-
`))),e[cs]=as(i);let a=r||i.props&&i.props.type===`number`;Wo(e,t?`change`:`input`,t=>{t.target.composing||e[cs](us(e.value,n,a))}),(n||a)&&Wo(e,`change`,()=>{e.value=us(e.value,n,a)}),t||(Wo(e,`compositionstart`,os),Wo(e,`compositionend`,ss),Wo(e,`change`,ss))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[ls];delete e[ls],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[cs](us(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[cs]=as(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},fs={created(e,{value:t},n){e.checked=De(t,n.props.value),e[cs]=as(n),Wo(e,`change`,()=>{e[cs](gs(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[cs]=as(r),t!==n&&(e.checked=De(t,r.props.value))}},ps={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Wo(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(gs(e)):gs(e)),r=e.multiple,i=r?C(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?x(i)?t.slice():t:i];try{e[cs](i)}finally{Ln(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[cs]=as(r)},mounted(e,{value:t}){hs(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[cs]=as(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!ms(t,n[1],n[0]))&&hs(e,t)}};function ms(e,t,n){if(!n||x(e))return De(e,t);if(C(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function hs(e,t){let n=e.multiple,r=x(t);if(!n||r||C(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=gs(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Oe(t,o)>-1}else a.selected=t.has(o)}else if(De(gs(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function gs(e){return`_value`in e?e._value:e.value}var _s=[`ctrl`,`shift`,`alt`,`meta`],vs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>_s.some(n=>e[`${n}Key`]&&!t.includes(n))},ys=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=vs[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},bs=_({patchProp:ns},To),xs;function Ss(){return xs||=fa(bs)}var Cs=((...e)=>{let t=Ss().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ts(e);if(!r)return;let i=t._component;!T(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ws(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ws(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ts(e){return E(e)?document.querySelector(e):e}var Es=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function Ds(e,t={}){let n=await fetch(e,{method:t.body===void 0?`GET`:`POST`,credentials:`same-origin`,cache:`no-store`,signal:t.signal,headers:t.body===void 0?{Accept:`application/json`}:{Accept:`application/json`,"Content-Type":`application/json`,"X-CCDD-CSRF":t.csrfToken??``},...t.body===void 0?{}:{body:JSON.stringify(t.body)}}),r=await n.json().catch(()=>null);if(!n.ok)throw new Es(typeof r==`object`&&r&&`error`in r&&typeof r.error==`string`?r.error:`Unable to process the request. Please try again.`,n.status);if(r===null)throw new Es(`Unable to read the server response.`,n.status);return r}var Os=(e,t)=>`/api/requests/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,ks=e=>e instanceof Error?e.message:`Unable to process the request.`,As={agent:`Agent`,human:`Human`,runtime:`Runtime`};function js(e){return e.blockedByFailure?`Blocked by failure`:e.status===`WAITING_HUMAN`?e.claimedBy?`Reviewer working`:`Awaiting reviewer`:{BLOCKED:`Awaiting dependencies`,QUEUED:`Queued`,RUNNING:`Running`,GREEN:`Passed`,RED:`Criteria not met`,ERROR:`Execution error`}[e.status]}function Ms(e,t,n){let r=Math.max(0,Math.floor(((t?Date.parse(t):n)-Date.parse(e))/1e3));return r<60?`${r}s`:r<3600?`${Math.floor(r/60)}m`:r<86400?`${Math.floor(r/3600)}h ${Math.floor(r%3600/60)}m`:`${Math.floor(r/86400)}d ${Math.floor(r%86400/3600)}h`}function Ns(e){return new Intl.DateTimeFormat(`en-US`,{month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(new Date(e))}var Ps={class:`artifact-browser`},Fs={key:0,class:`muted`},Is={class:`artifact-references`},Ls={key:0,class:`artifact-description`},Rs={class:`artifact-choices`,"aria-label":`Select Artifact`},zs=[`aria-pressed`,`onClick`],Bs={key:1,class:`artifact-message`,role:`status`},Vs={key:2,class:`artifact-message`},Hs={class:`inline-error`,role:`alert`},Us={class:`artifact-description`},Ws={class:`artifact-toolbar`},Gs={class:`artifact-path`},Ks={key:0,class:`file-list`},qs=[`disabled`,`onClick`],Js={"aria-hidden":`true`},Ys={key:1,class:`artifact-message`},Xs={class:`artifact-pagination`},Zs={key:0,class:`code-view`,role:`region`,"aria-label":`Artifact source`,tabindex:`0`},Qs={class:`line-number`,"aria-hidden":`true`},$s={class:`line-content`},ec={key:1,class:`artifact-message`},tc={class:`artifact-pagination`},nc=wr({__name:`ArtifactBrowser`,props:{projectId:{},requestId:{},artifacts:{},preview:{},humanReview:{type:Boolean}},emits:[`review`],setup(e,{emit:t}){let n=e,r=t,i=L(null),a=L(null),o=L(!1),s=L(``),c=L(1),l,u=0,d=G(()=>a.value&&`content`in a.value.result?a.value.result:null),f=G(()=>a.value&&`entries`in a.value.result?a.value.result:null),p=G(()=>{let e=d.value?.content.split(`
|
|
4
|
-
`)??[];return e.at(-1)===``&&e.pop(),e.map(e=>e.replace(/\r$/,``))});async function m(e){if(n.preview===`tools`||(e&&(i.value=e),!i.value))return;l?.abort(),l=new AbortController;let t=++u,r={...i.value};o.value=!0,s.value=``,a.value=null;let d=new URLSearchParams;for(let[e,t]of Object.entries(r))e!==`id`&&t!==void 0&&d.set(e,String(t));try{let e=await Ds(`${Os(n.projectId,n.requestId)}/artifacts/${encodeURIComponent(r.id)}?${d}`,{signal:l.signal});if(t!==u)return;a.value=e,`startLine`in e.result&&(c.value=e.result.startLine)}catch(e){t===u&&(s.value=ks(e))}finally{t===u&&(o.value=!1)}}function h(){if(!i.value)return;let e=i.value.path?.split(`/`).slice(0,-1).join(`/`);m({id:i.value.id,operation:`list`,...e?{path:e}:{}})}function g(){!i.value||!Number.isSafeInteger(c.value)||c.value<1||m({id:i.value.id,operation:`read`,...i.value.path?{path:i.value.path}:{},startLine:c.value})}return nr(()=>`${n.preview}:${n.projectId}:${n.requestId}:${n.artifacts.map(e=>e.id).join(`\0`)}`,()=>{if(n.preview===`tools`){u++,l?.abort(),i.value=null,a.value=null,o.value=!1,s.value=``;return}i.value=n.artifacts[0]?{id:n.artifacts[0].id}:null,m()},{immediate:!0}),Jr(()=>{u++,l?.abort()}),(t,n)=>(B(),V(`div`,Ps,[e.artifacts.length?e.preview===`tools`?(B(),V(z,{key:1},[H(`ul`,Is,[(B(!0),V(z,null,R(e.artifacts,e=>(B(),V(`li`,{key:e.id},[H(`strong`,null,N(e.id),1),H(`span`,null,N(e.kind===`generated`?`Generated data`:e.path),1),H(`small`,null,N(e.type),1)]))),128))]),n[7]||=H(`p`,{class:`artifact-message`},`Inspect Artifacts with the tools provided to the reviewer. These tools can also open animations and images.`,-1),e.humanReview?(B(),V(`button`,{key:0,class:`secondary-button`,onClick:n[0]||=e=>r(`review`)},`Go to review tools`)):W(``,!0)],64)):(B(),V(z,{key:2},[e.artifacts.length?(B(),V(`p`,Ls,`This is a preview of the stored text. Human review tools are available in the Review tab.`)):W(``,!0),H(`div`,Rs,[(B(!0),V(z,null,R(e.artifacts,e=>(B(),V(`button`,{key:e.id,class:`artifact-choice`,"aria-pressed":i.value?.id===e.id,onClick:t=>m({id:e.id})},N(e.path),9,zs))),128))]),o.value?(B(),V(`p`,Bs,`Reading Artifact…`)):s.value?(B(),V(`div`,Vs,[H(`p`,Hs,N(s.value),1),H(`button`,{class:`text-button`,onClick:n[1]||=e=>m()},`Read again`)])):a.value&&i.value?(B(),V(z,{key:3},[H(`p`,Us,N(a.value.artifact.description),1),H(`div`,Ws,[i.value.path?(B(),V(`button`,{key:0,class:`text-button`,onClick:h},`‹ Parent folder`)):W(``,!0),H(`span`,Gs,N(i.value.path??a.value.artifact.path),1),d.value?(B(),V(`form`,{key:1,class:`line-jump`,onSubmit:ys(g,[`prevent`])},[H(`label`,null,[n[8]||=Va(`Start line `,-1),Xn(H(`input`,{"onUpdate:modelValue":n[2]||=e=>c.value=e,type:`number`,min:`1`,step:`1`,required:``,"aria-label":`Artifact start line`},null,512),[[ds,c.value,void 0,{number:!0}]])]),n[9]||=H(`button`,{class:`text-button`,type:`submit`},`Go`,-1)],32)):W(``,!0)]),f.value?(B(),V(z,{key:0},[f.value.entries.length?(B(),V(`div`,Ks,[(B(!0),V(z,null,R(f.value.entries,e=>(B(),V(`button`,{key:e.path,class:`file-entry`,disabled:![`file`,`directory`].includes(e.kind),onClick:t=>m({id:i.value.id,operation:e.kind===`directory`?`list`:`read`,path:e.path})},[H(`span`,Js,N(e.kind===`directory`?`▱`:`·`),1),Va(N(e.name),1),n[10]||=H(`span`,{class:`file-arrow`,"aria-hidden":`true`},`›`,-1)],8,qs))),128))])):(B(),V(`p`,Ys,`This folder is empty.`)),H(`div`,Xs,[H(`span`,null,N((i.value.offset??0)+f.value.entries.length)+` / `+N(f.value.totalEntries)+` entries`,1),i.value.offset?(B(),V(`button`,{key:0,class:`text-button`,onClick:n[3]||=e=>m({...i.value,offset:0})},`Back to start`)):W(``,!0),f.value.nextOffset===null?W(``,!0):(B(),V(`button`,{key:1,class:`text-button`,onClick:n[4]||=e=>m({...i.value,operation:`list`,offset:f.value.nextOffset})},`Next files`))])],64)):d.value?(B(),V(z,{key:1},[p.value.length?(B(),V(`div`,Zs,[(B(!0),V(z,null,R(p.value,(e,t)=>(B(),V(`div`,{key:t,class:`code-line`},[H(`span`,Qs,N(d.value.startLine+t),1),H(`span`,$s,N(e),1)]))),128))])):(B(),V(`p`,ec,N(d.value.totalLines===0?`This file is empty.`:`No more content at this position.`),1)),H(`div`,tc,[H(`span`,null,N(d.value.endLine===null?`No lines read`:`Lines ${d.value.startLine}–${d.value.endLine}`),1),d.value.startLine>1?(B(),V(`button`,{key:0,class:`text-button`,onClick:n[5]||=e=>m({...i.value,operation:`read`,startLine:1})},`Back to start`)):W(``,!0),d.value.nextStartLine===null?W(``,!0):(B(),V(`button`,{key:1,class:`text-button`,onClick:n[6]||=e=>m({...i.value,operation:`read`,startLine:d.value.nextStartLine})},`Next lines`))])],64)):W(``,!0)],64)):W(``,!0)],64)):(B(),V(`p`,Fs,`No Artifacts were provided.`))]))}}),rc=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function ic(e){return!rc(e)||!Array.isArray(e.content)?null:e.content.map(e=>rc(e)?e.type===`text`&&typeof e.text==`string`?{type:`text`,text:e.text}:e.type===`json`&&Object.hasOwn(e,`data`)?{type:`json`,text:JSON.stringify(e.data,null,2)??`null`}:e.type===`launch`&&e.launched===!0?{type:`launch`}:e.type===`image`&&[`image/png`,`image/jpeg`,`image/webp`].includes(String(e.mimeType))&&typeof e.data==`string`&&e.data.length>0&&e.data.length<=5592408&&e.data.length%4==0&&/^[A-Za-z0-9+/]*={0,2}$/.test(e.data)?{type:`image`,src:`data:${e.mimeType};base64,${e.data}`}:{type:`unsupported`}:{type:`unsupported`})}var ac={class:`tool-output`,"aria-live":`polite`},oc={key:0,class:`tool-notice`},sc=[`aria-label`],cc={key:1,class:`tool-content-image`},lc=[`src`],uc={key:2,class:`tool-notice`},dc={key:3,class:`inline-error`},fc={key:0,class:`code-view`,role:`region`,"aria-label":`Artifact read by the tool`,tabindex:`0`},pc={class:`line-number`,"aria-hidden":`true`},mc={class:`line-content`},hc={key:1,class:`artifact-message`},gc={class:`artifact-pagination`},_c=[`disabled`],vc={key:0,class:`file-list`},yc=[`disabled`,`onClick`],bc={"aria-hidden":`true`},xc={key:1,class:`artifact-message`},Sc={class:`artifact-pagination`},Cc=[`disabled`],wc={key:3,class:`tool-notice`},Tc={key:4,class:`tool-notice`},Ec=wr({__name:`ToolOutput`,props:{result:{},canRead:{type:Boolean},canList:{type:Boolean},busy:{type:Boolean}},emits:[`page`,`navigate`],setup(e,{emit:t}){let n=e,r=t,i=e=>typeof e==`object`&&!!e&&!Array.isArray(e),a=G(()=>i(n.result)?n.result:null),o=G(()=>ic(n.result)),s=G(()=>a.value&&typeof a.value.content==`string`&&typeof a.value.startLine==`number`?{content:a.value.content,startLine:a.value.startLine,endLine:typeof a.value.endLine==`number`?a.value.endLine:null,nextStartLine:typeof a.value.nextStartLine==`number`?a.value.nextStartLine:null}:null),c=G(()=>Array.isArray(a.value?.entries)?a.value.entries.filter(i).flatMap(e=>typeof e.path==`string`&&typeof e.name==`string`&&typeof e.kind==`string`?[{path:e.path,name:e.name,kind:e.kind}]:[]):null),l=G(()=>typeof a.value?.nextOffset==`number`?a.value.nextOffset:null),u=G(()=>{let e=s.value?.content.split(`
|
|
5
|
-
`)??[];return e.at(-1)===``&&e.pop(),e.map(e=>e.replace(/\r$/,``))});return(t,n)=>(B(),V(`div`,ac,[o.value?(B(),V(z,{key:0},[o.value.length?W(``,!0):(B(),V(`p`,oc,`The tool finished without returning content.`)),(B(!0),V(z,null,R(o.value,(e,t)=>(B(),V(z,{key:t},[e.type===`text`||e.type===`json`?(B(),V(`pre`,{key:0,class:`tool-content-text`,tabindex:`0`,"aria-label":e.type===`json`?`Tool output data`:`Tool output text`},N(e.text),9,sc)):e.type===`image`?(B(),V(`figure`,cc,[H(`img`,{src:e.src,alt:`Image returned by the Artifact tool`},null,8,lc)])):e.type===`launch`?(B(),V(`p`,uc,`The registered program was launched. Inspect the content, then submit your review result.`)):(B(),V(`p`,dc,`This result format cannot be displayed.`))],64))),128))],64)):s.value?(B(),V(z,{key:1},[u.value.length?(B(),V(`div`,fc,[(B(!0),V(z,null,R(u.value,(e,t)=>(B(),V(`div`,{key:t,class:`code-line`},[H(`span`,pc,N(s.value.startLine+t),1),H(`span`,mc,N(e),1)]))),128))])):(B(),V(`p`,hc,`No content was read.`)),H(`div`,gc,[H(`span`,null,N(s.value.endLine===null?`No lines read`:`Lines ${s.value.startLine}–${s.value.endLine}`),1),s.value.nextStartLine===null?W(``,!0):(B(),V(`button`,{key:0,class:`text-button`,disabled:e.busy,onClick:n[0]||=e=>r(`page`,{startLine:s.value.nextStartLine})},`Read next lines`,8,_c))])],64)):c.value?(B(),V(z,{key:2},[c.value.length?(B(),V(`div`,vc,[(B(!0),V(z,null,R(c.value,t=>(B(),V(`button`,{key:t.path,class:`file-entry`,disabled:e.busy||(t.kind===`directory`?!e.canList:t.kind!==`file`||!e.canRead),onClick:e=>r(`navigate`,t.kind===`directory`?`list`:`read`,t.path)},[H(`span`,bc,N(t.kind===`directory`?`▱`:`·`),1),Va(N(t.name),1),n[2]||=H(`span`,{class:`file-arrow`,"aria-hidden":`true`},`›`,-1)],8,yc))),128))])):(B(),V(`p`,xc,`This folder is empty.`)),H(`div`,Sc,[H(`span`,null,`Entries: `+N(c.value.length),1),l.value===null?W(``,!0):(B(),V(`button`,{key:0,class:`text-button`,disabled:e.busy,onClick:n[1]||=e=>r(`page`,{offset:l.value})},`View next files`,8,Cc))])],64)):a.value?.kind===`launch`&&a.value.launched===!0?(B(),V(`p`,wc,`The registered program was launched. Inspect the content, then submit your review result.`)):(B(),V(`p`,Tc,`The tool finished.`))]))}}),Dc=/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;function Oc(e,t){let n=0;for(;t>0&&e[--t]===`\\`;)n++;return n%2==1}function kc(e,t){let n=Oc(e,t),r=0,i=``;for(let a=t;a<e.length;a++){let t=e[a];if(t===`\\`){(!n||i||e[a+1]!==`{`&&e[a+1]!==`}`)&&a++;continue}if(i){t===i&&(i=``);continue}if(t===`"`||t===`'`||t==="`"){i=t;continue}if(t===`{`)r++;else if(t===`}`&&--r===0)return a}return-1}function Ac(e,t,n=[]){let r=new Set([...t,...n].map(e=>e.id)),i=[],a=0,o=0;for(;o<e.length;){if(e[o]!==`{`){o++;continue}let t=kc(e,o);if(t===-1)break;let n=e.slice(o+1,t);e[o-1]!==`$`&&!Oc(e,o)&&Dc.test(n)&&r.has(n)&&(a<o&&i.push({type:`text`,text:e.slice(a,o)}),i.push({type:`artifact`,artifactId:n}),a=t+1),o=t+1}return a<e.length&&i.push({type:`text`,text:e.slice(a)}),i}function jc(e,t,n=[]){let r=new Set(t.map(e=>e.id)),i=new Map(n.map(e=>[e.id,e])),a=new Set,o=new Set,s=e=>{if(!a.has(e)){if(a.add(e),r.has(e))o.add(e);else for(let t of i.get(e)?.members??[])s(t)}};return s(e),[...o]}function Mc(e,t){return t[e.length]?.(...e)??(()=>{throw Error(`Invalid Arguments`)})()}function Nc(e,t,n){return e>=t&&e<=n}function Pc(e){return e===8205}function Fc(e){return Nc(e,55296,56319)}function Ic(e){return Nc(e,127462,127487)}function Lc(e){return Nc(e,65024,65039)}function Rc(e){return Nc(e,768,879)||Nc(e,6832,6911)||Nc(e,7616,7679)||Nc(e,65056,65071)}function zc(e){return e>65535?2:1}function Bc(e,t){for(;t<e.length;){let n=e.codePointAt(t);if(Rc(n)||Lc(n))t+=zc(n);else break}return t}function Vc(e,t){let n=e.codePointAt(t),r=t+zc(n);for(r=Bc(e,r);r<e.length-1&&e[r]===``;){let t=e.codePointAt(r+1);r+=1+zc(t),r=Bc(e,r)}return Ic(n)&&r<e.length&&Ic(e.codePointAt(r))&&(r+=zc(e.codePointAt(r))),r}function Hc(e){return Fc(e)||Rc(e)||Lc(e)||Pc(e)}function Uc(e,t){if(t===0)return!0;let n=0,r=0;for(;r<e.length;)if(r=Vc(e,r),n++,n>=t)return!0;return!1}function Wc(e,t){let n=0,r=0;for(;r<e.length;)if(r=Vc(e,r),n++,n>t)return!1;return!0}function Gc(e,t){if(t===0)return!0;let n=0;for(;n<e.length;){if(Hc(e.charCodeAt(n)))return Uc(e,t);if(n++,n>=t)return!0}return!1}function Kc(e,t){let n=0;for(;n<e.length;){if(Hc(e.charCodeAt(n)))return Wc(e,t);if(n++,n>t)return!1}return!0}function K(e){return Array.isArray(e)}function qc(e){return q(typeof e,`bigint`)}function Jc(e){return q(typeof e,`boolean`)}function Yc(e){if(il(e)||!Xc(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function Xc(e){return q(typeof e,`function`)}function Zc(e){return Number.isInteger(e)}function Qc(e){return q(e,null)}function $c(e){return Number.isFinite(e)}function el(e){return tl(e)&&!K(e)}function tl(e){return q(typeof e,`object`)&&!Qc(e)}function nl(e){return q(typeof e,`string`)}function rl(e){return q(typeof e,`symbol`)}function il(e){return q(e,void 0)}function q(e,t){return e===t}function al(e,t){return e>t}function ol(e,t){return e<t}function sl(e,t){return e<=t}function cl(e,t){return e>=t}function ll(e,t){if(qc(e)||qc(t))return BigInt(e)%BigInt(t)===0n;if(!$c(e)||Zc(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 ul(e){return qc(e)||Jc(e)||Qc(e)||$c(e)||nl(e)||il(e)}function dl(e,t){return Kc(e,t)}function fl(e,t){return Gc(e,t)}function pl(e,t,n){for(let r=t;r<e.length;r++)if(!n(e[r],r))return!1;return!0}function ml(e,t,n){let r=!0;for(let i=t;i<e.length;i++)n(e[i],i)||(r=!1);return r}function hl(e,t,n){return q(e.length,0)?n():t(e[0],e.slice(1))}function gl(e){return q(e,`__proto__`)||q(e,`constructor`)||q(e,`prototype`)}function J(e,t){return gl(t)?Object.prototype.hasOwnProperty.call(e,t):t in e}function _l(e){return Object.entries(e)}function Y(e){return Object.getOwnPropertyNames(e)}function vl(e,t){if(!tl(t))return!1;let n=Y(e);return q(n.length,Y(t).length)&&n.every(n=>bl(e[n],t[n]))}function yl(e,t){return K(t)&&q(e.length,t.length)&&e.every((n,r)=>bl(e[r],t[r]))}function bl(e,t){return K(e)?yl(e,t):tl(e)?vl(e,t):q(e,t)}function xl(e){return e instanceof Boolean}function Sl(e){return e instanceof Number}function Cl(e){return e instanceof String}function wl(e){return globalThis.ArrayBuffer.isView(e)}function Tl(e){return e instanceof globalThis.RegExp}function El(e){return e instanceof globalThis.Date}function Dl(e){return J(e,`~refine`)&&K(e[`~refine`])&&pl(e[`~refine`],0,e=>tl(e)&&J(e,`check`)&&J(e,`error`)&&Xc(e.check)&&Xc(e.error))}function Ol(e){return tl(e)&&!K(e)}function kl(e){return Jc(e)}function X(e){return Ol(e)||kl(e)}function Al(e){return J(e,`additionalItems`)&&X(e.additionalItems)}function jl(e){return J(e,`additionalProperties`)&&X(e.additionalProperties)}function Ml(e){return J(e,`allOf`)&&K(e.allOf)&&e.allOf.every(e=>X(e))}function Nl(e){return J(e,`$anchor`)&&nl(e.$anchor)}function Pl(e){return J(e,`anyOf`)&&K(e.anyOf)&&e.anyOf.every(e=>X(e))}function Fl(e){return J(e,`const`)}function Il(e){return J(e,`contains`)&&X(e.contains)}function Ll(e){return J(e,`dependencies`)&&tl(e.dependencies)&&Object.values(e.dependencies).every(e=>X(e)||K(e)&&e.every(e=>nl(e)))}function Rl(e){return J(e,`dependentRequired`)&&tl(e.dependentRequired)&&Object.values(e.dependentRequired).every(e=>K(e)&&e.every(e=>nl(e)))}function zl(e){return J(e,`dependentSchemas`)&&tl(e.dependentSchemas)&&Object.values(e.dependentSchemas).every(e=>X(e))}function Bl(e){return J(e,`$dynamicAnchor`)&&nl(e.$dynamicAnchor)}function Vl(e){return J(e,`$dynamicRef`)&&nl(e.$dynamicRef)}function Hl(e){return J(e,`else`)&&X(e.else)}function Ul(e){return J(e,`enum`)&&K(e.enum)}function Wl(e){return J(e,`exclusiveMaximum`)&&($c(e.exclusiveMaximum)||qc(e.exclusiveMaximum))}function Gl(e){return J(e,`exclusiveMinimum`)&&($c(e.exclusiveMinimum)||qc(e.exclusiveMinimum))}function Kl(e){return J(e,`format`)&&nl(e.format)}function ql(e){return J(e,`$id`)&&nl(e.$id)}function Jl(e){return J(e,`if`)&&X(e.if)}function Yl(e){return J(e,`items`)&&(X(e.items)||K(e.items)&&e.items.every(e=>X(e)))}function Xl(e){return Yl(e)&&K(e.items)}function Zl(e){return J(e,`maximum`)&&($c(e.maximum)||qc(e.maximum))}function Ql(e){return J(e,`maxContains`)&&$c(e.maxContains)}function $l(e){return J(e,`maxItems`)&&$c(e.maxItems)}function eu(e){return J(e,`maxLength`)&&$c(e.maxLength)}function tu(e){return J(e,`maxProperties`)&&$c(e.maxProperties)}function nu(e){return J(e,`minimum`)&&($c(e.minimum)||qc(e.minimum))}function ru(e){return J(e,`minContains`)&&$c(e.minContains)}function iu(e){return J(e,`minItems`)&&$c(e.minItems)}function au(e){return J(e,`minLength`)&&$c(e.minLength)}function ou(e){return J(e,`minProperties`)&&$c(e.minProperties)}function su(e){return J(e,`multipleOf`)&&($c(e.multipleOf)||qc(e.multipleOf))}function cu(e){return J(e,`not`)&&X(e.not)}function lu(e){return J(e,`oneOf`)&&K(e.oneOf)&&e.oneOf.every(e=>X(e))}function uu(e){return J(e,`pattern`)&&(nl(e.pattern)||e.pattern instanceof RegExp)}function du(e){return J(e,`patternProperties`)&&tl(e.patternProperties)&&Object.values(e.patternProperties).every(e=>X(e))}function fu(e){return J(e,`prefixItems`)&&K(e.prefixItems)&&e.prefixItems.every(e=>X(e))}function pu(e){return J(e,`properties`)&&tl(e.properties)&&Object.values(e.properties).every(e=>X(e))}function mu(e){return J(e,`propertyNames`)&&(tl(e.propertyNames)||X(e.propertyNames))}function hu(e){return J(e,`$recursiveAnchor`)&&Jc(e.$recursiveAnchor)}function gu(e){return hu(e)&&q(e.$recursiveAnchor,!0)}function _u(e){return J(e,`$recursiveRef`)&&nl(e.$recursiveRef)}function vu(e){return J(e,`$ref`)&&nl(e.$ref)}function yu(e){return J(e,`required`)&&K(e.required)&&e.required.every(e=>nl(e))}function bu(e){return J(e,`then`)&&X(e.then)}function xu(e){return J(e,`type`)&&(nl(e.type)||K(e.type)&&e.type.every(e=>nl(e)))}function Su(e){return J(e,`uniqueItems`)&&Jc(e.uniqueItems)}function Cu(e){return J(e,`unevaluatedItems`)&&X(e.unevaluatedItems)}function wu(e){return J(e,`unevaluatedProperties`)&&X(e.unevaluatedProperties)}var Tu=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}},Eu=class extends Tu{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}},Du=class extends Eu{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};function Ou(){throw Error(`Unreachable`)}function ku(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 Au(e){return typeof e==`number`}var ju;(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`})(ju||={});var Mu=BigInt(`14695981039346656037`),[Nu,Pu]=[BigInt(`1099511628211`),BigInt(`18446744073709551616`)],Fu=Array.from({length:256}).map((e,t)=>BigInt(t)),Iu=new Float64Array(1),Lu=new DataView(Iu.buffer),Ru=new Uint8Array(Iu.buffer);function zu(e){Mu^=Fu[e],Mu=Mu*Nu%Pu}function Bu(e){zu(ju.Array);for(let t of e)td(t)}function Vu(e){zu(ju.BigInt),Lu.setBigInt64(0,e);for(let e of Ru)zu(e)}function Hu(e){zu(ju.Boolean),zu(+!!e)}function Uu(e){zu(ju.Constructor),td(e.toString())}function Wu(e){zu(ju.Date),td(e.getTime())}function Gu(e){zu(ju.Function),td(e.toString())}function Ku(e){zu(ju.Null)}function qu(e){zu(ju.Number),Lu.setFloat64(0,e,!0);for(let e of Ru)zu(e)}function Ju(e){zu(ju.Object);for(let t of ku(e).sort())td(t),td(e[t])}function Yu(e){zu(ju.RegExp),Zu(e.toString())}var Xu=new TextEncoder;function Zu(e){zu(ju.String);for(let t of Xu.encode(e))zu(t)}function Qu(e){zu(ju.Symbol),td(e.toString())}function $u(e){zu(ju.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e<t.length;e++)zu(t[e])}function ed(e){return zu(ju.Undefined)}function td(e){return wl(e)?$u(e):El(e)?Wu(e):Tl(e)?Yu(e):xl(e)?Hu(e.valueOf()):Cl(e)?Zu(e.valueOf()):Sl(e)?qu(e.valueOf()):Au(e)?qu(e):K(e)?Bu(e):Jc(e)?Hu(e):qc(e)?Vu(e):Yc(e)?Uu(e):Qc(e)?Ku(e):tl(e)?Ju(e):nl(e)?Zu(e):rl(e)?Qu(e):il(e)?ed(e):Xc(e)?Gu(e):Ou()}function nd(e){return Mu=BigInt(`14695981039346656037`),td(e),Mu}function rd(e){return nd(e).toString(16).padStart(16,`0`)}function id(e,t,n,r){return pl(n[`~refine`],0,(e,t)=>e.check(r))}function ad(e,t,n,r,i,a){return ml(i[`~refine`],0,(e,i)=>e.check(a)||t.AddError({keyword:`~refine`,schemaPath:n,instancePath:r,params:{index:i,message:e.error(a)}}))}function od(e){return Yl(e)&&K(e.items)}function sd(e,t,n,r){return!od(n)||r.every((r,i)=>ol(i,n.items.length)||Cm(e,t,n.additionalItems,r)&&t.AddIndex(i))}function cd(e,t,n,r,i,a){return!od(i)||a.every((a,o)=>{let s=`${n}/additionalItems`,c=`${r}/${o}`;return ol(o,i.items.length)||wm(e,t,s,c,i.additionalItems,a)&&t.AddIndex(o)})}function ld(e){return`^${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`}function ud(e){let t=[];return du(e)&&t.push(...Y(e.patternProperties)),pu(e)&&t.push(...Y(e.properties).map(ld)),q(t.length,0)?`(?!)`:`(${t.join(`|`)})`}function dd(e,t,n,r){let i=new RegExp(ud(n));return pl(Y(r),0,(a,o)=>i.test(a)||Cm(e,t,n.additionalProperties,r[a])&&t.AddKey(a))}function fd(e,t,n,r,i,a){let o=new RegExp(ud(i)),s=[];return ml(Y(a),0,(c,l)=>{let u=`${n}/additionalProperties`,d=`${r}/${c}`,f=new Du,p=o.test(c)||wm(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 pd(e,t,n,r){let i=n.allOf.reduce((t,n)=>{let i=new Tu;return Q(e,i,n,r)?[...t,i]:t},[]);return q(i.length,n.allOf.length)&&t.Merge(i)}function md(e,t,n,r,i,a){let o=[],s=i.allOf.reduce((t,i,s)=>{let c=`${n}/allOf/${s}`,l=new Du,u=Tm(e,l,c,r,i,a);return u||o.push(l),u?[...t,l]:t},[]),c=q(s.length,i.allOf.length)&&t.Merge(s);return c||o.forEach(e=>e.GetErrors().forEach(e=>t.AddError(e))),c}function hd(e,t,n,r){let i=n.anyOf.reduce((t,n)=>{let i=new Tu;return Q(e,i,n,r)?[...t,i]:t},[]);return al(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 Du,l=Tm(e,c,`${n}/anyOf/${s}`,r,i,a);return l||o.push(c),l?[...t,c]:t},[]),c=al(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(e,t,n,r){return n}function vd(e,t,n,r,i,a){return _d(e,t,i,a)||t.AddError({keyword:`boolean`,schemaPath:n,instancePath:r,params:{}})}function yd(e,t,n,r){return ul(n.const)?q(r,n.const):bl(r,n.const)}function bd(e,t,n,r,i,a){return yd(e,t,i,a)||t.AddError({keyword:`const`,schemaPath:n,instancePath:r,params:{allowedValue:i.const}})}function xd(e){return!(ru(e)&&q(e.minContains,0))}function Sd(e,t,n,r){return!xd(n)||!q(r.length,0)&&r.some(r=>Q(e,t,n.contains,r))}function Cd(e,t,n,r,i,a){return Sd(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:1}})}function wd(e,t,n,r){let i=q(Y(r).length,0),a=pl(_l(n.dependencies),0,([n,i])=>!J(r,n)||(K(i)?i.every(e=>J(r,e)):Q(e,t,i,r)));return i||a}function Td(e,t,n,r,i,a){let o=q(Y(a).length,0),s=ml(_l(i.dependencies),0,([i,o])=>{let s=`${n}/dependencies/${i}`;return!J(a,i)||(K(o)?o.every(e=>J(a,e)||t.AddError({keyword:`dependencies`,schemaPath:n,instancePath:r,params:{property:i,dependencies:o}})):Tm(e,t,s,r,o,a))});return o||s}function Ed(e,t,n,r){let i=q(Y(r).length,0),a=pl(_l(n.dependentRequired),0,([e,t])=>!J(r,e)||t.every(e=>J(r,e)));return i||a}function Dd(e,t,n,r,i,a){let o=q(Y(a).length,0),s=ml(_l(i.dependentRequired),0,([e,i])=>!J(a,e)||ml(i,0,o=>J(a,o)||t.AddError({keyword:`dependentRequired`,schemaPath:n,instancePath:r,params:{property:e,dependencies:i}})));return o||s}function Od(e,t,n,r){let i=q(Y(r).length,0),a=pl(_l(n.dependentSchemas),0,([n,i])=>!J(r,n)||Q(e,t,i,r));return i||a}function kd(e,t,n,r,i,a){let o=q(Y(a).length,0),s=ml(_l(i.dependentSchemas),0,([i,o])=>{let s=`${n}/dependentSchemas/${i}`;return!J(a,i)||Tm(e,t,s,r,o,a)});return o||s}function Ad(e,t,n,r){let i=e.DynamicRef(n)??!1;return X(i)&&Q(e,t,i,r)}function jd(e,t,n,r,i,a){let o=e.DynamicRef(i)??!1;return X(o)&&Tm(e,t,`#`,r,o,a)}function Md(e,t,n,r){return n.enum.some(e=>ul(e)?q(r,e):bl(r,e))}function Nd(e,t,n,r,i,a){return Md(e,t,i,a)||t.AddError({keyword:`enum`,schemaPath:n,instancePath:r,params:{allowedValues:i.enum}})}function Pd(e,t,n,r){return ol(r,n.exclusiveMaximum)}function Fd(e,t,n,r,i,a){return Pd(e,t,i,a)||t.AddError({keyword:`exclusiveMaximum`,schemaPath:n,instancePath:r,params:{comparison:`<`,limit:i.exclusiveMaximum}})}function Id(e,t,n,r){return al(r,n.exclusiveMinimum)}function Ld(e,t,n,r,i,a){return Id(e,t,i,a)||t.AddError({keyword:`exclusiveMinimum`,schemaPath:n,instancePath:r,params:{comparison:`>`,limit:i.exclusiveMinimum}})}var Rd=[0,31,28,31,30,31,30,31,31,30,31,30,31],zd=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Bd(e){return e%4==0&&(e%100!=0||e%400==0)}function Vd(e){let t=zd.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&&Bd(n)?29:Rd[r])}var Hd=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Ud(e,t=!0){let n=Hd.exec(e);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4]===`-`?-1:1,s=+(n[5]||0),c=+(n[6]||0);if(s>23||c>59||t&&!n[4]&&e.toLowerCase().indexOf(`z`)===-1)return!1;if(r<=23&&i<=59&&a<60)return!0;let l=i-c*o,u=r-s*o-+(l<0);return(u===23||u===-1)&&(l===59||l===-1)&&a<61}function Wd(e,t=!0){let n=e.split(/T/i);return n.length===2&&Vd(n[0])&&Ud(n[1],t)}var Gd=/^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 Kd(e){return Gd.test(e)}var qd=/^(?!.*\.\.)[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])?)*$/i;function Jd(e){return qd.test(e)}var Yd=36,Xd=1,Zd=26,Qd=38,$d=700,ef=72,tf=128;function nf(e,t,n){e=n?Math.floor(e/$d):e>>1,e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=Yd;return r+Math.floor(36*e/(e+Qd))}function rf(e){let t=[],n=tf,r=0,i=ef,a=e.lastIndexOf(`-`);if(a>0)for(let n=0;n<a;n++){let r=e.charCodeAt(n);if(r>=128)throw Error(`Invalid punycode: non-basic before delimiter`);t.push(r)}let o=a<0?0:a+1;for(;o<e.length;){let a=r,s=1,c=Yd;for(;;){if(o>=e.length)throw Error(`Invalid punycode: unexpected end of input`);let t=e.charCodeAt(o++),n;if(t>=97&&t<=122)n=t-97;else if(t>=48&&t<=57)n=t-48+26;else if(t>=65&&t<=90)Ou();else throw Error(`Invalid punycode: bad digit character`);r+=n*s;let a=c<=i?Xd:c>=i+Zd?Zd:c-i;if(n<a)break;s*=Yd-a,c+=Yd}let l=t.length+1;i=nf(r-a,l,a===0),n+=Math.floor(r/l),r%=l,t.splice(r,0,n),r++}return globalThis.String.fromCodePoint(...t)}function af(e){return/\p{Mn}/u.test(String.fromCodePoint(e))}function of(e){return/\p{Mc}/u.test(String.fromCodePoint(e))}function sf(e){return/\p{Me}/u.test(String.fromCodePoint(e))}function cf(e){return af(e)||of(e)||sf(e)}var lf=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),uf=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function df(e){return/\p{Script=Greek}/u.test(String.fromCodePoint(e))}function ff(e){return/\p{Script=Hebrew}/u.test(String.fromCodePoint(e))}function pf(e){return/\p{Script=Hiragana}/u.test(String.fromCodePoint(e))}function mf(e){return/\p{Script=Katakana}/u.test(String.fromCodePoint(e))}function hf(e){return/\p{Script=Han}/u.test(String.fromCodePoint(e))}function gf(e){return e>=1632&&e<=1641}function _f(e){return e>=1776&&e<=1785}function vf(e){return uf.has(e)}function yf(e){if(e.length===0)return Ou();let t=[...e].map(e=>e.codePointAt(0)),n=t.length;if(t[0]===45||t[n-1]===45||n>=4&&t[2]===45&&t[3]===45||cf(t[0]))return!1;let r=!1,i=!1,a=!1;for(let e=0;e<n;e++){let n=t[e];if(lf.has(n))return!1;(pf(n)||mf(n)||hf(n))&&(r=!0),gf(n)&&(i=!0),_f(n)&&(a=!0);let o=t[e-1],s=t[e+1];switch(n){case 183:if(o!==108||s!==108)return!1;break;case 885:if(s===void 0||!df(s))return!1;break;case 1523:case 1524:if(o===void 0||!ff(o))return!1;break;case 8204:if(o===void 0||o<128&&!vf(o))return!1;break;case 8205:if(o===void 0||!vf(o))return!1}}return!(e.includes(`・`)&&!r||i&&a)}function bf(e){if(e.charCodeAt(0)===45||e.charCodeAt(e.length-1)===45||e.length>=4&&e.charCodeAt(2)===45&&e.charCodeAt(3)===45)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45))return!1}return!0}function xf(e){return e.toLowerCase().startsWith(`xn--`)}function Sf(e){try{let t=e.slice(4).toLowerCase();if(t.lastIndexOf(`-`)===0)return!1;let n=rf(t);return n?yf(n):!1}catch{return!1}}function Cf(e){return e.length===0||e.length>63?!1:xf(e)?Sf(e):yf(e)}function wf(e){return e.length===0||e.length>63?!1:xf(e)?Sf(e):bf(e)}function Tf(e){if(e.length===0||e.length>253||e.charCodeAt(e.length-1)===46)return!1;for(let t of e.split(`.`))if(!wf(t))return!1;return!0}var Ef=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function Df(e){return Ef.test(e)}function Of(e){if(e.length===0||e.includes(` `))return!1;let t=e.normalize(`NFC`).replace(/[\u002E\u3002\uFF0E\uFF61]/g,`.`);if(t.length>253)return!1;for(let e of t.split(`.`))if(!Cf(e))return!1;return!0}function kf(e,t,n){let r=0,i=0,a=0,o=0;for(let s=t;s<n;s++){let t=e.charCodeAt(s);if(t===46){if(a===0||i>255||o===48&&a>1)return!1;r++,i=0,a=0,o=0}else if(t>=48&&t<=57)a===0&&(o=t),i=i*10+(t-48),a++;else return!1}return r===3&&a>0&&i<=255&&!(o===48&&a>1)}function Af(e){return kf(e,0,e.length)}function jf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Mf(e){let t=e.length;if(t===0)return!1;let n=0,r=!1,i=0;if(e.charCodeAt(0)===58&&e.charCodeAt(1)===58){if(t===2)return!0;r=!0,i=2}for(;i<t;){let a=0,o=i;for(;i<t&&jf(e.charCodeAt(i));)i++,a++;if(a===0)return!1;let s=e.charCodeAt(i);if(s===46){if(!kf(e,o,t))return!1;n+=2,i=t;break}if(a>4)return!1;if(n++,i===t)break;if(s!==58)return!1;if(i++,e.charCodeAt(i)===58){if(r||e.charCodeAt(i+1)===58)return!1;if(r=!0,i++,i===t)break}}return r?n<=7:n===8}function Nf(e){try{return new URL(e,`http://example.com`),!0}catch{return!1}}function Pf(e){if(e.includes(` `)||e.includes(`\\`)||/[\x00-\x1F\x7F]/.test(e)||/%(?![0-9a-fA-F]{2})/.test(e))return!1;if(e===``)return!0;let t=e.indexOf(`:`);return t>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e.substring(0,t))?Nf(e):e.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&t===-1?!1:Nf(e)}function Ff(e){try{return new URL(e),!0}catch{return!1}}var If=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Lf(e){return If.test(e)}var Rf=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function zf(e){return Rf.test(e)}function Bf(e){if(e.length===0)return!1;try{return new RegExp(e),!0}catch{return!1}}var Vf=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function Hf(e){return Vf.test(e)}var Uf=/^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;function Wf(e){return Uf.test(e)}var Gf=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function Kf(e){return Gf.test(e)}function qf(e){return e>=97&&e<=122||e>=65&&e<=90}function Jf(e){return qf(e)||e>=48&&e<=57}function Yf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Xf(e){return Jf(e)||e===43||e===45||e===46}function Zf(e){return Jf(e)||e===45||e===46||e===95||e===126}function Qf(e){return e===33||e===36||e===38||e===39||e===40||e===41||e===42||e===43||e===44||e===59||e===61}function $f(e){return Zf(e)||Qf(e)||e===58||e===64}function ep(e){let t=e.length;if(t===0||!qf(e.charCodeAt(0)))return!1;let n=1;for(;n<t;){let t=e.charCodeAt(n);if(t===58)break;if(!Xf(t))return!1;n++}if(e.charCodeAt(n)!==58)return!1;if(n++,e.charCodeAt(n)===47&&e.charCodeAt(n+1)===47){n+=2;let r=n,i=-1;for(let r=n;r<t;r++){let t=e.charCodeAt(r);if(t===64){i=r;break}if(t===47||t===63||t===35)break}if(i!==-1){for(let t=r;t<i;t++){let n=e.charCodeAt(t);if(n===91||n===93)return!1;if(n===37){if(t+2>=i||!Yf(e.charCodeAt(t+1))||!Yf(e.charCodeAt(t+2)))return!1;t+=2}else if(!Zf(n)&&!Qf(n)&&n!==58)return!1}n=i+1}if(e.charCodeAt(n)===91){for(n++;n<t&&e.charCodeAt(n)!==93;)n++;if(e.charCodeAt(n)!==93)return!1;n++}else for(;n<t;){let t=e.charCodeAt(n);if(t===47||t===63||t===35||t===58)break;if(t<128&&!Zf(t)&&!Qf(t))return!1;n++}if(e.charCodeAt(n)===58)for(n++;n<t;){let t=e.charCodeAt(n);if(t===47||t===63||t===35)break;if(t<48||t>57)return!1;n++}}for(;n<t;){let r=e.charCodeAt(n);if(r===37){if(n+2>=t||!Yf(e.charCodeAt(n+1))||!Yf(e.charCodeAt(n+2)))return!1;n+=2}else if(r>127)return!1;else if(!($f(r)||r===47||r===63||r===35))return!1;n++}return!0}var tp=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function np(e){return tp.test(e)}var rp=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function ip(e){return rp.test(e)}var Z=new Map;function ap(){Z.clear()}function op(e,t){return Z.get(e)?.(t)??!0}function sp(){ap(),Z.set(`date-time`,Wd),Z.set(`date`,Vd),Z.set(`duration`,Kd),Z.set(`email`,Jd),Z.set(`hostname`,Tf),Z.set(`idn-email`,Df),Z.set(`idn-hostname`,Of),Z.set(`ipv4`,Af),Z.set(`ipv6`,Mf),Z.set(`iri-reference`,Pf),Z.set(`iri`,Ff),Z.set(`json-pointer-uri-fragment`,Lf),Z.set(`json-pointer`,zf),Z.set(`regex`,Bf),Z.set(`relative-json-pointer`,Hf),Z.set(`time`,Ud),Z.set(`uri-reference`,Wf),Z.set(`uri-template`,Kf),Z.set(`uri`,ep),Z.set(`url`,np),Z.set(`uuid`,ip)}sp();function cp(e,t,n,r){return op(n.format,r)}function lp(e,t,n,r,i,a){return cp(e,t,i,a)||t.AddError({keyword:`format`,schemaPath:n,instancePath:r,params:{format:i.format}})}function up(e,t,n,r){let i=!bu(n)||n.then,a=!Hl(n)||n.else;return Q(e,t,n.if,r)?Q(e,t,i,r):Q(e,t,a,r)}function dp(e,t,n,r,i,a){let o=!bu(i)||i.then,s=!Hl(i)||i.else,c=new Du,l=Tm(e,c,`${n}/if`,r,i.if,a)?Tm(e,c,`${n}/then`,r,o,a)||t.AddError({keyword:`if`,schemaPath:n,instancePath:r,params:{failingKeyword:`then`}}):Tm(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 fp(e,t,n,r){return pl(n.items,0,(n,i)=>sl(r.length,i)||Cm(e,t,n,r[i])&&t.AddIndex(i))}function pp(e,t,n,r,i,a){return ml(i.items,0,(i,o)=>{let s=`${n}/items/${o}`,c=`${r}/${o}`;return sl(a.length,o)||wm(e,t,s,c,i,a[o])&&t.AddIndex(o)})}function mp(e,t,n,r){return pl(r,fu(n)?n.prefixItems.length:0,(r,i)=>Cm(e,t,n.items,r)&&t.AddIndex(i))}function hp(e,t,n,r,i,a){return ml(a,fu(i)?i.prefixItems.length:0,(a,o)=>wm(e,t,`${n}/items`,`${r}/${o}`,i.items,a)&&t.AddIndex(o))}function gp(e,t,n,r){return Xl(n)?fp(e,t,n,r):mp(e,t,n,r)}function _p(e,t,n,r,i,a){return Xl(i)?pp(e,t,n,r,i,a):hp(e,t,n,r,i,a)}function vp(e){return Il(e)}function yp(e,t,n,r){return!vp(n)||sl(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.maxContains)}function bp(e,t,n,r,i,a){let o=ru(i)?i.minContains:1;return yp(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:o,maxContains:i.maxContains}})}function xp(e,t,n,r){return sl(r,n.maximum)}function Sp(e,t,n,r,i,a){return xp(e,t,i,a)||t.AddError({keyword:`maximum`,schemaPath:n,instancePath:r,params:{comparison:`<=`,limit:i.maximum}})}function Cp(e,t,n,r){return sl(r.length,n.maxItems)}function wp(e,t,n,r,i,a){return Cp(e,t,i,a)||t.AddError({keyword:`maxItems`,schemaPath:n,instancePath:r,params:{limit:i.maxItems}})}function Tp(e,t,n,r){return dl(r,n.maxLength)}function Ep(e,t,n,r,i,a){return Tp(e,t,i,a)||t.AddError({keyword:`maxLength`,schemaPath:n,instancePath:r,params:{limit:i.maxLength}})}function Dp(e,t,n,r){return sl(Y(r).length,n.maxProperties)}function Op(e,t,n,r,i,a){return Dp(e,t,i,a)||t.AddError({keyword:`maxProperties`,schemaPath:n,instancePath:r,params:{limit:i.maxProperties}})}function kp(e){return Il(e)}function Ap(e,t,n,r){return!kp(n)||cl(r.reduce((r,i)=>Q(e,t,n.contains,i)?++r:r,0),n.minContains)}function jp(e,t,n,r,i,a){return Ap(e,t,i,a)||t.AddError({keyword:`contains`,schemaPath:n,instancePath:r,params:{minContains:i.minContains}})}function Mp(e,t,n,r){return cl(r,n.minimum)}function Np(e,t,n,r,i,a){return Mp(e,t,i,a)||t.AddError({keyword:`minimum`,schemaPath:n,instancePath:r,params:{comparison:`>=`,limit:i.minimum}})}function Pp(e,t,n,r){return cl(r.length,n.minItems)}function Fp(e,t,n,r,i,a){return Pp(e,t,i,a)||t.AddError({keyword:`minItems`,schemaPath:n,instancePath:r,params:{limit:i.minItems}})}function Ip(e,t,n,r){return fl(r,n.minLength)}function Lp(e,t,n,r,i,a){return Ip(e,t,i,a)||t.AddError({keyword:`minLength`,schemaPath:n,instancePath:r,params:{limit:i.minLength}})}function Rp(e,t,n,r){return cl(Y(r).length,n.minProperties)}function zp(e,t,n,r,i,a){return Rp(e,t,i,a)||t.AddError({keyword:`minProperties`,schemaPath:n,instancePath:r,params:{limit:i.minProperties}})}function Bp(e,t,n,r){return ll(r,n.multipleOf)}function Vp(e,t,n,r,i,a){return Bp(e,t,i,a)||t.AddError({keyword:`multipleOf`,schemaPath:n,instancePath:r,params:{multipleOf:i.multipleOf}})}function Hp(e,t,n,r){let i=new Tu;return!Q(e,i,n.not,r)&&t.Merge([i])}function Up(e,t,n,r,i,a){return Hp(e,t,i,a)||t.AddError({keyword:`not`,schemaPath:n,instancePath:r,params:{}})}function Wp(e,t,n,r){let i=n.oneOf.reduce((t,n)=>{let i=new Tu;return Q(e,i,n,r)?[...t,i]:t},[]);return q(i.length,1)&&t.Merge(i)}function Gp(e,t,n,r,i,a){let o=[],s=[],c=i.oneOf.reduce((t,i,c)=>{let l=new Du,u=Tm(e,l,`${n}/oneOf/${c}`,r,i,a);return u&&s.push(c),u||o.push(l),u?[...t,l]:t},[]),l=q(c.length,1)&&t.Merge(c);return!l&&q(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 Kp(e,t,n,r){return(nl(n.pattern)?new RegExp(n.pattern,`u`):n.pattern).test(r)}function qp(e,t,n,r,i,a){return Kp(e,t,i,a)||t.AddError({keyword:`pattern`,schemaPath:n,instancePath:r,params:{pattern:i.pattern}})}function Jp(e,t,n,r){return pl(_l(n.patternProperties),0,([n,i])=>{let a=new RegExp(n,`u`);return pl(_l(r),0,([n,r])=>!a.test(n)||Cm(e,t,i,r)&&t.AddKey(n))})}function Yp(e,t,n,r,i,a){return ml(_l(i.patternProperties),0,([i,o])=>{let s=`${n}/patternProperties/${i}`,c=new RegExp(i,`u`);return ml(_l(a),0,([n,i])=>{let a=`${r}/${n}`;return!c.test(n)||wm(e,t,s,a,o,i)&&t.AddKey(n)})})}function Xp(e,t,n,r){return q(r.length,0)||pl(n.prefixItems,0,(n,i)=>sl(r.length,i)||Cm(e,t,n,r[i])&&t.AddIndex(i))}function Zp(e,t,n,r,i,a){return q(a.length,0)||ml(i.prefixItems,0,(i,o)=>{let s=`${n}/prefixItems/${o}`,c=`${r}/${o}`;return sl(a.length,o)||wm(e,t,s,c,i,a[o])&&t.AddIndex(o)})}var Qp={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1,unionPrioritySort:!0};function $p(){return Qp}function em(e,t){return e.includes(t)||$p().exactOptionalPropertyTypes}function tm(e,t){return il(e[t])}function nm(e,t,n,r){let i=yu(n)?n.required:[];return pl(_l(n.properties),0,([n,a])=>{let o=!J(r,n)||Cm(e,t,a,r[n])&&t.AddKey(n);return em(i,n)?o:tm(r,n)||o})}function rm(e,t,n,r,i,a){let o=yu(i)?i.required:[];return ml(_l(i.properties),0,([i,s])=>{let c=`${n}/properties/${i}`,l=`${r}/${i}`,u=()=>!J(a,i)||wm(e,t,c,l,s,a[i])&&t.AddKey(i);return em(o,i)?u():tm(a,i)||u()})}function im(e,t,n,r){return pl(Y(r),0,(r,i)=>Q(e,t,n.propertyNames,r))}function am(e,t,n,r,i,a){let o=[];return ml(Y(a),0,(t,a)=>{let s=`${r}/${t}`,c=`${n}/propertyNames`,l=Tm(e,new Du,c,s,i.propertyNames,t);return l||o.push(t),l})||t.AddError({keyword:`propertyNames`,schemaPath:n,instancePath:r,params:{propertyNames:o}})}function om(e,t,n,r){let i=e.RecursiveRef(n)??!1;return X(i)&&Q(e,t,i,r)}function sm(e,t,n,r,i,a){let o=e.RecursiveRef(i)??!1;return X(o)&&Tm(e,t,`#`,r,o,a)}function cm(e,t,n,r){let i=e.Ref(n)??!1,a=new Tu,o=X(i)&&Q(e,a,i,r);return o&&t.Merge([a]),o}function lm(e,t,n,r,i,a){let o=e.Ref(i)??!1,s=new Du,c=X(o)&&Tm(e,s,`#`,r,o,a);return c&&t.Merge([s]),c||s.GetErrors().forEach(e=>t.AddError(e)),c}function um(e,t,n,r){return pl(n.required,0,e=>J(r,e))}function dm(e,t,n,r,i,a){let o=[];return ml(i.required,0,e=>{let t=J(a,e);return t||o.push(e),t})||t.AddError({keyword:`required`,schemaPath:n,instancePath:r,params:{requiredProperties:o}})}function fm(e,t,n,r,i){return q(n,`object`)?el(i):q(n,`array`)?K(i):q(n,`boolean`)?Jc(i):q(n,`integer`)?Zc(i):q(n,`number`)?$c(i):q(n,`null`)?Qc(i):q(n,`string`)?nl(i):q(n,`bigint`)?qc(i):q(n,`constructor`)?Yc(i):q(n,`function`)?Xc(i):q(n,`symbol`)?rl(i):q(n,`undefined`)?il(i):!q(n,`void`)||il(i)}function pm(e,t,n,r,i){return n.some(n=>fm(e,t,n,r,i))}function mm(e,t,n,r){return K(n.type)?pm(e,t,n.type,n,r):fm(e,t,n.type,n,r)}function hm(e,t,n,r,i,a){return(K(i.type)?pm(e,t,i.type,i,a):fm(e,t,i.type,i,a))||t.AddError({keyword:`type`,schemaPath:n,instancePath:r,params:{type:i.type}})}function gm(e,t,n,r){let i=t.GetIndices();return pl(r,0,(r,a)=>(i.has(a)||Q(e,t,n.unevaluatedItems,r))&&t.AddIndex(a))}function _m(e,t,n,r,i,a){let o=t.GetIndices(),s=[];return ml(a,0,(a,c)=>{let l=new Du,u=(o.has(c)||Tm(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 vm(e,t,n,r){let i=t.GetKeys();return pl(_l(r),0,([r,a])=>i.has(r)||Q(e,t,n.unevaluatedProperties,a)&&t.AddKey(r))}function ym(e,t,n,r,i,a){let o=t.GetKeys(),s=[];return ml(_l(a),0,([a,c])=>{let l=new Du,u=o.has(a)||Tm(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 bm(e){return!q(e.uniqueItems,!1)}function xm(e,t,n,r){if(!bm(n))return!0;let i=new Set(r.map(rd)).size,a=r.length;return q(i,a)}function Sm(e,t,n,r,i,a){if(!bm(i))return!0;let o=new Set,s=a.reduce((e,t,n)=>{let r=rd(t);return o.has(r)?[...e,n]:(o.add(r),e)},[]);return q(s.length,0)||t.AddError({keyword:`uniqueItems`,schemaPath:n,instancePath:r,params:{duplicateItems:s}})}function Cm(e,t,n,r){return t.Push()&&Q(e,t,n,r)&&t.Pop()}function Q(e,t,n,r){e.Push(n);let i=kl(n)?_d(e,t,n,r):(!xu(n)||mm(e,t,n,r))&&(!(tl(r)&&!K(r))||(!yu(n)||um(e,t,n,r))&&(!jl(n)||dd(e,t,n,r))&&(!Ll(n)||wd(e,t,n,r))&&(!Rl(n)||Ed(e,t,n,r))&&(!zl(n)||Od(e,t,n,r))&&(!du(n)||Jp(e,t,n,r))&&(!pu(n)||nm(e,t,n,r))&&(!mu(n)||im(e,t,n,r))&&(!ou(n)||Rp(e,t,n,r))&&(!tu(n)||Dp(e,t,n,r)))&&(!K(r)||(!Al(n)||sd(e,t,n,r))&&(!Il(n)||Sd(e,t,n,r))&&(!Yl(n)||gp(e,t,n,r))&&(!Ql(n)||yp(e,t,n,r))&&(!$l(n)||Cp(e,t,n,r))&&(!ru(n)||Ap(e,t,n,r))&&(!iu(n)||Pp(e,t,n,r))&&(!fu(n)||Xp(e,t,n,r))&&(!Su(n)||xm(e,t,n,r)))&&(!nl(r)||(!eu(n)||Tp(e,t,n,r))&&(!au(n)||Ip(e,t,n,r))&&(!Kl(n)||cp(e,t,n,r))&&(!uu(n)||Kp(e,t,n,r)))&&(!($c(r)||qc(r))||(!Wl(n)||Pd(e,t,n,r))&&(!Gl(n)||Id(e,t,n,r))&&(!Zl(n)||xp(e,t,n,r))&&(!nu(n)||Mp(e,t,n,r))&&(!su(n)||Bp(e,t,n,r)))&&(!vu(n)||cm(e,t,n,r))&&(!_u(n)||om(e,t,n,r))&&(!Vl(n)||Ad(e,t,n,r))&&(!Fl(n)||yd(e,t,n,r))&&(!Ul(n)||Md(e,t,n,r))&&(!Jl(n)||up(e,t,n,r))&&(!cu(n)||Hp(e,t,n,r))&&(!Ml(n)||pd(e,t,n,r))&&(!Pl(n)||hd(e,t,n,r))&&(!lu(n)||Wp(e,t,n,r))&&(!Cu(n)||!K(r)||gm(e,t,n,r))&&(!wu(n)||!tl(r)||vm(e,t,n,r))&&(!Dl(n)||id(e,t,n,r));return e.Pop(n),i}function wm(e,t,n,r,i,a){return t.Push()&&Tm(e,t,n,r,i,a)&&t.Pop()}function Tm(e,t,n,r,i,a){e.Push(i);let o=kl(i)?vd(e,t,n,r,i,a):!!(+(!xu(i)||hm(e,t,n,r,i,a))&(!(tl(a)&&!K(a))||!!(+(!yu(i)||dm(e,t,n,r,i,a))&(!jl(i)||fd(e,t,n,r,i,a))&(!Ll(i)||Td(e,t,n,r,i,a))&(!Rl(i)||Dd(e,t,n,r,i,a))&(!zl(i)||kd(e,t,n,r,i,a))&(!du(i)||Yp(e,t,n,r,i,a))&(!pu(i)||rm(e,t,n,r,i,a))&(!mu(i)||am(e,t,n,r,i,a))&(!ou(i)||zp(e,t,n,r,i,a))&(!tu(i)||Op(e,t,n,r,i,a))))&(!K(a)||!!(+(!Al(i)||cd(e,t,n,r,i,a))&(!Il(i)||Cd(e,t,n,r,i,a))&(!Yl(i)||_p(e,t,n,r,i,a))&(!Ql(i)||bp(e,t,n,r,i,a))&(!$l(i)||wp(e,t,n,r,i,a))&(!ru(i)||jp(e,t,n,r,i,a))&(!iu(i)||Fp(e,t,n,r,i,a))&(!fu(i)||Zp(e,t,n,r,i,a))&(!Su(i)||Sm(e,t,n,r,i,a))))&(!nl(a)||!!(+(!eu(i)||Ep(e,t,n,r,i,a))&(!au(i)||Lp(e,t,n,r,i,a))&(!Kl(i)||lp(e,t,n,r,i,a))&(!uu(i)||qp(e,t,n,r,i,a))))&(!($c(a)||qc(a))||!!(+(!Wl(i)||Fd(e,t,n,r,i,a))&(!Gl(i)||Ld(e,t,n,r,i,a))&(!Zl(i)||Sp(e,t,n,r,i,a))&(!nu(i)||Np(e,t,n,r,i,a))&(!su(i)||Vp(e,t,n,r,i,a))))&(!vu(i)||lm(e,t,n,r,i,a))&(!_u(i)||sm(e,t,n,r,i,a))&(!Vl(i)||jd(e,t,n,r,i,a))&(!Fl(i)||bd(e,t,n,r,i,a))&(!Ul(i)||Nd(e,t,n,r,i,a))&(!Jl(i)||dp(e,t,n,r,i,a))&(!cu(i)||Up(e,t,n,r,i,a))&(!Ml(i)||md(e,t,n,r,i,a))&(!Pl(i)||gd(e,t,n,r,i,a))&(!lu(i)||Gp(e,t,n,r,i,a))&(!Cu(i)||!K(a)||_m(e,t,n,r,i,a))&(!wu(i)||!tl(a)||ym(e,t,n,r,i,a)))&&(!Dl(i)||ad(e,t,n,r,i,a));return e.Pop(i),o}function Em(e,t){return tl(t)&&!gl(e)?t[e]:void 0}function Dm(e,t){return e.reduce((e,t)=>Em(t,e),t)}function Om(e){if(q(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 km(e,t){return Dm(Om(t),e)}function Am(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(q(r.pathname,i.pathname))return n.hash.startsWith(`#`)?Nm(e,t,n):e}function jm(e,t,n){let r=new URL(`#${e.$anchor}`,t.href),i=new URL(n.href,t.href);return q(r.href,i.href)?e:void 0}function Mm(e,t,n){let r=new URL(`#${e.$dynamicAnchor}`,t.href),i=new URL(n.href,t.href);return q(r.href,i.href)?e:void 0}function Nm(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 km(e,r)}function Pm(e,t,n){if(ql(e)){let r=Am(e,t,n);if(!il(r))return r}if(Nl(e)){let r=jm(e,t,n);if(!il(r))return r}if(Bl(e)){let r=Mm(e,t,n);if(!il(r))return r}return Nm(e,t,n)}function Fm(e,t,n){return e.reduce((e,r)=>{let i=Lm(r,t,n);return il(i)?e:i},void 0)}function Im(e,t,n){return Y(e).reduce((r,i)=>{let a=Lm(e[i],t,n);return il(a)?r:a},void 0)}function Lm(e,t,n){let r=Ol(e)&&ql(e)?new URL(e.$id,t.href):t;if(Ol(e)){let t=Pm(e,r,n);if(!il(t))return t}if(K(e))return Fm(e,r,n);if(tl(e))return Im(e,r,n)}function Rm(e,t){let n=new URL(`http://unknown/`),r=ql(e)?new URL(e.$id,n.href):n;return Lm(e,r,new URL(t,r.href))}function zm(e,t,n,r){let i=n.$dynamicRef.startsWith(`#`)?Rm(t,n.$dynamicRef):Rm(e,n.$dynamicRef);if(!il(i))return!Ol(i)||!Bl(i)||new URL(n.$dynamicRef,`http://unknown/`).hash.startsWith(`#/`)?i:r.find(e=>e.$dynamicAnchor===i.$dynamicAnchor)??i}var Bm=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)},Vm,Hm,Um,Wm,Gm,Km=class{constructor(e,t){Vm.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),new URL(`http://unknown`))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Ol(e)&&(ql(e)&&(this.ids.push(e),Bm(this,Vm,`m`,Hm).call(this,e)),Nl(e)&&this.anchors.push(e),gu(e)&&this.recursiveAnchors.push(e),Bl(e)&&this.dynamicAnchors.push(e))}Pop(e){Ol(e)&&(ql(e)&&(this.ids.pop(),Bm(this,Vm,`m`,Um).call(this,e)),Nl(e)&&this.anchors.pop(),gu(e)&&this.recursiveAnchors.pop(),Bl(e)&&this.dynamicAnchors.pop())}Ref(e){return Bm(this,Vm,`m`,Wm).call(this,e)??Bm(this,Vm,`m`,Gm).call(this,e)}RecursiveRef(e){return gu(this.Base())?Rm(this.recursiveAnchors[0],e.$recursiveRef):Rm(this.Base(),e.$recursiveRef)}DynamicRef(e){let t=this.schema;return zm(t,this.Base(),e,this.dynamicAnchors)}};Vm=new WeakSet,Hm=function e(t,n=!0){if(!Ol(t))return;let r=t;if(n||!ql(r)){!n&&Bl(r)&&this.dynamicAnchors.push(r);for(let t of Y(r))Bm(this,Vm,`m`,e).call(this,r[t],!1)}},Um=function e(t,n=!0){if(!Ol(t))return;let r=t;if(n||!ql(r)){!n&&Bl(r)&&this.dynamicAnchors.pop();for(let t of Y(r))Bm(this,Vm,`m`,e).call(this,r[t],!1)}},Wm=function(e){return J(this.context,e.$ref)?this.context[e.$ref]:void 0},Gm=function(e){let t=this.schema;return e.$ref.startsWith(`#`)?Rm(this.Base(),e.$ref):Rm(t,e.$ref)};function qm(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`}}var Jm=qm;function Ym(){return Jm}function Xm(...e){let[t,n,r]=Mc(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),i=$p(),a=Ym(),o=[];return[Tm(new Km(t,n),new Eu(e=>{if(!cl(o.length,i.maxErrors))return o.push({...e,message:a(e)})}),`#`,``,n,r),o]}function Zm(...e){let[t,n,r]=Mc(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Q(new Km(t,n),new Tu,n,r)}function Qm(...e){let[t,n,r]=Mc(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]});return Zm(t,n,r)}function $m(...e){let[t,n,r]=Mc(e,{3:(e,t,n)=>[e,t,n],2:(e,t)=>[{},e,t]}),[i,a]=Xm(t,n,r);return a}var eh={assign:0,create:0,clone:0,discard:0,update:0};function th(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 nh(e,t){return{...e,...t}}function rh(e,t,n={}){eh.create+=1;let r=$p(),i=nh(t,n),a=r.enumerableKind?nh(i,e):th(i,e);return r.immutableTypes?Object.freeze(a):a}function ih(e){return tl(e)}function ah(e){return rh({"~kind":`Never`},{not:{}},e)}function oh(e){return ih(e)&&J(e,`~optional`)}function sh(e){return Y(e).filter(t=>!oh(e[t]))}function ch(e,t={}){let n=sh(e);return rh({"~kind":`Object`},{type:`object`,...n.length>0?{required:n}:{},properties:e},t)}function lh(e){return rh({"~kind":`Unknown`},{},e)}function uh(e){return rh({"~kind":`BigInt`},{type:`bigint`},e)}var dh=`-?(?:0|[1-9][0-9]*)`;function fh(e){return rh({"~kind":`Integer`},{type:`integer`},e)}var ph=class extends Error{constructor(e){super(`Invalid Literal value`),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};function mh(e){return qc(e)?`bigint`:Jc(e)?`boolean`:$c(e)?`number`:nl(e)?`string`:(()=>{throw new ph(e)})()}function hh(e,t){return rh({"~kind":`Literal`},{type:mh(e),const:e},t)}var gh=`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`;function _h(e){return rh({"~kind":`Number`},{type:`number`},e)}function vh(e){return rh({"~kind":`String`},{type:`string`},e)}function yh(e,t={}){return rh({"~kind":`Union`},{anyOf:e},t)}var bh=`^${dh}$`;`${gh}`;function xh(e){return uh()}function Sh(e){return vh()}function Ch(e){return _h()}function wh(e){return fh()}function Th(e){return ah()}function Eh(e){return hh(e)}function Dh(e){return e}function Oh(e){return yh(e[1])}function kh(e){return e.length===3?[...e[0],...e[2]]:e.length===1?[...e[0]]:[]}function Ah(e){return[e[0],...e[1]]}function jh(e){return e}function Mh(e){return q(e.length,2)}function Nh(e,t,n){return Mh(e)?t(e[0],e[1]):n()}function Ph(e,t){return q(t.indexOf(e),0)?[e,t.slice(e.length)]:[]}function Fh(e,t){for(let n=0;n<e.length;n++){let r=Ph(e[n],t);if(Mh(r))return r}return[]}function Ih(e,t){return Array.from({length:t-e+1},(t,n)=>String.fromCharCode(e+n))}var Lh=[...Ih(97,122),...Ih(65,90)],Rh=[`0`,...Ih(49,57)],zh=`//`,Bh=`/*`,Vh=`*/`;function Hh(e){let t=e.indexOf(Vh);return q(t,-1)?``:e.slice(t+2)}function Uh(e){let t=e.indexOf(`
|
|
6
|
-
`);return q(t,-1)?``:e.slice(t)}function Wh(e){return e.replace(/^[ \t\r\f\v]+/,``)}function Gh(e){let t=Wh(e);return t.startsWith(Bh)?Gh(Hh(t.slice(2))):t.startsWith(zh)?Gh(Uh(t.slice(2))):t}function Kh(e){let t=e.trimStart();return t.startsWith(Bh)?Kh(Hh(t.slice(2))):t.startsWith(zh)?Kh(Uh(t.slice(2))):t}[...Rh];function qh(e,t){return Fh([e],t)}function Jh(e,t){return q(e,``)?[``,t]:e.startsWith(`
|
|
7
|
-
`)?qh(e,Gh(t)):e.startsWith(` `)?qh(e,t):qh(e,Kh(t))}[...Lh,...Rh],[...Rh];function Yh(e){return q(e,``)?[]:[e.slice(0,1),e.slice(1)]}function Xh(e,t){return hl(e,(e,n)=>t.startsWith(e)?!0:Xh(n,t),()=>!1)}function Zh(e,t,n=``){return Nh(Yh(t),(r,i)=>Xh(e,t)?[n,t]:Zh(e,i,`${n}${r}`),()=>[])}function Qh(e,t){return Nh(Zh(e,t),(e,t)=>q(e,``)?[]:[e,t],()=>[])}var $=(e,t,n=()=>[])=>e.length===2?t(e):n(),$h=e=>$(Jh(`-?(?:0|[1-9][0-9]*)n`,e),([e,t])=>[xh(e),t]),eg=e=>$(Jh(`.*`,e),([e,t])=>[Sh(e),t]),tg=e=>$(Jh(`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,e),([e,t])=>[Ch(e),t]),ng=e=>$(Jh(`-?(?:0|[1-9][0-9]*)`,e),([e,t])=>[wh(e),t]),rg=e=>$(Jh(`(?!)`,e),([e,t])=>[Th(e),t]),ig=e=>$(Qh([`-?(?:0|[1-9][0-9]*)n`,`.*`,`-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?`,`-?(?:0|[1-9][0-9]*)`,`(?!)`,`(`,`)`,`$`,`|`],e),([e,t])=>[Eh(e),t]),ag=e=>$($($h(e),([e,t])=>[e,t],()=>$(eg(e),([e,t])=>[e,t],()=>$(tg(e),([e,t])=>[e,t],()=>$(ng(e),([e,t])=>[e,t],()=>$(rg(e),([e,t])=>[e,t],()=>$(og(e),([e,t])=>[e,t],()=>$(ig(e),([e,t])=>[e,t],()=>[]))))))),([e,t])=>[Dh(e),t]),og=e=>$($(Jh(`(`,e),([e,t])=>$(lg(t),([t,n])=>$(Jh(`)`,n),([n,r])=>[[e,t,n],r]))),([e,t])=>[Oh(e),t]),sg=e=>$($($(cg(e),([e,t])=>$(Jh(`|`,t),([t,n])=>$(sg(n),([n,r])=>[[e,t,n],r]))),([e,t])=>[e,t],()=>$($(cg(e),([e,t])=>[[e],t]),([e,t])=>[e,t],()=>$([[],e],([e,t])=>[e,t],()=>[]))),([e,t])=>[kh(e),t]),cg=e=>$($(ag(e),([e,t])=>$(lg(t),([t,n])=>[[e,t],n])),([e,t])=>[Ah(e),t]),lg=e=>$($(sg(e),([e,t])=>[e,t],()=>$(cg(e),([e,t])=>[e,t],()=>[])),([e,t])=>[jh(e),t]);new RegExp(bh),BigInt(2**53-1),BigInt(-(2**53-1)),yh([ch({type:hh(`insert`),path:vh(),value:lh()}),Object({type:hh(`update`),path:vh(),value:lh()}),ch({type:hh(`delete`),path:vh()})]);var ug=e=>typeof e==`object`&&!!e&&!Array.isArray(e),dg={path:`Internal path`,startLine:`Start line`,lineCount:`Line count`,offset:`Start offset`,limit:`Item count`},fg=[`$ref`,`allOf`,`anyOf`,`oneOf`,`not`,`if`,`then`,`else`,`dependentRequired`,`dependentSchemas`,`patternProperties`,`unevaluatedProperties`],pg=e=>!fg.some(t=>t in e),mg=e=>e===null||[`string`,`number`,`boolean`].includes(typeof e);function hg(e){if(e.type!==`object`||!pg(e))return{fields:[],json:!0};let t=e.properties??{};if(!ug(t)||!Object.keys(t).length&&e.additionalProperties!==!1)return{fields:[],json:!0};let n=Array.isArray(e.required)?e.required:[],r=[];for(let[e,i]of Object.entries(t)){if(!ug(i)||!pg(i))return{fields:[],json:!0};let t=Array.isArray(i.enum)&&i.enum.length>0&&i.enum.every(mg)?i.enum:void 0,a=t?`enum`:i.type;if(a!==`string`&&a!==`integer`&&a!==`number`&&a!==`boolean`&&a!==`enum`)return{fields:[],json:!0};r.push({name:e,label:typeof i.title==`string`?i.title:dg[e]??e,description:typeof i.description==`string`?i.description:void 0,kind:a,required:n.includes(e),options:t,default:i.default,minimum:typeof i.minimum==`number`?i.minimum:void 0,maximum:typeof i.maximum==`number`?i.maximum:void 0,minLength:typeof i.minLength==`number`?i.minLength:void 0,maxLength:typeof i.maxLength==`number`?i.maxLength:void 0})}return n.some(e=>typeof e!=`string`||!Object.hasOwn(t,e))?{fields:[],json:!0}:{fields:r,json:!1}}function gg(e,t=!1){let n={startLine:1,lineCount:80,offset:0,limit:100};return Object.fromEntries(e.map(e=>{let r=e.default===void 0?t?n[e.name]:void 0:e.default;return[e.name,r===void 0?``:e.kind===`enum`?String(e.options?.findIndex(e=>JSON.stringify(e)===JSON.stringify(r))??-1):String(r)]}))}function _g(e){if(ug(e.default))return JSON.stringify(e.default,null,2);let t={};if(ug(e.properties))for(let[n,r]of Object.entries(e.properties))ug(r)&&r.default!==void 0&&Object.defineProperty(t,n,{value:r.default,enumerable:!0});return JSON.stringify(t,null,2)}function vg(e,t){if(!ug(t))throw Error(`Tool input must be a JSON object.`);if(new TextEncoder().encode(JSON.stringify({arguments:t})).byteLength>32768)throw Error(`Tool input must be at most 32KiB.`);if(!Qm(e,t)){let n=$m(e,t)[0];throw Error(`Check the tool input format.${n?` ${n.message}`:``}`)}return t}function yg(e,t,n){let r={};for(let e of t){let t=n[e.name]??``;if(!t&&!e.required)continue;let i;if(e.kind===`enum`){if(!/^\d+$/.test(t)||!e.options||Number(t)>=e.options.length)throw Error(`Select a value for ${e.label}.`);i=e.options[Number(t)]}else if(e.kind===`boolean`){if(t!==`true`&&t!==`false`)throw Error(`Select a value for ${e.label}.`);i=t===`true`}else if(e.kind===`number`||e.kind===`integer`){let n=t.trim();if(!/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(n))throw Error(`Enter a number for ${e.label}.`);if(i=Number(n),!Number.isFinite(i)||e.kind===`integer`&&!Number.isSafeInteger(i))throw Error(`Check the number format for ${e.label}.`)}else i=t;Object.defineProperty(r,e.name,{value:i,enumerable:!0})}return vg(e,r)}function bg(e,t){let n;try{n=JSON.parse(t)}catch{throw Error(`Enter valid JSON.`)}return vg(e,n)}var xg={class:`human-review`,"aria-label":`Human review`},Sg={key:0,class:`inline-error`,role:`status`},Cg={key:1,class:`claim-progress`,"aria-label":`Claim preparation`},wg={class:`claim-progress-title`,role:`status`},Tg={key:0},Eg={key:0,class:`muted`},Dg={key:1,class:`muted`},Og={key:2,class:`muted`},kg={class:`claim-progress-facts`},Ag={class:`claim-attempt-id`},jg=[`datetime`],Mg={key:0},Ng={key:0},Pg={key:3,class:`muted`},Fg={key:4,class:`inline-error`,role:`status`},Ig={key:5,class:`claim-phase-timings`},Lg={key:2,class:`claim-callout`},Rg=[`disabled`],zg={key:3,class:`other-reviewer`},Bg={key:4,class:`other-reviewer`},Vg={id:`artifact-preview-title`,class:`section-title`},Hg={class:`muted`},Ug={key:0,class:`inline-error`,role:`status`},Wg={class:`artifact-tool-heading`},Gg={id:`human-tools-title`,class:`section-title`},Kg={key:0,class:`inline-error`,role:`status`},qg={key:1,class:`muted`},Jg={class:`tool-choices`},Yg=[`aria-pressed`,`disabled`,`onClick`],Xg={class:`artifact-description`},Zg={key:0,class:`form-label`},Qg=[`disabled`],$g={key:1,class:`tool-fields`},e_={key:0},t_=[`onUpdate:modelValue`,`required`,`disabled`],n_=[`value`],r_=[`onUpdate:modelValue`,`required`,`disabled`],i_=[`value`,`type`,`min`,`max`,`step`,`minlength`,`maxlength`,`required`,`placeholder`,`disabled`,`onInput`],a_={key:3,class:`tool-field-description`},o_={key:2,class:`tool-schema`},s_=[`disabled`],c_=[`disabled`],l_=[`disabled`],u_={class:`form-label`},d_=[`disabled`],f_={class:`form-label`},p_=[`disabled`],m_={class:`submit-row`},h_=[`disabled`],g_={key:7,class:`inline-error action-error`,role:`alert`},__=wr({__name:`HumanReview`,props:{detail:{},session:{},sessionError:{}},emits:[`updated`,`refresh`,`sessionExpired`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=L(null),o=L(``),s=L(``),c=L({}),l=L(null),u=L({}),d=L(`{}`),f=L(!1),p=L(``),m=L(``),h=L(`GREEN`),g=L(null),_=L(null),v=L(``),y=G(()=>r.detail.tools?.find(e=>e.name===s.value)),b=G(()=>new Set(jc(v.value,r.detail.artifacts,r.detail.artifactGroups))),x=G(()=>r.detail.tools?.filter(e=>!v.value||b.value.has(e.artifactId))??[]),S=G(()=>!!(r.session&&r.detail.human?.canComplete)),C=G(()=>Os(r.detail.request.projectId,r.detail.request.id)),w=G(()=>hg(y.value?.inputSchema??{type:`object`,additionalProperties:!1})),T=G(()=>w.value.fields),E=G(()=>w.value.json||f.value),D,O,ee=!0,te=new Set,ne=L(Date.now()),k=G(()=>r.detail.human?.preparation),A=G(()=>k.value?.status),re=G(()=>A.value===`preparing`),j=G(()=>re.value&&Date.parse(k.value.expiresAt)<=ne.value),ie=G(()=>{let e=k.value;return e?.completedAt?Date.parse(e.completedAt):A.value===`expired`&&e?Date.parse(e.expiresAt):ne.value}),ae=G(()=>A.value===`released`?`Preparation released`:A.value===`expired`?`Preparation expired`:A.value===`claimed`?`Assignment confirmed`:j.value?`Awaiting preparation update`:k.value?.preparingByMe?`Preparing your review`:`Another reviewer is preparing`),M=setInterval(()=>{ne.value=Date.now()},1e3),oe;function se(e){return{"validating-input":`Validating fixed input`,"checking-manifest":`Checking the tool manifest`,"checking-environment":`Checking environment requirements`,"preflighting-tools":`Preflighting tools`,"final-validation":`Final input validation`,"confirming-assignment":`Confirming assignment`}[e]??`Preparing review input`}function ce(e){let t=Math.max(0,Math.floor(e/1e3));return t>=60?`${Math.floor(t/60)}m ${t%60}s`:`${t}s`}nr([k,A],([e,t])=>{O&&e&&e.id!==oe&&t!==`preparing`&&a.value===`claim`&&(a.value=null)});function le(e){let t=e.operation===`read`?`Read`:e.operation===`list`?`List`:e.name.startsWith(`open_`)?`Open`:e.name.slice(0,-(e.artifactId.length+1));return`${e.artifactId} · ${t}`}function ue(e){s.value=e.name,c.value={},o.value=``,l.value=null,c.value=gg(hg(e.inputSchema).fields,r.detail.artifactPreview!==`tools`),d.value=_g(e.inputSchema),f.value=!1}function de(e){let t=new Set(jc(e,r.detail.artifacts,r.detail.artifactGroups)),n=r.detail.tools?.find(e=>t.has(e.artifactId));n&&!a.value&&(v.value=e,(!y.value||!t.has(y.value.artifactId))&&ue(n),Ln(()=>{_.value?.scrollIntoView({block:`nearest`}),_.value?.focus({preventScroll:!0})}))}t({showArtifactTools:de});function fe(e,t){t.target instanceof HTMLInputElement&&(c.value[e]=t.target.value)}function pe(e){if(S.value&&!a.value){if(ue(e),E.value||T.value.some(e=>e.required&&!c.value[e.name])){Ln(()=>g.value?.querySelector(`input[required], select[required], textarea, input`)?.focus());return}_e(void 0,e)}}nr(()=>r.detail.tools?.map(e=>e.name).join(`\0`),()=>{!y.value&&r.detail.tools?.[0]&&ue(r.detail.tools[0])},{immediate:!0});function me(e){o.value=ks(e),e instanceof Es&&e.status===403&&i(`sessionExpired`),e instanceof Es&&e.status===409&&i(`refresh`)}async function he(){if(!r.session||a.value||!r.detail.human?.canClaim)return;a.value=`claim`,o.value=``,oe=k.value?.id;let e=new AbortController;O=e,te.add(e);try{let t=await Ds(`${C.value}/claim`,{body:{},csrfToken:r.session.csrfToken,signal:e.signal});ee&&O===e&&i(`updated`,t)}catch(t){ee&&O===e&&(me(t),i(`refresh`))}finally{te.delete(e),O===e&&(O=void 0,a.value===`claim`&&(a.value=null))}}function ge(){if(y.value){if(f.value)try{let e=bg(y.value.inputSchema,d.value);if(Object.keys(e).some(e=>!T.value.some(t=>t.name===e)))throw Error(`Edit additional properties in the JSON input.`);c.value=gg(T.value.map(t=>({...t,default:e[t.name]})))}catch(e){o.value=ks(e);return}else try{d.value=JSON.stringify(yg(y.value.inputSchema,T.value,c.value),null,2)}catch{d.value=_g(y.value.inputSchema)}f.value=!f.value}}async function _e(e,t=y.value){if(t&&r.session&&S.value&&!a.value){o.value=``;try{let n=e?vg(t.inputSchema,e):E.value?bg(t.inputSchema,d.value):yg(t.inputSchema,T.value,c.value);a.value=`tool`,D=new AbortController,l.value=null;let o=await Ds(`${C.value}/tools/${encodeURIComponent(t.name)}`,{body:{arguments:n},csrfToken:r.session.csrfToken,signal:D.signal});if(!ee)return;u.value=n,l.value=o.result,i(`refresh`)}catch(e){ee&&me(e)}finally{a.value=null}}}function ve(e){for(let[t,n]of Object.entries(e))c.value[t]=String(n);let t={...u.value,...e};d.value=JSON.stringify(t,null,2),_e(t)}function ye(e,t){let n=r.detail.tools?.find(t=>t.artifactId===y.value?.artifactId&&t.operation===e);n&&(ue(n),c.value.path=t,_e({path:t},n))}async function be(){if(!r.session||!S.value||a.value)return;let e=m.value.split(`
|
|
8
|
-
`).map(e=>e.trim()).filter(Boolean);if(!p.value.trim()||!e.length){o.value=`Enter a review summary and evidence.`;return}if(e.length>100||e.some(e=>e.length>4e3)){o.value=`Provide up to 100 evidence entries, each at most 4,000 characters.`;return}let t={verdict:h.value,summary:p.value.trim(),evidence:e};if(new TextEncoder().encode(JSON.stringify(t)).byteLength>32768){o.value=`The summary and evidence are too long. Please shorten them.`;return}a.value=`complete`,o.value=``;try{let e=await Ds(`${C.value}/complete`,{body:t,csrfToken:r.session.csrfToken});ee&&i(`updated`,e)}catch(e){ee&&me(e)}finally{a.value=null}}return Jr(()=>{ee=!1,clearInterval(M),D?.abort();for(let e of te)e.abort()}),(t,n)=>(B(),V(`section`,xg,[e.sessionError?(B(),V(`p`,Sg,N(e.sessionError),1)):W(``,!0),k.value?(B(),V(`section`,Cg,[H(`p`,wg,[H(`strong`,null,N(ae.value),1),re.value?(B(),V(`span`,Tg,N(se(k.value.phase)),1)):W(``,!0)]),A.value===`released`||A.value===`expired`?(B(),V(`p`,Eg,N(k.value.nextAction??`This attempt ended without an assignment. Review any reported error, then claim the review to try again.`),1)):W(``,!0),j.value?(B(),V(`p`,Dg,`The last observed reservation has expired. Waiting for the server to confirm whether preparation is still active.`)):W(``,!0),k.value.previousAttemptId?(B(),V(`p`,Og,`Replaces attempt `+N(k.value.previousAttemptId)+`.`,1)):W(``,!0),H(`dl`,kg,[H(`div`,null,[n[7]||=H(`dt`,null,`Attempt`,-1),H(`dd`,Ag,N(k.value.id),1)]),H(`div`,null,[n[8]||=H(`dt`,null,`Elapsed`,-1),H(`dd`,null,N(ce(ie.value-Date.parse(k.value.startedAt))),1)]),H(`div`,null,[n[9]||=H(`dt`,null,`Last heartbeat`,-1),H(`dd`,null,[H(`time`,{datetime:k.value.heartbeatAt},N(sn(Ns)(k.value.heartbeatAt)),9,jg),re.value?(B(),V(`span`,Mg,` · `+N(ce(ne.value-Date.parse(k.value.heartbeatAt)))+` ago`,1)):W(``,!0)])]),re.value?(B(),V(`div`,Ng,[n[10]||=H(`dt`,null,`Current phase`,-1),H(`dd`,null,N(ce(ne.value-Date.parse(k.value.phaseStartedAt))),1)])):W(``,!0)]),re.value&&k.value.progress?(B(),V(`p`,Pg,N(k.value.progress.kind===`content`?`Content scan`:`Metadata scan`)+`: `+N(k.value.progress.files.toLocaleString())+` files · `+N((k.value.progress.bytes/1024/1024).toFixed(1))+` MiB checked`,1)):W(``,!0),re.value&&ne.value-Date.parse(k.value.heartbeatAt)>15e3?(B(),V(`p`,Fg,`No recent preparation heartbeat. Waiting for an update; an expired attempt can be claimed again.`)):W(``,!0),k.value.timings.length?(B(),V(`details`,Ig,[n[11]||=H(`summary`,null,`Phase timings`,-1),H(`dl`,null,[(B(!0),V(z,null,R(k.value.timings,(e,t)=>(B(),V(`div`,{key:t},[H(`dt`,null,N(se(e.phase)),1),H(`dd`,null,N(ce(e.durationMs)),1)]))),128))])])):W(``,!0)])):W(``,!0),!re.value&&(e.detail.human?.canClaim||a.value===`claim`)?(B(),V(`div`,Lg,[H(`div`,null,[H(`strong`,null,N(a.value===`claim`?`Starting your claim attempt.`:`Claim this review.`),1),n[12]||=H(`p`,null,`The input and environment are checked before your assignment is confirmed.`,-1)]),H(`button`,{class:`primary-button`,disabled:!e.session||!!a.value,onClick:he},N(a.value===`claim`?`Starting…`:`Claim review`),9,Rg)])):!k.value&&e.detail.human?.tryClaim?(B(),V(`p`,zg,N(e.detail.human.tryClaim.preparingByMe?`Your review input and environment are being prepared.`:`Another reviewer is preparing this review.`),1)):!re.value&&!e.detail.human?.claimedByMe?(B(),V(`p`,Bg,N(e.detail.request.claimedBy?`Another reviewer has claimed this review.`:`Waiting for the review to be ready.`),1)):W(``,!0),!e.detail.human?.claimedByMe&&v.value?(B(),V(`section`,{key:5,ref_key:`toolsRegion`,ref:_,class:`artifact-tool-preview`,tabindex:`-1`,"aria-labelledby":`artifact-preview-title`},[H(`h3`,Vg,N(v.value)+` · Available tools`,1),H(`p`,Hg,N(e.detail.human?.canClaim?`Claim the review to use these tools.`:`Only the assigned reviewer can run these tools.`),1),H(`ul`,null,[(B(!0),V(z,null,R(x.value,e=>(B(),V(`li`,{key:e.name},[H(`strong`,null,N(le(e)),1),H(`p`,null,N(e.description),1)]))),128))])],512)):W(``,!0),e.detail.human?.claimedByMe?(B(),V(z,{key:6},[n[24]||=H(`div`,{class:`human-heading`},[H(`span`,{class:`assigned-mark`},`✓ Assigned to me`),H(`span`,{class:`muted`},`Submit your result after reviewing.`)],-1),e.detail.human?.canComplete?W(``,!0):(B(),V(`p`,Ug,N(e.detail.request.waitingReason??`Tools and result submission will be available when the review is ready.`),1)),H(`section`,{ref_key:`toolsRegion`,ref:_,class:`review-tools`,tabindex:`-1`,"aria-labelledby":`human-tools-title`},[H(`div`,Wg,[H(`h3`,Gg,N(v.value?`${v.value} · Available tools`:`Available tools`),1),v.value?(B(),V(`button`,{key:0,type:`button`,class:`text-button`,onClick:n[0]||=e=>v.value=``},`All tools`)):W(``,!0)]),e.detail.toolIssue?(B(),V(`p`,Kg,N(e.detail.toolIssue),1)):e.detail.tools?.length?W(``,!0):(B(),V(`p`,qg,`No tools are registered.`)),H(`div`,Jg,[(B(!0),V(z,null,R(x.value,e=>(B(),V(`button`,{key:e.name,class:`artifact-choice`,"aria-pressed":e.name===s.value,disabled:!S.value||!!a.value,onClick:t=>pe(e)},N(le(e)),9,Yg))),128))]),y.value?(B(),V(`form`,{key:2,ref_key:`toolForm`,ref:g,class:`tool-form`,onSubmit:n[2]||=ys(e=>_e(),[`prevent`])},[H(`p`,Xg,N(y.value.description),1),E.value?(B(),V(`label`,Zg,[n[13]||=H(`span`,null,`Tool input · JSON`,-1),Xn(H(`textarea`,{"onUpdate:modelValue":n[1]||=e=>d.value=e,class:`tool-json-input`,rows:`7`,required:``,spellcheck:`false`,disabled:!!a.value},null,8,Qg),[[ds,d.value]])])):T.value.length?(B(),V(`div`,$g,[(B(!0),V(z,null,R(T.value,e=>(B(),V(`label`,{key:e.name,class:xe({wide:e.kind===`string`})},[H(`span`,null,[Va(N(e.label),1),e.required?W(``,!0):(B(),V(`small`,e_,` Optional`))]),e.kind===`enum`?Xn((B(),V(`select`,{key:0,"onUpdate:modelValue":t=>c.value[e.name]=t,required:e.required,disabled:!!a.value},[n[14]||=H(`option`,{value:``},`Select a value`,-1),(B(!0),V(z,null,R(e.options,(e,t)=>(B(),V(`option`,{key:t,value:String(t)},N(typeof e==`string`?e:JSON.stringify(e)),9,n_))),128))],8,t_)),[[ps,c.value[e.name]]]):e.kind===`boolean`?Xn((B(),V(`select`,{key:1,"onUpdate:modelValue":t=>c.value[e.name]=t,required:e.required,disabled:!!a.value},[...n[15]||=[H(`option`,{value:``},`Select a value`,-1),H(`option`,{value:`true`},`Yes`,-1),H(`option`,{value:`false`},`No`,-1)]],8,r_)),[[ps,c.value[e.name]]]):(B(),V(`input`,{key:2,value:c.value[e.name],type:e.kind===`string`?`text`:`number`,min:e.minimum,max:e.maximum,step:e.kind===`integer`?1:e.kind===`number`?`any`:void 0,minlength:e.minLength,maxlength:e.maxLength,required:e.required&&(e.kind!==`string`||!!e.minLength),placeholder:e.name===`path`?`Path within Artifact`:void 0,disabled:!!a.value,onInput:t=>fe(e.name,t)},null,40,i_)),e.description?(B(),V(`span`,a_,N(e.description),1)):W(``,!0)],2))),128))])):W(``,!0),E.value?(B(),V(`details`,o_,[n[16]||=H(`summary`,null,`View input schema`,-1),H(`pre`,null,N(JSON.stringify(y.value.inputSchema,null,2)),1)])):W(``,!0),!w.value.json&&(T.value.length||y.value.inputSchema.additionalProperties!==!1)?(B(),V(`button`,{key:3,class:`text-button tool-input-mode`,type:`button`,disabled:!!a.value,onClick:ge},N(f.value?`Switch to form fields`:`Enter JSON`),9,s_)):W(``,!0),H(`button`,{class:`secondary-button`,type:`submit`,disabled:!S.value||!!a.value},N(a.value===`tool`?`Running…`:y.value.operation===`read`?`Read`:y.value.operation===`list`?`List files`:`Run tool`),9,c_)],544)):W(``,!0),l.value===null?W(``,!0):(B(),Na(Ec,{key:3,result:l.value,"can-read":!!e.detail.tools?.some(e=>e.artifactId===y.value?.artifactId&&e.operation===`read`),"can-list":!!e.detail.tools?.some(e=>e.artifactId===y.value?.artifactId&&e.operation===`list`),busy:!!a.value,onPage:ve,onNavigate:ye},null,8,[`result`,`can-read`,`can-list`,`busy`]))],512),H(`form`,{class:`verdict-form`,onSubmit:ys(be,[`prevent`])},[n[23]||=H(`h3`,{class:`section-title`},`Review result`,-1),H(`fieldset`,{class:`verdict-options`,disabled:!S.value||!!a.value},[n[19]||=H(`legend`,{class:`sr-only`},`Verdict`,-1),H(`label`,{class:xe({chosen:h.value===`GREEN`})},[Xn(H(`input`,{"onUpdate:modelValue":n[3]||=e=>h.value=e,type:`radio`,value:`GREEN`},null,512),[[fs,h.value]]),n[17]||=H(`span`,null,[H(`strong`,null,`GREEN`),Va(` Criteria met`)],-1)],2),H(`label`,{class:xe({chosen:h.value===`RED`})},[Xn(H(`input`,{"onUpdate:modelValue":n[4]||=e=>h.value=e,type:`radio`,value:`RED`},null,512),[[fs,h.value]]),n[18]||=H(`span`,null,[H(`strong`,null,`RED`),Va(` Criteria not met`)],-1)],2)],8,l_),H(`label`,u_,[n[20]||=H(`span`,null,`Review summary`,-1),Xn(H(`textarea`,{"onUpdate:modelValue":n[5]||=e=>p.value=e,rows:`3`,required:``,maxlength:`12000`,placeholder:`Briefly explain your verdict.`,disabled:!S.value||!!a.value},null,8,d_),[[ds,p.value]])]),H(`label`,f_,[n[21]||=H(`span`,null,[Va(`Evidence `),H(`small`,null,`One entry per line`)],-1),Xn(H(`textarea`,{"onUpdate:modelValue":n[6]||=e=>m.value=e,rows:`3`,required:``,maxlength:`24000`,placeholder:`Describe what you inspected or cite relevant locations.`,disabled:!S.value||!!a.value},null,8,p_),[[ds,m.value]])]),H(`div`,m_,[n[22]||=H(`p`,null,`Your verdict will be saved as the result of this request.`,-1),H(`button`,{class:`primary-button`,type:`submit`,disabled:!S.value||!!a.value},N(a.value===`complete`?`Submitting…`:`Submit result`),9,h_)])],32)],64)):W(``,!0),o.value?(B(),V(`p`,g_,N(o.value),1)):W(``,!0)]))}}),v_=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},y_=v_(__,[[`__scopeId`,`data-v-77faf6da`]]),b_={class:`instruction`},x_=[`aria-label`,`onClick`],S_=[`title`],C_=wr({__name:`ArtifactInstruction`,props:{instruction:{},artifacts:{},artifactGroups:{},tools:{},active:{type:Boolean}},emits:[`artifact`],setup(e,{emit:t}){let n=e,r=t,i=G(()=>Ac(n.instruction,n.artifacts,n.artifactGroups)),a=G(()=>{let e=new Set(n.tools.map(e=>e.artifactId));return new Set([...n.artifacts,...n.artifactGroups??[]].filter(t=>jc(t.id,n.artifacts,n.artifactGroups).some(t=>e.has(t))).map(e=>e.id))});return(t,n)=>(B(),V(`p`,b_,[(B(!0),V(z,null,R(i.value,(t,n)=>(B(),V(z,{key:n},[t.type===`text`?(B(),V(z,{key:0},[Va(N(t.text),1)],64)):e.active&&a.value.has(t.artifactId)?(B(),V(`button`,{key:1,type:`button`,class:`instruction-artifact`,"aria-label":`Show Human tools for ${t.artifactId}`,onClick:e=>r(`artifact`,t.artifactId)},N(t.artifactId),9,x_)):(B(),V(`span`,{key:2,class:`instruction-artifact static`,title:`${t.artifactId} Artifact${e.active?` · No Human tools available`:``}`},N(t.artifactId),9,S_))],64))),128))]))}}),w_={class:`drawer-content`},T_={class:`detail-top`},E_={class:`detail-project`},D_={id:`request-title`},O_={key:0,class:`inline-error`,role:`status`},k_={key:1,class:`artifact-message`},A_={class:`detail-meta`},j_={key:0,class:`assigned-mark`},M_={class:`detail-tabs`,role:`tablist`,"aria-label":`Request information`},N_=[`aria-selected`,`tabindex`],P_=[`aria-selected`,`tabindex`],F_={id:`review-panel`,role:`tabpanel`,"aria-labelledby":`review-tab`},I_={key:0,class:`result-label error`},L_={key:1,class:`result-label red`},R_={key:2,class:`result-label green`},z_={key:3,class:`evidence`,open:``},B_={key:1,class:`outcome`},V_={key:2,class:`inline-error`},H_={class:`request-instruction`},U_={key:1,class:`instruction`},W_={key:2,class:`profile-description`},G_={key:4,class:`detail-section`},K_={class:`timeline`},q_=[`datetime`],J_={key:0,id:`artifacts-panel`,role:`tabpanel`,"aria-labelledby":`artifacts-tab`},Y_={key:0,class:`artifact-group-references`},X_=wr({__name:`RequestDrawer`,props:{selection:{},detail:{},error:{},session:{},sessionError:{},projectName:{}},emits:[`close`,`refresh`,`updated`,`sessionExpired`],setup(e,{emit:t}){let n=t,r=L(null),i=L(null),a=L(`review`),o=L(null);function s(e){(e.key===`ArrowRight`||e.key===`ArrowLeft`)&&(e.preventDefault(),a.value=a.value===`review`?`artifacts`:`review`,Ln(()=>r.value?.querySelector(`[role="tab"][aria-selected="true"]`)?.focus()))}return Wr(()=>{r.value?.showModal(),document.body.classList.add(`drawer-open`),i.value?.focus({preventScroll:!0})}),Jr(()=>{r.value?.close(),document.body.classList.remove(`drawer-open`)}),(t,c)=>(B(),V(`dialog`,{ref_key:`dialog`,ref:r,class:`request-drawer`,"aria-labelledby":`request-title`,onCancel:c[9]||=ys(e=>n(`close`),[`prevent`]),onClick:c[10]||=e=>{e.target===r.value&&n(`close`)}},[H(`div`,w_,[H(`div`,T_,[H(`span`,E_,N(e.projectName),1),H(`button`,{ref_key:`closeButton`,ref:i,class:`icon-button`,"aria-label":`Close request details`,onClick:c[0]||=e=>n(`close`)},[...c[11]||=[H(`svg`,{viewBox:`0 0 20 20`,fill:`none`,"aria-hidden":`true`},[H(`path`,{d:`m5 5 10 10M15 5 5 15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`})],-1)]],512)]),H(`h2`,D_,N(e.detail?.request.title??`Review request`),1),e.error?(B(),V(`p`,O_,[Va(N(e.error)+` `,1),H(`button`,{class:`text-button`,onClick:c[1]||=e=>n(`refresh`)},`Check again`)])):W(``,!0),!e.detail&&!e.error?(B(),V(`p`,k_,`Loading request…`)):W(``,!0),e.detail?(B(),V(z,{key:2},[H(`div`,A_,[H(`span`,{class:xe([`card-status`,e.detail.request.status.toLowerCase()])},N(sn(js)(e.detail.request)),3),H(`span`,null,N(sn(As)[e.detail.profile.kind]),1),e.detail.human?.claimedByMe?(B(),V(`span`,j_,`Assigned to me`)):W(``,!0)]),H(`div`,M_,[H(`button`,{id:`review-tab`,role:`tab`,"aria-selected":a.value===`review`,tabindex:a.value===`review`?0:-1,"aria-controls":`review-panel`,onClick:c[2]||=e=>a.value=`review`,onKeydown:s},`Review`,40,N_),H(`button`,{id:`artifacts-tab`,role:`tab`,"aria-selected":a.value===`artifacts`,tabindex:a.value===`artifacts`?0:-1,"aria-controls":`artifacts-panel`,onClick:c[3]||=e=>a.value=`artifacts`,onKeydown:s},`Artifact`,40,P_)]),Xn(H(`div`,F_,[e.detail.result||e.detail.error?(B(),V(z,{key:0},[e.detail.request.status===`ERROR`?(B(),V(`p`,I_,`ERROR · The review could not run.`)):e.detail.request.status===`RED`?(B(),V(`p`,L_,`RED · Review criteria were not met.`)):(B(),V(`p`,R_,`GREEN · Review criteria were met.`)),H(`p`,{class:xe([`outcome`,{error:e.detail.error}])},N(e.detail.error??e.detail.result?.summary),3),e.detail.result?.evidence.length?(B(),V(`details`,z_,[H(`summary`,null,`Evidence entries: `+N(e.detail.result.evidence.length),1),H(`ul`,null,[(B(!0),V(z,null,R(e.detail.result.evidence,(e,t)=>(B(),V(`li`,{key:t},N(e),1))),128))])])):W(``,!0)],64)):e.detail.request.waitingReason&&e.detail.profile.kind!==`human`?(B(),V(`p`,B_,N(e.detail.request.waitingReason),1)):e.detail.request.workerState===`missing`||e.detail.request.workerState===`unknown`?(B(),V(`p`,V_,N(e.detail.request.waitingReason),1)):W(``,!0),H(`section`,H_,[c[12]||=H(`h3`,{class:`section-title`},`Instructions`,-1),e.detail.profile.kind===`human`?(B(),Na(C_,{key:0,instruction:e.detail.instruction,artifacts:e.detail.artifacts,"artifact-groups":e.detail.artifactGroups,tools:e.detail.tools??[],active:e.detail.request.status===`WAITING_HUMAN`,onArtifact:c[4]||=e=>o.value?.showArtifactTools(e)},null,8,[`instruction`,`artifacts`,`artifact-groups`,`tools`,`active`])):(B(),V(`p`,U_,N(e.detail.instruction),1)),e.detail.profile.kind===`agent`?(B(),V(`p`,W_,N(e.detail.profile.provider)+` · `+N(e.detail.profile.model)+` · `+N(e.detail.profile.reasoning),1)):W(``,!0)]),e.detail.profile.kind===`human`&&e.detail.request.status===`WAITING_HUMAN`?(B(),Na(y_,{key:3,ref_key:`humanReview`,ref:o,detail:e.detail,session:e.session,"session-error":e.sessionError,onUpdated:c[5]||=e=>n(`updated`,e),onRefresh:c[6]||=e=>n(`refresh`),onSessionExpired:c[7]||=e=>n(`sessionExpired`)},null,8,[`detail`,`session`,`session-error`])):W(``,!0),e.detail.timeline.length?(B(),V(`section`,G_,[c[13]||=H(`h3`,{class:`section-title`},`Timeline`,-1),H(`ol`,K_,[(B(!0),V(z,null,R(e.detail.timeline,(e,t)=>(B(),V(`li`,{key:`${e.label}/${t}`},[H(`span`,null,N(e.label),1),H(`time`,{datetime:e.at},N(sn(Ns)(e.at)),9,q_)]))),128))])])):W(``,!0)],512),[[Ao,a.value===`review`]]),a.value===`artifacts`?(B(),V(`div`,J_,[e.detail.artifactGroups?.length?(B(),V(`div`,Y_,[(B(!0),V(z,null,R(e.detail.artifactGroups,e=>(B(),V(`details`,{key:e.id},[H(`summary`,null,[Va(N(e.id)+` `,1),H(`span`,null,`Group · Members: `+N(e.members.length),1)]),H(`p`,null,N(e.members.join(` · `)),1)]))),128))])):W(``,!0),U(nc,{"project-id":e.selection.projectId,"request-id":e.selection.id,artifacts:e.detail.artifacts,preview:e.detail.artifactPreview,"human-review":e.detail.profile.kind===`human`&&e.detail.request.status===`WAITING_HUMAN`,onReview:c[8]||=e=>a.value=`review`},null,8,[`project-id`,`request-id`,`artifacts`,`preview`,`human-review`])])):W(``,!0)],64)):W(``,!0)])],544))}}),Z_=`modulepreload`,Q_=function(e){return`/`+e},$_={},ev=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Q_(t,n),t=s(t),t in $_)return;$_[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Z_,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},tv={class:`app-header`},nv=[`title`],rv={class:`board-main`},iv={class:`page-heading`},av={class:`page-caption`},ov={key:0},sv={class:`board-controls`},cv={class:`project-picker`},lv=[`value`],uv={key:0,class:`project-picker run-picker`},dv=[`disabled`],fv=[`value`],pv=[`value`],mv=[`disabled`],hv={class:`view-toolbar`},gv={class:`view-switch`,role:`group`,"aria-label":`Monitor view`},_v=[`aria-pressed`],vv=[`aria-pressed`],yv=[`aria-pressed`],bv=[`disabled`],xv={key:0,class:`inline-error`,role:`status`},Sv={key:1,class:`inline-error`,role:`status`},Cv={key:2,class:`welcome-note`},wv=[`aria-busy`],Tv=[`aria-labelledby`],Ev={class:`lane-heading`},Dv=[`id`],Ov={class:`lane-count`},kv={key:0,class:`lane-empty`},Av={key:1,class:`lane-empty`},jv={key:2,class:`card-list`},Mv=[`aria-label`,`onClick`],Nv={class:`card-project`},Pv={class:`card-title`},Fv={key:0,class:`worker-note`},Iv={class:`card-footer`},Lv=[`title`],Rv=[`disabled`,`onClick`];Cs(wr({__name:`App`,setup(e){let t=Pr(()=>ev(()=>import(`./GraphView-BSZlEAs3.js`),__vite__mapDeps([0,1]))),n=Pr(()=>ev(()=>import(`./ValidationView-DaEF78J-.js`),__vite__mapDeps([2,3]))),r=[{id:`requested`,label:`Requested`,empty:`No requests are waiting.`},{id:`running`,label:`In progress`,empty:`No reviews are in progress.`},{id:`success`,label:`Succeeded`,empty:`Passed reviews appear here.`},{id:`failure`,label:`Failed`,empty:`Review unmet criteria and execution errors here.`}],i=L([]),a=L(``),o=L(!1),s=L(``);function c(){try{let e=localStorage.getItem(`ccdd.monitor.view`);return e===`graph`||e===`kanban`?e:`validation`}catch{return`validation`}}let l=L(c()),u=L(``),d=L([]),f=L(!1),p=L(``),m=L(!1),h=L(null),g=L(!0),_=L(!1),v=L(``),y=L(Date.now()),b=Kt({requested:[],running:[],success:[],failure:[]}),x=Kt({requested:0,running:0,success:0,failure:0}),S=Kt({requested:1,running:1,success:1,failure:1}),C=Kt({requested:!1,running:!1,success:!1,failure:!1}),w=L(null),T=L(null),E=L(``),D=L(null),O=L(``),ee=G(()=>i.value.filter(e=>e.issue&&(!a.value||e.id===a.value))),te=G(()=>Object.values(x).reduce((e,t)=>e+t,0)),ne=e=>i.value.find(t=>t.id===e)?.name??`Project`,k,A,re,j=0,ie=0,ae=0,M=1,oe=!1,se=!1,ce,le,ue=null;async function de(){if(!(oe||D.value)){oe=!0;try{D.value=await Ds(`/api/session`),O.value=``}catch{O.value=`Unable to connect to the review session. Retrying shortly.`}finally{oe=!1}}}async function fe(e=!1){if(_.value&&!e)return;k?.abort(),k=new AbortController;let t=++j,n=a.value,c=u.value;_.value=!0;try{let e=r.flatMap(e=>Array.from({length:S[e.id]},(t,r)=>Ds(`/api/requests?${new URLSearchParams({lane:e.id,limit:`50`,offset:String(r*50),...n?{project:n,...c?{run:c}:{}}:{}})}`,{signal:k.signal}).then(t=>({lane:e.id,index:r,data:t})))),a=await Promise.all(e);if(t!==j)return;i.value=a[0].data.projects;for(let e of r){let t=a.filter(t=>t.lane===e.id).sort((e,t)=>e.index-t.index);b[e.id]=[...new Map(t.flatMap(e=>e.data.requests).map(e=>[`${e.projectId}/${e.id}`,e])).values()],x[e.id]=t[0].data.total,C[e.id]=t.at(-1).data.hasMore}s.value=a[0].data.observedAt,o.value=!0,v.value=``,g.value=!1,Ce()}catch{if(t!==j)return;o.value=!1,v.value=`Checking the connection. Showing the last observed records.`}finally{t===j&&(_.value=!1)}}async function pe(e=!1){if(!a.value||f.value&&!e)return;re?.abort(),re=new AbortController;let t=++ae,n=a.value;f.value=!0;try{let e=await Promise.all(Array.from({length:M},(e,t)=>Ds(`/api/runs?${new URLSearchParams({project:n,limit:`50`,offset:String(t*50)})}`,{signal:re.signal})));if(t!==ae)return;d.value=[...new Map(e.flatMap(e=>e.runs).map(e=>[e.id,e])).values()],m.value=e.at(-1).hasMore,p.value=``,l.value===`graph`&&!u.value&&d.value.length&&(u.value=T.value?.request.projectId===n?T.value.request.runId:d.value[0].id,ve(),fe(!0))}catch{t===ae&&(p.value=`Unable to refresh Runs. The selected Run is still shown.`)}finally{t===ae&&(f.value=!1)}}async function me(e=!1){if(!w.value||se&&!e)return;A?.abort(),A=new AbortController;let t=++ie,n={...w.value};se=!0;try{let e=await Ds(Os(n.projectId,n.id),{signal:A.signal});if(t!==ie)return;T.value=e,E.value=``}catch{t===ie&&(E.value=T.value?`Unable to refresh the request. Showing the last observed record.`:`Unable to load the request. Please try again.`)}finally{t===ie&&(se=!1)}}function he(e){w.value?.id===e.request.id&&w.value.projectId===e.request.projectId&&(ie++,A?.abort(),se=!1,T.value=e,E.value=``,fe(!0),pe(!0),h.value?.refresh(!0))}function ge(e,t=!0){ue=document.activeElement instanceof HTMLElement?document.activeElement:null,w.value={projectId:e.projectId,id:e.id},T.value=null,E.value=``,t&&history.replaceState(null,``,`#${encodeURIComponent(e.projectId)}/${encodeURIComponent(e.id)}`),me(!0)}function _e(e=!0){w.value=null,T.value=null,ie++,A?.abort(),se=!1,e&&history.replaceState(null,``,location.pathname+location.search),Ln(()=>ue?.isConnected&&ue.focus({preventScroll:!0}))}function ve(){for(let e of r)b[e.id]=[],x[e.id]=0,S[e.id]=1,C[e.id]=!1;g.value=!0}function ye(){re?.abort(),ae++,f.value=!1,d.value=[],m.value=!1,p.value=``,M=1}function be(){_e(),u.value=``,ye(),ve(),fe(!0),pe(!0)}function Se(){_e(),ve(),fe(!0)}function Ce(){l.value!==`kanban`&&(!a.value&&i.value.length?(a.value=w.value?.projectId??i.value.find(e=>!e.issue)?.id??i.value[0].id,ye(),ve(),fe(!0),pe(!0)):l.value===`graph`&&a.value&&!u.value&&d.value.length&&(u.value=T.value?.request.projectId===a.value?T.value.request.runId:d.value[0].id,ve(),fe(!0)))}function we(e){l.value=e;try{localStorage.setItem(`ccdd.monitor.view`,e)}catch{}Ce(),e===`graph`&&(pe(),Ln(()=>h.value?.refresh()))}function Te(e){S[e]++,fe(!0)}function Ee(){M++,pe(!0)}function De(){fe(),me(),pe(),de(),l.value===`graph`&&h.value?.refresh()}function Oe(){D.value=null,de()}function ke(){let e=location.hash.slice(1).split(`/`);try{e.length===2&&e.every(Boolean)?ge({projectId:decodeURIComponent(e[0]),id:decodeURIComponent(e[1])},!1):w.value&&_e(!1)}catch{_e(!1)}}function Ae(){document.hidden||De()}return Wr(()=>{ke(),De(),ce=setInterval(()=>{document.hidden||De()},2e3),le=setInterval(()=>{y.value=Date.now()},1e3),window.addEventListener(`hashchange`,ke),document.addEventListener(`visibilitychange`,Ae)}),Jr(()=>{clearInterval(ce),clearInterval(le),k?.abort(),A?.abort(),re?.abort(),window.removeEventListener(`hashchange`,ke),document.removeEventListener(`visibilitychange`,Ae)}),(e,c)=>(B(),V(z,null,[H(`header`,tv,[c[8]||=H(`a`,{class:`brand`,href:`/`,"aria-label":`CCDD review board home`},[H(`span`,{class:`brand-mark`,"aria-hidden":`true`},`c`),H(`strong`,null,`CCDD`),H(`span`,{class:`brand-divider`}),H(`span`,null,`Monitor`)],-1),H(`span`,{class:xe([`connection`,{connected:o.value}]),role:`status`,title:s.value?`Last checked ${sn(Ns)(s.value)}`:void 0},[c[7]||=H(`i`,null,null,-1),Va(N(o.value?`Live`:g.value?`Connecting`:`Reconnecting`),1)],10,nv)]),H(`main`,rv,[H(`div`,iv,[H(`div`,null,[c[9]||=H(`p`,{class:`eyebrow`},`REVIEW REQUESTS`,-1),c[10]||=H(`h1`,null,`Review board`,-1),H(`p`,av,[Va(N(a.value?ne(a.value):`All projects`),1),g.value?W(``,!0):(B(),V(`span`,ov,` · `+N(te.value)+` `+N(te.value===1?`request`:`requests`),1))])]),H(`div`,sv,[H(`label`,cv,[c[12]||=H(`span`,null,`Project`,-1),Xn(H(`select`,{"onUpdate:modelValue":c[0]||=e=>a.value=e,onChange:be},[c[11]||=H(`option`,{value:``},`All projects`,-1),(B(!0),V(z,null,R(i.value,e=>(B(),V(`option`,{key:e.id,value:e.id},N(e.name)+N(i.value.filter(t=>t.name===e.name).length>1?` · ${e.path}`:``),9,lv))),128))],544),[[ps,a.value]])]),a.value&&l.value!==`validation`?(B(),V(`label`,uv,[c[13]||=H(`span`,null,`Run`,-1),Xn(H(`select`,{"onUpdate:modelValue":c[1]||=e=>u.value=e,onChange:Se},[H(`option`,{value:``,disabled:l.value===`graph`},N(f.value&&!d.value.length?`Loading…`:d.value.length?`All Runs`:`No saved Runs`),9,dv),u.value&&!d.value.some(e=>e.id===u.value)?(B(),V(`option`,{key:0,value:u.value},`Selected Run · `+N(u.value.slice(0,8)),9,fv)):W(``,!0),(B(!0),V(z,null,R(d.value,e=>(B(),V(`option`,{key:e.id,value:e.id},N(sn(Ns)(e.createdAt))+` · `+N(e.id.slice(0,8))+N(e.scope?.kind===`critic`?` · Selected Critic`:``),9,pv))),128))],544),[[ps,u.value]])])):W(``,!0),H(`button`,{class:`icon-button refresh-button`,"aria-label":`Refresh`,disabled:_.value,onClick:De},[...c[14]||=[H(`svg`,{viewBox:`0 0 20 20`,fill:`none`,"aria-hidden":`true`},[H(`path`,{d:`M16.3 8A6.5 6.5 0 1 0 16 13M16.5 3.5V8H12`,stroke:`currentColor`,"stroke-width":`1.4`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]],8,mv)])]),H(`div`,hv,[H(`div`,gv,[H(`button`,{type:`button`,"aria-pressed":l.value===`validation`,onClick:c[2]||=e=>we(`validation`)},`Current input`,8,_v),H(`button`,{type:`button`,"aria-pressed":l.value===`kanban`,onClick:c[3]||=e=>we(`kanban`)},[...c[15]||=[H(`svg`,{viewBox:`0 0 18 18`,"aria-hidden":`true`,fill:`none`},[H(`rect`,{x:`2.5`,y:`3`,width:`5`,height:`12`,rx:`1`}),H(`rect`,{x:`10.5`,y:`3`,width:`5`,height:`8`,rx:`1`})],-1),Va(`Kanban`,-1)]],8,vv),H(`button`,{type:`button`,"aria-pressed":l.value===`graph`,onClick:c[4]||=e=>we(`graph`)},[...c[16]||=[Ha(`<svg viewBox="0 0 18 18" aria-hidden="true" fill="none"><rect x="1.5" y="6" width="5" height="6" rx="1"></rect><rect x="11.5" y="1.5" width="5" height="5" rx="1"></rect><rect x="11.5" y="11.5" width="5" height="5" rx="1"></rect><path d="M6.5 9h2.5V4h2.5M9 9v5h2.5"></path></svg>Graph`,2)]],8,yv)]),a.value&&m.value?(B(),V(`button`,{key:0,type:`button`,class:`text-button`,disabled:f.value,onClick:Ee},`Load earlier Runs`,8,bv)):W(``,!0)]),v.value?(B(),V(`p`,xv,N(v.value),1)):W(``,!0),p.value?(B(),V(`p`,Sv,N(p.value),1)):W(``,!0),(B(!0),V(z,null,R(ee.value,e=>(B(),V(`p`,{key:e.id,class:`inline-error`,role:`status`},N(e.name)+`: `+N(e.issue),1))),128)),!g.value&&i.value.length===0?(B(),V(`div`,Cv,[...c[17]||=[H(`strong`,null,`No projects have been submitted yet.`,-1),H(`p`,null,`Progress will appear here when a review is submitted.`,-1)]])):W(``,!0),Xn(H(`div`,{class:`board`,"aria-label":`Review request board`,"aria-busy":_.value&&g.value},[(B(),V(z,null,R(r,e=>H(`section`,{key:e.id,class:xe([`board-lane`,e.id]),"aria-labelledby":`lane-${e.id}`},[H(`header`,Ev,[H(`h2`,{id:`lane-${e.id}`},[c[18]||=H(`i`,{"aria-hidden":`true`},null,-1),Va(N(e.label),1)],8,Dv),H(`span`,Ov,N(x[e.id]),1)]),g.value?(B(),V(`p`,kv,`Loading…`)):b[e.id].length?(B(),V(`ul`,jv,[(B(!0),V(z,null,R(b[e.id],e=>(B(),V(`li`,{key:`${e.projectId}/${e.id}`},[H(`button`,{class:xe([`request-card`,{selected:w.value?.id===e.id&&w.value.projectId===e.projectId}]),"aria-label":`${e.title}, ${sn(js)(e)}`,onClick:t=>ge(e)},[H(`span`,Nv,N(ne(e.projectId)),1),H(`strong`,Pv,N(e.title),1),H(`span`,{class:xe([`card-status`,[e.status.toLowerCase(),{blocked:e.blockedByFailure}]])},N(sn(js)(e)),3),e.workerState===`missing`||e.workerState===`unknown`?(B(),V(`span`,Fv,N(e.workerState===`missing`?`Worker needs attention`:`Checking worker status`),1)):W(``,!0),H(`span`,Iv,[H(`span`,null,N(sn(As)[e.kind]),1),H(`span`,{title:`Submitted ${sn(Ns)(e.createdAt)}`},N(e.blockedByFailure?`—`:sn(Ms)(e.createdAt,e.completedAt,y.value)),9,Lv)])],10,Mv)]))),128))])):(B(),V(`p`,Av,N(e.empty),1)),C[e.id]?(B(),V(`button`,{key:3,class:`text-button lane-more`,disabled:_.value,onClick:t=>Te(e.id)},[c[19]||=Va(`Load earlier requests `,-1),H(`span`,null,N(b[e.id].length)+` / `+N(x[e.id]),1)],8,Rv)):W(``,!0)],10,Tv)),64))],8,wv),[[Ao,l.value===`kanban`]]),l.value===`validation`?(B(),Na(sn(n),{key:3,"project-id":a.value,session:D.value,onOpenRequest:ge,onSessionExpired:Oe},null,8,[`project-id`,`session`])):W(``,!0),l.value===`graph`?(B(),Na(sn(t),{key:4,ref_key:`graphView`,ref:h,"project-id":a.value,"run-id":u.value,"selected-request-id":w.value?.projectId===a.value?w.value.id:void 0,onOpenRequest:ge},null,8,[`project-id`,`run-id`,`selected-request-id`])):W(``,!0)]),w.value?(B(),Na(X_,{key:`${w.value.projectId}/${w.value.id}`,selection:w.value,detail:T.value,error:E.value,session:D.value,"session-error":O.value,"project-name":ne(w.value.projectId),onClose:c[5]||=e=>_e(),onRefresh:c[6]||=e=>me(!0),onUpdated:he,onSessionExpired:Oe},null,8,[`selection`,`detail`,`error`,`session`,`session-error`,`project-name`])):W(``,!0)],64))}})).mount(`#app`);export{pn as $,Jr as A,nr as B,$n as C,Ur as D,Ln as E,ei as F,I as G,fn as H,ni as I,Kt as J,en as K,fi as L,Qn as M,R as N,qr as O,ai as P,gn as Q,Tr as R,ho as S,Ka as T,Pe as U,Yn as V,Fe as W,L as X,Jt as Y,rn as Z,Ha as _,Es as a,o as at,wr as b,ys as c,G as d,cn as et,H as f,hi as g,V as h,As as i,N as it,B as j,Wr as k,z as l,W as m,v_ as n,xe as nt,Ds as o,l as ot,Na as p,Ie as q,Ns as r,ge as rt,ks as s,c as st,ev as t,sn as tt,_r as u,Va as v,go as w,Qa as x,U as y,di as z};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const MAX_ARTIFACT_DATA_DEPTH = 64;
|
|
2
|
-
export declare const MAX_ARTIFACT_DATA_BYTES: number;
|
|
3
|
-
/** Canonical JSON for fixed Artifact material; changing these rules requires a new identity version. */
|
|
4
|
-
export declare function canonicalData(value: unknown): string;
|
|
5
|
-
export declare function dataHash(value: unknown): string;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
export const MAX_ARTIFACT_DATA_DEPTH = 64;
|
|
3
|
-
export const MAX_ARTIFACT_DATA_BYTES = 4 * 1024 * 1024;
|
|
4
|
-
/** Canonical JSON for fixed Artifact material; changing these rules requires a new identity version. */
|
|
5
|
-
export function canonicalData(value) {
|
|
6
|
-
const chunks = [];
|
|
7
|
-
const ancestors = new Set();
|
|
8
|
-
let bytes = 0;
|
|
9
|
-
function emit(text) {
|
|
10
|
-
bytes += Buffer.byteLength(text, 'utf8');
|
|
11
|
-
if (bytes > MAX_ARTIFACT_DATA_BYTES)
|
|
12
|
-
throw new RangeError(`Artifact data exceeds the ${MAX_ARTIFACT_DATA_BYTES}-byte canonical JSON limit.`);
|
|
13
|
-
chunks.push(text);
|
|
14
|
-
}
|
|
15
|
-
function quote(text) {
|
|
16
|
-
// Avoid constructing an arbitrarily large escaped string before checking the byte limit.
|
|
17
|
-
if (text.length > MAX_ARTIFACT_DATA_BYTES)
|
|
18
|
-
throw new RangeError(`Artifact data exceeds the ${MAX_ARTIFACT_DATA_BYTES}-byte canonical JSON limit.`);
|
|
19
|
-
emit(JSON.stringify(text));
|
|
20
|
-
}
|
|
21
|
-
function property(object, key) {
|
|
22
|
-
const descriptor = Object.getOwnPropertyDescriptor(object, key);
|
|
23
|
-
if (!descriptor || !descriptor.enumerable || !Object.hasOwn(descriptor, 'value')) {
|
|
24
|
-
throw new TypeError('Artifact data requires enumerable data properties; sparse arrays and accessors are unsupported.');
|
|
25
|
-
}
|
|
26
|
-
return descriptor.value;
|
|
27
|
-
}
|
|
28
|
-
function visit(current, depth) {
|
|
29
|
-
if (current === null) {
|
|
30
|
-
emit('null');
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
switch (typeof current) {
|
|
34
|
-
case 'string':
|
|
35
|
-
quote(current);
|
|
36
|
-
return;
|
|
37
|
-
case 'boolean':
|
|
38
|
-
emit(current ? 'true' : 'false');
|
|
39
|
-
return;
|
|
40
|
-
case 'number':
|
|
41
|
-
if (!Number.isFinite(current))
|
|
42
|
-
throw new TypeError('Artifact data requires finite JSON numbers.');
|
|
43
|
-
emit(JSON.stringify(current));
|
|
44
|
-
return;
|
|
45
|
-
case 'object': break;
|
|
46
|
-
default: throw new TypeError('Artifact data supports only JSON values.');
|
|
47
|
-
}
|
|
48
|
-
if (depth >= MAX_ARTIFACT_DATA_DEPTH)
|
|
49
|
-
throw new RangeError(`Artifact data exceeds ${MAX_ARTIFACT_DATA_DEPTH} nested containers.`);
|
|
50
|
-
if (ancestors.has(current))
|
|
51
|
-
throw new TypeError('Artifact data must not contain cycles.');
|
|
52
|
-
const array = Array.isArray(current);
|
|
53
|
-
const prototype = Object.getPrototypeOf(current);
|
|
54
|
-
if (array ? prototype !== Array.prototype : prototype !== Object.prototype && prototype !== null) {
|
|
55
|
-
throw new TypeError('Artifact data requires plain objects and arrays.');
|
|
56
|
-
}
|
|
57
|
-
const keys = Reflect.ownKeys(current);
|
|
58
|
-
if (keys.some(key => typeof key !== 'string'))
|
|
59
|
-
throw new TypeError('Artifact data must not contain symbol properties.');
|
|
60
|
-
ancestors.add(current);
|
|
61
|
-
try {
|
|
62
|
-
if (array) {
|
|
63
|
-
if (keys.length !== current.length + 1 || keys.some(key => key !== 'length' && !/^(0|[1-9][0-9]*)$/.test(key))) {
|
|
64
|
-
throw new TypeError('Artifact data arrays must be dense and have no extra properties.');
|
|
65
|
-
}
|
|
66
|
-
emit('[');
|
|
67
|
-
for (let index = 0; index < current.length; index += 1) {
|
|
68
|
-
if (index)
|
|
69
|
-
emit(',');
|
|
70
|
-
visit(property(current, String(index)), depth + 1);
|
|
71
|
-
}
|
|
72
|
-
emit(']');
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
// Default sort compares UTF-16 code units, independent of the host locale.
|
|
76
|
-
const names = keys.sort();
|
|
77
|
-
emit('{');
|
|
78
|
-
for (let index = 0; index < names.length; index += 1) {
|
|
79
|
-
const name = names[index];
|
|
80
|
-
const item = property(current, name);
|
|
81
|
-
if (index)
|
|
82
|
-
emit(',');
|
|
83
|
-
quote(name);
|
|
84
|
-
emit(':');
|
|
85
|
-
visit(item, depth + 1);
|
|
86
|
-
}
|
|
87
|
-
emit('}');
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
finally {
|
|
91
|
-
ancestors.delete(current);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
visit(value, 0);
|
|
95
|
-
return chunks.join('');
|
|
96
|
-
}
|
|
97
|
-
export function dataHash(value) {
|
|
98
|
-
return createHash('sha256').update(canonicalData(value), 'utf8').digest('hex');
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../src/artifacts/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,wGAAwG;AACxG,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,SAAS,IAAI,CAAC,IAAY;QACxB,KAAK,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACzC,IAAI,KAAK,GAAG,uBAAuB;YAAE,MAAM,IAAI,UAAU,CAAC,6BAA6B,uBAAuB,6BAA6B,CAAC,CAAC;QAC7I,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED,SAAS,KAAK,CAAC,IAAY;QACzB,yFAAyF;QACzF,IAAI,IAAI,CAAC,MAAM,GAAG,uBAAuB;YAAE,MAAM,IAAI,UAAU,CAAC,6BAA6B,uBAAuB,6BAA6B,CAAC,CAAC;QACnJ,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED,SAAS,QAAQ,CAAC,MAAc,EAAE,GAAW;QAC3C,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChE,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC;YACjF,MAAM,IAAI,SAAS,CAAC,iGAAiG,CAAC,CAAC;QACzH,CAAC;QACD,OAAO,UAAU,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,SAAS,KAAK,CAAC,OAAgB,EAAE,KAAa;QAC5C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QAC/C,QAAQ,OAAO,OAAO,EAAE,CAAC;YACvB,KAAK,QAAQ;gBAAE,KAAK,CAAC,OAAO,CAAC,CAAC;gBAAC,OAAO;YACtC,KAAK,SAAS;gBAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;gBAAC,OAAO;YACzD,KAAK,QAAQ;gBACX,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;oBAAE,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;gBAClG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC9B,OAAO;YACT,KAAK,QAAQ,EAAE,MAAM;YACrB,SAAS,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,KAAK,IAAI,uBAAuB;YAAE,MAAM,IAAI,UAAU,CAAC,yBAAyB,uBAAuB,qBAAqB,CAAC,CAAC;QAClI,IAAI,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC;YAAE,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;QAC1F,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,MAAM,SAAS,GAAY,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,KAAK,CAAC,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACjG,MAAM,IAAI,SAAS,CAAC,kDAAkD,CAAC,CAAC;QAC1E,CAAC;QACD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;YAAE,MAAM,IAAI,SAAS,CAAC,mDAAmD,CAAC,CAAC;QACxH,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC;YACH,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAa,CAAC,CAAC,EAAE,CAAC;oBACzH,MAAM,IAAI,SAAS,CAAC,kEAAkE,CAAC,CAAC;gBAC1F,CAAC;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;gBACV,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;oBACvD,IAAI,KAAK;wBAAE,IAAI,CAAC,GAAG,CAAC,CAAC;oBACrB,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;gBACrD,CAAC;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,2EAA2E;gBAC3E,MAAM,KAAK,GAAI,IAAiB,CAAC,IAAI,EAAE,CAAC;gBACxC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACV,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;oBACrD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;oBAC1B,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACrC,IAAI,KAAK;wBAAE,IAAI,CAAC,GAAG,CAAC,CAAC;oBACrB,KAAK,CAAC,IAAI,CAAC,CAAC;oBACZ,IAAI,CAAC,GAAG,CAAC,CAAC;oBACV,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;gBACzB,CAAC;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAChB,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ArtifactEntryDefinition, GeneratedArtifactDefinition, ArtifactGroupDefinition, ArtifactGroupReference, ArtifactReference } from '../contracts.js';
|
|
2
|
-
import type { PreparedArtifactData } from '../tools/contracts.js';
|
|
3
|
-
export declare function isArtifactGroup(value: unknown): value is ArtifactGroupDefinition;
|
|
4
|
-
export declare function isGeneratedArtifact(value: unknown): value is GeneratedArtifactDefinition;
|
|
5
|
-
/** Validate composition metadata without reading files or interpreting Critic dependencies. */
|
|
6
|
-
export declare function validateArtifactDefinitions(value: unknown): asserts value is Record<string, ArtifactEntryDefinition>;
|
|
7
|
-
/** Expand only explicitly selected entries and their members, in stable depth-first order. */
|
|
8
|
-
export declare function resolveArtifactScope(definitions: Record<string, ArtifactEntryDefinition>, ids: readonly string[], inputs?: Record<string, PreparedArtifactData>): {
|
|
9
|
-
artifacts: ArtifactReference[];
|
|
10
|
-
artifactGroups?: ArtifactGroupReference[];
|
|
11
|
-
};
|
|
12
|
-
/** Safe metadata for prompts and scope matching; captured data stays behind tools. */
|
|
13
|
-
export declare function artifactReferenceMetadata(artifacts: readonly ArtifactReference[]): ArtifactReference[];
|