studiograph 1.3.42 → 1.3.44-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/core/graph.d.ts +5 -0
  2. package/dist/core/graph.js +93 -2
  3. package/dist/core/graph.js.map +1 -1
  4. package/dist/core/validation.d.ts +189 -119
  5. package/dist/core/validation.js +16 -26
  6. package/dist/core/validation.js.map +1 -1
  7. package/dist/server/routes/graph-api.js +41 -0
  8. package/dist/server/routes/graph-api.js.map +1 -1
  9. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +1 -0
  10. package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +1 -0
  11. package/dist/web/_app/immutable/chunks/{BnPh5q8z.js → 3ONneP0Z.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/8aEH9o48.js +1 -0
  13. package/dist/web/_app/immutable/chunks/B3cbqYdb.js +1 -0
  14. package/dist/web/_app/immutable/chunks/BBDMeJL4.js +1 -0
  15. package/dist/web/_app/immutable/chunks/{l5w7mUkV.js → BMrbs3EC.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/{DD0eH0_A.js → BQZlAX3A.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/BmP3yl81.js +1 -0
  18. package/dist/web/_app/immutable/chunks/{1vztr6_A.js → Bt7P6UBm.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/C8IfoK2g.js +1 -0
  20. package/dist/web/_app/immutable/chunks/{DlkslpnI.js → C8t_lVji.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/CClliU_-.js +4 -0
  22. package/dist/web/_app/immutable/chunks/{KCOVknl_.js → CDs3H3KT.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{FmR2V1-h.js → CRbsz2jz.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{CYMV9O2_.js → CWmHQEyb.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{D9BdHkd3.js → CpAdcarq.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/CpXgbTWt.js +1 -0
  27. package/dist/web/_app/immutable/chunks/{Brxs8A3C.js → DYpjUIN_.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/{Dr5ZUnae.js → Ddpk8P2X.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{DSZYl5ah.js → Dtbtl5su.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/DvqvTNdq.js +1 -0
  31. package/dist/web/_app/immutable/chunks/{BUMhcVI4.js → Dx6YFABE.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{DmLcKvmV.js → Iwcm6r7d.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{rcG0Y_x7.js → QOJagAiA.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/Zf7H0ZZc.js +5 -0
  35. package/dist/web/_app/immutable/chunks/{HzJbEnio.js → qvfhHbjx.js} +1 -1
  36. package/dist/web/_app/immutable/chunks/{DfwW1gF2.js → yEDUbZbk.js} +2 -2
  37. package/dist/web/_app/immutable/entry/app.oDy7ig5b.js +2 -0
  38. package/dist/web/_app/immutable/entry/start.Cz7A2G8_.js +1 -0
  39. package/dist/web/_app/immutable/nodes/0.BuWS-_Tw.js +2 -0
  40. package/dist/web/_app/immutable/nodes/{1.CUZf-oFi.js → 1.ClV7Vf9J.js} +1 -1
  41. package/dist/web/_app/immutable/nodes/2.Dg3m027a.js +84 -0
  42. package/dist/web/_app/immutable/nodes/{3.CywCCe9F.js → 3.9iNkY9mM.js} +1 -1
  43. package/dist/web/_app/immutable/nodes/4.UG11YFmx.js +11 -0
  44. package/dist/web/_app/immutable/nodes/{5.BG_fz1Pc.js → 5.BZZysw6z.js} +2 -2
  45. package/dist/web/_app/immutable/nodes/6.LCPXZT0S.js +2 -0
  46. package/dist/web/_app/immutable/nodes/7.kgjplPpk.js +2 -0
  47. package/dist/web/_app/immutable/nodes/{8.B2uOoOa7.js → 8.CZ7vB_Pl.js} +1 -1
  48. package/dist/web/_app/immutable/nodes/{9.jU4WCAQj.js → 9.DlSjDUl0.js} +1 -1
  49. package/dist/web/_app/version.json +1 -1
  50. package/dist/web/index.html +12 -12
  51. package/package.json +1 -1
  52. package/dist/web/_app/immutable/assets/2.DtDUN2Ae.css +0 -1
  53. package/dist/web/_app/immutable/assets/4.C3fKtWtl.css +0 -1
  54. package/dist/web/_app/immutable/chunks/B2LOVFFz.js +0 -1
  55. package/dist/web/_app/immutable/chunks/BKAD6OjK.js +0 -1
  56. package/dist/web/_app/immutable/chunks/CA7sXyoK.js +0 -1
  57. package/dist/web/_app/immutable/chunks/CgcfyvoD.js +0 -1
  58. package/dist/web/_app/immutable/chunks/D91YXE6T.js +0 -1
  59. package/dist/web/_app/immutable/chunks/DVyuW48M.js +0 -1
  60. package/dist/web/_app/immutable/chunks/Dty7t9WP.js +0 -4
  61. package/dist/web/_app/immutable/chunks/SAMwKg4j.js +0 -5
  62. package/dist/web/_app/immutable/chunks/Y2eppfkg.js +0 -1
  63. package/dist/web/_app/immutable/chunks/qeyyXhHO.js +0 -1
  64. package/dist/web/_app/immutable/chunks/yMbbhP0p.js +0 -1
  65. package/dist/web/_app/immutable/entry/app.CUfCyEld.js +0 -2
  66. package/dist/web/_app/immutable/entry/start.aufF8xaf.js +0 -1
  67. package/dist/web/_app/immutable/nodes/0.C-CmG3eF.js +0 -2
  68. package/dist/web/_app/immutable/nodes/2.BuPKoNE3.js +0 -84
  69. package/dist/web/_app/immutable/nodes/4.BXLn5nFI.js +0 -11
  70. package/dist/web/_app/immutable/nodes/6.s5GRZINE.js +0 -2
  71. package/dist/web/_app/immutable/nodes/7.C24TRVUy.js +0 -2
  72. /package/dist/web/_app/immutable/assets/{dialog-close.FS8bdfxr.css → Copy.FS8bdfxr.css} +0 -0
@@ -0,0 +1 @@
1
+ var Kt=Array.isArray,Xt=Array.prototype.indexOf,oe=Array.prototype.includes,zn=Array.from,Gn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Zt=Object.getOwnPropertyDescriptors,Wt=Object.prototype,Jt=Array.prototype,_t=Object.getPrototypeOf,rt=Object.isExtensible;function $n(e){return typeof e=="function"}const ye=()=>{};function Kn(e){return e()}function Qt(e){for(var t=0;t<e.length;t++)e[t]()}function vt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Xn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const g=2,ie=4,ue=8,Be=1<<24,K=16,L=32,X=64,en=128,k=512,y=1024,T=2048,P=4096,F=8192,V=16384,de=32768,Se=65536,st=1<<17,tn=1<<18,he=1<<19,dt=1<<20,Zn=1<<25,re=65536,Le=1<<21,Ue=1<<22,B=1<<23,te=Symbol("$state"),Wn=Symbol("legacy props"),Jn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},er=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),tr=1,Ce=3,ht=8;function ze(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function an(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function sr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ln(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function on(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ir=1,ar=2,lr=4,or=8,ur=16,cr=1,_r=2,vr=4,dr=8,hr=16,pr=1,br=2,cn="[",_n="[!",wr="[?",vn="]",Ge={},E=Symbol(),dn="http://www.w3.org/1999/xhtml",yr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",gr="@attach";function $e(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Tr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let z=!1;function Ar(e){z=e}let S;function ce(e){if(e===null)throw $e(),Ge;return S=e}function xr(){return ce(Z(S))}function Sr(e){if(z){if(Z(S)!==null)throw $e(),Ge;S=e}}function Rr(e=1){if(z){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Nr(e=!0){for(var t=0,n=S;;){if(n.nodeType===ht){var r=n.data;if(r===vn){if(t===0)return n;t-=1}else(r===cn||r===_n||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Or(e){if(!e||e.nodeType!==ht)throw $e(),Ge;return e.data}function pt(e){return e===this.v}function bt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wt(e){return!bt(e,this.v)}let me=!1;function kr(){me=!0}let h=null;function Re(e){h=e}function Cr(e){return De().get(e)}function Dr(e,t){return De().set(e,t),t}function Ir(e){return De().has(e)}function Mr(){return De()}function Pr(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:me&&!t?{s:null,u:null,$:[]}:null}}function Fr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Pt(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function Te(){return!me||h!==null&&h.l===null}function De(e){return h===null&&ze(),h.c??=new Map(hn(h)||void 0)}function hn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function yt(){var e=J;J=[],Qt(e)}function je(e){if(J.length===0&&!Ee){var t=J;queueMicrotask(()=>{t===J&&yt()})}J.push(e)}function pn(){for(;J.length>0;)yt()}function bn(e){var t=d;if(t===null)return v.f|=B,e;if((t.f&de)===0&&(t.f&ie)===0)throw e;Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&en)!==0){if((t.f&de)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function w(e,t){e.f=e.f&wn|t}function Ke(e){(e.f&k)!==0||e.deps===null?w(e,y):w(e,P)}function Et(e){if(e!==null)for(const t of e)(t.f&g)===0||(t.f&re)===0||(t.f^=re,Et(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),Et(e.deps),w(e,y)}const Ae=new Set;let b=null,ft=null,I=null,A=[],Ie=null,Ee=!1,_e=null;class ae{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#f=0;#i=null;#a=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#f>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)w(r,T),Y(r);for(r of n.m)w(r,P),Y(r)}}process(t){A=[],this.apply();var n=_e=[],r=[];for(const s of t)this.#u(s,n,r);if(_e=null,this.#o()){this.#c(r),this.#c(n);for(const[s,f]of this.#e)At(s,f)}else{ft=this,b=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),it(r),it(n),this.#a.clear(),this.#n.clear(),ft=null,this.#i?.resolve()}I=null}#u(t,n,r){t.f^=y;for(var s=t.first;s!==null;){var f=s.f,o=(f&(L|X))!==0,l=o&&(f&y)!==0,i=l||(f&F)!==0||this.#e.has(s);if(!i&&s.fn!==null){o?s.f^=y:(f&ie)!==0?n.push(s):pe(s)&&((f&K)!==0&&this.#n.add(s),fe(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#a,this.#n)}capture(t,n){n!==E&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&B)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,I=null)}flush(){if(A.length>0)b=this,gt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#i?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(Ae.size>1){this.previous.clear();var t=b,n=I,r=!0;for(const f of Ae){if(f===this){r=!1;continue}const o=[];for(const[i,a]of this.current){if(f.current.has(i))if(r&&a!==f.current.get(i))f.current.set(i,a);else continue;o.push(i)}if(o.length===0)continue;const l=[...f.current.keys()].filter(i=>!this.current.has(i));if(l.length>0){var s=A;A=[];const i=new Set,a=new Map;for(const u of o)mt(u,l,i,a);if(A.length>0){b=f,f.apply();for(const u of A)f.#u(u,[],[]);f.deactivate()}A=s}}b=t,I=n}this.#e.clear(),Ae.delete(this)}increment(t){this.#r+=1,t&&(this.#f+=1)}decrement(t){this.#r-=1,t&&(this.#f-=1),!this.#l&&(this.#l=!0,je(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#a)this.#n.delete(t),w(t,T),Y(t);for(const t of this.#n)w(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#i??=vt()).promise}static ensure(){if(b===null){const t=b=new ae;Ae.add(b),Ee||je(()=>{b===t&&t.flush()})}return b}apply(){}}function En(e){var t=Ee;Ee=!0;try{for(var n;;){if(pn(),A.length===0&&(b?.flush(),A.length===0))return Ie=null,n;gt()}}finally{Ee=t}}function gt(){var e=null;try{for(var t=0;A.length>0;){var n=ae.ensure();if(t++>1e3){var r,s;gn()}n.process(A),U.clear()}}finally{A=[],Ie=null,_e=null}}function gn(){try{an()}catch(e){Ne(e,Ie)}}let j=null;function it(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&pe(r)&&(j=new Set,fe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&jt(r),j?.size>0)){U.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const i=f[l];(i.f&(V|F))===0&&fe(i)}}j.clear()}}j=null}}function mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?mt(s,t,n,r):(f&(Ue|K))!==0&&(f&T)===0&&Tt(s,t,r)&&(w(s,T),Y(s))}}function Tt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(oe.call(t,s))return!0;if((s.f&g)!==0&&Tt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=Ie=e,n=t.b;if(n?.is_pending&&(e.f&(ie|ue|Be))!==0&&(e.f&de)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(_e!==null&&t===d&&(e.f&ue)===0)return;if((r&(X|L))!==0){if((r&y)===0)return;t.f^=y}}A.push(t)}function At(e,t){if(!((e.f&L)!==0&&(e.f&y)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),w(e,y);for(var n=e.first;n!==null;)At(n,t),n=n.next}}function xt(e,t,n,r){const s=Te()?Xe:An;var f=e.filter(c=>!c.settled);if(n.length===0&&f.length===0){r(t.map(s));return}var o=d,l=mn(),i=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(_){(o.f&V)===0&&Ne(_,o)}Ye()}if(n.length===0){i.then(()=>a(t.map(s)));return}function u(){l(),Promise.all(n.map(c=>Tn(c))).then(c=>a([...t.map(s),...c])).catch(c=>Ne(c,o))}i?i.then(u):u()}function mn(){var e=d,t=v,n=h,r=b;return function(f=!0){ve(e),$(t),Re(n),f&&r?.activate()}}function Ye(e=!0){ve(null),$(null),Re(null),e&&b?.deactivate()}function St(){var e=d.b,t=b,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Xe(e){var t=g|T,n=v!==null&&(v.f&g)!==0?v:null;return d!==null&&(d.f|=he),{ctx:h,deps:null,effects:null,equals:pt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??d,ac:null}}function Tn(e,t,n){d===null&&nn();var s=void 0,f=We(E),o=!v,l=new Map;return Fn(()=>{var i=vt();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Ye)}catch(_){i.reject(_),Ye()}var a=b;if(o){var u=St();l.get(a)?.reject(W),l.delete(a),l.set(a,i)}const c=(_,m=void 0)=>{if(a.activate(),m)m!==W&&(f.f|=B,He(f,m));else{(f.f&B)!==0&&(f.f^=B),He(f,_);for(const[p,D]of l){if(l.delete(p),p===a)break;D.reject(W)}}u&&u()};i.promise.then(c,_=>c(null,_||"unknown"))}),Mn(()=>{for(const i of l.values())i.reject(W)}),new Promise(i=>{function a(u){function c(){u===s?i(f):a(s)}u.then(c,c)}a(s)})}function Lr(e){const t=Xe(e);return Ht(t),t}function An(e){const t=Xe(e);return t.equals=wt,t}function xn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)G(t[n])}}function Sn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ze(e){var t,n=d;ve(Sn(e));try{e.f&=~re,xn(e),t=zt(e)}finally{ve(n)}return t}function Rt(e){var t=Ze(e);if(!e.equals(t)&&(e.wv=Bt(),(!b?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){w(e,y);return}se||(I!==null?(Mt()||b?.is_fork)&&I.set(e,t):Ke(e))}function Rn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=ye,t.ac=null,ge(t,0),et(t))}function Nt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&fe(t)}let qe=new Set;const U=new Map;let Ot=!1;function We(e,t){var n={f:0,v:e,reactions:null,equals:pt,rv:0,wv:0};return n}function q(e,t){const n=We(e);return Ht(n),n}function jr(e,t=!1,n=!0){const r=We(e);return t||(r.equals=wt),me&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function H(e,t,n=!1){v!==null&&(!M||(v.f&st)!==0)&&Te()&&(v.f&(g|K|Ue|st))!==0&&(C===null||!oe.call(C,e))&&un();let r=n?be(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;se?U.set(e,t):U.set(e,n),e.v=t;var r=ae.ensure();if(r.capture(e,n),(e.f&g)!==0){const s=e;(e.f&T)!==0&&Ze(s),Ke(s)}e.wv=Bt(),kt(e,T),Te()&&d!==null&&(d.f&y)!==0&&(d.f&(L|X))===0&&(O===null?qn([e]):O.push(e)),!r.is_fork&&qe.size>0&&!Ot&&Nn()}return t}function Nn(){Ot=!1;for(const e of qe)(e.f&y)!==0&&w(e,P),pe(e)&&fe(e);qe.clear()}function Yr(e,t=1){var n=ee(e),r=t===1?n++:n--;return H(e,n),r}function Fe(e){H(e,e.v+1)}function kt(e,t){var n=e.reactions;if(n!==null)for(var r=Te(),s=n.length,f=0;f<s;f++){var o=n[f],l=o.f;if(!(!r&&o===d)){var i=(l&T)===0;if(i&&w(o,t),(l&g)!==0){var a=o;I?.delete(a),(l&re)===0&&(l&k&&(o.f|=re),kt(a,P))}else i&&((l&K)!==0&&j!==null&&j.add(o),Y(o))}}}function be(e){if(typeof e!="object"||e===null||te in e)return e;const t=_t(e);if(t!==Wt&&t!==Jt)return e;var n=new Map,r=Kt(e),s=q(0),f=ne,o=l=>{if(ne===f)return l();var i=v,a=ne;$(null),ct(f);var u=l();return $(i),ct(a),u};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(l,i,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ln();var u=n.get(i);return u===void 0?o(()=>{var c=q(a.value);return n.set(i,c),c}):H(u,a.value,!0),!0},deleteProperty(l,i){var a=n.get(i);if(a===void 0){if(i in l){const u=o(()=>q(E));n.set(i,u),Fe(s)}}else H(a,E),Fe(s);return!0},get(l,i,a){if(i===te)return e;var u=n.get(i),c=i in l;if(u===void 0&&(!c||we(l,i)?.writable)&&(u=o(()=>{var m=be(c?l[i]:E),p=q(m);return p}),n.set(i,u)),u!==void 0){var _=ee(u);return _===E?void 0:_}return Reflect.get(l,i,a)},getOwnPropertyDescriptor(l,i){var a=Reflect.getOwnPropertyDescriptor(l,i);if(a&&"value"in a){var u=n.get(i);u&&(a.value=ee(u))}else if(a===void 0){var c=n.get(i),_=c?.v;if(c!==void 0&&_!==E)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return a},has(l,i){if(i===te)return!0;var a=n.get(i),u=a!==void 0&&a.v!==E||Reflect.has(l,i);if(a!==void 0||d!==null&&(!u||we(l,i)?.writable)){a===void 0&&(a=o(()=>{var _=u?be(l[i]):E,m=q(_);return m}),n.set(i,a));var c=ee(a);if(c===E)return!1}return u},set(l,i,a,u){var c=n.get(i),_=i in l;if(r&&i==="length")for(var m=a;m<c.v;m+=1){var p=n.get(m+"");p!==void 0?H(p,E):m in l&&(p=o(()=>q(E)),n.set(m+"",p))}if(c===void 0)(!_||we(l,i)?.writable)&&(c=o(()=>q(void 0)),H(c,be(a)),n.set(i,c));else{_=c.v!==E;var D=o(()=>be(a));H(c,D)}var tt=Reflect.getOwnPropertyDescriptor(l,i);if(tt?.set&&tt.set.call(u,a),!_){if(r&&typeof i=="string"){var nt=n.get("length"),Pe=Number(i);Number.isInteger(Pe)&&Pe>=nt.v&&H(nt,Pe+1)}Fe(s)}return!0},ownKeys(l){ee(s);var i=Reflect.ownKeys(l).filter(c=>{var _=n.get(c);return _===void 0||_.v!==E});for(var[a,u]of n)u.v!==E&&!(a in l)&&i.push(a);return i},setPrototypeOf(){on()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function qr(e,t){return Object.is(at(e),at(t))}var lt,On,kn,Ct,Dt;function Hr(){if(lt===void 0){lt=window,On=document,kn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ct=we(t,"firstChild").get,Dt=we(t,"nextSibling").get,rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),rt(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ke(e){return Ct.call(e)}function Z(e){return Dt.call(e)}function Vr(e,t){if(!z)return ke(e);var n=ke(S);if(n===null)n=S.appendChild(Oe());else if(t&&n.nodeType!==Ce){var r=Oe();return n?.before(r),ce(r),r}return t&&Je(n),ce(n),n}function Br(e,t=!1){if(!z){var n=ke(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Ce){var r=Oe();return S?.before(r),ce(r),r}Je(S)}return S}function Ur(e,t=1,n=!1){let r=z?S:e;for(var s;t--;)s=r,r=Z(r);if(!z)return r;if(n){if(r?.nodeType!==Ce){var f=Oe();return r===null?s?.after(f):r.before(f),ce(f),f}Je(r)}return ce(r),r}function Cn(e){e.textContent=""}function zr(){return!1}function Gr(e,t,n){return document.createElementNS(t??dn,e,void 0)}function Je(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ce;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $r(e,t){if(t){const n=document.body;e.autofocus=!0,je(()=>{document.activeElement===n&&e.focus()})}}function Kr(e){z&&ke(e)!==null&&Cn(e)}let ot=!1;function Dn(){ot||(ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qe(e){var t=v,n=d;$(null),ve(null);try{return e()}finally{$(t),ve(n)}}function Xr(e,t,n,r=n){e.addEventListener(t,()=>Qe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function It(e){d===null&&(v===null&&fn(),sn()),se&&rn()}function In(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ie)!==0)_e!==null?_e.push(r):Y(r);else if(t!==null){try{fe(r)}catch(o){throw G(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&he)===0&&(s=s.first,(e&K)!==0&&(e&Se)!==0&&s!==null&&(s.f|=Se))}if(s!==null&&(s.parent=n,n!==null&&In(s,n),v!==null&&(v.f&g)!==0&&(e&X)===0)){var f=v;(f.effects??=[]).push(s)}return r}function Mt(){return v!==null&&!M}function Mn(e){const t=N(ue,null);return w(t,y),t.teardown=e,t}function Pn(e){It();var t=d.f,n=!v&&(t&L)!==0&&(t&de)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Pt(e)}function Pt(e){return N(ie|dt,e)}function Zr(e){return It(),N(ue|dt,e)}function Wr(e){ae.ensure();const t=N(X|he,e);return()=>{G(t)}}function Jr(e){ae.ensure();const t=N(X|he,e);return(n={})=>new Promise(r=>{n.outro?Yn(t,()=>{G(t),r(void 0)}):(G(t),r(void 0))})}function Qr(e){return N(ie,e)}function es(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Ft(()=>{e(),!r.ran&&(r.ran=!0,Me(t))})}function ts(){var e=h;Ft(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&y)!==0&&n.deps!==null&&w(n,P),pe(n)&&fe(n),t.ran=!1}})}function Fn(e){return N(Ue|he,e)}function Ft(e,t=0){return N(ue|t,e)}function ns(e,t=[],n=[],r=[]){xt(r,t,n,s=>{N(ue,()=>e(...s.map(ee)))})}function rs(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=St();xt(r,t,n,f=>{N(ie,()=>e(...f.map(ee))),s&&s()})}function ss(e,t=0){var n=N(K|t,e);return n}function fs(e,t=0){var n=N(Be|t,e);return n}function is(e){return N(L|he,e)}function Lt(e){var t=e.teardown;if(t!==null){const n=se,r=v;ut(!0),$(null);try{t.call(null)}finally{ut(n),$(r)}}}function et(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Qe(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:G(n,t),n=r}}function Ln(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&G(t),t=n}}function G(e,t=!0){var n=!1;(t||(e.f&tn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(jn(e.nodes.start,e.nodes.end),n=!0),et(e,t&&!n),ge(e,0),w(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Lt(e);var s=e.parent;s!==null&&s.first!==null&&jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function jn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function jt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Yn(e,t,n=!0){var r=[];Yt(e,r,!0);var s=()=>{n&&G(e),t&&t()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function Yt(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&Se)!==0||(s.f&L)!==0&&(e.f&K)!==0;Yt(s,t,o?n:!1),s=f}}}function as(e){qt(e,!0)}function qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&y)===0&&(w(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Se)!==0||(n.f&L)!==0;qt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||t)&&o.in()}}function ls(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let xe=!1,se=!1;function ut(e){se=e}let v=null,M=!1;function $(e){v=e}let d=null;function ve(e){d=e}let C=null;function Ht(e){v!==null&&(C===null?C=[e]:C.push(e))}let x=null,R=0,O=null;function qn(e){O=e}let Vt=1,Q=0,ne=Q;function ct(e){ne=e}function Bt(){return++Vt}function pe(e){var t=e.f;if((t&T)!==0)return!0;if(t&g&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(pe(f)&&Rt(f),f.wv>e.wv)return!0}(t&k)!==0&&I===null&&w(e,y)}return!1}function Ut(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&oe.call(C,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Ut(f,t,!1):t===f&&(n?w(f,T):(f.f&y)!==0&&w(f,P),Y(f))}}function zt(e){var t=x,n=R,r=O,s=v,f=C,o=h,l=M,i=ne,a=e.f;x=null,R=0,O=null,v=(a&(L|X))===0?e:null,C=null,Re(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Qe(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Le;var u=e.fn,c=u();e.f|=de;var _=e.deps,m=b?.is_fork;if(x!==null){var p;if(m||ge(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Mt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!m&&_!==null&&R<_.length&&(ge(e,R),_.length=R);if(Te()&&O!==null&&!M&&_!==null&&(e.f&(g|P|T))===0)for(p=0;p<O.length;p++)Ut(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let D=0;D<n;D+=1)s.deps[D].rv=Q;if(t!==null)for(const D of t)D.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&B)!==0&&(e.f^=B),c}catch(D){return bn(D)}finally{e.f^=Le,x=t,R=n,O=r,v=s,C=f,Re(o),M=l,ne=i}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=Xt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&g)!==0&&(x===null||!oe.call(x,t))){var f=t;(f.f&k)!==0&&(f.f^=k,f.f&=~re),Ke(f),Rn(f),ge(f,0)}}function ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function fe(e){var t=e.f;if((t&V)===0){w(e,y);var n=d,r=xe;d=e,xe=!0;try{(t&(K|Be))!==0?Ln(e):et(e),Lt(e);var s=zt(e);e.teardown=typeof s=="function"?s:null,e.wv=Vt;var f}finally{xe=r,d=n}}}async function os(){await Promise.resolve(),En()}function us(){return ae.ensure().settled()}function ee(e){var t=e.f,n=(t&g)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(C===null||!oe.call(C,e))){var s=v.deps;if((v.f&Le)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[v]:oe.call(f,v)||f.push(v)}}}if(se&&U.has(e))return U.get(e);if(n){var o=e;if(se){var l=o.v;return((o.f&y)===0&&o.reactions!==null||$t(o))&&(l=Ze(o)),U.set(o,l),l}var i=(o.f&k)===0&&!M&&v!==null&&(xe||(v.f&k)!==0),a=(o.f&de)===0;pe(o)&&(i&&(o.f|=k),Rt(o)),i&&!a&&(Nt(o),Gt(o))}if(I?.has(e))return I.get(e);if((e.f&B)!==0)throw e.v;return e.v}function Gt(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&k)===0&&(Nt(t),Gt(t))}function $t(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(U.has(t)||(t.f&g)!==0&&$t(t))return!0;return!1}function Me(e){var t=M;try{return M=!0,e()}finally{M=t}}function cs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ve(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ve(n)}}}function Ve(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ve(e[r],t)}catch{}const n=_t(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Zt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function Vn(e,t,n){if(e==null)return t(void 0),ye;const r=Me(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const le=[];function _s(e,t=ye){let n=null;const r=new Set;function s(l){if(bt(e,l)&&(e=l,n)){const i=!le.length;for(const a of r)a[1](),le.push(a,e);if(i){for(let a=0;a<le.length;a+=2)le[a][0](le[a+1]);le.length=0}}}function f(l){s(l(e))}function o(l,i=ye){const a=[l,i];return r.add(a),r.size===1&&(n=t(s,f)||ye),l(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:o}}function vs(e){let t;return Vn(e,n=>t=n)(),t}function Bn(e){h===null&&ze(),me&&h.l!==null?Un(h).m.push(e):Pn(()=>{const t=Me(e);if(typeof t=="function")return t})}function ds(e){h===null&&ze(),Bn(()=>()=>Me(e))}function Un(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Xr as $,Zn as A,is as B,ht as C,nr as D,Se as E,zr as F,An as G,cn as H,Kt as I,zn as J,ir as K,ur as L,We as M,ar as N,as as O,Yn as P,F as Q,L as R,Cn as S,G as T,je as U,Z as V,lr as W,or as X,q as Y,tn as Z,he as _,ts as a,T as a$,os as a0,Me as a1,Ft as a2,ft as a3,Br as a4,Ur as a5,h as a6,Zr as a7,Pn as a8,Kn as a9,Yr as aA,ve as aB,Cr as aC,ls as aD,Qr as aE,En as aF,Bn as aG,ds as aH,fs as aI,mr as aJ,qr as aK,xt as aL,dn as aM,_t as aN,gr as aO,Zt as aP,er as aQ,$r as aR,E as aS,Dn as aT,Jn as aU,Mt as aV,Fe as aW,en as aX,wr as aY,ae as aZ,w as a_,Qt as aa,Xe as ab,kr as ac,rs as ad,Lr as ae,On as af,be as ag,ye as ah,Vn as ai,vs as aj,Mn as ak,Gn as al,we as am,sr as an,vr as ao,se as ap,d as aq,V as ar,dr as as,me as at,_r as au,cr as av,$n as aw,te as ax,Wn as ay,hr as az,Fr as b,Y as b0,P as b1,yn as b2,$ as b3,Re as b4,bn as b5,v as b6,Ne as b7,fr as b8,Tr as b9,Mr as bA,Wr as bB,us as bC,Qe as ba,Gr as bb,kn as bc,pr as bd,br as be,Ce as bf,Je as bg,de as bh,Hr as bi,Ge as bj,rr as bk,Jr as bl,$e as bm,_s as bn,Ir as bo,Dr as bp,lt as bq,Xn as br,Wt as bs,tr as bt,yr as bu,Kr as bv,jn as bw,Er as bx,Te as by,ne as bz,Vr as c,cs as d,ss as e,xr as f,ee as g,z as h,Or as i,Nr as j,ce as k,es as l,jr as m,Rr as n,Ar as o,Pr as p,S as q,Sr as r,H as s,ns as t,Oe as u,ke as v,_n as w,vn as x,He as y,b as z};
@@ -1 +1 @@
1
- import{e as J,E as Q,aE as K,T as P,B as V,az as $,h as T,I as X,aF as Z,aG as W,aH as m,aI as x,aJ as ee,aK as se,g as re,aL as ae,aM as te,aN as I,o as B,aO as ie,aP as fe,U as ue,aQ as oe,aR as le}from"./yMbbhP0p.js";import{B as ce}from"./DSZYl5ah.js";import{i as ne,c as ve,d as _e,j as de,n as be,k as he}from"./DfwW1gF2.js";import{t as pe,c as Ae,s as Te}from"./1vztr6_A.js";function Ue(e,r,...s){var a=new ce(e);J(()=>{const t=r()??null;a.ensure(t,t&&(c=>t(c,...s)))},Q)}function ge(e,r){var s=void 0,a;K(()=>{s!==(s=r())&&(a&&(P(a),a=null),s&&(a=V(()=>{$(()=>s(e))})))})}function w(e,r={},s,a){for(var t in s){var c=s[t];r[t]!==c&&(s[t]==null?e.style.removeProperty(t):e.style.setProperty(t,c,a))}}function ye(e,r,s,a){var t=e.__style;if(T||t!==r){var c=pe(r,a);(!T||c!==e.getAttribute("style"))&&(c==null?e.removeAttribute("style"):e.style.cssText=c),e.__style=r}else a&&(Array.isArray(a)?(w(e,s?.[0],a[0]),w(e,s?.[1],a[1],"important")):w(e,s,a));return a}function M(e,r,s=!1){if(e.multiple){if(r==null)return;if(!X(r))return Z();for(var a of e.options)a.selected=r.includes(H(a));return}for(a of e.options){var t=H(a);if(W(t,r)){a.selected=!0;return}}(!s||r!==void 0)&&(e.selectedIndex=-1)}function Se(e){var r=new MutationObserver(()=>{M(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),m(()=>{r.disconnect()})}function H(e){return"__value"in e?e.__value:e.value}const E=Symbol("class"),N=Symbol("style"),j=Symbol("is custom element"),Y=Symbol("is html"),Ee=I?"link":"LINK",Ne=I?"input":"INPUT",Ie=I?"option":"OPTION",Le=I?"select":"SELECT",Oe=I?"progress":"PROGRESS";function ke(e){if(T){var r=!1,s=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;O(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var t=e.checked;O(e,"checked",null),e.checked=t}}};e.__on_r=s,ue(s),oe()}}function Be(e,r){var s=C(e);s.value===(s.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Oe)||(e.value=r??"")}function we(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function O(e,r,s,a){var t=C(e);T&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Ee)||t[r]!==(t[r]=s)&&(r==="loading"&&(e[le]=s),s==null?e.removeAttribute(r):typeof s!="string"&&z(e).includes(r)?e[r]=s:e.setAttribute(r,s))}function Pe(e,r,s,a,t=!1,c=!1){if(T&&t&&e.nodeName===Ne){var b=e,k=b.type==="checkbox"?"defaultChecked":"defaultValue";k in s||ke(b)}var h=C(e),_=h[j],p=!h[Y];let g=T&&_;g&&B(!1);var u=r||{},y=e.nodeName===Ie;for(var d in r)d in s||(s[d]=null);s.class?s.class=Ae(s.class):(a||s[E])&&(s.class=null),s[N]&&(s.style??=null);var L=z(e);for(const i in s){let f=s[i];if(y&&i==="value"&&f==null){e.value=e.__value="",u[i]=f;continue}if(i==="class"){var S=e.namespaceURI==="http://www.w3.org/1999/xhtml";Te(e,S,f,a,r?.[E],s[E]),u[i]=f,u[E]=s[E];continue}if(i==="style"){ye(e,f,r?.[N],s[N]),u[i]=f,u[N]=s[N];continue}var n=u[i];if(!(f===n&&!(f===void 0&&e.hasAttribute(i)))){u[i]=f;var R=i[0]+i[1];if(R!=="$$")if(R==="on"){const v={},A="$$"+i;let l=i.slice(2);var G=he(l);if(ne(l)&&(l=l.slice(0,-7),v.capture=!0),!G&&n){if(f!=null)continue;e.removeEventListener(l,u[A],v),u[A]=null}if(G)ve(l,e,f),_e([l]);else if(f!=null){let D=function(q){u[i].call(this,q)};u[A]=de(l,e,D,v)}}else if(i==="style")O(e,i,f);else if(i==="autofocus")ie(e,!!f);else if(!_&&(i==="__value"||i==="value"&&f!=null))e.value=e.__value=f;else if(i==="selected"&&y)we(e,f);else{var o=i;p||(o=be(o));var U=o==="defaultValue"||o==="defaultChecked";if(f==null&&!_&&!U)if(h[i]=null,o==="value"||o==="checked"){let v=e;const A=r===void 0;if(o==="value"){let l=v.defaultValue;v.removeAttribute(o),v.defaultValue=l,v.value=v.__value=A?l:null}else{let l=v.defaultChecked;v.removeAttribute(o),v.defaultChecked=l,v.checked=A?l:!1}}else e.removeAttribute(i);else U||L.includes(o)&&(_||typeof f!="string")?(e[o]=f,o in h&&(h[o]=fe)):typeof f!="function"&&O(e,o,f)}}}return g&&B(!0),u}function He(e,r,s=[],a=[],t=[],c,b=!1,k=!1){x(t,s,a,h=>{var _=void 0,p={},g=e.nodeName===Le,u=!1;if(K(()=>{var d=r(...h.map(re)),L=Pe(e,_,d,c,b,k);u&&g&&"value"in d&&M(e,d.value);for(let n of Object.getOwnPropertySymbols(p))d[n]||P(p[n]);for(let n of Object.getOwnPropertySymbols(d)){var S=d[n];n.description===ae&&(!_||S!==_[n])&&(p[n]&&P(p[n]),p[n]=V(()=>ge(e,()=>S))),L[n]=S}_=L}),g){var y=e;$(()=>{M(y,_.value,!0),Se(y)})}u=!0})}function C(e){return e.__attributes??={[j]:e.nodeName.includes("-"),[Y]:e.namespaceURI===ee}}var F=new Map;function z(e){var r=e.getAttribute("is")||e.nodeName,s=F.get(r);if(s)return s;F.set(r,s=[]);for(var a,t=e,c=Element.prototype;c!==t;){a=te(t);for(var b in a)a[b].set&&s.push(b);t=se(t)}return s}export{N as S,He as a,O as b,ye as c,Be as d,ke as r,Ue as s};
1
+ import{e as J,E as Q,aI as V,T as P,B as $,aE as j,h as T,I as X,aJ as Z,aK as W,ak as m,aL as x,aM as ee,aN as se,g as re,aO as ae,aP as te,aQ as I,o as B,aR as ie,aS as fe,U as ue,aT as oe,aU as le}from"./BBDMeJL4.js";import{B as ce}from"./Dtbtl5su.js";import{i as ne,c as ve,d as _e,j as de,n as be,k as he}from"./yEDUbZbk.js";import{t as pe,c as Ae,s as Te}from"./Bt7P6UBm.js";function Ue(e,r,...s){var a=new ce(e);J(()=>{const t=r()??null;a.ensure(t,t&&(c=>t(c,...s)))},Q)}function ge(e,r){var s=void 0,a;V(()=>{s!==(s=r())&&(a&&(P(a),a=null),s&&(a=$(()=>{j(()=>s(e))})))})}function w(e,r={},s,a){for(var t in s){var c=s[t];r[t]!==c&&(s[t]==null?e.style.removeProperty(t):e.style.setProperty(t,c,a))}}function ye(e,r,s,a){var t=e.__style;if(T||t!==r){var c=pe(r,a);(!T||c!==e.getAttribute("style"))&&(c==null?e.removeAttribute("style"):e.style.cssText=c),e.__style=r}else a&&(Array.isArray(a)?(w(e,s?.[0],a[0]),w(e,s?.[1],a[1],"important")):w(e,s,a));return a}function M(e,r,s=!1){if(e.multiple){if(r==null)return;if(!X(r))return Z();for(var a of e.options)a.selected=r.includes(H(a));return}for(a of e.options){var t=H(a);if(W(t,r)){a.selected=!0;return}}(!s||r!==void 0)&&(e.selectedIndex=-1)}function Se(e){var r=new MutationObserver(()=>{M(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),m(()=>{r.disconnect()})}function H(e){return"__value"in e?e.__value:e.value}const E=Symbol("class"),N=Symbol("style"),F=Symbol("is custom element"),Y=Symbol("is html"),Ee=I?"link":"LINK",Ne=I?"input":"INPUT",Ie=I?"option":"OPTION",Le=I?"select":"SELECT",ke=I?"progress":"PROGRESS";function Oe(e){if(T){var r=!1,s=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;k(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var t=e.checked;k(e,"checked",null),e.checked=t}}};e.__on_r=s,ue(s),oe()}}function Be(e,r){var s=C(e);s.value===(s.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==ke)||(e.value=r??"")}function we(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function k(e,r,s,a){var t=C(e);T&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Ee)||t[r]!==(t[r]=s)&&(r==="loading"&&(e[le]=s),s==null?e.removeAttribute(r):typeof s!="string"&&D(e).includes(r)?e[r]=s:e.setAttribute(r,s))}function Pe(e,r,s,a,t=!1,c=!1){if(T&&t&&e.nodeName===Ne){var b=e,O=b.type==="checkbox"?"defaultChecked":"defaultValue";O in s||Oe(b)}var h=C(e),_=h[F],p=!h[Y];let g=T&&_;g&&B(!1);var u=r||{},y=e.nodeName===Ie;for(var d in r)d in s||(s[d]=null);s.class?s.class=Ae(s.class):(a||s[E])&&(s.class=null),s[N]&&(s.style??=null);var L=D(e);for(const i in s){let f=s[i];if(y&&i==="value"&&f==null){e.value=e.__value="",u[i]=f;continue}if(i==="class"){var S=e.namespaceURI==="http://www.w3.org/1999/xhtml";Te(e,S,f,a,r?.[E],s[E]),u[i]=f,u[E]=s[E];continue}if(i==="style"){ye(e,f,r?.[N],s[N]),u[i]=f,u[N]=s[N];continue}var n=u[i];if(!(f===n&&!(f===void 0&&e.hasAttribute(i)))){u[i]=f;var R=i[0]+i[1];if(R!=="$$")if(R==="on"){const v={},A="$$"+i;let l=i.slice(2);var G=he(l);if(ne(l)&&(l=l.slice(0,-7),v.capture=!0),!G&&n){if(f!=null)continue;e.removeEventListener(l,u[A],v),u[A]=null}if(G)ve(l,e,f),_e([l]);else if(f!=null){let q=function(z){u[i].call(this,z)};u[A]=de(l,e,q,v)}}else if(i==="style")k(e,i,f);else if(i==="autofocus")ie(e,!!f);else if(!_&&(i==="__value"||i==="value"&&f!=null))e.value=e.__value=f;else if(i==="selected"&&y)we(e,f);else{var o=i;p||(o=be(o));var U=o==="defaultValue"||o==="defaultChecked";if(f==null&&!_&&!U)if(h[i]=null,o==="value"||o==="checked"){let v=e;const A=r===void 0;if(o==="value"){let l=v.defaultValue;v.removeAttribute(o),v.defaultValue=l,v.value=v.__value=A?l:null}else{let l=v.defaultChecked;v.removeAttribute(o),v.defaultChecked=l,v.checked=A?l:!1}}else e.removeAttribute(i);else U||L.includes(o)&&(_||typeof f!="string")?(e[o]=f,o in h&&(h[o]=fe)):typeof f!="function"&&k(e,o,f)}}}return g&&B(!0),u}function He(e,r,s=[],a=[],t=[],c,b=!1,O=!1){x(t,s,a,h=>{var _=void 0,p={},g=e.nodeName===Le,u=!1;if(V(()=>{var d=r(...h.map(re)),L=Pe(e,_,d,c,b,O);u&&g&&"value"in d&&M(e,d.value);for(let n of Object.getOwnPropertySymbols(p))d[n]||P(p[n]);for(let n of Object.getOwnPropertySymbols(d)){var S=d[n];n.description===ae&&(!_||S!==_[n])&&(p[n]&&P(p[n]),p[n]=$(()=>ge(e,()=>S))),L[n]=S}_=L}),g){var y=e;j(()=>{M(y,_.value,!0),Se(y)})}u=!0})}function C(e){return e.__attributes??={[F]:e.nodeName.includes("-"),[Y]:e.namespaceURI===ee}}var K=new Map;function D(e){var r=e.getAttribute("is")||e.nodeName,s=K.get(r);if(s)return s;K.set(r,s=[]);for(var a,t=e,c=Element.prototype;c!==t;){a=te(t);for(var b in a)a[b].set&&s.push(b);t=se(t)}return s}export{N as S,He as a,k as b,ye as c,Be as d,Oe as r,Ue as s};
@@ -1 +1 @@
1
- import{a as b,s as R,f as P,d as S,c as H,b as T,g as Y}from"./DfwW1gF2.js";import{p as $,l as k,s as M,d as w,g as u,a as Z,c as d,n as j,r as v,b as D,m as A,t as G,ax as q,a5 as h,a4 as E}from"./yMbbhP0p.js";import{a as F,s as I}from"./l5w7mUkV.js";import{i as x}from"./DSZYl5ah.js";import{s as C}from"./1vztr6_A.js";import{l as B,p as V}from"./DVyuW48M.js";import{g as J}from"./D91YXE6T.js";import{i as K}from"./Dr5ZUnae.js";import{n as L}from"./BUMhcVI4.js";import{B as Q}from"./Brxs8A3C.js";var U=P("<title> </title>"),W=P('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function X(_,e){const t=B(e,["children","$$slots","$$events","$$legacy"]),g=B(t,["size","title"]);$(e,!1);const i=A(),l=A();let o=V(e,"size",8,16),s=V(e,"title",8,void 0);k(()=>(w(t),w(s())),()=>{M(i,t["aria-label"]||t["aria-labelledby"]||s())}),k(()=>(u(i),w(t)),()=>{M(l,{"aria-hidden":u(i)?void 0:!0,role:u(i)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),Z(),K();var r=W();F(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:o(),height:o(),...u(l),...g}));var f=d(r);{var p=n=>{var c=U(),y=d(c,!0);v(c),G(()=>R(y,s())),b(n,c)};x(f,n=>{s()&&n(p)})}j(3),v(r),b(_,r),D()}var tt=T('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><button><span class="toggle-label">Details</span></button> <button><span class="toggle-label">Graph</span></button></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function vt(_,e){$(e,!0);let t=V(e,"activeView",3,"entity");const g=q("chat");function i(a){J(a,{noScroll:!0})}var l=tt(),o=h(d(l),2),s=d(o);let r;var f=h(s,2);let p;v(o);var n=h(o,2),c=d(n);{var y=a=>{var m=Y(),z=E(m);I(z,()=>e.right),b(a,m)};x(c,a=>{e.right&&a(y)})}var N=h(c,2);{var O=a=>{Q(a,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return g.toggle},children:(m,z)=>{X(m,{size:14})},$$slots:{default:!0}})};x(N,a=>{g.open||a(O)})}v(n),v(l),G(()=>{r=C(s,1,"toggle-btn svelte-r6dy5f",null,r,{active:t()==="entity"}),p=C(f,1,"toggle-btn svelte-r6dy5f",null,p,{active:t()==="graph"})}),H("click",s,()=>t()!=="entity"&&i(L.entityPath??"/")),H("click",f,()=>t()!=="graph"&&i("/graph")),b(_,l),D()}S(["click"]);export{vt as V};
1
+ import{a as b,s as R,f as P,d as S,c as H,b as T,g as Y}from"./yEDUbZbk.js";import{p as $,l as k,s as C,d as w,g as u,a as Z,c as d,n as j,r as v,b as D,m as M,t as G,aC as q,a5 as h,a4 as E}from"./BBDMeJL4.js";import{a as F,s as I}from"./BMrbs3EC.js";import{i as x}from"./Dtbtl5su.js";import{s as A}from"./Bt7P6UBm.js";import{l as B,p as V}from"./CpXgbTWt.js";import{g as J}from"./BmP3yl81.js";import{i as K}from"./Ddpk8P2X.js";import{n as L}from"./Dx6YFABE.js";import{B as Q}from"./DYpjUIN_.js";var U=P("<title> </title>"),W=P('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function X(_,e){const t=B(e,["children","$$slots","$$events","$$legacy"]),g=B(t,["size","title"]);$(e,!1);const i=M(),l=M();let o=V(e,"size",8,16),s=V(e,"title",8,void 0);k(()=>(w(t),w(s())),()=>{C(i,t["aria-label"]||t["aria-labelledby"]||s())}),k(()=>(u(i),w(t)),()=>{C(l,{"aria-hidden":u(i)?void 0:!0,role:u(i)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),Z(),K();var r=W();F(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:o(),height:o(),...u(l),...g}));var f=d(r);{var p=n=>{var c=U(),y=d(c,!0);v(c),G(()=>R(y,s())),b(n,c)};x(f,n=>{s()&&n(p)})}j(3),v(r),b(_,r),D()}var tt=T('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><button><span class="toggle-label">Details</span></button> <button><span class="toggle-label">Graph</span></button></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function vt(_,e){$(e,!0);let t=V(e,"activeView",3,"entity");const g=q("chat");function i(a){J(a,{noScroll:!0})}var l=tt(),o=h(d(l),2),s=d(o);let r;var f=h(s,2);let p;v(o);var n=h(o,2),c=d(n);{var y=a=>{var m=Y(),z=E(m);I(z,()=>e.right),b(a,m)};x(c,a=>{e.right&&a(y)})}var N=h(c,2);{var O=a=>{Q(a,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return g.toggle},children:(m,z)=>{X(m,{size:14})},$$slots:{default:!0}})};x(N,a=>{g.open||a(O)})}v(n),v(l),G(()=>{r=A(s,1,"toggle-btn svelte-r6dy5f",null,r,{active:t()==="entity"}),p=A(f,1,"toggle-btn svelte-r6dy5f",null,p,{active:t()==="graph"})}),H("click",s,()=>t()!=="entity"&&i(L.entityPath??"/")),H("click",f,()=>t()!=="graph"&&i("/graph")),b(_,l),D()}S(["click"]);export{vt as V};
@@ -0,0 +1 @@
1
+ import{a0 as J,bn as ot,bC as st}from"./BBDMeJL4.js";import{c as it,p as S,u as Ke,i as we,b as x,d as lt,r as ye,a as ct,m as ft,n as ut,o as Fe,s as O,e as de,f as dt,S as He,N as F,H as $,g as ht,h as Be,j as he,k as X,l as le,P as pt,q as D,t as Me,v as Ve,w as je}from"./C8IfoK2g.js";class be{constructor(t,a){this.status=t,typeof a=="string"?this.body={message:a}:a?this.body=a:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class ke{constructor(t,a){this.status=t,this.location=a}}class Ee extends Error{constructor(t,a,n){super(n),this.status=t,this.text=a}}const _t=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function mt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${vt(e).map(n=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const i=n.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ce(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ce(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=_t.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ce(l)}).join("")}).join("")}/?$`),params:t}}function gt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(gt)}function wt(e,t,a){const n={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<t.length;s+=1){const l=t[s];let c=r[s-i];if(l.chained&&l.rest&&i&&(c=r.slice(s-i,s+1).filter(d=>d).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||a[l.matcher](c)){n[l.name]=c;const d=t[s+1],p=r[s+1];d&&!d.rest&&d.optional&&p&&l.chained&&(i=0),!d&&!p&&Object.keys(n).length===o.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return n}function ce(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function yt({nodes:e,server_loads:t,dictionary:a,matchers:n}){const r=new Set(t);return Object.entries(a).map(([s,[l,c,d]])=>{const{pattern:p,params:u}=mt(s),f={id:s,exec:h=>{const v=p.exec(h);if(v)return wt(v,u,n)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(i),leaf:o(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function Ye(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function $e(e,t,a=JSON.stringify){const n=a(t);try{sessionStorage[e]=n}catch{}}function bt(e){return e.filter(t=>t!=null)}function Se(e){return e instanceof be||e instanceof Ee?e.status:500}function kt(e){return e instanceof Ee?e.text:"Internal Error"}const Ne={spanContext(){return Et},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Et={traceId:"",spanId:"",traceFlags:0},St=new Set(["icon","shortcut icon","apple-touch-icon"]),C=Ye(Me)??{},H=Ye(Ve)??{},T={url:je({}),page:je({}),navigating:ot(null),updated:it()};function Re(e){C[e]=O()}function Rt(e,t){let a=e+1;for(;C[a];)delete C[a],a+=1;for(a=t+1;H[a];)delete H[a],a+=1}function B(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function pe(){}let xe,_e,Q,P,me,w;const Z=[],ee=[];let L=null;function te(){L?.fork?.then(e=>e?.discard()),L=null}const W=new Map,Ge=new Set,xt=new Set,K=new Set;let g={branch:[],error:null,url:null},We=!1,ae=!1,De=!0,M=!1,q=!1,Je=!1,Y=!1,Le,y,R,A;const ne=new Set;let fe;const re=new Map;async function Mt(e,t,a){globalThis.__sveltekit_hfds3f?.data&&globalThis.__sveltekit_hfds3f.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),xe=yt(e),P=document.documentElement,me=t,_e=e.nodes[0],Q=e.nodes[1],_e(),Q(),y=history.state?.[$],R=history.state?.[F],y||(y=R=Date.now(),history.replaceState({...history.state,[$]:y,[F]:R},""));const n=C[y];function r(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}a?(r(),await Dt(me,a)):(await N({type:"enter",url:ye(w.hash?Ft(new URL(location.href)):location.href),replace_state:!0}),r()),Nt()}async function Lt(e=!0,t=!0){if(await(fe||=Promise.resolve()),!fe)return;fe=null;const a=A={},n=await z(g.url,!0);if(te(),Y&&re.forEach(({resource:r})=>{r.refresh?.()}),e){const r=S.state,o=n&&await Ie(n);if(!o||a!==A)return;if(o.type==="redirect")return Pe(new URL(o.location,g.url).href,{replaceState:!0},1,a);t||(o.props.page.state=r),Ke(o.props.page),g=o.state,ge(),Le.$set(o.props)}else ge();await Promise.all([...re.values()].map(({resource:r})=>r)).catch(pe)}function ge(){Z.length=0,Y=!1}function Xe(e){ee.some(t=>t?.snapshot)&&(H[e]=ee.map(t=>t?.snapshot?.capture()))}function Qe(e){H[e]?.forEach((t,a)=>{ee[a]?.snapshot?.restore(t)})}function qe(){Re(y),$e(Me,C),Xe(R),$e(Ve,H)}async function Pe(e,t,a,n){let r;t.invalidateAll&&te(),await N({type:"goto",url:ye(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:a,nav_token:n,accept:()=>{t.invalidateAll&&(Y=!0,r=[...re.keys()]),t.invalidate&&t.invalidate.forEach($t)}}),t.invalidateAll&&J().then(J).then(()=>{re.forEach(({resource:o},i)=>{r?.includes(i)&&o.refresh?.()})})}async function Pt(e){if(e.id!==L?.id){te();const t={};ne.add(t),L={id:e.id,token:t,promise:Ie({...e,preload:t}).then(a=>(ne.delete(t),a.type==="loaded"&&a.state.error&&te(),a)),fork:null}}return L.promise}async function ue(e){const t=(await z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(a=>a[1]()))}async function Ze(e,t,a){g=e.state;const n=document.querySelector("style[data-sveltekit]");if(n&&n.remove(),Object.assign(S,e.props.page),Le=new w.root({target:t,props:{...e.props,stores:T,components:ee},hydrate:a,sync:!1}),await Promise.resolve(),Qe(R),a){const r={from:null,to:{params:g.params,route:{id:g.route?.id??null},url:new URL(location.href),scroll:C[y]??O()},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(o=>o(r))}ae=!0}function oe({url:e,params:t,branch:a,status:n,error:r,route:o,form:i}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const f of a)f?.slash!==void 0&&(s=f.slash);e.pathname=ut(e.pathname,s),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:a,error:r,route:o},props:{constructors:bt(a).map(f=>f.node.component),page:Oe(S)}};i!==void 0&&(l.props.form=i);let c={},d=!S,p=0;for(let f=0;f<Math.max(a.length,g.branch.length);f+=1){const h=a[f],v=g.branch[f];h?.data!==v?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==r||i!==void 0&&i!==S.form||d)&&(l.props.page={error:r,params:t,route:{id:o?.id??null},state:{},status:n,url:new URL(e),form:i??null,data:d?c:S.data}),l}async function Ae({loader:e,parent:t,url:a,params:n,route:r,server_data_node:o}){let i=null,s=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,a);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ne,current:Ne},route:new Proxy(r,{get:(u,f)=>(s&&(l.route=!0),u[f])}),params:new Proxy(n,{get:(u,f)=>(s&&l.params.add(f),u[f])}),data:o?.data??null,url:ft(a,()=>{s&&(l.url=!0)},u=>{s&&l.search_params.add(u)},w.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:v}=et(u,f,a);return s&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return s&&(l.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:o,universal:c.universal?.load?{type:"data",data:i,uses:l}:null,data:i??o?.data??null,slash:c.universal?.trailingSlash??o?.slash}}function et(e,t,a){let n=e instanceof Request?e.url:e;const r=new URL(n,a);r.origin===a.origin&&(n=r.href.slice(a.origin.length));const o=ae?ht(n,r.href,t):dt(n,t);return{resolved:r,promise:o}}function At(e,t,a,n,r,o){if(Y)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&a)return!0;for(const i of r.search_params)if(n.has(i))return!0;for(const i of r.params)if(o[i]!==g.params[i])return!0;for(const i of r.dependencies)if(Z.some(s=>s(new URL(i))))return!0;return!1}function Ue(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ut(e,t){if(!e)return new Set(t.searchParams.keys());const a=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of a){const r=e.searchParams.getAll(n),o=t.searchParams.getAll(n);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&a.delete(n)}return a}function It({error:e,url:t,route:a,params:n}){return{type:"loaded",state:{error:e,url:t,route:a,params:n,branch:[]},props:{page:Oe(S),constructors:[]}}}async function Ie({id:e,invalidating:t,url:a,params:n,route:r,preload:o}){if(L?.id===e)return ne.delete(L.token),L.promise;const{errors:i,layouts:s,leaf:l}=r,c=[...s,l];i.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=g.url?e!==se(g.url):!1,p=g.route?r.id!==g.route.id:!1,u=Ut(g.url,a);let f=!1;const h=c.map(async(m,_)=>{if(!m)return;const k=g.branch[_];return m[1]===k?.loader&&!At(f,p,d,u,k.universal?.uses,n)?k:(f=!0,Ae({loader:m[1],url:a,params:n,route:r,parent:async()=>{const U={};for(let I=0;I<_;I+=1)Object.assign(U,(await h[I])?.data);return U},server_data_node:Ue(m[0]?{type:"skip"}:null,m[0]?k?.server:void 0)}))});for(const m of h)m.catch(()=>{});const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(_){if(_ instanceof ke)return{type:"redirect",location:_.location};if(ne.has(o))return It({error:await V(_,{params:n,url:a,route:{id:r.id}}),url:a,params:n,route:r});let k=Se(_),E;if(_ instanceof be)E=_.body;else{if(await T.updated.check())return await ze(),await B(a);E=await V(_,{params:n,url:a,route:{id:r.id}})}const U=await Tt(m,v,i);return U?oe({url:a,params:n,branch:v.slice(0,U.idx).concat(U.node),status:k,error:E,route:r}):await at(a,{id:r.id},E,k)}else v.push(void 0);return oe({url:a,params:n,branch:v,status:200,error:null,route:r,form:t?void 0:null})}async function Tt(e,t,a){for(;e--;)if(a[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await a[e](),loader:a[e],data:{},server:null,universal:null}}}catch{continue}}}async function Te({status:e,error:t,url:a,route:n}){const r={};let o=null;try{const i=await Ae({loader:_e,url:a,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Ue(o)}),s={node:await Q(),loader:Q,universal:null,server:null,data:null};return oe({url:a,params:r,branch:[i,s],status:e,error:t,route:null})}catch(i){if(i instanceof ke)return Pe(new URL(i.location,location.href),{},0);throw i}}async function Ct(e){const t=e.href;if(W.has(t))return W.get(t);let a;try{const n=(async()=>{let r=await w.hooks.reroute({url:new URL(e),fetch:async(o,i)=>et(o,i,e).promise})??e;if(typeof r=="string"){const o=new URL(e);w.hash?o.hash=r:o.pathname=r,r=o}return r})();W.set(t,n),a=await n}catch{W.delete(t);return}return a}async function z(e,t){if(e&&!we(e,x,w.hash)){const a=await Ct(e);if(!a)return;const n=Ot(a);for(const r of xe){const o=r.exec(n);if(o)return{id:se(e),invalidating:t,route:r,params:lt(o),url:e}}}}function Ot(e){return ct(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function se(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function tt({url:e,type:t,intent:a,delta:n,event:r,scroll:o}){let i=!1;const s=Ce(g,a,e,t,o??null);n!==void 0&&(s.navigation.delta=n),r!==void 0&&(s.navigation.event=r);const l={...s.navigation,cancel:()=>{i=!0,s.reject(new Error("navigation cancelled"))}};return M||Ge.forEach(c=>c(l)),i?null:s}async function N({type:e,url:t,popped:a,keepfocus:n,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:l={},accept:c=pe,block:d=pe,event:p}){const u=A;A=l;const f=await z(t,!1),h=e==="enter"?Ce(g,f,t,e):tt({url:t,type:e,delta:a?.delta,intent:f,scroll:a?.scroll,event:p});if(!h){d(),A===l&&(A=u);return}const v=y,m=R;c(),M=!0,ae&&h.navigation.type!=="enter"&&T.navigating.set(de.current=h.navigation);let _=f&&await Ie(f);if(!_){if(we(t,x,w.hash))return await B(t,o);_=await at(t,{id:null},await V(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=f?.url||t,A!==l)return h.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(s<20){await N({type:e,url:new URL(_.location,t),popped:a,keepfocus:n,noscroll:r,replace_state:o,state:i,redirect_count:s+1,nav_token:l}),h.fulfil(void 0);return}_=await Te({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await T.updated.check()&&(await ze(),await B(t,o));if(ge(),Re(v),Xe(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=a?a.state:i,!a){const b=o?0:1,G={[$]:y+=b,[F]:R+=b,[He]:i};(o?history.replaceState:history.pushState).call(history,G,"",t),o||Rt(y,R)}const k=f&&L?.id===f.id?L.fork:null;L=null,_.props.page.state=i;let E;if(ae){const b=(await Promise.all(Array.from(xt,j=>j(h.navigation)))).filter(j=>typeof j=="function");if(b.length>0){let j=function(){b.forEach(ie=>{K.delete(ie)})};b.push(j),b.forEach(ie=>{K.add(ie)})}g=_.state,_.props.page&&(_.props.page.url=t);const G=k&&await k;G?E=G.commit():(Le.$set(_.props),Ke(_.props.page),E=st?.()),Je=!0}else await Ze(_,me,!1);const{activeElement:U}=document;await E,await J(),await J();let I=null;if(De){const b=a?a.scroll:r?O():null;b?scrollTo(b.x,b.y):(I=t.hash&&document.getElementById(nt(t)))?I.scrollIntoView():scrollTo(0,0)}const rt=document.activeElement!==U&&document.activeElement!==document.body;!n&&!rt&&Kt(t,!I),De=!0,_.props.page&&Object.assign(S,_.props.page),M=!1,e==="popstate"&&Qe(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=O()),K.forEach(b=>b(h.navigation)),T.navigating.set(de.current=null)}async function at(e,t,a,n,r){return e.origin===Fe&&e.pathname===location.pathname&&!We?await Te({status:n,error:a,url:e,route:t}):await B(e,r)}function jt(){let e,t={element:void 0,href:void 0},a;P.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{o(l,D.hover)},20)});function n(s){s.defaultPrevented||o(s.composedPath()[0],D.tap)}P.addEventListener("mousedown",n),P.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(ue(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function o(s,l){const c=Be(s,P),d=c===t.element&&c?.href===t.href&&l>=a;if(!c||d)return;const{url:p,external:u,download:f}=he(c,x,w.hash);if(u||f)return;const h=X(c),v=p&&se(g.url)===se(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},a=D.tap;const m=await z(p,!1);if(!m)return;Pt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},a=l,ue(p))}function i(){r.disconnect();for(const s of P.querySelectorAll("a")){const{url:l,external:c,download:d}=he(s,x,w.hash);if(c||d)continue;const p=X(s);p.reload||(p.preload_code===D.viewport&&r.observe(s),p.preload_code===D.eager&&ue(l))}}K.add(i),i()}function V(e,t){if(e instanceof be)return e.body;const a=Se(e),n=kt(e);return w.hooks.handleError({error:e,event:t,status:a,message:n})??{message:n}}function Vt(e,t={}){return e=new URL(ye(e)),e.origin!==Fe?Promise.reject(new Error("goto: invalid URL")):Pe(e,t,0)}function $t(e){if(typeof e=="function")Z.push(e);else{const{href:t}=new URL(e,location.href);Z.push(a=>a.href===t)}}function Yt(){return Y=!0,Lt()}function Nt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(qe(),!M){const n=Ce(g,void 0,null,"leave"),r={...n.navigation,cancel:()=>{a=!0,n.reject(new Error("navigation cancelled"))}};Ge.forEach(o=>o(r))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&qe()}),navigator.connection?.saveData||jt(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Be(t.composedPath()[0],P);if(!a)return;const{url:n,external:r,target:o,download:i}=he(a,x,w.hash);if(!n)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=X(a);if(!(a instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||i)return;const[c,d]=(w.hash?n.hash.replace(/^#/,""):n.href).split("#"),p=c===le(location);if(r||s.reload&&(!p||!d)){tt({url:n,type:"link",event:t})?M=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=g.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=a.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(q=!0,Re(y),e(n),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await N({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||a.target)==="_blank"||(n?.formMethod||a.method)!=="get")return;const i=new URL(n?.hasAttribute("formaction")&&n?.formAction||a.action);if(we(i,x,!1))return;const s=t.target,l=X(s);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(s,n);i.search=new URLSearchParams(c).toString(),N({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ve){if(t.state?.[$]){const a=t.state[$];if(A={},a===y)return;const n=C[a],r=t.state[He]??{},o=new URL(t.state[pt]??location.href),i=t.state[F],s=g.url?le(location)===le(g.url):!1;if(i===R&&(Je||s)){r!==S.state&&(S.state=r),e(o),C[y]=O(),n&&scrollTo(n.x,n.y),y=a;return}const c=a-y;await N({type:"popstate",url:o,popped:{state:r,scroll:n,delta:c},accept:()=>{y=a,R=i},block:()=>{history.go(-c)},nav_token:A,event:t})}else if(!q){const a=new URL(location.href);e(a),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[$]:++y,[F]:R},"",location.href))});for(const t of document.querySelectorAll("link"))St.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&T.navigating.set(de.current=null)});function e(t){g.url=S.url=t,T.page.set(Oe(S)),T.page.notify()}}async function Dt(e,{status:t=200,error:a,node_ids:n,params:r,route:o,server_route:i,data:s,form:l}){We=!0;const c=new URL(location.href);let d;({params:r={},route:o={id:null}}=await z(c,!1)||{}),d=xe.find(({id:f})=>f===o.id);let p,u=!0;try{const f=n.map(async(v,m)=>{const _=s[m];return _?.uses&&(_.uses=qt(_.uses)),Ae({loader:w.nodes[v],url:c,params:r,route:o,parent:async()=>{const k={};for(let E=0;E<m;E+=1)Object.assign(k,(await f[E]).data);return k},server_data_node:Ue(_)})}),h=await Promise.all(f);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=oe({url:c,params:r,branch:h,status:t,error:a,form:l,route:d??null})}catch(f){if(f instanceof ke){await B(new URL(f.location,location.href));return}p=await Te({status:Se(f),error:await V(f,{url:c,params:r,route:o}),url:c,route:o}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await Ze(p,e,u)}function qt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ve=!1;function Kt(e,t=!0){const a=document.querySelector("[autofocus]");if(a)a.focus();else{const n=nt(e);if(n&&document.getElementById(n)){const{x:o,y:i}=O();setTimeout(()=>{const s=history.state;ve=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(o,i),ve=!1})}else{const o=document.body,i=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),i!==null?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const o=[];for(let i=0;i<r.rangeCount;i+=1)o.push(r.getRangeAt(i));setTimeout(()=>{if(r.rangeCount===o.length){for(let i=0;i<r.rangeCount;i+=1){const s=o[i],l=r.getRangeAt(i);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Ce(e,t,a,n,r=null){let o,i;const s=new Promise((c,d)=>{o=c,i=d});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:O()},to:a&&{params:t?.params??null,route:{id:t?.route?.id??null},url:a,scroll:r},willUnload:!t,type:n,complete:s},fulfil:o,reject:i}}function Oe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Ft(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function nt(e){let t;if(w.hash){const[,,a]=e.hash.split("#",3);t=a??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Mt as a,Vt as g,Yt as i,T as s};
@@ -1,2 +1,2 @@
1
- import{h as b}from"./yMbbhP0p.js";function v(r){var i,t,f="";if(typeof r=="string"||typeof r=="number")f+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(i=0;i<o;i++)r[i]&&(t=v(r[i]))&&(f&&(f+=" "),f+=t)}else for(t in r)r[t]&&(f&&(f+=" "),f+=t);return f}function S(){for(var r,i,t=0,f="",o=arguments.length;t<o;t++)(r=arguments[t])&&(i=v(r))&&(f&&(f+=" "),f+=i);return f}function $(r){return typeof r=="object"?S(r):r??""}const j=[...`
1
+ import{h as b}from"./BBDMeJL4.js";function v(r){var i,t,f="";if(typeof r=="string"||typeof r=="number")f+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(i=0;i<o;i++)r[i]&&(t=v(r[i]))&&(f&&(f+=" "),f+=t)}else for(t in r)r[t]&&(f&&(f+=" "),f+=t);return f}function S(){for(var r,i,t=0,f="",o=arguments.length;t<o;t++)(r=arguments[t])&&(i=v(r))&&(f&&(f+=" "),f+=i);return f}function $(r){return typeof r=="object"?S(r):r??""}const j=[...`
2
2
  \r\f \v\uFEFF`];function T(r,i,t){var f=r==null?"":""+r;if(i&&(f=f?f+" "+i:i),t){for(var o of Object.keys(t))if(t[o])f=f?f+" "+o:o;else if(f.length)for(var n=o.length,u=0;(u=f.indexOf(o,u))>=0;){var s=u+n;(u===0||j.includes(f[u-1]))&&(s===f.length||j.includes(f[s]))?f=(u===0?"":f.substring(0,u))+f.substring(s+1):u=s}}return f===""?null:f}function A(r,i=!1){var t=i?" !important;":";",f="";for(var o of Object.keys(r)){var n=r[o];n!=null&&n!==""&&(f+=" "+o+": "+n+t)}return f}function p(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function L(r,i){if(i){var t="",f,o;if(Array.isArray(i)?(f=i[0],o=i[1]):f=i,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,u=0,s=!1,c=[];f&&c.push(...Object.keys(f).map(p)),o&&c.push(...Object.keys(o).map(p));var l=0,g=-1;const h=r.length;for(var e=0;e<h;e++){var a=r[e];if(s?a==="/"&&r[e-1]==="*"&&(s=!1):n?n===a&&(n=!1):a==="/"&&r[e+1]==="*"?s=!0:a==='"'||a==="'"?n=a:a==="("?u++:a===")"&&u--,!s&&n===!1&&u===0){if(a===":"&&g===-1)g=e;else if(a===";"||e===h-1){if(g!==-1){var O=p(r.substring(l,g).trim());if(!c.includes(O)){a!==";"&&e++;var d=r.substring(l,e).trim();t+=" "+d+";"}}l=e+1,g=-1}}}}return f&&(t+=A(f)),o&&(t+=A(o,!0)),t=t.trim(),t===""?null:t}return r==null?null:String(r)}function z(r,i,t,f,o,n){var u=r.__className;if(b||u!==t||u===void 0){var s=T(t,f,n);(!b||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):i?r.className=s:r.setAttribute("class",s)),r.__className=t}else if(n&&o!==n)for(var c in n){var l=!!n[c];(o==null||l!==!!o[c])&&r.classList.toggle(c,l)}return n}const E="";class w extends Error{constructor(i,t){super(t),this.status=i,this.name="ApiError"}}async function C(r,i){const t={...i?.headers};i?.body&&(t["Content-Type"]=t["Content-Type"]??"application/json");const f=await fetch(`${E}${r}`,{...i,headers:t});if(!f.ok){const o=await f.json().catch(()=>({error:f.statusText}));throw f.status===401&&typeof window<"u"&&!r.startsWith("/api/auth/")&&window.location.pathname!=="/login"&&(window.location.href="/login"),new w(f.status,o.error??f.statusText)}return f.json()}const B=Object.freeze(Object.defineProperty({__proto__:null,ApiError:w,apiFetch:C},Symbol.toStringTag,{value:"Module"}));export{C as a,S as b,$ as c,B as d,z as s,L as t};
@@ -0,0 +1 @@
1
+ import{bn as R,aG as w,Y as c,g as u,s as f}from"./BBDMeJL4.js";new URL("sveltekit-internal://");function V(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Y(t){return t.split("%25").map(decodeURI).join("%25")}function j(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function q({href:t}){return t.split("#")[0]}function D(t,e,n,r=!1){const s=new URL(t);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(g,...E)=>(n(g),a[o](g,...E));e();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return e(),t[a]},enumerable:!0,configurable:!0});return s}function U(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)e=e*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function x(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}const O=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:e?.method||"GET")!=="GET"&&h.delete(_(t)),O(t,e));const h=new Map;function H(t,e){const n=_(t,e),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);const a=r.getAttribute("data-ttl");return a&&h.set(n,{body:s,init:i,ttl:1e3*Number(a)}),r.getAttribute("data-b64")!==null&&(s=x(s)),Promise.resolve(new Response(s,i))}return window.fetch(t,e)}function K(t,e,n){if(h.size>0){const r=_(t,n),s=h.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);h.delete(r)}}return window.fetch(e,n)}function _(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e?.headers||e?.body){const s=[];e.headers&&s.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&s.push(e.body),r+=`[data-hash="${U(...s)}"]`}return r}const N=globalThis.__sveltekit_hfds3f?.base??"",I=globalThis.__sveltekit_hfds3f?.assets??N??"",L="1774704886824",B="sveltekit:snapshot",J="sveltekit:scroll",W="sveltekit:states",X="sveltekit:pageurl",z="sveltekit:history",M="sveltekit:navigation",m={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},S=location.origin;function F(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function Q(){return{x:pageXOffset,y:pageYOffset}}function d(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const v={...m,"":m.hover};function A(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function Z(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=A(t)}}function ee(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=t instanceof SVGAElement?t.target.baseVal:t.target,i=!r||!!s||P(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===S&&t.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function te(t){let e=null,n=null,r=null,s=null,i=null,a=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=d(o,"preload-code")),s===null&&(s=d(o,"preload-data")),e===null&&(e=d(o,"keepfocus")),n===null&&(n=d(o,"noscroll")),i===null&&(i=d(o,"reload")),a===null&&(a=d(o,"replacestate")),o=A(o);function l(g){switch(g){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:v[r??"off"],preload_data:v[s??"off"],keepfocus:l(e),noscroll:l(n),reload:l(i),replace_state:l(a)}}function ne(t){const e=R(t);let n=!0;function r(){n=!0,e.update(a=>a)}function s(a){n=!1,e.set(a)}function i(a){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const k={v:()=>{}};function re(){const{set:t,subscribe:e}=R(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${I}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==L;return a&&(t(!0),k.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:e,check:r}}function P(t,e,n){return t.origin!==S||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function se(t){}const T=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...T];const $=new Set([...T]);[...$];let b,y,p;const C=w.toString().includes("$$")||/function \w+\(\) \{\}/.test(w.toString());C?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},y={current:null},p={current:!1}):(b=new class{#e=c({});get data(){return u(this.#e)}set data(e){f(this.#e,e)}#t=c(null);get form(){return u(this.#t)}set form(e){f(this.#t,e)}#n=c(null);get error(){return u(this.#n)}set error(e){f(this.#n,e)}#r=c({});get params(){return u(this.#r)}set params(e){f(this.#r,e)}#s=c({id:null});get route(){return u(this.#s)}set route(e){f(this.#s,e)}#a=c({});get state(){return u(this.#a)}set state(e){f(this.#a,e)}#o=c(-1);get status(){return u(this.#o)}set status(e){f(this.#o,e)}#i=c(new URL("https://example.com"));get url(){return u(this.#i)}set url(e){f(this.#i,e)}},y=new class{#e=c(null);get current(){return u(this.#e)}set current(e){f(this.#e,e)}},p=new class{#e=c(!1);get current(){return u(this.#e)}set current(e){f(this.#e,e)}},k.v=()=>p.current=!0);function le(t){Object.assign(b,t)}export{z as H,M as N,X as P,W as S,Y as a,N as b,re as c,j as d,y as e,H as f,K as g,Z as h,P as i,ee as j,te as k,q as l,D as m,V as n,S as o,b as p,m as q,F as r,Q as s,J as t,le as u,B as v,ne as w,se as x};
@@ -1 +1 @@
1
- import{g as n,Y as o,s as t}from"./yMbbhP0p.js";import{a as u}from"./1vztr6_A.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
1
+ import{g as n,Y as o,s as t}from"./BBDMeJL4.js";import{a as u}from"./Bt7P6UBm.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
@@ -0,0 +1,4 @@
1
+ import{Y as I,ag as x,s as o,g as s,aA as U}from"./BBDMeJL4.js";import{i as q,g as H}from"./BmP3yl81.js";import{n as y}from"./Dx6YFABE.js";import{w as V}from"./B3cbqYdb.js";const L={project:"#5a70b0",organization:"#89a8ab",person:"#c09088",meeting:"#b5c090",deal:"#78d098",deliverable:"#e05050",decision:"#2a38a0",dataset:"#9090c0",process:"#b09890",deck:"#4a60a0",doc:"#a0c0d8",document:"#d8a0c0",note:"#707068",publication:"#d87070",reference:"#208850",task:"#b86058",role:"#484060","practice-area":"#7a7a98","case-study":"#2a4a3a",standard:"#dada98"};function se(i){return i?L[i]??"#5c5c66":"#5c5c66"}const W={person:"people","practice-area":"practice-areas","case-study":"case-studies",process:"processes"};function ae(i){return W[i]??i+"s"}function ne(i){return i.replace(/-/g," ").replace(/\b\w/g,l=>l.toUpperCase())}const oe=Object.keys(L);function X(i,l,a){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),signal:a}).then(async n=>{if(!n.ok){l({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){l({type:"error",message:"No response body"});return}const m=new TextDecoder;let f="";for(;;){const{done:w,value:O}=await r.read();if(w)break;f+=m.decode(O,{stream:!0});const N=f.split(`
2
+ `);f=N.pop()??"";for(const g of N)if(g.startsWith("data: "))try{const $=JSON.parse(g.slice(6));l($)}catch{}}}).catch(n=>{n.name!=="AbortError"&&l({type:"error",message:n.message})})}const P="sg-chat-sessions",R="sg-chat-version",B=14;function b(){try{const i=localStorage.getItem(P);if(!i)return[];if(localStorage.getItem(R)==="2")return JSON.parse(i);const n=JSON.parse(i).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(m=>m.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(P,JSON.stringify(n)),localStorage.setItem(R,"2"),n}catch{return[]}}function _(i){const a=[...i].sort((n,r)=>r.updatedAt.localeCompare(n.updatedAt)).slice(0,B);try{localStorage.setItem(P,JSON.stringify(a)),localStorage.setItem(R,"2")}catch{}}function k(i,l){const a=b(),n=l.map(({streaming:m,...f})=>f),r=a.findIndex(m=>m.id===i);r>=0&&(a[r].messages=n,a[r].updatedAt=new Date().toISOString()),_(a)}function F(){const l=b().sort((e,c)=>c.updatedAt.localeCompare(e.updatedAt))[0];let a=I(x(l?l.messages.map(e=>({...e,streaming:!1})):[])),n=I(x(l?.id??null)),r=I(!1),m=I(0),f=I(0),w=I(null),O=null,N=I(""),g=I(x(!!l));const $=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function Y(){C();const e=crypto.randomUUID();o(n,e,!0),o(a,[],!0),o(g,!1)}function D(){if(s(n)&&s(g))return s(n);const e=s(n)||crypto.randomUUID();o(n,e,!0);const c=new Date().toISOString(),u=b();return u.push({id:e,createdAt:c,updatedAt:c,title:"New chat",messages:[]}),_(u),o(g,!0),e}function J(e){if(!e.trim()||s(r))return;o(w,null);const c=D();s(a).push({role:"user",content:e}),s(a).push({role:"agent",content:"",segments:[],streaming:!0}),o(r,!0);const u=b(),d=u.find(t=>t.id===c);d&&d.title==="New chat"&&(d.title=e.slice(0,50),_(u)),k(c,s(a));let T=!1,A=null;O=new AbortController;const K=y.selectedSubPath?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}/${y.selectedSubPath}`:y.selectedId?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}`:null,E=s(a).slice(0,-2).map(t=>({role:t.role==="agent"?"assistant":t.role,content:t.content})),Z={message:e,context:K??void 0,sessionId:c,history:E.length>0?E:void 0};X(Z,t=>{const p=s(a)[s(a).length-1];if(!p||p.role!=="agent")return;const h=p.segments;switch(t.type){case"token":{p.content+=t.text??"";const S=h[h.length-1];S&&S.type==="text"?S.content+=t.text??"":h.push({type:"text",content:t.text??""}),p.segments=h,U(f);break}case"tool_start":if(t.name){$.has(t.name)&&(T=!0);const S=h[h.length-1];S&&S.type==="tools"?S.names=[...S.names,t.name]:h.push({type:"tools",names:[t.name]}),p.segments=h,U(f)}break;case"mutation":T=!0,t.action==="created"&&t.repo&&t.entityType&&t.entityId&&(A={repo:t.repo,entityType:t.entityType,entityId:t.entityId}),window.StudioChrome?.emitMutation?.({action:t.action,repo:t.repo,entityType:t.entityType,entityId:t.entityId});break;case"highlight":o(w,t.entityIds&&t.entityIds.length>0?new Set(t.entityIds):null,!0);break;case"done":t.message&&!p.content&&(p.content=t.message,p.segments=[{type:"text",content:t.message}]),p.streaming=!1,o(r,!1),k(c,s(a)),T&&(q().then(()=>{U(m)}),V.refreshAll().then(()=>{A&&H(`/${A.repo}/${A.entityType}/${A.entityId}`)}));break;case"error":p.content+=`
3
+
4
+ Error: ${t.message}`,p.streaming=!1,o(r,!1),k(c,s(a));break}},O.signal)}function C(){O?.abort(),o(r,!1);const e=s(a)[s(a).length-1];e?.streaming&&(e.streaming=!1),fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{})}function M(){C(),o(a,[],!0),s(n)&&s(g)&&k(s(n),s(a))}function j(e){const u=b().filter(d=>d.id!==e);if(_(u),s(n)===e){const d=u.sort((T,A)=>A.updatedAt.localeCompare(T.updatedAt));d.length>0?(o(n,d[0].id,!0),o(a,d[0].messages.map(T=>({...T,streaming:!1})),!0),o(g,!0)):(o(n,null),o(a,[],!0),o(g,!1))}}function z(e){const u=b().find(d=>d.id===e);u&&(C(),o(n,u.id,!0),o(a,u.messages.map(d=>({...d,streaming:!1})),!0),o(g,!0))}function G(){return b().sort((e,c)=>c.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(c=>c.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===s(n)}))}return{get messages(){return s(a)},get streaming(){return s(r)},get mutationCount(){return s(m)},get scrollTick(){return s(f)},get highlightedIds(){return s(w)},get activeSessionId(){return s(n)},get draftInput(){return s(N)},set draftInput(e){o(N,e,!0)},send:J,stop:C,clear:M,newSession:Y,deleteSession:j,getSessions:G,loadSession:z}}const re=F();export{oe as A,re as c,se as e,ne as f,ae as p};
@@ -1 +1 @@
1
- import{e as f,h as o,f as v,E as y,i as l,j as m,k as p,o as i,H as T,q as A}from"./yMbbhP0p.js";import{B as E}from"./DSZYl5ah.js";function k(d,_,e){var s;o&&(s=A,v());var r=new E(d);f(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{k as c};
1
+ import{e as f,h as o,f as v,E as y,i as l,j as m,k as p,o as i,H as T,q as A}from"./BBDMeJL4.js";import{B as E}from"./Dtbtl5su.js";function k(d,_,e){var s;o&&(s=A,v());var r=new E(d);f(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{k as c};
@@ -1 +1 @@
1
- import{Y as T,a6 as H,g as m,s as n,a1 as N,ag as Y}from"./yMbbhP0p.js";import{i as G}from"./D91YXE6T.js";import{u as P,w as h}from"./CgcfyvoD.js";import{a as L}from"./DlkslpnI.js";import{n as b}from"./BUMhcVI4.js";function mt(...t){return t.filter(Boolean).join(" ")}const V=typeof document<"u";let D=0;class q{#t=T(H([]));get toasts(){return m(this.#t)}set toasts(e){n(this.#t,e,!0)}#e=T(H([]));get heights(){return m(this.#e)}set heights(e){n(this.#e,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{V&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:r})=>{const o=this.toasts.findIndex(d=>d.id===e),u=this.toasts[o];this.toasts[o]={...u,...s,id:e,title:r,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,r=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:D++,o=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,u=e.type===void 0?"default":e.type;return N(()=>{this.toasts.find($=>$.id===r)?this.updateToast({id:r,data:e,type:u,message:s,dismissible:o}):this.addToast({...i,id:r,title:s,dismissible:o,type:u})}),r};dismiss=e=>(N(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const r=e instanceof Promise?e:e();let o=i!==void 0;return r.then(u=>{if(typeof u=="object"&&u&&"ok"in u&&typeof u.ok=="boolean"&&!u.ok){o=!1;const d=z(u);this.create({id:i,type:"error",message:d})}else if(s.success!==void 0){o=!1;const d=typeof s.success=="function"?s.success(u):s.success;this.create({id:i,type:"success",message:d})}}).catch(u=>{if(s.error!==void 0){o=!1;const d=typeof s.error=="function"?s.error(u):s.error;this.create({id:i,type:"error",message:d})}}).finally(()=>{o&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||D++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function z(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const f=new q;function K(t,e){return f.create({message:t,...e})}class St{#t=Y(()=>f.toasts.filter(e=>!e.dismiss));get toasts(){return m(this.#t)}}const Q=K,a=Object.assign(Q,{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading,getActiveToasts:()=>f.toasts.filter(t=>!t.dismiss)}),X=800;function Z(){let t=T(!1),e=T(null),s=T(null),i=null,r=null,o=!1;function u(p,S,y,l){i&&i.repo===p&&i.type===S&&i.id===y?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:S,id:y,payload:{...l}},d()}function d(){r&&clearTimeout(r),r=setTimeout($,X)}async function $(){if(r=null,!o&&i){const{repo:p,type:S,id:y,payload:l}=i;i=null,o=!0,n(t,!0),n(s,null);try{if(await P(p,S,y,l),n(e,new Date,!0),l.data?.name){const E=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===y);E&&(E.title=l.data.name)}}catch(g){n(s,g.message??"Save failed",!0);const E=g.status??g.statusCode;(!E||E>=500)&&(i={repo:p,type:S,id:y,payload:l})}finally{n(t,!1),o=!1,i&&$()}}}function F(){r&&(clearTimeout(r),r=null),i&&$()}async function J(p,S,y,l){n(t,!0),n(s,null);try{const g=await P(p,S,y,l);return n(e,new Date,!0),g}catch(g){return n(s,g.message??"Save failed",!0),null}finally{n(t,!1)}}function R(){n(s,null),n(e,null),i=null,r&&(clearTimeout(r),r=null)}return{get saving(){return m(t)},get lastSaved(){return m(e)},get error(){return m(s)},get hasPending(){return!!(i||o)},scheduleAutoSave:u,flush:F,saveEntity:J,reset:R}}const v=Z();let c=null,U=null,j=null,B=[],_=null,x=1e3,k=T(!1),M=T(null);const w=new Map,I={},A={};function C(t,e){w.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;a(i)}function tt(t){for(const[e,s]of w)s.repo===t&&(clearTimeout(s.timer),w.delete(e))}function et(t){const e=L.user?.displayName;if(t.type==="sync_progress"){const s=I[t.repo];if(s){const i=t.message.trim(),r=i.match(/^Syncing from source:\s*(.+)$/i);r&&(A[t.repo]=`Syncing ${r[1].trim()}…`);const o=A[t.repo]??`Syncing ${t.repo}…`;a.loading(o,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),b.selectedRepo===t.repo&&b.selectedType===t.entityType&&b.selectedId===t.entityId){v.hasPending?a(`${t.actor} also saved changes to this entity`):G();return}const i=w.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>C(t.actor,i),1e4);else{const r={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>C(t.actor,r),1e4)};w.set(t.actor,r)}return}if(t.type==="session_commit"){if(e&&t.actor===e){n(M,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;a(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(tt(t.repo),!I[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;a.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){a(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){a(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){a(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){U?.(t);return}if(t.type==="online"){j?.(t);return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&b.selectedRepo===t.repo&&b.deselect(),h.load();return}}function W(){if(typeof window>"u"||c&&(c.readyState===WebSocket.OPEN||c.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;c=new WebSocket(e),c.binaryType="arraybuffer",c.onopen=()=>{n(k,!0),x=1e3,h.refreshAll();for(const s of B)s()},c.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){c?.send(JSON.stringify({type:"pong"}));return}const r=i;r.type&&r.type!=="toast"&&et(r)}catch{}},c.onclose=()=>{n(k,!1),c=null,_=setTimeout(()=>{x=Math.min(x*2,1e4),W()},x)},c.onerror=()=>{}}function st(){_&&(clearTimeout(_),_=null),c&&(c.close(),c=null),n(k,!1);for(const[,t]of w)clearTimeout(t.timer);w.clear()}function it(t,e=4e3){a(t,{duration:e})}function rt(t,e){const s=crypto.randomUUID();return e?.loading?a.loading(t,{id:s,duration:36e5}):a(t,{id:s}),s}function nt(t,e,s){if(s?.loading){a.loading(e,{id:t});return}/failed|error/i.test(e)?a.error(e,{id:t,duration:s?.duration??6e3}):a.success(e,{id:t,duration:s?.duration??4e3})}function ot(t){const e=crypto.randomUUID();I[t]=e,a.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function ct(t,e,s){const i=I[t];i&&(delete I[t],delete A[t],s?a.error(e,{id:i,duration:6e3}):a.success(e,{id:i,duration:4e3}))}function at(t){U=t}function ut(t){j=t}function lt(t){B.push(t)}function ft(t){c?.readyState===WebSocket.OPEN&&c.send(JSON.stringify(t))}const Tt={get connected(){return m(k)},get lastAutoSaved(){return m(M)},get ws(){return c},connect:W,disconnect:st,showToast:it,showPersistentToast:rt,updateToast:nt,startSyncToast:ot,finishSyncToast:ct,send:ft,setPresenceHandler:at,setOnlineHandler:ut,addConnectHandler:lt};export{St as S,mt as c,v as e,Tt as r,f as t};
1
+ import{Y as T,ag as H,g as m,s as n,a1 as N,ae as Y}from"./BBDMeJL4.js";import{i as G}from"./BmP3yl81.js";import{u as P,w as h}from"./B3cbqYdb.js";import{a as L}from"./C8t_lVji.js";import{n as b}from"./Dx6YFABE.js";function mt(...t){return t.filter(Boolean).join(" ")}const V=typeof document<"u";let D=0;class q{#t=T(H([]));get toasts(){return m(this.#t)}set toasts(e){n(this.#t,e,!0)}#e=T(H([]));get heights(){return m(this.#e)}set heights(e){n(this.#e,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{V&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:r})=>{const o=this.toasts.findIndex(d=>d.id===e),u=this.toasts[o];this.toasts[o]={...u,...s,id:e,title:r,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,r=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:D++,o=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,u=e.type===void 0?"default":e.type;return N(()=>{this.toasts.find($=>$.id===r)?this.updateToast({id:r,data:e,type:u,message:s,dismissible:o}):this.addToast({...i,id:r,title:s,dismissible:o,type:u})}),r};dismiss=e=>(N(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const r=e instanceof Promise?e:e();let o=i!==void 0;return r.then(u=>{if(typeof u=="object"&&u&&"ok"in u&&typeof u.ok=="boolean"&&!u.ok){o=!1;const d=z(u);this.create({id:i,type:"error",message:d})}else if(s.success!==void 0){o=!1;const d=typeof s.success=="function"?s.success(u):s.success;this.create({id:i,type:"success",message:d})}}).catch(u=>{if(s.error!==void 0){o=!1;const d=typeof s.error=="function"?s.error(u):s.error;this.create({id:i,type:"error",message:d})}}).finally(()=>{o&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||D++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function z(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const f=new q;function K(t,e){return f.create({message:t,...e})}class St{#t=Y(()=>f.toasts.filter(e=>!e.dismiss));get toasts(){return m(this.#t)}}const Q=K,a=Object.assign(Q,{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading,getActiveToasts:()=>f.toasts.filter(t=>!t.dismiss)}),X=800;function Z(){let t=T(!1),e=T(null),s=T(null),i=null,r=null,o=!1;function u(p,S,y,l){i&&i.repo===p&&i.type===S&&i.id===y?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:S,id:y,payload:{...l}},d()}function d(){r&&clearTimeout(r),r=setTimeout($,X)}async function $(){if(r=null,!o&&i){const{repo:p,type:S,id:y,payload:l}=i;i=null,o=!0,n(t,!0),n(s,null);try{if(await P(p,S,y,l),n(e,new Date,!0),l.data?.name){const E=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===y);E&&(E.title=l.data.name)}}catch(g){n(s,g.message??"Save failed",!0);const E=g.status??g.statusCode;(!E||E>=500)&&(i={repo:p,type:S,id:y,payload:l})}finally{n(t,!1),o=!1,i&&$()}}}function F(){r&&(clearTimeout(r),r=null),i&&$()}async function J(p,S,y,l){n(t,!0),n(s,null);try{const g=await P(p,S,y,l);return n(e,new Date,!0),g}catch(g){return n(s,g.message??"Save failed",!0),null}finally{n(t,!1)}}function R(){n(s,null),n(e,null),i=null,r&&(clearTimeout(r),r=null)}return{get saving(){return m(t)},get lastSaved(){return m(e)},get error(){return m(s)},get hasPending(){return!!(i||o)},scheduleAutoSave:u,flush:F,saveEntity:J,reset:R}}const v=Z();let c=null,U=null,j=null,B=[],_=null,x=1e3,k=T(!1),M=T(null);const w=new Map,I={},A={};function C(t,e){w.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;a(i)}function tt(t){for(const[e,s]of w)s.repo===t&&(clearTimeout(s.timer),w.delete(e))}function et(t){const e=L.user?.displayName;if(t.type==="sync_progress"){const s=I[t.repo];if(s){const i=t.message.trim(),r=i.match(/^Syncing from source:\s*(.+)$/i);r&&(A[t.repo]=`Syncing ${r[1].trim()}…`);const o=A[t.repo]??`Syncing ${t.repo}…`;a.loading(o,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),b.selectedRepo===t.repo&&b.selectedType===t.entityType&&b.selectedId===t.entityId){v.hasPending?a(`${t.actor} also saved changes to this entity`):G();return}const i=w.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>C(t.actor,i),1e4);else{const r={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>C(t.actor,r),1e4)};w.set(t.actor,r)}return}if(t.type==="session_commit"){if(e&&t.actor===e){n(M,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;a(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(tt(t.repo),!I[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;a.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){a(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){a(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){a(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){U?.(t);return}if(t.type==="online"){j?.(t);return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&b.selectedRepo===t.repo&&b.deselect(),h.load();return}}function W(){if(typeof window>"u"||c&&(c.readyState===WebSocket.OPEN||c.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;c=new WebSocket(e),c.binaryType="arraybuffer",c.onopen=()=>{n(k,!0),x=1e3,h.refreshAll();for(const s of B)s()},c.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){c?.send(JSON.stringify({type:"pong"}));return}const r=i;r.type&&r.type!=="toast"&&et(r)}catch{}},c.onclose=()=>{n(k,!1),c=null,_=setTimeout(()=>{x=Math.min(x*2,1e4),W()},x)},c.onerror=()=>{}}function st(){_&&(clearTimeout(_),_=null),c&&(c.close(),c=null),n(k,!1);for(const[,t]of w)clearTimeout(t.timer);w.clear()}function it(t,e=4e3){a(t,{duration:e})}function rt(t,e){const s=crypto.randomUUID();return e?.loading?a.loading(t,{id:s,duration:36e5}):a(t,{id:s}),s}function nt(t,e,s){if(s?.loading){a.loading(e,{id:t});return}/failed|error/i.test(e)?a.error(e,{id:t,duration:s?.duration??6e3}):a.success(e,{id:t,duration:s?.duration??4e3})}function ot(t){const e=crypto.randomUUID();I[t]=e,a.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function ct(t,e,s){const i=I[t];i&&(delete I[t],delete A[t],s?a.error(e,{id:i,duration:6e3}):a.success(e,{id:i,duration:4e3}))}function at(t){U=t}function ut(t){j=t}function lt(t){B.push(t)}function ft(t){c?.readyState===WebSocket.OPEN&&c.send(JSON.stringify(t))}const Tt={get connected(){return m(k)},get lastAutoSaved(){return m(M)},get ws(){return c},connect:W,disconnect:st,showToast:it,showPersistentToast:rt,updateToast:nt,startSyncToast:ot,finishSyncToast:ct,send:ft,setPresenceHandler:at,setOnlineHandler:ut,addConnectHandler:lt};export{St as S,mt as c,v as e,Tt as r,f as t};
@@ -1 +1 @@
1
- import{u,e as y,Z as _,_ as o,h as t,C as g,V as i,o as l,k as d,q as p,v}from"./yMbbhP0p.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=v(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(u()));try{y(()=>r(a),_|o)}finally{E&&(l(!0),d(s))}}export{C as h};
1
+ import{u,e as y,Z as _,_ as o,h as t,C as g,V as i,o as l,k as d,q as p,v}from"./BBDMeJL4.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=v(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(u()));try{y(()=>r(a),_|o)}finally{E&&(l(!0),d(s))}}export{C as h};
@@ -1 +1 @@
1
- import{u as O,e as y,h as M,k as b,v as Z,f as $,g as V,i as j,w as ee,j as U,o as F,q as H,C as re,x as ne,y as X,z as fe,A as m,B as L,D as ae,F as ie,G as le,I as ue,J as B,K as se,L as oe,m as te,M as Y,N as ve,O as J,P as K,Q as z,R as de,S as ce,T as pe,U as _e,V as he,W as P,X as ge}from"./yMbbhP0p.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];K(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;ce(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)pe(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&P)!==0;if(a){var t=e;u=M?b(Z(t)):t.appendChild(O())}M&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?J(n):(n.f^=m,D(n,null,u)):K(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(M){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){M&&H.nodeType===re&&H.data===ne&&(u=H,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),M&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,M&&(u=H)}function k(e){for(;e!==null&&(e.f&de)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&ge)!==0,u=i.length,p=e.items,a=k(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)D(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),D(r,N,l),n=r,o=[],c=[],a=k(n.next);continue}if((r.f&z)!==0&&(J(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)D(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),D(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=k(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=k(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=k(a.next);var w=_.length;if(w>0){var R=(d&P)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&_e(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function D(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=he(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
1
+ import{u as O,e as y,h as M,k as b,v as Z,f as $,g as V,i as j,w as ee,j as U,o as F,q as H,C as re,x as ne,y as X,z as fe,A as m,B as L,D as ae,F as ie,G as le,I as ue,J as B,K as se,L as oe,m as te,M as Y,N as ve,O as J,P as K,Q as z,R as de,S as ce,T as pe,U as _e,V as he,W as P,X as ge}from"./BBDMeJL4.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];K(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;ce(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)pe(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&P)!==0;if(a){var t=e;u=M?b(Z(t)):t.appendChild(O())}M&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?J(n):(n.f^=m,D(n,null,u)):K(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(M){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){M&&H.nodeType===re&&H.data===ne&&(u=H,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),M&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,M&&(u=H)}function k(e){for(;e!==null&&(e.f&de)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&ge)!==0,u=i.length,p=e.items,a=k(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)D(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),D(r,N,l),n=r,o=[],c=[],a=k(n.next);continue}if((r.f&z)!==0&&(J(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)D(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),D(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=k(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=k(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=k(a.next);var w=_.length;if(w>0){var R=(d&P)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&_e(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function D(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=he(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
@@ -0,0 +1 @@
1
+ import{ah as I,m as M,ai as N,aj as U,g as d,ak as j,al as Y,s as y,am as w,an as $,ao as D,ag as q,ap as z,aq as h,ar as G,as as C,a1 as Z,at as F,au as H,av as J,ab as Q,G as V,aw as p,ax as E,ay as A,az as W,M as X,aA as g,aB as R}from"./BBDMeJL4.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:M(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=N(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?U(e):d(n.source)}function te(){const e={};function r(){j(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&C)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var B=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||B||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&G)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
@@ -1 +1 @@
1
- import{g as ar,a as ge,b as Be}from"./DfwW1gF2.js";import{b as ir}from"./1vztr6_A.js";import{p as lr,a4 as cr,b as dr,c as Se,aS as Me,r as Ve}from"./yMbbhP0p.js";import{a as Te,s as Ge}from"./l5w7mUkV.js";import{i as ur,b as Pe}from"./DSZYl5ah.js";import{p as re,r as mr}from"./DVyuW48M.js";const fr=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},pr=(e,t)=>({classGroupId:e,validator:t}),We=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),fe="-",Re=[],br="arbitrary..",gr=e=>{const t=yr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return hr(a);const m=a.split(fe),d=m[0]===""&&m.length>1?1:0;return Ue(m,d,t)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=r[a],b=o[a];return d?b?fr(b,d):d:b||Re}return o[a]||Re}}},Ue=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const b=Ue(e,t+1,s);if(b)return b}const a=o.validators;if(a===null)return;const m=t===0?e.join(fe):e.slice(t).join(fe),d=a.length;for(let b=0;b<d;b++){const z=a[b];if(z.validator(m))return z.classGroupId}},hr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?br+r:void 0})(),yr=e=>{const{theme:t,classGroups:o}=e;return vr(o,t)},vr=(e,t)=>{const o=We();for(const r in e){const n=e[r];ke(n,o,r,t)}return o},ke=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];wr(a,t,o,r)}},wr=(e,t,o,r)=>{if(typeof e=="string"){xr(e,t,o);return}if(typeof e=="function"){kr(e,t,o,r);return}Cr(e,t,o,r)},xr=(e,t,o)=>{const r=e===""?t:De(t,e);r.classGroupId=o},kr=(e,t,o,r)=>{if(zr(e)){ke(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pr(o,e))},Cr=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];ke(d,De(t,m),o,r)}},De=(e,t)=>{let o=e;const r=t.split(fe),n=r.length;for(let s=0;s<n;s++){const a=r[s];let m=o.nextPart.get(a);m||(m=We(),o.nextPart.set(a,m)),o=m}return o},zr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ar=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,a)=>{o[s]=a,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},ye="!",Ie=":",Sr=[],Ne=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),Mr=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let a=0,m=0,d=0,b;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ie){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){b=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const A=s.length===0?n:n.slice(d);let S=A,g=!1;A.endsWith(ye)?(S=A.slice(0,-1),g=!0):A.startsWith(ye)&&(S=A.slice(1),g=!0);const I=b&&b>d?b-d:void 0;return Ne(s,g,S,I)};if(t){const n=t+Ie,s=r;r=a=>a.startsWith(n)?s(a.slice(n.length)):Ne(Sr,!1,a,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},Vr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=t.has(a);m||d?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},Tr=e=>({cache:Ar(e.cacheSize),parseClassName:Mr(e),sortModifiers:Vr(e),...gr(e)}),Gr=/\s+/,Pr=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,a=[],m=e.trim().split(Gr);let d="";for(let b=m.length-1;b>=0;b-=1){const z=m[b],{isExternal:A,modifiers:S,hasImportantModifier:g,baseClassName:I,maybePostfixModifierPosition:k}=o(z);if(A){d=z+(d.length>0?" "+d:d);continue}let G=!!k,E=r(G?I.substring(0,k):I);if(!E){if(!G){d=z+(d.length>0?" "+d:d);continue}if(E=r(I),!E){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=S.length===0?"":S.length===1?S[0]:s(S).join(":"),N=g?j+ye:j,K=N+E;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(E,G);for(let B=0;B<P.length;++B){const J=P[B];a.push(N+J)}d=z+(d.length>0?" "+d:d)}return d},Rr=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Ke(o))&&(n&&(n+=" "),n+=r);return n},Ke=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Ke(e[r]))&&(o&&(o+=" "),o+=t);return o},ve=(e,...t)=>{let o,r,n,s;const a=d=>{const b=t.reduce((z,A)=>A(z),e());return o=Tr(b),r=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const b=r(d);if(b)return b;const z=Pr(d,o);return n(d,z),z};return s=a,(...d)=>s(Rr(...d))},Ir=[],V=e=>{const t=o=>o[e]||Ir;return t.isThemeGetter=!0,t},Ye=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_r=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Er=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Nr.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith("%")&&p(e.slice(0,-1)),U=e=>_r.test(e),Xe=()=>!0,Fr=e=>Or.test(e)&&!Er.test(e),Ce=()=>!1,Br=e=>Lr.test(e),Wr=e=>jr.test(e),Ur=e=>!i(e)&&!l(e),Dr=e=>X(e,Qe,Ce),i=e=>Ye.test(e),H=e=>X(e,Ze,Fr),_e=e=>X(e,Zr,p),Kr=e=>X(e,er,Xe),Yr=e=>X(e,$e,Ce),Oe=e=>X(e,Je,Ce),qr=e=>X(e,He,Wr),ce=e=>X(e,rr,Br),l=e=>qe.test(e),te=e=>Q(e,Ze),Xr=e=>Q(e,$e),Ee=e=>Q(e,Je),Jr=e=>Q(e,Qe),Hr=e=>Q(e,He),de=e=>Q(e,rr,!0),Qr=e=>Q(e,er,!0),X=(e,t,o)=>{const r=Ye.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},Q=(e,t,o=!1)=>{const r=qe.exec(e);return r?r[1]?t(r[1]):o:!1},Je=e=>e==="position"||e==="percentage",He=e=>e==="image"||e==="url",Qe=e=>e==="length"||e==="size"||e==="bg-size",Ze=e=>e==="length",Zr=e=>e==="number",$e=e=>e==="family-name",er=e=>e==="number"||e==="weight",rr=e=>e==="shadow",we=()=>{const e=V("color"),t=V("font"),o=V("text"),r=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),b=V("radius"),z=V("shadow"),A=V("inset-shadow"),S=V("text-shadow"),g=V("drop-shadow"),I=V("blur"),k=V("perspective"),G=V("aspect"),E=V("ease"),j=V("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),l,i],B=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[l,i,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",l,i],ee=()=>["auto",{span:["full",q,l,i]},q,l,i],Z=()=>[q,"auto",l,i],se=()=>["auto","min","max","fr",l,i],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],y=()=>["start","end","center","stretch","center-safe","end-safe"],f=()=>["auto",...u()],v=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],w=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,l,i],F=()=>[...K(),Ee,Oe,{position:[l,i]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Jr,Dr,{size:[l,i]}],W=()=>[he,te,H],x=()=>["","none","full",b,l,i],M=()=>["",p,te,H],ne=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[p,he,Ee,Oe],Ae=()=>["","none",I,l,i],ae=()=>["none",p,l,i],ie=()=>["none",p,l,i],be=()=>[p,l,i],le=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Xe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Ur],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",p],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,G]}],container:["container"],columns:[{columns:[p,i,l,m]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,Y,"auto","initial","none",i]}],grow:[{grow:["",p,l,i]}],shrink:[{shrink:["",p,l,i]}],order:[{order:[q,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...y(),"normal"]}],"justify-self":[{"justify-self":["auto",...y()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...y(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...y(),"baseline"]}],"place-self":[{"place-self":["auto",...y()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:f()}],mx:[{mx:f()}],my:[{my:f()}],ms:[{ms:f()}],me:[{me:f()}],mbs:[{mbs:f()}],mbe:[{mbe:f()}],mt:[{mt:f()}],mr:[{mr:f()}],mb:[{mb:f()}],ml:[{ml:f()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],"inline-size":[{inline:["auto",...w()]}],"min-inline-size":[{"min-inline":["auto",...w()]}],"max-inline-size":[{"max-inline":["none",...w()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...v()]}],"min-w":[{"min-w":[m,"screen","none",...v()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",o,te,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Qr,Kr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",he,i]}],"font-family":[{font:[Xr,Yr,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[p,"none",l,_e]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,l,i],radial:["",l,i],conic:[q,l,i]},Hr,qr]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,l,i]}],"outline-w":[{outline:["",p,te,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,de,ce]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",A,de,ce]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",S,de,ce]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,l,i]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Ae()}],brightness:[{brightness:[p,l,i]}],contrast:[{contrast:[p,l,i]}],"drop-shadow":[{"drop-shadow":["","none",g,de,ce]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,l,i]}],"hue-rotate":[{"hue-rotate":[p,l,i]}],invert:[{invert:["",p,l,i]}],saturate:[{saturate:[p,l,i]}],sepia:[{sepia:["",p,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[p,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[p,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,l,i]}],"backdrop-invert":[{"backdrop-invert":["",p,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[p,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[p,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",p,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",l,i]}],ease:[{ease:["linear","initial",E,l,i]}],delay:[{delay:[p,l,i]}],animate:[{animate:["none",j,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,i]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,te,H,_e]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$r=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:s={}})=>(oe(e,"cacheSize",t),oe(e,"prefix",o),oe(e,"experimentalParseClassName",r),ue(e.theme,s.theme),ue(e.classGroups,s.classGroups),ue(e.conflictingClassGroups,s.conflictingClassGroups),ue(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),oe(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),me(e.theme,n.theme),me(e.classGroups,n.classGroups),me(e.conflictingClassGroups,n.conflictingClassGroups),me(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),tr(e,n,"orderSensitiveModifiers"),e),oe=(e,t,o)=>{o!==void 0&&(e[t]=o)},ue=(e,t)=>{if(t)for(const o in t)oe(e,o,t[o])},me=(e,t)=>{if(t)for(const o in t)tr(e,t,o)},tr=(e,t,o)=>{const r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},et=(e,...t)=>typeof e=="function"?ve(we,e,...t):ve(()=>$r(we(),e),...t),or=ve(we);function Le(...e){return or(ir(e))}var rt=/\s+/g,tt=e=>typeof e!="string"||!e?e:e.replace(rt," ").trim(),pe=(...e)=>{const t=[],o=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let s=0,a=r.length;s<a;s++)o(r[s]);return}const n=typeof r;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&r!==r)return;t.push(String(r))}else if(n==="object"){const s=Object.keys(r);for(let a=0,m=s.length;a<m;a++){const d=s[a];r[d]&&t.push(d)}}};for(let r=0,n=e.length;r<n;r++){const s=e[r];s!=null&&o(s)}return t.length>0?tt(t.join(" ")):void 0},je=e=>e===!1?"false":e===!0?"true":e===0?"0":e,O=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},ot=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!r.includes(s)||e[s]!==t[s])return!1}return!0},st=(e,t)=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const r=t[o];o in e?e[o]=pe(e[o],r):e[o]=r}return e},sr=(e,t)=>{for(let o=0;o<e.length;o++){const r=e[o];Array.isArray(r)?sr(r,t):r&&t.push(r)}},nr=(...e)=>{const t=[];sr(e,t);const o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o},xe=(e,t)=>{const o={};for(const r in e){const n=e[r];if(r in t){const s=t[r];Array.isArray(n)||Array.isArray(s)?o[r]=nr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[r]=xe(n,s):o[r]=s+" "+n}else o[r]=n}for(const r in t)r in e||(o[r]=t[r]);return o},nt={twMerge:!0,twMergeConfig:{}};function at(){let e=null,t={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(r){o=r},reset(){e=null,t={},o=!1}}}var D=at(),it=e=>{const t=(r,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:b=[],defaultVariants:z={}}=r,A={...nt,...n},S=s?.base?pe(s.base,r?.base):r?.base,g=s?.variants&&!O(s.variants)?xe(m,s.variants):m,I=s?.defaultVariants&&!O(s.defaultVariants)?{...s.defaultVariants,...z}:z;!O(A.twMergeConfig)&&!ot(A.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=A.twMergeConfig);const k=O(s?.slots),G=O(a)?{}:{base:pe(r?.base,k&&s?.base),...a},E=k?G:st({...s?.slots},O(G)?{base:r?.base}:G),j=O(s?.compoundVariants)?d:nr(s?.compoundVariants,d),N=P=>{if(O(g)&&O(a)&&k)return e(S,P?.class,P?.className)(A);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);const B=(h,y=g,f=null,v=null)=>{const w=y[h];if(!w||O(w))return null;const C=v?.[h]??P?.[h];if(C===null)return null;const c=je(C);if(typeof c=="object")return null;const F=I?.[h],_=c??je(F);return w[_||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),y=[];for(let f=0;f<h.length;f++){const v=B(h[f],g);v&&y.push(v)}return y},u=(h,y)=>{if(!g||typeof g!="object")return null;const f=[];for(const v in g){const w=B(v,g,h,y),C=h==="base"&&typeof w=="string"?w:w&&w[h];C&&f.push(C)}return f},R={};for(const h in P){const y=P[h];y!==void 0&&(R[h]=y)}const $=(h,y)=>{const f=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{...I,...R,...f,...y}},ee=(h=[],y)=>{const f=[],v=h.length;for(let w=0;w<v;w++){const{class:C,className:c,...F}=h[w];let _=!0;const L=$(null,y);for(const W in F){const x=F[W],M=L[W];if(Array.isArray(x)){if(!x.includes(M)){_=!1;break}}else{if((x==null||x===!1)&&(M==null||M===!1))continue;if(M!==x){_=!1;break}}}_&&(C&&f.push(C),c&&f.push(c))}return f},Z=h=>{const y=ee(j,h);if(!Array.isArray(y))return y;const f={},v=e;for(let w=0;w<y.length;w++){const C=y[w];if(typeof C=="string")f.base=v(f.base,C)(A);else if(typeof C=="object")for(const c in C)f[c]=v(f[c],C[c])(A)}return f},se=h=>{if(b.length<1)return null;const y={},f=$(null,h);for(let v=0;v<b.length;v++){const{slots:w=[],class:C,className:c,...F}=b[v];if(!O(F)){let _=!0;for(const L in F){const W=f[L],x=F[L];if(W===void 0||(Array.isArray(x)?!x.includes(W):x!==W)){_=!1;break}}if(!_)continue}for(let _=0;_<w.length;_++){const L=w[_];y[L]||(y[L]=[]),y[L].push([C,c])}}return y};if(!O(a)||!k){const h={};if(typeof E=="object"&&!O(E)){const y=e;for(const f in E)h[f]=v=>{const w=Z(v),C=se(v);return y(E[f],u(f,v),w?w[f]:void 0,C?C[f]:void 0,v?.class,v?.className)(A)}}return h}return e(S,J(),ee(j),P?.class,P?.className)(A)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return N.variantKeys=K(),N.extend=s,N.base=S,N.slots=E,N.variants=g,N.defaultVariants=I,N.compoundSlots=b,N.compoundVariants=j,N};return{tv:t,createTV:r=>(n,s)=>t(n,s?xe(r,s):r)}},lt=e=>O(e)?or:et({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),ct=(e,t)=>{const o=pe(e);return!o||!(t?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=lt(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},dt=(...e)=>t=>ct(e,t),{tv:ut}=it(dt);const Fe=ut({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var mt=Be("<a><!></a>"),ft=Be("<button><!></button>");function wt(e,t){lr(t,!0);let o=re(t,"variant",3,"default"),r=re(t,"size",3,"default"),n=re(t,"ref",15,null),s=re(t,"href",3,void 0),a=re(t,"type",3,"button"),m=mr(t,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=ar(),b=cr(d);{var z=S=>{var g=mt();Te(g,k=>({class:k,href:t.disabled?void 0:s(),"aria-disabled":t.disabled,role:t.disabled?"link":void 0,tabindex:t.disabled?-1:void 0,...m}),[()=>Le(Fe({variant:o(),size:r()}),t.class)]);var I=Se(g);Ge(I,()=>t.children??Me),Ve(g),Pe(g,k=>n(k),()=>n()),ge(S,g)},A=S=>{var g=ft();Te(g,k=>({class:k,type:a(),disabled:t.disabled,...m}),[()=>Le(Fe({variant:o(),size:r()}),t.class)]);var I=Se(g);Ge(I,()=>t.children??Me),Ve(g),Pe(g,k=>n(k),()=>n()),ge(S,g)};ur(b,S=>{s()?S(z):S(A,!1)})}ge(e,d),dr()}export{wt as B,Fe as b,Le as c,ut as t};
1
+ import{g as ar,a as ge,b as Be}from"./yEDUbZbk.js";import{b as ir}from"./Bt7P6UBm.js";import{p as lr,a4 as cr,b as dr,c as Me,ah as Se,r as Ve}from"./BBDMeJL4.js";import{a as Te,s as Ge}from"./BMrbs3EC.js";import{i as ur,b as Pe}from"./Dtbtl5su.js";import{p as re,r as mr}from"./CpXgbTWt.js";const fr=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},pr=(e,t)=>({classGroupId:e,validator:t}),We=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),fe="-",Re=[],br="arbitrary..",gr=e=>{const t=yr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return hr(a);const m=a.split(fe),d=m[0]===""&&m.length>1?1:0;return Ue(m,d,t)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=r[a],b=o[a];return d?b?fr(b,d):d:b||Re}return o[a]||Re}}},Ue=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const b=Ue(e,t+1,s);if(b)return b}const a=o.validators;if(a===null)return;const m=t===0?e.join(fe):e.slice(t).join(fe),d=a.length;for(let b=0;b<d;b++){const z=a[b];if(z.validator(m))return z.classGroupId}},hr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?br+r:void 0})(),yr=e=>{const{theme:t,classGroups:o}=e;return vr(o,t)},vr=(e,t)=>{const o=We();for(const r in e){const n=e[r];ke(n,o,r,t)}return o},ke=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];wr(a,t,o,r)}},wr=(e,t,o,r)=>{if(typeof e=="string"){xr(e,t,o);return}if(typeof e=="function"){kr(e,t,o,r);return}Cr(e,t,o,r)},xr=(e,t,o)=>{const r=e===""?t:De(t,e);r.classGroupId=o},kr=(e,t,o,r)=>{if(zr(e)){ke(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pr(o,e))},Cr=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];ke(d,De(t,m),o,r)}},De=(e,t)=>{let o=e;const r=t.split(fe),n=r.length;for(let s=0;s<n;s++){const a=r[s];let m=o.nextPart.get(a);m||(m=We(),o.nextPart.set(a,m)),o=m}return o},zr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ar=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,a)=>{o[s]=a,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},ye="!",Ie=":",Mr=[],Ne=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),Sr=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let a=0,m=0,d=0,b;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ie){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){b=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const A=s.length===0?n:n.slice(d);let M=A,g=!1;A.endsWith(ye)?(M=A.slice(0,-1),g=!0):A.startsWith(ye)&&(M=A.slice(1),g=!0);const I=b&&b>d?b-d:void 0;return Ne(s,g,M,I)};if(t){const n=t+Ie,s=r;r=a=>a.startsWith(n)?s(a.slice(n.length)):Ne(Mr,!1,a,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},Vr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=t.has(a);m||d?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},Tr=e=>({cache:Ar(e.cacheSize),parseClassName:Sr(e),sortModifiers:Vr(e),...gr(e)}),Gr=/\s+/,Pr=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,a=[],m=e.trim().split(Gr);let d="";for(let b=m.length-1;b>=0;b-=1){const z=m[b],{isExternal:A,modifiers:M,hasImportantModifier:g,baseClassName:I,maybePostfixModifierPosition:k}=o(z);if(A){d=z+(d.length>0?" "+d:d);continue}let G=!!k,E=r(G?I.substring(0,k):I);if(!E){if(!G){d=z+(d.length>0?" "+d:d);continue}if(E=r(I),!E){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=M.length===0?"":M.length===1?M[0]:s(M).join(":"),N=g?j+ye:j,K=N+E;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(E,G);for(let B=0;B<P.length;++B){const J=P[B];a.push(N+J)}d=z+(d.length>0?" "+d:d)}return d},Rr=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Ke(o))&&(n&&(n+=" "),n+=r);return n},Ke=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Ke(e[r]))&&(o&&(o+=" "),o+=t);return o},ve=(e,...t)=>{let o,r,n,s;const a=d=>{const b=t.reduce((z,A)=>A(z),e());return o=Tr(b),r=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const b=r(d);if(b)return b;const z=Pr(d,o);return n(d,z),z};return s=a,(...d)=>s(Rr(...d))},Ir=[],V=e=>{const t=o=>o[e]||Ir;return t.isThemeGetter=!0,t},Ye=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_r=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Er=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Nr.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith("%")&&p(e.slice(0,-1)),U=e=>_r.test(e),Xe=()=>!0,Fr=e=>Or.test(e)&&!Er.test(e),Ce=()=>!1,Br=e=>Lr.test(e),Wr=e=>jr.test(e),Ur=e=>!i(e)&&!l(e),Dr=e=>X(e,Qe,Ce),i=e=>Ye.test(e),H=e=>X(e,Ze,Fr),_e=e=>X(e,Zr,p),Kr=e=>X(e,er,Xe),Yr=e=>X(e,$e,Ce),Oe=e=>X(e,Je,Ce),qr=e=>X(e,He,Wr),ce=e=>X(e,rr,Br),l=e=>qe.test(e),te=e=>Q(e,Ze),Xr=e=>Q(e,$e),Ee=e=>Q(e,Je),Jr=e=>Q(e,Qe),Hr=e=>Q(e,He),de=e=>Q(e,rr,!0),Qr=e=>Q(e,er,!0),X=(e,t,o)=>{const r=Ye.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},Q=(e,t,o=!1)=>{const r=qe.exec(e);return r?r[1]?t(r[1]):o:!1},Je=e=>e==="position"||e==="percentage",He=e=>e==="image"||e==="url",Qe=e=>e==="length"||e==="size"||e==="bg-size",Ze=e=>e==="length",Zr=e=>e==="number",$e=e=>e==="family-name",er=e=>e==="number"||e==="weight",rr=e=>e==="shadow",we=()=>{const e=V("color"),t=V("font"),o=V("text"),r=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),b=V("radius"),z=V("shadow"),A=V("inset-shadow"),M=V("text-shadow"),g=V("drop-shadow"),I=V("blur"),k=V("perspective"),G=V("aspect"),E=V("ease"),j=V("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),l,i],B=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[l,i,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",l,i],ee=()=>["auto",{span:["full",q,l,i]},q,l,i],Z=()=>[q,"auto",l,i],se=()=>["auto","min","max","fr",l,i],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],y=()=>["start","end","center","stretch","center-safe","end-safe"],f=()=>["auto",...u()],v=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],w=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,l,i],F=()=>[...K(),Ee,Oe,{position:[l,i]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Jr,Dr,{size:[l,i]}],W=()=>[he,te,H],x=()=>["","none","full",b,l,i],S=()=>["",p,te,H],ne=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[p,he,Ee,Oe],Ae=()=>["","none",I,l,i],ae=()=>["none",p,l,i],ie=()=>["none",p,l,i],be=()=>[p,l,i],le=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Xe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Ur],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",p],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,G]}],container:["container"],columns:[{columns:[p,i,l,m]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,Y,"auto","initial","none",i]}],grow:[{grow:["",p,l,i]}],shrink:[{shrink:["",p,l,i]}],order:[{order:[q,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...y(),"normal"]}],"justify-self":[{"justify-self":["auto",...y()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...y(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...y(),"baseline"]}],"place-self":[{"place-self":["auto",...y()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:f()}],mx:[{mx:f()}],my:[{my:f()}],ms:[{ms:f()}],me:[{me:f()}],mbs:[{mbs:f()}],mbe:[{mbe:f()}],mt:[{mt:f()}],mr:[{mr:f()}],mb:[{mb:f()}],ml:[{ml:f()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],"inline-size":[{inline:["auto",...w()]}],"min-inline-size":[{"min-inline":["auto",...w()]}],"max-inline-size":[{"max-inline":["none",...w()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...v()]}],"min-w":[{"min-w":[m,"screen","none",...v()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",o,te,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Qr,Kr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",he,i]}],"font-family":[{font:[Xr,Yr,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[p,"none",l,_e]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,l,i],radial:["",l,i],conic:[q,l,i]},Hr,qr]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-bs":[{"border-bs":S()}],"border-w-be":[{"border-be":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,l,i]}],"outline-w":[{outline:["",p,te,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,de,ce]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",A,de,ce]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",M,de,ce]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,l,i]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Ae()}],brightness:[{brightness:[p,l,i]}],contrast:[{contrast:[p,l,i]}],"drop-shadow":[{"drop-shadow":["","none",g,de,ce]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,l,i]}],"hue-rotate":[{"hue-rotate":[p,l,i]}],invert:[{invert:["",p,l,i]}],saturate:[{saturate:[p,l,i]}],sepia:[{sepia:["",p,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[p,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[p,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,l,i]}],"backdrop-invert":[{"backdrop-invert":["",p,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[p,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[p,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",p,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",l,i]}],ease:[{ease:["linear","initial",E,l,i]}],delay:[{delay:[p,l,i]}],animate:[{animate:["none",j,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,i]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,te,H,_e]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$r=(e,{cacheSize:t,prefix:o,experimentalParseClassName:r,extend:n={},override:s={}})=>(oe(e,"cacheSize",t),oe(e,"prefix",o),oe(e,"experimentalParseClassName",r),ue(e.theme,s.theme),ue(e.classGroups,s.classGroups),ue(e.conflictingClassGroups,s.conflictingClassGroups),ue(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),oe(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),me(e.theme,n.theme),me(e.classGroups,n.classGroups),me(e.conflictingClassGroups,n.conflictingClassGroups),me(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),tr(e,n,"orderSensitiveModifiers"),e),oe=(e,t,o)=>{o!==void 0&&(e[t]=o)},ue=(e,t)=>{if(t)for(const o in t)oe(e,o,t[o])},me=(e,t)=>{if(t)for(const o in t)tr(e,t,o)},tr=(e,t,o)=>{const r=t[o];r!==void 0&&(e[o]=e[o]?e[o].concat(r):r)},et=(e,...t)=>typeof e=="function"?ve(we,e,...t):ve(()=>$r(we(),e),...t),or=ve(we);function Le(...e){return or(ir(e))}var rt=/\s+/g,tt=e=>typeof e!="string"||!e?e:e.replace(rt," ").trim(),pe=(...e)=>{const t=[],o=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let s=0,a=r.length;s<a;s++)o(r[s]);return}const n=typeof r;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&r!==r)return;t.push(String(r))}else if(n==="object"){const s=Object.keys(r);for(let a=0,m=s.length;a<m;a++){const d=s[a];r[d]&&t.push(d)}}};for(let r=0,n=e.length;r<n;r++){const s=e[r];s!=null&&o(s)}return t.length>0?tt(t.join(" ")):void 0},je=e=>e===!1?"false":e===!0?"true":e===0?"0":e,O=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},ot=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!r.includes(s)||e[s]!==t[s])return!1}return!0},st=(e,t)=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const r=t[o];o in e?e[o]=pe(e[o],r):e[o]=r}return e},sr=(e,t)=>{for(let o=0;o<e.length;o++){const r=e[o];Array.isArray(r)?sr(r,t):r&&t.push(r)}},nr=(...e)=>{const t=[];sr(e,t);const o=[];for(let r=0;r<t.length;r++)t[r]&&o.push(t[r]);return o},xe=(e,t)=>{const o={};for(const r in e){const n=e[r];if(r in t){const s=t[r];Array.isArray(n)||Array.isArray(s)?o[r]=nr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[r]=xe(n,s):o[r]=s+" "+n}else o[r]=n}for(const r in t)r in e||(o[r]=t[r]);return o},nt={twMerge:!0,twMergeConfig:{}};function at(){let e=null,t={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(r){o=r},reset(){e=null,t={},o=!1}}}var D=at(),it=e=>{const t=(r,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:b=[],defaultVariants:z={}}=r,A={...nt,...n},M=s?.base?pe(s.base,r?.base):r?.base,g=s?.variants&&!O(s.variants)?xe(m,s.variants):m,I=s?.defaultVariants&&!O(s.defaultVariants)?{...s.defaultVariants,...z}:z;!O(A.twMergeConfig)&&!ot(A.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=A.twMergeConfig);const k=O(s?.slots),G=O(a)?{}:{base:pe(r?.base,k&&s?.base),...a},E=k?G:st({...s?.slots},O(G)?{base:r?.base}:G),j=O(s?.compoundVariants)?d:nr(s?.compoundVariants,d),N=P=>{if(O(g)&&O(a)&&k)return e(M,P?.class,P?.className)(A);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);const B=(h,y=g,f=null,v=null)=>{const w=y[h];if(!w||O(w))return null;const C=v?.[h]??P?.[h];if(C===null)return null;const c=je(C);if(typeof c=="object")return null;const F=I?.[h],_=c??je(F);return w[_||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),y=[];for(let f=0;f<h.length;f++){const v=B(h[f],g);v&&y.push(v)}return y},u=(h,y)=>{if(!g||typeof g!="object")return null;const f=[];for(const v in g){const w=B(v,g,h,y),C=h==="base"&&typeof w=="string"?w:w&&w[h];C&&f.push(C)}return f},R={};for(const h in P){const y=P[h];y!==void 0&&(R[h]=y)}const $=(h,y)=>{const f=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{...I,...R,...f,...y}},ee=(h=[],y)=>{const f=[],v=h.length;for(let w=0;w<v;w++){const{class:C,className:c,...F}=h[w];let _=!0;const L=$(null,y);for(const W in F){const x=F[W],S=L[W];if(Array.isArray(x)){if(!x.includes(S)){_=!1;break}}else{if((x==null||x===!1)&&(S==null||S===!1))continue;if(S!==x){_=!1;break}}}_&&(C&&f.push(C),c&&f.push(c))}return f},Z=h=>{const y=ee(j,h);if(!Array.isArray(y))return y;const f={},v=e;for(let w=0;w<y.length;w++){const C=y[w];if(typeof C=="string")f.base=v(f.base,C)(A);else if(typeof C=="object")for(const c in C)f[c]=v(f[c],C[c])(A)}return f},se=h=>{if(b.length<1)return null;const y={},f=$(null,h);for(let v=0;v<b.length;v++){const{slots:w=[],class:C,className:c,...F}=b[v];if(!O(F)){let _=!0;for(const L in F){const W=f[L],x=F[L];if(W===void 0||(Array.isArray(x)?!x.includes(W):x!==W)){_=!1;break}}if(!_)continue}for(let _=0;_<w.length;_++){const L=w[_];y[L]||(y[L]=[]),y[L].push([C,c])}}return y};if(!O(a)||!k){const h={};if(typeof E=="object"&&!O(E)){const y=e;for(const f in E)h[f]=v=>{const w=Z(v),C=se(v);return y(E[f],u(f,v),w?w[f]:void 0,C?C[f]:void 0,v?.class,v?.className)(A)}}return h}return e(M,J(),ee(j),P?.class,P?.className)(A)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return N.variantKeys=K(),N.extend=s,N.base=M,N.slots=E,N.variants=g,N.defaultVariants=I,N.compoundSlots=b,N.compoundVariants=j,N};return{tv:t,createTV:r=>(n,s)=>t(n,s?xe(r,s):r)}},lt=e=>O(e)?or:et({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),ct=(e,t)=>{const o=pe(e);return!o||!(t?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=lt(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},dt=(...e)=>t=>ct(e,t),{tv:ut}=it(dt);const Fe=ut({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var mt=Be("<a><!></a>"),ft=Be("<button><!></button>");function wt(e,t){lr(t,!0);let o=re(t,"variant",3,"default"),r=re(t,"size",3,"default"),n=re(t,"ref",15,null),s=re(t,"href",3,void 0),a=re(t,"type",3,"button"),m=mr(t,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=ar(),b=cr(d);{var z=M=>{var g=mt();Te(g,k=>({class:k,href:t.disabled?void 0:s(),"aria-disabled":t.disabled,role:t.disabled?"link":void 0,tabindex:t.disabled?-1:void 0,...m}),[()=>Le(Fe({variant:o(),size:r()}),t.class)]);var I=Me(g);Ge(I,()=>t.children??Se),Ve(g),Pe(g,k=>n(k),()=>n()),ge(M,g)},A=M=>{var g=ft();Te(g,k=>({class:k,type:a(),disabled:t.disabled,...m}),[()=>Le(Fe({variant:o(),size:r()}),t.class)]);var I=Me(g);Ge(I,()=>t.children??Se),Ve(g),Pe(g,k=>n(k),()=>n()),ge(M,g)};ur(b,M=>{s()?M(z):M(A,!1)})}ge(e,d),dr()}export{wt as B,Fe as b,Le as c,ut as t};
@@ -1 +1 @@
1
- import{a8 as d,a9 as g,aa as l,a1 as b,ab as m,ac as i,g as p,d as v,ad as h,ae as k}from"./yMbbhP0p.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let c=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],c=!0);return c&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),l(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&l(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};
1
+ import{a6 as d,a7 as g,a8 as l,a1 as b,a9 as m,aa as i,g as p,d as v,ab as h,ac as k}from"./BBDMeJL4.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let c=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],c=!0);return c&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),l(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&l(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};