1var Pi=Object.defineProperty;var ki=Object.getPrototypeOf;var Ai=Reflect.get;var To=e=>{throw TypeError(e)};var Ei=(e,t,r)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var E=(e,t,r)=>Ei(e,typeof t!="symbol"?t+"":t,r),$n=(e,t,r)=>t.has(e)||To("Cannot "+r);var a=(e,t,r)=>($n(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r)=>t.has(e)?To("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),st=(e,t,r,n)=>($n(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),At=(e,t,r)=>($n(e,t,"access private method"),r);var Co=(e,t,r)=>Ai(ki(e),r,t);import{c as D,a as y,f as U,b as Ni,t as ue}from"../chunks/SDtLGXl7.js";import{ap as F,at as Cn,ar as w,g as s,u as S,aq as _o,Z as Ii,as as _e,al as Ae,af as dt,e as Zt,bx as Di,by as ro,bz as Xo,d as Ri,p as M,f as k,a as V,c as B,aA as J,r as R,bA as Bi,bB as Li,s as O,ab as Pe,bC as Oi,n as jt,t as Ct,bD as Mi,bE as Vi}from"../chunks/BhzG5ji-.js";import{c as Fi,m as zi,u as Wi,s as mt}from"../chunks/Df5KdosI.js";import{s as z}from"../chunks/COFpN7kJ.js";import{i as Z}from"../chunks/DO7_0sKA.js";import{k as Ko}from"../chunks/rQV0Ulha.js";import{e as _n,i as Hi}from"../chunks/a-D8ZkVA.js";import{h as Ui}from"../chunks/DQsLVjXp.js";import{t as Po}from"../chunks/4p6p2gRH.js";import{h as ji}from"../chunks/DJTMW3VL.js";import{e as to,b as ct,c as vt,a as at,d as qi,s as Et}from"../chunks/DgoSeUIp.js";import{a as G,c as Nt,B as yn,C as Xi}from"../chunks/CsaK56ia.js";import{o as Xn}from"../chunks/DNsU-Y4r.js";import{c as et}from"../chunks/BmCXIzoE.js";import{p as f,r as j,b as X,l as Pn,a as Ki,s as Yi}from"../chunks/DZrFRpd6.js";import{o as _t}from"../chunks/R0jIdA9s.js";import"../chunks/Bom5CQ_t.js";import{i as lo}from"../chunks/COZ4mAUZ.js";import{b as Gi}from"../chunks/BgAeKAQl.js";import{s as uo}from"../chunks/o1O2i1Jj.js";import{e as Zi}from"../chunks/CeJY_ecu.js";import{b as Ji}from"../chunks/DrfosCgL.js";import{a as ko}from"../chunks/CiB29Aqe.js";import{c as Qi,a as $i}from"../chunks/DkWLVx9f.js";import{p as ee}from"../chunks/ZgcowbYl.js";import{L as ts}from"../chunks/BSvFH8Jj.js";import{G as es,Y as rs}from"../chunks/ChWrMA6C.js";import{I as ns,T as os,X as is}from"../chunks/DDot9CcU.js";const ss=({url:e})=>{const{pathname:t}=e;let r=!1;return r=e.searchParams.get("no_cookie")==="1",{pathname:t,noCookie:r}},fh=Object.freeze(Object.defineProperty({__proto__:null,load:ss},Symbol.toStringTag,{value:"Module"}));function as(e){return typeof e=="function"}function cs(e){return e!==null&&typeof e=="object"}const ls=["string","number","bigint","boolean"];function no(e){return e==null||ls.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>no(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Ee=Symbol("box"),ho=Symbol("is-writable");function us(e){return cs(e)&&Ee in e}function ds(e){return C.isBox(e)&&ho in e}function C(e){let t=F(Cn(e));return{[Ee]:!0,[ho]:!0,get current(){return s(t)},set current(r){w(t,r,!0)}}}function hs(e,t){const r=S(e);return t?{[Ee]:!0,[ho]:!0,get current(){return s(r)},set current(n){t(n)}}:{[Ee]:!0,get current(){return e()}}}function fs(e){return C.isBox(e)?e:as(e)?C.with(e):C(e)}function gs(e){return Object.entries(e).reduce((t,[r,n])=>C.isBox(n)?(C.isWritableBox(n)?Object.defineProperty(t,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(t,r,{get(){return n.current}}),t):Object.assign(t,{[r]:n}),{})}function vs(e){return C.isWritableBox(e)?{[Ee]:!0,get current(){return e.current}}:e}C.from=fs;C.with=hs;C.flatten=gs;C.readonly=vs;C.isBox=us;C.isWritableBox=ds;function Yo(...e){return function(t){var r;for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):(r=n.current)==null||r.call(this,t)}}}var Ao=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ms=/\n/g,ps=/^\s*/,bs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ys=/^:\s*/,Ss=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ws=/^[;\s]*/,xs=/^\s+|\s+$/g,Ts=` 2`,Eo="/",No="*",re="",Cs="comment",_s="declaration";function Ps(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function o(b){var T=b.match(ms);T&&(r+=T.length);var N=b.lastIndexOf(Ts);n=~N?b.length-N:n+b.length}function i(){var b={line:r,column:n};return function(T){return T.position=new c(b),d(),T}}function c(b){this.start=b,this.end={line:r,column:n},this.source=t.source}c.prototype.content=e;function l(b){var T=new Error(t.source+":"+r+":"+n+": "+b);if(T.reason=b,T.filename=t.source,T.line=r,T.column=n,T.source=e,!t.silent)throw T}function u(b){var T=b.exec(e);if(T){var N=T[0];return o(N),e=e.slice(N.length),T}}function d(){u(ps)}function g(b){var T;for(b=b||[];T=v();)T!==!1&&b.push(T);return b}function v(){var b=i();if(!(Eo!=e.charAt(0)||No!=e.charAt(1))){for(var T=2;re!=e.charAt(T)&&(No!=e.charAt(T)||Eo!=e.charAt(T+1));)++T;if(T+=2,re===e.charAt(T-1))return l("End of comment missing");var N=e.slice(2,T-2);return n+=2,o(N),e=e.slice(T),n+=2,b({type:Cs,comment:N})}}function h(){var b=i(),T=u(bs);if(T){if(v(),!u(ys))return l("property missing ':'");var N=u(Ss),_=b({type:_s,property:Io(T[0].replace(Ao,re)),value:N?Io(N[0].replace(Ao,re)):re});return u(ws),_}}function m(){var b=[];g(b);for(var T;T=h();)T!==!1&&(b.push(T),g(b));return b}return d(),m()}function Io(e){return e?e.replace(xs,re):re}function ks(e,t){let r=null;if(!e||typeof e!="string")return r;const n=Ps(e),o=typeof t=="function";
2return n.forEach(i=>{if(i.type!=="declaration")return;const{property:c,value:l}=i;o?t(c,l,i):l&&(r=r||{},r[c]=l)}),r}const As=/\d/,Es=["-","_","/","."];function Ns(e=""){if(!As.test(e))return e!==e.toLowerCase()}function Is(e){const t=[];let r="",n,o;for(const i of e){const c=Es.includes(i);if(c===!0){t.push(r),r="",n=void 0;continue}const l=Ns(i);if(o===!1){if(n===!1&&l===!0){t.push(r),r=i,n=l;continue}if(n===!0&&l===!1&&r.length>1){const u=r.at(-1);t.push(r.slice(0,Math.max(0,r.length-1))),r=u+i,n=l;continue}}r+=i,n=l,o=c}return t.push(r),t}function Go(e){return e?Is(e).map(t=>Rs(t)).join(""):""}function Ds(e){return Bs(Go(e||""))}function Rs(e){return e?e[0].toUpperCase()+e.slice(1):""}function Bs(e){return e?e[0].toLowerCase()+e.slice(1):""}function Sn(e){if(!e)return{};const t={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){t[Go(n)]=o;return}if(n.startsWith("--")){t[n]=o;return}t[Ds(n)]=o}return ks(e,r),t}function Gt(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}function Ls(e,t){const r=RegExp(e,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,t):n}}const Os=Ls(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Ms(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>
2`${Os(t)}: ${e[t]};`).join(` 3`)}function Zo(e={}){return Ms(e).replace(` 4`," ")}const Vs={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Fs=Zo(Vs);function zs(e){var t;return e.length>2&&e.startsWith("on")&&e[2]===((t=e[2])==null?void 0:t.toLowerCase())}function tt(...e){const t={...e[0]};for(let r=1;r<e.length;r++){const n=e[r];for(const o in n){const i=t[o],c=n[o],l=typeof i=="function",u=typeof c=="function";if(l&&zs(o)){const d=i,g=c;t[o]=Yo(d,g)}else if(l&&u)t[o]=Gt(i,c);else if(o==="class"){const d=no(i),g=no(c);d&&g?t[o]=to(i,c):d?t[o]=to(i):g&&(t[o]=to(c))}else if(o==="style"){const d=typeof i=="object",g=typeof c=="object",v=typeof i=="string",h=typeof c=="string";if(d&&g)t[o]={...i,...c};else if(d&&h){const m=Sn(c);t[o]={...i,...m}}else if(v&&g){const m=Sn(i);t[o]={...m,...c}}else if(v&&h){const m=Sn(i),b=Sn(c);t[o]={...m,...b}}else d?t[o]=i:g?t[o]=c:v?t[o]=i:h&&(t[o]=c)}else t[o]=c!==void 0?c:i}}return typeof t.style=="object"&&(t.style=Zo(t.style).replaceAll(` 5`," ")),t.hidden!==!0&&(t.hidden=void 0,delete t.hidden),t.disabled!==!0&&(t.disabled=void 0,delete t.disabled),t}const Ws=typeof window<"u"?window:void 0;function Hs(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}var Rt,Bt,Mt,Nn,It,ke,Tn;const xo=class xo extends Map{constructor(r){super();p(this,It);p(this,Rt,new Map);p(this,Bt,F(0));p(this,Mt,F(0));p(this,Nn,_o||-1);if(r){for(var[n,o]of r)super.set(n,o);a(this,Mt).v=super.size}}has(r){var n=a(this,Rt),o=n.get(r);if(o===void 0)if(super.has(r))o=At(this,It,ke).call(this,0),n.set(r,o);else return s(a(this,Bt)),!1;return s(o),!0}forEach(r,n){At(this,It,Tn).call(this),super.forEach(r,n)}get(r){var n=a(this,Rt),o=n.get(r);if(o===void 0)if(super.has(r))o=At(this,It,ke).call(this,0),n.set(r,o);else{s(a(this,Bt));return}return s(o),super.get(r)}set(r,n){var v;var o=a(this,Rt),i=o.get(r),c=super.get(r),l=super.set(r,n),u=a(this,Bt);if(i===void 0)i=At(this,It,ke).call(this,0),o.set(r,i),w(a(this,Mt),super.size),_e(u);else if(c!==n){_e(i);var d=u.reactions===null?null:new Set(u.reactions),g=d===null||!((v=i.reactions)!=null&&v.every(h=>d.has(h)));g&&_e(u)}return l}delete(r){var n=a(this,Rt),o=n.get(r),i=super.delete(r);return o!==void 0&&(n.delete(r),w(o,-1)),i&&(w(a(this,Mt),super.size),_e(a(this,Bt))),i}clear(){if(super.size!==0){super.clear();var r=a(this,Rt);w(a(this,Mt),0);for(var n of r.values())w(n,-1);_e(a(this,Bt)),r.clear()}}keys(){return s(a(this,Bt)),super.keys()}values(){return At(this,It,Tn).call(this),super.values()}entries(){return At(this,It,Tn).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return s(a(this,Mt)),super.size}};Rt=new WeakMap,Bt=new WeakMap,Mt=new WeakMap,Nn=new WeakMap,It=new WeakSet,ke=function(r){return _o===a(this,Nn)?F(r):Ii(r)},Tn=function(){s(a(this,Bt));var r=a(this,Rt);if(a(this,Mt).v!==r.size){for(var n of Co(xo.prototype,this,"keys").call(this))if(!r.has(n)){var o=At(this,It,ke).call(this,0);r.set(n,o)}}for([,o]of a(this,Rt))s(o)};let oo=xo;var de,Ne;class Us{constructor(t={}){p(this,de);p(this,Ne);const{window:r=Ws,document:n=r==null?void 0:r.document}=t;r!==void 0&&(st(this,de,n),st(this,Ne,Fi(o=>{const i=_t(r,"focusin",o),c=_t(r,"focusout",o);return()=>{i(),c()}})))}get current(){var t;return(t=a(this,Ne))==null||t.call(this),a(this,de)?Hs(a(this,de)):null}}de=new WeakMap,Ne=new WeakMap;new Us;function Kn(e,t=250){let r=F(null);function n(...o){if(s(r))s(r).timeout&&clearTimeout(s(r).timeout);else{let i,c;const l=new Promise((u,d)=>{i=u,c=d});w(r,{timeout:null,runner:null,promise:l,resolve:i,reject:c},!0)}return s(r).runner=async()=>{if(!s(r))return;const i=s(r);w(r,null);try{i.resolve(await e.apply(this,o))}catch(c){i.reject(c)}},s(r).timeout=setTimeout(s(r).runner,typeof t=="function"?t():t),s(r).promise}return n.cancel=async()=>{(!s(r)||s(r).timeout===null)&&(await new Promise(o=>setTimeout(o,0)),!s(r)||s(r).timeout===null)||(clearTimeout(s(r).timeout),s(r).reject("Cancelled"),w(r,null))},n.runScheduledNow=async()=>{var o,i;(!s(r)||!s(r).timeout)&&(await new Promise(c=>setTimeout(c,0)),!s(r)||!s(r).timeout)||(clearTimeout(s(r).timeout),s(r).timeout=null,await((i=(o=s(r)).runner)==null?void 0:i.call(o)))},Object.defineProperty(n,"pending",{enumerable:!0,get(){var o;return!!((o=s(r))!=null&&o.timeout)}}),n}function js(e,t){switch(e){case"post":dt(t);break;case"pre":Ae(t);break}}function Jo(e,t,r,n={}){const{lazy:o=!1}=n;let i=!o,c=Array.isArray(e)?[]:void 0;js(t,()=>{const l=Array.isArray(e)?e.map(d=>d()):e();if(!i){i=!0,c=l;return}const u=Zt(()=>r(l,c));return c=l,u})}function kt(e,t,r){Jo(e,"post",t,r)}function qs(e,t,r){Jo(e,"pre",t,r)}kt.pre=qs;var he;class fo{constructor(){p(this,he,F(!1));dt(()=>(Zt(()=>w(a(this,he),!0)),()=>{w(a(this,he),!1)}))}get current(){return s(a(this,he))}}he=new WeakMap;var Ie,De;class Xs{constructor(t){p(this,Ie,F(void 0));p(this,De);dt(()=>{w(a(this,Ie),a(this,De),!0),st(this,De,t())})}get current(){return s(a(this,Ie))}}Ie=new WeakMap,De=new WeakMap;var Re,Vt;class Lt{constructor(t){p(this,Re);p(this,Vt);st(this,Re,t),st(this,Vt,Symbol(t))}get key(){return a(this,Vt)}exists(){return Di(a(this,Vt))}get(){const t=ro(a(this,Vt));if(t===void 0)throw new Error(`Context "${a(this,Re)}" not found`);return t}getOr(t){const r=ro(a(this,Vt));return r===void 0?t:r}set(t){return Xo(a(this,Vt),t)}}Re=new WeakMap,Vt=new WeakMap;function Qo(e){dt(()=>()=>{e()})}function ht({id:e,ref:t,deps:r=()=>!0,onRefChange:n,getRootNode:o}){kt([()=>e.current,r],([i])=>{const c=(o==null?void 0:o())??document,l=c==null?void 0:c.getElementById(i);l?t.current=l:t.current=null,n==null||n(t.current)}),Qo(()=>{t.current=null,n==null||n(null)})}function go(e,t){return setTimeout(t,e)}function ln(e){Ri().then(e)}function un(e){return e?"open":"closed"}function Ks(e){return e?"checked":"unchecked"}function Ys(e){return e?"true":"false"}function Gs(e){return e?"true":"false"}function dn(e){return e?"":void 0}function Zs(e){return e?"true":"false"}function Js(e,t){return e?"true":"false"}function Qs(e){return e?"":void 0}function $s(e){return e?!0:void 0}const io="ArrowDown",vo="ArrowLeft",mo="ArrowRight",so="ArrowUp",ta="End",po="Enter",ea="Escape",ra="Home",bo=" ",na="Tab";function oa(e){return window.getComputedStyle(e).getPropertyValue("direction")}function ia(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?vo:mo,vertical:io}[t]}function sa(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?mo:vo,vertical:so}[t]}function aa(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:ia(e,t),prevKey:sa(e,t)}}const Yn=typeof document<"u",Do=ca();function ca(){var e,t;return Yn&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ao(e){return e instanceof HTMLElement}function la(e){return e instanceof Element}function ua(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,t){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ha(e){const t=C(null);function r(){if(!Yn)return[];const c=document.getElementById(e.rootNodeId.current);return c?e.candidateSelector?Array.from(c.querySelectorAll(e.candidateSelector)):e.candidateAttr?Array.from(c.querySelectorAll(`[${e.candidateAttr}]:not([data-disabled])`)):[]:[]}function n(){var l;const c=r();c.length&&((l=c[0])==null||l.focus())}function o(c,l,u=!1){var x;const d=document.getElementById(e.rootNodeId.current);if(!d||!c)return;const g=r();if(!g.length)return;const v=g.indexOf(c),h=oa(d),{nextKey:m,prevKey:b}=aa(h,e.orientation.current),T=e.loop.current,N={[m]:v+1,[b]:v-1,[ra]:0,[ta]:g.length-1};if(u){const P=m===io?mo:io,A=b===so?vo:so;N[P]=v+1,N[A]=v-1}let _=N[l.key];if(_===void 0)return;l.preventDefault(),_<0&&T?_=g.length-1:_===g.length&&T&&(_=0);const I=g[_];if(I)return I.focus(),t.current=I.id,(x=e.onCandidateFocus)==null||x.call(e,I),I}function i(c){const l=r(),u=t.current!==null;return c&&!u&&l[0]===c?(t.current=c.id,0):(c==null?void 0:c.id)===t.current?0:-1}return{setCurrentTabStopId(c){t.current=c},getTabIndex:i,handleKeydown:o,focusFirstCandidate:n,currentTabStopId:t}}const fa="data-accordion-root",$o="data-accordion-trigger",ga="data-accordion-content",va="data-accordion-item",ma="data-accordion-header";var Be;class ti{constructor(t){E(this,"opts");E(this,"rovingFocusGroup");p(this,Be,S(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":dn(this.opts.disabled.current),[fa]:""})));this.opts=t,ht(this.opts),this.rovingFocusGroup=ha({rootNodeId:this.opts.id,candidateAttr:$o,loop:this.opts.loop,orientation:this.opts.orientation})}get props(){return s(a(this,Be))}set props(t){w(a(this,Be),t)}}Be=new WeakMap;class pa extends ti{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);this.opts=r,this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(r){return this.opts.value.current===r}toggleItem(r){this.opts.value.current=this.includesItem(r)?"":r}}var Ft;class ba extends ti{constructor(r){super(r);p(this,Ft);E(this,"isMulti",!0);st(this,Ft,r.value),this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(r){return a(this,Ft).current.includes(r)}toggleItem(r){this.includesItem(r)?a(this,Ft).current=a(this,Ft).current.filter(n=>n!==r):a(this,Ft).current=[...a(this,Ft).current,r]}}
5Ft=new WeakMap;var Le,Oe,Me;class ya{constructor(t){E(this,"opts");E(this,"root");p(this,Le,S(()=>this.root.includesItem(this.opts.value.current)));p(this,Oe,S(()=>this.opts.disabled.current||this.root.opts.disabled.current));p(this,Me,S(()=>({id:this.opts.id.current,"data-state":un(this.isActive),"data-disabled":dn(this.isDisabled),"data-orientation":this.root.opts.orientation.current,[va]:""})));this.opts=t,this.root=t.rootState,this.updateValue=this.updateValue.bind(this),ht({...t,deps:()=>this.isActive})}get isActive(){return s(a(this,Le))}set isActive(t){w(a(this,Le),t)}get isDisabled(){return s(a(this,Oe))}set isDisabled(t){w(a(this,Oe),t)}updateValue(){this.root.toggleItem(this.opts.value.current)}get props(){return s(a(this,Me))}set props(t){w(a(this,Me),t)}}Le=new WeakMap,Oe=new WeakMap,Me=new WeakMap;var ne,qt,Ve;class Sa{constructor(t,r){E(this,"opts");E(this,"itemState");p(this,ne);p(this,qt,S(()=>this.opts.disabled.current||this.itemState.opts.disabled.current||a(this,ne).opts.disabled.current));p(this,Ve,S(()=>({id:this.opts.id.current,disabled:s(a(this,qt)),"aria-expanded":Gs(this.itemState.isActive),"aria-disabled":Ys(s(a(this,qt))),"data-disabled":dn(s(a(this,qt))),"data-state":un(this.itemState.isActive),"data-orientation":a(this,ne).opts.orientation.current,[$o]:"",tabindex:0,onclick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,this.itemState=r,st(this,ne,r.root),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),ht(t)}onclick(t){if(!s(a(this,qt))){if(t.button!==0)return t.preventDefault();this.itemState.updateValue()}}onkeydown(t){if(!s(a(this,qt))){if(t.key===bo||t.key===po){t.preventDefault(),this.itemState.updateValue();return}a(this,ne).rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}get props(){return s(a(this,Ve))}set props(t){w(a(this,Ve),t)}}ne=new WeakMap,qt=new WeakMap,Ve=new WeakMap;var fe,ge,Fe,ze,We,He,Ue;class wa{constructor(t,r){E(this,"opts");E(this,"item");p(this,fe);p(this,ge,!1);p(this,Fe,F(0));p(this,ze,F(0));p(this,We,S(()=>this.opts.forceMount.current||this.item.isActive));p(this,He,S(()=>({open:this.item.isActive})));p(this,Ue,S(()=>({id:this.opts.id.current,"data-state":un(this.item.isActive),"data-disabled":dn(this.item.isDisabled),"data-orientation":this.item.root.opts.orientation.current,[ga]:"",style:{"--bits-accordion-content-height":`${s(a(this,ze))}px`,"--bits-accordion-content-width":`${s(a(this,Fe))}px`}})));this.opts=t,this.item=r,st(this,ge,this.item.isActive),ht(t),Ae(()=>{const n=requestAnimationFrame(()=>{st(this,ge,!1)});return()=>{cancelAnimationFrame(n)}}),kt([()=>this.present,()=>this.opts.ref.current],([n,o])=>{o&&ln(()=>{if(!this.opts.ref.current)return;st(this,fe,a(this,fe)||{transitionDuration:o.style.transitionDuration,animationName:o.style.animationName}),o.style.transitionDuration="0s",o.style.animationName="none";const i=o.getBoundingClientRect();if(w(a(this,ze),i.height,!0),w(a(this,Fe),i.width,!0),!a(this,ge)){const{animationName:c,transitionDuration:l}=a(this,fe);o.style.transitionDuration=l,o.style.animationName=c}})})}get present(){return s(a(this,We))}set present(t){w(a(this,We),t)}get snippetProps(){return s(a(this,He))}set snippetProps(t){w(a(this,He),t)}get props(){return s(a(this,Ue))}set props(t){w(a(this,Ue),t)}}fe=new WeakMap,ge=new WeakMap,Fe=new WeakMap,ze=new WeakMap,We=new WeakMap,He=new WeakMap,Ue=new WeakMap;var je;class xa{constructor(t,r){E(this,"opts");E(this,"item");p(this,je,S(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,"data-heading-level":this.opts.level.current,"data-state":un(this.item.isActive),"data-orientation":this.item.root.opts.orientation.current,[ma]:""})));this.opts=t,this.item=r,ht(t)}get props(){return s(a(this,je))}set props(t){w(a(this,je),t)}}je=new WeakMap;const ei=new Lt("Accordion.Root"),Gn=new Lt("Accordion.Item");function Ta(e){const{type:t,...r}=e,n=t==="single"?new pa(r):new ba(r);return ei.set(n)}function Ca(e){const t=ei.get();return Gn.set(new ya({...e,rootState:t}))}function _a(e){return new Sa(e,Gn.get())}function Pa(e){return new wa(e,Gn.get())}function ka(e){return new xa(e,Gn.get())}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function pt(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}
5function xt(){}var Aa=new Set(["$$slots","$$events","$$legacy","disabled","children","child","type","value","ref","id","onValueChange","loop","orientation"]),Ea=U("<div><!></div>");function Na(e,t){M(t,!0);let r=f(t,"disabled",3,!1),n=f(t,"value",15),o=f(t,"ref",15,null),i=f(t,"id",19,pt),c=f(t,"onValueChange",3,xt),l=f(t,"loop",3,!0),u=f(t,"orientation",3,"vertical"),d=j(t,Aa);function g(){n()===void 0&&n(t.type==="single"?"":[])}g(),kt.pre(()=>n(),()=>{g()});const v=Ta({type:t.type,value:C.with(()=>n(),_=>{n(_),c()(_)}),id:C.with(()=>i()),disabled:C.with(()=>r()),loop:C.with(()=>l()),orientation:C.with(()=>u()),ref:C.with(()=>o(),_=>o(_))}),h=S(()=>tt(d,v.props));var m=D(),b=k(m);{var T=_=>{var I=D(),x=k(I);z(x,()=>t.child,()=>({props:s(h)})),y(_,I)},N=_=>{var I=Ea();ct(I,()=>({...s(h)}));var x=B(I);z(x,()=>t.children??J),R(I),y(_,I)};Z(b,_=>{t.child?_(T):_(N,-1)})}y(e,m),V()}var Ia=new Set(["$$slots","$$events","$$legacy","id","disabled","value","children","child","ref"]),Da=U("<div><!></div>");function Ra(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"disabled",3,!1),o=f(t,"value",19,pt),i=f(t,"ref",15,null),c=j(t,Ia);const l=Ca({value:C.with(()=>o()),disabled:C.with(()=>n()),id:C.with(()=>r()),ref:C.with(()=>i(),m=>i(m))}),u=S(()=>tt(c,l.props));var d=D(),g=k(d);{var v=m=>{var b=D(),T=k(b);z(T,()=>t.child,()=>({props:s(u)})),y(m,b)},h=m=>{var b=Da();ct(b,()=>({...s(u)}));var T=B(b);z(T,()=>t.children??J),R(b),y(m,b)};Z(g,m=>{t.child?m(v):m(h,-1)})}y(e,d),V()}var Ba=new Set(["$$slots","$$events","$$legacy","id","level","children","child","ref"]),La=U("<div><!></div>");function Oa(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"level",3,2),o=f(t,"ref",15,null),i=j(t,Ba);const c=ka({id:C.with(()=>r()),level:C.with(()=>n()),ref:C.with(()=>o(),h=>o(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=La();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}var Ma=new Set(["$$slots","$$events","$$legacy","disabled","ref","id","children","child"]),Va=U("<button><!></button>");function Fa(e,t){M(t,!0);let r=f(t,"disabled",3,!1),n=f(t,"ref",15,null),o=f(t,"id",19,pt),i=j(t,Ma);const c=_a({disabled:C.with(()=>r()),id:C.with(()=>o()),ref:C.with(()=>n(),h=>n(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=Va();ct(m,()=>({type:"button",...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}function ri(e,t){const r=C(e);function n(i){return t[r.current][i]??r.current}return{state:r,dispatch:i=>{r.current=n(i)}}}function za(e,t){let r=F(Cn({})),n=F("none");const o=e.current?"mounted":"unmounted";let i=F(null);const c=new Xs(()=>e.current);kt([()=>t.current,()=>e.current],([h,m])=>{!h||!m||ln(()=>{w(i,document.getElementById(h),!0)})});const{state:l,dispatch:u}=ri(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});kt(()=>e.current,h=>{if(s(i)||w(i,document.getElementById(t.current),!0),!s(i)||!(h!==c.current))return;const b=s(n),T=wn(s(i));h?u("MOUNT"):T==="none"||s(r).display==="none"?u("UNMOUNT"):u(c&&b!==T?"ANIMATION_OUT":"UNMOUNT")});function d(h){if(s(i)||w(i,document.getElementById(t.current),!0),!s(i))return;const m=wn(s(i)),b=m.includes(h.animationName)||m==="none";h.target===s(i)&&b&&u("ANIMATION_END")}function g(h){s(i)||w(i,document.getElementById(t.current),!0),s(i)&&h.target===s(i)&&w(n,wn(s(i)),!0)}kt(()=>l.current,()=>{if(s(i)||w(i,document.getElementById(t.current),!0),!s(i))return;const h=wn(s(i));w(n,l.current==="mounted"?h:"none",!0)}),kt(()=>s(i),h=>{if(h)return w(r,getComputedStyle(h),!0),Gt(_t(h,"animationstart",g),_t(h,"animationcancel",d),_t(h,"animationend",d))});const v=S(()=>["mounted","unmountSuspended"].includes(l.current));return{get current(){return s(v)}}}function wn(e){return e&&getComputedStyle(e).animationName||"none"}function ie(e,t){M(t,!0);const r=za(C.with(()=>t.present),C.with(()=>t.id));var n=D(),o=k(n);{var i=c=>{var l=D(),u=k(l);z(u,()=>t.presence??J,()=>({present:r})),y(c,l)};Z(o,c=>{(t.forceMount||t.present||r.current)&&c(i)})}y(e,n),V()}var Wa=new Set(["$$slots","$$events","$$legacy","child","ref","id","forceMount","children"]),Ha=U("<div><!></div>");function Ua(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"forceMount",3,!1),i=j(t,Wa);const c=Pa({forceMount:C.with(()=>o()),id:C.with(()=>n()),ref:C.with(()=>r(),l=>r(l))});ie(e,{forceMount:!0,get present(){return c.present},get id(){return n()},presence:(u,d)=>{let g=()=>d==null?void 0:d().present;const v=S(()=>tt(i,c.props,{hidden:o()?void 0:!g().current}));var h=D(),m=k(h);{var b=N=>{var _=D(),I=k(_);{let x=S(()=>({props:s(v),...c.snippetProps}));z(I,()=>t.child,()=>s(x))}y(N,_)},T=N=>{var _=Ha();ct(_,()=>({...s(v)}));var I=B(_);z(I,()=>t.children??J),R(_),y(N,_)};Z(m,N=>{t.child?N(b):N(T,-1)})}y(u,h)},$$slots:{presence:!0}}),V()}function ja(e){return{content:`data-${e}-content`,trigger:`data-${e}-trigger`,overlay:`data-${e}-overlay`,title:`data-${e}-title`,description:`data-${e}-description`,close:`data-${e}-close`,cancel:`data-${e}-cancel`,action:`data-${e}-action`}}var qe,Xe,Ke,Ye,Ge,Ze,Je,Qe,$e,tr;class qa{constructor(t){E(this,"opts");p(this,qe,F(null));p(this,Xe,F(null));p(this,Ke,F(null));p(this,Ye,F(void 0));p(this,Ge,F(void 0));p(this,Ze,F(void 0));p(this,Je,F(void 0));p(this,Qe,F(null));p(this,$e,S(()=>ja(this.opts.variant.current)));p(this,tr,S(()=>({"data-state":un(this.opts.open.current)})));this.opts=t,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return s(a(this,qe))}set triggerNode(t){w(a(this,qe),t,!0)}get contentNode(){return s(a(this,Xe))}set contentNode(t){w(a(this,Xe),t,!0)}get descriptionNode(){return s(a(this,Ke))}set descriptionNode(t){w(a(this,Ke),t,!0)}get contentId(){return s(a(this,Ye))}set contentId(t){w(a(this,Ye),t,!0)}get titleId(){return s(a(this,Ge))}set titleId(t){w(a(this,Ge),t,!0)}get triggerId(){return s(a(this,Ze))}set triggerId(t){w(a(this,Ze),t,!0)}get descriptionId(){return s(a(this,Je))}set descriptionId(t){w(a(this,Je),t,!0)}get cancelNode(){return s(a(this,Qe))}set cancelNode(t){w(a(this,Qe),t,!0)}get attrs(){return s(a(this,$e))}set attrs(t){w(a(this,$e),t)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return s(a(this,tr))}set sharedProps(t){w(a(this,tr),t)}}
5qe=new WeakMap,Xe=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,$e=new WeakMap,tr=new WeakMap;var In,er;class Xa{constructor(t,r){E(this,"opts");E(this,"root");p(this,In,S(()=>this.root.attrs[this.opts.variant.current]));p(this,er,S(()=>({id:this.opts.id.current,[s(a(this,In))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=t,this.root=r,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),ht({...t,deps:()=>this.root.opts.open.current})}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===bo||t.key===po)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(a(this,er))}set props(t){w(a(this,er),t)}}In=new WeakMap,er=new WeakMap;var rr;class Ka{constructor(t,r){E(this,"opts");E(this,"root");p(this,rr,S(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,onRefChange:n=>{this.root.titleId=n==null?void 0:n.id},deps:()=>this.root.opts.open.current})}get props(){return s(a(this,rr))}set props(t){w(a(this,rr),t)}}rr=new WeakMap;var nr;class Ya{constructor(t,r){E(this,"opts");E(this,"root");p(this,nr,S(()=>({id:this.opts.id.current,[this.root.attrs.description]:"",...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.descriptionNode=n,this.root.descriptionId=n==null?void 0:n.id}})}get props(){return s(a(this,nr))}set props(t){w(a(this,nr),t)}}nr=new WeakMap;var or,ir;class Ga{constructor(t,r){E(this,"opts");E(this,"root");p(this,or,S(()=>({open:this.root.opts.open.current})));p(this,ir,S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id}})}get snippetProps(){return s(a(this,or))}set snippetProps(t){w(a(this,or),t)}get props(){return s(a(this,ir))}set props(t){w(a(this,ir),t)}}or=new WeakMap,ir=new WeakMap;var sr,ar;class Za{constructor(t,r){E(this,"opts");E(this,"root");p(this,sr,S(()=>({open:this.root.opts.open.current})));p(this,ar,S(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current})}get snippetProps(){return s(a(this,sr))}set snippetProps(t){w(a(this,sr),t)}get props(){return s(a(this,ar))}set props(t){w(a(this,ar),t)}}sr=new WeakMap,ar=new WeakMap;const Ce=new Lt("Dialog.Root");function Ja(e){return Ce.set(new qa(e))}function Qa(e){return new Ka(e,Ce.get())}function $a(e){return new Ga(e,Ce.get())}function tc(e){return new Za(e,Ce.get())}function ec(e){return new Ya(e,Ce.get())}function rc(e){return new Xa(e,Ce.get())}var nc=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),oc=U("<div><!></div>");function ic(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"level",3,2),i=j(t,nc);const c=Qa({id:C.with(()=>r()),level:C.with(()=>o()),ref:C.with(()=>n(),h=>n(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=oc();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}function sc(e,t){var r=D(),n=k(r);Ko(n,()=>t.children,o=>{var i=D(),c=k(i);z(c,()=>t.children??J),y(o,i)}),y(e,r)}function ac(e,t){M(t,!0);let r=f(t,"to",3,"body");const n=Bi();let o=S(i);function i(){if(!Yn||t.disabled)return null;let v=null;return typeof r()=="string"?v=document.querySelector(r()):(r()instanceof HTMLElement||r()instanceof DocumentFragment)&&(v=r()),v}let c;function l(){c&&(Wi(c),c=null)}kt([()=>s(o),()=>t.disabled],([v,h])=>{if(!v||h){l();return}return c=zi(sc,{target:v,props:{children:t.children},context:n}),()=>{l()}});var u=D(),d=k(u);{var g=v=>{var h=D(),m=k(h);z(m,()=>t.children??J),y(v,h)};Z(d,v=>{t.disabled&&v(g)})}y(e,u),V()}function hn(e,t,r,n){const o=Array.isArray(t)?t:[t];return o.forEach(i=>
5e.addEventListener(i,r,n)),()=>{o.forEach(i=>e.removeEventListener(i,r,n))}}class ni{constructor(t,r={bubbles:!0,cancelable:!0}){E(this,"eventName");E(this,"options");this.eventName=t,this.options=r}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,r){const n=this.createEvent(r);return t.dispatchEvent(n),n}listen(t,r,n){const o=i=>{r(i)};return _t(t,this.eventName,o,n)}}function Ro(e,t=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...o)},t)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function yo(e,t){return e===t||e.contains(t)}function oi(e){return(e==null?void 0:e.ownerDocument)??document}function cc(e,t){const{clientX:r,clientY:n}=e,o=t.getBoundingClientRect();return r<o.left||r>o.right||n<o.top||n>o.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var ve,oe,Xt,me,pe,Kt,cr,lr,zt,Dn,Te,ii,Rn,be,Bn,Ln,On,Mn,ur,si,Vn,Fn;class lc{constructor(t){p(this,Te);E(this,"opts");p(this,ve);p(this,oe);p(this,Xt,{pointerdown:!1});p(this,me,!1);p(this,pe,!1);E(this,"node",C(null));p(this,Kt);p(this,cr);p(this,lr,F(null));p(this,zt,xt);p(this,Dn,t=>{t.defaultPrevented||this.currNode&&ln(()=>{var r,n;!this.currNode||a(this,Mn).call(this,t.target)||t.target&&!a(this,pe)&&((n=(r=a(this,cr)).current)==null||n.call(r,t))})});p(this,Rn,t=>{let r=t;r.defaultPrevented&&(r=Bo(t)),a(this,ve).current(t)});p(this,be,Ro(t=>{if(!this.currNode){a(this,zt).call(this);return}const r=this.opts.isValidEvent.current(t,this.currNode)||fc(t,this.currNode);if(!a(this,me)||At(this,Te,si).call(this)||!r){a(this,zt).call(this);return}let n=t;if(n.defaultPrevented&&(n=Bo(n)),a(this,oe).current!=="close"&&a(this,oe).current!=="defer-otherwise-close"){a(this,zt).call(this);return}t.pointerType==="touch"?(a(this,zt).call(this),st(this,zt,hn(a(this,Kt),"click",a(this,Rn),{once:!0}))):a(this,ve).current(n)},10));p(this,Bn,t=>{a(this,Xt)[t.type]=!0});p(this,Ln,t=>{a(this,Xt)[t.type]=!1});p(this,On,()=>{this.node.current&&st(this,me,hc(this.node.current))});p(this,Mn,t=>this.node.current?yo(this.node.current,t):!1);p(this,ur,Ro(()=>{for(const t in a(this,Xt))a(this,Xt)[t]=!1;st(this,me,!1)},20));p(this,Vn,()=>{st(this,pe,!0)});p(this,Fn,()=>{st(this,pe,!1)});E(this,"props",{onfocuscapture:a(this,Vn),onblurcapture:a(this,Fn)});this.opts=t,ht({id:t.id,ref:this.node,deps:()=>t.enabled.current,onRefChange:o=>{this.currNode=o}}),st(this,oe,t.interactOutsideBehavior),st(this,ve,t.onInteractOutside),st(this,cr,t.onFocusOutside),dt(()=>{st(this,Kt,oi(this.currNode))});let r=xt;const n=()=>{a(this,ur).call(this),globalThis.bitsDismissableLayers.delete(this),a(this,be).destroy(),r()};kt([()=>this.opts.enabled.current,()=>this.currNode],([o,i])=>{if(!(!o||!i))return go(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,a(this,oe)),r(),r=At(this,Te,ii).call(this))}),n}),Qo(()=>{a(this,ur).destroy(),globalThis.bitsDismissableLayers.delete(this),a(this,be).destroy(),a(this,zt).call(this),r()})}get currNode(){return s(a(this,lr))}set currNode(t){w(a(this,lr),t,!0)}}ve=new WeakMap,oe=new WeakMap,Xt=new WeakMap,me=new WeakMap,pe=new WeakMap,Kt=new WeakMap,cr=new WeakMap,lr=new WeakMap,zt=new WeakMap,Dn=new WeakMap,Te=new WeakSet,ii=function(){return Gt(_t(a(this,Kt),"pointerdown",Gt(a(this,Bn),a(this,On)),{capture:!0}),_t(a(this,Kt),"pointerdown",Gt(a(this,Ln),a(this,be))),_t(a(this,Kt),"focusin",a(this,Dn)))},Rn=new WeakMap,be=new WeakMap,Bn=new WeakMap,Ln=new WeakMap,On=new WeakMap,Mn=new WeakMap,ur=new WeakMap,si=function(){return Object.values(a(this,Xt)).some(Boolean)},Vn=new WeakMap,Fn=new WeakMap;function uc(e){return new lc(e)}function dc(e){return e.findLast(([t,{current:r}
5])=>r==="close"||r==="ignore")}function hc(e){const t=[...globalThis.bitsDismissableLayers],r=dc(t);if(r)return r[0].node.current===e;const[n]=t[0];return n.node.current===e}function fc(e,t){if("button"in e&&e.button>0)return!1;const r=e.target;return la(r)?oi(r).documentElement.contains(r)&&!yo(t,r)&&cc(e,t):!1}function Bo(e){const t=e.currentTarget,r=e.target;let n;e instanceof PointerEvent?n=new PointerEvent(e.type,e):n=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(n,{get:(c,l)=>l==="currentTarget"?t:l==="target"?r:l==="preventDefault"?()=>{o=!0,typeof c.preventDefault=="function"&&c.preventDefault()}:l==="defaultPrevented"?o:l in c?c[l]:e[l]})}function gc(e,t){M(t,!0);let r=f(t,"interactOutsideBehavior",3,"close"),n=f(t,"onInteractOutside",3,xt),o=f(t,"onFocusOutside",3,xt),i=f(t,"isValidEvent",3,()=>!1);const c=uc({id:C.with(()=>t.id),interactOutsideBehavior:C.with(()=>r()),onInteractOutside:C.with(()=>n()),enabled:C.with(()=>t.enabled),onFocusOutside:C.with(()=>o()),isValidEvent:C.with(()=>i())});var l=D(),u=k(l);z(u,()=>t.children??J,()=>({props:c.props})),y(e,l),V()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var zn,Wn;class vc{constructor(t){E(this,"opts");p(this,zn,()=>_t(document,"keydown",a(this,Wn),{passive:!1}));p(this,Wn,t=>{if(t.key!==ea||!pc(this))return;const r=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=t;let r=xt;kt(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),r=a(this,zn).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}}zn=new WeakMap,Wn=new WeakMap;function mc(e){return new vc(e)}function pc(e){const t=[...globalThis.bitsEscapeLayers],r=t.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(r)return r[0]===e;const[n]=t[0];return n===e}function bc(e,t){M(t,!0);let r=f(t,"escapeKeydownBehavior",3,"close"),n=f(t,"onEscapeKeydown",3,xt);mc({escapeKeydownBehavior:C.with(()=>r()),onEscapeKeydown:C.with(()=>n()),enabled:C.with(()=>t.enabled)});var o=D(),i=k(o);z(i,()=>t.children??J),y(e,o),V()}const Ht=C([]);function yc(){return{add(e){const t=Ht.current[0];t&&e.id!==t.id&&t.pause(),Ht.current=Lo(Ht.current,e),Ht.current.unshift(e)},remove(e){var t;Ht.current=Lo(Ht.current,e),(t=Ht.current[0])==null||t.resume()},get current(){return Ht.current}}}function Sc(){let e=F(!1),t=F(!1);return{id:pt(),get paused(){return s(e)},get isHandlingFocus(){return s(t)},set isHandlingFocus(r){w(t,r,!0)},pause(){w(e,!0)},resume(){w(e,!1)}}}function Lo(e,t){return[...e].filter(r=>r.id!==t.id)}function wc(e){return e.filter(t=>t.tagName!=="A")}function Ut(e,{select:t=!1}={}){if(!(e&&e.focus)||document.activeElement===e)return;const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ua(e)&&t&&e.select()}function xc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ut(n,{select:t}),document.activeElement!==r)return!0}function Oo(e,t){for(const r of e)if(!da(r,t))return r}function ai(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tc(e){const t=ai(e),r=Oo(t,e),n=Oo(t.reverse(),e);return[r,n]}/*! 6* tabbable 6.4.0 7* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 8*/var Cc=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],_c=Cc.join(","),ci=typeof Element>"u",kn=ci?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,An=!ci&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Pc=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},kc=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ac=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Pc(t))&&!kc(t)?0:t.tabIndex},li=function(t){return t.tagName==="INPUT"},Ec=function(t){return li(t)&&t.type==="hidden"},Nc=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},Ic=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},Dc=function(t){if(!t.name)return!0;var r=t.form||An(t),n=function(l){return r.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(t.name));else try{o=n(t.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var i=Ic(o,t.form);return!i||i===t},Rc=function(t){return li(t)&&t.type==="radio"},Bc=function(t){return Rc(t)&&!Dc(t)},Lc=function(t){var r,n=t&&An(t),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==t){var c,l,u;for(i=!!((c=o)!==null&&c!==void 0&&(l=c.ownerDocument)!==null&&l!==void 0&&l.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var d,g,v;n=An(o),o=(d=n)===null||d===void 0?void 0:d.host,i=!!((g=o)!==null&&g!==void 0&&(v=g.ownerDocument)!==null&&v!==void 0&&v.contains(o))}}return i},Mo=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},Oc=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var c=kn.call(t,"details>summary:first-of-type"),l=c?t.parentElement:t;if(kn.call(l,"details:not([open]) *"))return!0;
8if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var d=t.parentElement,g=An(t);if(d&&!d.shadowRoot&&o(d)===!0)return Mo(t);t.assignedSlot?t=t.assignedSlot:!d&&g!==t.ownerDocument?t=g.host:t=d}t=u}if(Lc(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Mo(t);return!1},Mc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return kn.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},Vc=function(t,r){return!(r.disabled||Ec(r)||Oc(r,t)||Nc(r)||Mc(r))},Fc=function(t,r){return!(Bc(r)||Ac(r)<0||!Vc(t,r))},zc=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return kn.call(t,_c)===!1?!1:Fc(r,t)};const Wc=new ni("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),Hc=new ni("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),Uc=new Lt("FocusScope");function jc({id:e,loop:t,enabled:r,onOpenAutoFocus:n,onCloseAutoFocus:o,forceMount:i}){const c=yc(),l=Sc(),u=C(null),d=Uc.getOr({ignoreCloseAutoFocus:!1});let g=null;ht({id:e,ref:u,deps:()=>r.current});function v(_){if(!(l.paused||!u.current||l.isHandlingFocus)){l.isHandlingFocus=!0;try{const I=_.target;if(!ao(I))return;const x=u.current.contains(I);if(_.type==="focusin")if(x)g=I;else{if(d.ignoreCloseAutoFocus)return;Ut(g,{select:!0})}else _.type==="focusout"&&!x&&!d.ignoreCloseAutoFocus&&Ut(g,{select:!0})}finally{l.isHandlingFocus=!1}}}function h(_){if(!g||!u.current)return;let I=!1;for(const x of _){if(x.type==="childList"&&x.removedNodes.length>0)for(const P of x.removedNodes){if(P===g){I=!0;break}if(P.nodeType===Node.ELEMENT_NODE&&P.contains(g)){I=!0;break}}if(I)break}I&&u.current&&!u.current.contains(document.activeElement)&&Ut(u.current)}kt([()=>u.current,()=>r.current],([_,I])=>{if(!_||!I)return;const x=Gt(_t(document,"focusin",v),_t(document,"focusout",v)),P=new MutationObserver(h);return P.observe(_,{childList:!0,subtree:!0,attributes:!1}),()=>{x(),P.disconnect()}}),kt([()=>i.current,()=>u.current],([_,I])=>{if(_)return;const x=document.activeElement;return m(I,x),()=>{I&&b(x)}}),kt([()=>i.current,()=>u.current,()=>r.current],([_,I])=>{if(!_)return;const x=document.activeElement;return m(I,x),()=>{I&&b(x)}});function m(_,I){if(_||(_=document.getElementById(e.current)),!_||!r.current)return;if(c.add(l),!_.contains(I)){const P=Wc.createEvent();n.current(P),P.defaultPrevented||ln(()=>{if(!_)return;xc(wc(ai(_)),{select:!0})||Ut(_)})}}function b(_){var P;const I=Hc.createEvent();(P=o.current)==null||P.call(o,I);const x=d.ignoreCloseAutoFocus;go(0,()=>{!I.defaultPrevented&&_&&!x&&Ut(zc(_)?_:document.body,{select:!0}),c.remove(l)})}function T(_){if(!r.current||!t.current&&!r.current||l.paused)return;const I=_.key===na&&!_.ctrlKey&&!_.altKey&&!_.metaKey,x=document.activeElement;if(!(I&&x))return;const P=u.current;if(!P)return;const[A,L]=Tc(P);A&&L?!_.shiftKey&&x===L?(_.preventDefault(),t.current&&Ut(A,{select:!0})):_.shiftKey&&x===A&&(_.preventDefault(),t.current&&Ut(L,{select:!0})):x===P&&_.preventDefault()}const N=S(()=>({id:e.current,tabindex:-1,onkeydown:T}));return{get props(){return s(N)}}}function qc(e,t){M(t,!0);let r=f(t,"trapFocus",3,!1),n=f(t,"loop",3,!1),o=f(t,"onCloseAutoFocus",3,xt),i=f(t,"onOpenAutoFocus",3,xt),c=f(t,"forceMount",3,!1);const l=jc({enabled:C.with(()=>r()),loop:C.with(()=>n()),onCloseAutoFocus:C.with(()=>o()),onOpenAutoFocus:C.with(()=>i()),id:C.with(()=>t.id),forceMount:C.with(()=>c())});var u=D(),d=k(u);z(d,()=>t.focusScope??J,()=>({props:l.props})),y(e,u),V()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var ye,dr,Hn,ui,Un,hr;class Xc{constructor(t){p(this,Hn);E(this,"opts");p(this,ye,xt);p(this,dr,C(null));p(this,Un,t=>{const r=a(this,dr).current,n=t.target;!ao(r)||!ao(n)||!this.opts.enabled.current||!Gc(this)||!yo(r,n)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&st(this,ye,Yc(r)))});p(this,hr,()=>
8{a(this,ye).call(this),st(this,ye,xt)});this.opts=t,ht({id:t.id,ref:a(this,dr),deps:()=>this.opts.enabled.current});let r=xt;kt(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=At(this,Hn,ui).call(this)),()=>{r(),a(this,hr).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}ye=new WeakMap,dr=new WeakMap,Hn=new WeakSet,ui=function(){return Gt(_t(document,"pointerdown",a(this,Un)),_t(document,"pointerup",Yo(a(this,hr),this.opts.onPointerUp.current)))},Un=new WeakMap,hr=new WeakMap;function Kc(e){return new Xc(e)}const Vo=e=>e.style.userSelect||e.style.webkitUserSelect;function Yc(e){const t=document.body,r=Vo(t),n=Vo(e);return xn(t,"none"),xn(e,"text"),()=>{xn(t,r),xn(e,n)}}function xn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Gc(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const r=t.at(-1);return r?r[0]===e:!1}function Zc(e,t){M(t,!0);let r=f(t,"preventOverflowTextSelection",3,!0),n=f(t,"onPointerDown",3,xt),o=f(t,"onPointerUp",3,xt);Kc({id:C.with(()=>t.id),onPointerDown:C.with(()=>n()),onPointerUp:C.with(()=>o()),enabled:C.with(()=>t.enabled&&r())});var i=D(),c=k(i);z(c,()=>t.children??J),y(e,i),V()}function Jc(e){let t=0,r=F(void 0),n;function o(){t-=1,n&&t<=0&&(n(),w(r,void 0),n=void 0)}return(...i)=>(t+=1,s(r)===void 0&&(n=Li(()=>{w(r,e(...i),!0)})),dt(()=>()=>{o()}),s(r))}const Qc=Jc(()=>{const e=new oo,t=S(()=>{for(const i of e.values())if(i)return!0;return!1});let r=F(null),n=null;function o(){Yn&&(document.body.setAttribute("style",s(r)??""),document.body.style.removeProperty("--scrollbar-width"),Do&&(n==null||n()))}return dt(()=>{const i=s(t);return Zt(()=>{if(!i)return;w(r,document.body.getAttribute("style"),!0);const c=getComputedStyle(document.body),l=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(c.paddingRight??"0",10)+l,margin:Number.parseInt(c.marginRight??"0",10)};l>0&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Do&&(n=hn(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),ln(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),dt(()=>()=>{n==null||n()}),{get map(){return e},resetBodyStyle:o}});function $c(e,t=()=>null){const r=pt(),n=Qc();if(!n)return;const o=S(t);n.map.set(r,e??!1);const i=C.with(()=>n.map.get(r)??!1,c=>n.map.set(r,c));return dt(()=>()=>{n.map.delete(r),!tl(n.map)&&(s(o)===null?requestAnimationFrame(()=>n.resetBodyStyle()):go(s(o),()=>n.resetBodyStyle()))}),i}function tl(e){for(const[t,r]of e)if(r)return!0;return!1}function Fo(e,t){M(t,!0);let r=f(t,"preventScroll",3,!0),n=f(t,"restoreScrollDelay",3,null);$c(r(),()=>n()),V()}function el({forceMount:e,present:t,trapFocus:r,open:n}){return e?n&&r:t&&r&&n}var rl=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),nl=U("<div><!></div>");function ol(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"forceMount",3,!1),o=f(t,"ref",15,null),i=j(t,rl);const c=tc({id:C.with(()=>r()),ref:C.with(()=>o(),u=>o(u))}),l=S(()=>tt(i,c.props));{const u=g=>{var v=D(),h=k(v);{var m=T=>{var N=D(),_=k(N);{let I=S(()=>({props:tt(s(l)),...c.snippetProps}));z(_,()=>t.child,()=>s(I))}y(T,N)},b=T=>{var N=nl();ct(N,I=>({...I}),[()=>tt(s(l))]);var _=B(N);z(_,()=>t.children??J,()=>c.snippetProps),R(N),y(T,N)};Z(h,T=>{t.child?T(m):T(b,-1)})}y(g,v)};let d=S(()=>c.root.opts.open.current||n());ie(e,{get id(){return r()},get present(){return s(d)},presence:u,$$slots:{presence:!0}})}V()}var il=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),sl=U("<div><!></div>");function al(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=j(t,il);const i=ec({id:C.with(()=>r()),ref:C.with(()=>n(),v=>n(v))}),c=S(()=>tt(o,i.props));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);z(m,()=>t.child,()=>({props:s(c)})),y(v,h)},g=v=>{var h=sl();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var cl=new Set(["$$slots","$$events","$$legacy","value"]),zo=U("<input/>");function ll(e,t){M(t,!0);let r=f(t,"value",15),n=j(t,cl);const o=S(()=>tt(n,{"aria-hidden":"true",tabindex:-1,style:Fs}));var i=D(),c=k(i);{var l=d=>{var g=zo();ct(g,()=>({...s(o),value:r()}),void 0,void 0,void 0,void 0,!0),y(d,g)},u=d=>{var g=zo();ct(g,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),Gi(g,r),y(d,g)};Z(c,d=>{s(o).type==="checkbox"?d(l):d(u,-1)})}y(e,i),V()}function ul(e,t){M(t,!0);let r=f(t,"open",15,!1),n=f(t,"onOpenChange",3,xt);Ja({variant:C.with(()=>"dialog"),open:C.with(()=>r(),c=>{r(c),n()(c)})});var o=D(),i=k(o);z(i,()=>t.children??J),y(e,o),V()}var dl=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),hl=U("<button><!></button>");function fl(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"disabled",3,!1),i=j(t,dl);const c=rc({variant:C.with(()=>"close"),id:C.with(()=>r()),ref:C.with(()=>n(),h=>n(h)),disabled:C.with(()=>!!o())}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=hl();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}var gl=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKey
8down","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),vl=U("<!> <!>",1),ml=U("<!> <div><!></div>",1);function pl(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"forceMount",3,!1),i=f(t,"onCloseAutoFocus",3,xt),c=f(t,"onOpenAutoFocus",3,xt),l=f(t,"onEscapeKeydown",3,xt),u=f(t,"onInteractOutside",3,xt),d=f(t,"trapFocus",3,!0),g=f(t,"preventScroll",3,!0),v=f(t,"restoreScrollDelay",3,null),h=j(t,gl);const m=$a({id:C.with(()=>r()),ref:C.with(()=>n(),T=>n(T))}),b=S(()=>tt(h,m.props));{const T=_=>{{const I=(P,A)=>{let L=()=>A==null?void 0:A().props;bc(P,X(()=>s(b),{get enabled(){return m.root.opts.open.current},onEscapeKeydown:W=>{l()(W),!W.defaultPrevented&&m.root.handleClose()},children:(W,K)=>{gc(W,X(()=>s(b),{get enabled(){return m.root.opts.open.current},onInteractOutside:Y=>{u()(Y),!Y.defaultPrevented&&m.root.handleClose()},children:(Y,ft)=>{Zc(Y,X(()=>s(b),{get enabled(){return m.root.opts.open.current},children:(bt,rt)=>{var nt=D(),it=k(nt);{var q=ot=>{var yt=vl(),ut=k(yt);{var gt=St=>{Fo(St,{get preventScroll(){return g()},get restoreScrollDelay(){return v()}})};Z(ut,St=>{m.root.opts.open.current&&St(gt)})}var Pt=O(ut,2);{let St=S(()=>({props:tt(s(b),L()),...m.snippetProps}));z(Pt,()=>t.child,()=>s(St))}y(ot,yt)},lt=ot=>{var yt=ml(),ut=k(yt);Fo(ut,{get preventScroll(){return g()}});var gt=O(ut,2);ct(gt,St=>({...St}),[()=>tt(s(b),L())]);var Pt=B(gt);z(Pt,()=>t.children??J),R(gt),y(ot,yt)};Z(it,ot=>{t.child?ot(q):ot(lt,-1)})}y(bt,nt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let x=S(()=>el({forceMount:o(),present:m.root.opts.open.current,trapFocus:d(),open:m.root.opts.open.current}));qc(_,{loop:!0,get trapFocus(){return s(x)},get onOpenAutoFocus(){return c()},get id(){return r()},onCloseAutoFocus:P=>{var A;i()(P),!P.defaultPrevented&&((A=m.root.triggerNode)==null||A.focus())},focusScope:I,$$slots:{focusScope:!0}})}};let N=S(()=>m.root.opts.open.current||o());ie(e,X(()=>s(b),{get forceMount(){return o()},get present(){return s(N)},presence:T,$$slots:{presence:!0}}))}V()}function xe(e,t){dt(()=>{let r=0;const n=e();if(!n)return;const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(n),()=>{window.cancelAnimationFrame(r),o.unobserve(n)}})}function bl(e,t,r){return Math.min(r,Math.max(t,e))}const yl="data-scroll-area-root",Sl="data-scroll-area-viewport",wl="data-scroll-area-corner",xl="data-scroll-area-thumb",Tl="data-scroll-area-scrollbar";var fr,gr,vr,mr,pr,br,yr,Sr,wr,xr;class Cl{constructor(t){E(this,"opts");p(this,fr,F(null));p(this,gr,F(null));p(this,vr,F(null));p(this,mr,F(null));p(this,pr,F(null));p(this,br,F(0));p(this,yr,F(0));p(this,Sr,F(!1));p(this,wr,F(!1));p(this,xr,S(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[yl]:""})));this.opts=t,ht({...t,onRefChange:r=>{this.scrollAreaNode=r}})}get scrollAreaNode(){return s(a(this,fr))}set scrollAreaNode(t){w(a(this,fr),t,!0)}get viewportNode(){return s(a(this,gr))}set viewportNode(t){w(a(this,gr),t,!0)}get contentNode(){return s(a(this,vr))}set contentNode(t){w(a(this,vr),t,!0)}get scrollbarXNode(){return s(a(this,mr))}set scrollbarXNode(t){w(a(this,mr),t,!0)}get scrollbarYNode(){return s(a(this,pr))}set scrollbarYNode(t){w(a(this,pr),t,!0)}get cornerWidth(){return s(a(this,br))}set cornerWidth(t){w(a(this,br),t,!0)}get cornerHeight(){return s(a(this,yr))}set cornerHeight(t){w(a(this,yr),t,!0)}get scrollbarXEnabled(){return s(a(this,Sr))}set scrollbarXEnabled(t){w(a(this,Sr),t,!0)}get scrollbarYEnabled(){return s(a(this,wr))}set scrollbarYEnabled(t){w(a(this,wr),t,!0)}get props(){return s(a(this,xr))}set props(t){w(a(this,xr),t)}}fr=new WeakMap,gr=new WeakMap,vr=new WeakMap,mr=new WeakMap,pr=new WeakMap,br=new WeakMap,yr=new WeakMap,Sr=new WeakMap,wr=new WeakMap,xr=new WeakMap;var Tr,jn,Cr,_r;class _l{constructor(t,r){E(this,"opts");E(this,"root");p(this,Tr,C(pt()));p(this,jn,C(null));p(this,Cr,S(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[Sl]:""})));p(this,_r,S(()=>({id:a(this,Tr).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0}})));this.opts=t,this.root=r,ht({...t,onRefChange:n=>{this.root.viewportNode=n}}),ht({id:a(this,Tr),ref:a(this,jn),onRefChange:n=>{this.root.contentNode=n}})}get props(){return s(a(this,Cr))}set props(t){w(a(this,Cr),t)}get contentProps(){return s(a(this,_r))}set contentProps(t){w(a(this,_r),t)}}Tr=new WeakMap,jn=new WeakMap,Cr=new WeakMap,_r=new WeakMap;var Pr,kr;class Pl{constructor(t,r){E(this,"opts");E(this,"root");p(this,Pr,S(()=>this.opts.orientation.current==="horizontal"));p(this,kr,F(!1));this.opts=t,this.root=r,dt(()=>(this.isHorizontal?this.root.scrollbarXEnabled=!0:this.root.scrollbarYEnabled=!0,()=>{this.isHorizontal?this.root.scrollbarXEnabled=!1:this.root.scrollbarYEnabled=!1}))}get isHorizontal(){return s(a(this,Pr))}set isHorizontal(t){w(a(this,Pr),t)}get hasThumb(){return s(a(this,kr))}set hasThumb(t){w(a(this,kr),t,!0)}}Pr=new WeakMap,kr=new WeakMap;var Ar,Er;class kl{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Ar,F(!1));p(this,Er,S(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,dt(()=>{const r=this.root.scrollAreaNode,n=this.root.opts.scrollHideDelay.current;let o=0;if(!r)return;const i=()=>{window.clearTimeout(o),Zt(()=>this.isVisible=!0)},c=()=>{o&&window.clearTimeout(o),o=window.setTimeout(()=>{Zt(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},n)},l=Gt(_t(r,"pointerenter",i),_t(r,"pointerleave",c));return()=>{window.clearTimeout(o),l()}})}get isVisible(){return s(a(this,Ar))}set isVisible(t){w(a(this,Ar),t,!0)}get props(){return s(a(this,Er))}set props(t){w(a(this,Er),t)}}Ar=new WeakMap,Er=new WeakMap;var Nr,Ir;class Al{constructor(t){E(this,"scrollbar");E(this,"root");E(this,"machine",ri("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));p(this,Nr,S(()=>this.machine.state.current==="hidden"));p(this,Ir,S(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const r=Kn(()=>this.machine.dispatch("SCROLL_END"),100);dt(()=>{const n=this.machine.state.current,o=this.root.opts.scrollHideDelay.current;if(n==="idle"){const i=window.setTimeout(()=>this.machine.dispatch("HIDE"),o);return()=>window.clearTimeout(i)}}),dt(()=>{const n=this.root.viewportNode;if(!n)return;const o=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let i=n[o];return hn(n,"scroll",()=>{const u=n[o];i!==u&&(this.machine.dispatch("SCROLL"),r()),i=u})}
8),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}get isHidden(){return s(a(this,Nr))}set isHidden(t){w(a(this,Nr),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return s(a(this,Ir))}set props(t){w(a(this,Ir),t)}}Nr=new WeakMap,Ir=new WeakMap;var Dr,Rr;class El{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Dr,F(!1));p(this,Rr,S(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const r=Kn(()=>{const n=this.root.viewportNode;if(!n)return;const o=n.offsetWidth<n.scrollWidth,i=n.offsetHeight<n.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?o:i},10);xe(()=>this.root.viewportNode,r),xe(()=>this.root.contentNode,r)}get isVisible(){return s(a(this,Dr))}set isVisible(t){w(a(this,Dr),t,!0)}get props(){return s(a(this,Rr))}set props(t){w(a(this,Rr),t)}}Dr=new WeakMap,Rr=new WeakMap;var Br,Lr,Or,Mr,Vr,Fr;class Nl{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Br,F(null));p(this,Lr,F(0));p(this,Or,F({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));p(this,Mr,S(()=>fi(this.sizes.viewport,this.sizes.content)));p(this,Vr,S(()=>this.thumbRatio>0&&this.thumbRatio<1));p(this,Fr,F(""));this.scrollbar=t,this.root=t.root,dt(()=>{this.scrollbar.hasThumb=this.hasThumb}),Ae(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}get thumbNode(){return s(a(this,Br))}set thumbNode(t){w(a(this,Br),t,!0)}get pointerOffset(){return s(a(this,Lr))}set pointerOffset(t){w(a(this,Lr),t,!0)}get sizes(){return s(a(this,Or))}set sizes(t){w(a(this,Or),t)}get thumbRatio(){return s(a(this,Mr))}set thumbRatio(t){w(a(this,Mr),t)}get hasThumb(){return s(a(this,Vr))}set hasThumb(t){w(a(this,Vr),t)}get prevTransformStyle(){return s(a(this,Fr))}set prevTransformStyle(t){w(a(this,Fr),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,r){return Kl({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:r})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,n=`translate3d(${Wo({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,n=`translate3d(0, ${Wo({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}}Br=new WeakMap,Lr=new WeakMap,Or=new WeakMap,Mr=new WeakMap,Vr=new WeakMap,Fr=new WeakMap;var zr,Wr,Hr;class Il{constructor(t,r){E(this,"opts");E(this,"scrollbarVis");E(this,"root");p(this,zr,F());E(this,"scrollbar");E(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});E(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});E(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});E(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});E(this,"onWheelScroll",(t,r)=>{if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(n),vi(n,r)&&t.preventDefault()});E(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:En(this.computedStyle.paddingLeft),paddingEnd:En(this.computedStyle.paddingRight)}})});p(this,Wr,S(()=>Jn(this.scrollbarVis.sizes)));p(this,Hr,S(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`}})));this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,ht({...this.scrollbar.opts,onRefChange:n=>{this.root.scrollbarXNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),dt(()=>{this.onResize()})}get computedStyle(){return s(a(this,zr))}set computedStyle(t){w(a(this,zr),t,!0)}get thumbSize(){return s(a(this,Wr))}set thumbSize(t){w(a(this,Wr),t)}get props(){return s(a(this,Hr))}set props(t){w(a(this,Hr),t)}}zr=new WeakMap,Wr=new WeakMap,Hr=new WeakMap;var Ur,jr,qr;class Dl{constructor(t,r){E(this,"opts");E(this,"scrollbarVis");E(this,"root");E(this,"scrollbar");p(this,Ur,F());p(this,jr,S(()=>Jn(this.scrollbarVis.sizes)));p(this,qr,S(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{to
8p:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`}})));this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,ht({...this.scrollbar.opts,onRefChange:n=>{this.root.scrollbarYNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),dt(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}get computedStyle(){return s(a(this,Ur))}set computedStyle(t){w(a(this,Ur),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,r){if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(n),vi(n,r)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:En(this.computedStyle.paddingTop),paddingEnd:En(this.computedStyle.paddingBottom)}})}get thumbSize(){return s(a(this,jr))}set thumbSize(t){w(a(this,jr),t)}get props(){return s(a(this,qr))}set props(t){w(a(this,qr),t)}}Ur=new WeakMap,jr=new WeakMap,qr=new WeakMap;var Xr,Kr,Yr,Gr;class Rl{constructor(t){E(this,"scrollbarState");E(this,"root");E(this,"scrollbarVis");E(this,"scrollbar");p(this,Xr,F(null));p(this,Kr,F(""));E(this,"handleResize");E(this,"handleThumbPositionChange");E(this,"handleWheelScroll");E(this,"handleThumbPointerDown");E(this,"handleThumbPointerUp");p(this,Yr,S(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));p(this,Gr,S(()=>tt({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[Tl]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=Kn(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,dt(()=>{const r=this.maxScrollPos,n=this.scrollbar.opts.ref.current;return this.root.viewportNode,hn(document,"wheel",c=>{const l=c.target;(n==null?void 0:n.contains(l))&&this.handleWheelScroll(c,r)},{passive:!1})}),Ae(()=>{this.scrollbarVis.sizes,Zt(()=>this.handleThumbPositionChange())}),Ae(()=>{this.handleThumbPositionChange()}),xe(()=>this.scrollbar.opts.ref.current,this.handleResize),xe(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this)}get rect(){return s(a(this,Xr))}set rect(t){w(a(this,Xr),t)}get prevWebkitUserSelect(){return s(a(this,Kr))}set prevWebkitUserSelect(t){w(a(this,Kr),t,!0)}get maxScrollPos(){return s(a(this,Yr))}set maxScrollPos(t){w(a(this,Yr),t)}handleDragScroll(t){if(!this.rect)return;const r=t.clientX-this.rect.left,n=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:r,y:n})}onpointerdown(t){var n;if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=((n=this.scrollbar.opts.ref.current)==null?void 0:n.getBoundingClientRect())??null,this.prevWebkitUserSelect=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const r=t.target;r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),document.body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null}get props(){return s(a(this,Gr))}set props(t){w(a(this,Gr),t)}}Xr=new WeakMap,Kr=new WeakMap,Yr=new WeakMap,Gr=new WeakMap;var Zr,Yt,qn,Jr;class Bl{constructor(t,r){E(this,"opts");E(this,"scrollbarState");p(this,Zr);p(this,Yt,F());p(this,qn,Kn(()=>{s(a(this,Yt))&&(s(a(this,Yt))(),w(a(this,Yt),void 0))},100));p(this,Jr,S(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[xl]:""})));this.opts=t,this.scrollbarState=r,st(this,Zr,r.root),ht({...t,onRefChange:n=>{this.scrollbarState.scrollbarVis.thumbNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{const n=a(this,Zr).viewportNode;if(!n)return;const o=()=>
8{if(a(this,qn).call(this),!s(a(this,Yt))){const c=Yl(n,this.scrollbarState.handleThumbPositionChange);w(a(this,Yt),c,!0),this.scrollbarState.handleThumbPositionChange()}};return this.scrollbarState.handleThumbPositionChange(),hn(n,"scroll",o)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(t){const r=t.target;if(!r)return;const n=r.getBoundingClientRect(),o=t.clientX-n.left,i=t.clientY-n.top;this.scrollbarState.handleThumbPointerDown({x:o,y:i})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return s(a(this,Jr))}set props(t){w(a(this,Jr),t)}}Zr=new WeakMap,Yt=new WeakMap,qn=new WeakMap,Jr=new WeakMap;var Se,we,Qr,$r;class Ll{constructor(t,r){E(this,"opts");E(this,"root");p(this,Se,F(0));p(this,we,F(0));p(this,Qr,S(()=>!!(s(a(this,Se))&&s(a(this,we)))));p(this,$r,S(()=>({id:this.opts.id.current,style:{width:s(a(this,Se)),height:s(a(this,we)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[wl]:""})));this.opts=t,this.root=r,xe(()=>this.root.scrollbarXNode,()=>{var o;const n=((o=this.root.scrollbarXNode)==null?void 0:o.offsetHeight)||0;this.root.cornerHeight=n,w(a(this,we),n,!0)}),xe(()=>this.root.scrollbarYNode,()=>{var o;const n=((o=this.root.scrollbarYNode)==null?void 0:o.offsetWidth)||0;this.root.cornerWidth=n,w(a(this,Se),n,!0)}),ht(t)}get hasSize(){return s(a(this,Qr))}set hasSize(t){w(a(this,Qr),t)}get props(){return s(a(this,$r))}set props(t){w(a(this,$r),t)}}Se=new WeakMap,we=new WeakMap,Qr=new WeakMap,$r=new WeakMap;const fn=new Lt("ScrollArea.Root"),gn=new Lt("ScrollArea.Scrollbar"),Zn=new Lt("ScrollArea.ScrollbarVisible"),So=new Lt("ScrollArea.ScrollbarAxis"),di=new Lt("ScrollArea.ScrollbarShared");function Ol(e){return fn.set(new Cl(e))}function Ml(e){return new _l(e,fn.get())}function Vl(e){return gn.set(new Pl(e,fn.get()))}function Fl(){return Zn.set(new Nl(gn.get()))}function hi(){return new El(gn.get())}function zl(){return new Al(gn.get())}function Wl(){return new kl(gn.get())}function Hl(e){return So.set(new Il(e,Zn.get()))}function Ul(e){return So.set(new Dl(e,Zn.get()))}function jl(){return di.set(new Rl(So.get()))}function ql(e){return new Bl(e,di.get())}function Xl(e){return new Ll(e,fn.get())}function En(e){return e?Number.parseInt(e,10):0}function fi(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Jn(e){const t=fi(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Kl({pointerPos:e,pointerOffset:t,sizes:r,dir:n="ltr"}){const o=Jn(r),i=o/2,c=t||i,l=o-c,u=r.scrollbar.paddingStart+c,d=r.scrollbar.size-r.scrollbar.paddingEnd-l,g=r.content-r.viewport,v=n==="ltr"?[0,g]:[g*-1,0];return gi([u,d],v)(e)}function Wo({scrollPos:e,sizes:t,dir:r="ltr"}){const n=Jn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,c=t.content-t.viewport,l=i-n,u=r==="ltr"?[0,c]:[c*-1,0],d=bl(e,u[0],u[1]);return gi([0,c],[0,l])(d)}function gi(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function vi(e,t){return e>0&&e<t}function Yl(e,t){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},c=r.left!==i.left,l=r.top!==i.top;(c||l)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)}var Gl=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),Zl=U("<div><!></div>");function Jl(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"type",3,"hover"),i=f(t,"dir",3,"ltr"),c=f(t,"scrollHideDelay",3,600),l=j(t,Gl);const u=Ol({type:C.with(()=>o()),dir:C.with(()=>i()),scrollHideDelay:C.with(()=>c()),id:C.with(()=>n()),ref:C.with(()=>r(),b=>r(b))}),d=S(()=>tt(l,u.props));var g=D(),v=k(g);{var h=b=>{var T=D(),N=k(T);z(N,()=>t.child,()=>({props:s(d)})),y(b,T)},m=b=>{var T=Zl();ct(T,()=>({...s(d)}));var N=B(T);z(N,()=>t.children??J),R(T),y(b,T)};Z(v,b=>{t.child?b(h):b(m,-1)})}y(e,g),V()}var Ql=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),$l=U("<div><div><!></div></div>");function tu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,Ql);const i=Ml({id:C.with(()=>n()),ref:C.with(()=>r(),v=>r(v))}),c=S(()=>tt(o,i.props)),l=S(()=>tt({},i.contentProps));var u=$l();ct(u,()=>({...s(c)}));var d=B(u);
8ct(d,()=>({...s(l)}));var g=B(d);z(g,()=>t.children??J),R(d),R(u),y(e,u),V()}var eu=new Set(["$$slots","$$events","$$legacy","child","children"]),ru=U("<div><!></div>");function mi(e,t){M(t,!0);let r=j(t,eu);const n=jl(),o=S(()=>tt(r,n.props));var i=D(),c=k(i);{var l=d=>{var g=D(),v=k(g);z(v,()=>t.child,()=>({props:s(o)})),y(d,g)},u=d=>{var g=ru();ct(g,()=>({...s(o)}));var v=B(g);z(v,()=>t.children??J),R(g),y(d,g)};Z(c,d=>{t.child?d(l):d(u,-1)})}y(e,i),V()}var nu=new Set(["$$slots","$$events","$$legacy"]);function ou(e,t){M(t,!0);let r=j(t,nu);const n=new fo,o=Hl({mounted:C.with(()=>n.current)}),i=S(()=>tt(r,o.props));mi(e,X(()=>s(i))),V()}var iu=new Set(["$$slots","$$events","$$legacy"]);function su(e,t){M(t,!0);let r=j(t,iu);const n=new fo,o=Ul({mounted:C.with(()=>n.current)}),i=S(()=>tt(r,o.props));mi(e,X(()=>s(i))),V()}var au=new Set(["$$slots","$$events","$$legacy"]);function Qn(e,t){M(t,!0);let r=j(t,au);const n=Fl();var o=D(),i=k(o);{var c=u=>{ou(u,X(()=>r))},l=u=>{su(u,X(()=>r))};Z(i,u=>{n.scrollbar.opts.orientation.current==="horizontal"?u(c):u(l,-1)})}y(e,o),V()}var cu=new Set(["$$slots","$$events","$$legacy","forceMount"]);function lu(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,cu);const o=hi(),i=S(()=>tt(n,o.props));{const c=u=>{Qn(u,X(()=>s(i)))};let l=S(()=>r()||o.isVisible);ie(e,X({get present(){return s(l)}},()=>s(i),{presence:c,$$slots:{presence:!0}}))}V()}var uu=new Set(["$$slots","$$events","$$legacy","forceMount"]);function du(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,uu);const o=zl(),i=S(()=>tt(n,o.props));{const c=u=>{Qn(u,X(()=>s(i)))};let l=S(()=>r()||!o.isHidden);ie(e,X(()=>s(i),{get present(){return s(l)},presence:c,$$slots:{presence:!0}}))}V()}var hu=new Set(["$$slots","$$events","$$legacy","forceMount"]);function fu(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,hu);const o=Wl(),i=hi(),c=S(()=>tt(n,o.props,i.props,{"data-state":o.isVisible?"visible":"hidden"})),l=S(()=>r()||o.isVisible&&i.isVisible);ie(e,X(()=>s(c),{get present(){return s(l)},presence:d=>{Qn(d,X(()=>s(c)))},$$slots:{presence:!0}})),V()}var gu=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function vu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,gu);const i=Vl({orientation:C.with(()=>t.orientation),id:C.with(()=>n()),ref:C.with(()=>r(),m=>r(m))}),c=S(()=>i.root.opts.type.current);var l=D(),u=k(l);{var d=m=>{fu(m,X(()=>o,{get id(){return n()}}))},g=m=>{du(m,X(()=>o,{get id(){return n()}}))},v=m=>{lu(m,X(()=>o,{get id(){return n()}}))},h=m=>{Qn(m,X(()=>o,{get id(){return n()}}))};Z(u,m=>{s(c)==="hover"?m(d):s(c)==="scroll"?m(g,1):s(c)==="auto"?m(v,2):s(c)==="always"&&m(h,3)})}y(e,l),V()}var mu=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),pu=U("<div><!></div>");function bu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,mu);const o=new fo,i=ql({id:C.with(()=>t.id),ref:C.with(()=>r(),v=>r(v)),mounted:C.with(()=>o.current)}),c=S(()=>tt(n,i.props,{style:{hidden:!t.present}}));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);z(m,()=>t.child,()=>({props:s(c)})),y(v,h)},g=v=>{var h=pu();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var yu=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function Su(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"forceMount",3,!1),i=j(t,yu);const c=Zn.get();{const l=(d,g)=>{let v=()=>g==null?void 0:g().present;bu(d,X(()=>i,{get id(){return r()},get present(){return v().current},get ref(){return n()},set ref(h){n(h)}}))};let u=S(()=>o()||c.hasThumb);ie(e,X({get present(){return s(u)}},()=>i,{get id(){return r()},presence:l,$$slots:{presence:!0}}))}V()}var wu=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),xu=U("<div><!></div>");function Tu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,wu);const o=Xl({id:C.with(()=>t.id),ref:C.with(()=>r(),g=>r(g))}),i=S(()=>tt(n,o.props));var c=D(),l=k(c);{var u=g=>{var v=D(),h=k(v);z(h,()=>t.child,()=>({props:s(i)})),y(g,v)},d=g=>{var v=xu();ct(v,()=>({...s(i)}));var h=B(v);z(h,()=>t.children??J),R(v),y(g,v)};Z(l,g=>{t.child?g(u):g(d,-1)})}y(e,c),V()}var Cu=new Set(["$$slots","$$events","$$legacy","ref","id"]);function _u(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,Cu);const i=fn.get(),c=S(()=>!!(i.scrollbarXNode&&i.scrollbarYNode)),l=S(()=>i.opts.type.current!=="scroll"&&s(c));var u=D(),d=k(u);{var g=v=>{Tu(v,X(()=>o,{get id(){return n()},get ref(){return r()},set ref(h){r(h)}}))};Z(d,v=>{s(l)&&v(g)})}y(e,u),V()}const Pu="data-switch-root",ku="data-switch-thumb";var tn,co,en,rn,nn;class Au{constructor(t){p(this,tn);E(this,"opts");p(this,en,S(()=>({"data-disabled":dn(this.opts.disabled.current),"data-state":Ks(this.opts.checked.current),"data-required":Qs(this.opts.required.current)})));p(this,rn,S(()=>({checked:this.opts.checked.current})));p(this,nn,S(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:$s(this.opts.disabled.current),"aria-checked":Js(this.opts.checked.current),"aria-required":Zs(this.opts.required.current),[Pu]:"",oncl
8ick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,ht(t),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}onkeydown(t){!(t.key===po||t.key===bo)||this.opts.disabled.current||(t.preventDefault(),At(this,tn,co).call(this))}onclick(t){this.opts.disabled.current||At(this,tn,co).call(this)}get sharedProps(){return s(a(this,en))}set sharedProps(t){w(a(this,en),t)}get snippetProps(){return s(a(this,rn))}set snippetProps(t){w(a(this,rn),t)}get props(){return s(a(this,nn))}set props(t){w(a(this,nn),t)}}tn=new WeakSet,co=function(){this.opts.checked.current=!this.opts.checked.current},en=new WeakMap,rn=new WeakMap,nn=new WeakMap;var on,sn;class Eu{constructor(t){E(this,"root");p(this,on,S(()=>this.root.opts.name.current!==void 0));p(this,sn,S(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=t}get shouldRender(){return s(a(this,on))}set shouldRender(t){w(a(this,on),t)}get props(){return s(a(this,sn))}set props(t){w(a(this,sn),t)}}on=new WeakMap,sn=new WeakMap;var an,cn;class Nu{constructor(t,r){E(this,"opts");E(this,"root");p(this,an,S(()=>({checked:this.root.opts.checked.current})));p(this,cn,S(()=>({...this.root.sharedProps,id:this.opts.id.current,[ku]:""})));this.opts=t,this.root=r,ht(t)}get snippetProps(){return s(a(this,an))}set snippetProps(t){w(a(this,an),t)}get props(){return s(a(this,cn))}set props(t){w(a(this,cn),t)}}an=new WeakMap,cn=new WeakMap;const wo=new Lt("Switch.Root");function Iu(e){return wo.set(new Au(e))}function Du(){return new Eu(wo.get())}function Ru(e){return new Nu(e,wo.get())}function Bu(e,t){M(t,!1);const r=Du();lo();var n=D(),o=k(n);{var i=c=>{ll(c,X(()=>r.props))};Z(o,c=>{r.shouldRender&&c(i)})}y(e,n),V()}var Lu=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),Ou=U("<button><!></button>"),Mu=U("<!> <!>",1);function Vu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"disabled",3,!1),i=f(t,"required",3,!1),c=f(t,"checked",15,!1),l=f(t,"value",3,"on"),u=f(t,"name",3,void 0),d=f(t,"type",3,"button"),g=f(t,"onCheckedChange",3,xt),v=j(t,Lu);const h=Iu({checked:C.with(()=>c(),x=>{var P;c(x),(P=g())==null||P(x)}),disabled:C.with(()=>o()??!1),required:C.with(()=>i()),value:C.with(()=>l()),name:C.with(()=>u()),id:C.with(()=>n()),ref:C.with(()=>r(),x=>r(x))}),m=S(()=>tt(v,h.props,{type:d()}));var b=Mu(),T=k(b);{var N=x=>{var P=D(),A=k(P);{let L=S(()=>({props:s(m),...h.snippetProps}));z(A,()=>t.child,()=>s(L))}y(x,P)},_=x=>{var P=Ou();ct(P,()=>({...s(m)}));var A=B(P);z(A,()=>t.children??J,()=>h.snippetProps),R(P),y(x,P)};Z(T,x=>{t.child?x(N):x(_,-1)})}var I=O(T,2);Bu(I,{}),y(e,b),V()}var Fu=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),zu=U("<span><!></span>");function Wu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,Fu);const i=Ru({id:C.with(()=>n()),ref:C.with(()=>r(),v=>r(v))}),c=S(()=>tt(o,i.props));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);{let b=S(()=>({props:s(c),...i.snippetProps}));z(m,()=>t.child,()=>s(b))}y(v,h)},g=v=>{var h=zu();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J,()=>i.snippetProps),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var Hu=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Uu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Hu);var o=D(),i=k(o);{let c=S(()=>G("cc:text-lg cc:font-semibold cc:leading-none cc:tracking-tight",t.class));et(i,()=>ic,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}var ju=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),qu=U("<div><!></div>");function Xu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,ju);var o=qu();ct(o,c=>({class:c,...n}),[()=>G("cc:flex cc:flex-col cc:space-y-1.5 cc:text-center cc:sm:text-left",t.class)]);var i=B(o);z(i,()=>t.children??J),R(o),Ji(o,c=>r(c),()=>r()),y(e,o),V()}var Ku=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Yu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Ku);var o=D(),i=k(o);{let c=S(()=>G("cc:data-[state=open]:animate-in cc:data-[state=closed]:animate-out cc:data-[state=closed]:fade-out-0 cc:data-[state=open]:fade-in-0 cc:fixed cc:inset-0 cc:z-50 cc:bg-black/80",t.class));et(i,()=>ol,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}/** 9 * @license lucide-svelte v0.511.0 - ISC 10 * 11 * ISC License 12 * 13 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 14 * 15 * Permission to use, copy, modify, and/or distribute this software for any 16 * purpose with or without fee is hereby granted, provided that the above 17 * copyright notice and this permission notice appear in all copies. 18 * 19 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 20 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 21 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 22 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 23 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 24 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 25 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 26 * 27 */const Gu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var Zu=Ni("<svg><!><!></svg>");function pi(e,t){const r=Pn(t,["children","$$slots","$$events","$$legacy"]),n=Pn(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);M(t,!1);let o=f(t,"name",8,void 0),i=f(t,"color",8,"currentColor"),c=f(t,"size",8,24),l=f(t,"strokeWidth",8,2),u=f(t,"absoluteStrokeWidth",8,!1),d=f(t,"iconNode",24,()=>[]);const g=(...b)=>b.filter((T,N,_)=>!!T&&_.indexOf(T)===N).join(" ");lo();var v=Zu();ct(v,(b,T)=>({...Gu,...n,width:c(),height:c(),stroke:i(),"stroke-width":b,class:T}),[()=>(Pe(u()),Pe(l()),Pe(c()),Zt(()=>u()?Number(l())*24/Number(c()):l())),()=>(Pe(o()),Pe(r),Zt(()=>g("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var h=B(v);_n(h,1,d,Hi,(b,T)=>{var N=S(()=>Oi(s(T),2));let _=()=>s(N)[0],I=()=>s(N)[1];var x=D(),P=k(x);
27Zi(P,_,!0,(A,L)=>{ct(A,()=>({...I()}))}),y(b,x)});var m=O(h);uo(m,t,"default",{},null),R(v),y(e,v),V()}function Ju(e,t){const r=Pn(t,["children","$$slots","$$events","$$legacy"]);/** 28 * @license lucide-svelte v0.511.0 - ISC 29 * 30 * ISC License 31 * 32 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 33 * 34 * Permission to use, copy, modify, and/or distribute this software for any 35 * purpose with or without fee is hereby granted, provided that the above 36 * copyright notice and this permission notice appear in all copies. 37 * 38 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 39 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 40 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 41 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 42 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 43 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 44 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 45 * 46 */const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];pi(e,X({name:"x"},()=>r,{get iconNode(){return n},children:(o,i)=>{var c=D(),l=k(c);uo(l,t,"default",{},null),y(o,c)},$$slots:{default:!0}}))}var Qu=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children"]),$u=U('<!> <span class="cc:sr-only">Close</span>',1),Ho=U("<!> <!>",1);function td(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Qu);var o=D(),i=k(o);et(i,()=>od,(c,l)=>{l(c,X(()=>t.portalProps,{children:(u,d)=>{var g=Ho(),v=k(g);et(v,()=>Yu,(m,b)=>{b(m,{})});var h=O(v,2);{let m=S(()=>G("cc:bg-background cc:data-[state=open]:animate-in cc:data-[state=closed]:animate-out cc:data-[state=closed]:fade-out-0 cc:data-[state=open]:fade-in-0 cc:data-[state=closed]:zoom-out-95 cc:data-[state=open]:zoom-in-95 cc:data-[state=closed]:slide-out-to-left-1/2 cc:data-[state=closed]:slide-out-to-top-[48%] cc:data-[state=open]:slide-in-from-left-1/2 cc:data-[state=open]:slide-in-from-top-[48%] cc:fixed cc:left-[50%] cc:top-[50%] cc:z-50 cc:grid cc:w-full cc:max-w-lg cc:translate-x-[-50%] cc:translate-y-[-50%] cc:gap-4 cc:border cc:p-6 cc:shadow-lg cc:duration-200 cc:sm:rounded-lg",t.class));et(h,()=>pl,(b,T)=>{T(b,X({get class(){return s(m)}},()=>n,{get ref(){return r()},set ref(N){r(N)},children:(N,_)=>{var I=Ho(),x=k(I);z(x,()=>t.children??J);var P=O(x,2);et(P,()=>fl,(A,L)=>{L(A,{class:"cc:ring-offset-background cc:focus:ring-ring cc:data-[state=open]:bg-accent cc:data-[state=open]:text-muted-foreground cc:absolute cc:right-4 cc:top-4 cc:rounded-sm cc:opacity-70 cc:transition-opacity cc:hover:opacity-100 cc:focus:outline-hidden cc:focus:ring-2 cc:focus:ring-offset-2 cc:disabled:pointer-events-none",children:(W,K)=>{var Y=$u(),ft=k(Y);Ju(ft,{class:"cc:size-4"}),jt(2),y(W,Y)},$$slots:{default:!0}})}),y(N,I)},$$slots:{default:!0}}))})}y(u,g)},$$slots:{default:!0}}))}),y(e,o),V()}var ed=new Set(["$$slots","$$events","$$legacy","ref","class"]);function rd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,ed);var o=D(),i=k(o);{let c=S(()=>G("cc:text-muted-foreground cc:text-sm",t.class));et(i,()=>al,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}const nd=ul,od=ac;var id=new Set(["$$slots","$$events","$$legacy","ref","checked","class","checkedBgColor","uncheckedBgColor","thumbColor"]);function sd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"checked",15,!1),o=f(t,"checkedBgColor",3,void 0),i=f(t,"uncheckedBgColor",3,void 0),c=f(t,"thumbColor",3,void 0),l=j(t,id);const u=[o()?`--cc-switch-checked-bg: ${o()};`:"--cc-switch-checked-bg: hsl(var(--primary));",i()?`--cc-switch-unchecked-bg: ${i()};`:"--cc-switch-unchecked-bg: hsl(var(--input));"].join(" "),d=c()?`--cc-switch-thumb-bg: ${c()};`:"--cc-switch-thumb-bg: hsl(var(--background));";var g=D(),v=k(g);{let h=S(()=>G("cc:focus-visible:ring-ring cc:focus-visible:ring-offset-background cc:data-[state=checked]:bg-[var(--cc-switch-checked-bg)] cc:data-[state=unchecked]:bg-[var(--cc-switch-unchecked-bg)] cc:peer cc:inline-flex cc:h-5 cc:w-9 cc:shrink-0 cc:cursor-pointer cc:items-center cc:rounded-full cc:border-2 cc:border-transparent cc:shadow-xs cc:transition-colors cc:focus-visible:outline-hidden cc:focus-visible:ring-2 cc:focus-visible:ring-offset-2 cc:disabled:cursor-not-allowed cc:disabled:opacity-50",t.class));et(v,()=>Vu,(m,b)=>{b(m,X({get style(){return u},get class(){return s(h)}},()=>l,{get ref(){return r()},set ref(T){r(T)},get checked(){return n()},set checked(T){n(T)},children:(T,N)=>{var _=D(),I=k(_);{let x=S(()=>G("cc:bg-[var(--cc-switch-thumb-bg)] cc:pointer-events-none cc:block cc:size-4 cc:rounded-full cc:shadow-lg cc:ring-0 cc:transition-transform cc:data-[state=checked]:translate-x-4 cc:data-[state=unchecked]:translate-x-0"));et(I,()=>Wu,(P,A)=>{A(P,{get style(){return d},get class(){return s(x)}})})}y(T,_)},$$slots:{default:!0}}
46))})}y(e,g),V()}var ad=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),cd=U('<div class="cc:pb-4 cc:pt-0"><!></div>');function ld(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,ad);var o=D(),i=k(o);{let c=S(()=>G("cc:data-[state=closed]:animate-accordion-up cc:data-[state=open]:animate-accordion-down cc:overflow-hidden cc:text-sm",t.class));et(i,()=>Ua,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)},children:(d,g)=>{var v=cd(),h=B(v);z(h,()=>t.children??J),R(v),y(d,v)},$$slots:{default:!0}}))})}y(e,o),V()}var ud=new Set(["$$slots","$$events","$$legacy","ref","class"]);function dd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,ud);var o=D(),i=k(o);{let c=S(()=>G("cc:border-b",t.class));et(i,()=>Ra,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}function hd(e,t){const r=Pn(t,["children","$$slots","$$events","$$legacy"]);/** 47 * @license lucide-svelte v0.511.0 - ISC 48 * 49 * ISC License 50 * 51 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 52 * 53 * Permission to use, copy, modify, and/or distribute this software for any 54 * purpose with or without fee is hereby granted, provided that the above 55 * copyright notice and this permission notice appear in all copies. 56 * 57 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 58 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 59 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 60 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 61 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 62 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 63 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 64 * 65 */const n=[["path",{d:"m6 9 6 6 6-6"}]];pi(e,X({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,i)=>{var c=D(),l=k(c);uo(l,t,"default",{},null),y(o,c)},$$slots:{default:!0}}))}var fd=new Set(["$$slots","$$events","$$legacy","ref","class","level","children"]),gd=U("<!> <!>",1);function vd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"level",3,3),o=j(t,fd);var i=D(),c=k(i);et(c,()=>Oa,(l,u)=>{u(l,{get level(){return n()},class:"cc:flex",children:(d,g)=>{var v=D(),h=k(v);{let m=S(()=>G("cc:flex cc:flex-1 cc:items-center cc:justify-between cc:py-4 cc:text-sm cc:font-medium cc:transition-all cc:hover:underline cc:[&[data-state=open]>svg]:rotate-180",t.class));et(h,()=>Fa,(b,T)=>{T(b,X({get class(){return s(m)}},()=>o,{get ref(){return r()},set ref(N){r(N)},children:(N,_)=>{var I=gd(),x=k(I);z(x,()=>t.children??J);var P=O(x,2);hd(P,{class:"cc:text-muted-foreground cc:size-4 cc:shrink-0 cc:transition-transform cc:duration-200"}),y(N,I)},$$slots:{default:!0}}))})}y(d,v)},$$slots:{default:!0}})}),y(e,i),V()}const md=Na;var pd=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),bd=U("<!> <!>",1);function Uo(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"orientation",3,"vertical"),o=j(t,pd);var i=D(),c=k(i);{let l=S(()=>G("cc:flex cc:touch-none cc:select-none cc:transition-colors",n()==="cc:vertical"&&"cc:h-full cc:w-2.5 cc:border-l cc:border-l-transparent cc:p-px",n()==="cc:horizontal"&&"cc:h-2.5 cc:w-full cc:border-t cc:border-t-transparent cc:p-px",t.class));et(c,()=>vu,(u,d)=>{d(u,X({get orientation(){return n()},get class(){return s(l)}},()=>o,{get ref(){return r()},set ref(g){r(g)},children:(g,v)=>{var h=bd(),m=k(h);z(m,()=>t.children??J);var b=O(m,2);{let T=S(()=>G("cc:bg-border cc:relative cc:rounded-full",n()==="cc:vertical"&&"cc:flex-1"));et(b,()=>Su,(N,_)=>{_(N,{get class(){return s(T)}})})}y(g,h)},$$slots:{default:!0}}))})}y(e,i),V()}var yd=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","oneLinePerScroll","children"]),Sd=U("<!> <!> <!> <!>",1);function wd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"orientation",3,"vertical"),o=f(t,"scrollbarXClasses",3,""),i=f(t,"scrollbarYClasses",3,""),c=f(t,"oneLinePerScroll",3,!1),l=j(t,yd),u=F(null),d=16,g=null,v=null;function h(x){if(!x)return 16;const P=getComputedStyle(x),A=parseFloat(P.lineHeight);if(!Number.isNaN(A))return Math.max(1,Math.round(A));const L=parseFloat(P.fontSize)||16;return Math.max(1,Math.round(L*1.4))}function m(x){const P=new Map;for(const A of x){const L=Math.round(A.top),W=P.get(L);W?(A.top<W.top&&(W.top=A.top),A.bottom>W.bottom&&(W.bottom=A.bottom)):P.set(L,{top:A.top,bottom:A.bottom})}return Array.from(P.values()).sort((A,L)=>A.top-L.top)}function b(){if(!s(u))return null;const x=s(u).firstElementChild??null;if(!x)return null;const P=Math.round(x.getBoundingClientRect().width);if(g&&v===P)return g;try{const A=x.ownerDocument.createRange();A.selectNodeContents(x);const L=Array.from(A.getClientRects());if(L.length===0)return null;const W=m(L);if(W.length<=1)return null;const K=[];for(let rt=1;rt<W.length;rt+=1){const nt=W[rt].top-W[rt-1].top;nt>.5&&nt<200&&K.push(nt)}if(K.length===0)return null;K.sort((rt,nt)=>rt-nt);const Y=Math.floor(K.length/2),ft=K.length%2===0?(K[Y-1]+K[Y])/2:K[Y],bt=Math.max(1,Math.round(ft));return g=bt,v=P,bt}catch{return null}}function T(x){var K,Y,ft,bt;if(!s(u))return null;const P=s(u).ownerDocument,A=s(u).getBoundingClientRect(),W=((Y=(K=s(u).firstElementChild||s(u)).querySelector)==null?void 0:Y.call(K,":scope > *"))||s(u).firstElementChild||s(u).firstElementChild;if(!W)return null;try{const rt=P.createRange();rt.selectNodeContents(W);const nt=Array.from(rt.getClientRects());if(nt.length===0)return null;const it=m(nt),q=((ft=it[0])==null?void 0:ft.top)??A.top,lt=((bt=it[it.length-1])==null?void 0:bt.bottom)??A.bottom;return x>0&&A.top<q&&s(u).scrollTop<=0?Math.max(1,Math.round(q-A.top)):x<0&&A.bottom>lt?Math.max(1,Math.round(A.bottom-lt)):null}catch{return null}}function N(x){if(!c()||n()==="horizontal"||!s(u))return;x.preventDefault();const P=Math.sign(x.deltaY||1)||1,A=b(),L=T(P);if(L){s(u).scrollBy({top:P*L,left:0,behavior:"auto"});return}let W=A??d;W=Math.max(1,Math.round(W)),s(u).scrollBy({top:P*W,left:0,behavior:"auto"})}Xn(()=>{const x=s(u);if(!x)return;d=h(x),x.addEventListener("wheel",N,{passive:!1});const P=()=>{g=null,v=null};return window.addEventListener("resize",P),()=>{x.removeEventListener("wheel",N),window.removeEventListener("resize",P)}});var _=D(),I=k(_);{let x=S(()=>G("cc:relative cc:overflow-hidden",t.class));et(I,()=>Jl,(P,A)=>{A(P,X(()=>l,{get class(){return s(x)},get ref(){return r()},set ref(L){r(L)},children:(L,W)=>{var K=Sd(),Y=k(K);et(Y,()=>tu,(q,lt)=>{lt(q,{class:"cc:h-full cc:w-full cc:rounded-[inherit]",get ref(){return s(u)},set ref(ot){w(u,ot,!0)},children:(ot,yt)=>{var ut=D(),gt=k(ut);z(gt,()=>t.children??J),y(ot,ut)},$$slots:{default:!0}})});var ft=O(Y,2);{var bt=q=>{Uo(q,{orientation:"vertical",get class(){return i()}})};Z(ft,q=>{(n()==="vertical"||n()==="both")&&q(bt)})}var rt=O(ft,2);{var nt=q=>{Uo(q,{orientation:"horizontal",get class(){return o()}})};Z(rt,q=>{(n()==="horizontal"||n()==="both")&&q(nt)})}var it=O(rt,2);et(it,()=>_u,(q,lt)=>{lt(q,{})}),y(L,K)},$$slots:{default:!0}}
65))})}y(e,_),V()}const H={title:"Cookie Preferences",description:"We use cookies to enhance your experience on our website. Here you can manage your preferences.",detailedInfoTrigger:"Detailed Cookie Information",storageDurationTitle:"Storage Duration:",storageDurationText:"The storage duration of cookies varies depending on their purpose. Session cookies are deleted when you close your browser. Persistent cookies remain on your device for a period specified in each cookie, which may range from a few minutes to several years, but we regularly review and update our cookies to ensure they are not kept longer than necessary.",legalBasisTitle:"Legal Basis:",legalBasisText:"We rely on different legal bases depending on the type of cookie:",legalBasisStrictlyNecessary:"For strictly necessary cookies: Art. 6(1)(f) GDPR (legitimate interests)",legalBasisConsent:"For performance, functionality, marketing, and analytics cookies: Art. 6(1)(a) GDPR (Consent)",dataSharingTitle:"Data Sharing:",dataSharingText:"We do not share data collected by strictly necessary cookies. For performance, functionality, marketing, and analytics cookies, data may be shared with third parties only with your explicit consent.",rejectAllButton:"Reject All",confirmSelectionButton:"Confirm Selection",cancelButton:"Cancel",acceptAllButton:"Accept All",cookieNameLabel:"Cookie Name",cookieValueLabel:"Cookie Value",cookieDaysLabel:"Valid Days",secureLabel:"Secure",sameSiteLabel:"SameSite",setCookieButton:"Set Cookie",updateCookieButton:"Update Cookie",currentCookiesTitle:"Current Cookies",noCookiesFoundText:"No cookies found",cookieTableNameHeader:"Name",cookieTableValueHeader:"Value",cookieTableActionsHeader:"Actions",deleteButton:"Delete",categoryRequiredChipText:"(Required)"},bi=Symbol("cookieStyleContext");function xd(e){Xo(bi,e)}function yi(){return ro(bi)||{}}function Td(e,t){M(t,!0);let r=f(t,"titleText",19,()=>H.title),n=f(t,"descriptionText",19,()=>H.description),o=f(t,"detailedInfoTriggerText",19,()=>H.detailedInfoTrigger),i=f(t,"storageDurationTitleText",19,()=>H.storageDurationTitle),c=f(t,"storageDurationDetailsText",19,()=>H.storageDurationText),l=f(t,"legalBasisTitleText",19,()=>H.legalBasisTitle),u=f(t,"legalBasisDetailsText",19,()=>H.legalBasisText),d=f(t,"legalBasisStrictlyNecessaryText",19,()=>H.legalBasisStrictlyNecessary),g=f(t,"legalBasisConsentText",19,()=>H.legalBasisConsent),v=f(t,"dataSharingTitleText",19,()=>H.dataSharingTitle),h=f(t,"dataSharingDetailsText",19,()=>H.dataSharingText),m=f(t,"rejectAllButtonText",19,()=>H.rejectAllButton),b=f(t,"confirmSelectionButtonText",19,()=>H.confirmSelectionButton),T=f(t,"cancelButtonText",19,()=>H.cancelButton),N=f(t,"acceptAllButtonText",19,()=>H.acceptAllButton),_=f(t,"cookieNameLabelText",19,()=>H.cookieNameLabel),I=f(t,"cookieValueLabelText",19,()=>H.cookieValueLabel),x=f(t,"cookieDaysLabelText",19,()=>H.cookieDaysLabel),P=f(t,"secureLabelText",19,()=>H.secureLabel),A=f(t,"sameSiteLabelText",19,()=>H.sameSiteLabel),L=f(t,"setCookieButtonText",19,()=>H.setCookieButton),W=f(t,"updateCookieButtonText",19,()=>H.updateCookieButton),K=f(t,"currentCookiesTitleText",19,()=>H.currentCookiesTitle),Y=f(t,"noCookiesFoundText",19,()=>H.noCookiesFoundText),ft=f(t,"cookieTableNameHeaderText",19,()=>H.cookieTableNameHeader),bt=f(t,"cookieTableValueHeaderText",19,()=>H.cookieTableValueHeader),rt=f(t,"cookieTableActionsHeaderText",19,()=>H.cookieTableActionsHeader),nt=f(t,"deleteButtonText",19,()=>H.deleteButton),it=f(t,"categoryRequiredChipText",19,()=>H.categoryRequiredChipText);xd({titleText:r(),descriptionText:n(),detailedInfoTriggerText:o(),storageDurationTitleText:i(),storageDurationDetailsText:c(),legalBasisTitleText:l(),legalBasisDetailsText:u(),legalBasisStrictlyNecessaryText:d(),legalBasisConsentText:g(),dataSharingTitleText:v(),dataSharingDetailsText:h(),rejectAllButtonText:m(),confirmSelectionButtonText:b(),cancelButtonText:T(),acceptAllButtonText:N(),cookieNameLabelText:_(),cookieValueLabelText:I(),cookieDaysLabelText:x(),secureLabelText:P(),sameSiteLabelText:A(),setCookieButtonText:L(),updateCookieButtonText:W(),currentCookiesTitleText:K(),noCookiesFoundText:Y(),c
65ookieTableNameHeaderText:ft(),cookieTableValueHeaderText:bt(),cookieTableActionsHeaderText:rt(),deleteButtonText:nt(),categoryRequiredChipText:it(),cookieCategories:t.cookieCategories,cookieCategoryTextOverrides:t.cookieCategoryTextOverrides,titleTextColor:t.titleTextColor,titleBackgroundColor:t.titleBackgroundColor,descriptionParagraphTextColor:t.descriptionParagraphTextColor,descriptionParagraphBackgroundColor:t.descriptionParagraphBackgroundColor,switchCheckedBgColor:t.switchCheckedBgColor,switchUncheckedBgColor:t.switchUncheckedBgColor,switchThumbColor:t.switchThumbColor,titleClass:t.titleClass,descriptionClass:t.descriptionClass,descriptionParagraphClass:t.descriptionParagraphClass,contentWrapperClass:t.contentWrapperClass,headerClass:t.headerClass,footerClass:t.footerClass,categoryListClass:t.categoryListClass,categoryItemClass:t.categoryItemClass,categorySwitchClass:t.categorySwitchClass,categoryTextWrapperClass:t.categoryTextWrapperClass,categoryNameClass:t.categoryNameClass,categoryNameRequiredClass:t.categoryNameRequiredClass,categoryDescriptionClass:t.categoryDescriptionClass,accordionRootClass:t.accordionRootClass,accordionItemClass:t.accordionItemClass,accordionTriggerClass:t.accordionTriggerClass,accordionContentClass:t.accordionContentClass,scrollAreaWrapperClass:t.scrollAreaWrapperClass,scrollAreaClass:t.scrollAreaClass,detailedInfoBoxClass:t.detailedInfoBoxClass,detailedInfoParagraphClass:t.detailedInfoParagraphClass,detailedInfoStrongClass:t.detailedInfoStrongClass,detailedInfoListClass:t.detailedInfoListClass,detailedInfoListItemClass:t.detailedInfoListItemClass,rejectAllButtonVariant:t.rejectAllButtonVariant,confirmSelectionButtonVariant:t.confirmSelectionButtonVariant,cancelButtonVariant:t.cancelButtonVariant,acceptAllButtonVariant:t.acceptAllButtonVariant,defaultButtonVariant:t.defaultButtonVariant,destructiveButtonVariant:t.destructiveButtonVariant,outlineButtonVariant:t.outlineButtonVariant,secondaryButtonVariant:t.secondaryButtonVariant,formInputClass:t.formInputClass,formSelectClass:t.formSelectClass,formLabelClass:t.formLabelClass,formSwitchClass:t.formSwitchClass,formFlexContainerClass:t.formFlexContainerClass,formButtonContainerClass:t.formButtonContainerClass,testerRootClass:t.testerRootClass,testerGridClass:t.testerGridClass,testerFieldWrapperClass:t.testerFieldWrapperClass,tableWrapperClass:t.tableWrapperClass});var q=D(),lt=k(q);{var ot=yt=>{var ut=D(),gt=k(ut);z(gt,()=>t.children),y(yt,ut)};Z(lt,yt=>{t.children&&yt(ot)})}y(e,q),V()}var Cd=U("<span> </span>"),_d=U("<div><!> <div><h3> <!></h3> <p> </p></div></div>"),Pd=U("<div><p><strong> </strong> </p> <p><strong> </strong> </p> <ul><li> </li> <li> </li></ul> <p><strong> </strong> </p></div>"),kd=U("<div><!></div>"),Ad=U("<!> <!>",1),Ed=U("<div><div></div> <div><!></div> <div><!> <!> <!> <!></div></div>");function Nd(e,t){M(t,!0);const r=()=>Ki(Nt,"$cookiePreferences",n),[n,o]=Yi(),i=yi();let c=F(Cn(r().showDetails?"details":void 0)),l=F(Cn([]));function u(x){x.required||Nt.toggleSelected(x)}dt(()=>{w(c,r().showDetails?"details":void 0,!0)});function d(x,P,A){var W;const L=(W=i.cookieCategoryTextOverrides)==null?void 0:W.find(K=>K.id===x);return(L==null?void 0:L[P])??A}Xn(()=>(i.cookieCategories&&i.cookieCategories.length>0&&Nt.initializeCategories(i.cookieCategories),Nt.loadPreferences(),Nt.subscribe(P=>{w(l,P.categories.map(A=>({...A,name:d(A.id,"name",A.name),description:d(A.id,"description",A.description)})),!0)})));var g=Ed(),v=B(g);_n(v,21,()=>s(l),x=>x.id,(x,P)=>{var A=_d(),L=B(A);sd(L,{get class(){return i.categorySwitchClass},get checked(){return s(P).checked},get disabled(){return s(P).required},onCheckedChange:()=>u(s(P)),get checkedBgColor(){return i.switchCheckedBgColor},get uncheckedBgColor(){return i.switchUncheckedBgColor},get thumbColor(){return i.switchThumbColor}});var W=O(L,2),K=B(W),Y=B(K),ft=O(Y);{var bt=it=>{var q=Cd(),lt=B(q,!0);R(q),Ct(()=>{at(q,1,vt(i.categoryNameRequiredClass)),mt(lt,i.categoryRequiredChipText??H.categoryRequiredChipText)}),y(it,q)};Z(ft,it=>{s(P).required&&it(bt)})}R(K);var rt=O(K,2),nt=B(rt,!0);R(rt),R(W),R(A),Ct((it,q,lt)=>
65{at(A,1,it),at(W,1,vt(i.categoryTextWrapperClass)),at(K,1,q),mt(Y,`${s(P).name??""} `),at(rt,1,lt),mt(nt,s(P).description)},[()=>vt(G("cc:flex cc:items-start cc:p-4 cc:space-x-4 cc:rounded cc:border",i.categoryItemClass)),()=>vt(G("cc:font-semibold",i.categoryNameClass)),()=>vt(G("cc:text-sm cc:text-gray-600",i.categoryDescriptionClass))]),y(x,A)}),R(v);var h=O(v,2),m=B(h);et(m,()=>md,(x,P)=>{P(x,{type:"single",get value(){return s(c)},children:(A,L)=>{var W=D(),K=k(W);et(K,()=>dd,(Y,ft)=>{ft(Y,{value:"details",get class(){return i.accordionItemClass},children:(bt,rt)=>{var nt=Ad(),it=k(nt);{let lt=S(()=>G("cc:text-sm cc:font-medium",i.accordionTriggerClass));et(it,()=>vd,(ot,yt)=>{yt(ot,{get class(){return s(lt)},children:(ut,gt)=>{jt();var Pt=ue();Ct(()=>mt(Pt,i.detailedInfoTriggerText??H.detailedInfoTrigger)),y(ut,Pt)},$$slots:{default:!0}})})}var q=O(it,2);et(q,()=>ld,(lt,ot)=>{ot(lt,{get class(){return i.accordionContentClass},children:(yt,ut)=>{var gt=kd(),Pt=B(gt);{let St=S(()=>G("cc:h-[100px] cc:w-full",i.scrollAreaClass));wd(Pt,{oneLinePerScroll:!0,get class(){return s(St)},children:(Ot,vn)=>{var Jt=Pd(),Qt=B(Jt),se=B(Qt),Q=B(se,!0);R(se);var $=O(se);R(Qt);var wt=O(Qt,2),Tt=B(wt),Dt=B(Tt,!0);R(Tt);var Wt=O(Tt);R(wt);var $t=O(wt,2),te=B($t),mn=B(te,!0);R(te);var ae=O(te,2),pn=B(ae,!0);R(ae),R($t);var ce=O($t,2),le=B(ce),bn=B(le,!0);R(le);var Si=O(le);R(ce),R(Jt),Ct((wi,xi,Ti,Ci,_i)=>{at(Jt,1,wi),at(Qt,1,xi),at(se,1,vt(i.detailedInfoStrongClass)),mt(Q,i.storageDurationTitleText??H.storageDurationTitle),mt($,` ${i.storageDurationDetailsText??H.storageDurationText??""}`),at(wt,1,Ti),at(Tt,1,vt(i.detailedInfoStrongClass)),mt(Dt,i.legalBasisTitleText??H.legalBasisTitle),mt(Wt,` ${i.legalBasisDetailsText??H.legalBasisText??""}`),at($t,1,Ci),at(te,1,vt(i.detailedInfoListItemClass)),mt(mn,i.legalBasisStrictlyNecessaryText??H.legalBasisStrictlyNecessary),at(ae,1,vt(i.detailedInfoListItemClass)),mt(pn,i.legalBasisConsentText??H.legalBasisConsent),at(ce,1,_i),at(le,1,vt(i.detailedInfoStrongClass)),mt(bn,i.dataSharingTitleText??H.dataSharingTitle),mt(Si,` ${i.dataSharingDetailsText??H.dataSharingText??""}`)},[()=>vt(G("cc:p-4 cc:space-y-2 cc:text-sm cc:rounded-md cc:bg-secondary/50",i.detailedInfoBoxClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass)),()=>vt(G("cc:pl-4 cc:space-y-1 cc:list-disc",i.detailedInfoListClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass))]),y(Ot,Jt)},$$slots:{default:!0}})}R(gt),Ct(St=>at(gt,1,St),[()=>vt(G("cc:pt-2 cc:pb-4",i.scrollAreaWrapperClass))]),y(yt,gt)},$$slots:{default:!0}})}),y(bt,nt)},$$slots:{default:!0}})}),y(A,W)},$$slots:{default:!0}})}),R(h);var b=O(h,2),T=B(b);{let x=S(()=>i.rejectAllButtonVariant??"outline");yn(T,{get variant(){return s(x)},onclick:()=>{Nt.rejectAll(),t.onClose()},children:(P,A)=>{jt();var L=ue();Ct(()=>mt(L,i.rejectAllButtonText??H.rejectAllButton)),y(P,L)},$$slots:{default:!0}})}var N=O(T,2);{let x=S(()=>i.confirmSelectionButtonVariant??"outline");yn(N,{get variant(){return s(x)},onclick:()=>{Nt.acceptSelected(),t.onClose()},children:(P,A)=>{jt();var L=ue();Ct(()=>mt(L,i.confirmSelectionButtonText??H.confirmSelectionButton)),y(P,L)},$$slots:{default:!0}})}var _=O(N,2);{let x=S(()=>i.cancelButtonVariant??"secondary");yn(_,{get variant(){return s(x)},onclick:()=>{Nt.loadPreferences(),t.onClose()},children:(P,A)=>{jt();var L=ue();Ct(()=>mt(L,i.cancelButtonText??H.cancelButton)),y(P,L)},$$slots:{default:!0}})}var I=O(_,2);{let x=S(()=>i.acceptAllButtonVariant??"default");yn(I,{get variant(){return s(x)},onclick:()=>{Nt.acceptAll(),t.onClose()},children:(P,A)=>{jt();var L=ue();Ct(()=>mt(L,i.acceptAllButtonText??H.acceptAllButton)),y(P,L)},$$slots:{default:!0}})}R(b),R(g),Ct((x,P,A,L)=>{at(g,1,x),at(v,1,P),at(h,1,A),at(b,1,L)},[()=>vt(G("cc:text-primary",t.class)),()=>vt(G("cc:space-y-4",i.categoryListClass)),()=>vt(G("cc:mt-6",i.accordionRootClass)),()=>vt(G("cc:flex cc:flex-wrap cc:gap-2 cc:justify-end cc:my-2",i.footerClass))]),y(e,g),V(),o()}var Id=U("<p> </p>"),jo=U("<!> <!>",1);function Dd(e,t){M(t,!0);let r=F(!1);const n=yi(),o=()=>{let d="";return n.titleTextColor&&(d+=`--cc-title-text-color: ${n.titleTextColor};
65`),n.titleBackgroundColor&&(d+=`--cc-title-bg-color: ${n.titleBackgroundColor};`),d},i=()=>{let d="";return n.descriptionParagraphTextColor&&(d+=`--cc-desc-p-text-color: ${n.descriptionParagraphTextColor};`),n.descriptionParagraphBackgroundColor&&(d+=`--cc-desc-p-bg-color: ${n.descriptionParagraphBackgroundColor};`),d};Xn(()=>{Xi.get("cookie_preferences")||w(r,!0)});var c=D(),l=k(c);{var u=d=>{var g=D(),v=k(g);et(v,()=>nd,(h,m)=>{m(h,{get open(){return s(r)},set open(b){w(r,b,!0)},children:(b,T)=>{var N=D(),_=k(N);et(_,()=>td,(I,x)=>{x(I,{class:"cc:max-w-2xl cc:text-primary cc:max-h-[100dvh] cc:overflow-y-auto",children:(P,A)=>{var L=jo(),W=k(L);{let Y=S(()=>G("cc:text-left",n.headerClass));et(W,()=>Xu,(ft,bt)=>{bt(ft,{get class(){return s(Y)},children:(rt,nt)=>{var it=jo(),q=k(it);{let ot=S(()=>G("cc:text-2xl cc:font-bold",n.titleClass)),yt=S(o);et(q,()=>Uu,(ut,gt)=>{gt(ut,{get class(){return s(ot)},get style(){return s(yt)},children:(Pt,St)=>{jt();var Ot=ue();Ct(()=>mt(Ot,n.titleText??H.title)),y(Pt,Ot)},$$slots:{default:!0}})})}var lt=O(q,2);{let ot=S(()=>G("cc:mt-4",n.descriptionClass));et(lt,()=>rd,(yt,ut)=>{ut(yt,{get class(){return s(ot)},children:(gt,Pt)=>{var St=Id(),Ot=B(St,!0);R(St),Ct(vn=>{at(St,1,vt(n.descriptionParagraphClass)),qi(St,vn),mt(Ot,n.descriptionText??H.description)},[()=>i()]),y(gt,St)},$$slots:{default:!0}})})}y(rt,it)},$$slots:{default:!0}})})}var K=O(W,2);{let Y=S(()=>G("cc:mt-6",n.contentWrapperClass));Nd(K,{get class(){return s(Y)},onClose:()=>{w(r,!1)}})}y(P,L)},$$slots:{default:!0}})}),y(b,N)},$$slots:{default:!0}})}),y(d,g)};Z(l,d=>{s(r)&&d(u)})}y(e,c),V()}function Rd(e){try{(function(t,r,n,o,i,c,l){r.getElementById("clarity-script")||(t[n]=t[n]||function(){(t[n].q=t[n].q||[]).push(arguments)},c=r.createElement(o),c.async=1,c.src="https://www.clarity.ms/tag/"+i+"?ref=npm",c.id="clarity-script",l=r.getElementsByTagName(o)[0],l.parentNode.insertBefore(c,l))})(window,document,"clarity","script",e);return}catch{return}}const eo={init(e){Rd(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,r,n){window.clarity("identify",e,t,r,n)},consent(e=!0){window.clarity("consent",e)},consentV2(e={ad_Storage:"granted",analytics_Storage:"granted"}){window.clarity("consentv2",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}};function Bd(e,t){M(t,!1);const r="rpkom9qcpp";let n=!1;function o(i){window!=null&&window.clarity?i():setTimeout(()=>o(i),100)}Xn(()=>{Nt.loadPreferences();const i=Nt.subscribe(({categories:c})=>{const l=c.find(d=>d.id==="analytics");(l==null?void 0:l.checked)===!0?(n||(eo.init(r),n=!0,console.log("Microsoft Clarity init called.")),o(()=>{eo.consent(!0),console.log("Microsoft Clarity consent given.")})):n?o(()=>{eo.consent(!1),console.log("Microsoft Clarity consent withdrawn.")}):console.log("Microsoft Clarity consent not given (Clarity not initialized).")});return()=>{i()}}),lo(),V()}var Ld=U('<meta name="description"/> <link rel="canonical"/> <meta property="og:site_name" content="MerginIT e.U."/> <meta property="og:type"/> <meta property="og:url"/> <meta property="og:title"/> <meta property="og:description"/> <meta property="og:image"/> <meta property="og:image:width" content="1200"/> <meta property="og:image:height" content="630"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:site" content="@merginit"/> <meta name="twitter:creator" content="@jonasfroeller"/> <meta name="twitter:url"/> <meta name="twitter:title"/> <meta name="twitter:description"/> <meta name="twitter:image"/>',1),Od=U('<div class="transition-wrapper"><!></div>'),qo=U("<li><a> </a></li>"),Md=U('<!> <!> <!> <!> <footer class="w-full bg-brand-dark py-8 px-4 sm:px-8 md:px-16 lg:px-24 xl:px-36 border-t border-gray-700/50 text-neutral-400"><div class="max-w-7xl mx-auto"><div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-8 text-center md:text-left"><div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">Navigate</h3> <ul class="space-y-1"></ul></div> <div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">Legal</h3> <ul class="space-y-1"></ul></div> <div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">MerginIT e.U.</h3> <p class="text-sm mb-2"><span>Software development and SaaS, based in Leonding, Austria.</span><br/> Support: <a href="mailto:[email protected]" class="text-neutral-400 hover:text-brand transition-colors duration-300 mt-1">[email protected]</a>.</p> <div class="flex gap-2 items-center justify-center md:justify-start"><a href="https://www.linkedin.com/company/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="LinkedIn"><!></a> <a href="https://github.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="GitHub"><!></a> <a href="https://www.instagram.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="Instagram"><!></a> <a href="https://www.tiktok.com/@merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="TikTok"><!></a> <a href="https://x.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="X (formerly Twitter)"><!></a> <a href="https://www.youtube.com/@merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="YouTube"><!></a></div> <div class="mt-3 text-center md:text-left"><a href="https://how-well-i-pull.nuxt.dev" target="_blank" rel="noopener noreferrer" class="text-sm text-neutral-400 hover:text-neutral-200 transition-colors duration-300" aria-label="Open Source Contributions">Open Source Contributions</a> <a href="/contact" class="ml-4 text-sm text-neutral-400 hover:text-neutral-200 transition-colors duration-300" aria-label="Contact Page">Contact</a></div></div></div> <div class="border-t border-gray-700/50 pt-6 text-center"><p class="text-xs text-neutral-400"> </p></div></div></footer>',1);function gh(e,t){M(t,!0);const r=[{text:"Home",href:"/"},{text:"About",href:"/about"},{text:"Blog",href:"/blog"},{text:"Free",href:"/free-products"},{text:"Regex",href:"/regex-library"},{text:"HTTP",href:"/http-library"},{text:"AI Tier List",href:"/ai-tier-list"}],n=[{text:"Terms",href:"/legal/terms"},{text:"Payment Providers",href:"/legal/payment-providers"},{text:"Refunds",href:"/legal/refund-policy"},{text:"Imprint",href:"/legal/imprint"},{text:"Privacy Policy",href:"/legal/privacy-policy"},{text:"Cookie Policy",href:"/legal/cookie-policy"},{text:"Support",href:"/support"},{text:"Data Request",href:"/data-request"}],o=[{id:"necessary",name:"Essential Cookies",description:"These cookies are absolutely necessary for the website to function properly.",required:!0,checked:!0},{id:"analytics",name:"Analytics & Performance Cookies",description:"With your consent, Microsoft Clarity records pseudonymous session and interaction data so we can improve the website.",required:!1,checked:!1}
65],i=300,c=i+100,l=10,u={easing:Qi,y:l,duration:i,delay:c},d={easing:$i,y:-l,duration:i},g=S(()=>{var Q;return((Q=ee.data.meta)==null?void 0:Q.title)??"MerginIT e.U."}),v=S(()=>{var Q;return((Q=ee.data.meta)==null?void 0:Q.description)??"Professional software development and SaaS solutions"}),h=S(()=>`https://merginit.com/og?title=${encodeURIComponent(s(g))}&subtitle=${encodeURIComponent(s(v))}&url=${encodeURIComponent(`https://merginit.com${ee.url.pathname}`)}`);var m=Md();ji("12qhfyh",Q=>{var $=Ld(),wt=k($),Tt=O(wt,2),Dt=O(Tt,4),Wt=O(Dt,2),$t=O(Wt,2),te=O($t,2),mn=O(te,2),ae=O(mn,12),pn=O(ae,2),ce=O(pn,2),le=O(ce,2);Ct(()=>{var bn;Et(wt,"content",s(v)),Et(Tt,"href",`https://merginit.com${ee.url.pathname}`),Et(Dt,"content",((bn=ee.data.meta)==null?void 0:bn.type)??"website"),Et(Wt,"content",`https://merginit.com${ee.url.pathname}`),Et($t,"content",s(g)),Et(te,"content",s(v)),Et(mn,"content",s(h)),Et(ae,"content",`https://merginit.com${ee.url.pathname}`),Et(pn,"content",s(g)),Et(ce,"content",s(v)),Et(le,"content",s(h))}),Mi(()=>{Vi.title=s(g)??""}),y(Q,$)});var b=k(m);{var T=Q=>{var $=D(),wt=k($);Ui(wt,()=>`<style> 66 :where([role='dialog'], .cookie, .cookies, .cookiiies, .cookie-popup, [data-cookie], #cookieConsent, #usercentrics-root){display:none !important} 67 </style>`),y(Q,$)};Z(b,Q=>{var $;($=t.data)!=null&&$.noCookie&&Q(T)})}var N=O(b,2);{var _=Q=>{Td(Q,{get cookieCategories(){return o},children:($,wt)=>{Dd($,{})},$$slots:{default:!0}})};Z(N,Q=>{var $;($=t.data)!=null&&$.noCookie||Q(_)})}var I=O(N,2);Bd(I,{});var x=O(I,2);Ko(x,()=>t.data.pathname,Q=>{var $=Od(),wt=B($);z(wt,()=>t.children),R($),Po(1,$,()=>ko,()=>u),Po(2,$,()=>ko,()=>d),y(Q,$)});var P=O(x,2),A=B(P),L=B(A),W=B(L),K=O(B(W),2);_n(K,21,()=>r,Q=>Q.href,(Q,$)=>{var wt=qo(),Tt=B(wt);let Dt;var Wt=B(Tt,!0);R(Tt),R(wt),Ct(()=>{Et(Tt,"href",s($).href),Dt=at(Tt,1,"text-sm hover:text-neutral-200 transition-colors duration-300",null,Dt,{"text-brand":t.data.pathname===s($).href}),mt(Wt,s($).text)}),y(Q,wt)}),R(K),R(W);var Y=O(W,2),ft=O(B(Y),2);_n(ft,21,()=>n,Q=>Q.href,(Q,$)=>{var wt=qo(),Tt=B(wt);let Dt;var Wt=B(Tt,!0);R(Tt),R(wt),Ct(()=>{Et(Tt,"href",s($).href),Dt=at(Tt,1,"text-sm hover:text-neutral-200 transition-colors duration-300",null,Dt,{"text-brand":t.data.pathname===s($).href}),mt(Wt,s($).text)}),y(Q,wt)}),R(ft),R(Y);var bt=O(Y,2),rt=O(B(bt),4),nt=B(rt),it=B(nt);ts(it,{class:"w-6 h-6"}),R(nt);var q=O(nt,2),lt=B(q);es(lt,{class:"w-6 h-6"}),R(q);var ot=O(q,2),yt=B(ot);ns(yt,{class:"w-6 h-6"}),R(ot);var ut=O(ot,2),gt=B(ut);os(gt,{class:"w-4 h-4"}),R(ut);var Pt=O(ut,2),St=B(Pt);is(St,{class:"w-4 h-4"}),R(Pt);var Ot=O(Pt,2),vn=B(Ot);rs(vn,{class:"w-6 h-6"}),R(Ot),R(rt),jt(2),R(bt),R(L);var Jt=O(L,2),Qt=B(Jt),se=B(Qt);R(Qt),R(Jt),R(A),R(P),Ct(Q=>mt(se,`© ${Q??""} MerginIT e.U. All rights reserved.`),[()=>new Date().getFullYear()]),y(e,m),V()}export{gh as component,fh as universal};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.