UNPKG

@kitn.ai/chat

Version:

Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.

1 lines 453 kB
var Ps=Object.defineProperty,Os=(e,t,r)=>t in e?Ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>Os(e,typeof t!="symbol"?t+"":t,r);const js=(e,t)=>e===t,Te=Symbol("solid-proxy"),Ao=typeof Proxy=="function",Lt=Symbol("solid-track"),rr={equals:js};let Pt=null,To=Lo;const je=1,nr=2,Mo={owned:null,cleanups:null,context:null,owner:null},Qr={};var ie=null;let Xr=null,wy=null,ue=null,ye=null,Re=null,or=0;function et(e,t){const r=ue,n=ie,o=e.length===0,i=t===void 0?n:t,a=o?Mo:{owned:null,cleanups:null,context:i?i.context:null,owner:i},s=o?e:()=>e(()=>be(()=>jt(a)));ie=a,ue=null;try{return He(s,!0)}finally{ue=r,ie=n}}function O(e,t){t=t?Object.assign({},rr,t):rr;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),_o(r,o));return[Eo.bind(r),n]}function Ds(e,t,r){const n=Ot(e,t,!0,je);ht(n)}function M(e,t,r){const n=Ot(e,t,!1,je);ht(n)}function re(e,t,r){To=Ws;const n=Ot(e,t,!1,je);(!r||!r.render)&&(n.user=!0),Re?Re.push(n):ht(n)}function D(e,t,r){r=r?Object.assign({},rr,r):rr;const n=Ot(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,ht(n),Eo.bind(n)}function Ns(e){return e&&typeof e=="object"&&"then"in e}function qs(e,t,r){let n,o,i;typeof t=="function"?(n=e,o=t,i={}):(n=!0,o=e,i=t||{});let a=null,s=Qr,l=!1,d="initialValue"in i,u=typeof n=="function"&&D(n);const p=new Set,[h,m]=(i.storage||O)(i.initialValue),[f,k]=O(void 0),[S,w]=O(void 0,{equals:!1}),[b,x]=O(d?"ready":"unresolved");function $(E,I,N,C){return a===E&&(a=null,C!==void 0&&(d=!0),(E===s||I===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(C,{value:I})),s=Qr,_(I,N)),I}function _(E,I){He(()=>{I===void 0&&m(()=>E),x(I!==void 0?"errored":d?"ready":"unresolved"),k(I);for(const N of p.keys())N.decrement();p.clear()},!1)}function z(){const E=Bs,I=h(),N=f();if(N!==void 0&&!a)throw N;return ue&&ue.user,I}function A(E=!0){if(E!==!1&&l)return;l=!1;const I=u?u():n;if(I==null||I===!1){$(a,be(h));return}let N;const C=s!==Qr?s:be(()=>{try{return o(I,{value:h(),refetching:E})}catch(q){N=q}});if(N!==void 0){$(a,void 0,sr(N),I);return}else if(!Ns(C))return $(a,C,void 0,I),C;return a=C,"v"in C?(C.s===1?$(a,C.v,void 0,I):$(a,void 0,sr(C.v),I),C):(l=!0,queueMicrotask(()=>l=!1),He(()=>{x(d?"refreshing":"pending"),w()},!1),C.then(q=>$(C,q,void 0,I),q=>$(C,void 0,sr(q),I)))}Object.defineProperties(z,{state:{get:()=>b()},error:{get:()=>f()},loading:{get(){const E=b();return E==="pending"||E==="refreshing"}},latest:{get(){if(!d)return z();const E=f();if(E&&!a)throw E;return h()}}});let L=ie;return u?Ds(()=>(L=ie,A(!1))):A(!1),[z,{refetch:E=>Io(L,()=>A(E)),mutate:m}]}function Fs(e){return He(e,!1)}function be(e){if(ue===null)return e();const t=ue;ue=null;try{return e()}finally{ue=t}}function ve(e,t,r){const n=Array.isArray(e);let o,i=r&&r.defer;return a=>{let s;if(n){s=Array(e.length);for(let d=0;d<e.length;d++)s[d]=e[d]()}else s=e();if(i)return i=!1,a;const l=be(()=>t(s,o,a));return o=s,l}}function we(e){re(()=>be(e))}function se(e){return ie===null||(ie.cleanups===null?ie.cleanups=[e]:ie.cleanups.push(e)),e}function Hs(e,t){Pt||(Pt=Symbol("error")),ie=Ot(void 0,void 0,!0),ie.context={...ie.context,[Pt]:[t]};try{return e()}catch(r){Dt(r)}finally{ie=ie.owner}}function Jr(){return ue}function ze(){return ie}function Io(e,t){const r=ie,n=ue;ie=e,ue=null;try{return He(t,!0)}catch(o){Dt(o)}finally{ie=r,ue=n}}const[xy,yy]=O(!1);function Se(e,t){const r=Symbol("context");return{id:r,Provider:Gs(r),defaultValue:e}}function Ce(e){let t;return ie&&ie.context&&(t=ie.context[e.id])!==void 0?t:e.defaultValue}function Ro(e){const t=D(e),r=D(()=>en(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}let Bs;function Eo(){if(this.sources&&this.state)if(this.state===je)ht(this);else{const e=ye;ye=null,He(()=>ar(this),!1),ye=e}if(ue){const e=this.observers;if(!e||e[e.length-1]!==ue){const t=e?e.length:0;ue.sources?(ue.sources.push(this),ue.sourceSlots.push(t)):(ue.sources=[this],ue.sourceSlots=[t]),e?(e.push(ue),this.observerSlots.push(ue.sources.length-1)):(this.observers=[ue],this.observerSlots=[ue.sources.length-1])}}return this.value}function _o(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&He(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],a=Xr&&Xr.running;a&&Xr.disposed.has(i),(a?!i.tState:!i.state)&&(i.pure?ye.push(i):Re.push(i),i.observers&&Po(i)),a||(i.state=je)}if(ye.length>1e6)throw ye=[],new Error},!1)),t}function ht(e){if(!e.fn)return;jt(e);const t=or;Vs(e,e.value,t)}function Vs(e,t,r){let n;const o=ie,i=ue;ue=ie=e;try{n=e.fn(t)}catch(a){return e.pure&&(e.state=je,e.owned&&e.owned.forEach(jt),e.owned=null),e.updatedAt=r+1,Dt(a)}finally{ue=i,ie=o}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?_o(e,n):e.value=n,e.updatedAt=r)}function Ot(e,t,r,n=je,o){const i={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ie,context:ie?ie.context:null,pure:r};return ie===null||ie!==Mo&&(ie.owned?ie.owned.push(i):ie.owned=[i]),i}function ir(e){if(e.state===0)return;if(e.state===nr)return ar(e);if(e.suspense&&be(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<or);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===je)ht(e);else if(e.state===nr){const n=ye;ye=null,He(()=>ar(e,t[0]),!1),ye=n}}function He(e,t){if(ye)return e();let r=!1;t||(ye=[]),Re?r=!0:Re=[],or++;try{const n=e();return Us(r),n}catch(n){r||(Re=null),ye=null,Dt(n)}}function Us(e){if(ye&&(Lo(ye),ye=null),e)return;const t=Re;Re=null,t.length&&He(()=>To(t),!1)}function Lo(e){for(let t=0;t<e.length;t++)ir(e[t])}function Ws(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:ir(n)}for(t=0;t<r;t++)ir(e[t])}function ar(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const o=n.state;o===je?n!==t&&(!n.updatedAt||n.updatedAt<or)&&ir(n):o===nr&&ar(n,t)}}}function Po(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=nr,r.pure?ye.push(r):Re.push(r),r.observers&&Po(r))}}function jt(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){const i=o.pop(),a=r.observerSlots.pop();n<o.length&&(i.sourceSlots[a]=n,o[n]=i,r.observerSlots[n]=a)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)jt(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)jt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function sr(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Oo(e,t,r){try{for(const n of t)n(e)}catch(n){Dt(n,r&&r.owner||null)}}function Dt(e,t=ie){const r=Pt&&t&&t.context&&t.context[Pt],n=sr(e);if(!r)throw n;Re?Re.push({fn(){Oo(n,r,t)},state:je}):Oo(n,r,t)}function en(e){if(typeof e=="function"&&!e.length)return en(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=en(e[r]);if(Array.isArray(n))if(n.length<32768)t.push.apply(t,n);else for(let o=0;o<n.length;o++)t.push(n[o]);else t.push(n)}return t}return e}function Gs(e,t){return function(r){let n;return M(()=>n=be(()=>(ie.context={...ie.context,[e]:r.value},Ro(()=>r.children))),void 0),n}}const tn=Symbol("fallback");function lr(e){for(let t=0;t<e.length;t++)e[t]()}function Ks(e,t,r={}){let n=[],o=[],i=[],a=0,s=t.length>1?[]:null;return se(()=>lr(i)),()=>{let l=e()||[],d=l.length,u,p;return l[Lt],be(()=>{let m,f,k,S,w,b,x,$,_;if(d===0)a!==0&&(lr(i),i=[],n=[],o=[],a=0,s&&(s=[])),r.fallback&&(n=[tn],o[0]=et(z=>(i[0]=z,r.fallback())),a=1);else if(a===0){for(o=new Array(d),p=0;p<d;p++)n[p]=l[p],o[p]=et(h);a=d}else{for(k=new Array(d),S=new Array(d),s&&(w=new Array(d)),b=0,x=Math.min(a,d);b<x&&n[b]===l[b];b++);for(x=a-1,$=d-1;x>=b&&$>=b&&n[x]===l[$];x--,$--)k[$]=o[x],S[$]=i[x],s&&(w[$]=s[x]);for(m=new Map,f=new Array($+1),p=$;p>=b;p--)_=l[p],u=m.get(_),f[p]=u===void 0?-1:u,m.set(_,p);for(u=b;u<=x;u++)_=n[u],p=m.get(_),p!==void 0&&p!==-1?(k[p]=o[u],S[p]=i[u],s&&(w[p]=s[u]),p=f[p],m.set(_,p)):i[u]();for(p=b;p<d;p++)p in k?(o[p]=k[p],i[p]=S[p],s&&(s[p]=w[p],s[p](p))):o[p]=et(h);o=o.slice(0,a=d),n=l.slice(0)}return o});function h(m){if(i[p]=m,s){const[f,k]=O(p);return s[p]=k,t(l[p],f)}return t(l[p])}}}function Zs(e,t,r={}){let n=[],o=[],i=[],a=[],s=0,l;return se(()=>lr(i)),()=>{const d=e()||[],u=d.length;return d[Lt],be(()=>{if(u===0)return s!==0&&(lr(i),i=[],n=[],o=[],s=0,a=[]),r.fallback&&(n=[tn],o[0]=et(h=>(i[0]=h,r.fallback())),s=1),o;for(n[0]===tn&&(i[0](),i=[],n=[],o=[],s=0),l=0;l<u;l++)l<n.length&&n[l]!==d[l]?a[l](()=>d[l]):l>=n.length&&(o[l]=et(p));for(;l<n.length;l++)i[l]();return s=a.length=i.length=u,n=d.slice(0),o=o.slice(0,s)});function p(h){i[l]=h;const[m,f]=O(d[l]);return a[l]=f,t(m,l)}}}function c(e,t){return be(()=>e(t||{}))}function cr(){return!0}const rn={get(e,t,r){return t===Te?r:e.get(t)},has(e,t){return t===Te?!0:e.has(t)},set:cr,deleteProperty:cr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:cr,deleteProperty:cr}},ownKeys(e){return e.keys()}};function nn(e){return(e=typeof e=="function"?e():e)?e:{}}function Ys(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function R(...e){let t=!1;for(let a=0;a<e.length;a++){const s=e[a];t=t||!!s&&Te in s,e[a]=typeof s=="function"?(t=!0,D(s)):s}if(Ao&&t)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const l=nn(e[s])[a];if(l!==void 0)return l}},has(a){for(let s=e.length-1;s>=0;s--)if(a in nn(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(nn(e[s])));return[...new Set(a)]}},rn);const r={},n=Object.create(null);for(let a=e.length-1;a>=0;a--){const s=e[a];if(!s)continue;const l=Object.getOwnPropertyNames(s);for(let d=l.length-1;d>=0;d--){const u=l[d];if(u==="__proto__"||u==="constructor")continue;const p=Object.getOwnPropertyDescriptor(s,u);if(!n[u])n[u]=p.get?{enumerable:!0,configurable:!0,get:Ys.bind(r[u]=[p.get.bind(s)])}:p.value!==void 0?p:void 0;else{const h=r[u];h&&(p.get?h.push(p.get.bind(s)):p.value!==void 0&&h.push(()=>p.value))}}}const o={},i=Object.keys(n);for(let a=i.length-1;a>=0;a--){const s=i[a],l=n[s];l&&l.get?Object.defineProperty(o,s,l):o[s]=l?l.value:void 0}return o}function W(e,...t){const r=t.length;if(Ao&&Te in e){const o=r>1?t.flat():t[0],i=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},rn));return i.push(new Proxy({get(a){return o.includes(a)?void 0:e[a]},has(a){return o.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.includes(a))}},rn)),i}const n=[];for(let o=0;o<=r;o++)n[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=r;for(let s=0;s<t.length;s++)if(t[s].includes(o)){i=s;break}const a=Object.getOwnPropertyDescriptor(e,o);!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable?n[i][o]=a.value:Object.defineProperty(n[i],o,a)}return n}let Qs=0;function tt(){return`cl-${Qs++}`}const jo=e=>`Stale read from <${e}>.`;function X(e){const t="fallback"in e&&{fallback:()=>e.fallback};return D(Ks(()=>e.each,e.children,t||void 0))}function Xs(e){const t="fallback"in e&&{fallback:()=>e.fallback};return D(Zs(()=>e.each,e.children,t||void 0))}function y(e){const t=e.keyed,r=D(()=>e.when,void 0,void 0),n=t?r:D(r,void 0,{equals:(o,i)=>!o==!i});return D(()=>{const o=n();if(o){const i=e.children;return typeof i=="function"&&i.length>0?be(()=>i(t?o:()=>{if(!be(n))throw jo("Show");return r()})):i}return e.fallback},void 0,void 0)}function on(e){const t=Ro(()=>e.children),r=D(()=>{const n=t(),o=Array.isArray(n)?n:[n];let i=()=>{};for(let a=0;a<o.length;a++){const s=a,l=o[a],d=i,u=D(()=>d()?void 0:l.when,void 0,void 0),p=l.keyed?u:D(u,void 0,{equals:(h,m)=>!h==!m});i=()=>d()||(p()?[s,u,l]:void 0)}return i});return D(()=>{const n=r()();if(!n)return e.fallback;const[o,i,a]=n,s=a.children;return typeof s=="function"&&s.length>0?be(()=>s(a.keyed?i():()=>{var l;if(((l=be(r)())==null?void 0:l[0])!==o)throw jo("Match");return i()})):s},void 0,void 0)}function xe(e){return e}let dr;function ur(e){let t;const[r,n]=O(t,void 0);return dr||(dr=new Set),dr.add(n),se(()=>dr.delete(n)),D(()=>{let o;if(o=r()){const i=e.fallback;return typeof i=="function"&&i.length?be(()=>i(o,()=>n())):i}return Hs(()=>e.children,n)},void 0,void 0)}const Js=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],el=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Js]),tl=new Set(["innerHTML","textContent","innerText","children"]),rl=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),nl=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function ol(e,t){const r=nl[e];return typeof r=="object"?r[t]?r.$:void 0:r}const il=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),al=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),sl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},le=e=>D(()=>e());function ll(e,t,r){let n=r.length,o=t.length,i=n,a=0,s=0,l=t[o-1].nextSibling,d=null;for(;a<o||s<i;){if(t[a]===r[s]){a++,s++;continue}for(;t[o-1]===r[i-1];)o--,i--;if(o===a){const u=i<n?s?r[s-1].nextSibling:r[i-s]:l;for(;s<i;)e.insertBefore(r[s++],u)}else if(i===s)for(;a<o;)(!d||!d.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[i-1]&&r[s]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--i],u),t[o]=r[i]}else{if(!d){d=new Map;let p=s;for(;p<i;)d.set(r[p],p++)}const u=d.get(t[a]);if(u!=null)if(s<u&&u<i){let p=a,h=1,m;for(;++p<o&&p<i&&!((m=d.get(t[p]))==null||m!==u+h);)h++;if(h>u-s){const f=t[a];for(;s<u;)e.insertBefore(r[s++],f)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}const Do="_$DX_DELEGATE";function v(e,t,r,n){let o;const i=()=>{const s=document.createElement("template");return s.innerHTML=e,s.content.firstChild},a=()=>(o||(o=i())).cloneNode(!0);return a.cloneNode=a,a}function me(e,t=window.document){const r=t[Do]||(t[Do]=new Set);for(let n=0,o=e.length;n<o;n++){const i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,hl))}}function P(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function cl(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function No(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function F(e,t){t==null?e.removeAttribute("class"):e.className=t}function We(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const o=r[0];e.addEventListener(t,r[0]=i=>o.call(e,r[1],i))}else e.addEventListener(t,r,typeof r!="function"&&r)}function dl(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let i,a;for(i=0,a=o.length;i<a;i++){const s=o[i];!s||s==="undefined"||t[s]||(qo(e,s,!1),delete r[s])}for(i=0,a=n.length;i<a;i++){const s=n[i],l=!!t[s];!s||s==="undefined"||r[s]===l||!l||(qo(e,s,!0),r[s]=l)}return r}function Be(e,t,r){if(!t)return r?P(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let o,i;for(i in r)t[i]==null&&n.removeProperty(i),delete r[i];for(i in t)o=t[i],o!==r[i]&&(n.setProperty(i,o),r[i]=o);return r}function pe(e,t,r){r!=null?e.style.setProperty(t,r):e.style.removeProperty(t)}function Y(e,t={},r,n){const o={};return n||M(()=>o.children=Nt(e,t.children,o.children)),M(()=>typeof t.ref=="function"&&fe(t.ref,e)),M(()=>ul(e,t,r,!0,o,!0)),o}function fe(e,t,r){return be(()=>e(t,r))}function g(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return Nt(e,t,n,r);M(o=>Nt(e,t(),o,r),n)}function ul(e,t,r,n,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=Fo(e,a,null,o[a],r,i,t)}for(const a in t){if(a==="children")continue;const s=t[a];o[a]=Fo(e,a,s,o[a],r,i,t)}}function pl(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function qo(e,t,r){const n=t.trim().split(/\s+/);for(let o=0,i=n.length;o<i;o++)e.classList.toggle(n[o],r)}function Fo(e,t,r,n,o,i,a){let s,l,d,u,p;if(t==="style")return Be(e,r,n);if(t==="classList")return dl(e,r,n);if(r===n)return n;if(t==="ref")i||r(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);n&&e.removeEventListener(h,n,typeof n!="function"&&n),r&&e.addEventListener(h,r,typeof r!="function"&&r)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);n&&e.removeEventListener(h,n,!0),r&&e.addEventListener(h,r,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=il.has(h);if(!m&&n){const f=Array.isArray(n)?n[0]:n;e.removeEventListener(h,f)}(m||r)&&(We(e,h,r,m),m&&me([h]))}else if(t.slice(0,5)==="attr:")P(e,t.slice(5),r);else if(t.slice(0,5)==="bool:")No(e,t.slice(5),r);else if((p=t.slice(0,5)==="prop:")||(d=tl.has(t))||!o&&((u=ol(t,e.tagName))||(l=el.has(t)))||(s=e.nodeName.includes("-")||"is"in a))p&&(t=t.slice(5),l=!0),t==="class"||t==="className"?F(e,r):s&&!l&&!d?e[pl(t)]=r:e[u||t]=r;else{const h=o&&t.indexOf(":")>-1&&sl[t.split(":")[0]];h?cl(e,h,t,r):P(e,rl[t]||t,r)}return r}function hl(e){let t=e.target;const r=`$$${e.type}`,n=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),a=()=>{const l=t[r];if(l&&!t.disabled){const d=t[`${r}Data`];if(d!==void 0?l.call(t,d,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();i(l[0]);for(let d=0;d<l.length-2&&(t=l[d],!!a());d++){if(t._$host){t=t._$host,s();break}if(t.parentNode===o)break}}else s();i(n)}function Nt(e,t,r,n,o){for(;typeof r=="function";)r=r();if(t===r)return r;const i=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===r))return r;if(a){let s=r[0];s&&s.nodeType===3?s.data!==t&&(s.data=t):s=document.createTextNode(t),r=gt(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean")r=gt(e,r,n);else{if(i==="function")return M(()=>{let s=t();for(;typeof s=="function";)s=s();r=Nt(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],l=r&&Array.isArray(r);if(an(s,t,r,o))return M(()=>r=Nt(e,s,r,n,!0)),()=>r;if(s.length===0){if(r=gt(e,r,n),a)return r}else l?r.length===0?Ho(e,s,n):ll(e,r,s):(r&&gt(e),Ho(e,s));r=s}else if(t.nodeType){if(Array.isArray(r)){if(a)return r=gt(e,r,n,t);gt(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function an(e,t,r,n){let o=!1;for(let i=0,a=t.length;i<a;i++){let s=t[i],l=r&&r[e.length],d;if(!(s==null||s===!0||s===!1))if((d=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))o=an(e,s,l)||o;else if(d==="function")if(n){for(;typeof s=="function";)s=s();o=an(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||o}else e.push(s),o=!0;else{const u=String(s);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function Ho(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function gt(e,t,r,n){if(r===void 0)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(o!==s){const l=s.parentNode===e;!i&&!a?l?e.replaceChild(o,s):e.insertBefore(o,r):l&&s.remove()}else i=!0}}else e.insertBefore(o,r);return[o]}const gl="http://www.w3.org/2000/svg";function Bo(e,t=!1,r=void 0){return t?document.createElementNS(gl,e):document.createElement(e,{is:r})}function sn(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,o=ze();let i;return re(()=>{i||(i=Io(o,()=>D(()=>e.children)));const a=n();if(a instanceof HTMLHeadElement){const[s,l]=O(!1),d=()=>l(!0);et(u=>g(a,()=>s()?u():i(),null)),se(d)}else{const s=Bo(e.isSVG?"g":"div",e.isSVG),l=t&&s.attachShadow?s.attachShadow({mode:"open"}):s;Object.defineProperty(s,"_$host",{get(){return r.parentNode},configurable:!0}),g(l,i),a.appendChild(s),e.ref&&e.ref(s),se(()=>a.removeChild(s))}},void 0,{render:!0}),r}function ml(e,t){const r=D(e);return D(()=>{const n=r();switch(typeof n){case"function":return be(()=>n(t));case"string":const o=al.has(n),i=Bo(n,o,be(()=>t.is));return Y(i,t,o),i}})}function pr(e){const[,t]=W(e,["component"]);return ml(()=>e.component,t)}function fl(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return t[r]=Object.assign({},n),Wo(n.value)&&!yl(n.value)&&!Array.isArray(n.value)&&(t[r].value=Object.assign({},n.value)),Array.isArray(n.value)&&(t[r].value=n.value.slice(0)),t},{})}function vl(e){return e?Object.keys(e).reduce((t,r)=>{const n=e[r];return t[r]=Wo(n)&&"value"in n?n:{value:n},t[r].attribute||(t[r].attribute=xl(r)),t[r].parse="parse"in t[r]?t[r].parse:typeof t[r].value!="string",t},{}):{}}function bl(e){return Object.keys(e).reduce((t,r)=>(t[r]=e[r].value,t),{})}function wl(e,t){const r=fl(t);return Object.keys(t).forEach(n=>{const o=r[n],i=e.getAttribute(o.attribute),a=e[n];i!=null&&(o.value=o.parse?Vo(i):i),a!=null&&(o.value=Array.isArray(a)?a.slice(0):a),o.reflect&&Uo(e,o.attribute,o.value,!!o.parse),Object.defineProperty(e,n,{get(){return o.value},set(s){const l=o.value;o.value=s,o.reflect&&Uo(this,o.attribute,o.value,!!o.parse);for(let d=0,u=this.__propertyChangedCallbacks.length;d<u;d++)this.__propertyChangedCallbacks[d](n,s,l)},enumerable:!0,configurable:!0})}),r}function Vo(e){if(e)try{return JSON.parse(e)}catch{return e}}function Uo(e,t,r,n){if(r==null||r===!1)return e.removeAttribute(t);let o=n?JSON.stringify(r):r;e.__updating[t]=!0,o==="true"&&(o=""),e.setAttribute(t,o),Promise.resolve().then(()=>delete e.__updating[t])}function xl(e){return e.replace(/\.?([A-Z]+)/g,(t,r)=>"-"+r.toLowerCase()).replace("_","-").replace(/^-/,"")}function Wo(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function yl(e){return Object.prototype.toString.call(e)==="[object Function]"}function kl(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let ln;function zl(e,t){const r=Object.keys(t);return class extends e{static get observedAttributes(){return r.map(n=>t[n].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let n of r)this[n]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=wl(this,t);const n=bl(this.props),o=this.Component,i=ln;try{ln=this,this.__initialized=!0,kl(o)?new o(n,{element:this}):o(n,{element:this})}finally{ln=i}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let n=null;for(;n=this.__releaseCallbacks.pop();)n(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(n,o,i){if(this.__initialized&&!this.__updating[n]&&(n=this.lookupProp(n),n in t)){if(i==null&&!this[n])return;this[n]=t[n].parse?Vo(i):i}}lookupProp(n){if(t)return r.find(o=>n===o||n===t[o].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(n){this.__releaseCallbacks.push(n)}addPropertyChangedCallback(n){this.__propertyChangedCallbacks.push(n)}}}function Sl(e,t={},r={}){const{BaseElement:n=HTMLElement,extension:o,customElements:i=window.customElements}=r;return a=>{if(!e)throw new Error("tag is required to register a Component");let s=i.get(e);return s?(s.prototype.Component=a,s):(s=zl(n,vl(t)),s.prototype.Component=a,s.prototype.registeredTag=e,i.define(e,s,o),s)}}function Cl(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const[o,i]=O(e[t[n]]);Object.defineProperty(r,t[n],{get:o,set(a){i(()=>a)}})}return r}function $l(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t&&!t._$owner&&!(t.assignedSlot&&t.assignedSlot._$owner);)t=t.parentNode;return t&&t.assignedSlot?t.assignedSlot._$owner:e._$owner}function Al(e){return(t,r)=>{const{element:n}=r;return et(o=>{const i=Cl(t);n.addPropertyChangedCallback((s,l)=>i[s]=l),n.addReleaseCallback(()=>{n.renderRoot.textContent="",o()});const a=e(i,r);return g(n.renderRoot,a)},$l(n))}}function Tl(e,t,r){return arguments.length===2&&(r=t,t={}),Sl(e,t)(Al(r))}const Ml={proseSize:()=>"sm",codeTheme:()=>"github-dark-dimmed",portalMount:()=>{},codeHighlight:()=>!0},Go=Se(Ml);function mt(e){const t={proseSize:()=>e.proseSize??"sm",codeTheme:()=>e.codeTheme??"github-dark-dimmed",portalMount:()=>e.portalMount,codeHighlight:()=>e.codeHighlight??!0};return c(Go.Provider,{value:t,get children(){return e.children}})}function Me(){return Ce(Go)}function cn(e){switch(e){case"xs":return"text-xs";case"sm":return"text-sm";case"base":return"text-base";case"lg":return"text-lg"}}const Il=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-orange-500:oklch(70.5% .213 47.604);--color-yellow-400:oklch(85.2% .199 91.936);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-500:oklch(62.3% .214 259.815);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-600:oklch(54.1% .281 293.009);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--radius-2xl:1rem;--radius-3xl:1.5rem;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--kc-radius,.6rem);--color-background:var(--kc-color-background,#fff);--color-foreground:var(--kc-color-foreground,#09090b);--color-card:var(--kc-color-card,#fff);--color-card-foreground:var(--kc-color-card-foreground,#09090b);--color-popover:var(--kc-color-popover,#fff);--color-popover-foreground:var(--kc-color-popover-foreground,#09090b);--color-primary:var(--kc-color-primary,#18181b);--color-primary-foreground:var(--kc-color-primary-foreground,#fafafa);--color-secondary:var(--kc-color-secondary,#f4f4f5);--color-secondary-foreground:var(--kc-color-secondary-foreground,#18181b);--color-muted:var(--kc-color-muted,#f4f4f5);--color-muted-foreground:var(--kc-color-muted-foreground,#696972);--color-accent:var(--kc-color-accent,#f4f4f5);--color-accent-foreground:var(--kc-color-accent-foreground,#18181b);--color-destructive:var(--kc-color-destructive,#c52020);--color-destructive-foreground:var(--kc-color-destructive-foreground,#fafafa);--color-border:var(--kc-color-border,#e4e4e7);--color-input:var(--kc-color-input,#e4e4e7);--color-ring:var(--kc-color-ring,#1a6ef4);--color-scrollbar-thumb:var(--kc-color-scrollbar-thumb,#c9c9cf);--color-scrollbar-thumb-hover:var(--kc-color-scrollbar-thumb-hover,#a0a0a7);--color-sidebar:var(--kc-color-sidebar,#fff);--color-code-foreground:var(--kc-color-code-foreground,#1d4ed8);--color-tool-blue:var(--kc-color-tool-blue,#094cb9);--color-tool-amber:var(--kc-color-tool-amber,#895906);--color-tool-green:var(--kc-color-tool-green,#137136);--color-tool-red:var(--kc-color-tool-red,#b81e1e);--text-caption:var(--kc-text-caption,.6875rem);--text-caption--line-height:1rem;--text-meta:var(--kc-text-meta,.75rem);--text-meta--line-height:1.1rem;--text-body:var(--kc-text-body,.875rem);--text-body--line-height:1.45rem;--text-title:var(--kc-text-title,1rem);--text-title--line-height:1.5rem}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:host{font-family:var(--kc-font-base,ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--kc-tracking,normal);display:block}code,kbd,samp,pre{font-family:var(--kc-font-code,ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace)}*{border-color:var(--color-border)}:host{color-scheme:light}.dark{color-scheme:dark}:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}*{scrollbar-width:thin;scrollbar-color:var(--color-scrollbar-thumb) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background-color:var(--color-scrollbar-thumb);background-clip:padding-box;border:2px solid #0000;border-radius:9999px}::-webkit-scrollbar-thumb:hover{background-color:var(--color-scrollbar-thumb-hover)}::-webkit-scrollbar-corner{background:0 0}}@layer components{.kc-radio,.kc-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:1.5px solid var(--color-input);background-color:var(--color-background);flex-shrink:0;place-content:center;block-size:1.125rem;inline-size:1.125rem;margin:0;transition:border-color .18s,background-color .18s,box-shadow .18s,transform .1s;display:inline-grid;box-shadow:0 1px 2px #0000000a}.kc-radio{border-radius:9999px}.kc-checkbox{border-radius:.3rem}.kc-radio:after{content:"";background-color:var(--color-primary);border-radius:9999px;block-size:.5rem;inline-size:.5rem;transition:transform .2s cubic-bezier(.34,1.56,.64,1);transform:scale(0)}.kc-radio:checked{border-color:var(--color-primary)}.kc-radio:checked:after{transform:scale(1)}.kc-checkbox:checked{background-color:var(--color-primary);border-color:var(--color-primary)}.kc-checkbox:after{content:"";background-color:var(--color-primary-foreground);block-size:.8rem;inline-size:.8rem;transition:transform .2s cubic-bezier(.34,1.56,.64,1);transform:scale(0);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") 50%/contain no-repeat}.kc-checkbox:checked:after{transform:scale(1)}.kc-radio:hover:not(:disabled),.kc-checkbox:hover:not(:disabled){border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-radio:hover:not(:disabled),.kc-checkbox:hover:not(:disabled){box-shadow:0 0 0 4px color-mix(in srgb,var(--color-primary) 9%,transparent)}}.kc-radio:active:not(:disabled),.kc-checkbox:active:not(:disabled){transform:scale(.92)}.kc-checkbox:checked{box-shadow:0 1px 4px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-checkbox:checked{box-shadow:0 1px 4px color-mix(in srgb,var(--color-primary) 26%,transparent)}}.kc-radio:disabled,.kc-checkbox:disabled{opacity:.5;cursor:not-allowed}.kc-range{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:0 0;block-size:1.25rem;inline-size:100%;margin:0}.kc-range::-webkit-slider-runnable-track{block-size:.375rem;box-shadow:none;background:linear-gradient(to right,var(--color-primary) var(--kc-range-fill,0%),var(--color-muted) var(--kc-range-fill,0%));border:none;border-radius:9999px}.kc-range::-moz-range-track{block-size:.375rem;box-shadow:none;background:var(--color-muted);border:none;border-radius:9999px}.kc-range::-moz-range-progress{background:var(--color-primary);border-radius:9999px;block-size:.375rem}.kc-range::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-background);border:2px solid var(--color-primary);border-radius:9999px;block-size:1.125rem;inline-size:1.125rem;margin-block-start:-.375rem;transition:transform .12s,box-shadow .12s;box-shadow:0 1px 3px #0000002e}.kc-range::-moz-range-thumb{background:var(--color-background);border:2px solid var(--color-primary);border-radius:9999px;block-size:1.125rem;inline-size:1.125rem;transition:transform .12s,box-shadow .12s;box-shadow:0 1px 3px #0000002e}.kc-range:hover::-webkit-slider-thumb{transform:scale(1.12)}.kc-range:hover::-moz-range-thumb{transform:scale(1.12)}.kc-range:focus-visible{outline:none}.kc-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 6px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary) 14%,transparent)}}.kc-range:active::-webkit-slider-thumb{box-shadow:0 0 0 6px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-range:active::-webkit-slider-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary) 14%,transparent)}}.kc-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 6px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary) 14%,transparent)}}.kc-range:active::-moz-range-thumb{box-shadow:0 0 0 6px var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.kc-range:active::-moz-range-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary) 14%,transparent)}}.kc-range:disabled{opacity:.5;cursor:not-allowed}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.top-2{top:calc(var(--spacing) * 2)}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-5{right:calc(var(--spacing) * 5)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.z-\\[200\\]{z-index:200}.z-\\[201\\]{z-index:201}.z-\\[300\\]{z-index:300}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.m-1{margin:calc(var(--spacing) * 1)}.m-2{margin:calc(var(--spacing) * 2)}.-mx-1\\.5{margin-inline:calc(var(--spacing) * -1.5)}.mx-2\\.5{margin-inline:calc(var(--spacing) * 2.5)}.mx-3{margin-inline:calc(var(--spacing) * 3)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-5{margin-block:calc(var(--spacing) * 5)}.my-10{margin-block:calc(var(--spacing) * 10)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"\u201C""\u201D""\u2018""\u2019";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-