@tryglen/review 0.2.6 → 0.2.9
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/ui/assets/agent-list-query-BgIUfEeT.js +1 -0
- package/dist/ui/assets/card-BPb3NZYg.js +1 -0
- package/dist/ui/assets/command-BSg5dFqb.js +1 -0
- package/dist/ui/assets/diff-viewer-B_49fnUB.js +4 -0
- package/dist/ui/assets/explored-file-view-R_xvhDGA.js +1 -0
- package/dist/ui/assets/history-nav-buttons-CjkVKgZu.js +2 -0
- package/dist/ui/assets/index-CP_RdmQ5.css +2 -0
- package/dist/ui/assets/index-DEHXf4PP.js +75 -0
- package/dist/ui/assets/inline-ask-BADMnkfU.js +1 -0
- package/dist/ui/assets/{input-group-U_GsVv_E.js → input-group-apzvTSGh.js} +1 -1
- package/dist/ui/assets/local-side-panel-YozB4kaM.js +2 -0
- package/dist/ui/assets/query-error-DSrxRVZP.js +2 -0
- package/dist/ui/assets/{schemas-BCcEJklu.js → schemas-D5jfrTNW.js} +1 -1
- package/dist/ui/assets/shortcut-label-Do9KpCPN.js +1 -0
- package/dist/ui/index.html +5 -5
- package/package.json +2 -2
- package/dist/ui/assets/agent-list-query-BMjRH3m5.js +0 -1
- package/dist/ui/assets/card-DKSHVMIl.js +0 -1
- package/dist/ui/assets/command-CgTrYgTX.js +0 -1
- package/dist/ui/assets/diff-viewer-B35pRLx2.js +0 -4
- package/dist/ui/assets/explored-file-view-ABC2oYrx.js +0 -1
- package/dist/ui/assets/highlighted-code-Bj0IJVZH.js +0 -2
- package/dist/ui/assets/index-D23Ci4Pu.css +0 -2
- package/dist/ui/assets/index-DKOFiQ-E.js +0 -75
- package/dist/ui/assets/inline-ask-CPrMJ-Sg.js +0 -1
- package/dist/ui/assets/local-side-panel-BaaCUYLQ.js +0 -2
- package/dist/ui/assets/query-error-DAke5it8.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{l as t,n,r}from"./button-DizkG3Et.js";import{B as i,_ as a,b as o,g as s,h as c,l,m as u,p as d,s as f,v as p,y as m}from"./query-error-DAke5it8.js";import{a as ee,o as te}from"./bundle-mjs-IMkwHZOK.js";function ne(e){return e}function re(e){return e}var ie=d(c(),1),ae=class extends Error{constructor(e){super(oe(e)),Object.assign(this,e)}};function oe(e){if(`message`in e)return String(e.message)}function se(e){if(e instanceof Error)return e;let t=typeof e;if(t!==`undefined`&&t!==`function`&&e!==null){if(t!==`object`)return Error(String(e));if(m(e))return new ae(e)}}var ce=class extends Error{constructor(e){let t=se(e.cause),n=e.message??t?.message??e.code;super(n,{cause:t}),(0,ie.default)(this,`cause`,void 0),(0,ie.default)(this,`code`,void 0),this.code=e.code,this.name=`TRPCError`,this.cause??=t}};d(s(),1),d(s(),1);function le(e){return typeof e==`function`}async function ue(e,t){let{_def:n}=e,r=n.procedures[t];for(;!r;){let e=Object.keys(n.lazy).find(e=>t.startsWith(e));if(!e)return null;await n.lazy[e].load(),r=n.procedures[t]}return r}async function de(e){let{type:t,path:n}=e,r=await ue(e.router,n);if(!r||!le(r)||r._def.type!==t&&!e.allowMethodOverride)throw new ce({code:`NOT_FOUND`,message:`No "${t}"-procedure on path "${n}"`});if(r._def.type!==t&&e.allowMethodOverride&&r._def.type===`subscription`)throw new ce({code:`METHOD_NOT_SUPPORTED`,message:`Method override is not supported for subscriptions`});return r(e)}var h=e(te(),1),fe=ee(),pe=Object.create,me=Object.defineProperty,he=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,_e=Object.getPrototypeOf,ve=Object.prototype.hasOwnProperty,g=(e,t)=>function(){return t||(0,e[ge(e)[0]])((t={exports:{}}).exports,t),t.exports},ye=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ge(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ve.call(e,s)&&s!==n&&me(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=he(t,s))||r.enumerable});return e},_=(e,t,n)=>(n=e==null?{}:pe(_e(e)),ye(t||!e||!e.__esModule?me(n,`default`,{value:e,enumerable:!0}):n,e)),be=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xe=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=be().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Se=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=be().default,r=xe();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ce=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Se();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ce();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),we=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){var t,n,i,a=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(n&&(t=e[n])!=null)return t.call(e);if(i&&(t=e[i])!=null)return new r(t.call(e));n=`@@asyncIterator`,i=`@@iterator`}throw TypeError(`Object is not async iterable`)}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Te=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ee=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=Te();function r(e,t){if(e==null)return{};var r,i,a=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),De=_(v(),1),Oe=_(we(),1),ke=_(Ee(),1),Ae=[`cursor`,`direction`];function je(e){return{path:e.path.join(`.`)}}function Me(e){return e.length>=3}function Ne(e){return Me(e)?{type:`prefixed`,prefix:e[0],path:e[1],args:e[2]}:{type:`unprefixed`,prefix:void 0,path:e[0],args:e[1]}}function Pe(e,t,n){let r=Ne(e),i=r.args?.input;return n&&(i=(0,De.default)((0,De.default)((0,De.default)({},r.args?.input??{}),n.pageParam===void 0?{}:{cursor:n.pageParam}),{},{direction:n.direction})),[r.path.join(`.`),i,t?.trpc]}async function Fe(e,t,n){let r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:`success`});let i=[];var a=!1,o=!1,s;try{for(var c=(0,Oe.default)(e),l;a=!(l=await c.next()).done;a=!1){let e=l.value;i.push(e),r.setState({data:[...i]})}}catch(e){o=!0,s=e}finally{try{a&&c.return!=null&&await c.return()}finally{if(o)throw s}}return i}function y(e){let t=o(()=>{let{input:t,type:n}=e,r=e.path.flatMap(e=>e.split(`.`));if(!t&&n===`any`)return r.length?[r]:[];if(n===`infinite`&&m(t)&&(`direction`in t||`cursor`in t)){let{cursor:e,direction:n}=t;return[r,{input:(0,ke.default)(t,Ae),type:`infinite`}]}return[r,(0,De.default)((0,De.default)({},t!==void 0&&t!==i&&{input:t}),n&&n!==`any`&&{type:n})]});return e.prefix&&t.unshift([e.prefix]),t}function Ie(e){let t=[e.path.flatMap(e=>e.split(`.`))];return e.prefix&&t.unshift([e.prefix]),t}function Le(e){return p(e)?e():e}var b=_(v());function Re(e){let{input:t,query:n,path:r,queryKey:a,opts:o}=e,s=t===i;return Object.assign(re((0,b.default)((0,b.default)({},o??{}),{},{queryKey:a,queryFn:s?i:async e=>{var t;let r=(0,b.default)((0,b.default)({},o),{},{trpc:(0,b.default)((0,b.default)({},o?.trpc),o!=null&&(t=o.trpc)!=null&&t.abortOnUnmount?{signal:e.signal}:{signal:null})});return await n(...Pe(a,r,{direction:e.direction,pageParam:e.pageParam}))},initialPageParam:o?.initialCursor??t?.cursor})),{trpc:je({path:r})})}var ze=_(v());function Be(e){let{mutate:t,path:n,opts:r,overrides:i}=e,a=Le(e.queryClient),o=Ie({path:n,prefix:r?.keyPrefix}),s=a.defaultMutationOptions(a.getMutationDefaults(o)),c=i?.onSuccess??(e=>e.originalFn());return(0,ze.default)((0,ze.default)({},r),{},{mutationKey:o,mutationFn:async e=>await t(...Pe([...o,{input:e}],r)),onSuccess(...e){return c({originalFn:()=>{var t,n;return(r==null||(t=r.onSuccess)==null?void 0:t.call(r,...e))??(s==null||(n=s.onSuccess)==null?void 0:n.call(s,...e))},queryClient:a,meta:r?.meta??s?.meta??{}})},trpc:je({path:n})})}var x=_(v());function Ve(e){let{input:t,query:n,path:r,queryKey:o,opts:s}=e,c=Le(e.queryClient),l=t===i;return Object.assign(ne((0,x.default)((0,x.default)({},s),{},{queryKey:o,queryFn:l?i:async e=>{var t;let r=(0,x.default)((0,x.default)({},s),{},{trpc:(0,x.default)((0,x.default)({},s?.trpc),s!=null&&(t=s.trpc)!=null&&t.abortOnUnmount?{signal:e.signal}:{signal:null})}),i=e.queryKey,o=await n(...Pe(i,r));return a(o)?Fe(o,c,i):o}})),{trpc:je({path:r})})}var He=_(v(),1),Ue=e=>{var t;let{subscribe:n,path:r,queryKey:a,opts:o={}}=e,s=(t=Ne(a))==null||(t=t.args)==null?void 0:t.input,c=`enabled`in o?!!o.enabled:s!==i;return(0,He.default)((0,He.default)({},o),{},{enabled:c,subscribe:e=>n(r.join(`.`),s??void 0,e),queryKey:a,trpc:je({path:r})})},S=_(v(),1);function We(e){let t=e.keyPrefix,n=t=>(n,r,i)=>`router`in e?Promise.resolve(Le(e.ctx)).then(i=>de({router:e.router,path:n,getRawInput:async()=>r,ctx:i,type:t,signal:void 0,batchIndex:0})):(e.client instanceof f?e.client:l(e.client))[t](n,r,i);return u(({args:r,path:i})=>{let a=[...i],o=a.pop(),[s,c]=r;return{"~types":void 0,pathKey:()=>y({path:a,type:`any`,prefix:t}),pathFilter:()=>(0,S.default)((0,S.default)({},s),{},{queryKey:y({path:a,type:`any`,prefix:t})}),queryOptions:()=>Ve({input:s,opts:c,path:a,queryClient:e.queryClient,queryKey:y({path:a,input:s,type:`query`,prefix:t}),query:n(`query`)}),queryKey:()=>y({path:a,input:s,type:`query`,prefix:t}),queryFilter:()=>(0,S.default)((0,S.default)({},c),{},{queryKey:y({path:a,input:s,type:`query`,prefix:t})}),infiniteQueryOptions:()=>Re({input:s,opts:c,path:a,queryClient:e.queryClient,queryKey:y({path:a,input:s,type:`infinite`,prefix:t}),query:n(`query`)}),infiniteQueryKey:()=>y({path:a,input:s,type:`infinite`,prefix:t}),infiniteQueryFilter:()=>(0,S.default)((0,S.default)({},c),{},{queryKey:y({path:a,input:s,type:`infinite`,prefix:t})}),mutationOptions:()=>Be({opts:s,path:a,queryClient:e.queryClient,mutate:n(`mutation`),overrides:e.overrides?.mutations}),mutationKey:()=>Ie({path:a,prefix:t}),subscriptionOptions:()=>Ue({opts:c,path:a,queryKey:y({path:a,input:s,type:`any`,prefix:t}),subscribe:n(`subscription`)})}[o]()})}function Ge(){let e=h.createContext(null),t=h.createContext(null),n=n=>{let r=h.useMemo(()=>We({client:n.trpcClient,queryClient:n.queryClient,keyPrefix:n.keyPrefix}),[n.trpcClient,n.queryClient,n.keyPrefix]);return(0,fe.jsx)(e.Provider,{value:n.trpcClient,children:(0,fe.jsx)(t.Provider,{value:r,children:n.children})})};n.displayName=`TRPCProvider`;function r(){let e=h.useContext(t);if(!e)throw Error(`useTRPC() can only be used inside of a <TRPCProvider>`);return e}function i(){let t=h.useContext(e);if(!t)throw Error(`useTRPCClient() can only be used inside of a <TRPCProvider>`);return t}return{TRPCProvider:n,useTRPC:r,useTRPCClient:i}}var{TRPCProvider:Ke,useTRPC:qe}=Ge(),Je=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-chip border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors duration-(--duration-fast) motion-reduce:transition-none low-power:transition-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary-hover`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary-hover`,destructive:`bg-destructive-soft text-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive-hover`,outline:`border-edge-strong bg-glass text-foreground [a]:hover:bg-hover-tint`,ghost:`hover:bg-hover-tint`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function Ye({className:e,variant:n=`default`,asChild:i=!1,...a}){let o=i?r:`span`;return(0,fe.jsx)(o,{"data-slot":`badge`,"data-variant":n,className:t(Je({variant:n}),e),...a})}function Xe(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ze(e,t=`|`){return e.map(e=>gt(e)).join(t)}function Qe(e,t){return typeof t==`bigint`?t.toString():t}var $e=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function et(e){return new $e(e)}function tt(e){return e==null}function nt(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function rt(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function C(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function it(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function w(e){return it(e._zod.def)??e._zod.def.shape}function at(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return C(this,t,e),e},enumerable:!0,configurable:!0})}function ot(e,t,n){t in e?C(e,t,n):e[t]=n}function T(e,t,n,r){let i=w(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?at(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):ot(e,a,r?r(n.value,a):n.value))}}function st(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?at(e,n,()=>t[n]):ot(e,n,r.value))}}function E(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ct(e){return JSON.stringify(e)}function lt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ut=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function dt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ft=et(()=>{if(z.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function pt(e){if(dt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return dt(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function mt(e){return pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ht=new Set([`string`,`number`,`symbol`]);function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function O(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function k(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function gt(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function _t(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var vt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},yt={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function bt(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return T(i,e,xt(e,t)),O(e,E(n,{shape:i,checks:[]}))}function xt(e,t){let n=w(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function St(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(xt(e,t)),a={};return T(a,e,Reflect.ownKeys(w(e)).filter(e=>!i.has(e))),O(e,E(n,{shape:a,checks:[]}))}function Ct(e,t){if(!pt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=w(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return O(e,E(e._zod.def,{shape:wt(e,t)}))}function wt(e,t){let n={};return T(n,e,Reflect.ownKeys(w(e))),st(n,t),n}function Tt(e,t){if(!pt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return O(e,E(e._zod.def,{shape:wt(e,t)}))}function Et(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return T(n,e,Reflect.ownKeys(w(e))),T(n,t,Reflect.ownKeys(w(t))),O(e,E(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Dt(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(xt(t,n)):void 0,o={};return T(o,t,Reflect.ownKeys(w(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),O(t,E(t._zod.def,{shape:o,checks:[]}))}function Ot(e,t,n){let r=n?new Set(xt(t,n)):void 0,i={};return T(i,t,Reflect.ownKeys(w(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),O(t,E(t._zod.def,{shape:i}))}function A(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function kt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function At(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function j(e){return typeof e==`string`?e:e?.message}function jt(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function Mt(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function M(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:j(e.inst?._zod.def?.error?.(e))??j(a?.(e))??j(t?.error?.(e))??j(n.customError?.(e))??j(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Nt=/[\uD800-\uDBFF]/;function Pt(e){let t=e.length;if(!Nt.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Ft(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function It(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function N(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Lt(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Bt(e,n,r.value)}}function P(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Rt(e,t,n){return P(e,t,n,!1)}function zt(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return P(this,n,r(this))},set(e){P(this,n,e)}})}return t}function Bt(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:P(this,t,n.bind(this))},set(e){P(this,t,e)}})}function Vt(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Ht,F=!1,Ut={configurable:!0,get(){F=!0}};function I(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Ht!==e._zod?Ht=void 0:(Ht=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ut);let e=F;F=!1;try{let r=n(this);return F?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),F||=e,r}catch(n){throw delete this[t],F||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Wt(e,t,n,r){let i=Vt(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Gt=`~constantCatch`;function Kt(e){let t=()=>e;return t[Gt]=!0,t}var qt,Jt={value:void 0,enumerable:!1},Yt=`captureStackTrace`in Error?Error:null;function Xt(e){let t=Yt;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Yt=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function L(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Jt.value=new a(r);try{Object.defineProperty(n,"_zod",Jt)}finally{Jt.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Lt(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Xt(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var R=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Zt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(qt=globalThis).__zod_globalConfig??(qt.__zod_globalConfig={});var z=globalThis.__zod_globalConfig;function B(e){return e&&Object.assign(z,e),z}function Qt(){let e=this._zod;return e.message??=JSON.stringify(e.def,Qe,2),e.message}function $t(e){this._zod.message=e}var en={get:Qt,set:$t,enumerable:!0,configurable:!0},tn={value:void 0,enumerable:!1},nn=new WeakSet([Object.prototype,Error.prototype]),rn=L(`$ZodError`,(e,t)=>{e.name=`$ZodError`,tn.value=t,Object.defineProperty(e,"issues",tn),tn.value=void 0,Object.defineProperty(e,"message",en);let n=Object.getPrototypeOf(e);nn.has(n)||(nn.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function an(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function on(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?an(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function sn(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function cn(e,t){return{callee:t?.callee??e,Err:t?.Err}}var ln=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new R;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>M(e,o,B())));throw ut(n,a?.callee??t),n}return s.value};return t},un=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>M(e,o,B())));throw ut(n,a?.callee??t),n}return s.value};return t},dn=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new R;return a.issues.length?fn(e,a.issues,i):{success:!0,data:a.value}};function fn(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>M(e,n,B()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var pn=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?fn(e,a.issues,i):{success:!0,data:a.value}},mn=Symbol.for(`zod.compile.invalid`),hn=Symbol.for(`zod.compile.fallback`),gn=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==mn)return!0;if(r.definite===!0&&n===void 0)return!1}return _n(e,t,n)});function _n(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[hn]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new R;return a.issues.length===0}var vn=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},yn=e=>{let t=ln(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,cn(n,a))};return n},bn=e=>{let t=ln(e),n=(e,r,i,a)=>t(e,r,i,cn(n,a));return n},xn=e=>{let t=un(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,cn(n,a))};return n},Sn=e=>{let t=un(e),n=async(e,r,i,a)=>await t(e,r,i,cn(n,a));return n},Cn=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dn(e)(t,n,i)},wn=e=>(t,n,r)=>dn(e)(t,n,r),Tn=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pn(e)(t,n,i)},En=e=>async(t,n,r)=>pn(e)(t,n,r),Dn=/^[cC][0-9a-z]{6,}$/,On=/^[0-9a-z]+$/,kn=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,An=/^[0-9a-vA-V]{20}$/,jn=/^[A-Za-z0-9]{27}$/,Mn=/^[a-zA-Z0-9_-]{21}$/;function Nn(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Pn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Fn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,In=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ln=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rn=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function zn(){return new RegExp(Rn,`u`)}var Bn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Hn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Un=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Kn=/^https?$/,qn=/^\+[1-9]\d{6,14}$/,Jn=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Yn(e){return RegExp(`^${e}$`)}var Xn=Yn(Jn);function Zn(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Qn(e){return RegExp(`^${Zn(e)}$`)}function $n(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Zn({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Zn({precision:e.precision})}`:n;return RegExp(`^${Jn}T(?:${r})$`)}var er=/^[\s\S]{0,}$/,tr=/^-?\d+(?:\.\d+)?$/,nr=/^(?:true|false)$/i,rr=/^[^A-Z]*$/,ir=/^[^a-z]*$/,V=L(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ar=e=>{let t=e.value;return!tt(t)&&t.length!==void 0},or={number:`number`,bigint:`bigint`,object:`date`},sr=L(`$ZodCheckLessThan`,(e,t)=>{V.init(e,t);let n=or[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:or[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cr=L(`$ZodCheckGreaterThan`,(e,t)=>{V.init(e,t);let n=or[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:or[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),lr=L(`$ZodCheckMultipleOf`,(e,t)=>{V.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):rt(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ur=L(`$ZodCheckNumberFormat`,(e,t)=>{V.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=vt[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),dr=L(`$ZodCheckMaxLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Pt(r):i)<=t.maximum)return;let a=Ft(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fr=L(`$ZodCheckMinLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Pt(r):i)>=t.minimum)return;let a=Ft(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),pr=L(`$ZodCheckLengthEquals`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Pt(r):i;if(a===t.length)return;let o=Ft(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),mr=L(`$ZodCheckStringFormat`,(e,t)=>{var n,r;V.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hr=L(`$ZodCheckRegex`,(e,t)=>{mr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gr=L(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=rr,mr.init(e,t)}),_r=L(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ir,mr.init(e,t)}),vr=L(`$ZodCheckIncludes`,(e,t)=>{V.init(e,t);let n=D(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),yr=L(`$ZodCheckStartsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`^${D(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),br=L(`$ZodCheckEndsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`.*${D(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),xr=L(`$ZodCheckOverwrite`,(e,t)=>{V.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Sr=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{l as t,n,r}from"./button-DizkG3Et.js";import{D as i,F as a,I as o,L as s,M as c,N as l,P as u,R as d,T as f,it as p,j as m}from"./query-error-DSrxRVZP.js";import{a as ee,o as te}from"./bundle-mjs-IMkwHZOK.js";function ne(e){return e}function re(e){return e}var ie=m(l(),1),ae=class extends Error{constructor(e){super(oe(e)),Object.assign(this,e)}};function oe(e){if(`message`in e)return String(e.message)}function se(e){if(e instanceof Error)return e;let t=typeof e;if(t!==`undefined`&&t!==`function`&&e!==null){if(t!==`object`)return Error(String(e));if(s(e))return new ae(e)}}var ce=class extends Error{constructor(e){let t=se(e.cause),n=e.message??t?.message??e.code;super(n,{cause:t}),(0,ie.default)(this,`cause`,void 0),(0,ie.default)(this,`code`,void 0),this.code=e.code,this.name=`TRPCError`,this.cause??=t}};m(u(),1),m(u(),1);function le(e){return typeof e==`function`}async function ue(e,t){let{_def:n}=e,r=n.procedures[t];for(;!r;){let e=Object.keys(n.lazy).find(e=>t.startsWith(e));if(!e)return null;await n.lazy[e].load(),r=n.procedures[t]}return r}async function de(e){let{type:t,path:n}=e,r=await ue(e.router,n);if(!r||!le(r)||r._def.type!==t&&!e.allowMethodOverride)throw new ce({code:`NOT_FOUND`,message:`No "${t}"-procedure on path "${n}"`});if(r._def.type!==t&&e.allowMethodOverride&&r._def.type===`subscription`)throw new ce({code:`METHOD_NOT_SUPPORTED`,message:`Method override is not supported for subscriptions`});return r(e)}var h=e(te(),1),fe=ee(),pe=Object.create,me=Object.defineProperty,he=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,_e=Object.getPrototypeOf,ve=Object.prototype.hasOwnProperty,g=(e,t)=>function(){return t||(0,e[ge(e)[0]])((t={exports:{}}).exports,t),t.exports},ye=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ge(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ve.call(e,s)&&s!==n&&me(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=he(t,s))||r.enumerable});return e},_=(e,t,n)=>(n=e==null?{}:pe(_e(e)),ye(t||!e||!e.__esModule?me(n,`default`,{value:e,enumerable:!0}):n,e)),be=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xe=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=be().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Se=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=be().default,r=xe();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ce=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Se();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ce();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),we=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){var t,n,i,a=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(n&&(t=e[n])!=null)return t.call(e);if(i&&(t=e[i])!=null)return new r(t.call(e));n=`@@asyncIterator`,i=`@@iterator`}throw TypeError(`Object is not async iterable`)}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Te=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ee=g({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=Te();function r(e,t){if(e==null)return{};var r,i,a=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),De=_(v(),1),Oe=_(we(),1),ke=_(Ee(),1),Ae=[`cursor`,`direction`];function je(e){return{path:e.path.join(`.`)}}function Me(e){return e.length>=3}function Ne(e){return Me(e)?{type:`prefixed`,prefix:e[0],path:e[1],args:e[2]}:{type:`unprefixed`,prefix:void 0,path:e[0],args:e[1]}}function Pe(e,t,n){let r=Ne(e),i=r.args?.input;return n&&(i=(0,De.default)((0,De.default)((0,De.default)({},r.args?.input??{}),n.pageParam===void 0?{}:{cursor:n.pageParam}),{},{direction:n.direction})),[r.path.join(`.`),i,t?.trpc]}async function Fe(e,t,n){let r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:`success`});let i=[];var a=!1,o=!1,s;try{for(var c=(0,Oe.default)(e),l;a=!(l=await c.next()).done;a=!1){let e=l.value;i.push(e),r.setState({data:[...i]})}}catch(e){o=!0,s=e}finally{try{a&&c.return!=null&&await c.return()}finally{if(o)throw s}}return i}function y(e){let t=d(()=>{let{input:t,type:n}=e,r=e.path.flatMap(e=>e.split(`.`));if(!t&&n===`any`)return r.length?[r]:[];if(n===`infinite`&&s(t)&&(`direction`in t||`cursor`in t)){let{cursor:e,direction:n}=t;return[r,{input:(0,ke.default)(t,Ae),type:`infinite`}]}return[r,(0,De.default)((0,De.default)({},t!==void 0&&t!==p&&{input:t}),n&&n!==`any`&&{type:n})]});return e.prefix&&t.unshift([e.prefix]),t}function Ie(e){let t=[e.path.flatMap(e=>e.split(`.`))];return e.prefix&&t.unshift([e.prefix]),t}function Le(e){return o(e)?e():e}var b=_(v());function Re(e){let{input:t,query:n,path:r,queryKey:i,opts:a}=e,o=t===p;return Object.assign(re((0,b.default)((0,b.default)({},a??{}),{},{queryKey:i,queryFn:o?p:async e=>{var t;let r=(0,b.default)((0,b.default)({},a),{},{trpc:(0,b.default)((0,b.default)({},a?.trpc),a!=null&&(t=a.trpc)!=null&&t.abortOnUnmount?{signal:e.signal}:{signal:null})});return await n(...Pe(i,r,{direction:e.direction,pageParam:e.pageParam}))},initialPageParam:a?.initialCursor??t?.cursor})),{trpc:je({path:r})})}var ze=_(v());function Be(e){let{mutate:t,path:n,opts:r,overrides:i}=e,a=Le(e.queryClient),o=Ie({path:n,prefix:r?.keyPrefix}),s=a.defaultMutationOptions(a.getMutationDefaults(o)),c=i?.onSuccess??(e=>e.originalFn());return(0,ze.default)((0,ze.default)({},r),{},{mutationKey:o,mutationFn:async e=>await t(...Pe([...o,{input:e}],r)),onSuccess(...e){return c({originalFn:()=>{var t,n;return(r==null||(t=r.onSuccess)==null?void 0:t.call(r,...e))??(s==null||(n=s.onSuccess)==null?void 0:n.call(s,...e))},queryClient:a,meta:r?.meta??s?.meta??{}})},trpc:je({path:n})})}var x=_(v());function Ve(e){let{input:t,query:n,path:r,queryKey:i,opts:o}=e,s=Le(e.queryClient),c=t===p;return Object.assign(ne((0,x.default)((0,x.default)({},o),{},{queryKey:i,queryFn:c?p:async e=>{var t;let r=(0,x.default)((0,x.default)({},o),{},{trpc:(0,x.default)((0,x.default)({},o?.trpc),o!=null&&(t=o.trpc)!=null&&t.abortOnUnmount?{signal:e.signal}:{signal:null})}),i=e.queryKey,c=await n(...Pe(i,r));return a(c)?Fe(c,s,i):c}})),{trpc:je({path:r})})}var He=_(v(),1),Ue=e=>{var t;let{subscribe:n,path:r,queryKey:i,opts:a={}}=e,o=(t=Ne(i))==null||(t=t.args)==null?void 0:t.input,s=`enabled`in a?!!a.enabled:o!==p;return(0,He.default)((0,He.default)({},a),{},{enabled:s,subscribe:e=>n(r.join(`.`),o??void 0,e),queryKey:i,trpc:je({path:r})})},S=_(v(),1);function We(e){let t=e.keyPrefix,n=t=>(n,r,a)=>`router`in e?Promise.resolve(Le(e.ctx)).then(i=>de({router:e.router,path:n,getRawInput:async()=>r,ctx:i,type:t,signal:void 0,batchIndex:0})):(e.client instanceof f?e.client:i(e.client))[t](n,r,a);return c(({args:r,path:i})=>{let a=[...i],o=a.pop(),[s,c]=r;return{"~types":void 0,pathKey:()=>y({path:a,type:`any`,prefix:t}),pathFilter:()=>(0,S.default)((0,S.default)({},s),{},{queryKey:y({path:a,type:`any`,prefix:t})}),queryOptions:()=>Ve({input:s,opts:c,path:a,queryClient:e.queryClient,queryKey:y({path:a,input:s,type:`query`,prefix:t}),query:n(`query`)}),queryKey:()=>y({path:a,input:s,type:`query`,prefix:t}),queryFilter:()=>(0,S.default)((0,S.default)({},c),{},{queryKey:y({path:a,input:s,type:`query`,prefix:t})}),infiniteQueryOptions:()=>Re({input:s,opts:c,path:a,queryClient:e.queryClient,queryKey:y({path:a,input:s,type:`infinite`,prefix:t}),query:n(`query`)}),infiniteQueryKey:()=>y({path:a,input:s,type:`infinite`,prefix:t}),infiniteQueryFilter:()=>(0,S.default)((0,S.default)({},c),{},{queryKey:y({path:a,input:s,type:`infinite`,prefix:t})}),mutationOptions:()=>Be({opts:s,path:a,queryClient:e.queryClient,mutate:n(`mutation`),overrides:e.overrides?.mutations}),mutationKey:()=>Ie({path:a,prefix:t}),subscriptionOptions:()=>Ue({opts:c,path:a,queryKey:y({path:a,input:s,type:`any`,prefix:t}),subscribe:n(`subscription`)})}[o]()})}function Ge(){let e=h.createContext(null),t=h.createContext(null),n=n=>{let r=h.useMemo(()=>We({client:n.trpcClient,queryClient:n.queryClient,keyPrefix:n.keyPrefix}),[n.trpcClient,n.queryClient,n.keyPrefix]);return(0,fe.jsx)(e.Provider,{value:n.trpcClient,children:(0,fe.jsx)(t.Provider,{value:r,children:n.children})})};n.displayName=`TRPCProvider`;function r(){let e=h.useContext(t);if(!e)throw Error(`useTRPC() can only be used inside of a <TRPCProvider>`);return e}function i(){let t=h.useContext(e);if(!t)throw Error(`useTRPCClient() can only be used inside of a <TRPCProvider>`);return t}return{TRPCProvider:n,useTRPC:r,useTRPCClient:i}}var{TRPCProvider:Ke,useTRPC:qe}=Ge(),Je=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-chip border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors duration-(--duration-fast) motion-reduce:transition-none low-power:transition-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary-hover`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary-hover`,destructive:`bg-destructive-soft text-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive-hover`,outline:`border-edge-strong bg-glass text-foreground [a]:hover:bg-hover-tint`,ghost:`hover:bg-hover-tint`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function Ye({className:e,variant:n=`default`,asChild:i=!1,...a}){let o=i?r:`span`;return(0,fe.jsx)(o,{"data-slot":`badge`,"data-variant":n,className:t(Je({variant:n}),e),...a})}function Xe(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ze(e,t=`|`){return e.map(e=>gt(e)).join(t)}function Qe(e,t){return typeof t==`bigint`?t.toString():t}var $e=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function et(e){return new $e(e)}function tt(e){return e==null}function nt(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function rt(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function C(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function it(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function w(e){return it(e._zod.def)??e._zod.def.shape}function at(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return C(this,t,e),e},enumerable:!0,configurable:!0})}function ot(e,t,n){t in e?C(e,t,n):e[t]=n}function T(e,t,n,r){let i=w(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?at(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):ot(e,a,r?r(n.value,a):n.value))}}function st(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?at(e,n,()=>t[n]):ot(e,n,r.value))}}function E(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ct(e){return JSON.stringify(e)}function lt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ut=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function dt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ft=et(()=>{if(z.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function pt(e){if(dt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return dt(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function mt(e){return pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ht=new Set([`string`,`number`,`symbol`]);function D(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function O(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function k(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function gt(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function _t(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var vt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},yt={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function bt(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return T(i,e,xt(e,t)),O(e,E(n,{shape:i,checks:[]}))}function xt(e,t){let n=w(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function St(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(xt(e,t)),a={};return T(a,e,Reflect.ownKeys(w(e)).filter(e=>!i.has(e))),O(e,E(n,{shape:a,checks:[]}))}function Ct(e,t){if(!pt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=w(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return O(e,E(e._zod.def,{shape:wt(e,t)}))}function wt(e,t){let n={};return T(n,e,Reflect.ownKeys(w(e))),st(n,t),n}function Tt(e,t){if(!pt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return O(e,E(e._zod.def,{shape:wt(e,t)}))}function Et(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return T(n,e,Reflect.ownKeys(w(e))),T(n,t,Reflect.ownKeys(w(t))),O(e,E(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Dt(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(xt(t,n)):void 0,o={};return T(o,t,Reflect.ownKeys(w(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),O(t,E(t._zod.def,{shape:o,checks:[]}))}function Ot(e,t,n){let r=n?new Set(xt(t,n)):void 0,i={};return T(i,t,Reflect.ownKeys(w(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),O(t,E(t._zod.def,{shape:i}))}function A(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function kt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function At(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function j(e){return typeof e==`string`?e:e?.message}function jt(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function Mt(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function M(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:j(e.inst?._zod.def?.error?.(e))??j(a?.(e))??j(t?.error?.(e))??j(n.customError?.(e))??j(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Nt=/[\uD800-\uDBFF]/;function Pt(e){let t=e.length;if(!Nt.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Ft(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function It(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function N(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Lt(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Bt(e,n,r.value)}}function P(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Rt(e,t,n){return P(e,t,n,!1)}function zt(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return P(this,n,r(this))},set(e){P(this,n,e)}})}return t}function Bt(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:P(this,t,n.bind(this))},set(e){P(this,t,e)}})}function Vt(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Ht,F=!1,Ut={configurable:!0,get(){F=!0}};function I(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Ht!==e._zod?Ht=void 0:(Ht=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ut);let e=F;F=!1;try{let r=n(this);return F?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),F||=e,r}catch(n){throw delete this[t],F||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Wt(e,t,n,r){let i=Vt(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Gt=`~constantCatch`;function Kt(e){let t=()=>e;return t[Gt]=!0,t}var qt,Jt={value:void 0,enumerable:!1},Yt=`captureStackTrace`in Error?Error:null;function Xt(e){let t=Yt;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Yt=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function L(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Jt.value=new a(r);try{Object.defineProperty(n,"_zod",Jt)}finally{Jt.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Lt(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Xt(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var R=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Zt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(qt=globalThis).__zod_globalConfig??(qt.__zod_globalConfig={});var z=globalThis.__zod_globalConfig;function B(e){return e&&Object.assign(z,e),z}function Qt(){let e=this._zod;return e.message??=JSON.stringify(e.def,Qe,2),e.message}function $t(e){this._zod.message=e}var en={get:Qt,set:$t,enumerable:!0,configurable:!0},tn={value:void 0,enumerable:!1},nn=new WeakSet([Object.prototype,Error.prototype]),rn=L(`$ZodError`,(e,t)=>{e.name=`$ZodError`,tn.value=t,Object.defineProperty(e,"issues",tn),tn.value=void 0,Object.defineProperty(e,"message",en);let n=Object.getPrototypeOf(e);nn.has(n)||(nn.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function an(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function on(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?an(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function sn(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function cn(e,t){return{callee:t?.callee??e,Err:t?.Err}}var ln=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new R;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>M(e,o,B())));throw ut(n,a?.callee??t),n}return s.value};return t},un=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>M(e,o,B())));throw ut(n,a?.callee??t),n}return s.value};return t},dn=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new R;return a.issues.length?fn(e,a.issues,i):{success:!0,data:a.value}};function fn(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>M(e,n,B()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var pn=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?fn(e,a.issues,i):{success:!0,data:a.value}},mn=Symbol.for(`zod.compile.invalid`),hn=Symbol.for(`zod.compile.fallback`),gn=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==mn)return!0;if(r.definite===!0&&n===void 0)return!1}return _n(e,t,n)});function _n(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[hn]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new R;return a.issues.length===0}var vn=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},yn=e=>{let t=ln(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,cn(n,a))};return n},bn=e=>{let t=ln(e),n=(e,r,i,a)=>t(e,r,i,cn(n,a));return n},xn=e=>{let t=un(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,cn(n,a))};return n},Sn=e=>{let t=un(e),n=async(e,r,i,a)=>await t(e,r,i,cn(n,a));return n},Cn=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dn(e)(t,n,i)},wn=e=>(t,n,r)=>dn(e)(t,n,r),Tn=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pn(e)(t,n,i)},En=e=>async(t,n,r)=>pn(e)(t,n,r),Dn=/^[cC][0-9a-z]{6,}$/,On=/^[0-9a-z]+$/,kn=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,An=/^[0-9a-vA-V]{20}$/,jn=/^[A-Za-z0-9]{27}$/,Mn=/^[a-zA-Z0-9_-]{21}$/;function Nn(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Pn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Fn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,In=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ln=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rn=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function zn(){return new RegExp(Rn,`u`)}var Bn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Hn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Un=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Kn=/^https?$/,qn=/^\+[1-9]\d{6,14}$/,Jn=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Yn(e){return RegExp(`^${e}$`)}var Xn=Yn(Jn);function Zn(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Qn(e){return RegExp(`^${Zn(e)}$`)}function $n(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Zn({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Zn({precision:e.precision})}`:n;return RegExp(`^${Jn}T(?:${r})$`)}var er=/^[\s\S]{0,}$/,tr=/^-?\d+(?:\.\d+)?$/,nr=/^(?:true|false)$/i,rr=/^[^A-Z]*$/,ir=/^[^a-z]*$/,V=L(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ar=e=>{let t=e.value;return!tt(t)&&t.length!==void 0},or={number:`number`,bigint:`bigint`,object:`date`},sr=L(`$ZodCheckLessThan`,(e,t)=>{V.init(e,t);let n=or[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:or[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cr=L(`$ZodCheckGreaterThan`,(e,t)=>{V.init(e,t);let n=or[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:or[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),lr=L(`$ZodCheckMultipleOf`,(e,t)=>{V.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):rt(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ur=L(`$ZodCheckNumberFormat`,(e,t)=>{V.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=vt[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),dr=L(`$ZodCheckMaxLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Pt(r):i)<=t.maximum)return;let a=Ft(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fr=L(`$ZodCheckMinLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Pt(r):i)>=t.minimum)return;let a=Ft(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),pr=L(`$ZodCheckLengthEquals`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=ar),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Pt(r):i;if(a===t.length)return;let o=Ft(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),mr=L(`$ZodCheckStringFormat`,(e,t)=>{var n,r;V.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hr=L(`$ZodCheckRegex`,(e,t)=>{mr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gr=L(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=rr,mr.init(e,t)}),_r=L(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ir,mr.init(e,t)}),vr=L(`$ZodCheckIncludes`,(e,t)=>{V.init(e,t);let n=D(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),yr=L(`$ZodCheckStartsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`^${D(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),br=L(`$ZodCheckEndsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`.*${D(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),xr=L(`$ZodCheckOverwrite`,(e,t)=>{V.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Sr=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2
2
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
3
3
|
`)}\n};`)(...Object.values(this.closed))}},Cr={major:4,minor:6,patch:7},H=L(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Cr;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=A(t),a;for(let o of n){if(o._zod.def.when){if(kt(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new R;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Mt(t.issues,n,e),i||=A(t,n))});else{if(t.issues.length===n)continue;Mt(t.issues,n,e),i||=A(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(A(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new R;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new R;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Rt(this,`~standard`,Er(this))},set"~standard"(e){P(this,`~standard`,e)}}),wr=(e,t)=>e.issues.length?{issues:e.issues.map(e=>M(e,t,B()))}:{value:e.value};async function Tr(e,t){let n={async:!0};return wr(await e._zod.run({value:t,issues:[]},n),n)}function Er(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return wr(r,n)}catch{}return Tr(e,t)},vendor:`zod`,version:1}}var Dr=L(`$ZodString`,(e,t)=>{H.init(e,t),e._zod.pattern=t.pattern??er,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),U=L(`$ZodStringFormat`,(e,t)=>{mr.init(e,t),Dr.init(e,t)}),Or=L(`$ZodGUID`,(e,t)=>{t.pattern??=Fn,U.init(e,t)}),kr=L(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=In(e)}else t.pattern??=In();U.init(e,t)}),Ar=L(`$ZodEmail`,(e,t)=>{t.pattern??=Ln,U.init(e,t)});function jr(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Mr(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?jr(e)||2:Nr(e,t)}function Nr(e,t){if(!t.normalize&&t.protocol?.source===Kn.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var Pr=/[\t\n\r]/g;function Fr(e){return e.replace(Pr,``)}function Ir(e,t){return t.lastIndex=0,t.test(e.hostname)}function Lr(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Rr=L(`$ZodURL`,(e,t)=>{U.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Mr(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Fr(r);return}t.hostname&&!Ir(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Lr(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Fr(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),zr=L(`$ZodEmoji`,(e,t)=>{t.pattern??=zn(),U.init(e,t)}),Br=L(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Mn:Nn(t.length),U.init(e,t)}),Vr=L(`$ZodCUID`,(e,t)=>{t.pattern??=Dn,U.init(e,t)}),Hr=L(`$ZodCUID2`,(e,t)=>{t.pattern??=On,U.init(e,t)}),Ur=L(`$ZodULID`,(e,t)=>{t.pattern??=kn,U.init(e,t)}),Wr=L(`$ZodXID`,(e,t)=>{t.pattern??=An,U.init(e,t)}),Gr=L(`$ZodKSUID`,(e,t)=>{t.pattern??=jn,U.init(e,t)}),Kr=L(`$ZodISODateTime`,(e,t)=>{t.pattern??=$n(t),U.init(e,t)}),qr=L(`$ZodISODate`,(e,t)=>{t.pattern??=Xn,U.init(e,t)}),Jr=L(`$ZodISOTime`,(e,t)=>{t.pattern??=Qn(t),U.init(e,t)}),Yr=L(`$ZodISODuration`,(e,t)=>{t.pattern??=Pn,U.init(e,t)}),Xr=L(`$ZodIPv4`,(e,t)=>{t.pattern??=Bn,U.init(e,t)}),Zr=/^[0-9a-fA-F:.]+$/;function Qr(e){return Zr.test(e)?jr(`http://[${e}]`):!1}var $r=L(`$ZodIPv6`,(e,t)=>{t.pattern??=Vn,U.init(e,t),e._zod.check=n=>{Qr(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),ei=L(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Hn,U.init(e,t)});function ti(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Qr(n)}var ni=L(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Un,U.init(e,t),e._zod.check=n=>{ti(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function ri(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var ii=/^[0-9a-zA-Z+/]*={0,2}$/,ai=L(`$ZodBase64`,(e,t)=>{t.pattern??=ii,U.init(e,t),e._zod.check=n=>{ri(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),oi=/^[A-Za-z0-9_-]*$/;function si(e){if(!oi.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ri(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var ci=L(`$ZodBase64URL`,(e,t)=>{t.pattern??=oi,U.init(e,t),e._zod.check=n=>{si(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),li=L(`$ZodE164`,(e,t)=>{t.pattern??=qn,U.init(e,t)});function ui(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var di=L(`$ZodJWT`,(e,t)=>{U.init(e,t),e._zod.check=n=>{ui(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),fi=L(`$ZodNumber`,(e,t)=>{H.init(e,t),e._zod.pattern=tr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),pi=L(`$ZodNumberFormat`,(e,t)=>{ur.init(e,t),fi.init(e,t)}),mi=L(`$ZodBoolean`,(e,t)=>{H.init(e,t),e._zod.pattern=nr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),hi=L(`$ZodUnknown`,(e,t)=>{H.init(e,t),e._zod.parse=e=>e}),gi=L(`$ZodNever`,(e,t)=>{H.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function _i(e,t){let n=jt(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of jt(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,Mt(n.issues,t,e),n}}return i(n,a)}}var vi=e=>Array.isArray(e)?e.length:-1;function yi(e,t,n){e.issues.length&&t.issues.push(...At(n,e.issues)),t.value[n]=e.value}var bi=L(`$ZodArray`,(e,t)=>{H.init(e,t);let n=z.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>yi(t,r,e)));else if(yi(c,r,e),s&&c.issues.length!==0&&A(c))break}return o.length?Promise.all(o).then(()=>r):r},_i(e,vi)});function xi(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...At(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Si=[];function Ci(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Si,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=_t(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function wi(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(A(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>xi(e,n,i,t,d,f))):xi(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Ti=L(`$ZodObject`,(e,t)=>{H.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=et(()=>Ci(t));I(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||C(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=dt,o=t.catchall,s,c=z.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(A(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>xi(n,t,e,r,a,o))):xi(s,t,e,r,a,o)}return o?wi(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Ei=L(`$ZodObjectJIT`,(e,t)=>{Ti.init(e,t);let n=e._zod.parse,r=et(()=>Ci(t)),i=z.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Sr([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
4
4
|
let ${e}_ab = false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,l as n,s as r}from"./button-DizkG3Et.js";import{a as i,f as a,g as o,i as s,l as c,m as l,o as u,p as d,r as f,s as p,u as m,v as h,y as g}from"./query-error-DSrxRVZP.js";import{a as _,o as v}from"./bundle-mjs-IMkwHZOK.js";var y=e(v(),1),b=_(),x=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),S=`VisuallyHidden`,C=y.forwardRef((e,t)=>(0,b.jsx)(g.span,{...e,ref:t,style:{...x,...e.style}}));C.displayName=S;var w=C,[T,E]=h(`Tooltip`,[p]),D=p(),O=`TooltipProvider`,k=700,A=`tooltip.open`,[j,M]=T(O),N=e=>{let{__scopeTooltip:t,delayDuration:n=k,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),s=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,b.jsx)(j,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};N.displayName=O;var P=`Tooltip`,[F,I]=T(P),L=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,d=M(P,e.__scopeTooltip),f=D(t),[p,m]=y.useState(null),h=a(),g=y.useRef(0),_=s??d.disableHoverableContent,v=c??d.delayDuration,x=y.useRef(!1),[S,C]=l({prop:r,defaultProp:i??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(A))):d.onClose(),o?.(e)},caller:P}),w=y.useMemo(()=>S?x.current?`delayed-open`:`instant-open`:`closed`,[S]),T=y.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,C(!0)},[C]),E=y.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),O=y.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,C(!0),g.current=0},v)},[v,C]);return y.useEffect(()=>()=>{g.current&&=(window.clearTimeout(g.current),0)},[]),(0,b.jsx)(u,{...f,children:(0,b.jsx)(F,{scope:t,contentId:h,open:S,stateAttribute:w,trigger:p,onTriggerChange:m,onTriggerEnter:y.useCallback(()=>{d.isOpenDelayedRef.current?O():T()},[d.isOpenDelayedRef,O,T]),onTriggerLeave:y.useCallback(()=>{_?E():(window.clearTimeout(g.current),g.current=0)},[E,_]),onOpen:T,onClose:E,disableHoverableContent:_,children:n})})};L.displayName=P;var R=`TooltipTrigger`,z=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,a=I(R,n),s=M(R,n),c=D(n),l=y.useRef(null),u=r(t,l,a.onTriggerChange),d=y.useRef(!1),p=y.useRef(!1),m=y.useCallback(()=>d.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener(`pointerup`,m),[m]),(0,b.jsx)(f,{asChild:!0,...c,children:(0,b.jsx)(g.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:u,onPointerMove:o(e.onPointerMove,e=>{e.pointerType!==`touch`&&!p.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),p.current=!0)}),onPointerLeave:o(e.onPointerLeave,()=>{a.onTriggerLeave(),p.current=!1}),onPointerDown:o(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener(`pointerup`,m,{once:!0})}),onFocus:o(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:o(e.onBlur,a.onClose),onClick:o(e.onClick,a.onClose)})})});z.displayName=R;var B=`TooltipPortal`,[V,H]=T(B,{forceMount:void 0}),U=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=I(B,t);return(0,b.jsx)(V,{scope:t,forceMount:n,children:(0,b.jsx)(d,{present:n||a.open,children:(0,b.jsx)(c,{asChild:!0,container:i,children:r})})})};U.displayName=B;var W=`TooltipContent`,G=y.forwardRef((e,t)=>{let n=H(W,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=I(W,e.__scopeTooltip);return(0,b.jsx)(d,{present:r||o.open,children:o.disableHoverableContent?(0,b.jsx)(X,{side:i,...a,ref:t}):(0,b.jsx)(K,{side:i,...a,ref:t})})}),K=y.forwardRef((e,t)=>{let n=I(W,e.__scopeTooltip),i=M(W,e.__scopeTooltip),a=y.useRef(null),o=r(t,a),[s,c]=y.useState(null),{trigger:l,onClose:u}=n,d=a.current,{onPointerInTransitChange:f}=i,p=y.useCallback(()=>{c(null),f(!1)},[f]),m=y.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ee(r,$(r,n.getBoundingClientRect())),a=te(t.getBoundingClientRect()),o=re([...i,...a]);c(o),f(!0)},[f]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),y.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!ne(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,b.jsx)(X,{...e,ref:o})}),[q,J]=T(P,{isInside:!1}),Y=t(`TooltipContent`),X=y.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=I(W,n),u=D(n),{onClose:d}=l;return y.useEffect(()=>(document.addEventListener(A,d),()=>document.removeEventListener(A,d)),[d]),y.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,b.jsx)(m,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,b.jsxs)(i,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,b.jsx)(Y,{children:r}),(0,b.jsx)(q,{scope:n,isInside:!0,children:(0,b.jsx)(w,{id:l.contentId,role:`tooltip`,children:a||r})})]})})});G.displayName=W;var Z=`TooltipArrow`,Q=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=D(n);return J(Z,n).isInside?null:(0,b.jsx)(s,{...i,...r,ref:t})});Q.displayName=Z;function $(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ee(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function te(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ne(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function re(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),ie(t)}function ie(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ae=N,oe=L,se=z,ce=U,le=G,ue=Q;function de({delayDuration:e=0,...t}){return(0,b.jsx)(ae,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function fe({...e}){return(0,b.jsx)(oe,{"data-slot":`tooltip`,...e})}function pe({...e}){return(0,b.jsx)(se,{"data-slot":`tooltip-trigger`,...e})}function me({className:e,sideOffset:t=0,children:r,...i}){return(0,b.jsx)(ce,{children:(0,b.jsxs)(le,{"data-slot":`tooltip-content`,sideOffset:t,className:n(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-surface bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-chip data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:ease-(--ease-enter) data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:ease-(--ease-exit) data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:duration-0 low-power:duration-0`,e),...i,children:[r,(0,b.jsx)(ue,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-chip bg-foreground fill-foreground`})]})})}var he={mod:`⌘`,shift:`⇧`,alt:`⌥`},ge={mod:`Ctrl`,shift:`Shift`,alt:`Alt`},_e=(e,t)=>{let n=t?he:ge;return e.map(e=>n[e]??e).join(t?``:`+`)},ve=()=>()=>void 0,ye=()=>/Mac|iPhone|iPad/.test(navigator.userAgent),be=({keys:e})=>(0,b.jsx)(b.Fragment,{children:_e(e,(0,y.useSyncExternalStore)(ve,ye,()=>!0))});export{pe as a,de as i,fe as n,me as r,be as t};
|
package/dist/ui/index.html
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
7
7
|
<title>glen review</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DEHXf4PP.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/bundle-mjs-IMkwHZOK.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/button-DizkG3Et.js">
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/query-error-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/schemas-
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/query-error-DSrxRVZP.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/schemas-D5jfrTNW.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/reviewer-connection-B1irBiYS.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-B0Qg_vqV.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/chunk-BO2N2NFS-CNHkQg2l.js">
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/card-
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/card-BPb3NZYg.js">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CP_RdmQ5.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body class="antialiased">
|
|
21
21
|
<div id="root" class="flex h-screen w-full"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryglen/review",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Glen's PR reviewer, served locally from a git worktree of the PR head.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"node": ">=20"
|
|
51
51
|
},
|
|
52
52
|
"license": "UNLICENSED",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "0924c0cc5a363742c922b3fe25b83f27fc2e4f47"
|
|
54
54
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{c as t,l as n,n as r,t as i}from"./button-DizkG3Et.js";import{r as a}from"./query-error-DAke5it8.js";import{a as o,o as s}from"./bundle-mjs-IMkwHZOK.js";import{C as c,E as l,F as u,M as d,O as f,P as p,R as ee,T as m,U as te,c as ne,d as re,f as ie,j as ae,l as oe,o as h,p as g,t as se,u as ce,w as le,z as ue}from"./card-DKSHVMIl.js";import{a as _,r as de,t as v}from"./reviewer-connection-B1irBiYS.js";import{a as fe,c as pe,o as me}from"./input-group-U_GsVv_E.js";import{r as he}from"./chunk-BO2N2NFS-CNHkQg2l.js";import{Ct as ge,Ot as y,_ as _e,_t as ve,bt as ye,g as be,v as xe,vt as Se}from"./index-DKOFiQ-E.js";var b=e(s(),1),Ce=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M152.41,88.56l-89.6,88a12,12,0,0,1-16.82,0L7.59,138.85a12,12,0,0,1,16.82-17.13l30,29.46,81.19-79.74a12,12,0,0,1,16.82,17.12Zm96.15-17a12,12,0,0,0-17-.15L150.4,151.18l-7.88-7.74a12,12,0,0,0-16.82,17.12l16.29,16a12,12,0,0,0,16.82,0l89.6-88A12,12,0,0,0,248.56,71.59Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM72,168a8,8,0,0,1-5.66-2.34l-24-24a8,8,0,0,1,11.32-11.32L72,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-64,64A8,8,0,0,1,72,168Zm141.66-66.34-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L144,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M148.2,84.28l-89.6,88a6,6,0,0,1-8.4,0L11.8,134.57A6,6,0,1,1,20.2,126l34.2,33.58,85.4-83.87a6,6,0,1,1,8.4,8.56Zm96.08-8.48a6,6,0,0,0-8.48-.08l-85.4,83.87-20.23-19.87a6,6,0,1,0-8.41,8.56l24.44,24a6,6,0,0,0,8.4,0l89.6-88A6,6,0,0,0,244.28,75.8Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M146.8,82.85l-89.6,88a4,4,0,0,1-5.6,0L13.2,133.14a4,4,0,0,1,5.6-5.71l35.6,35,86.8-85.24a4,4,0,0,1,5.6,5.7Zm96-5.65a4,4,0,0,0-5.65,0l-86.8,85.24-21.63-21.24a4,4,0,1,0-5.61,5.7l24.44,24a4,4,0,0,0,5.6,0l89.6-88A4,4,0,0,0,242.85,77.2Z`}))]]),we=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z`}))]]),Te=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z`}))]]),Ee=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M208,88H152V32Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z`}))]]),De=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M120,136V96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,48a12,12,0,1,0-12-12A12,12,0,0,0,128,184ZM224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40ZM120,96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M122,136V96a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm6,26a10,10,0,1,0,10,10A10,10,0,0,0,128,162ZM222,56v56c0,51.94-25.12,83.4-46.2,100.64-22.73,18.6-45.27,24.89-46.22,25.15a6,6,0,0,1-3.16,0c-1-.26-23.49-6.55-46.22-25.15C59.12,195.4,34,163.94,34,112V56A14,14,0,0,1,48,42H208A14,14,0,0,1,222,56Zm-12,0a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2v56c0,37.75,13.94,68.39,41.44,91.06A130.94,130.94,0,0,0,128,225.72a131.17,131.17,0,0,0,40.56-22.66C196.06,180.39,210,149.75,210,112Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M120,136V96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,48a12,12,0,1,0-12-12A12,12,0,0,0,128,184ZM224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M124,136V96a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm4,28a8,8,0,1,0,8,8A8,8,0,0,0,128,164ZM220,56v56c0,51.16-24.73,82.12-45.47,99.1-22.4,18.32-44.55,24.5-45.48,24.76a4,4,0,0,1-2.1,0c-.93-.26-23.08-6.44-45.48-24.76C60.73,194.12,36,163.16,36,112V56A12,12,0,0,1,48,44H208A12,12,0,0,1,220,56Zm-8,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4v56c0,38.44,14.23,69.63,42.29,92.71A132.23,132.23,0,0,0,128,227.82a132.45,132.45,0,0,0,41.71-23.11C197.77,181.63,212,150.44,212,112Z`}))]]),Oe=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z`}))]]),ke=new Map([[`bold`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z`}))],[`duotone`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`,opacity:`0.2`}),b.createElement(`path`,{d:`M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z`}))],[`fill`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`}))],[`light`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z`}))],[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z`}))],[`thin`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z`}))]]),x=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:Ce}));x.displayName=`ChecksIcon`;var S=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:we}));S.displayName=`CircleIcon`;var C=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:Te}));C.displayName=`DownloadSimpleIcon`;var w=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:Ee}));w.displayName=`FileTextIcon`;var T=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:De}));T.displayName=`ShieldWarningIcon`;var E=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:Oe}));E.displayName=`SignInIcon`;var D=b.forwardRef((e,n)=>b.createElement(t,{ref:n,...e,weights:ke}));D.displayName=`StopIcon`;var O=o(),k=`Tabs`,[Ae,je]=ae(k,[g]),A=g(),[Me,j]=Ae(k),M=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:u=`automatic`,...f}=e,p=c(s),[ee,m]=l({prop:r,onChange:i,defaultProp:a??``,caller:k});return(0,O.jsx)(Me,{scope:n,baseId:le(),value:ee,onValueChange:m,orientation:o,dir:p,activationMode:u,children:(0,O.jsx)(d.div,{dir:p,"data-orientation":o,...f,ref:t})})});M.displayName=k;var N=`TabsList`,P=b.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=j(N,n),o=A(n);return(0,O.jsx)(ie,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,O.jsx)(d.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});P.displayName=N;var F=`TabsTrigger`,I=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=j(F,n),s=A(n),c=z(o.baseId,r),l=B(o.baseId,r),u=r===o.value;return(0,O.jsx)(re,{asChild:!0,...s,focusable:!i,active:u,children:(0,O.jsx)(d.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:f(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:f(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:f(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});I.displayName=F;var L=`TabsContent`,R=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=j(L,n),c=z(s.baseId,r),l=B(s.baseId,r),u=r===s.value,f=b.useRef(u);return b.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,O.jsx)(m,{present:i||u,children:({present:n})=>(0,O.jsx)(d.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?`0s`:void 0},children:n&&a})})});R.displayName=L;function z(e,t){return`${e}-trigger-${t}`}function B(e,t){return`${e}-content-${t}`}var Ne=M,Pe=P,Fe=I,Ie=R;function Le({value:e,onValueChange:t,onSend:r,onEnter:a,onStop:o,busy:s,canSend:c,children:l,...u}){return(0,O.jsxs)(`div`,{className:n(`glass-surface rounded-surface has-[textarea:focus-visible]:border-ring/50 has-[textarea:focus-visible]:ring-ring/10 low-power:transition-none flex w-full items-end gap-1.5 py-1.5 pr-1.5 transition duration-(--duration-fast) ease-(--ease-standard) has-[textarea:focus-visible]:ring-3 motion-reduce:transition-none`,l?`pl-1.5`:`pl-3`),children:[l,(0,O.jsx)(fe,{rows:1,"aria-label":`Message`,...u,value:e,onChange:e=>t(e.target.value,e.target.selectionStart??e.target.value.length),onKeyDown:e=>{e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing||e.keyCode===229||(e.preventDefault(),(a??r)())},className:`max-h-40 min-h-7 px-0 py-1`}),s&&o?(0,O.jsx)(i,{size:`icon-sm`,variant:`ghost`,"aria-label":`Stop`,onClick:o,children:(0,O.jsx)(D,{weight:`fill`,className:`size-3.5`})}):(0,O.jsx)(i,{size:`icon-sm`,variant:c?`default`:`ghost`,"aria-label":`Send`,disabled:!c,onClick:r,children:(0,O.jsx)(pe,{weight:`bold`,className:`size-4`})})]})}function Re({message:e,detail:t,onRetry:n,retryDisabled:r}){return(0,O.jsxs)(`div`,{role:`alert`,className:`bg-destructive-soft rounded-surface flex items-center justify-between gap-3 px-3 py-2 text-sm`,children:[(0,O.jsxs)(`span`,{className:`text-destructive flex min-w-0 items-start gap-1.5`,children:[(0,O.jsx)(Se,{weight:`fill`,className:`mt-0.5 size-4 shrink-0`}),(0,O.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,O.jsx)(`span`,{children:e}),t?(0,O.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:t}):null]})]}),(0,O.jsxs)(i,{size:`sm`,variant:`outline`,onClick:n,disabled:r,children:[(0,O.jsx)(de,{className:`size-3.5`}),`Retry`]})]})}function ze({label:e,thinking:t}){return(0,O.jsx)(`output`,{className:`text-muted-foreground flex items-center gap-2 self-start py-1 empty:absolute empty:p-0`,children:t?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(p,{role:`presentation`,"aria-hidden":!0}),(0,O.jsx)(`span`,{className:`text-shimmer text-xs font-medium`,children:e})]}):null})}function V({children:e,className:t}){return(0,O.jsx)(he,{className:n(`text-foreground min-w-0 text-sm leading-relaxed`,t),children:e})}function Be({icon:e,children:t,title:r,failed:i=!1}){return(0,O.jsxs)(`div`,{title:r,className:n(`bg-background rounded-chip border-edge flex h-6 max-w-full items-center gap-1.5 self-start border px-1.5 text-xs`,i?`text-destructive`:`text-muted-foreground`),children:[(0,O.jsx)(`span`,{className:`flex shrink-0 items-center`,children:e}),(0,O.jsx)(`span`,{className:`min-w-0 truncate`,children:t})]})}function Ve({children:e,className:t}){return(0,O.jsx)(`div`,{className:n(`bg-secondary text-secondary-foreground rounded-surface ml-auto max-w-4/5 px-4 py-2.5 text-sm wrap-break-word whitespace-pre-wrap`,t),children:e})}var He=e=>{if(e.kind===`selection`){if(e.path){let t=e.startLine&&e.endLine&&e.endLine!==e.startLine?`:${e.startLine}-${e.endLine}`:e.startLine?`:${e.startLine}`:``;return`${e.path}${t}`}return e.label??`Selected context`}if(e.kind===`file`)return e.path;if(e.kind===`symbol`)return`${e.name} - ${e.path}`;if(e.kind===`pr-description`)return`PR #${e.prNumber}`;if(e.kind===`check`)return e.name;let t=e.path?` - ${e.path}${e.line?`:${e.line}`:``}`:``;return`${e.author}${t}`},Ue=e=>e.kind===`selection`||e.kind===`symbol`?(0,O.jsx)(me,{className:`text-muted-foreground size-3.5 shrink-0`}):e.kind===`file`?(0,O.jsx)(w,{className:`text-muted-foreground size-3.5 shrink-0`}):e.kind===`pr-description`?(0,O.jsx)(ye,{className:`text-muted-foreground size-3.5 shrink-0`}):e.kind===`check`?(0,O.jsx)(x,{className:`text-muted-foreground size-3.5 shrink-0`}):(0,O.jsx)(ee,{className:`text-muted-foreground size-3.5 shrink-0`}),H=({item:e,onRemove:t})=>{let n=He(e),r=(0,O.jsxs)(`span`,{className:`bg-background border-edge text-foreground inline-flex max-w-full items-center gap-1.5 rounded-md border px-2 py-1 text-xs`,title:n,children:[Ue(e),(0,O.jsx)(`span`,{className:`text-muted-foreground`,children:`@`}),(0,O.jsx)(`span`,{className:`truncate`,children:n}),t?(0,O.jsx)(i,{variant:`ghost`,size:`icon-xs`,"aria-label":`Remove ${n}`,onClick:()=>t(e.id),children:(0,O.jsx)(a,{className:`size-3`})}):null]});return e.kind===`selection`?(0,O.jsxs)(ne,{openDelay:150,children:[(0,O.jsx)(ce,{asChild:!0,children:r}),(0,O.jsx)(oe,{className:`w-96 p-0`,children:(0,O.jsx)(`pre`,{className:`max-h-64 overflow-auto p-3 font-mono text-xs whitespace-pre-wrap`,children:e.text})})]}):r},U=({message:e,assistantName:t=`Glen`})=>(0,O.jsxs)(`div`,{className:`flex flex-col gap-1.5 text-sm`,children:[(0,O.jsx)(`div`,{className:e.role===`user`?`text-muted-foreground self-end text-xs font-medium`:`text-muted-foreground text-xs font-medium`,children:e.role===`user`?`You`:t}),e.role===`user`&&e.metadata?.contextItems&&e.metadata.contextItems.length>0?(0,O.jsx)(`div`,{className:`flex max-w-5/6 flex-wrap justify-end gap-1.5 self-end`,children:e.metadata.contextItems.map(e=>(0,O.jsx)(H,{item:e},e.id))}):null,e.parts.map((t,n)=>t.type===`text`?e.role===`user`?(0,O.jsx)(Ve,{className:`max-w-5/6`,children:t.text},`${t.type}-${n}`):(0,O.jsx)(V,{children:t.text},`${t.type}-${n}`):null)]}),W=({agent:e,label:t,onSignIn:n})=>(0,O.jsxs)(i,{size:`sm`,variant:`outline`,onClick:()=>n(e,t),children:[(0,O.jsx)(E,{}),`Sign in to `,t]}),We=e=>e===`completed`?(0,O.jsx)(u,{className:`size-3.5`}):e===`failed`?(0,O.jsx)(ve,{className:`size-3.5`}):(0,O.jsx)(p,{className:`size-3`}),Ge=({chatId:e,row:t})=>{let n=y({mutationFn:n=>h.local.agent.answerPermission.mutate({chatId:e,requestId:t.id.replace(/^permission:/,``),optionId:n}),onError:e=>_.error(e.message)}),r=t.options.filter(e=>e.kind.endsWith(`_once`)),a=t.answer===void 0?null:t.options.find(e=>e.optionId===t.answer)?.name??`Cancelled`;return(0,O.jsxs)(se,{className:`gap-2 p-3 text-sm`,children:[(0,O.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,O.jsx)(T,{className:`text-muted-foreground mt-0.5 size-4 shrink-0`}),(0,O.jsx)(`span`,{className:`min-w-0 break-words`,children:t.title})]}),a?(0,O.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:a}):(0,O.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:(r.length>0?r:t.options).map(e=>(0,O.jsxs)(i,{size:`sm`,variant:e.kind.startsWith(`allow`)?`outline`:`destructive`,disabled:n.isPending,onClick:()=>n.mutate(e.optionId),children:[n.isPending&&n.variables===e.optionId?(0,O.jsx)(p,{}):null,e.name]},e.optionId))})]})},Ke=({chatId:e,agent:t,label:n,row:r,onSignIn:i})=>r.type===`user`?(0,O.jsx)(U,{message:{id:r.id,role:`user`,parts:[{type:`text`,text:r.text}],metadata:{contextItems:r.contextItems}}}):r.type===`assistant`?(0,O.jsx)(U,{assistantName:n,message:{id:r.id,role:`assistant`,parts:[{type:`text`,text:r.text}]}}):r.type===`thought`?(0,O.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:(0,O.jsxs)(be,{children:[(0,O.jsxs)(xe,{className:`group flex items-center gap-1`,children:[(0,O.jsx)(ue,{className:`size-3 transition-transform group-data-[state=open]:rotate-90`}),`Thinking`]}),(0,O.jsx)(_e,{className:`pt-1 pl-4 whitespace-pre-wrap`,children:r.text})]})}):r.type===`tool`?(0,O.jsx)(Be,{icon:We(r.status),title:r.title??`Tool call`,failed:r.status===`failed`,children:r.title??`Tool call`}):r.type===`plan`?(0,O.jsx)(`ul`,{className:`text-muted-foreground flex flex-col gap-1 text-xs`,children:r.entries.map(e=>(0,O.jsxs)(`li`,{className:`flex items-start gap-1.5`,children:[e.status===`completed`?(0,O.jsx)(u,{className:`mt-0.5 size-3.5 shrink-0`}):(0,O.jsx)(S,{className:`mt-0.5 size-3.5 shrink-0`}),(0,O.jsx)(`span`,{children:e.content})]},e.content))}):r.type===`permission`?(0,O.jsx)(Ge,{chatId:e,row:r}):(0,O.jsxs)(`div`,{className:`flex flex-col items-start gap-2`,children:[(0,O.jsx)(V,{className:`text-destructive`,children:r.message}),r.signIn?(0,O.jsx)(W,{agent:t,label:n,onSignIn:i}):null]}),G=({addon:e,label:t,status:n,onSettled:r})=>{let a=y({mutationFn:()=>h.local.addon.install.mutate({addon:e}),onSettled:r,onError:e=>_.error(e.message)}),o=a.isPending||n.state===`installing`;return(0,O.jsxs)(i,{size:`sm`,variant:`outline`,disabled:o,onClick:()=>a.mutate(),children:[o?(0,O.jsx)(p,{}):(0,O.jsx)(C,{}),o?`Installing ${t} (about ${n.sizeMb} MB)…`:`Install ${t} (about ${n.sizeMb} MB)`]})},qe=({agents:e,onSettled:t,onSignIn:n})=>(0,O.jsx)(te,{variant:`quiet`,size:`sm`,title:`Set up an agent`,description:`Agents install the first time you use them. Pick one to ask about this pull request.`,action:(0,O.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-xs`,children:[(0,O.jsx)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:e.map(e=>e.install.state===`installed`?(0,O.jsxs)(`div`,{className:`flex flex-col items-center gap-1.5`,children:[(0,O.jsx)(`span`,{children:e.reason}),e.signIn?(0,O.jsx)(W,{agent:e.id,label:e.label,onSignIn:n}):null]},e.id):(0,O.jsxs)(`div`,{className:`flex flex-col items-center gap-1`,children:[(0,O.jsx)(G,{addon:e.id,label:e.label,status:e.install,onSettled:t}),e.install.error&&e.install.state===`missing`?(0,O.jsx)(`span`,{className:`text-destructive max-w-64 text-center`,children:e.install.error}):null]},e.id))}),(0,O.jsx)(i,{size:`sm`,variant:`ghost`,onClick:t,children:`Check again`})]})});function K({className:e,orientation:t=`horizontal`,...r}){return(0,O.jsx)(Ne,{"data-slot":`tabs`,"data-orientation":t,className:n(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...r})}var Je=r(`group/tabs-list inline-flex w-fit items-center justify-center rounded-control p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function q({className:e,variant:t=`default`,...r}){return(0,O.jsx)(Pe,{"data-slot":`tabs-list`,"data-variant":t,className:n(Je({variant:t}),e),...r})}function J({className:e,...t}){return(0,O.jsx)(Fe,{"data-slot":`tabs-trigger`,className:n(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-control border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-colors duration-(--duration-fast) motion-reduce:transition-none low-power:transition-none group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground not-data-active:hover:bg-hover-tint focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:hover:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:border-edge-strong data-active:bg-background data-active:text-foreground dark:data-active:bg-glass dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity motion-reduce:after:transition-none low-power:after:transition-none group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,e),...t})}function Ye({className:e,...t}){return(0,O.jsx)(Ie,{"data-slot":`tabs-content`,className:n(`flex-1 text-sm outline-none`,e),...t})}var Xe={claude:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 0 1-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`,codex:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`},Y=({agent:e,className:t})=>(0,O.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,className:n(`size-4 shrink-0`,t),children:(0,O.jsx)(`path`,{d:Xe[e],fill:`currentColor`,fillRule:e===`codex`?`evenodd`:`nonzero`})}),Ze=({agents:e,value:t,onValueChange:r,compact:i=!1,disabled:a=!1})=>(0,O.jsx)(K,{value:t,onValueChange:e=>r(e===`codex`?`codex`:`claude`),className:`shrink-0`,children:(0,O.jsx)(q,{"aria-label":`Agent to ask`,className:n(i&&`group-data-horizontal/tabs:h-6`),children:e.map(e=>(0,O.jsxs)(J,{value:e.id,disabled:a,"aria-label":e.label,title:e.available?e.label:e.reason??e.label,className:n(i&&`gap-1 px-1 text-xs`),children:[(0,O.jsx)(Y,{agent:e.id,className:n(i&&`size-3.5`)}),(0,O.jsx)(`span`,{className:`hidden @md:inline`,children:e.label})]},e.id))})}),Qe=({chatId:e,queue:t})=>{let n=y({mutationFn:t=>h.local.agent.unqueue.mutate({chatId:e,id:t}),onError:e=>_.error(e.message)});return t.length===0?null:(0,O.jsx)(`ul`,{className:`flex flex-col gap-1`,"aria-label":`Queued messages`,children:t.map(e=>(0,O.jsxs)(`li`,{className:`text-muted-foreground flex items-center gap-2 text-xs`,children:[(0,O.jsx)(ge,{className:`size-3.5 shrink-0`}),(0,O.jsx)(`span`,{className:`shrink-0`,children:`Queued`}),(0,O.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.text}),(0,O.jsx)(i,{size:`icon-xs`,variant:`ghost`,"aria-label":`Remove from queue`,disabled:n.isPending,onClick:()=>n.mutate(e.id),children:n.isPending&&n.variables===e.id?(0,O.jsx)(p,{}):(0,O.jsx)(a,{})})]},e.id))})},X={status:`idle`,reason:null,signIn:!1,busy:!1,rows:[],queue:[]},Z=(e,t,n,r)=>{let i=e.at(-1);return i?.type===t?[...e.slice(0,-1),{...i,text:i.text+r}]:[...e,{type:t,id:n,text:r}]},Q=(e,t)=>e.some(e=>e.id===t.id)?e.map(e=>e.id===t.id?{...e,...t}:e):[...e,t],$={initial:X,reduce:(e,t,n)=>{if(t.kind===`reset`)return X;if(t.kind===`status`)return{...e,status:t.status,reason:t.reason??null,signIn:t.signIn??!1,busy:t.status===`busy`?!0:t.status===`starting`||t.status===`ready`?e.busy:!1};if(t.kind===`user`)return{...e,busy:!0,queue:e.queue.filter(e=>e.id!==t.id),rows:[...e.rows,{type:`user`,id:t.id,text:t.text,contextItems:t.contextItems}]};if(t.kind===`queued`){let{kind:n,...r}=t;return{...e,queue:[...e.queue,r]}}if(t.kind===`unqueued`)return{...e,queue:e.queue.filter(e=>e.id!==t.id)};if(t.kind===`text`)return{...e,rows:Z(e.rows,`assistant`,n,t.text)};if(t.kind===`thought`)return{...e,rows:Z(e.rows,`thought`,n,t.text)};if(t.kind===`tool`){let{kind:n,toolCallId:r,...i}=t;return{...e,rows:Q(e.rows,{type:`tool`,id:`tool:${r}`,...i})}}if(t.kind===`plan`){let r=e.rows.findLastIndex(e=>e.type===`user`),i=e.rows.findLastIndex((e,t)=>e.type===`plan`&&t>r),a={type:`plan`,id:i>=0?e.rows[i]?.id??n:n,entries:t.entries};return{...e,rows:i>=0?Q(e.rows,a):[...e.rows,a]}}return t.kind===`permission`?{...e,rows:[...e.rows,{type:`permission`,id:`permission:${t.requestId}`,title:t.title,options:t.options,answer:void 0}]}:t.kind===`permission-answered`?{...e,rows:e.rows.map(e=>e.id===`permission:${t.requestId}`&&e.type===`permission`?{...e,answer:t.optionId}:e)}:t.kind===`turn-end`?{...e,busy:!1}:{...e,busy:!1,rows:[...e.rows,{type:`error`,id:n,message:t.message,signIn:t.signIn??!1}]}}},$e=e=>{let t={view:$.initial,connection:null,listeners:new Set,epoch:v.getSnapshot().epoch},n=()=>t.listeners.forEach(e=>e()),r=e=>{t.view={...t.view,busy:!1,rows:[...t.view.rows,{type:`error`,id:`stream:${Date.now()}`,message:e,signIn:!1}]},n()},i=()=>h.local.agent.events.subscribe({chatId:e},{onData:({id:e,data:r})=>{t.view=$.reduce(t.view,r,e),n()},onConnectionStateChange:e=>{e.state===`connecting`&&e.error&&v.check()},onError:e=>void v.check().then(t=>{t&&r(e.message)})});return v.subscribe(()=>{let{epoch:e}=v.getSnapshot();e!==t.epoch&&(t.epoch=e,t.connection&&(t.connection.unsubscribe(),t.view=$.initial,t.connection=i(),n()))}),{getSnapshot:()=>t.view,subscribe:e=>(t.listeners.add(e),t.connection??=i(),()=>{t.listeners.delete(e),!(t.listeners.size>0)&&(t.connection?.unsubscribe(),t.connection=null,t.view=$.initial)})}},et=new Map,tt=e=>{let t=et.get(e);if(t)return t;let n=$e(e);return et.set(e,n),n},nt=2e3,rt=()=>({queryKey:[`local`,`agent`,`list`],queryFn:()=>h.local.agent.list.query(),refetchInterval:e=>e.state.data?.some(e=>e.install.state===`installing`)?nt:!1});export{Le as _,Y as a,q as c,G as d,Ke as f,Re as g,ze as h,Ze as i,J as l,H as m,tt as n,K as o,W as p,Qe as r,Ye as s,rt as t,qe as u,w as v,x as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{c as t,i as n,l as r,s as i}from"./button-DizkG3Et.js";import{c as a,d as o,u as s,x as c}from"./query-error-DAke5it8.js";import{a as l,i as u,o as d}from"./bundle-mjs-IMkwHZOK.js";import{t as f}from"./reviewer-connection-B1irBiYS.js";import"./chunk-BO2N2NFS-CNHkQg2l.js";var p=e(d(),1),m=l(),h=e(u(),1),g=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},_=class{constructor(e){this.generateIdentifier=e,this.kv=new g}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},v=class extends _{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function y(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function b(e,t){let n=y(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function x(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function S(e,t){return e.indexOf(t)!==-1}function C(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var w=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return b(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},T=e=>Object.prototype.toString.call(e).slice(8,-1),E=e=>e===void 0,ee=e=>e===null,D=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,O=e=>D(e)&&Object.keys(e).length===0,k=e=>Array.isArray(e),A=e=>typeof e==`string`,j=e=>typeof e==`number`&&!isNaN(e),M=e=>typeof e==`boolean`,N=e=>e instanceof RegExp,P=e=>e instanceof Map,F=e=>e instanceof Set,I=e=>T(e)===`Symbol`,te=e=>e instanceof Date&&!isNaN(e.valueOf()),ne=e=>e instanceof Error,re=e=>typeof e==`number`&&isNaN(e),ie=e=>M(e)||ee(e)||E(e)||j(e)||A(e)||I(e),ae=e=>typeof e==`bigint`,oe=e=>e===1/0||e===-1/0,se=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),ce=e=>e instanceof URL,le=e=>e.replace(/\\/g,`\\\\`).replace(/\./g,`\\.`),ue=e=>e.map(String).map(le).join(`.`),de=(e,t)=>{let n=[],r=``;for(let i=0;i<e.length;i++){let a=e.charAt(i);if(!t&&a===`\\`){let t=e.charAt(i+1);if(t===`\\`){r+=`\\`,i++;continue}if(t!==`.`)throw Error(`invalid path`)}a===`\\`&&e.charAt(i+1)===`.`?(r+=`.`,i++):a===`.`?(n.push(r),r=``):r+=a}let i=r;return n.push(i),n};function L(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var fe=[L(E,`undefined`,()=>null,()=>void 0),L(ae,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),L(te,`Date`,e=>e.toISOString(),e=>new Date(e)),L(ne,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return`cause`in e&&(n.cause=e.cause),t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message,{cause:e.cause});return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),L(N,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),L(F,`set`,e=>[...e.values()],e=>new Set(e)),L(P,`map`,e=>[...e.entries()],e=>new Map(e)),L(e=>re(e)||oe(e),`number`,e=>re(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),L(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),L(ce,`URL`,e=>e.toString(),e=>new URL(e))];function pe(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var me=pe((e,t)=>I(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),he=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),ge=pe(se,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=he[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function _e(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var ve=pe(_e,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ye=pe((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),be=[ve,me,ye,ge],xe=(e,t)=>{let n=C(be,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=C(fe,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Se={};fe.forEach(e=>{Se[e.annotation]=e});var Ce=(e,t,n)=>{if(k(t))switch(t[0]){case`symbol`:return me.untransform(e,t,n);case`class`:return ve.untransform(e,t,n);case`custom`:return ye.untransform(e,t,n);case`typed-array`:return ge.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Se[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},we=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Te(e){if(S(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(S(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(S(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Ee=(e,t)=>{Te(t);for(let n=0;n<t.length;n++){let r=t[n];if(F(e))e=we(e,+r);else if(P(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=we(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},De=(e,t,n)=>{if(Te(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(k(r)){let e=+n;r=r[e]}else if(D(r))r=r[n];else if(F(r)){let e=+n;r=we(r,e)}else if(P(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=we(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(k(r)?r[+i]=n(r[+i]):D(r)&&(r[i]=n(r[i])),F(r)){let e=we(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(P(r)){let e=+t[t.length-2],a=we(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)))}}return e},Oe=e=>e<1;function ke(e,t,n,r=[]){if(!e)return;let i=Oe(n);if(!k(e)){x(e,(e,a)=>ke(e,t,n,[...r,...de(a,i)]));return}let[a,o]=e;o&&x(o,(e,a)=>{ke(e,t,n,[...r,...de(a,i)])}),t(a,r)}function Ae(e,t,n,r){return ke(t,(t,n)=>{e=De(e,n,e=>Ce(e,t,r))},n),e}function je(e,t,n){let r=Oe(n);function i(t,n){let i=Ee(e,de(n,r));t.map(e=>de(e,r)).forEach(t=>{e=De(e,t,()=>i)})}if(k(t)){let[n,a]=t;n.forEach(t=>{e=De(e,de(t,r),()=>e)}),a&&x(a,i)}else x(t,i);return e}var Me=(e,t)=>D(e)||k(e)||P(e)||F(e)||ne(e)||_e(e,t);function Ne(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Pe(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(ue):n[ue(i)]=a.map(ue)}),r?O(n)?[r]:[r,n]:O(n)?void 0:n}var Fe=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=ie(e);if(!s){Ne(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!Me(e,n)){let t=xe(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(S(a,e))return{transformedValue:null};let c=xe(e,n),l=c?.value??e,u=k(l)?[]:{},d={};x(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=Fe(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,k(l.annotations)?d[le(c)]=l.annotations:D(l.annotations)&&x(l.annotations,(e,t)=>{d[le(c)+`.`+t]=e})});let f=O(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};function Ie(e){return Object.prototype.toString.call(e).slice(8,-1)}function Le(e){return Ie(e)===`Array`}function Re(e){if(Ie(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function ze(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Be(e,t={}){if(Le(e))return e.map(e=>Be(e,t));if(!Re(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(r===`__proto__`||Le(t.props)&&!t.props.includes(r))return n;let i=e[r];return ze(n,r,Be(i,t),e,t.nonenumerable),n},{})}var R=class{constructor({dedupe:e=!1}={}){this.classRegistry=new v,this.symbolRegistry=new _(e=>e.description??``),this.customTransformerRegistry=new w,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=Fe(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=Pe(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r.meta&&(r.meta.v=1),r}deserialize(e,t){let{json:n,meta:r}=e,i=t?.inPlace?n:Be(n);return r?.values&&(i=Ae(i,r.values,r.v??0,this)),r?.referentialEqualities&&(i=je(i,r.referentialEqualities,r.v??0)),i}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};R.defaultInstance=new R,R.serialize=R.defaultInstance.serialize.bind(R.defaultInstance),R.deserialize=R.defaultInstance.deserialize.bind(R.defaultInstance),R.stringify=R.defaultInstance.stringify.bind(R.defaultInstance),R.parse=R.defaultInstance.parse.bind(R.defaultInstance),R.registerClass=R.defaultInstance.registerClass.bind(R.defaultInstance),R.registerSymbol=R.defaultInstance.registerSymbol.bind(R.defaultInstance),R.registerCustom=R.defaultInstance.registerCustom.bind(R.defaultInstance),R.allowErrorProps=R.defaultInstance.allowErrorProps.bind(R.defaultInstance),R.serialize,R.deserialize,R.stringify,R.parse,R.registerClass,R.registerCustom,R.registerSymbol,R.allowErrorProps;var Ve=[`M147.5 80L148.3 85.6L149.6 91.5L149.8 97.6L145.4 102.6L137.6 105.7L131.1 108.5L129.5 113.8L130.9 122.4L130.8 131.6L125.8 137.1L117 137.6L108.2 136.8L101.4 138.7L94.9 142.6L87.6 144.4L80 142.9L72.9 140.4L65.6 140.2L57.6 141.6L49.9 140.6L44.2 135.8L40.4 129.4L36.9 123.7L33.6 118.7L30.6 113.8L27.4 109.3L23.1 105.4L17.8 101.5L14.8 96.5L16.1 90.6L19.3 85L20 80L16.8 74.8L11.4 68.6L7.7 61.7L7.9 55.1L10.6 49.1L13.7 43.1L17.8 37.5L24.5 33.8L32.7 31.9L40.1 30.2L45.7 26.6L50.8 21.2L56.6 15.6L63.6 11.4L71.7 9.7L80 11.1L87.7 15L94.3 20L99.9 25.2L104.7 30.3L108.9 34.9L113.6 38L119.8 39.6L126.4 41.3L131.2 45L133.7 50.1L136.3 54.9L139.6 59.4L142.6 64.2L145 69.2L146.7 74.5Z`,`M137 80L138.5 84.8L138.8 89.8L136.9 94.4L131.6 97.8L125.1 100.1L120.7 102.7L119.8 107.2L120.7 113.9L120.4 121.1L116.7 125.8L110.1 126.9L103.3 126.8L97.5 128.2L92.1 130.6L86 131.1L80 128.9L74.6 126L69.5 124.2L64.2 123.5L59.1 122.1L55.1 118.8L52.3 114.5L49.4 111.1L45.2 109L39.6 107.6L33.4 106L28.2 103.1L24.7 99.1L23.8 94.2L25.4 89.1L26.6 84.4L25.1 80L21.3 75.2L17.6 69.7L16.8 64L19.2 59L23.3 54.7L27.9 51L33 47.8L39 45.9L45.3 44.7L50.5 43.2L54.7 40.5L58.7 37.1L63.3 34.1L68.5 32L74.2 30.7L80 30.6L85.7 31.7L90.9 34.2L95.4 37.8L99.1 41.5L102.8 44.5L107.3 45.9L112.8 46.7L117.5 48.8L119.8 52.8L120.6 57.4L122.5 61.1L125.7 64.2L129.5 67.5L132.6 71.3L134.9 75.5Z`,`M125 80L125.7 83.8L125 87.5L123 90.9L119.8 93.8L116.3 96.2L113.5 98.6L111.8 101.7L110.6 105.5L108.8 109.3L105.6 111.9L101.2 113L96.6 113.4L92.4 114.1L88.4 115.1L84.2 115.3L80 114.5L76.1 113.2L72.2 112.6L68.1 112.7L63.9 112.4L60.3 110.7L57.8 107.7L55.6 104.8L52.9 102.6L49.1 101.1L44.6 99.7L40.6 97.6L37.6 94.6L36 91.1L35.8 87.3L36.1 83.6L35.3 80L33.6 76.2L32.8 72.2L34 68.4L36.9 65.1L40.4 62.4L44.3 60.1L48.4 58.4L52.7 57.3L56.4 56L59.1 53.9L61.5 51.1L64.4 48.6L68.1 47.2L72 46.4L76 45.7L80 45.4L84.1 45.6L88 46.5L91.7 47.7L95.4 49.1L99.1 50.2L103.3 50.9L107.7 51.9L111 54.2L112.4 57.8L112.8 61.7L113.4 65.1L115.2 67.8L118 70.4L121 73.2L123.3 76.4Z`,`M109.8 80L110 82.5L109.5 84.9L108.7 87.2L107.5 89.5L106.1 91.6L104.4 93.6L102.7 95.5L101 97.5L99 99.3L96.4 100.4L93.4 100.8L90.4 100.8L87.6 101L85.1 101.4L82.6 102.2L80 103L77.2 103.3L74.4 103.3L71.6 103.2L68.6 102.9L65.8 102.1L63.5 100.5L61.7 98.6L60.1 96.6L58.2 94.9L56.2 93.3L54.1 91.6L52 89.7L50.2 87.5L49.4 85.1L49.5 82.5L49.7 80L49.9 77.5L50.8 75.2L52.5 73.1L54.3 71.1L55.7 69.2L57.1 67.2L59.1 65.7L61.4 64.5L63.4 63.2L65.1 61.5L67 59.7L69.2 58.2L71.7 57.1L74.3 56.2L77.1 55.7L80 56L82.7 57.3L85.1 58.5L87.6 59L90.3 59.2L93.2 59.4L96.2 59.8L99.2 60.5L101.8 61.9L103.5 63.9L104.4 66.4L104.9 68.9L105.6 71.2L106.6 73.3L107.9 75.4L109.1 77.6Z`,`M94.6 80L94.7 81.2L94.8 82.5L94.7 83.7L94.2 84.9L93.4 86L92.5 87L91.6 87.9L90.7 88.9L89.6 89.8L88.3 90.3L86.8 90.5L85.2 90.5L83.8 90.5L82.6 90.8L81.3 91.4L80 92.1L78.5 92.5L77 92.4L75.7 91.9L74.3 91.4L73 90.9L71.8 90.2L70.7 89.4L69.7 88.6L68.8 87.7L68 86.7L67.4 85.6L66.7 84.6L65.9 83.6L65.3 82.4L64.9 81.2L64.7 80L65 78.8L65.8 77.6L66.8 76.7L67.7 75.8L68.2 74.8L68.6 73.6L69.1 72.6L70 71.7L71 70.8L72.1 70.1L73.3 69.6L74.5 69L75.8 68.3L77.1 67.7L78.5 67.3L80 67.6L81.4 68.4L82.6 69.1L83.8 69.5L85.2 69.6L86.6 69.7L88 70L89.4 70.4L90.8 71L91.9 71.9L92.5 73L92.9 74.3L93.1 75.5L93.5 76.6L94 77.7L94.4 78.8Z`];function He({title:e,description:t,action:n,secondaryAction:i,variant:a=`empty`,size:o=`default`}){let s=o===`sm`;return(0,m.jsxs)(`div`,{className:r(`m-auto flex w-full max-w-md flex-col items-center text-center`,s?`gap-4 px-2 py-4`:`gap-6 px-4 py-10`),children:[a===`empty`?(0,m.jsxs)(`div`,{"aria-hidden":!0,"data-size":o,className:r(`empty-rings text-brand`,s?`size-20`:`size-36`),children:[Ve.map(e=>(0,m.jsx)(`div`,{children:(0,m.jsx)(`svg`,{viewBox:`0 0 160 160`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,children:(0,m.jsx)(`path`,{d:e})})},e)),(0,m.jsx)(`span`,{className:`bg-brand absolute top-1/2 left-1/2 size-1.5 -translate-1/2 rounded-full`})]}):null,(0,m.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,m.jsx)(`p`,{className:r(`font-heading text-foreground font-semibold tracking-tight text-balance`,s||a===`quiet`?`text-base`:`text-xl`),children:e}),(0,m.jsx)(`p`,{className:`text-muted-foreground text-sm text-pretty`,children:t})]}),n||i?(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[n,i]}):null]})}var Ue=new Map([[`bold`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),p.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),We=new Map([[`bold`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),p.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Ge=new Map([[`bold`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),p.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z`}))],[`fill`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z`}))],[`light`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),Ke=new Map([[`bold`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),p.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),qe=p.forwardRef((e,n)=>p.createElement(t,{ref:n,...e,weights:Ue}));qe.displayName=`CaretDownIcon`;var Je=qe,Ye=p.forwardRef((e,n)=>p.createElement(t,{ref:n,...e,weights:We}));Ye.displayName=`CaretRightIcon`;var Xe=Ye,Ze=p.forwardRef((e,n)=>p.createElement(t,{ref:n,...e,weights:Ge}));Ze.displayName=`ChatCircleTextIcon`;var Qe=Ze,$e=p.forwardRef((e,n)=>p.createElement(t,{ref:n,...e,weights:Ke}));$e.displayName=`CheckCircleIcon`;var et=$e,tt=[[[1,`M21.6 21.5l1.5 0M24.9 15.7l-3.8-7.5M14.6 7.1l-1.8 1.3-1.7 2.8 .2 3 1.7 3 3.5 .9 2.3 1.9 2.8 1.5M22 18.5l.8 .3 .3-.5-.8-1.6-.8-.2-.3 .4 .8 1.6M17.1 14.9l-1.6-.7-1-2.6 1.1-1.6 2.1-.5 1.8 1.1 .7 2.3-.7 1.5-2.4 .5`],[.68,`M23.1 21.5l1.4-1.5 .7-2.2-.3-2.1M21.1 8.2l-2.3-1.3-2.2 .1-2 .1M5.8 20.4l.8-2.7 0-5.7-.9-1.7M4.7 17.8l.2-2.3`],[.35,`M27.8 19.2l-2.5 4-3.5 3.6M4.8 20.9l.4 .1 .6-.6M5.7 10.3l-.7 .2M4.1 18.3l.6-.5M4.9 15.5l-.3-1.8-.6-.1`]],[[1,`M19.6 20.9l1.4 .1 1.4-1.1 1-2.2-.2-2-1.7-2.9-.4-2.1-1.6-3M9.6 9.8l-.6 1.6 .2 2.4 1.5 2.7 3.3 .9 2.4 2 3.2 1.5M19.7 17.9l.9 .2 .4-.4-1-1.7-.8-.2-.4 .4 .9 1.7M14.6 14.2l-1.6-.7-.7-2.5 1.2-1.6 2.1-.5 1.8 1.1 .5 2.2-.8 1.5-2.5 .5`],[.68,`M19.5 7.7l-2.3-1.2-2.3 0-1.5 0-1.3 .6-2.5 2.7M28.1 17.8l-6.3 7.9M5.2 17.7l0-7.5`],[.35,`M21.8 25.7l-.6 1.4M4.7 20.8l.5-3.1M27.1 21.3l-3 3.9M3.9 18.2l.1-4.6`]],[[1,`M17.3 20.3l1.5 .1 1.3-1 1.1-2.1 0-1.9-2-3.5-.2-1.7-1.3-3M7.4 13.4l1.2 2.5 3 .8 2.4 2 3.3 1.6M17.3 17.2l1 .3 .3-.5-1-1.7-.9-.2-.4 .5 1 1.6M12.2 13.5l-1.4-.7-.6-2.3 1.3-1.6 2.1-.6 1.7 1.1 .3 2.2-1 1.4-2.4 .5`],[.68,`M17.7 7.2l-2-1.2-2.3 .1-2.7 .6-2.6 2.5-.8 1.7 .1 2.5M27.8 17.4l-3.3 2.8-3.8 4.9-.3 1`],[.35,`M28.1 18.2l-.3-.8M20.4 26.1l.2 1.3M4.3 19.8l-.1-5 .6-3.7M26.9 21.6l-.3-.5-.9 .7-2.5 4.1`]],[[1,`M14.9 19.6l1.6 .1 1.1-.8 1.2-2 .1-1.8-.8-2.1-1.2-1.8 0-1.5-.9-1.7 0-1.3M6.8 15.4l2.5 .7 2.3 1.9 3.3 1.6M22.7 19.6l-3.5 5.2M14.8 16.5l1 .3 .4-.5-1.1-1.7-.9-.2-.4 .4 1 1.7M10 12.9l-1.3-.7M12.7 8.1l.5 .7 .1 2.2-1 1.3-2.3 .6`],[.68,`M16 6.7l-1.7-1.1-2.1 .1-2.6 .6M6.1 10.6l-.2 2.4 .9 2.4M27 17.1l-4.3 2.5M19.2 24.8l0 1.1M8.7 12.2l-.2-2.2 1.3-1.6 2-.6 .9 .3M26.1 20.9l-.7-.1-1 .6-1.8 2.7`],[.35,`M9.6 6.3l-2.6 2.5-.9 1.8M27.7 19.7l-.7-2.6M19.2 25.9l1.2 1.6M26 23.1l.4-1.3-.3-.9M22.6 24.1l.1 2.2`]],[[1,`M12.6 18.9l1.3 .2 1.2-.7 1.1-1.9 .3-1.8-.7-2.4-1.2-1.7-.2-4.4M7.4 15.5l2.1 1.9 3.1 1.5M23.8 17.3l-2.9 1.5-3 4.2-.4 1.3M12.4 15.8l.9 .3 .4-.5-1-1.7-.9-.2-.3 .5 .9 1.6M11.4 8.3l-.2 2.1-1.1 1.3-2 .6M23.1 20.7l-2 3`],[.68,`M14.4 6.2l-1.4-.9M4.9 13.8l.5 1.3 2 .4M27.1 19.2l-1.2-2.4-2.1 .5M17.5 24.3l.3 1.4 2.3 1.8M8.1 12.3l-1.1-.5 .1-2.2 1.4-1.6 1.8-.6 .7 .2 .4 .7M25.4 21.3l-1-.9-1.3 .3M21.1 23.7l1 2.4`],[.35,`M13 5.3l-1.8 .1-2.5 .9-2.6 2.6-1.1 2.5-.1 2.4M27 21.4l.1-2.2M24.8 24.6l.6-1.2 0-2.1`]],[[1,`M10.3 18.3l1.3 .1 1-.6 1.1-2 .3-1.7-1.5-4.2 .3-1.5M7.5 16.8l2.8 1.5M24.3 16.4l-2.3 .2-3.1 1.3-1.4 1.5-1.7 3-.2 1.3 .7 1.5M10.1 15.1l.9 .3 .3-.5-.9-1.6-.7-.2-.4 .4 .8 1.6M23.6 20.5l-1.2-.6-1.3 .2-1.6 2.3 .1 1.6`],[.68,`M12.8 8.4l-.3-1.5 .5-1.2-1-.7M4.4 14.8l1.4 .2 1.7 1.8M26.4 20.4l-2.1-4M16.3 25.2l3.2 2.1M6.5 11.9l-.7-.5M9.1 7l.5 .2 .2 .6-.5 2.1-1 1.2-1.8 .8M24.4 24.1l-.3-2.6-.5-1M19.6 24l1.6 1.8`],[.35,`M12 5l-2 .3M4.2 12.7l.2 2.1M19.5 27.3l1.2 .1M25.8 23.4l.6-3M5.8 11.4l.4-2.1 1.3-1.6 1.6-.7M21.2 25.8l.6 .4 .9-.3 1.7-1.8`]],[[1,`M8.3 17.7l1 .1 .9-.5 1.4-3.1 0-1.8-1.1-3M25 19.8l-2.5-3.8-1-.3-2.5 .4-2.7 1.2-1.2 1.3-1.5 3.3 0 1.5 .7 1.1M8 14.5l.8 .3 .3-.5-.7-1.6-.6-.2M7.4 13l.6 1.5M23.3 22.9l-1.6-3-1.4-.7-1.4 .3-1.5 2.3 .4 1.8`],[.68,`M10.5 9.4l.6-2.8 .7-1.2M4.6 14.7l1.3 1.7 2.4 1.3M25.3 22.9l-.3-3.1M14.3 24.5l4.3 2.5M7.8 12.5l-.4 .5M8.6 6.9l-.4 1.7-1.1 1.8-1.8 1.1M19.9 25.5l.9 .4 1-.2 1.4-1.7 .1-1.1M17.8 23.6l2.1 1.9`],[.35,`M11.8 5.4l-.3-.6-.7 .1M3.8 14.6l.8 .1M18.6 27l1.7 .2 2.3-1 1.7-1.5 1-1.8M5.3 11.5l-.4-.1 .3-1.3M7.3 7.3l1.3-.4`]],[[1,`M7.9 17l1.1-2.2 .5-2.4-.6-3.5M23.4 19.4l-3.2-4.1-1.1-.3-2.5 .4-2.8 1.2-1.1 1.3-1.2 3.4 .2 1.5 .8 1.2M21.6 22.5l-2.1-3.2-1.5-.7-1.5 .2-1.4 2.4 .8 1.9 2.5 2`],[.68,`M6.5 17.2l1.4-.2M8.9 8.9l2.2-4.1M4.7 16l1.8 1.2M17.5 26.7l2 .3M23.3 24.8l.9-1.9-.8-3.5M12.5 24l5 2.7M6.3 14l.6 .2 .3-.5-.5-1.5-.5-.1-.3 .5 .4 1.4M18.4 25.1l1.1 .4 1.1-.1 .8-.6 .4-1-.2-1.3`],[.35,`M3.8 14.4l.9 1.6M27.2 10.9l.8 3.1 .2 3M19.5 27l2.2-.9 1.6-1.3M8 6.7l-1.8 3.1-1.5 1.6`]],[[1,`M22.7 22.5l-1.2-3.5-3.7-4.4-1.1-.3-2.6 .4-2.7 1.2-1 1.4-.9 3.4 .4 1.6M20.1 23.5l-.3-1.4-2.7-3.5-1.6-.7-1.4 .2-.7 .8-.5 1.8 1 1.9 2.8 2`],[.68,`M5.1 16.8l1.1-.3 1.2-2.9 .3-5.2M16.2 26.3l2.2 .4 2.2-.8 1.4-1.4 .7-2M9.9 22.3l.9 1.2 5.4 2.8M5 13.7l.5 .1 .2-.4-.2-1.5M16.7 24.6l1.2 .5 1.1-.1 .8-.6 .3-.9`],[.35,`M7.7 8.4l1.4-2.2 1.4-1.2M3.7 15.4l1.4 1.4M26.1 9.1l1.2 4.6 .6 5.3M5.5 11.9l-.6 .4 .1 1.4M6.7 8l-1.5 2.1`]],[[1,`M20.4 24.3l.5-2.1-1.7-3.8-3.9-4.5-1.1-.3-2.5 .4-2.5 1.2-.9 1.6-.6 3.4M14.9 24l2.2 .6 .8-.5 .3-1-.5-1.5-3.1-3.7-1.5-.7-1.4 .2-.7 .9-.3 1.7 1.2 2.1 3 1.9`],[.68,`M4.7 16.3l.6-1.3 1.4-6.5M25.6 9.1l.1 2 .9 5.7M14.7 25.9l2.4 .4 2-.8 1.3-1.2M7.7 20.2l.5 1.6 1.1 1.4 5.4 2.7`],[.35,`M4.2 16.5l.5-.2M6.7 8.5l1.5-2M25.9 8.8l-.3 .3M26.6 16.8l1.1 2.8M4.2 13.4l.5-.5-.2-1.3M27.4 11.5l0 1.9 .9 3`]],[[1,`M18.5 24l.4-2.1-2.1-4.2-3.9-4.5-1-.3-2.4 .5-2.2 1.3M13 23.5l2.2 .5 .8-.5 .1-.9-.6-1.6-3.3-3.8-1.5-.7-1.2 .3-.6 .9-.2 1.8 1.4 2.1 2.9 1.9`],[.68,`M24.6 9l-.2 2 .3 3 .6 2.9 2.2 3.4M13.2 25.5l2.4 .4 1.7-.7 1.2-1.2M7.3 14.7l-.8 1.6-.3 3.4 .6 1.7 1.1 1.4 5.3 2.7M26.9 11.3l-.5 1.9 .8 2.6`],[.35,`M3.7 16.4l2.3-7.5M25.9 8.8l-.8-.2-.5 .4M27.5 11.8l-.6-.5M27.2 15.8l1 1`]],[[1,`M22.8 10.1l-.1 1.4 .7 4.8M15.4 24.9l1.2-1.4 .1-2.1-2.3-4.4-3.8-4.5-.9-.2-2.1 .5M11.1 22.9l2.1 .6 .8-.5 0-.8-.8-1.9-3.3-3.7-1.3-.7-1.1 .3-.5 1M8.3 21.1l2.8 1.8`],[.68,`M23.6 8.4l-.8 1.7M23.4 16.3l3.9 4.5M11.7 25.1l2.2 .4 1.5-.6M7.6 12.8l-1.9 1.4-.6 1.8-.1 3.3M6.8 22.5l4.9 2.6M26.6 11.2l-.8 0-.8 1.1 .9 3.1 1.4 .7M7 17.2l0 1.9 1.3 2`],[.35,`M26.5 9.6l-1.1-1-1.8-.2M5 19.3l.7 1.8 1.1 1.4M28.3 15.5l-1.7-4.3M27.3 16.1l.7 1.3`]],[[1,`M22.2 8.1l-1.4 2.1 0 2.9 .5 2.6 5.5 5.1M13.5 24.5l1-1.4 0-2-2.5-4.7-3.4-4.5-.7-.1M23.3 11.8l.5 2.5 .8 1M9.3 22.4l2 .6 .6-.5 .1-.7-.8-1.8-3.3-4-1.1-.6`],[.68,`M24.5 8.4l-2.3-.3M10.3 24.7l2 .3 1.2-.5M7.9 11.8l-1.8 .6-1.5 1.5M5.9 22.3l4.4 2.4M27.2 13.7l-1.3-2.4-1.4-.6-1.2 1.1M24.6 15.3l1.6 .6 .9 1.3M6.8 15.4l-.9 .4-.3 2.9 1.2 2 2.5 1.7`],[.35,`M27.9 12.9l-1.3-2.6-2.1-1.9M4.6 13.9l-.5 1.9 .2 3.1 1.6 3.4M27.1 17.2l.5 .3 .3-.9-.7-2.9`]],[[1,`M20.4 7.8l-1.6 1.6-.3 2.6 .2 2.5 1.9 2.4 5.1 3.6M12.2 23.3l.3-1.5-.6-2.5-5-7.9M22.9 10.3l-1.5 1 .5 2.6 .7 .9 1.9 .6M9.5 22.5l.5-1.2-.8-1.9-3-3.9`],[.68,`M25.7 20.5l1 .2M25.6 9.8l-1.7-1.5-2.1-.7-1.4 .2M9 24.3l2.1 .2 1.1-1.2M6.9 11.4l-1.8 .6M7 23.4l2 .9M25.8 16.8l.8 .4 .3-.7-.9-3-1.4-2.6-1.7-.6M24.5 15.4l1.3 1.4M7.8 22l1.7 .5M6.2 15.5l-.9-.6-.7 .5M5.7 20.5l2.1 1.5`],[.35,`M26.7 20.7l1-1.6 .4-2.5-.2-2.4-1.2-2.9-1.1-1.5M5.1 12l-1.2 2M5.3 22l1.7 1.4M4.6 15.4l-.1 3.1 1.2 2`]],[[1,`M18.7 7.3l-1.9 1.5-.7 2.5 .2 2.6 1.9 2.3 6.1 3.9M10.6 22.1l-.4-2.1-4.2-7.6M24.1 16.3l.9 .5M23 10.4l-1.9-.6-1.8 .9 .3 2.6 .9 .9 2 .6 1.6 1.5`],[.68,`M24.3 20.1l1.3 .3 1.2-1.3 .5-2.2-.2-2.5-2.3-4.7-2.1-1.8-2.4-.7-1.6 .1M7.9 24l1.3 .2 .8-.5 .6-1.6M6 12.4l-.3-1.3M25 16.8l.5-.6-.9-2.8-1.6-3M6.5 21.6l1.4 .5 .4-1.2-3.4-5.8`],[.35,`M5.7 11.1l-1.3 .8M5.7 22.7l2.2 1.3M4.9 15.1l-.6-.4-.4 .5 .1 3.3 .9 1.8 1.6 1.3`]],[[1,`M22.5 19.6l1.6 .4M17 6.8l-2.2 1.5-.9 2.4 0 2.5 2 2.4 6.6 4M8.7 21.2l-.8-2.8M22.1 15.7l1.4 .4 0-1.6-2.3-4.6-2-.7-2.1 .9 .2 2.5 .8 .9 2.2 .7 1.8 1.5`],[.68,`M24.1 20l1.3-1.1 .7-2.1-.2-2.6-2.5-4.9-2.1-1.7-2.5-.8-1.8 0M7 23.7l1.4-.1 .3-2.4M7.9 18.4l-2.4-4.8M6.6 21.7l.2-1-3-6.2`],[.35,`M5.5 13.6l-.6-2.8M27.3 20.7l-2.7 4.1M5.5 21.4l1.1 .3M4.5 20.4l1 1`]],[[1,`M20.3 19l1.9 .5 1.5-1.1 .7-2-.1-2.5-2.4-5M12.9 7.8l-1.2 2.3-.1 2.5 1.9 2.4 6.8 4M19.8 15.1l1.5 .4 .3-1.2-2.3-4.9-2.1-.8-2.3 .9-.3 .9 .3 1.6 .8 .8 2.3 .7 1.8 1.6`],[.68,`M21.9 8.9l-2.1-1.8-2.6-.8-1.9 .1-2.4 1.4M7.3 23.4l-.1-2.3-2.1-5.5`],[.35,`M6.4 23.6l.9-.2M5.1 15.6l-.7-3.6M28.2 17.5l-4.7 8.3M4.9 21.2l.6 .3 .1-.9-1.9-5.1M27.1 21.3l-1 1.7`]],[[1,`M18 18.3l2 .5 1.6-1 .8-1.8 0-2.4-2.3-5.2M9.8 9.6l-.3 2.4 1.7 2.3 6.8 4M17.4 14.4l1.6 .5 .3-1.3-2.1-4.8-2-.7-2.3 .8-.4 1 .1 1.4 .7 .8 2.2 .7 1.9 1.6`],[.68,`M20.1 8.4l-1.9-1.7-2.5-.8-2 .1-2.5 1.3-1.4 2.3M6.3 23.5l-2.3-10M27.1 17.9l-3.8 5.8`],[.35,`M28.3 16.7l-1.2 1.2M23.3 23.7l-.4 2.4M4.9 21.3l-1.1-3.9M27.6 20.1l-1.4 1.5-1.2 2.7`]],[[1,`M15.5 17.6l1.9 .6 1.8-.9 .9-1.7 .2-2.5-2-5.2M7.7 11.6l1.4 2.2 6.4 3.8M14.9 13.7l1.7 .5 .3-1.3-1.6-4.7-1.9-.7M11 8.4l-.5 2.3 .5 .7 2 .6 1.9 1.7`],[.68,`M18.3 7.9l-1.6-1.7-2.4-.7-1.9 .1-2.6 1.4-1.5 2.2-.6 2.4M27.7 16.5l-1.7 .8-3.1 4.2-1.3 2.5 .7 1.9M13.4 7.5l-2.4 .9M26.7 19.8l-.8 .4-1.5 2.3 .1 1.6`],[.35,`M5.9 23l-2.2-7.3M28.2 17.3l-.5-.8M24.5 24.1l.6-.1 1.1-1.1M26.4 22.5l.8-2.2-.5-.5`]],[[1,`M13.1 16.9l1.8 .6 1.7-.8 1-1.6 .4-2.4-1.3-5.1M7.3 13.3l5.8 3.6M24.1 17l-4.1 5.7 .1 1.5M12.5 13l1.5 .5 .5-1.1-1.1-4.7M9.1 10.9l1.7 .5 1.7 1.6`],[.68,`M16.7 7.6l-1.5-1.8-2-.6M7.1 8.9l-.8 2.3 1 2.1M27.2 16.6l-.9-.4-2.2 .8M20.1 24.2l1.2 1.4M13.4 7.7l-1.6-.6-2.4 .9-.7 2.2 .4 .7M23.4 23.8l1.2-.1M26.4 20.6l-.5-1-1.2 0-1.2 1.2-.6 1.7 .5 1.3`],[.35,`M13.2 5.2l-1.9 .2-2.5 1.4-1.7 2.1M21.3 25.6l1.7 .1 1.8-1.1M27.3 20.9l.6-2.7-.7-1.6M24.6 23.7l1.2-1.4 .6-1.7`]],[[1,`M10.7 16.2l1.8 .6 1.4-.7 1.1-1.3 .5-2.2-.6-5.5M5.9 12.9l4.8 3.3M24.7 15.8l-2.6 .6-3.3 3.9-.8 2.8 2 2.2M10.3 12.3l1.3 .5 .6-.9-.5-4.7M8.9 10.8l1.4 1.5M24.3 19.2l-1.4-.1-1.3 1.3-.5 1.6 .9 1.4`],[.68,`M14.9 7.1l-1-1.7-1.7-.5M5.3 11.1l.6 1.8M20 25.3l1.1 .3 1.8-.4M27.1 18.4l-.3-1.1-1.1-1.2-1-.3M11.7 7.2l-1.3-.5-2.2 1-1 2.1 .3 .6 1.4 .4M22 23.4l1.4 0 1.4-1.4 .4-1.7-.9-1.1`],[.35,`M12.2 4.9l-1.8 .3-2.4 1.5-1.8 2.1-.9 2.3M22.9 25.2l2.8-2.4 1.4-4.4`]],[[1,`M8.6 15.6l1.4 .5 1.2-.4 1.1-1.1 .7-2 .2-6.2M25.5 16.9l-1.6-1.3-1.1-.4-2.9 .5-3.3 3.7-.7 1.8 0 1.2 .7 1.1 1.9 1.3M8.4 11.8l1 .5 .7-.9M20.3 22.9l1.6 .1M23.3 21.6l.2-1.8-1.1-1.2-1.6-.1-1.4 1.4-.3 1.5 1.2 1.5`],[.68,`M13.2 6.4l-.5-1.4M5 12.8l3.6 2.8M18.5 24.8l1.2 .4 2-.3 1.9-1.1 1.1-1.1 1.2-4.7-.4-1.1M10.1 11.4l.2-4.6-.9-.4M6.3 10.1l1 .3 1.1 1.4M21.9 23l1.4-1.4`],[.35,`M27.6 11.8l.5 2.5 0 3.9M12.7 5l-1.6-.3M4.7 11.3l.3 1.5M9.4 6.4l-2 1.1-1.2 2.1 .1 .5`]],[[1,`M6.7 15.1l1.8 .3 1.8-2 1.5-7.2M16.7 24.3l1.4 .4M23.3 22.4l1-4.8-.6-1.2-1.8-1.4-1.3-.4-3.1 .4-1.3 1-1.9 2.5-.7 1.9 .2 1.4 .8 1.1 2.1 1.4M18.3 22.3l1.7 .1 1.4-1.3 .1-1.8-1.3-1.3-1.7-.2-1.5 1.4-.2 1.6 1.5 1.5`],[.68,`M11.8 6.2l.1-1.3M4.9 13.6l1.8 1.5M18.1 24.7l2.1-.2 2-1.1 1.1-1M6.8 11.3l.8 .4 .6-.7 .3-2.8 .8-1.9M6.1 10.1l.7 1.2`],[.35,`M26.7 10.1l.7 3.9-.2 7M11.9 4.9l-.5-.3M4.2 12.5l.7 1.1M9.3 6.3l-.9 0M5.6 9.5l-.1 .4 .6 .2`]],[[1,`M7.9 13.5l1.4-3.4M14.8 23.7l1.5 .5 2.2-.2 2-1 1-1.1 .8-4.9-.7-1.2-2-1.5-1.4-.4-3.1 .3-1.4 1.1-1.7 2.4-.6 1.9 .2 1.5 1 1.2 2.2 1.4M16.1 21.7l1.9 .1 1.3-1.3 0-1.9-1.5-1.3-1.8-.2-1.4 1.4-.1 1.6 1.6 1.6`],[.68,`M26 10.3l.1 5.3 .5 5.3M5.3 14.7l1.2 .2 1.4-1.4M9.3 10.1l.4-2.4 1.6-3.1M5.6 11l.5 .4 .5-.5 .9-2.9`],[.35,`M26.3 9.3l-.3 1M26.6 20.9l.5 .3M4.1 13.1l1.2 1.6M28.1 18.1l-.3-5.5M7.5 8l1.3-1.9M5.4 9.8l.2 1.2`]],[[1,`M12.8 23.2l1.5 .4 2.3-.1 2-1.1 .9-1 .5-5.1-.8-1.1-2-1.6-1.4-.4-3.1 .3-1.4 1.1-1.5 2.4-.5 1.9 .2 1.6 1.1 1.2 2.2 1.5M13.9 21.1l1.8 .1 1.3-1.4-.1-1.9-1.6-1.3-1.8-.2-1.3 1.4 0 1.6 1.7 1.7`],[.68,`M24.9 10.2l-.4 5 1 5.4 .5 .4M5.1 14.6l1-1.3 2.3-5.8M27.3 17.6l-.5-3 .4-2.1`],[.35,`M26.1 9.1l-1.2 1.1M26 21l.9 .1 .1 .4M4.3 14.4l.8 .2M8.4 7.5l2.1-2.5M27.8 18l-.5-.4M27.2 12.5l.3-.2 .3 .4M4.9 10.8l.2 .3 .4-.4 1.5-3`]],[[1,`M23.5 9.6l-.9 4.8 1.3 5.6M10.9 22.6l1.5 .5 2.2-.2 1.8-1.1 .8-1 .4-5.2-.8-1.1-2-1.6-1.4-.4-3 .4-1.3 1.1-1.3 2.3-.4 2M8.7 21.2l2.2 1.4M11.7 20.4l1.7 .2 1.2-1.4-.2-2-1.5-1.3-1.8-.2-1.2 1.5 .1 1.6 1.7 1.6`],[.68,`M25.3 8.8l-1.8 .8M23.9 20l.7 .6 1.5 .3M7.4 18.3l.3 1.7 1 1.2M27 17.7l-.8-.4-.8-2.6 .2-1.8 .9-.9`],[.35,`M26.5 9.7l-1.2-.9M26.1 20.9l.4 1.5M3.8 14.4l1-1.1 2.6-5.7 1.6-1.7M26.5 12l.9 .8 .6 2.2-.1 1.8-.9 .9`]],[[1,`M21.7 9.3l-1.3 4 .4 3 1.2 3.1 .9 .7M10.5 22.5l2-.2 2.4-2.2 .2-5.2-.8-1.1-1.9-1.6-1.3-.3-2.7 .4-1.2 1.2M24.6 16.8l-1-2.6 .4-1.7M9.6 19.9l1.6 0 1-1.4-.2-2-1.5-1.3-1.7 0-.9 1.4 .1 1.6 1.6 1.7`],[.68,`M24.3 8.5l-2.6 .8M22.9 20.1l2.1 .5 1.2 2.2M9.2 22.1l1.3 .4M7.2 13.5l-1.1 2.2-.3 2 .4 1.8 .9 1.3 2.1 1.3M25.6 17.4l-1-.6M24 12.5l1.2-.8 1.3 .9 .7 2.2-.2 1.7-1.4 .9`],[.35,`M28.2 14.3l-.5-1.9-1.4-2.5-2-1.4M4 13.5l2.4-5.1M28 18.7l-.1-.5-.3 .3-.1 1.6`]],[[1,`M20.7 8.5l-1.5 1.3-1.2 3.8 1.6 4.9 1.1 1 2.6 .7M8.8 22.1l1.7-.4 2.1-2.2 0-5.3-2.3-2.6-1.2-.3M23.9 16.9l-1.3-.7-1.1-2.5 .6-1.8 1.5-.7M25.6 16.1l-1.7 .8M7.7 19.3l1.4 0 .9-1.4-.3-2-1.3-1.3-1.4 0`],[.68,`M27.1 12.5l-2.2-3.4-1.8-.9-2.4 .3M23.3 20.2l2.5 2.5M7.6 21.7l1.2 .4M9.1 11.3l-2.3 .5-1 1.2-.9 2.2-.3 2.1M5 19.2l.8 1.2 1.8 1.3M27.2 18.1l-.6 .3 .2 1.5M23.6 11.2l1.6 1 .8 2.2-.4 1.7M7 14.6l-.8 1.6 .1 1.5 1.4 1.6`],[.35,`M28.2 16.9l-1.1-4.4M4.6 17.3l.4 1.9M26.8 19.9l.3 .1 .3-.6-.2-1.3`]],[[1,`M20.1 8l-1.8 .1-1.3 1.3-1.4 3 .5 2.9 1.7 3.2 3.4 1 3.6 2.9M8.7 21.2l1.6-2.3 0-5.4-1.9-2.4M21.8 16.3l-1.4-.7-1.2-2.6 .8-1.7 1.8-.6 1.7 1 .9 2.3-.6 1.6-2 .7M7.3 18.8l.6-1.5-.2-2`],[.68,`M24.8 22.4l1.1-.3M27.4 15.7l-1.3-3.6-2-3-2.1-1.3-1.9 .2M6.3 21.3l1 .3 1.4-.4M8.4 11.1l-1.1-.2-1.7 .6M25.6 19.5l.5 .2 .3-.5-.5-1.5-.5-.1-.3 .4 .5 1.5M6.1 18.9l1.2-.1M7.7 15.3l-1.1-1.2-1.1 .1-.6 1.6 .1 1.6 1.1 1.5`],[.35,`M25.9 22.1l1.3-2.2 .5-2.1-.3-2.1M5.6 11.5l-1.5 3.3 .2 4.1 .6 1.3 1.4 1.1`]],[[1,`M18.3 7.5l-1.9 .1-1.5 1.3-1.6 2.8 .4 3.1 1.7 3.1 3.5 .9 2 1.9 2.5 1.3M8.2 18.9l.1-5.9-.4-1.1M24.3 17.2l-.7-.1-.3 .4 .7 1.6M19.5 15.6l-1.6-.7-1-2.6 .9-1.6 2-.6 1.8 1.1 .8 2.3-.6 1.5-2.3 .6`],[.68,`M23.4 22l1.4-.2 1.3-1.8 .6-2.1-.3-2.2-1.8-4-1.9-3-2.3-1.3-2.1 .1M6.1 21.3l1-.5 1.1-1.9M7.9 11.9l-1.3-1.4M24 19.1l.6 .2 .4-.6-.7-1.5M4.9 18.5l.9-.1 .4-1.5-.1-2-.8-1.2`],[.35,`M25 24.4l-1 .9M5.4 21l.7 .3M6.6 10.5l-1.5 .5-.7 1.1M4.4 20l1 1M5.3 13.7l-.9 .2-.4 1.7 .2 1.7 .7 1.2`]]];function nt({className:e,...t}){return(0,m.jsxs)(`svg`,{role:`status`,"aria-label":`Loading`,width:16,height:16,viewBox:`0 0 32 32`,fill:`none`,stroke:`currentColor`,strokeWidth:1.25,strokeLinecap:`round`,strokeLinejoin:`round`,className:r(`size-4 shrink-0 overflow-visible`,e),...t,children:[(0,m.jsx)(`circle`,{cx:16,cy:16,r:13.2,opacity:.55,vectorEffect:`non-scaling-stroke`}),tt.map((e,t)=>(0,m.jsx)(`g`,{className:`animate-loader-frame`,style:{opacity:+!t,animationDelay:`calc(var(--loader-cycle) * ${(t-1)/tt.length-1})`},children:e.map(([e,t])=>(0,m.jsx)(`path`,{d:t,strokeOpacity:e,vectorEffect:`non-scaling-stroke`},t))},e[0][1]))]})}var z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let r=n(`Primitive.${t}`),i=p.forwardRef((e,n)=>{let{asChild:i,...a}=e,o=i?r:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function rt(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))}function it(e,t){let n=p.createContext(t),r=e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function at(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=p.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,ot(i,...t)]}function ot(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function st(e){let t=e+`CollectionProvider`,[r,a]=at(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,r=p.useRef(null),i=p.useRef(new Map).current;return(0,m.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};c.displayName=t;let l=e+`CollectionSlot`,u=n(l),d=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=s(l,n),o=i(t,a.collectionRef);return(0,m.jsx)(u,{ref:o,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,h=`data-radix-collection-item`,g=n(f),_=p.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=p.useRef(null),c=i(t,o),l=s(f,n);return p.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,m.jsx)(g,{[h]:``,ref:c,children:r})});_.displayName=f;function v(t){let n=s(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:c,Slot:d,ItemSlot:_},v,a]}typeof window<`u`&&window.document&&window.document.createElement;function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var V=globalThis?.document?p.useLayoutEffect:()=>{},ct=p.useInsertionEffect||V;function lt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=ut({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=p.useRef(e!==void 0);p.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,p.useCallback(t=>{if(s){let n=dt(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function ut({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),a=p.useRef(t);return ct(()=>{a.current=t},[t]),p.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function dt(e){return typeof e==`function`}function ft(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var pt=e=>{let{present:t,children:n}=e,r=mt(t),a=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),o=i(r.ref,gt(a));return typeof n==`function`||r.isPresent?p.cloneElement(a,{ref:o}):null};pt.displayName=`Presence`;function mt(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),[o,s]=ft(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=ht(r.current);a.current=o===`mounted`?e:`none`},[o]),V(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=ht(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),V(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=ht(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=ht(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:p.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function ht(e){return e?.animationName||`none`}function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _t=p.useId||(()=>void 0),vt=0;function yt(e){let[t,n]=p.useState(_t());return V(()=>{e||n(e=>e??String(vt++))},[e]),e||(t?`radix-${t}`:``)}var bt=p.createContext(void 0);function xt(e){let t=p.useContext(bt);return e||t||`ltr`}function St(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}function Ct(e,t=globalThis?.document){let n=St(e);p.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var wt=`DismissableLayer`,Tt=`dismissableLayer.update`,Et=`dismissableLayer.pointerDownOutside`,Dt=`dismissableLayer.focusOutside`,Ot,kt=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(kt),[d,f]=p.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=p.useState({}),_=i(t,e=>f(e)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=d?v.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=Nt(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));C&&!n&&(a?.(e),s?.(e),e.defaultPrevented||c?.())},h),T=Pt(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},h);return Ct(e=>{x===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ot=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ft(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ot)}},[d,h,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ft())},[d,u]),p.useEffect(()=>{let e=()=>g({});return document.addEventListener(Tt,e),()=>document.removeEventListener(Tt,e)},[]),(0,m.jsx)(z.div,{...l,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:B(e.onFocusCapture,T.onFocusCapture),onBlurCapture:B(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,w.onPointerDownCapture)})});At.displayName=wt;var jt=`DismissableLayerBranch`,Mt=p.forwardRef((e,t)=>{let n=p.useContext(kt),r=p.useRef(null),a=i(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(z.div,{...e,ref:a})});Mt.displayName=jt;function Nt(e,t=globalThis?.document){let n=St(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){It(Et,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pt(e,t=globalThis?.document){let n=St(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&It(Dt,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ft(){let e=new CustomEvent(Tt);document.dispatchEvent(e)}function It(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?rt(i,a):i.dispatchEvent(a)}var Lt=`Portal`,Rt=p.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=p.useState(!1);V(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?h.createPortal((0,m.jsx)(z.div,{...r,ref:t}),o):null});Rt.displayName=Lt;function zt(e){let[t,n]=p.useState(void 0);return V(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}var Bt=[`top`,`right`,`bottom`,`left`],H=Math.min,U=Math.max,Vt=Math.round,Ht=Math.floor,W=e=>({x:e,y:e}),Ut={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Wt(e,t,n){return U(e,H(t,n))}function G(e,t){return typeof e==`function`?e(t):e}function K(e){return e.split(`-`)[0]}function Gt(e){return e.split(`-`)[1]}function Kt(e){return e===`x`?`y`:`x`}function qt(e){return e===`y`?`height`:`width`}function q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Jt(e){return Kt(q(e))}function Yt(e,t,n){n===void 0&&(n=!1);let r=Gt(e),i=Jt(e),a=qt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=an(o)),[o,an(o)]}function Xt(e){let t=an(e);return[Zt(e),t,Zt(t)]}function Zt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qt=[`left`,`right`],$t=[`right`,`left`],en=[`top`,`bottom`],tn=[`bottom`,`top`];function nn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$t:Qt:t?Qt:$t;case`left`:case`right`:return t?en:tn;default:return[]}}function rn(e,t,n,r){let i=Gt(e),a=nn(K(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Zt)))),a}function an(e){let t=K(e);return Ut[t]+e.slice(t.length)}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function sn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:on(e)}function cn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ln(e,t,n){let{reference:r,floating:i}=e,a=q(t),o=Jt(t),s=qt(o),c=K(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Gt(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function un(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=G(t,e),p=sn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=cn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=cn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var dn=50,fn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:un},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ln(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<dn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ln(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pn=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};let d=sn(u),f={x:n,y:r},p=Jt(i),m=qt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=H(d[_],T),ee=H(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,A=Wt(D,k,O),j=!c.arrow&&Gt(i)!=null&&k!==A&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),mn=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=K(r),_=q(o),v=K(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[an(o)]:Xt(o)),x=p!==`none`;!d&&x&&b.push(...rn(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Yt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===q(t)||T.every(e=>q(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=q(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function hn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gn(e){return Bt.some(t=>e[t]>=0)}var _n=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=G(e,t);switch(i){case`referenceHidden`:{let e=hn(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gn(e)}}}case`escaped`:{let e=hn(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gn(e)}}}default:return{}}}}},vn=new Set([`left`,`top`]);async function yn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=K(n),s=Gt(n),c=q(n)===`y`,l=vn.has(o)?-1:1,u=a&&c?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var bn=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await yn(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},xn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=q(K(i)),p=Kt(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Wt(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Wt(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Sn=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:r},d=q(i),f=Kt(d),p=u[f],m=u[d],h=G(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=vn.has(K(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Cn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=G(e,t),u=await o.detectOverflow(t,l),d=K(i),f=Gt(i),p=q(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=H(h-u[g],v),x=H(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=U(u.left,0),t=U(u.right,0),n=U(u.top,0),r=U(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:U(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:U(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function wn(){return typeof window<`u`}function Tn(e){return En(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){return((En(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function En(e){return wn()?e instanceof Node||e instanceof J(e).Node:!1}function X(e){return wn()?e instanceof Element||e instanceof J(e).Element:!1}function Z(e){return wn()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function Dn(e){return!wn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function On(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function kn(e){return/^(table|td|th)$/.test(Tn(e))}function An(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var jn=/transform|translate|scale|rotate|perspective|filter/,Mn=/paint|layout|strict|content/,Nn=e=>!!e&&e!==`none`,Pn;function Fn(e){let t=X(e)?Q(e):e;return Nn(t.transform)||Nn(t.translate)||Nn(t.scale)||Nn(t.rotate)||Nn(t.perspective)||!Ln()&&(Nn(t.backdropFilter)||Nn(t.filter))||jn.test(t.willChange||``)||Mn.test(t.contain||``)}function In(e){let t=$(e);for(;Z(t)&&!Rn(t);){if(Fn(t))return t;if(An(t))return null;t=$(t)}return null}function Ln(){return Pn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Pn}function Rn(e){return/^(html|body|#document)$/.test(Tn(e))}function Q(e){return J(e).getComputedStyle(e)}function zn(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $(e){if(Tn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Dn(e)&&e.host||Y(e);return Dn(t)?t.host:t}function Bn(e){let t=$(e);return Rn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Z(t)&&On(t)?t:Bn(t)}function Vn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Bn(e),i=r===e.ownerDocument?.body,a=J(r);if(i){let e=Hn(a);return t.concat(a,a.visualViewport||[],On(r)?r:[],e&&n?Vn(e):[])}return t.concat(r,Vn(r,[],n))}function Hn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Un(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Z(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Vt(n)!==a||Vt(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Wn(e){return X(e)?e:e.contextElement}function Gn(e){let t=Wn(e);if(!Z(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Un(t),o=(a?Vt(n.width):n.width)/r,s=(a?Vt(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Kn=W(0);function qn(e){let t=J(e);return!Ln()||!t.visualViewport?Kn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Wn(e),o=W(1);t&&(r?X(r)&&(o=Gn(r)):o=Gn(e));let s=Jn(a,n,r)?qn(a):W(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=J(a),t=r&&X(r)?J(r):r,n=e,i=Hn(n);for(;i&&r&&t!==n;){let e=Gn(i),t=i.getBoundingClientRect(),r=Q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=J(i),i=Hn(n)}}return cn({width:u,height:d,x:c,y:l})}function Xn(e,t){let n=zn(e).scrollLeft;return t?t.left+n:Yn(Y(e)).left+n}function Zn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xn(e,n),y:n.top+t.scrollTop}}function Qn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Y(r),s=t?An(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W(1),u=W(0),d=Z(r);if((d||!d&&!a)&&((Tn(r)!==`body`||On(o))&&(c=zn(r)),d)){let e=Yn(r);l=Gn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Zn(o,c):W(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function $n(e){return Array.from(e.getClientRects())}function er(e){let t=Y(e),n=zn(e),r=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=U(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Xn(e),s=-n.scrollTop;return Q(r).direction===`rtl`&&(o+=U(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var tr=25;function nr(e,t){let n=J(e),r=Y(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ln();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Xn(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=tr&&(a-=o)}else l<=tr&&(a+=l);return{width:a,height:o,x:s,y:c}}function rr(e,t){let n=Yn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Z(e)?Gn(e):W(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ir(e,t,n){let r;if(t===`viewport`)r=nr(e,n);else if(t===`document`)r=er(Y(e));else if(X(t))r=rr(t,n);else{let n=qn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cn(r)}function ar(e,t){let n=$(e);return n===t||!X(n)||Rn(n)?!1:Q(n).position===`fixed`||ar(n,t)}function or(e,t){let n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter(e=>X(e)&&Tn(e)!==`body`),i=null,a=Q(e).position===`fixed`,o=a?$(e):e;for(;X(o)&&!Rn(o);){let t=Q(o),n=Fn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||On(o)&&!n&&ar(e,o))?r=r.filter(e=>e!==o):i=t,o=$(o)}return t.set(e,r),r}function sr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?An(t)?[]:or(t,this._c):[].concat(n),r],o=ir(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ir(t,a[e],i);s=U(n.top,s),c=H(n.right,c),l=H(n.bottom,l),u=U(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function cr(e){let{width:t,height:n}=Un(e);return{width:t,height:n}}function lr(e,t,n){let r=Z(t),i=Y(t),a=n===`fixed`,o=Yn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W(0);function l(){c.x=Xn(i)}if(r||!r&&!a){if((Tn(t)!==`body`||On(i))&&(s=zn(t)),r){let e=Yn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=i&&!r&&!a?Zn(i,s):W(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ur(e){return Q(e).position===`static`}function dr(e,t){if(!Z(e)||Q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function fr(e,t){let n=J(e);if(An(e))return n;if(!Z(e)){let t=$(e);for(;t&&!Rn(t);){if(X(t)&&!ur(t))return t;t=$(t)}return n}let r=dr(e,t);for(;r&&kn(r)&&ur(r);)r=dr(r,t);return r&&Rn(r)&&ur(r)&&!Fn(r)?n:r||In(e)||n}var pr=async function(e){let t=this.getOffsetParent||fr,n=this.getDimensions,r=await n(e.floating);return{reference:lr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mr(e){return Q(e).direction===`rtl`}var hr={convertOffsetParentRelativeRectToViewportRelativeRect:Qn,getDocumentElement:Y,getClippingRect:sr,getOffsetParent:fr,getElementRects:pr,getClientRects:$n,getDimensions:cr,getScale:Gn,isElement:X,isRTL:mr};function gr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _r(e,t){let n=null,r,i=Y(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ht(d),h=Ht(i.clientWidth-(u+f)),g=Ht(i.clientHeight-(d+p)),_=Ht(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:U(0,H(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!gr(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function vr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Wn(e),u=i||a?[...l?Vn(l):[],...t?Vn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?_r(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Yn(e):null;c&&g();function g(){let t=Yn(e);h&&!gr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var yr=bn,br=xn,xr=mn,Sr=Cn,Cr=_n,wr=pn,Tr=Sn,Er=(e,t,n)=>{let r=new Map,i={platform:hr,...n},a={...i.platform,_c:r};return fn(e,t,{...i,platform:a})},Dr=typeof document<`u`?p.useLayoutEffect:function(){};function Or(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Or(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Or(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function kr(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ar(e,t){let n=kr(e);return Math.round(t*n)/n}function jr(e){let t=p.useRef(e);return Dr(()=>{t.current=e}),t}function Mr(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(r);Or(f,r)||m(r);let[g,_]=p.useState(null),[v,y]=p.useState(null),b=p.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=p.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=p.useRef(null),T=p.useRef(null),E=p.useRef(u),ee=c!=null,D=jr(c),O=jr(i),k=jr(l),A=p.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Er(w.current,T.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Or(E.current,t)&&(E.current=t,h.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Dr(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=p.useRef(!1);Dr(()=>(j.current=!0,()=>{j.current=!1}),[]),Dr(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(D.current)return D.current(S,C,A);A()}},[S,C,A,D,ee]);let M=p.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),N=p.useMemo(()=>({reference:S,floating:C}),[S,C]),P=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Ar(N.floating,u.x),r=Ar(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...kr(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Nr=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:wr({element:r.current,padding:i}).fn(n):r?wr({element:r,padding:i}).fn(n):{}}}},Pr=(e,t)=>{let n=yr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fr=(e,t)=>{let n=br(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ir=(e,t)=>({fn:Tr(e).fn,options:[e,t]}),Lr=(e,t)=>{let n=xr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rr=(e,t)=>{let n=Sr(e);return{name:n.name,fn:n.fn,options:[e,t]}},zr=(e,t)=>{let n=Cr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Br=(e,t)=>{let n=Nr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vr=`Arrow`,Hr=p.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,m.jsx)(z.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,m.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Hr.displayName=Vr;var Ur=Hr,Wr=`Popper`,[Gr,Kr]=at(Wr),[qr,Jr]=Gr(Wr),Yr=e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return(0,m.jsx)(qr,{scope:t,anchor:r,onAnchorChange:i,children:n})};Yr.displayName=Wr;var Xr=`PopperAnchor`,Zr=p.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,o=Jr(Xr,n),s=p.useRef(null),c=i(t,s),l=p.useRef(null);return p.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,m.jsx)(z.div,{...a,ref:c})});Zr.displayName=Xr;var Qr=`PopperContent`,[$r,ei]=Gr(Qr),ti=p.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:g=`optimized`,onPlaced:_,...v}=e,y=Jr(Qr,n),[b,x]=p.useState(null),S=i(t,e=>x(e)),[C,w]=p.useState(null),T=zt(C),E=T?.width??0,ee=T?.height??0,D=r+(o===`center`?``:`-`+o),O=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(ai),altBoundary:A},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Mr({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>vr(...e,{animationFrame:g===`always`}),elements:{reference:y.anchor},middleware:[Pr({mainAxis:a+ee,alignmentAxis:s}),l&&Fr({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Ir():void 0,...j}),l&&Lr({...j}),Rr({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),C&&Br({element:C,padding:c}),oi({arrowWidth:E,arrowHeight:ee}),h&&zr({strategy:`referenceHidden`,...j})]}),[te,ne]=si(P),re=St(_);V(()=>{F&&re?.()},[F,re]);let ie=I.arrow?.x,ae=I.arrow?.y,oe=I.arrow?.centerOffset!==0,[se,ce]=p.useState();return V(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),(0,m.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,m.jsx)($r,{scope:n,placedSide:te,onArrowChange:w,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,m.jsx)(z.div,{"data-side":te,"data-align":ne,...v,ref:S,style:{...v.style,animation:F?void 0:`none`}})})})});ti.displayName=Qr;var ni=`PopperArrow`,ri={top:`bottom`,right:`left`,bottom:`top`,left:`right`},ii=p.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ei(ni,n),a=ri[i.placedSide];return(0,m.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,m.jsx)(Ur,{...r,ref:t,style:{...r.style,display:`block`}})})});ii.displayName=ni;function ai(e){return e!==null}var oi=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=si(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function si(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ci=Yr,li=Zr,ui=ti,di=ii,fi=`rovingFocusGroup.onEntryFocus`,pi={bubbles:!1,cancelable:!0},mi=`RovingFocusGroup`,[hi,gi,_i]=st(mi),[vi,yi]=at(mi,[_i]),[bi,xi]=vi(mi),Si=p.forwardRef((e,t)=>(0,m.jsx)(hi.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(hi.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(Ci,{...e,ref:t})})}));Si.displayName=mi;var Ci=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=p.useRef(null),g=i(t,h),_=xt(o),[v,y]=lt({prop:s,defaultProp:c??null,onChange:l,caller:mi}),[b,x]=p.useState(!1),S=St(u),C=gi(n),w=p.useRef(!1),[T,E]=p.useState(0);return p.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(fi,S),()=>e.removeEventListener(fi,S)},[S]),(0,m.jsx)(bi,{scope:n,orientation:r,dir:_,loop:a,currentTabStopId:v,onItemFocus:p.useCallback(e=>y(e),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>E(e=>e-1),[]),children:(0,m.jsx)(z.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...f,ref:g,style:{outline:`none`,...e.style},onMouseDown:B(e.onMouseDown,()=>{w.current=!0}),onFocus:B(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(fi,pi);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);ki([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),d)}}w.current=!1}),onBlur:B(e.onBlur,()=>x(!1))})})}),wi=`RovingFocusGroupItem`,Ti=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=yt(),l=a||c,u=xi(wi,n),d=u.currentTabStopId===l,f=gi(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=u;return p.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),(0,m.jsx)(hi.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,m.jsx)(z.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:B(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:B(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:B(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Oi(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Ai(n,r+1):n.slice(r+1)}setTimeout(()=>ki(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:_!=null}):o})})});Ti.displayName=wi;var Ei={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Di(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Oi(e,t,n){let r=Di(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ei[r]}function ki(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ai(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ji=Si,Mi=Ti,Ni,Pi=`HoverCard`,[Fi,Ii]=at(Pi,[Kr]),Li=Kr(),[Ri,zi]=Fi(Pi),Bi=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:s=300}=e,c=Li(t),l=p.useRef(0),u=p.useRef(0),d=p.useRef(!1),f=p.useRef(!1),[h,g]=lt({prop:r,defaultProp:i??!1,onChange:a,caller:Pi}),_=p.useCallback(()=>{clearTimeout(u.current),l.current=window.setTimeout(()=>g(!0),o)},[o,g]),v=p.useCallback(()=>{clearTimeout(l.current),!d.current&&!f.current&&(u.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=p.useCallback(()=>g(!1),[g]);return p.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(u.current)},[]),(0,m.jsx)(Ri,{scope:t,open:h,onOpenChange:g,onOpen:_,onClose:v,onDismiss:y,hasSelectionRef:d,isPointerDownOnContentRef:f,children:(0,m.jsx)(ci,{...c,children:n})})};Bi.displayName=Pi;var Vi=`HoverCardTrigger`,Hi=p.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=zi(Vi,n),a=Li(n);return(0,m.jsx)(li,{asChild:!0,...a,children:(0,m.jsx)(z.a,{"data-state":i.open?`open`:`closed`,...r,ref:t,onPointerEnter:B(e.onPointerEnter,Qi(i.onOpen)),onPointerLeave:B(e.onPointerLeave,Qi(i.onClose)),onFocus:B(e.onFocus,i.onOpen),onBlur:B(e.onBlur,i.onClose),onTouchStart:B(e.onTouchStart,e=>e.preventDefault())})})});Hi.displayName=Vi;var Ui=`HoverCardPortal`,[Wi,Gi]=Fi(Ui,{forceMount:void 0}),Ki=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=zi(Ui,t);return(0,m.jsx)(Wi,{scope:t,forceMount:n,children:(0,m.jsx)(pt,{present:n||a.open,children:(0,m.jsx)(Rt,{asChild:!0,container:i,children:r})})})};Ki.displayName=Ui;var qi=`HoverCardContent`,Ji=p.forwardRef((e,t)=>{let n=Gi(qi,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=zi(qi,e.__scopeHoverCard);return(0,m.jsx)(pt,{present:r||a.open,children:(0,m.jsx)(Yi,{"data-state":a.open?`open`:`closed`,...i,onPointerEnter:B(e.onPointerEnter,Qi(a.onOpen)),onPointerLeave:B(e.onPointerLeave,Qi(a.onClose)),ref:t})})});Ji.displayName=qi;var Yi=p.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,...c}=e,l=zi(qi,n),u=Li(n),d=p.useRef(null),f=i(t,d),[h,g]=p.useState(!1);return p.useEffect(()=>{if(h){let e=document.body;return Ni=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect=`none`,e.style.webkitUserSelect=`none`,()=>{e.style.userSelect=Ni,e.style.webkitUserSelect=Ni}}},[h]),p.useEffect(()=>{if(d.current){let e=()=>{g(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==``&&(l.hasSelectionRef.current=!0)})};return document.addEventListener(`pointerup`,e),()=>{document.removeEventListener(`pointerup`,e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),p.useEffect(()=>{d.current&&$i(d.current).forEach(e=>e.setAttribute(`tabindex`,`-1`))}),(0,m.jsx)(At,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:B(o,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:(0,m.jsx)(ui,{...u,...c,onPointerDown:B(c.onPointerDown,e=>{e.currentTarget.contains(e.target)&&g(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...c.style,userSelect:h?`text`:void 0,WebkitUserSelect:h?`text`:void 0,"--radix-hover-card-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-hover-card-content-available-width":`var(--radix-popper-available-width)`,"--radix-hover-card-content-available-height":`var(--radix-popper-available-height)`,"--radix-hover-card-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-hover-card-trigger-height":`var(--radix-popper-anchor-height)`}})})}),Xi=`HoverCardArrow`,Zi=p.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=Li(n);return(0,m.jsx)(di,{...i,...r,ref:t})});Zi.displayName=Xi;function Qi(e){return t=>t.pointerType===`touch`?void 0:e()}function $i(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var ea=Bi,ta=Hi,na=Ki,ra=Ji;function ia({...e}){return(0,m.jsx)(ea,{"data-slot":`hover-card`,...e})}var aa=ta;function oa({className:e,align:t=`center`,sideOffset:n=6,...i}){return(0,m.jsx)(na,{children:(0,m.jsx)(ra,{"data-slot":`hover-card-content`,align:t,sideOffset:n,className:r(`z-50 w-72 origin-(--radix-hover-card-content-transform-origin) rounded-surface glass-overlay p-3 text-popover-foreground shadow-2xl outline-none duration-(--duration-fast) data-[state=open]:animate-in data-[state=open]:ease-(--ease-enter) data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:ease-(--ease-exit) data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 motion-reduce:duration-0 low-power:duration-0`,e),...i})})}function sa({className:e,autoComplete:t=`off`,...n}){return(0,m.jsx)(`textarea`,{autoComplete:t,"data-slot":`textarea`,className:r(`border-edge-strong placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 rounded-control bg-glass flex field-sizing-content min-h-16 w-full border px-2.5 py-2 text-base transition-colors outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm`,e),...n})}var ca=a({links:[c({condition:e=>e.type===`subscription`,true:o({transformer:R,url:`${location.origin}/api/trpc`}),false:s({transformer:R,url:`${location.origin}/api/trpc`,fetch:f.fetch})})]});function la({className:e,size:t=`default`,material:n=`surface`,...i}){return(0,m.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:r(`group/card flex flex-col gap-4 overflow-hidden rounded-surface py-4 text-sm text-card-foreground has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-surface *:[img:last-child]:rounded-b-surface`,n===`overlay`?`glass-overlay`:`glass-surface`,e),...i})}function ua({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`card-header`,className:r(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-surface px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function da({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`card-title`,className:r(`font-heading text-base leading-snug font-medium text-balance group-data-[size=sm]/card:text-sm`,e),...t})}function fa({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`card-description`,className:r(`text-sm text-muted-foreground text-pretty`,e),...t})}function pa({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`card-content`,className:r(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}export{it as A,Xe as B,xt as C,V as D,lt as E,$e as F,Je as H,et as I,Qe as L,z as M,rt as N,B as O,nt as P,Ze as R,St as S,pt as T,He as U,qe as V,R as W,ci as _,da as a,Rt as b,ia as c,Mi as d,ji as f,ui as g,di as h,ua as i,at as j,st as k,oa as l,li as m,pa as n,ca as o,yi as p,fa as r,sa as s,la as t,aa as u,Kr as v,yt as w,At as x,zt as y,Ye as z};
|