(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9556,(e,t,i)=>{(t.exports=function(e){this.top=e.top,this.left=e.left,this.width=e.width,this.spacing=e.spacing,this.targetRowHeight=e.targetRowHeight,this.targetRowHeightTolerance=e.targetRowHeightTolerance,this.minAspectRatio=this.width/e.targetRowHeight*(1-e.targetRowHeightTolerance),this.maxAspectRatio=this.width/e.targetRowHeight*(1+e.targetRowHeightTolerance),this.edgeCaseMinRowHeight=e.edgeCaseMinRowHeight,this.edgeCaseMaxRowHeight=e.edgeCaseMaxRowHeight,this.widowLayoutStyle=e.widowLayoutStyle,this.isBreakoutRow=e.isBreakoutRow,this.items=[],this.height=0}).prototype={addItem:function(e){var t,i,n=this.items.concat(e),o=this.width-(n.length-1)*this.spacing,r=n.reduce(function(e,t){return e+t.aspectRatio},0),s=o/this.targetRowHeight;return this.isBreakoutRow&&0===this.items.length&&e.aspectRatio>=1?(this.items.push(e),this.completeLayout(o/e.aspectRatio,"justify"),!0):rthis.maxAspectRatio?0===this.items.length?(this.items.push(Object.assign({},e)),this.completeLayout(o/r,"justify"),!0):(t=this.width-(this.items.length-1)*this.spacing,Math.abs(r-s)>Math.abs((i=this.items.reduce(function(e,t){return e+t.aspectRatio},0))-t/this.targetRowHeight))?(this.completeLayout(t/i,"justify"),!1):(this.items.push(Object.assign({},e)),this.completeLayout(o/r,"justify"),!0):(this.items.push(Object.assign({},e)),this.completeLayout(o/r,"justify"),!0)},isLayoutComplete:function(){return this.height>0},completeLayout:function(e,t){var i,n,o,r,s,a,l=this.left,d=this.width-(this.items.length-1)*this.spacing;(void 0===t||0>["justify","center","left"].indexOf(t))&&(t="left"),n=Math.max(this.edgeCaseMinRowHeight,Math.min(e,this.edgeCaseMaxRowHeight)),e!==n?(this.height=n,i=d/n/(d/e)):(this.height=e,i=1),this.items.forEach(function(e){e.top=this.top,e.width=e.aspectRatio*this.height*i,e.height=this.height,e.left=l,l+=e.width+this.spacing},this),"justify"===t?(l-=this.spacing+this.left,o=(l-this.width)/this.items.length,r=this.items.map(function(e,t){return Math.round((t+1)*o)}),1===this.items.length?(s=this.items[0],s.width-=Math.round(o)):this.items.forEach(function(e,t){t>0?(e.left-=r[t-1],e.width-=r[t]-r[t-1]):e.width-=r[t]})):"center"===t&&(a=(this.width-l)/2,this.items.forEach(function(e){e.left+=a+this.spacing},this))},forceComplete:function(e,t){"number"==typeof t?this.completeLayout(t,this.widowLayoutStyle):this.completeLayout(this.targetRowHeight,this.widowLayoutStyle)},getItems:function(){return this.items}}},49279,(e,t,i)=>{"use strict";var n=e.r(9556);function o(e,t){var i;return!1!==e.fullWidthBreakoutRowCadence&&(t._rows.length+1)%e.fullWidthBreakoutRowCadence==0&&(i=!0),new n({top:t._containerHeight,left:e.containerPadding.left,width:e.containerWidth-e.containerPadding.left-e.containerPadding.right,spacing:e.boxSpacing.horizontal,targetRowHeight:e.targetRowHeight,targetRowHeightTolerance:e.targetRowHeightTolerance,edgeCaseMinRowHeight:.5*e.targetRowHeight,edgeCaseMaxRowHeight:2*e.targetRowHeight,rightToLeft:!1,isBreakoutRow:i,widowLayoutStyle:e.widowLayoutStyle})}function r(e,t,i){return t._rows.push(i),t._layoutItems=t._layoutItems.concat(i.getItems()),t._containerHeight+=i.height+e.boxSpacing.vertical,i.items}t.exports=function(e,t){var i,n,s,a,l,d,h={},u={},c={},p={};return c.top=isNaN(parseFloat((h=Object.assign({containerWidth:1060,containerPadding:10,boxSpacing:10,targetRowHeight:320,targetRowHeightTolerance:.25,maxNumRows:1/0,forceAspectRatio:!1,showWidows:!0,fullWidthBreakoutRowCadence:!1,widowLayoutStyle:"left"},t=t||{})).containerPadding.top))?h.containerPadding:h.containerPadding.top,c.right=isNaN(parseFloat(h.containerPadding.right))?h.containerPadding:h.containerPadding.right,c.bottom=isNaN(parseFloat(h.containerPadding.bottom))?h.containerPadding:h.containerPadding.bottom,c.left=isNaN(parseFloat(h.containerPadding.left))?h.containerPadding:h.containerPadding.left,p.horizontal=isNaN(parseFloat(h.boxSpacing.horizontal))?h.boxSpacing:h.boxSpacing.horizontal,p.vertical=isNaN(parseFloat(h.boxSpacing.vertical))?h.boxSpacing:h.boxSpacing.vertical,h.containerPadding=c,h.boxSpacing=p,u._layoutItems=[],u._awakeItems=[],u._inViewportItems=[],u._leadingOrphans=[],u._trailingOrphans=[],u._containerHeight=h.containerPadding.top,u._rows=[],u._orphans=[],h._widowCount=0,i=h,n=e.map(function(e){return e.width&&e.height?{aspectRatio:e.width/e.height}:{aspectRatio:e}}),d=[],i.forceAspectRatio&&n.forEach(function(e){e.forcedAspectRatio=!0,e.aspectRatio=i.forceAspectRatio}),n.some(function(e,t){if(isNaN(e.aspectRatio))throw Error("Item "+t+" has an invalid aspect ratio");if(a||(a=o(i,u)),s=a.addItem(e),a.isLayoutComplete()){if(d=d.concat(r(i,u,a)),u._rows.length>=i.maxNumRows)return a=null,!0;if(a=o(i,u),!s&&(s=a.addItem(e),a.isLayoutComplete())){if(d=d.concat(r(i,u,a)),u._rows.length>=i.maxNumRows)return a=null,!0;a=o(i,u)}}}),a&&a.getItems().length&&i.showWidows&&(u._rows.length?(l=u._rows[u._rows.length-1].isBreakoutRow?u._rows[u._rows.length-1].targetRowHeight:u._rows[u._rows.length-1].height,a.forceComplete(!1,l)):a.forceComplete(!1),d=d.concat(r(i,u,a)),i._widowCount=a.getItems().length),u._containerHeight=u._containerHeight-i.boxSpacing.vertical,u._containerHeight=u._containerHeight+i.containerPadding.bottom,{containerHeight:u._containerHeight,widowCount:i._widowCount,boxes:u._layoutItems}}},50912,e=>{"use strict";let t,i,n,o,r,s,a,l,d,h,u,c,p,m,g,f,v,b,_,w,y,x,C,D,S,k;var E,P,A,I,T,z,M,G,R,N,O,L,j,V,W,H,F,$,B,U,K,q=e.i(48277),X=e.i(39057),Z=e.i(30668);let J=e=>{let t,i=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),i.forEach(i=>i(t,e))}},o=()=>t,r={setState:n,getState:o,getInitialState:()=>s,subscribe:e=>(i.add(e),()=>i.delete(e))},s=t=e(n,o,r);return r},Y=e=>{let t=e?J(e):J,i=e=>(function(e,t=e=>e){let i=Z.default.useSyncExternalStore(e.subscribe,Z.default.useCallback(()=>t(e.getState()),[e,t]),Z.default.useCallback(()=>t(e.getInitialState()),[e,t]));return Z.default.useDebugValue(i),i})(t,e);return Object.assign(i,t),i},Q=e=>e?Y(e):Y,ee="undefined",et="#39d3cc",ei="#8b949e",en=["auto","classic20","tab10","tab20","wong"],eo=["#e6194b","#3cb44b","#ffe119","#4363d8","#f58231","#911eb4","#46f0f0","#f032e6","#bcf60c","#fabebe","#008080","#e6beff","#9a6324","#fffac8","#800000","#aaffc3","#808000","#ffd8b1","#000075","#808080"],er=["#4e79a7","#f28e2b","#e15759","#76b7b2","#59a14f","#edc948","#b07aa1","#ff9da7","#9c755f","#bab0ab"],es=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],ea=["#e69f00","#56b4e9","#009e73","#f0e442","#0072b2","#d55e00","#cc79a7"];function el(e){return e<0?0:e>1?1:e}function ed(e,t){let i=[.72,.64,.78],n=[.46,.54,.38,.62];return function(e,t,i){let n=(e%360+360)%360/360%1,o=el(t),r=el(i),s=r,a=r,l=r;if(o>0){let e=r<.5?r*(1+o):r+o-r*o,t=2*r-e,i=i=>{let n=i;return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t};s=i(n+1/3),a=i(n),l=i(n-1/3)}let d=e=>Math.round(255*el(e)).toString(16).padStart(2,"0");return`#${d(s)}${d(a)}${d(l)}`}((("tab10"===t?17:"tab20"===t?43:"wong"===t?71:"classic20"===t?101:131)+137.508*e)%360,i[e%i.length],n[Math.floor(e/i.length)%n.length])}function eh(e,t){return e===ee&&t!==ee?1:t===ee&&e!==ee?-1:e.localeCompare(t)}function eu(e,t,i){let n={},o=new Set,r=0,s=0;for(let a of e){if(a===ee){n[a]=et,o.add(et.toLowerCase());continue}let e=r=t.length&&(s+=1),o.has(e.toLowerCase())&&(e=ei),n[a]=e,o.add(e.toLowerCase()),r+=1}return n}function ec(e){return e&&e.length>0?e:ee}function ep(){return{isLassoSelection:!1,lassoQuery:null,lassoSamples:[],lassoTotal:0,lassoIsLoading:!1}}function em(){return{neighborsResults:[],neighborsMetric:null,neighborsLoading:!1,neighborsError:null}}function eg(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let ef=Q(e=>({datasetInfo:null,setDatasetInfo:t=>e({datasetInfo:t}),activeWorkspaceId:null,workspaces:[],runtimeDatasetName:null,customPanels:[],panelDefinitions:[],runtimeCollections:[],panelStates:{},workspaceLayout:null,workspaceLayoutRevision:0,setWorkspaceLayoutLocal:t=>e({workspaceLayout:t}),hasExplicitView:!1,activePanelId:null,viewRevision:0,requestedLayoutKey:null,layoutViews:{},setLayoutViewCamera:(t,i)=>e(e=>({layoutViews:{...e.layoutViews,[t]:{...e.layoutViews[t]??{},camera_3d:i}}})),applyRuntimeSnapshot:t=>e(e=>{let i=t.active_workspace_id,n=t.workspace.dataset_name,o=e.activeWorkspaceId!==i||e.runtimeDatasetName!==n,r=t.workspace.ui.panels?.samples?.state??{},s=function(e){if(!eg(e))return null;let t="string"==typeof e.anchor_sample_id&&e.anchor_sample_id.length>0?e.anchor_sample_id:null,i="string"==typeof e.query_text&&e.query_text.length>0?e.query_text:null;if(!t&&!i)return null;let n="number"==typeof e.k?e.k:Number(e.k??18);return{anchor_sample_id:t,query_text:i,layout_key:"string"==typeof e.layout_key?e.layout_key:null,space_key:"string"==typeof e.space_key?e.space_key:null,k:Number.isFinite(n)?Math.max(1,Math.min(n,100)):18,source:"string"==typeof e.source?e.source:null}}(r.retrieval),a=s?[]:t.workspace.ui.selected_ids,l=function(e){if("collection"!==e.mode||!eg(e.collection))return null;let t=e.collection;if("filter"!==t.kind||!eg(t.query))return null;let{field:i,op:n,value:o}=t.query;return"label"!==i||"eq"!==n?null:ec("string"==typeof o?o:null)}(r);return{...o?{datasetInfo:null,samples:[],totalSamples:0,samplesLoaded:0,embeddingsByLayoutKey:{},runtimeCollections:[],panelStates:{},activeLayoutKey:null,activeSimilarityQuery:null,selectionLayoutKey:null,labelFilter:null,hoveredId:null,isLoading:!1,error:null}:{},activeWorkspaceId:i,workspaces:t.workspaces,runtimeDatasetName:n,customPanels:t.workspace.ui.custom_panels,panelDefinitions:t.panel_definitions??[],runtimeCollections:t.workspace.collections??[],panelStates:t.workspace.ui.panels??{},workspaceLayout:t.workspace.ui.layout??null,workspaceLayoutRevision:t.workspace.ui.layout_revision??0,hasExplicitView:t.workspace.ui.has_explicit_view,activePanelId:t.workspace.ui.active_panel_id,viewRevision:t.workspace.ui.view_revision??0,requestedLayoutKey:t.workspace.ui.active_layout_key,layoutViews:t.workspace.ui.layout_views??{},selectedIds:new Set(a),selectionSource:a.length>0?"scatter":null,selectionLayoutKey:null,activeSimilarityQuery:s,labelFilter:l,...ep(),...em()}}),samples:[],totalSamples:0,samplesLoaded:0,setSamples:(t,i)=>e({samples:t,totalSamples:i,samplesLoaded:t.length}),appendSamples:t=>e(e=>{let i=new Set(e.samples.map(e=>e.id)),n=t.filter(e=>!i.has(e.id)),o=e.samplesLoaded+t.length;return 0===n.length?{samplesLoaded:o}:{samples:[...e.samples,...n],samplesLoaded:o}}),addSamplesIfMissing:t=>e(e=>{let i=new Set(e.samples.map(e=>e.id)),n=t.filter(e=>!i.has(e.id));return 0===n.length?e:{samples:[...e.samples,...n]}}),embeddingsByLayoutKey:{},setEmbeddingsForLayout:(t,i)=>e(e=>({embeddingsByLayoutKey:{...e.embeddingsByLayoutKey,[t]:i}})),activeLayoutKey:null,setActiveLayoutKey:t=>e({activeLayoutKey:t}),activeSimilarityQuery:null,labelFilter:null,setLabelFilter:t=>{e({labelFilter:t?ec(t):null,selectedIds:new Set,selectionSource:null,selectionLayoutKey:null,activeSimilarityQuery:null,...ep(),...em()})},selectedIds:new Set,isLassoSelection:!1,selectionSource:null,selectionLayoutKey:null,setSelectedIds:(t,i="grid",n=null)=>e(e=>{let o=t.size>0?i:null,r="scatter"===o?n:null;return!e.isLassoSelection&&function(e,t){if(e.size!==t.size)return!1;for(let i of e)if(!t.has(i))return!1;return!0}(e.selectedIds,t)?e.selectionSource===o&&e.selectionLayoutKey===r?e:{selectionSource:o,selectionLayoutKey:r}:{selectedIds:t,selectionSource:o,selectionLayoutKey:r,activeSimilarityQuery:e.activeSimilarityQuery?.anchor_sample_id&&t.has(e.activeSimilarityQuery.anchor_sample_id)?e.activeSimilarityQuery:null,...ep(),...em()}}),toggleSelection:t=>e(e=>{let i=new Set(e.selectedIds);return i.has(t)?i.delete(t):i.add(t),{selectedIds:i,selectionSource:i.size>0?"grid":null,selectionLayoutKey:null,activeSimilarityQuery:e.activeSimilarityQuery?.anchor_sample_id&&i.has(e.activeSimilarityQuery.anchor_sample_id)?e.activeSimilarityQuery:null,...ep(),...em()}}),addToSelection:t=>e(e=>{let i=new Set(e.selectedIds);return t.forEach(e=>i.add(e)),{selectedIds:i,selectionSource:i.size>0?"grid":null,selectionLayoutKey:null,activeSimilarityQuery:e.activeSimilarityQuery?.anchor_sample_id&&i.has(e.activeSimilarityQuery.anchor_sample_id)?e.activeSimilarityQuery:null,...ep(),...em()}}),clearSelection:()=>e({selectedIds:new Set,selectionSource:null,selectionLayoutKey:null,activeSimilarityQuery:null,...ep(),...em()}),lassoQuery:null,lassoSamples:[],lassoTotal:0,lassoIsLoading:!1,beginLassoSelection:t=>e({selectedIds:new Set,selectionSource:"lasso",selectionLayoutKey:null,activeSimilarityQuery:null,isLassoSelection:!0,lassoQuery:t,lassoSamples:[],lassoTotal:0,lassoIsLoading:!0,...em()}),setLassoResults:(t,i,n=!1)=>e(e=>({lassoSamples:n?[...e.lassoSamples,...t]:t,lassoTotal:i,lassoIsLoading:!1})),clearLassoSelection:()=>e({selectionSource:null,...ep()}),...em(),beginNeighborsQuery:(t=!0)=>e(e=>({neighborsResults:t?[]:e.neighborsResults,neighborsMetric:t?null:e.neighborsMetric,neighborsLoading:!0,neighborsError:null})),setNeighborsResults:(t,i)=>e({neighborsResults:t,neighborsMetric:i,neighborsLoading:!1,neighborsError:null}),setNeighborsError:t=>e({neighborsLoading:!1,neighborsError:t}),clearNeighbors:()=>e(em()),hoveredId:null,setHoveredId:t=>e({hoveredId:t}),isLoading:!1,setIsLoading:t=>e({isLoading:t}),error:null,setError:t=>e({error:t}),sampleGridSize:"medium",setSampleGridSize:t=>e({sampleGridSize:t}),scatterLabelOverlayMode:"off",setScatterLabelOverlayMode:t=>e({scatterLabelOverlayMode:t})}));function ev(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eb(...e){return t=>{let i=!1,n=e.map(e=>{let n=ev(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t{let{children:i,...n}=e;if(ex(i)&&"function"==typeof ey&&(i=ey(i._payload)),Z.isValidElement(i)){var o;let e,r,s=(o=i,(r=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(r=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let i={...t};for(let n in t){let o=e[n],r=t[n];/^on[A-Z]/.test(n)?o&&r?i[n]=(...e)=>{let t=r(...e);return o(...e),t}:o&&(i[n]=o):"style"===n?i[n]={...o,...r}:"className"===n&&(i[n]=[o,r].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props);return i.type!==Z.Fragment&&(a.ref=t?eb(t,s):s),Z.cloneElement(i,a)}return Z.Children.count(i)>1?Z.Children.only(null):null})).displayName="Slot.SlotClone",i=x,(n=Z.forwardRef((e,t)=>{let{children:n,...o}=e;ex(n)&&"function"==typeof ey&&(n=ey(n._payload));let r=Z.Children.toArray(n),s=r.find(eS);if(s){let e=s.props.children,n=r.map(t=>t!==s?t:Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null);return(0,q.jsx)(i,{...o,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,n):null})}return(0,q.jsx)(i,{...o,ref:t,children:n})})).displayName="Slot.Slot",n),eD=Symbol("radix.slottable");function eS(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eD}function ek(){for(var e,t,i=0,n="",o=arguments.length;i"boolean"==typeof e?`${e}`:0===e?"0":e,eP=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),eA=[],eI=(e,t,i)=>{if(0==e.length-t)return i.classGroupId;let n=e[t],o=i.nextPart.get(n);if(o){let i=eI(e,t+1,o);if(i)return i}let r=i.validators;if(null===r)return;let s=0===t?e.join("-"):e.slice(t).join("-"),a=r.length;for(let e=0;e{let i=eP();for(let n in e)ez(e[n],i,n,t);return i},ez=(e,t,i,n)=>{let o=e.length;for(let r=0;r{"string"==typeof e?eG(e,t,i):"function"==typeof e?eR(e,t,i,n):eN(e,t,i,n)},eG=(e,t,i)=>{(""===e?t:eO(t,e)).classGroupId=i},eR=(e,t,i,n)=>{eL(e)?ez(e(n),t,i,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:i,validator:e}))},eN=(e,t,i,n)=>{let o=Object.entries(e),r=o.length;for(let e=0;e{let i=e,n=t.split("-"),o=n.length;for(let e=0;e"isThemeGetter"in e&&!0===e.isThemeGetter,ej=[],eV=(e,t,i,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:n,isExternal:o}),eW=/\s+/,eH=e=>{let t;if("string"==typeof e)return e;let i="";for(let n=0;n{let t=t=>t[e]||eF;return t.isThemeGetter=!0,t},eB=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eK=/^\d+\/\d+$/,eq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eX=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eQ=e=>eK.test(e),e0=e=>!!e&&!Number.isNaN(Number(e)),e1=e=>!!e&&Number.isInteger(Number(e)),e2=e=>e.endsWith("%")&&e0(e.slice(0,-1)),e5=e=>eq.test(e),e3=()=>!0,e4=e=>eX.test(e)&&!eZ.test(e),e6=()=>!1,e8=e=>eJ.test(e),e9=e=>eY.test(e),e7=e=>!tt(e)&&!ta(e),te=e=>tm(e,tb,e6),tt=e=>eB.test(e),ti=e=>tm(e,t_,e4),tn=e=>tm(e,tw,e0),to=e=>tm(e,tf,e6),tr=e=>tm(e,tv,e9),ts=e=>tm(e,tx,e8),ta=e=>eU.test(e),tl=e=>tg(e,t_),td=e=>tg(e,ty),th=e=>tg(e,tf),tu=e=>tg(e,tb),tc=e=>tg(e,tv),tp=e=>tg(e,tx,!0),tm=(e,t,i)=>{let n=eB.exec(e);return!!n&&(n[1]?t(n[1]):i(n[2]))},tg=(e,t,i=!1)=>{let n=eU.exec(e);return!!n&&(n[1]?t(n[1]):i)},tf=e=>"position"===e||"percentage"===e,tv=e=>"image"===e||"url"===e,tb=e=>"length"===e||"size"===e||"bg-size"===e,t_=e=>"length"===e,tw=e=>"number"===e,ty=e=>"family-name"===e,tx=e=>"shadow"===e,tC=(E=()=>{let e=e$("color"),t=e$("font"),i=e$("text"),n=e$("font-weight"),o=e$("tracking"),r=e$("leading"),s=e$("breakpoint"),a=e$("container"),l=e$("spacing"),d=e$("radius"),h=e$("shadow"),u=e$("inset-shadow"),c=e$("text-shadow"),p=e$("drop-shadow"),m=e$("blur"),g=e$("perspective"),f=e$("aspect"),v=e$("ease"),b=e$("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...w(),ta,tt],x=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],D=()=>[ta,tt,l],S=()=>[eQ,"full","auto",...D()],k=()=>[e1,"none","subgrid",ta,tt],E=()=>["auto",{span:["full",e1,ta,tt]},e1,ta,tt],P=()=>[e1,"auto",ta,tt],A=()=>["auto","min","max","fr",ta,tt],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...D()],M=()=>[eQ,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],G=()=>[e,ta,tt],R=()=>[...w(),th,to,{position:[ta,tt]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",tu,te,{size:[ta,tt]}],L=()=>[e2,tl,ti],j=()=>["","none","full",d,ta,tt],V=()=>["",e0,tl,ti],W=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[e0,e2,th,to],$=()=>["","none",m,ta,tt],B=()=>["none",e0,ta,tt],U=()=>["none",e0,ta,tt],K=()=>[e0,ta,tt],q=()=>[eQ,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[e5],breakpoint:[e5],color:[e3],container:[e5],"drop-shadow":[e5],ease:["in","out","in-out"],font:[e7],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[e5],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[e5],shadow:[e5],spacing:["px",e0],text:[e5],"text-shadow":[e5],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eQ,tt,ta,f]}],container:["container"],columns:[{columns:[e0,tt,ta,a]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{start:S()}],end:[{end:S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[e1,"auto",ta,tt]}],basis:[{basis:[eQ,"full","auto",a,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[e0,eQ,"auto","initial","none",tt]}],grow:[{grow:["",e0,ta,tt]}],shrink:[{shrink:["",e0,ta,tt]}],order:[{order:[e1,"first","last","none",ta,tt]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",i,tl,ti]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ta,tn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",e2,tt]}],"font-family":[{font:[td,tt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ta,tt]}],"line-clamp":[{"line-clamp":[e0,"none",ta,tn]}],leading:[{leading:[r,...D()]}],"list-image":[{"list-image":["none",ta,tt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ta,tt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[e0,"from-font","auto",ta,ti]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[e0,"auto",ta,tt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ta,tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ta,tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},e1,ta,tt],radial:["",ta,tt],conic:[e1,ta,tt]},tc,tr]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[e0,ta,tt]}],"outline-w":[{outline:["",e0,tl,ti]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",h,tp,ts]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",u,tp,ts]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[e0,ti]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",c,tp,ts]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[e0,ta,tt]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[e0]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ta,tt]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[e0]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ta,tt]}],filter:[{filter:["","none",ta,tt]}],blur:[{blur:$()}],brightness:[{brightness:[e0,ta,tt]}],contrast:[{contrast:[e0,ta,tt]}],"drop-shadow":[{"drop-shadow":["","none",p,tp,ts]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",e0,ta,tt]}],"hue-rotate":[{"hue-rotate":[e0,ta,tt]}],invert:[{invert:["",e0,ta,tt]}],saturate:[{saturate:[e0,ta,tt]}],sepia:[{sepia:["",e0,ta,tt]}],"backdrop-filter":[{"backdrop-filter":["","none",ta,tt]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[e0,ta,tt]}],"backdrop-contrast":[{"backdrop-contrast":[e0,ta,tt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",e0,ta,tt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[e0,ta,tt]}],"backdrop-invert":[{"backdrop-invert":["",e0,ta,tt]}],"backdrop-opacity":[{"backdrop-opacity":[e0,ta,tt]}],"backdrop-saturate":[{"backdrop-saturate":[e0,ta,tt]}],"backdrop-sepia":[{"backdrop-sepia":["",e0,ta,tt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ta,tt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[e0,"initial",ta,tt]}],ease:[{ease:["linear","initial",v,ta,tt]}],delay:[{delay:[e0,ta,tt]}],animate:[{animate:["none",b,ta,tt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ta,tt]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[ta,tt,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ta,tt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ta,tt]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[e0,tl,ti,tn]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l=e=>{let t=r(e);if(t)return t;let i=((e,t)=>{let{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:r}=t,s=[],a=e.trim().split(eW),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:d,modifiers:h,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:p}=i(t);if(d){l=t+(l.length>0?" "+l:l);continue}let m=!!p,g=n(m?c.substring(0,p):c);if(!g){if(!m||!(g=n(c))){l=t+(l.length>0?" "+l:l);continue}m=!1}let f=0===h.length?"":1===h.length?h[0]:r(h).join(":"),v=u?f+"!":f,b=v+g;if(s.indexOf(b)>-1)continue;s.push(b);let _=o(g,m);for(let e=0;e<_.length;++e){let t=_[e];s.push(v+t)}l=t+(l.length>0?" "+l:l)}return l})(e,o);return s(e,i),i},a=e=>{var t;let i;return r=(o={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=Object.create(null),n=Object.create(null),o=(o,r)=>{i[o]=r,++t>e&&(t=0,n=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in i?i[e]=t:o(e,t)}}})((t=[].reduce((e,t)=>t(e),E())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:i}=e,n=e=>{let t,i=[],n=0,o=0,r=0,s=e.length;for(let a=0;ar?t-r:void 0)};if(t){let e=t+":",i=n;n=t=>t.startsWith(e)?i(t.slice(e.length)):eV(ej,!1,t,void 0,!0)}if(i){let e=n;n=t=>i({className:t,parseClassName:e})}return n})(t),sortModifiers:(i=new Map,t.orderSensitiveModifiers.forEach((e,t)=>{i.set(e,1e6+t)}),e=>{let t=[],n=[];for(let o=0;o0&&(n.sort(),t.push(...n),n=[]),t.push(r)):n.push(r)}return n.length>0&&(n.sort(),t.push(...n)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:i}=e;return eT(i,t)})(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var i;let t,n,o;return -1===(i=e).slice(1,-1).indexOf(":")?void 0:(n=(t=i.slice(1,-1)).indexOf(":"),(o=t.slice(0,n))?"arbitrary.."+o:void 0)}let n=e.split("-"),o=+(""===n[0]&&n.length>1);return eI(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=i[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;ta(((...e)=>{let t,i,n=0,o="";for(;n{var t;if((null==h?void 0:h.variants)==null)return ek(d,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:i,defaultVariants:n}=h,o=Object.keys(i).map(t=>{let o=null==e?void 0:e[t],r=null==n?void 0:n[t];if(null===o)return null;let s=eE(o)||eE(r);return i[t][s]}),r=e&&Object.entries(e).reduce((e,t)=>{let[i,n]=t;return void 0===n||(e[i]=n),e},{});return ek(d,o,null==h||null==(t=h.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:i,className:o,...s}=t;return Object.entries(s).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...n,...r}[t]):({...n,...r})[t]===i})?[...e,i,o]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),tk=Z.forwardRef(({className:e,variant:t,size:i,asChild:n=!1,...o},r)=>(0,q.jsx)(n?eC:"button",{className:tD(tS({variant:t,size:i,className:e})),ref:r,...o}));tk.displayName="Button";let tE=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},tP=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim();var tA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let tI=(0,Z.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:o="",children:r,iconNode:s,...a},l)=>(0,Z.createElement)("svg",{ref:l,...tA,width:t,height:t,stroke:e,strokeWidth:n?24*Number(i)/Number(t):i,className:tP("lucide",o),...!r&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(a)&&{"aria-hidden":"true"},...a},[...s.map(([e,t])=>(0,Z.createElement)(e,t)),...Array.isArray(r)?r:[r]])),tT=(e,t)=>{let i=(0,Z.forwardRef)(({className:i,...n},o)=>(0,Z.createElement)(tI,{ref:o,iconNode:t,className:tP(`lucide-${tE(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...n}));return i.displayName=tE(e),i},tz=tT("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tM=tT("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),tG=tT("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]),tR=tT("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function tN({children:e,className:t}){return(0,q.jsx)("div",{className:tD("flex flex-col h-full bg-card overflow-hidden",t),children:e})}function tO({title:e,icon:t,className:i,titleClassName:n,iconClassName:o,fullHeight:r=!1}){return(0,q.jsxs)("div",{className:tD("min-w-0 flex items-center gap-1 text-[12px] leading-[16px] font-medium tracking-[-0.15px]",r&&"h-full",i),children:[t&&(0,q.jsx)("span",{className:tD("flex-shrink-0 w-3.5 h-3.5 text-muted-foreground",o),children:t}),(0,q.jsx)("span",{className:tD("truncate text-foreground",n),children:e??""})]})}function tL({icon:e,title:t,subtitle:i,children:n,className:o}){return(0,q.jsxs)("div",{className:tD("h-6 min-h-[24px] flex items-center justify-between px-2 border-b border-border bg-secondary select-none",o),children:[(0,q.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,q.jsx)(tO,{title:t,icon:e}),i&&(0,q.jsx)("span",{className:"ml-1 text-[11px] leading-4 text-muted-foreground truncate",children:i})]}),n&&(0,q.jsx)("div",{className:"flex items-center gap-1",children:n})]})}let tj=tT("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function tV(e){var t,i;let n,o,{labels:r,paletteId:s}=e,a=(t=r,i={paletteId:s},n=Array.from(new Set(t.map(e=>ec(e)))).sort(eh),"classic20"===(o=i?.paletteId??"auto")?eu(n,eo,"classic20"):"tab10"===o?eu(n,er,"tab10"):"tab20"===o?eu(n,es,"tab20"):"wong"===o?eu(n,ea,"wong"):eu(n,es,"tab20"));return{kind:"categorical",paletteId:s,colorFor:e=>a[ec(e)]??ei}}function tW(e,t){if(!e.startsWith("#"))return e;let i=Math.round(255*(t<0?0:t>1?1:t)).toString(16).padStart(2,"0");return 7===e.length?`${e}${i}`:9===e.length?`${e.slice(0,7)}${i}`:e}function tH(e,t){let i=[],n=new Set,o=!1;for(let t of e.map(e=>ec(e))){if("undefined"===t){o=!0;continue}n.has(t)||(n.add(t),i.push(t))}if(t){let e=new Set;for(let i of t){let t=ec(i);if("undefined"===t){o=!0;continue}n.has(t)||e.add(t)}if(e.size>0)for(let t of Array.from(e).sort((e,t)=>e.localeCompare(t)))n.add(t),i.push(t)}return o&&i.push("undefined"),i}function tF(e){let{datasetLabels:t,embeddings:i,labelColorMapId:n}=e;if(!i)return null;let o=tH(t,i.labels);if(o.length>65535)return console.warn(`Too many labels (${o.length}) for uint16 categories; collapsing to a single color.`),{uniqueLabels:["undefined"],categories:new Uint16Array(i.labels.length),palette:[ei]};let r={};for(let e=0;el.colorFor(e));return{uniqueLabels:o,categories:a,palette:d}}function t$(e,t){let i;try{i=e()}catch(e){return}return{getItem:e=>{var n;let o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),r=null!=(n=i.getItem(e))?n:null;return r instanceof Promise?r.then(o):o(r)},setItem:(e,n)=>i.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>i.removeItem(e)}}let tB=e=>t=>{try{let i=e(t);if(i instanceof Promise)return i;return{then:e=>tB(e)(i),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tB(t)(e)}}},tU=[{value:"auto",label:"Auto"},{value:"tab20",label:"Tab 20"},{value:"tab10",label:"Tab 10"},{value:"wong",label:"Wong"},{value:"classic20",label:"Classic 20"}],tK=Q()((u=e=>({labelColorMapId:"auto",setLabelColorMapId:t=>e({labelColorMapId:t})}),c={name:"hyperview-color-settings",version:1,storage:t$(()=>localStorage)},(e,t,i)=>{let n,o={storage:t$(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...c},r=!1,s=0,a=new Set,l=new Set,d=o.storage;if(!d)return u((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),e(...t)});let h=()=>{let e=o.partialize({...t()});return d.setItem(o.name,{state:e,version:o.version})},p=i.setState;i.setState=(e,t)=>(p(e,t),h());let m=u((...t)=>(e(...t),h()));i.getInitialState=()=>m;let g=()=>{var i,u;if(!d)return;let c=++s;r=!1,a.forEach(e=>{var i;return e(null!=(i=t())?i:m)});let p=(null==(u=o.onRehydrateStorage)?void 0:u.call(o,null!=(i=t())?i:m))||void 0;return tB(d.getItem.bind(d))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(i=>{var r;if(c!==s)return;let[a,l]=i;if(e(n=o.merge(l,null!=(r=t())?r:m),!0),a)return h()}).then(()=>{c===s&&(null==p||p(n,void 0),n=t(),r=!0,l.forEach(e=>e(n)))}).catch(e=>{c===s&&(null==p||p(void 0,e))})};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>r,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||g(),n||m})),tq=(0,Z.createContext)(null);function tX(){let e=(0,Z.useContext)(tq);if(!e)throw Error("useDockviewContext must be used within DockviewProvider");return e}let tZ=Z.default.createContext(null);function tJ({value:e,children:t}){return(0,q.jsx)(tZ.Provider,{value:e,children:t})}function tY(){return Z.default.useContext(tZ)??{panel:null,panelId:null,props:{},state:{},stateRevision:0}}let tQ=tT("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),t0=tT("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function t1(e,t,{checkForDefaultPrevented:i=!0}={}){return function(n){if(e?.(n),!1===i||!n.defaultPrevented)return t?.(n)}}function t2(e,t=[]){let i=[],n=()=>{let t=i.map(e=>Z.createContext(e));return function(i){let n=i?.[e]||t;return Z.useMemo(()=>({[`__scope${e}`]:{...i,[e]:n}}),[i,n])}};return n.scopeName=e,[function(t,n){let o=Z.createContext(n),r=i.length;i=[...i,n];let s=t=>{let{scope:i,children:n,...s}=t,a=i?.[e]?.[r]||o,l=Z.useMemo(()=>s,Object.values(s));return(0,q.jsx)(a.Provider,{value:l,children:n})};return s.displayName=t+"Provider",[s,function(i,s){let a=s?.[e]?.[r]||o,l=Z.useContext(a);if(l)return l;if(void 0!==n)return n;throw Error(`\`${i}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let i=()=>{let i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=i.reduce((t,{useScope:i,scopeName:n})=>{let o=i(e)[`__scope${n}`];return{...t,...o}},{});return Z.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return i.scopeName=t.scopeName,i}(n,...t)]}"u">typeof window&&window.document&&window.document.createElement;var t5=globalThis?.document?Z.useLayoutEffect:()=>{};Z[" useEffectEvent ".trim().toString()],Z[" useInsertionEffect ".trim().toString()];var t3=Z[" useInsertionEffect ".trim().toString()]||t5;function t4({prop:e,defaultProp:t,onChange:i=()=>{},caller:n}){let[o,r,s]=function({defaultProp:e,onChange:t}){let[i,n]=Z.useState(e),o=Z.useRef(i),r=Z.useRef(t);return t3(()=>{r.current=t},[t]),Z.useEffect(()=>{o.current!==i&&(r.current?.(i),o.current=i)},[i,o]),[i,n,r]}({defaultProp:t,onChange:i}),a=void 0!==e,l=a?e:o;{let t=Z.useRef(void 0!==e);Z.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,n])}return[l,Z.useCallback(t=>{if(a){let i="function"==typeof t?t(e):t;i!==e&&s.current?.(i)}else r(t)},[a,e,r,s])]}Symbol("RADIX:SYNC_STATE");var t6=e.i(69941),t8=Symbol("radix.slottable");function t9(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===t8}var t7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var i,n;let o,r,s,a=(n=i=`Primitive.${t}`,(o=Z.forwardRef((e,t)=>{let{children:i,...n}=e;if(Z.isValidElement(i)){var o;let e,r,s=(o=i,(r=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(r=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let i={...t};for(let n in t){let o=e[n],r=t[n];/^on[A-Z]/.test(n)?o&&r?i[n]=(...e)=>{let t=r(...e);return o(...e),t}:o&&(i[n]=o):"style"===n?i[n]={...o,...r}:"className"===n&&(i[n]=[o,r].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props);return i.type!==Z.Fragment&&(a.ref=t?eb(t,s):s),Z.cloneElement(i,a)}return Z.Children.count(i)>1?Z.Children.only(null):null})).displayName=`${n}.SlotClone`,r=o,(s=Z.forwardRef((e,t)=>{let{children:i,...n}=e,o=Z.Children.toArray(i),s=o.find(t9);if(s){let e=s.props.children,i=o.map(t=>t!==s?t:Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null);return(0,q.jsx)(r,{...n,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,i):null})}return(0,q.jsx)(r,{...n,ref:t,children:i})})).displayName=`${i}.Slot`,s),l=Z.forwardRef((e,i)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,q.jsx)(n?a:t,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function ie(e,t){e&&t6.flushSync(()=>e.dispatchEvent(t))}function it(e){var t;let i,n=(t=e,(i=Z.forwardRef((e,t)=>{let{children:i,...n}=e;if(Z.isValidElement(i)){var o;let e,r,s=(o=i,(r=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(r=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let i={...t};for(let n in t){let o=e[n],r=t[n];/^on[A-Z]/.test(n)?o&&r?i[n]=(...e)=>{let t=r(...e);return o(...e),t}:o&&(i[n]=o):"style"===n?i[n]={...o,...r}:"className"===n&&(i[n]=[o,r].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props);return i.type!==Z.Fragment&&(a.ref=t?eb(t,s):s),Z.cloneElement(i,a)}return Z.Children.count(i)>1?Z.Children.only(null):null})).displayName=`${t}.SlotClone`,i),o=Z.forwardRef((e,t)=>{let{children:i,...o}=e,r=Z.Children.toArray(i),s=r.find(io);if(s){let e=s.props.children,i=r.map(t=>t!==s?t:Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null);return(0,q.jsx)(n,{...o,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,i):null})}return(0,q.jsx)(n,{...o,ref:t,children:i})});return o.displayName=`${e}.Slot`,o}var ii=Symbol("radix.slottable");function io(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ii}function ir(e){let t=e+"CollectionProvider",[i,n]=t2(t),[o,r]=i(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:i}=e,n=Z.default.useRef(null),r=Z.default.useRef(new Map).current;return(0,q.jsx)(o,{scope:t,itemMap:r,collectionRef:n,children:i})};s.displayName=t;let a=e+"CollectionSlot",l=it(a),d=Z.default.forwardRef((e,t)=>{let{scope:i,children:n}=e,o=e_(t,r(a,i).collectionRef);return(0,q.jsx)(l,{ref:o,children:n})});d.displayName=a;let h=e+"CollectionItemSlot",u="data-radix-collection-item",c=it(h),p=Z.default.forwardRef((e,t)=>{let{scope:i,children:n,...o}=e,s=Z.default.useRef(null),a=e_(t,s),l=r(h,i);return Z.default.useEffect(()=>(l.itemMap.set(s,{ref:s,...o}),()=>void l.itemMap.delete(s))),(0,q.jsx)(c,{...{[u]:""},ref:a,children:n})});return p.displayName=h,[{Provider:s,Slot:d,ItemSlot:p},function(t){let i=r(e+"CollectionConsumer",t);return Z.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},n]}var is=Z.createContext(void 0);function ia(e){let t=Z.useContext(is);return e||t||"ltr"}function il(e){let t=Z.useRef(e);return Z.useEffect(()=>{t.current=e}),Z.useMemo(()=>(...e)=>t.current?.(...e),[])}var id="dismissableLayer.update",ih=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iu=Z.forwardRef((e,t)=>{let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:r,onInteractOutside:s,onDismiss:a,...l}=e,d=Z.useContext(ih),[h,u]=Z.useState(null),c=h?.ownerDocument??globalThis?.document,[,p]=Z.useState({}),m=e_(t,e=>u(e)),g=Array.from(d.layers),[f]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(f),b=h?g.indexOf(h):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=v,y=function(e,t=globalThis?.document){let i=il(e),n=Z.useRef(!1),o=Z.useRef(()=>{});return Z.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){ip("dismissableLayer.pointerDownOutside",i,r,{discrete:!0})},r={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,i]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,i=[...d.branches].some(e=>e.contains(t));w&&!i&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},c),x=function(e,t=globalThis?.document){let i=il(e),n=Z.useRef(!1);return Z.useEffect(()=>{let e=e=>{e.target&&!n.current&&ip("dismissableLayer.focusOutside",i,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,i]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...d.branches].some(e=>e.contains(t))&&(r?.(e),s?.(e),e.defaultPrevented||a?.())},c);return!function(e,t=globalThis?.document){let i=il(e);Z.useEffect(()=>{let e=e=>{"Escape"===e.key&&i(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[i,t])}(e=>{b===d.layers.size-1&&(n?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},c),Z.useEffect(()=>{if(h)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(V=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),ic(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(c.body.style.pointerEvents=V)}},[h,c,i,d]),Z.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),ic())},[h,d]),Z.useEffect(()=>{let e=()=>p({});return document.addEventListener(id,e),()=>document.removeEventListener(id,e)},[]),(0,q.jsx)(t7.div,{...l,ref:m,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:t1(e.onFocusCapture,x.onFocusCapture),onBlurCapture:t1(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:t1(e.onPointerDownCapture,y.onPointerDownCapture)})});function ic(){let e=new CustomEvent(id);document.dispatchEvent(e)}function ip(e,t,i,{discrete:n}){let o=i.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});t&&o.addEventListener(e,t,{once:!0}),n?ie(o,r):o.dispatchEvent(r)}iu.displayName="DismissableLayer",Z.forwardRef((e,t)=>{let i=Z.useContext(ih),n=Z.useRef(null),o=e_(t,n);return Z.useEffect(()=>{let e=n.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,q.jsx)(t7.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var im=0;function ig(){Z.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??iv()),document.body.insertAdjacentElement("beforeend",e[1]??iv()),im++,()=>{1===im&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),im--}},[])}function iv(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ib="focusScope.autoFocusOnMount",i_="focusScope.autoFocusOnUnmount",iw={bubbles:!1,cancelable:!0},iy=Z.forwardRef((e,t)=>{let{loop:i=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:r,...s}=e,[a,l]=Z.useState(null),d=il(o),h=il(r),u=Z.useRef(null),c=e_(t,e=>l(e)),p=Z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Z.useEffect(()=>{if(n){let e=function(e){if(p.paused||!a)return;let t=e.target;a.contains(t)?u.current=t:iD(u.current,{select:!0})},t=function(e){if(p.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||iD(u.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let i=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&iD(a)});return a&&i.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),i.disconnect()}}},[n,a,p.paused]),Z.useEffect(()=>{if(a){iS.add(p);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(ib,iw);a.addEventListener(ib,d),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let i=document.activeElement;for(let n of e)if(iD(n,{select:t}),document.activeElement!==i)return}(ix(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&iD(a))}return()=>{a.removeEventListener(ib,d),setTimeout(()=>{let t=new CustomEvent(i_,iw);a.addEventListener(i_,h),a.dispatchEvent(t),t.defaultPrevented||iD(e??document.body,{select:!0}),a.removeEventListener(i_,h),iS.remove(p)},0)}}},[a,d,h,p]);let m=Z.useCallback(e=>{if(!i&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var r;let t,n=e.currentTarget,[s,a]=[iC(t=ix(r=n),r),iC(t.reverse(),r)];s&&a?e.shiftKey||o!==a?e.shiftKey&&o===s&&(e.preventDefault(),i&&iD(a,{select:!0})):(e.preventDefault(),i&&iD(s,{select:!0})):o===n&&e.preventDefault()}},[i,n,p.paused]);return(0,q.jsx)(t7.div,{tabIndex:-1,...s,ref:c,onKeyDown:m})});function ix(e){let t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t}function iC(e,t){for(let i of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i,{upTo:t}))return i}function iD(e,{select:t=!1}={}){if(e&&e.focus){var i;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(i=e)instanceof HTMLInputElement&&"select"in i&&t&&e.select()}}iy.displayName="FocusScope";var iS=(C=[],{add(e){let t=C[0];e!==t&&t?.pause(),(C=ik(C,e)).unshift(e)},remove(e){C=ik(C,e),C[0]?.resume()}});function ik(e,t){let i=[...e],n=i.indexOf(t);return -1!==n&&i.splice(n,1),i}var iE=Z[" useId ".trim().toString()]||(()=>void 0),iP=0;function iA(e){let[t,i]=Z.useState(iE());return t5(()=>{e||i(e=>e??String(iP++))},[e]),e||(t?`radix-${t}`:"")}let iI=["top","right","bottom","left"],iT=Math.min,iz=Math.max,iM=Math.round,iG=Math.floor,iR=e=>({x:e,y:e}),iN={left:"right",right:"left",bottom:"top",top:"bottom"},iO={start:"end",end:"start"};function iL(e,t){return"function"==typeof e?e(t):e}function ij(e){return e.split("-")[0]}function iV(e){return e.split("-")[1]}function iW(e){return"x"===e?"y":"x"}function iH(e){return"y"===e?"height":"width"}let iF=new Set(["top","bottom"]);function i$(e){return iF.has(ij(e))?"y":"x"}function iB(e){return e.replace(/start|end/g,e=>iO[e])}let iU=["left","right"],iK=["right","left"],iq=["top","bottom"],iX=["bottom","top"];function iZ(e){return e.replace(/left|right|bottom|top/g,e=>iN[e])}function iJ(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function iY(e){let{x:t,y:i,width:n,height:o}=e;return{width:n,height:o,top:i,left:t,right:t+n,bottom:i+o,x:t,y:i}}function iQ(e,t,i){let n,{reference:o,floating:r}=e,s=i$(t),a=iW(i$(t)),l=iH(a),d=ij(t),h="y"===s,u=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;switch(d){case"top":n={x:u,y:o.y-r.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:c};break;case"left":n={x:o.x-r.width,y:c};break;default:n={x:o.x,y:o.y}}switch(iV(t)){case"start":n[a]-=p*(i&&h?-1:1);break;case"end":n[a]+=p*(i&&h?-1:1)}return n}async function i0(e,t){var i;void 0===t&&(t={});let{x:n,y:o,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:c=!1,padding:p=0}=iL(t,e),m=iJ(p),g=a[c?"floating"===u?"reference":"floating":u],f=iY(await r.getClippingRect({element:null==(i=await (null==r.isElement?void 0:r.isElement(g)))||i?g:g.contextElement||await (null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),v="floating"===u?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await (null==r.isElement?void 0:r.isElement(b))&&await (null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},w=iY(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(f.top-w.top+m.top)/_.y,bottom:(w.bottom-f.bottom+m.bottom)/_.y,left:(f.left-w.left+m.left)/_.x,right:(w.right-f.right+m.right)/_.x}}let i1=async(e,t,i)=>{let{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:s}=i,a=r.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:u}=iQ(d,n,l),c=n,p={},m=0;for(let i=0;ie[t]>=0)}let i3=new Set(["left","top"]);async function i4(e,t){let{placement:i,platform:n,elements:o}=e,r=await (null==n.isRTL?void 0:n.isRTL(o.floating)),s=ij(i),a=iV(i),l="y"===i$(i),d=i3.has(s)?-1:1,h=r&&l?-1:1,u=iL(t,e),{mainAxis:c,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),l?{x:p*h,y:c*d}:{x:c*d,y:p*h}}function i6(){return"u">typeof window}function i8(e){return ne(e)?(e.nodeName||"").toLowerCase():"#document"}function i9(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i7(e){var t;return null==(t=(ne(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ne(e){return!!i6()&&(e instanceof Node||e instanceof i9(e).Node)}function nt(e){return!!i6()&&(e instanceof Element||e instanceof i9(e).Element)}function ni(e){return!!i6()&&(e instanceof HTMLElement||e instanceof i9(e).HTMLElement)}function nn(e){return!(!i6()||"u"{try{return e.matches(t)}catch(e){return!1}})}let nd=["transform","translate","scale","rotate","perspective"],nh=["transform","translate","scale","rotate","perspective","filter"],nu=["paint","layout","strict","content"];function nc(e){let t=np(),i=nt(e)?nf(e):e;return nd.some(e=>!!i[e]&&"none"!==i[e])||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||nh.some(e=>(i.willChange||"").includes(e))||nu.some(e=>(i.contain||"").includes(e))}function np(){return!("u"nt(e)&&"body"!==i8(e)),o=null,r="fixed"===nf(e).position,s=r?nb(e):e;for(;nt(s)&&!ng(s);){let t=nf(s),i=nc(s);i||"fixed"!==t.position||(o=null),(r?!i&&!o:!i&&"static"===t.position&&!!o&&nA.has(o.position)||nr(s)&&!i&&function e(t,i){let n=nb(t);return!(n===i||!nt(n)||ng(n))&&("fixed"===nf(n).position||e(n,i))}(e,s))?n=n.filter(e=>e!==s):o=t,s=nb(s)}return t.set(e,n),n}(t,this._c):[].concat(i),n],s=r[0],a=r.reduce((e,i)=>{let n=nI(t,i,o);return e.top=iz(n.top,e.top),e.right=iT(n.right,e.right),e.bottom=iT(n.bottom,e.bottom),e.left=iz(n.left,e.left),e},nI(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:nM,getElementRects:nG,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:i}=ny(e);return{width:t,height:i}},getScale:nC,isElement:nt,isRTL:function(e){return"rtl"===nf(e).direction}};function nN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let nO=e=>({name:"arrow",options:e,async fn(t){let{x:i,y:n,placement:o,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:h=0}=iL(e,t)||{};if(null==d)return{};let u=iJ(h),c={x:i,y:n},p=iW(i$(o)),m=iH(p),g=await s.getDimensions(d),f="y"===p,v=f?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[p]-c[p]-r.floating[m],_=c[p]-r.reference[p],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),y=w?w[v]:0;y&&await (null==s.isElement?void 0:s.isElement(w))||(y=a.floating[v]||r.floating[m]);let x=y/2-g[m]/2-1,C=iT(u[f?"top":"left"],x),D=iT(u[f?"bottom":"right"],x),S=y-g[m]-D,k=y/2-g[m]/2+(b/2-_/2),E=iz(C,iT(k,S)),P=!l.arrow&&null!=iV(o)&&k!==E&&r.reference[m]/2-(ktypeof document?Z.useLayoutEffect:function(){};function nj(e,t){let i,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((i=e.length)!==t.length)return!1;for(n=i;0!=n--;)if(!nj(e[n],t[n]))return!1;return!0}if((i=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=i;0!=n--;){let i=o[n];if(("_owner"!==i||!e.$$typeof)&&!nj(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}function nV(e){return"u"{t.current=e}),t}var nF=Z.forwardRef((e,t)=>{let{children:i,width:n=10,height:o=5,...r}=e;return(0,q.jsx)(t7.svg,{...r,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:(0,q.jsx)("polygon",{points:"0,0 30,0 15,10"})})});nF.displayName="Arrow";var n$="Popper",[nB,nU]=t2(n$),[nK,nq]=nB(n$),nX=e=>{let{__scopePopper:t,children:i}=e,[n,o]=Z.useState(null);return(0,q.jsx)(nK,{scope:t,anchor:n,onAnchorChange:o,children:i})};nX.displayName=n$;var nZ="PopperAnchor",nJ=Z.forwardRef((e,t)=>{let{__scopePopper:i,virtualRef:n,...o}=e,r=nq(nZ,i),s=Z.useRef(null),a=e_(t,s),l=Z.useRef(null);return Z.useEffect(()=>{let e=l.current;l.current=n?.current||s.current,e!==l.current&&r.onAnchorChange(l.current)}),n?null:(0,q.jsx)(t7.div,{...o,ref:a})});nJ.displayName=nZ;var nY="PopperContent",[nQ,n0]=nB(nY),n1=Z.forwardRef((e,t)=>{var i,n,o,r,s,a,l,d,h,u,c,p,m;let{__scopePopper:g,side:f="bottom",sideOffset:v=0,align:b="center",alignOffset:_=0,arrowPadding:w=0,avoidCollisions:y=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:D="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...P}=e,A=nq(nY,g),[I,T]=Z.useState(null),z=e_(t,e=>T(e)),[M,G]=Z.useState(null),R=function(e){let[t,i]=Z.useState(void 0);return t5(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let r=t[0];if("borderBoxSize"in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;i({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),t}(M),N=R?.width??0,O=R?.height??0,L="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},j=Array.isArray(x)?x:[x],V=j.length>0,W={padding:L,boundary:j.filter(n4),altBoundary:V},{refs:H,floatingStyles:F,placement:$,isPositioned:B,middlewareData:U}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:i="absolute",middleware:n=[],platform:o,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:l,open:d}=e,[h,u]=Z.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[c,p]=Z.useState(n);nj(c,n)||p(n);let[m,g]=Z.useState(null),[f,v]=Z.useState(null),b=Z.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),_=Z.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=r||m,y=s||f,x=Z.useRef(null),C=Z.useRef(null),D=Z.useRef(h),S=null!=l,k=nH(l),E=nH(o),P=nH(d),A=Z.useCallback(()=>{var e,n;let o,r,s;if(!x.current||!C.current)return;let a={placement:t,strategy:i,middleware:c};E.current&&(a.platform=E.current),(e=x.current,n=C.current,o=new Map,s={...(r={platform:nR,...a}).platform,_c:o},i1(e,n,{...r,platform:s})).then(e=>{let t={...e,isPositioned:!1!==P.current};I.current&&!nj(D.current,t)&&(D.current=t,t6.flushSync(()=>{u(t)}))})},[c,t,i,E,P]);nL(()=>{!1===d&&D.current.isPositioned&&(D.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[d]);let I=Z.useRef(!1);nL(()=>(I.current=!0,()=>{I.current=!1}),[]),nL(()=>{if(w&&(x.current=w),y&&(C.current=y),w&&y){if(k.current)return k.current(w,y,A);A()}},[w,y,A,k,S]);let T=Z.useMemo(()=>({reference:x,floating:C,setReference:b,setFloating:_}),[b,_]),z=Z.useMemo(()=>({reference:w,floating:y}),[w,y]),M=Z.useMemo(()=>{let e={position:i,left:0,top:0};if(!z.floating)return e;let t=nW(z.floating,h.x),n=nW(z.floating,h.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...nV(z.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:t,top:n}},[i,a,z.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:A,refs:T,elements:z,floatingStyles:M}),[h,A,T,z,M])}({strategy:"fixed",placement:f+("center"!==b?"-"+b:""),whileElementsMounted:(...e)=>(function(e,t,i,n){let o;void 0===n&&(n={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,h=nx(e),u=r||s?[...h?n_(h):[],...n_(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",i,{passive:!0}),s&&e.addEventListener("resize",i)});let c=h&&l?function(e,t){let i,n=null,o=i7(e);function r(){var e;clearTimeout(i),null==(e=n)||e.disconnect(),n=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();let d=e.getBoundingClientRect(),{left:h,top:u,width:c,height:p}=d;if(a||t(),!c||!p)return;let m={rootMargin:-iG(u)+"px "+-iG(o.clientWidth-(h+c))+"px "+-iG(o.clientHeight-(u+p))+"px "+-iG(h)+"px",threshold:iz(0,iT(1,l))||1},g=!0;function f(t){let n=t[0].intersectionRatio;if(n!==l){if(!g)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||nN(d,e.getBoundingClientRect())||s(),g=!1}try{n=new IntersectionObserver(f,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(f,m)}n.observe(e)}(!0),r}(h,i):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===h&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),i()}),h&&!d&&m.observe(h),m.observe(t));let g=d?nk(e):null;return d&&function t(){let n=nk(e);g&&!nN(g,n)&&i(),g=n,o=requestAnimationFrame(t)}(),i(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",i),s&&e.removeEventListener("resize",i)}),null==c||c(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===k}),elements:{reference:A.anchor},middleware:[{...{name:"offset",options:n=i={mainAxis:v+O,alignmentAxis:_},async fn(e){var t,i;let{x:o,y:r,placement:s,middlewareData:a}=e,l=await i4(e,n);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}},options:[i,void 0]},y&&{...{name:"shift",options:s=r={mainAxis:!0,crossAxis:!1,limiter:"partial"===D?{...(o=void 0,{options:o={},fn(e){let{x:t,y:i,placement:n,rects:r,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:d=!0}=iL(o,e),h={x:t,y:i},u=i$(n),c=iW(u),p=h[c],m=h[u],g=iL(a,e),f="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===c?"height":"width",t=r.reference[c]-r.floating[e]+f.mainAxis,i=r.reference[c]+r.reference[e]-f.mainAxis;pi&&(p=i)}if(d){var v,b;let e="y"===c?"width":"height",t=i3.has(ij(n)),i=r.reference[u]-r.floating[e]+(t&&(null==(v=s.offset)?void 0:v[u])||0)+(t?0:f.crossAxis),o=r.reference[u]+r.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[u])||0)-(t?f.crossAxis:0);mo&&(m=o)}return{[c]:p,[u]:m}}}),options:[void 0,void 0]}:void 0,...W},async fn(e){let{x:t,y:i,placement:n,platform:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...d}=iL(s,e),h={x:t,y:i},u=await o.detectOverflow(e,d),c=i$(ij(n)),p=iW(c),m=h[p],g=h[c];if(r){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",i=m+u[e],n=m-u[t];m=iz(i,iT(m,n))}if(a){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",i=g+u[e],n=g-u[t];g=iz(i,iT(g,n))}let f=l.fn({...e,[p]:m,[c]:g});return{...f,data:{x:f.x-t,y:f.y-i,enabled:{[p]:r,[c]:a}}}}},options:[r,void 0]},y&&{...{name:"flip",options:l=a={...W},async fn(e){var t,i,n,o,r,s,a,d;let h,u,c,{placement:p,middlewareData:m,rects:g,initialPlacement:f,platform:v,elements:b}=e,{mainAxis:_=!0,crossAxis:w=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:D=!0,...S}=iL(l,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let k=ij(p),E=i$(f),P=ij(f)===f,A=await (null==v.isRTL?void 0:v.isRTL(b.floating)),I=y||(P||!D?[iZ(f)]:(h=iZ(f),[iB(f),h,iB(h)])),T="none"!==C;!y&&T&&I.push(...(u=iV(f),c=function(e,t,i){switch(e){case"top":case"bottom":if(i)return t?iK:iU;return t?iU:iK;case"left":case"right":return t?iq:iX;default:return[]}}(ij(f),"start"===C,A),u&&(c=c.map(e=>e+"-"+u),D&&(c=c.concat(c.map(iB)))),c));let z=[f,...I],M=await v.detectOverflow(e,S),G=[],R=(null==(i=m.flip)?void 0:i.overflows)||[];if(_&&G.push(M[k]),w){let e,t,i,n,o=(s=p,a=g,void 0===(d=A)&&(d=!1),e=iV(s),i=iH(t=iW(i$(s))),n="x"===t?e===(d?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[i]>a.floating[i]&&(n=iZ(n)),[n,iZ(n)]);G.push(M[o[0]],M[o[1]])}if(R=[...R,{placement:p,overflows:G}],!G.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=z[e];if(t&&("alignment"!==w||E===i$(t)||R.every(e=>i$(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let i=null==(o=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!i)switch(x){case"bestFit":{let e=null==(r=R.filter(e=>{if(T){let t=i$(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:r[0];e&&(i=e);break}case"initialPlacement":i=f}if(p!==i)return{reset:{placement:i}}}return{}}},options:[a,void 0]},{...{name:"size",options:h=d={...W,apply:({elements:e,rects:t,availableWidth:i,availableHeight:n})=>{let{width:o,height:r}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${i}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${r}px`)}},async fn(e){var t,i;let n,o,{placement:r,rects:s,platform:a,elements:l}=e,{apply:d=()=>{},...u}=iL(h,e),c=await a.detectOverflow(e,u),p=ij(r),m=iV(r),g="y"===i$(r),{width:f,height:v}=s.floating;"top"===p||"bottom"===p?(n=p,o=m===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(o=p,n="end"===m?"top":"bottom");let b=v-c.top-c.bottom,_=f-c.left-c.right,w=iT(v-c[n],b),y=iT(f-c[o],_),x=!e.middlewareData.shift,C=w,D=y;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(D=_),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(C=b),x&&!m){let e=iz(c.left,0),t=iz(c.right,0),i=iz(c.top,0),n=iz(c.bottom,0);g?D=f-2*(0!==e||0!==t?e+t:iz(c.left,c.right)):C=v-2*(0!==i||0!==n?i+n:iz(c.top,c.bottom))}await d({...e,availableWidth:D,availableHeight:C});let S=await a.getDimensions(l.floating);return f!==S.width||v!==S.height?{reset:{rects:!0}}:{}}},options:[d,void 0]},M&&{...{name:"arrow",options:c=u={element:M,padding:w},fn(e){let{element:t,padding:i}="function"==typeof c?c(e):c;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?nO({element:t.current,padding:i}).fn(e):{}:t?nO({element:t,padding:i}).fn(e):{}}},options:[u,void 0]},n6({arrowWidth:N,arrowHeight:O}),S&&{...{name:"hide",options:m=p={strategy:"referenceHidden",...W},async fn(e){let{rects:t,platform:i}=e,{strategy:n="referenceHidden",...o}=iL(m,e);switch(n){case"referenceHidden":{let n=i2(await i.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:i5(n)}}}case"escaped":{let n=i2(await i.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:i5(n)}}}default:return{}}}},options:[p,void 0]}]}),[K,X]=n8($),J=il(E);t5(()=>{B&&J?.()},[B,J]);let Y=U.arrow?.x,Q=U.arrow?.y,ee=U.arrow?.centerOffset!==0,[et,ei]=Z.useState();return t5(()=>{I&&ei(window.getComputedStyle(I).zIndex)},[I]),(0,q.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,q.jsx)(nQ,{scope:g,placedSide:K,onArrowChange:G,arrowX:Y,arrowY:Q,shouldHideArrow:ee,children:(0,q.jsx)(t7.div,{"data-side":K,"data-align":X,...P,ref:z,style:{...P.style,animation:B?void 0:"none"}})})})});n1.displayName=nY;var n2="PopperArrow",n5={top:"bottom",right:"left",bottom:"top",left:"right"},n3=Z.forwardRef(function(e,t){let{__scopePopper:i,...n}=e,o=n0(n2,i),r=n5[o.placedSide];return(0,q.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,q.jsx)(nF,{...n,ref:t,style:{...n.style,display:"block"}})})});function n4(e){return null!==e}n3.displayName=n2;var n6=e=>({name:"transformOrigin",options:e,fn(t){let{placement:i,rects:n,middlewareData:o}=t,r=o.arrow?.centerOffset!==0,s=r?0:e.arrowWidth,a=r?0:e.arrowHeight,[l,d]=n8(i),h={start:"0%",center:"50%",end:"100%"}[d],u=(o.arrow?.x??0)+s/2,c=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===l?(p=r?h:`${u}px`,m=`${-a}px`):"top"===l?(p=r?h:`${u}px`,m=`${n.floating.height+a}px`):"right"===l?(p=`${-a}px`,m=r?h:`${c}px`):"left"===l&&(p=`${n.floating.width+a}px`,m=r?h:`${c}px`),{data:{x:p,y:m}}}});function n8(e){let[t,i="center"]=e.split("-");return[t,i]}var n9=Z.forwardRef((e,t)=>{let{container:i,...n}=e,[o,r]=Z.useState(!1);t5(()=>r(!0),[]);let s=i||o&&globalThis?.document?.body;return s?t6.default.createPortal((0,q.jsx)(t7.div,{...n,ref:t}),s):null});n9.displayName="Portal";var n7=e=>{var t;let i,n,{present:o,children:r}=e,s=function(e){var t,i;let[n,o]=Z.useState(),r=Z.useRef(null),s=Z.useRef(e),a=Z.useRef("none"),[l,d]=(t=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},Z.useReducer((e,t)=>i[e][t]??e,t));return Z.useEffect(()=>{let e=oe(r.current);a.current="mounted"===l?e:"none"},[l]),t5(()=>{let t=r.current,i=s.current;if(i!==e){let n=a.current,o=oe(t);e?d("MOUNT"):"none"===o||t?.display==="none"?d("UNMOUNT"):i&&n!==o?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),t5(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,i=i=>{let o=oe(r.current).includes(CSS.escape(i.animationName));if(i.target===n&&o&&(d("ANIMATION_END"),!s.current)){let i=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=i)})}},o=e=>{e.target===n&&(a.current=oe(r.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Z.useCallback(e=>{r.current=e?getComputedStyle(e):null,o(e)},[])}}(o),a="function"==typeof r?r({present:s.isPresent}):Z.Children.only(r),l=e_(s.ref,(t=a,(n=(i=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?t.ref:(n=(i=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof r||s.isPresent?Z.cloneElement(a,{ref:l}):null};function oe(e){return e?.animationName||"none"}n7.displayName="Presence";var ot="rovingFocusGroup.onEntryFocus",oi={bubbles:!1,cancelable:!0},on="RovingFocusGroup",[oo,or,os]=ir(on),[oa,ol]=t2(on,[os]),[od,oh]=oa(on),ou=Z.forwardRef((e,t)=>(0,q.jsx)(oo.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,q.jsx)(oo.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,q.jsx)(oc,{...e,ref:t})})}));ou.displayName=on;var oc=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:o=!1,dir:r,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:h=!1,...u}=e,c=Z.useRef(null),p=e_(t,c),m=ia(r),[g,f]=t4({prop:s,defaultProp:a??null,onChange:l,caller:on}),[v,b]=Z.useState(!1),_=il(d),w=or(i),y=Z.useRef(!1),[x,C]=Z.useState(0);return Z.useEffect(()=>{let e=c.current;if(e)return e.addEventListener(ot,_),()=>e.removeEventListener(ot,_)},[_]),(0,q.jsx)(od,{scope:i,orientation:n,dir:m,loop:o,currentTabStopId:g,onItemFocus:Z.useCallback(e=>f(e),[f]),onItemShiftTab:Z.useCallback(()=>b(!0),[]),onFocusableItemAdd:Z.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:Z.useCallback(()=>C(e=>e-1),[]),children:(0,q.jsx)(t7.div,{tabIndex:v||0===x?-1:0,"data-orientation":n,...u,ref:p,style:{outline:"none",...e.style},onMouseDown:t1(e.onMouseDown,()=>{y.current=!0}),onFocus:t1(e.onFocus,e=>{let t=!y.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ot,oi);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);of([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),h)}}y.current=!1}),onBlur:t1(e.onBlur,()=>b(!1))})})}),op="RovingFocusGroupItem",om=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,focusable:n=!0,active:o=!1,tabStopId:r,children:s,...a}=e,l=iA(),d=r||l,h=oh(op,i),u=h.currentTabStopId===d,c=or(i),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:g}=h;return Z.useEffect(()=>{if(n)return p(),()=>m()},[n,p,m]),(0,q.jsx)(oo.ItemSlot,{scope:i,id:d,focusable:n,active:o,children:(0,q.jsx)(t7.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...a,ref:t,onMouseDown:t1(e.onMouseDown,e=>{n?h.onItemFocus(d):e.preventDefault()}),onFocus:t1(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:t1(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,i){var n;let o=(n=e.key,"rtl"!==i?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return og[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=c().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var i,n;"prev"===t&&o.reverse();let r=o.indexOf(e.currentTarget);o=h.loop?(i=o,n=r+1,i.map((e,t)=>i[(n+t)%i.length])):o.slice(r+1)}setTimeout(()=>of(o))}}),children:"function"==typeof s?s({isCurrentTabStop:u,hasTabStop:null!=g}):s})})});om.displayName=op;var og={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function of(e,t=!1){let i=document.activeElement;for(let n of e)if(n===i||(n.focus({preventScroll:t}),document.activeElement!==i))return}var ov=Symbol("radix.slottable");function ob(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ov}var o_=new WeakMap,ow=new WeakMap,oy={},ox=0,oC=function(e){return e&&(e.host||oC(e.parentNode))},oD=function(e,t,i,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var i=oC(e);return i&&t.contains(i)?i:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});oy[i]||(oy[i]=new WeakMap);var r=oy[i],s=[],a=new Set,l=new Set(o),d=function(e){!e||a.has(e)||(a.add(e),d(e.parentNode))};o.forEach(d);var h=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))h(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(o_.get(e)||0)+1,d=(r.get(e)||0)+1;o_.set(e,l),r.set(e,d),s.push(e),1===l&&o&&ow.set(e,!0),1===d&&e.setAttribute(i,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),a.clear(),ox++,function(){s.forEach(function(e){var t=o_.get(e)-1,o=r.get(e)-1;o_.set(e,t),r.set(e,o),t||(ow.has(e)||e.removeAttribute(n),ow.delete(e)),o||e.removeAttribute(i)}),--ox||(o_=new WeakMap,o_=new WeakMap,ow=new WeakMap,oy={})}},oS=function(e,t,i){void 0===i&&(i="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("u"t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]]);return i}var oP=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),oA="width-before-scroll-bar";function oI(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var oT="u">typeof window?Z.useLayoutEffect:Z.useEffect,oz=new WeakMap,oM=(void 0===P&&(P={}),(void 0===A&&(A=function(e){return e}),I=[],T=!1,z={read:function(){if(T)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return I.length?I[I.length-1]:null},useMedium:function(e){var t=A(e,T);return I.push(t),function(){I=I.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(T=!0;I.length;){var t=I;I=[],t.forEach(e)}I={push:function(t){return e(t)},filter:function(){return I}}},assignMedium:function(e){T=!0;var t=[];if(I.length){var i=I;I=[],i.forEach(e),t=I}var n=function(){var i=t;t=[],i.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),I={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),I}}}}).options=ok({async:!0,ssr:!1},P),z),oG=function(){},oR=Z.forwardRef(function(e,t){var i,n,o,r,s=Z.useRef(null),a=Z.useState({onScrollCapture:oG,onWheelCapture:oG,onTouchMoveCapture:oG}),l=a[0],d=a[1],h=e.forwardProps,u=e.children,c=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,f=e.sideCar,v=e.noRelative,b=e.noIsolation,_=e.inert,w=e.allowPinchZoom,y=e.as,x=e.gapMode,C=oE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(i=[s,t],n=function(e){return i.forEach(function(t){return oI(t,e)})},(o=(0,Z.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,r=o.facade,oT(function(){var e=oz.get(r);if(e){var t=new Set(e),n=new Set(i),o=r.current;t.forEach(function(e){n.has(e)||oI(e,null)}),n.forEach(function(e){t.has(e)||oI(e,o)})}oz.set(r,i)},[i]),r),S=ok(ok({},C),l);return Z.createElement(Z.Fragment,null,m&&Z.createElement(f,{sideCar:oM,removeScrollBar:p,shards:g,noRelative:v,noIsolation:b,inert:_,setCallbacks:d,allowPinchZoom:!!w,lockRef:s,gapMode:x}),h?Z.cloneElement(Z.Children.only(u),ok(ok({},S),{ref:D})):Z.createElement(void 0===y?"div":y,ok({},S,{className:c,ref:D}),u))});oR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oR.classNames={fullWidth:oA,zeroRight:oP};var oN=function(e){var t=e.sideCar,i=oE(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return Z.createElement(n,ok({},i))};oN.isSideCarExport=!0;var oO=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,o;(n=t).styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oL=function(){var e=oO();return function(t,i){Z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},oj=function(){var e=oL();return function(t){return e(t.styles,t.dynamic),null}},oV={left:0,top:0,right:0,gap:0},oW=function(e){return parseInt(e||"",10)||0},oH=function(e){var t=window.getComputedStyle(document.body),i=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[oW(i),oW(n),oW(o)]},oF=function(e){if(void 0===e&&(e="margin"),"u"