@fungi.computer/inkcap 0.18.2 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{FileTab-zF5NkUyI.js → FileTab-D0G_9fnG.js} +1 -1
- package/dist/assets/{InkcapFileTree-C6fCPfVL.js → InkcapFileTree-BBTvzNun.js} +1 -1
- package/dist/assets/{InkcapRepositoryApp-Q7oVxGhL.js → InkcapRepositoryApp-lLgu8jZe.js} +1 -1
- package/dist/assets/{changes-patch-zJT5MXFh.js → changes-patch-DeYy-1aU.js} +2 -2
- package/dist/assets/{dropdown-menu-tOc7lHNr.js → dropdown-menu-BlFqxqxM.js} +1 -1
- package/dist/assets/{index-Bd5Z2Jjo.js → index-DydaQgop.js} +2 -2
- package/dist/assets/{index-BsHPJca6.css → index-pJ57XXUl.css} +1 -1
- package/dist/assets/{tree-path-u_q4dC9E.js → tree-path-DQAnGoeW.js} +1 -1
- package/dist/assets/{useFileTree-K8mSEqOR.js → useFileTree-D7u_RYsd.js} +1 -1
- package/dist/assets/{useForm-CLwjuIXa.js → useForm-CkS3eP5p.js} +1 -1
- package/dist/index.html +5 -5
- package/package.json +5 -5
|
@@ -73,7 +73,7 @@ import{r as e,t}from"./rolldown-runtime-hePW80VL.js";var n=(e,t)=>{switch(t.leng
|
|
|
73
73
|
|
|
74
74
|
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=$f,s=!Rf.jitless,c=s&&ep.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Eh([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function kh(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!hp(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>yp(e,r,zf())))}),t)}var Ah=K(`$ZodUnion`,(e,t)=>{Bm.init(e,t),qf(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),qf(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),qf(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),qf(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Wf(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>kh(t,r,e,i)):kh(o,r,e,i)}}),jh=K(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ah.init(e,t);let n=e._zod.parse;qf(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=Hf(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!$f(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Mh=K(`$ZodIntersection`,(e,t)=>{Bm.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ph(e,t,n)):Ph(e,i,a)}});function Nh(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(tp(e)&&tp(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Nh(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Nh(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ph(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),hp(e))return e;let o=Nh(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Fh=K(`$ZodTuple`,(e,t)=>{Bm.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Ih(n,`optin`),c=Ih(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Lh(t,r,e))):Lh(a,r,e)}}return o.length?Promise.all(o).then(()=>Rh(l,r,n,a,c)):Rh(l,r,n,a,c)}});function Ih(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Lh(e,t,n){e.issues.length&&t.issues.push(..._p(n,e.issues)),t.value[n]=e.value}function Rh(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(..._p(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var zh=K(`$ZodRecord`,(e,t)=>{Bm.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!tp(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>yp(e,r,zf())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(..._p(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(..._p(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&gm.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>yp(e,r,zf())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(..._p(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(..._p(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Bh=K(`$ZodEnum`,(e,t)=>{Bm.init(e,t);let n=Bf(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>rp.has(typeof e)).map(e=>typeof e==`string`?ip(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Vh=K(`$ZodLiteral`,(e,t)=>{if(Bm.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?ip(e):e?ip(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Hh=K(`$ZodTransform`,(e,t)=>{Bm.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lf(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new If;return n.value=i,n.fallback=!0,n}});function Uh(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Wh=K(`$ZodOptional`,(e,t)=>{Bm.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,qf(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),qf(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wf(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Uh(e,r)):Uh(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Gh=K(`$ZodExactOptional`,(e,t)=>{Wh.init(e,t),qf(e._zod,`values`,()=>t.innerType._zod.values),qf(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Kh=K(`$ZodNullable`,(e,t)=>{Bm.init(e,t),qf(e._zod,`optin`,()=>t.innerType._zod.optin),qf(e._zod,`optout`,()=>t.innerType._zod.optout),qf(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wf(e.source)}|null)$`):void 0}),qf(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),qh=K(`$ZodDefault`,(e,t)=>{Bm.init(e,t),e._zod.optin=`optional`,qf(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Jh(e,t)):Jh(r,t)}});function Jh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Yh=K(`$ZodPrefault`,(e,t)=>{Bm.init(e,t),e._zod.optin=`optional`,qf(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Xh=K(`$ZodNonOptional`,(e,t)=>{Bm.init(e,t),qf(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Zh(t,e)):Zh(i,e)}});function Zh(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Qh=K(`$ZodCatch`,(e,t)=>{Bm.init(e,t),e._zod.optin=`optional`,qf(e._zod,`optout`,()=>t.innerType._zod.optout),qf(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>yp(e,n,zf()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>yp(e,n,zf()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),$h=K(`$ZodPipe`,(e,t)=>{Bm.init(e,t),qf(e._zod,`values`,()=>t.in._zod.values),qf(e._zod,`optin`,()=>t.in._zod.optin),qf(e._zod,`optout`,()=>t.out._zod.optout),qf(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>eg(e,t.in,n)):eg(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eg(e,t.out,n)):eg(r,t.out,n)}});function eg(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var tg=K(`$ZodReadonly`,(e,t)=>{Bm.init(e,t),qf(e._zod,`propValues`,()=>t.innerType._zod.propValues),qf(e._zod,`values`,()=>t.innerType._zod.values),qf(e._zod,`optin`,()=>t.innerType?._zod?.optin),qf(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ng):ng(r)}});function ng(e){return e.value=Object.freeze(e.value),e}var rg=K(`$ZodFunction`,(e,t)=>(Bm.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Op(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Op(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Ap(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Ap(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Fh({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),ig=K(`$ZodPromise`,(e,t)=>{Bm.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),ag=K(`$ZodLazy`,(e,t)=>{Bm.init(e,t),qf(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),qf(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),qf(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),qf(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),qf(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),og=K(`$ZodCustom`,(e,t)=>{xm.init(e,t),Bm.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>sg(t,n,r,e));sg(i,n,r,e)}});function sg(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(xp(e))}}var cg,lg=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function ug(){return new lg}(cg=globalThis).__zod_globalRegistry??(cg.__zod_globalRegistry=ug());var dg=globalThis.__zod_globalRegistry;function fg(e,t){return new e({type:`string`,...q(t)})}function pg(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...q(t)})}function mg(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...q(t)})}function hg(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...q(t)})}function gg(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...q(t)})}function _g(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...q(t)})}function vg(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...q(t)})}function yg(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...q(t)})}function bg(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...q(t)})}function xg(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...q(t)})}function Sg(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...q(t)})}function Cg(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...q(t)})}function wg(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...q(t)})}function Tg(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...q(t)})}function Eg(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...q(t)})}function Dg(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...q(t)})}function Og(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...q(t)})}function kg(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...q(t)})}function Ag(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...q(t)})}function jg(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...q(t)})}function Mg(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...q(t)})}function Ng(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...q(t)})}function Pg(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...q(t)})}function Fg(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...q(t)})}function Ig(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...q(t)})}function Lg(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...q(t)})}function Rg(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...q(t)})}function zg(e,t){return new e({type:`number`,checks:[],...q(t)})}function Bg(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...q(t)})}function Vg(e,t){return new e({type:`boolean`,...q(t)})}function Hg(e,t){return new e({type:`null`,...q(t)})}function Ug(e){return new e({type:`unknown`})}function Wg(e,t){return new e({type:`never`,...q(t)})}function Gg(e,t){return new e({type:`void`,...q(t)})}function Kg(e,t){return new Cm({check:`less_than`,...q(t),value:e,inclusive:!1})}function qg(e,t){return new Cm({check:`less_than`,...q(t),value:e,inclusive:!0})}function Jg(e,t){return new wm({check:`greater_than`,...q(t),value:e,inclusive:!1})}function Yg(e,t){return new wm({check:`greater_than`,...q(t),value:e,inclusive:!0})}function Xg(e,t){return new Tm({check:`multiple_of`,...q(t),value:e})}function Zg(e,t){return new Dm({check:`max_length`,...q(t),maximum:e})}function Qg(e,t){return new Om({check:`min_length`,...q(t),minimum:e})}function $g(e,t){return new km({check:`length_equals`,...q(t),length:e})}function e_(e,t){return new jm({check:`string_format`,format:`regex`,...q(t),pattern:e})}function t_(e){return new Mm({check:`string_format`,format:`lowercase`,...q(e)})}function n_(e){return new Nm({check:`string_format`,format:`uppercase`,...q(e)})}function r_(e,t){return new Pm({check:`string_format`,format:`includes`,...q(t),includes:e})}function i_(e,t){return new Fm({check:`string_format`,format:`starts_with`,...q(t),prefix:e})}function a_(e,t){return new Im({check:`string_format`,format:`ends_with`,...q(t),suffix:e})}function o_(e){return new Lm({check:`overwrite`,tx:e})}function s_(e){return o_(t=>t.normalize(e))}function c_(){return o_(e=>e.trim())}function l_(){return o_(e=>e.toLowerCase())}function u_(){return o_(e=>e.toUpperCase())}function d_(){return o_(e=>Zf(e))}function f_(e,t,n){return new e({type:`array`,element:t,...q(n)})}function p_(e,t,n){let r=q(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function m_(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...q(n)})}function h_(e,t){let n=g_(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(xp(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(xp(r))}},e(t.value,t)),t);return n}function g_(e,t){let n=new xm({check:`custom`,...q(t)});return n._zod.check=e,n}function __(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??dg,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function v_(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,v_(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&x_(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function y_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
75
75
|
|
|
76
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function b_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:C_(t,`input`,e.processors),output:C_(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function x_(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return x_(r.element,n);if(r.type===`set`)return x_(r.valueType,n);if(r.type===`lazy`)return x_(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return x_(r.innerType,n);if(r.type===`intersection`)return x_(r.left,n)||x_(r.right,n);if(r.type===`record`||r.type===`map`)return x_(r.keyType,n)||x_(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:x_(r.in,n)||x_(r.out,n);if(r.type===`object`){for(let e in r.shape)if(x_(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(x_(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(x_(e,n))return!0;return!!(r.rest&&x_(r.rest,n))}return!1}var S_=(e,t={})=>n=>{let r=__({...n,processors:t});return v_(e,r),y_(r,e),b_(r,e)},C_=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=__({...i??{},target:a,io:t,processors:n});return v_(e,o),y_(o,e),b_(o,e)},w_={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},T_=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=w_[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},E_=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},D_=(e,t,n,r)=>{n.type=`boolean`},O_=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},k_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},A_=(e,t,n,r)=>{n.not={}},j_=(e,t,n,r)=>{let i=e._zod.def,a=Bf(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},M_=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},N_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},P_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},F_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},I_=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=v_(a.element,t,{...r,path:[...r.path,`items`]})},L_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=v_(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=v_(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},R_=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>v_(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},z_=(e,t,n,r)=>{let i=e._zod.def,a=v_(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=v_(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},B_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>v_(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?v_(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},V_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=v_(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=v_(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=v_(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},H_=(e,t,n,r)=>{let i=e._zod.def,a=v_(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},U_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},W_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},G_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},K_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},q_=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;v_(o,t,r);let s=t.seen.get(e);s.ref=o},J_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Y_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},X_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Z_=(e,t,n,r)=>{let i=e._zod.innerType;v_(i,t,r);let a=t.seen.get(e);a.ref=i},Q_=K(`ZodISODateTime`,(e,t)=>{eh.init(e,t),Dv.init(e,t)});function $_(e){return Fg(Q_,e)}var ev=K(`ZodISODate`,(e,t)=>{th.init(e,t),Dv.init(e,t)});function tv(e){return Ig(ev,e)}var nv=K(`ZodISOTime`,(e,t)=>{nh.init(e,t),Dv.init(e,t)});function rv(e){return Lg(nv,e)}var iv=K(`ZodISODuration`,(e,t)=>{rh.init(e,t),Dv.init(e,t)});function av(e){return Rg(iv,e)}var ov=(e,t)=>{Cp.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ep(e,t)},flatten:{value:t=>Tp(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Vf,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Vf,2)}},isEmpty:{get(){return e.issues.length===0}}})},sv=K(`ZodError`,ov),cv=K(`ZodError`,ov,{Parent:Error}),lv=Dp(cv),uv=kp(cv),dv=jp(cv),fv=Np(cv),pv=Fp(cv),mv=Ip(cv),hv=Lp(cv),gv=Rp(cv),_v=zp(cv),vv=Bp(cv),yv=Vp(cv),bv=Hp(cv),xv=new WeakMap;function Sv(e,t,n){let r=Object.getPrototypeOf(e),i=xv.get(r);if(i||(i=new Set,xv.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Cv=K(`ZodType`,(e,t)=>(Bm.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:C_(e,`input`),output:C_(e,`output`)}}),e.toJSONSchema=S_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>lv(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>dv(e,t,n),e.parseAsync=async(t,n)=>uv(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>fv(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>pv(e,t,n),e.decode=(t,n)=>mv(e,t,n),e.encodeAsync=async(t,n)=>hv(e,t,n),e.decodeAsync=async(t,n)=>gv(e,t,n),e.safeEncode=(t,n)=>_v(e,t,n),e.safeDecode=(t,n)=>vv(e,t,n),e.safeEncodeAsync=async(t,n)=>yv(e,t,n),e.safeDecodeAsync=async(t,n)=>bv(e,t,n),Sv(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Yf(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ap(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(rb(e,t))},superRefine(e,t){return this.check(ib(e,t))},overwrite(e){return this.check(o_(e))},optional(){return My(this)},exactOptional(){return Py(this)},nullable(){return Iy(this)},nullish(){return My(Iy(this))},nonoptional(e){return Hy(this,e)},array(){return uy(this)},or(e){return gy([this,e])},and(e){return by(this,e)},transform(e){return Ky(this,Ay(e))},default(e){return Ry(this,e)},prefault(e){return By(this,e)},catch(e){return Wy(this,e)},pipe(e){return Ky(this,e)},readonly(){return Jy(this)},describe(e){let t=this.clone();return dg.add(t,{description:e}),t},meta(...e){if(e.length===0)return dg.get(this);let t=this.clone();return dg.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return dg.get(e)?.description},configurable:!0}),e)),wv=K(`_ZodString`,(e,t)=>{Vm.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T_(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Sv(e,`_ZodString`,{regex(...e){return this.check(e_(...e))},includes(...e){return this.check(r_(...e))},startsWith(...e){return this.check(i_(...e))},endsWith(...e){return this.check(a_(...e))},min(...e){return this.check(Qg(...e))},max(...e){return this.check(Zg(...e))},length(...e){return this.check($g(...e))},nonempty(...e){return this.check(Qg(1,...e))},lowercase(e){return this.check(t_(e))},uppercase(e){return this.check(n_(e))},trim(){return this.check(c_())},normalize(...e){return this.check(s_(...e))},toLowerCase(){return this.check(l_())},toUpperCase(){return this.check(u_())},slugify(){return this.check(d_())}})}),Tv=K(`ZodString`,(e,t)=>{Vm.init(e,t),wv.init(e,t),e.email=t=>e.check(pg(Ov,t)),e.url=t=>e.check(yg(Mv,t)),e.jwt=t=>e.check(Pg(Jv,t)),e.emoji=t=>e.check(bg(Pv,t)),e.guid=t=>e.check(mg(kv,t)),e.uuid=t=>e.check(hg(Av,t)),e.uuidv4=t=>e.check(gg(Av,t)),e.uuidv6=t=>e.check(_g(Av,t)),e.uuidv7=t=>e.check(vg(Av,t)),e.nanoid=t=>e.check(xg(Fv,t)),e.guid=t=>e.check(mg(kv,t)),e.cuid=t=>e.check(Sg(Iv,t)),e.cuid2=t=>e.check(Cg(Lv,t)),e.ulid=t=>e.check(wg(Rv,t)),e.base64=t=>e.check(jg(Gv,t)),e.base64url=t=>e.check(Mg(Kv,t)),e.xid=t=>e.check(Tg(zv,t)),e.ksuid=t=>e.check(Eg(Bv,t)),e.ipv4=t=>e.check(Dg(Vv,t)),e.ipv6=t=>e.check(Og(Hv,t)),e.cidrv4=t=>e.check(kg(Uv,t)),e.cidrv6=t=>e.check(Ag(Wv,t)),e.e164=t=>e.check(Ng(qv,t)),e.datetime=t=>e.check($_(t)),e.date=t=>e.check(tv(t)),e.time=t=>e.check(rv(t)),e.duration=t=>e.check(av(t))});function Ev(e){return fg(Tv,e)}var Dv=K(`ZodStringFormat`,(e,t)=>{Hm.init(e,t),wv.init(e,t)}),Ov=K(`ZodEmail`,(e,t)=>{Gm.init(e,t),Dv.init(e,t)}),kv=K(`ZodGUID`,(e,t)=>{Um.init(e,t),Dv.init(e,t)}),Av=K(`ZodUUID`,(e,t)=>{Wm.init(e,t),Dv.init(e,t)});function jv(e){return hg(Av,e)}var Mv=K(`ZodURL`,(e,t)=>{Km.init(e,t),Dv.init(e,t)});function Nv(e){return yg(Mv,e)}var Pv=K(`ZodEmoji`,(e,t)=>{qm.init(e,t),Dv.init(e,t)}),Fv=K(`ZodNanoID`,(e,t)=>{Jm.init(e,t),Dv.init(e,t)}),Iv=K(`ZodCUID`,(e,t)=>{Ym.init(e,t),Dv.init(e,t)}),Lv=K(`ZodCUID2`,(e,t)=>{Xm.init(e,t),Dv.init(e,t)}),Rv=K(`ZodULID`,(e,t)=>{Zm.init(e,t),Dv.init(e,t)}),zv=K(`ZodXID`,(e,t)=>{Qm.init(e,t),Dv.init(e,t)}),Bv=K(`ZodKSUID`,(e,t)=>{$m.init(e,t),Dv.init(e,t)}),Vv=K(`ZodIPv4`,(e,t)=>{ih.init(e,t),Dv.init(e,t)}),Hv=K(`ZodIPv6`,(e,t)=>{ah.init(e,t),Dv.init(e,t)}),Uv=K(`ZodCIDRv4`,(e,t)=>{oh.init(e,t),Dv.init(e,t)}),Wv=K(`ZodCIDRv6`,(e,t)=>{sh.init(e,t),Dv.init(e,t)}),Gv=K(`ZodBase64`,(e,t)=>{lh.init(e,t),Dv.init(e,t)}),Kv=K(`ZodBase64URL`,(e,t)=>{dh.init(e,t),Dv.init(e,t)}),qv=K(`ZodE164`,(e,t)=>{fh.init(e,t),Dv.init(e,t)}),Jv=K(`ZodJWT`,(e,t)=>{mh.init(e,t),Dv.init(e,t)}),Yv=K(`ZodNumber`,(e,t)=>{hh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E_(e,t,n,r),Sv(e,`ZodNumber`,{gt(e,t){return this.check(Jg(e,t))},gte(e,t){return this.check(Yg(e,t))},min(e,t){return this.check(Yg(e,t))},lt(e,t){return this.check(Kg(e,t))},lte(e,t){return this.check(qg(e,t))},max(e,t){return this.check(qg(e,t))},int(e){return this.check(Qv(e))},safe(e){return this.check(Qv(e))},positive(e){return this.check(Jg(0,e))},nonnegative(e){return this.check(Yg(0,e))},negative(e){return this.check(Kg(0,e))},nonpositive(e){return this.check(qg(0,e))},multipleOf(e,t){return this.check(Xg(e,t))},step(e,t){return this.check(Xg(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Xv(e){return zg(Yv,e)}var Zv=K(`ZodNumberFormat`,(e,t)=>{gh.init(e,t),Yv.init(e,t)});function Qv(e){return Bg(Zv,e)}var $v=K(`ZodBoolean`,(e,t)=>{_h.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D_(e,t,n,r)});function ey(e){return Vg($v,e)}var ty=K(`ZodNull`,(e,t)=>{vh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O_(e,t,n,r)});function ny(e){return Hg(ty,e)}var ry=K(`ZodUnknown`,(e,t)=>{yh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function iy(){return Ug(ry)}var ay=K(`ZodNever`,(e,t)=>{bh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A_(e,t,n,r)});function oy(e){return Wg(ay,e)}var sy=K(`ZodVoid`,(e,t)=>{xh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k_(e,t,n,r)});function cy(e){return Gg(sy,e)}var ly=K(`ZodArray`,(e,t)=>{Ch.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I_(e,t,n,r),e.element=t.element,Sv(e,`ZodArray`,{min(e,t){return this.check(Qg(e,t))},nonempty(e){return this.check(Qg(1,e))},max(e,t){return this.check(Zg(e,t))},length(e,t){return this.check($g(e,t))},unwrap(){return this.element}})});function uy(e,t){return f_(ly,e,t)}var dy=K(`ZodObject`,(e,t)=>{Oh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L_(e,t,n,r),qf(e,`shape`,()=>t.shape),Sv(e,`ZodObject`,{keyof(){return Ey(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:iy()})},loose(){return this.clone({...this._zod.def,catchall:iy()})},strict(){return this.clone({...this._zod.def,catchall:oy()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return up(this,e)},safeExtend(e){return dp(this,e)},merge(e){return fp(this,e)},pick(e){return cp(this,e)},omit(e){return lp(this,e)},partial(...e){return pp(jy,this,e[0])},required(...e){return mp(Vy,this,e[0])}})});function fy(e,t){return new dy({type:`object`,shape:e??{},...q(t)})}function py(e,t){return new dy({type:`object`,shape:e,catchall:oy(),...q(t)})}function my(e,t){return new dy({type:`object`,shape:e,catchall:iy(),...q(t)})}var hy=K(`ZodUnion`,(e,t)=>{Ah.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R_(e,t,n,r),e.options=t.options});function gy(e,t){return new hy({type:`union`,options:e,...q(t)})}var _y=K(`ZodDiscriminatedUnion`,(e,t)=>{hy.init(e,t),jh.init(e,t)});function vy(e,t,n){return new _y({type:`union`,options:t,discriminator:e,...q(n)})}var yy=K(`ZodIntersection`,(e,t)=>{Mh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z_(e,t,n,r)});function by(e,t){return new yy({type:`intersection`,left:e,right:t})}var xy=K(`ZodTuple`,(e,t)=>{Fh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B_(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function Sy(e,t,n){let r=t instanceof Bm;return new xy({type:`tuple`,items:e,rest:r?t:null,...q(r?n:t)})}var Cy=K(`ZodRecord`,(e,t)=>{zh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V_(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function wy(e,t,n){return!t||!t._zod?new Cy({type:`record`,keyType:Ev(),valueType:e,...q(t)}):new Cy({type:`record`,keyType:e,valueType:t,...q(n)})}var Ty=K(`ZodEnum`,(e,t)=>{Bh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j_(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ty({...t,checks:[],...q(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ty({...t,checks:[],...q(r),entries:i})}});function Ey(e,t){return new Ty({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...q(t)})}var Dy=K(`ZodLiteral`,(e,t)=>{Vh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M_(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Oy(e,t){return new Dy({type:`literal`,values:Array.isArray(e)?e:[e],...q(t)})}var ky=K(`ZodTransform`,(e,t)=>{Hh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F_(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lf(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(xp(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(xp(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Ay(e){return new ky({type:`transform`,transform:e})}var jy=K(`ZodOptional`,(e,t)=>{Wh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function My(e){return new jy({type:`optional`,innerType:e})}var Ny=K(`ZodExactOptional`,(e,t)=>{Gh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Py(e){return new Ny({type:`optional`,innerType:e})}var Fy=K(`ZodNullable`,(e,t)=>{Kh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Iy(e){return new Fy({type:`nullable`,innerType:e})}var Ly=K(`ZodDefault`,(e,t)=>{qh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ry(e,t){return new Ly({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():np(t)}})}var zy=K(`ZodPrefault`,(e,t)=>{Yh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function By(e,t){return new zy({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():np(t)}})}var Vy=K(`ZodNonOptional`,(e,t)=>{Xh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Hy(e,t){return new Vy({type:`nonoptional`,innerType:e,...q(t)})}var Uy=K(`ZodCatch`,(e,t)=>{Qh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wy(e,t){return new Uy({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Gy=K(`ZodPipe`,(e,t)=>{$h.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q_(e,t,n,r),e.in=t.in,e.out=t.out});function Ky(e,t){return new Gy({type:`pipe`,in:e,out:t})}var qy=K(`ZodReadonly`,(e,t)=>{tg.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Jy(e){return new qy({type:`readonly`,innerType:e})}var Yy=K(`ZodLazy`,(e,t)=>{ag.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z_(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function Xy(e){return new Yy({type:`lazy`,getter:e})}var Zy=K(`ZodPromise`,(e,t)=>{ig.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Qy(e){return new Zy({type:`promise`,innerType:e})}var $y=K(`ZodFunction`,(e,t)=>{rg.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P_(e,t,n,r)});function eb(e){return new $y({type:`function`,input:Array.isArray(e?.input)?Sy(e?.input):e?.input??uy(iy()),output:e?.output??iy()})}var tb=K(`ZodCustom`,(e,t)=>{og.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N_(e,t,n,r)});function nb(e,t){return p_(tb,e??(()=>!0),t)}function rb(e,t={}){return m_(tb,e,t)}function ib(e,t){return h_(e,t)}function ab(e,t={}){let n=new tb({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...q(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function ob(e){let t=Xy(()=>gy([Ev(e),Xv(),ey(),ny(),uy(t),wy(Ev(),t)]));return t}var sb=Vd.pipe($d(vf(1)),$d(xf(80))),cb=[`exec_isolation_required`,`execution_not_admitted`,`artifact_unavailable`,`disabled`,`timed_out`,`permission_changed`,`binding_reply_invalid`,`backend_error`,`cancelled`,`request_too_large`,`not_offered`,`internal`],lb=py({binding:Ev().min(1).max(64),method:Ev().min(1).max(128),path:Ev().max(256)});py({error:Oy(`App execution unavailable`),reason:Ey(cb),ref:Ev().min(1).max(64).optional(),where:lb.optional()});var ub=[`CANCELLED`,`CAPABILITY_DENIED`,`CAPABILITY_REVOKED`,`COMMAND_NOT_DECLARED`,`CONFLICT`,`DAILY_LIMIT_REACHED`,`DELIVERY_PENDING`,`DISCONNECTED`,`FILE_TOO_LARGE`,`HOST_FAILURE`,`HOST_UNSUPPORTED`,`IDENTITY`,`INSUFFICIENT_CREDIT`,`INVALID_ARGUMENT`,`MEDIA_PROVIDER_FAILURE`,`MEDIA_PROVIDER_FAILURE_UNCHARGED`,`PROTOCOL`,`SAFETY_FILTER_REFUSED`,`SELECTION_CHANGED`,`SETUP_REQUIRED`,`TIMEOUT`],db=Gd({name:Ld(`AppError`),code:Xd(ub),retryable:Ud,need:Id(Vd),reason:Id(Vd),ref:Id(Vd),where:Id(Rd)}),fb=Xd(cb),pb=Gd({binding:Vd,method:Vd,path:Vd}),mb=class extends Error{code;retryable;need;reason;ref;where;constructor(e,t){super(e,{cause:t.cause}),this.name=`AppError`,this.code=t.code,this.retryable=t.retryable,this.need=t.need,this.reason=t.reason,this.ref=t.ref,this.where=t.where}};function hb(e){return wn(jd(sb)(e))}function gb(e){return`This needs ${e??`setup`} first.`}var _b={CANCELLED:{title:`Request cancelled`,message:`It stopped before it finished. Start it again if you still want it.`},CAPABILITY_DENIED:{title:`Access needed`,message:`This App needs permission to do that.`,action:`grant`},CAPABILITY_REVOKED:{title:`Access changed`,message:`This App no longer has permission to do that.`,action:`grant`},COMMAND_NOT_DECLARED:{title:`Action unavailable`,message:`This App doesn't include that action. It may need an update.`},CONFLICT:{title:`File changed`,message:`This file changed elsewhere. Review it before saving again.`},DAILY_LIMIT_REACHED:{title:`Daily limit reached`,message:`Today's spending limit for this Oyster is used up. It resets at 00:00 UTC.`},DELIVERY_PENDING:{title:`App delivery pending`,message:`The App hasn't finished getting ready. Try opening it again.`},DISCONNECTED:{title:`Connection lost`,message:`Reopen the App to connect again.`,action:`reconnect`},HOST_FAILURE:{title:`Couldn't complete the request`,message:`The host stopped answering. Reopen the App or reload the workspace.`},HOST_UNSUPPORTED:{title:`Not available here`,message:`This host doesn't offer that.`},FILE_TOO_LARGE:{title:`File too large`,message:`Choose a file within the supported size limit.`},IDENTITY:{title:`Couldn't connect`,message:`Reopen the App to connect again.`,action:`reconnect`},INSUFFICIENT_CREDIT:{title:`Out of credit`,message:`Your Team doesn't have enough credit for this. Add credit to continue.`,action:`billing`},INVALID_ARGUMENT:{title:`Request not accepted`,message:`Some of the details weren't usable. Check them and try again.`},MEDIA_PROVIDER_FAILURE:{title:`Generation failed`,message:`The model couldn't complete this generation. Change the prompt or model and send again.`},MEDIA_PROVIDER_FAILURE_UNCHARGED:{title:`Generation failed`,message:`The model couldn't complete this generation. You weren't charged. Change the prompt or model and send again.`},PROTOCOL:{title:`Couldn't read the response`,message:`The host sent something this App doesn't understand. Reload the workspace; if it keeps happening, the App may need an update.`},SAFETY_FILTER_REFUSED:{title:`Generation refused`,message:`The model refused this generation. Change the prompt or reference image and send again.`},SELECTION_CHANGED:{title:`Selection changed`,message:`The selection changed during this request. Reopen the App to continue.`,action:`reconnect`},SETUP_REQUIRED:{title:`Setup needed`,message:gb(void 0),action:`setup`},TIMEOUT:{title:`Still waiting`,message:`The request didn't respond in time. Its outcome isn't known yet.`},UNKNOWN:{title:`Something went wrong`,message:`The App couldn't complete this request.`}};function vb(e){return e===void 0||e===``?``:` (ref ${e})`}var yb={exec_isolation_required:()=>({title:`App can't run here`,message:`This App needs a runtime this host doesn't have.`}),execution_not_admitted:()=>({title:`App not allowed to run`,message:`This App isn't allowed to run right now. A Team owner can check its access.`}),artifact_unavailable:()=>({title:`App files missing`,message:`This App's files couldn't be loaded. Update or reinstall it.`}),disabled:()=>({title:`App turned off`,message:`This App is turned off.`}),timed_out:()=>({title:`Still waiting`,message:`The App took too long to answer. Its result isn't known; check before you retry.`}),permission_changed:()=>({title:`Access changed`,message:`This App's access changed while it was working. Review its permissions.`,action:`grant`}),binding_reply_invalid:(e,t)=>({title:`Internal error`,message:t===void 0?`One of the App's connections returned an answer we couldn't read. That's our bug${vb(e)}.`:`The App's ${t.binding.toLowerCase()} connection answered ${t.method} with something we couldn't read${t.path===``?``:` (${t.path})`}. That's our bug${vb(e)}.`}),cancelled:()=>({title:`Request cancelled`,message:`This request was cancelled before it finished. Start it again if you still want it.`}),request_too_large:()=>({title:`Request too large`,message:`This request is too large for the App to accept. Try something smaller.`}),not_offered:()=>({title:`App can't do that`,message:`This App doesn't offer that.`}),backend_error:e=>({title:`The App failed`,message:`The App's own code failed on this request${vb(e)}.`}),internal:e=>({title:`Internal error`,message:`An internal error stopped the App from running this request${vb(e)}.`})};function bb(e,t){let n=jd(db)(e);if(yn(n))return{..._b.UNKNOWN,retryable:!1};let r=n.value,i=_b[r.code],a=wn(jd(fb)(r.reason));if(a!==void 0){let e=wn(jd(pb)(r.where)),t=yb[a](r.ref,e),n=t.action??(r.retryable?`retry`:void 0),i={title:t.title,message:t.message,retryable:r.retryable};return n?{...i,action:n}:i}let o=t?.[r.code]??(r.code===`SETUP_REQUIRED`?{title:i.title,message:gb(hb(r.need))}:i),s=i.action??(r.retryable?`retry`:void 0),c={title:o.title,message:o.message,retryable:r.retryable};return s?{...c,action:s}:c}var xb=200;function Sb(e){let t=(bn(jd(db)(e))?bb(e).message:e instanceof sv?`The response was not in the expected shape`:e instanceof Error?e.message.trim():``).replace(/\.+$/u,``);return t.length===0?`No reason was given`:t.length>xb?`${t.slice(0,xb)}…`:t}function Cb(e,t){return`${e}: ${Sb(t)}.`}function wb(e,t){return bn(jd(db)(t))?Cb(e,t):`${e}: the host returned an error it did not describe.`}var Tb=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&N(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&N(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function N(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,N(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Eb=t(((e,t)=>{t.exports=Tb()})),Db=t((e=>{var t=jf(),n=Eb();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function m(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function h(e,t,n,r){if(t==null||m(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function g(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var _={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){_[e]=new g(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];_[t]=new g(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){_[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){_[e]=new g(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){_[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){_[e]=new g(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){_[e]=new g(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){_[e]=new g(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){_[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,t,n,r){var i=_.hasOwnProperty(t)?_[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(h(t,n,i,r)&&(n=null),r||i===null?p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for(`react.element`),C=Symbol.for(`react.portal`),w=Symbol.for(`react.fragment`),T=Symbol.for(`react.strict_mode`),E=Symbol.for(`react.profiler`),D=Symbol.for(`react.provider`),O=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),j=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),P=Symbol.for(`react.offscreen`),F=Symbol.iterator;function I(e){return typeof e!=`object`||!e?null:(e=F&&e[F]||e[`@@iterator`],typeof e==`function`?e:null)}var L=Object.assign,R;function z(e){if(R===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||``}return`
|
|
76
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function b_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:C_(t,`input`,e.processors),output:C_(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function x_(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return x_(r.element,n);if(r.type===`set`)return x_(r.valueType,n);if(r.type===`lazy`)return x_(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return x_(r.innerType,n);if(r.type===`intersection`)return x_(r.left,n)||x_(r.right,n);if(r.type===`record`||r.type===`map`)return x_(r.keyType,n)||x_(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:x_(r.in,n)||x_(r.out,n);if(r.type===`object`){for(let e in r.shape)if(x_(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(x_(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(x_(e,n))return!0;return!!(r.rest&&x_(r.rest,n))}return!1}var S_=(e,t={})=>n=>{let r=__({...n,processors:t});return v_(e,r),y_(r,e),b_(r,e)},C_=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=__({...i??{},target:a,io:t,processors:n});return v_(e,o),y_(o,e),b_(o,e)},w_={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},T_=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=w_[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},E_=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},D_=(e,t,n,r)=>{n.type=`boolean`},O_=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},k_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},A_=(e,t,n,r)=>{n.not={}},j_=(e,t,n,r)=>{let i=e._zod.def,a=Bf(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},M_=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},N_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},P_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},F_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},I_=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=v_(a.element,t,{...r,path:[...r.path,`items`]})},L_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=v_(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=v_(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},R_=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>v_(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},z_=(e,t,n,r)=>{let i=e._zod.def,a=v_(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=v_(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},B_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>v_(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?v_(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},V_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=v_(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=v_(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=v_(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},H_=(e,t,n,r)=>{let i=e._zod.def,a=v_(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},U_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},W_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},G_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},K_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},q_=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;v_(o,t,r);let s=t.seen.get(e);s.ref=o},J_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Y_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},X_=(e,t,n,r)=>{let i=e._zod.def;v_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Z_=(e,t,n,r)=>{let i=e._zod.innerType;v_(i,t,r);let a=t.seen.get(e);a.ref=i},Q_=K(`ZodISODateTime`,(e,t)=>{eh.init(e,t),Dv.init(e,t)});function $_(e){return Fg(Q_,e)}var ev=K(`ZodISODate`,(e,t)=>{th.init(e,t),Dv.init(e,t)});function tv(e){return Ig(ev,e)}var nv=K(`ZodISOTime`,(e,t)=>{nh.init(e,t),Dv.init(e,t)});function rv(e){return Lg(nv,e)}var iv=K(`ZodISODuration`,(e,t)=>{rh.init(e,t),Dv.init(e,t)});function av(e){return Rg(iv,e)}var ov=(e,t)=>{Cp.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ep(e,t)},flatten:{value:t=>Tp(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Vf,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Vf,2)}},isEmpty:{get(){return e.issues.length===0}}})},sv=K(`ZodError`,ov),cv=K(`ZodError`,ov,{Parent:Error}),lv=Dp(cv),uv=kp(cv),dv=jp(cv),fv=Np(cv),pv=Fp(cv),mv=Ip(cv),hv=Lp(cv),gv=Rp(cv),_v=zp(cv),vv=Bp(cv),yv=Vp(cv),bv=Hp(cv),xv=new WeakMap;function Sv(e,t,n){let r=Object.getPrototypeOf(e),i=xv.get(r);if(i||(i=new Set,xv.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Cv=K(`ZodType`,(e,t)=>(Bm.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:C_(e,`input`),output:C_(e,`output`)}}),e.toJSONSchema=S_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>lv(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>dv(e,t,n),e.parseAsync=async(t,n)=>uv(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>fv(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>pv(e,t,n),e.decode=(t,n)=>mv(e,t,n),e.encodeAsync=async(t,n)=>hv(e,t,n),e.decodeAsync=async(t,n)=>gv(e,t,n),e.safeEncode=(t,n)=>_v(e,t,n),e.safeDecode=(t,n)=>vv(e,t,n),e.safeEncodeAsync=async(t,n)=>yv(e,t,n),e.safeDecodeAsync=async(t,n)=>bv(e,t,n),Sv(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Yf(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ap(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(rb(e,t))},superRefine(e,t){return this.check(ib(e,t))},overwrite(e){return this.check(o_(e))},optional(){return My(this)},exactOptional(){return Py(this)},nullable(){return Iy(this)},nullish(){return My(Iy(this))},nonoptional(e){return Hy(this,e)},array(){return uy(this)},or(e){return gy([this,e])},and(e){return by(this,e)},transform(e){return Ky(this,Ay(e))},default(e){return Ry(this,e)},prefault(e){return By(this,e)},catch(e){return Wy(this,e)},pipe(e){return Ky(this,e)},readonly(){return Jy(this)},describe(e){let t=this.clone();return dg.add(t,{description:e}),t},meta(...e){if(e.length===0)return dg.get(this);let t=this.clone();return dg.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return dg.get(e)?.description},configurable:!0}),e)),wv=K(`_ZodString`,(e,t)=>{Vm.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T_(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Sv(e,`_ZodString`,{regex(...e){return this.check(e_(...e))},includes(...e){return this.check(r_(...e))},startsWith(...e){return this.check(i_(...e))},endsWith(...e){return this.check(a_(...e))},min(...e){return this.check(Qg(...e))},max(...e){return this.check(Zg(...e))},length(...e){return this.check($g(...e))},nonempty(...e){return this.check(Qg(1,...e))},lowercase(e){return this.check(t_(e))},uppercase(e){return this.check(n_(e))},trim(){return this.check(c_())},normalize(...e){return this.check(s_(...e))},toLowerCase(){return this.check(l_())},toUpperCase(){return this.check(u_())},slugify(){return this.check(d_())}})}),Tv=K(`ZodString`,(e,t)=>{Vm.init(e,t),wv.init(e,t),e.email=t=>e.check(pg(Ov,t)),e.url=t=>e.check(yg(Mv,t)),e.jwt=t=>e.check(Pg(Jv,t)),e.emoji=t=>e.check(bg(Pv,t)),e.guid=t=>e.check(mg(kv,t)),e.uuid=t=>e.check(hg(Av,t)),e.uuidv4=t=>e.check(gg(Av,t)),e.uuidv6=t=>e.check(_g(Av,t)),e.uuidv7=t=>e.check(vg(Av,t)),e.nanoid=t=>e.check(xg(Fv,t)),e.guid=t=>e.check(mg(kv,t)),e.cuid=t=>e.check(Sg(Iv,t)),e.cuid2=t=>e.check(Cg(Lv,t)),e.ulid=t=>e.check(wg(Rv,t)),e.base64=t=>e.check(jg(Gv,t)),e.base64url=t=>e.check(Mg(Kv,t)),e.xid=t=>e.check(Tg(zv,t)),e.ksuid=t=>e.check(Eg(Bv,t)),e.ipv4=t=>e.check(Dg(Vv,t)),e.ipv6=t=>e.check(Og(Hv,t)),e.cidrv4=t=>e.check(kg(Uv,t)),e.cidrv6=t=>e.check(Ag(Wv,t)),e.e164=t=>e.check(Ng(qv,t)),e.datetime=t=>e.check($_(t)),e.date=t=>e.check(tv(t)),e.time=t=>e.check(rv(t)),e.duration=t=>e.check(av(t))});function Ev(e){return fg(Tv,e)}var Dv=K(`ZodStringFormat`,(e,t)=>{Hm.init(e,t),wv.init(e,t)}),Ov=K(`ZodEmail`,(e,t)=>{Gm.init(e,t),Dv.init(e,t)}),kv=K(`ZodGUID`,(e,t)=>{Um.init(e,t),Dv.init(e,t)}),Av=K(`ZodUUID`,(e,t)=>{Wm.init(e,t),Dv.init(e,t)});function jv(e){return hg(Av,e)}var Mv=K(`ZodURL`,(e,t)=>{Km.init(e,t),Dv.init(e,t)});function Nv(e){return yg(Mv,e)}var Pv=K(`ZodEmoji`,(e,t)=>{qm.init(e,t),Dv.init(e,t)}),Fv=K(`ZodNanoID`,(e,t)=>{Jm.init(e,t),Dv.init(e,t)}),Iv=K(`ZodCUID`,(e,t)=>{Ym.init(e,t),Dv.init(e,t)}),Lv=K(`ZodCUID2`,(e,t)=>{Xm.init(e,t),Dv.init(e,t)}),Rv=K(`ZodULID`,(e,t)=>{Zm.init(e,t),Dv.init(e,t)}),zv=K(`ZodXID`,(e,t)=>{Qm.init(e,t),Dv.init(e,t)}),Bv=K(`ZodKSUID`,(e,t)=>{$m.init(e,t),Dv.init(e,t)}),Vv=K(`ZodIPv4`,(e,t)=>{ih.init(e,t),Dv.init(e,t)}),Hv=K(`ZodIPv6`,(e,t)=>{ah.init(e,t),Dv.init(e,t)}),Uv=K(`ZodCIDRv4`,(e,t)=>{oh.init(e,t),Dv.init(e,t)}),Wv=K(`ZodCIDRv6`,(e,t)=>{sh.init(e,t),Dv.init(e,t)}),Gv=K(`ZodBase64`,(e,t)=>{lh.init(e,t),Dv.init(e,t)}),Kv=K(`ZodBase64URL`,(e,t)=>{dh.init(e,t),Dv.init(e,t)}),qv=K(`ZodE164`,(e,t)=>{fh.init(e,t),Dv.init(e,t)}),Jv=K(`ZodJWT`,(e,t)=>{mh.init(e,t),Dv.init(e,t)}),Yv=K(`ZodNumber`,(e,t)=>{hh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E_(e,t,n,r),Sv(e,`ZodNumber`,{gt(e,t){return this.check(Jg(e,t))},gte(e,t){return this.check(Yg(e,t))},min(e,t){return this.check(Yg(e,t))},lt(e,t){return this.check(Kg(e,t))},lte(e,t){return this.check(qg(e,t))},max(e,t){return this.check(qg(e,t))},int(e){return this.check(Qv(e))},safe(e){return this.check(Qv(e))},positive(e){return this.check(Jg(0,e))},nonnegative(e){return this.check(Yg(0,e))},negative(e){return this.check(Kg(0,e))},nonpositive(e){return this.check(qg(0,e))},multipleOf(e,t){return this.check(Xg(e,t))},step(e,t){return this.check(Xg(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Xv(e){return zg(Yv,e)}var Zv=K(`ZodNumberFormat`,(e,t)=>{gh.init(e,t),Yv.init(e,t)});function Qv(e){return Bg(Zv,e)}var $v=K(`ZodBoolean`,(e,t)=>{_h.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D_(e,t,n,r)});function ey(e){return Vg($v,e)}var ty=K(`ZodNull`,(e,t)=>{vh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O_(e,t,n,r)});function ny(e){return Hg(ty,e)}var ry=K(`ZodUnknown`,(e,t)=>{yh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function iy(){return Ug(ry)}var ay=K(`ZodNever`,(e,t)=>{bh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A_(e,t,n,r)});function oy(e){return Wg(ay,e)}var sy=K(`ZodVoid`,(e,t)=>{xh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k_(e,t,n,r)});function cy(e){return Gg(sy,e)}var ly=K(`ZodArray`,(e,t)=>{Ch.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I_(e,t,n,r),e.element=t.element,Sv(e,`ZodArray`,{min(e,t){return this.check(Qg(e,t))},nonempty(e){return this.check(Qg(1,e))},max(e,t){return this.check(Zg(e,t))},length(e,t){return this.check($g(e,t))},unwrap(){return this.element}})});function uy(e,t){return f_(ly,e,t)}var dy=K(`ZodObject`,(e,t)=>{Oh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L_(e,t,n,r),qf(e,`shape`,()=>t.shape),Sv(e,`ZodObject`,{keyof(){return Ey(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:iy()})},loose(){return this.clone({...this._zod.def,catchall:iy()})},strict(){return this.clone({...this._zod.def,catchall:oy()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return up(this,e)},safeExtend(e){return dp(this,e)},merge(e){return fp(this,e)},pick(e){return cp(this,e)},omit(e){return lp(this,e)},partial(...e){return pp(jy,this,e[0])},required(...e){return mp(Vy,this,e[0])}})});function fy(e,t){return new dy({type:`object`,shape:e??{},...q(t)})}function py(e,t){return new dy({type:`object`,shape:e,catchall:oy(),...q(t)})}function my(e,t){return new dy({type:`object`,shape:e,catchall:iy(),...q(t)})}var hy=K(`ZodUnion`,(e,t)=>{Ah.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R_(e,t,n,r),e.options=t.options});function gy(e,t){return new hy({type:`union`,options:e,...q(t)})}var _y=K(`ZodDiscriminatedUnion`,(e,t)=>{hy.init(e,t),jh.init(e,t)});function vy(e,t,n){return new _y({type:`union`,options:t,discriminator:e,...q(n)})}var yy=K(`ZodIntersection`,(e,t)=>{Mh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z_(e,t,n,r)});function by(e,t){return new yy({type:`intersection`,left:e,right:t})}var xy=K(`ZodTuple`,(e,t)=>{Fh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B_(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function Sy(e,t,n){let r=t instanceof Bm;return new xy({type:`tuple`,items:e,rest:r?t:null,...q(r?n:t)})}var Cy=K(`ZodRecord`,(e,t)=>{zh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V_(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function wy(e,t,n){return!t||!t._zod?new Cy({type:`record`,keyType:Ev(),valueType:e,...q(t)}):new Cy({type:`record`,keyType:e,valueType:t,...q(n)})}var Ty=K(`ZodEnum`,(e,t)=>{Bh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j_(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ty({...t,checks:[],...q(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ty({...t,checks:[],...q(r),entries:i})}});function Ey(e,t){return new Ty({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...q(t)})}var Dy=K(`ZodLiteral`,(e,t)=>{Vh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M_(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Oy(e,t){return new Dy({type:`literal`,values:Array.isArray(e)?e:[e],...q(t)})}var ky=K(`ZodTransform`,(e,t)=>{Hh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F_(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lf(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(xp(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(xp(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Ay(e){return new ky({type:`transform`,transform:e})}var jy=K(`ZodOptional`,(e,t)=>{Wh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function My(e){return new jy({type:`optional`,innerType:e})}var Ny=K(`ZodExactOptional`,(e,t)=>{Gh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Py(e){return new Ny({type:`optional`,innerType:e})}var Fy=K(`ZodNullable`,(e,t)=>{Kh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Iy(e){return new Fy({type:`nullable`,innerType:e})}var Ly=K(`ZodDefault`,(e,t)=>{qh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ry(e,t){return new Ly({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():np(t)}})}var zy=K(`ZodPrefault`,(e,t)=>{Yh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function By(e,t){return new zy({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():np(t)}})}var Vy=K(`ZodNonOptional`,(e,t)=>{Xh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Hy(e,t){return new Vy({type:`nonoptional`,innerType:e,...q(t)})}var Uy=K(`ZodCatch`,(e,t)=>{Qh.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wy(e,t){return new Uy({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Gy=K(`ZodPipe`,(e,t)=>{$h.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q_(e,t,n,r),e.in=t.in,e.out=t.out});function Ky(e,t){return new Gy({type:`pipe`,in:e,out:t})}var qy=K(`ZodReadonly`,(e,t)=>{tg.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Jy(e){return new qy({type:`readonly`,innerType:e})}var Yy=K(`ZodLazy`,(e,t)=>{ag.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z_(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function Xy(e){return new Yy({type:`lazy`,getter:e})}var Zy=K(`ZodPromise`,(e,t)=>{ig.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Qy(e){return new Zy({type:`promise`,innerType:e})}var $y=K(`ZodFunction`,(e,t)=>{rg.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P_(e,t,n,r)});function eb(e){return new $y({type:`function`,input:Array.isArray(e?.input)?Sy(e?.input):e?.input??uy(iy()),output:e?.output??iy()})}var tb=K(`ZodCustom`,(e,t)=>{og.init(e,t),Cv.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N_(e,t,n,r)});function nb(e,t){return p_(tb,e??(()=>!0),t)}function rb(e,t={}){return m_(tb,e,t)}function ib(e,t){return h_(e,t)}function ab(e,t={}){let n=new tb({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...q(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function ob(e){let t=Xy(()=>gy([Ev(e),Xv(),ey(),ny(),uy(t),wy(Ev(),t)]));return t}var sb=Vd.pipe($d(vf(1)),$d(xf(80))),cb=[`exec_isolation_required`,`execution_not_admitted`,`artifact_unavailable`,`disabled`,`timed_out`,`permission_changed`,`binding_reply_invalid`,`backend_error`,`cancelled`,`request_too_large`,`not_offered`,`internal`],lb=py({binding:Ev().min(1).max(64),method:Ev().min(1).max(128),path:Ev().max(256)});py({error:Oy(`App execution unavailable`),reason:Ey(cb),ref:Ev().min(1).max(64).optional(),where:lb.optional()});var ub=[`APP_CONFIGURATION_FAILED`,`CANCELLED`,`CAPABILITY_DENIED`,`CAPABILITY_REVOKED`,`COMMAND_NOT_DECLARED`,`CONFLICT`,`DAILY_LIMIT_REACHED`,`DELIVERY_PENDING`,`DESKTOP_OBSERVATION_LIMIT_REACHED`,`DISCONNECTED`,`FILE_TOO_LARGE`,`HOST_FAILURE`,`HOST_UNSUPPORTED`,`IDENTITY`,`INSUFFICIENT_CREDIT`,`INVALID_ARGUMENT`,`MEDIA_PROVIDER_FAILURE`,`MEDIA_PROVIDER_FAILURE_UNCHARGED`,`PROTOCOL`,`SAFETY_FILTER_REFUSED`,`SELECTION_CHANGED`,`SETUP_REQUIRED`,`TIMEOUT`],db=Gd({name:Ld(`AppError`),code:Xd(ub),retryable:Ud,need:Id(Vd),reason:Id(Vd),ref:Id(Vd),where:Id(Rd)}),fb=Xd(cb),pb=Gd({binding:Vd,method:Vd,path:Vd}),mb=class extends Error{code;retryable;need;reason;ref;where;constructor(e,t){super(e,{cause:t.cause}),this.name=`AppError`,this.code=t.code,this.retryable=t.retryable,this.need=t.need,this.reason=t.reason,this.ref=t.ref,this.where=t.where}};function hb(e){return wn(jd(sb)(e))}function gb(e){return`This needs ${e??`setup`} first.`}var _b={APP_CONFIGURATION_FAILED:{title:`Couldn't load the App`,message:`The App's configuration could not be loaded. Try opening it again.`},CANCELLED:{title:`Request cancelled`,message:`It stopped before it finished. Start it again if you still want it.`},CAPABILITY_DENIED:{title:`Access needed`,message:`This App needs permission to do that.`,action:`grant`},CAPABILITY_REVOKED:{title:`Access changed`,message:`This App no longer has permission to do that.`,action:`grant`},COMMAND_NOT_DECLARED:{title:`Action unavailable`,message:`This App doesn't include that action. It may need an update.`},CONFLICT:{title:`File changed`,message:`This file changed elsewhere. Review it before saving again.`},DAILY_LIMIT_REACHED:{title:`Daily limit reached`,message:`Today's spending limit for this Oyster is used up. It resets at 00:00 UTC.`},DELIVERY_PENDING:{title:`App delivery pending`,message:`The App hasn't finished getting ready. Try opening it again.`},DESKTOP_OBSERVATION_LIMIT_REACHED:{title:`Desktop observation limit reached`,message:`This desktop already has 24 active observations. Close one before adding another.`},DISCONNECTED:{title:`Connection lost`,message:`Reopen the App to connect again.`,action:`reconnect`},HOST_FAILURE:{title:`Couldn't complete the request`,message:`The host stopped answering. Reopen the App or reload the workspace.`},HOST_UNSUPPORTED:{title:`Not available here`,message:`This host doesn't offer that.`},FILE_TOO_LARGE:{title:`File too large`,message:`Choose a file within the supported size limit.`},IDENTITY:{title:`Couldn't connect`,message:`Reopen the App to connect again.`,action:`reconnect`},INSUFFICIENT_CREDIT:{title:`Out of credit`,message:`Your Team doesn't have enough credit for this. Add credit to continue.`,action:`billing`},INVALID_ARGUMENT:{title:`Request not accepted`,message:`Some of the details weren't usable. Check them and try again.`},MEDIA_PROVIDER_FAILURE:{title:`Generation failed`,message:`The model couldn't complete this generation. Change the prompt or model and send again.`},MEDIA_PROVIDER_FAILURE_UNCHARGED:{title:`Generation failed`,message:`The model couldn't complete this generation. You weren't charged. Change the prompt or model and send again.`},PROTOCOL:{title:`Couldn't read the response`,message:`The host sent something this App doesn't understand. Reload the workspace; if it keeps happening, the App may need an update.`},SAFETY_FILTER_REFUSED:{title:`Generation refused`,message:`The model refused this generation. Change the prompt or reference image and send again.`},SELECTION_CHANGED:{title:`Selection changed`,message:`The selection changed during this request. Reopen the App to continue.`,action:`reconnect`},SETUP_REQUIRED:{title:`Setup needed`,message:gb(void 0),action:`setup`},TIMEOUT:{title:`Still waiting`,message:`The request didn't respond in time. Its outcome isn't known yet.`},UNKNOWN:{title:`Something went wrong`,message:`The App couldn't complete this request.`}};function vb(e){return e===void 0||e===``?``:` (ref ${e})`}var yb={exec_isolation_required:()=>({title:`App can't run here`,message:`This App needs a runtime this host doesn't have.`}),execution_not_admitted:()=>({title:`App not allowed to run`,message:`This App isn't allowed to run right now. A Team owner can check its access.`}),artifact_unavailable:()=>({title:`App files missing`,message:`This App's files couldn't be loaded. Update or reinstall it.`}),disabled:()=>({title:`App turned off`,message:`This App is turned off.`}),timed_out:()=>({title:`Still waiting`,message:`The App took too long to answer. Its result isn't known; check before you retry.`}),permission_changed:()=>({title:`Access changed`,message:`This App's access changed while it was working. Review its permissions.`,action:`grant`}),binding_reply_invalid:(e,t)=>({title:`Internal error`,message:t===void 0?`One of the App's connections returned an answer we couldn't read. That's our bug${vb(e)}.`:`The App's ${t.binding.toLowerCase()} connection answered ${t.method} with something we couldn't read${t.path===``?``:` (${t.path})`}. That's our bug${vb(e)}.`}),cancelled:()=>({title:`Request cancelled`,message:`This request was cancelled before it finished. Start it again if you still want it.`}),request_too_large:()=>({title:`Request too large`,message:`This request is too large for the App to accept. Try something smaller.`}),not_offered:()=>({title:`App can't do that`,message:`This App doesn't offer that.`}),backend_error:e=>({title:`The App failed`,message:`The App's own code failed on this request${vb(e)}.`}),internal:e=>({title:`Internal error`,message:`An internal error stopped the App from running this request${vb(e)}.`})};function bb(e,t){let n=jd(db)(e);if(yn(n))return{..._b.UNKNOWN,retryable:!1};let r=n.value,i=_b[r.code],a=wn(jd(fb)(r.reason));if(a!==void 0){let e=wn(jd(pb)(r.where)),t=yb[a](r.ref,e),n=t.action??(r.retryable?`retry`:void 0),i={title:t.title,message:t.message,retryable:r.retryable};return n?{...i,action:n}:i}let o=t?.[r.code]??(r.code===`SETUP_REQUIRED`?{title:i.title,message:gb(hb(r.need))}:i),s=i.action??(r.retryable?`retry`:void 0),c={title:o.title,message:o.message,retryable:r.retryable};return s?{...c,action:s}:c}var xb=200;function Sb(e){let t=(bn(jd(db)(e))?bb(e).message:e instanceof sv?`The response was not in the expected shape`:e instanceof Error?e.message.trim():``).replace(/\.+$/u,``);return t.length===0?`No reason was given`:t.length>xb?`${t.slice(0,xb)}…`:t}function Cb(e,t){return`${e}: ${Sb(t)}.`}function wb(e,t){return bn(jd(db)(t))?Cb(e,t):`${e}: the host returned an error it did not describe.`}var Tb=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&N(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&N(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function N(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,N(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Eb=t(((e,t)=>{t.exports=Tb()})),Db=t((e=>{var t=jf(),n=Eb();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function m(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function h(e,t,n,r){if(t==null||m(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function g(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var _={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){_[e]=new g(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];_[t]=new g(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){_[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){_[e]=new g(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){_[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){_[e]=new g(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){_[e]=new g(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){_[e]=new g(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){_[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,t,n,r){var i=_.hasOwnProperty(t)?_[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(h(t,n,i,r)&&(n=null),r||i===null?p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for(`react.element`),C=Symbol.for(`react.portal`),w=Symbol.for(`react.fragment`),T=Symbol.for(`react.strict_mode`),E=Symbol.for(`react.profiler`),D=Symbol.for(`react.provider`),O=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),j=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),P=Symbol.for(`react.offscreen`),F=Symbol.iterator;function I(e){return typeof e!=`object`||!e?null:(e=F&&e[F]||e[`@@iterator`],typeof e==`function`?e:null)}var L=Object.assign,R;function z(e){if(R===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||``}return`
|
|
77
77
|
`+R+e}var ee=!1;function te(e,t){if(!e||ee)return``;ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
78
78
|
`),a=r.stack.split(`
|
|
79
79
|
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Xi as t,Zi as n,ur as r}from"./tree-path-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Xi as t,Zi as n,ur as r}from"./tree-path-DQAnGoeW.js";var i=r(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),a=`file-tree-container`,o=`data-file-tree-style`,s=`data-file-tree-unsafe-css`,c=`data-file-tree-scrollbar-measure`,l=`data-file-tree-scrollbar-gutter-measured`,u=`--trees-scrollbar-gutter-measured`,d=`header`,f=`context-menu`,p=`context-menu-trigger`,m=e(n(),1),h=t(),g=typeof window>`u`?m.useEffect:m.useLayoutEffect;function _(e,t,n){let r=e==null?null:(0,h.jsx)(`div`,{slot:d,children:e}),i=t!=null&&n!=null?(0,h.jsx)(`div`,{slot:f,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,h.jsxs)(h.Fragment,{children:[r,i]})}function v(e,t){return typeof window>`u`&&t!=null?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,h.jsx)(h.Fragment,{children:e})}function y(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement||e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function b(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function x({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...o}){let[s,c]=(0,m.useState)(null),[l,u]=(0,m.useState)(null),d=(0,m.useRef)(n.getComposition()),f=(0,m.useRef)(n);f.current!==n&&(f.current=n,d.current=n.getComposition());let p=i!=null,x=(0,m.useCallback)(()=>{c(null)},[]),S=(0,m.useCallback)((e,t)=>{c({context:t,item:e})},[]),C=d.current,ee=(0,m.useMemo)(()=>b(C,e,p,x,S),[C,x,S,p,e]),w=(0,m.useCallback)(e=>{u(e)},[]);(0,m.useEffect)(()=>{p||c(null)},[p]),g(()=>{n.setComposition(ee)},[ee,n]),g(()=>{if(l!=null)return r!=null&&y(l)?n.hydrate({fileTreeContainer:l}):n.render({fileTreeContainer:l}),()=>{n.unmount(),n.setComposition(C)}},[C,l,n,r]);let T=v(_(e,i,s),r),te=t??r?.id,ne={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...o.style};return(0,h.jsx)(a,{...o,id:te,ref:w,style:ne,suppressHydrationWarning:r!=null,children:T})}var S=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
2
2
|
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
3
3
|
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
4
4
|
</symbol>
|