sqlmesh 0.184.1.dev7__py3-none-any.whl → 0.184.2.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. sqlmesh/_version.py +2 -2
  2. sqlmesh/lsp/api.py +9 -1
  3. sqlmesh/lsp/completions.py +5 -4
  4. sqlmesh/lsp/context.py +6 -7
  5. sqlmesh/lsp/main.py +34 -13
  6. sqlmesh/lsp/reference.py +4 -5
  7. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/METADATA +1 -1
  8. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/RECORD +56 -56
  9. web/client/dist/assets/{Audits-DiRd7NXk.js → Audits-DF7amJxU.js} +1 -1
  10. web/client/dist/assets/{Banner-34lJaqMH.js → Banner-C3VTntGq.js} +1 -1
  11. web/client/dist/assets/{ChevronDownIcon-BEfZMwIq.js → ChevronDownIcon-qm4bu8e3.js} +1 -1
  12. web/client/dist/assets/{ChevronRightIcon-CRtD2F1s.js → ChevronRightIcon-BolEdhGf.js} +1 -1
  13. web/client/dist/assets/{Content-BjziMWy_.js → Content-B6xcwedd.js} +1 -1
  14. web/client/dist/assets/{Content-DPMnGXgB.js → Content-BRVWZ3mb.js} +1 -1
  15. web/client/dist/assets/{Data-Z6F8o2ML.js → Data-Biu-V0fH.js} +1 -1
  16. web/client/dist/assets/{DataCatalog-XvD05neI.js → DataCatalog-B6evo1XW.js} +1 -1
  17. web/client/dist/assets/{Editor-CMra0GR-.js → Editor-CLmFVr2P.js} +1 -1
  18. web/client/dist/assets/{Editor-BBauicI1.js → Editor-CVxCL2-Y.js} +1 -1
  19. web/client/dist/assets/{Errors-BJPVdPAn.js → Errors-oZskb8PG.js} +1 -1
  20. web/client/dist/assets/{FileExplorer-Bcw8Oc1N.js → FileExplorer-CGr1vJjw.js} +1 -1
  21. web/client/dist/assets/{Footer-DkqrnEFk.js → Footer-fJbe0D4K.js} +1 -1
  22. web/client/dist/assets/{Header-Cbp8THC6.js → Header-BH87N9ET.js} +1 -1
  23. web/client/dist/assets/Input-D4nBSMWJ.js +41 -0
  24. web/client/dist/assets/Lineage-CPutJH7u.js +1 -0
  25. web/client/dist/assets/{ListboxShow-CNU6pC5Q.js → ListboxShow-BWNLIBMH.js} +1 -1
  26. web/client/dist/assets/{ModelLineage-BUzz3_b3.js → ModelLineage-c5SOHuSl.js} +1 -1
  27. web/client/dist/assets/{Models-Z7Jpg0H-.js → Models-BNHmcp1o.js} +1 -1
  28. web/client/dist/assets/{Page-B21QE6gQ.js → Page-daP33Ypg.js} +1 -1
  29. web/client/dist/assets/{Plan-D1J9cFla.js → Plan-DUHa3QdG.js} +1 -1
  30. web/client/dist/assets/{PlusCircleIcon-Cl1cWT27.js → PlusCircleIcon-Bk7UCkgh.js} +1 -1
  31. web/client/dist/assets/{ReportErrors-D15tD0Jx.js → ReportErrors-DfzGQ2eY.js} +1 -1
  32. web/client/dist/assets/{Root-CjnodTM-.js → Root-uPpx7ocJ.js} +1 -1
  33. web/client/dist/assets/{SearchList-COHTRb0L.js → SearchList-87imxiuX.js} +1 -1
  34. web/client/dist/assets/{SelectEnvironment-CKRnNDga.js → SelectEnvironment-DRt5ys9a.js} +1 -1
  35. web/client/dist/assets/{SourceList-B1uchtse.js → SourceList-Cfd2Hs4e.js} +1 -1
  36. web/client/dist/assets/{SourceListItem-IbZqPGQ-.js → SourceListItem-Cgi7ENFV.js} +1 -1
  37. web/client/dist/assets/{SplitPane-X49qF_M2.js → SplitPane-p-JrHTOr.js} +1 -1
  38. web/client/dist/assets/{Tests-DlffJtoP.js → Tests-Das-Vk4n.js} +1 -1
  39. web/client/dist/assets/{Welcome-Ba62ssiL.js → Welcome-33aFy-Y-.js} +1 -1
  40. web/client/dist/assets/{context-CvggAi88.js → context-C5ccds54.js} +1 -1
  41. web/client/dist/assets/{context-BvCFukJL.js → context-NpzoJDLp.js} +1 -1
  42. web/client/dist/assets/{editor-BNLMfBQ6.js → editor-B8OcqW2l.js} +1 -1
  43. web/client/dist/assets/{file-DYQzDhLd.js → file-D-wqO8gv.js} +1 -1
  44. web/client/dist/assets/{floating-ui.react-dom-tGq145Jn.js → floating-ui.react-dom-BrhHyVvs.js} +1 -1
  45. web/client/dist/assets/{help-Iv3AQtFM.js → help-CQWPRUV2.js} +1 -1
  46. web/client/dist/assets/{index-DyVIXHW8.js → index-Co-_3xPI.js} +1 -1
  47. web/client/dist/assets/{index-Dafo7IQA.js → index-xGKh539i.js} +1 -1
  48. web/client/dist/assets/{plan-b_STGhUH.js → plan-BIz0iaor.js} +1 -1
  49. web/client/dist/assets/{popover-CViXjwzR.js → popover-BXDPVmB7.js} +1 -1
  50. web/client/dist/assets/{project-DuzSX7Ps.js → project-H8d6rukl.js} +1 -1
  51. web/client/dist/index.html +1 -1
  52. web/server/api/endpoints/lineage.py +1 -1
  53. web/client/dist/assets/Input-ta8tMqGc.js +0 -41
  54. web/client/dist/assets/Lineage-Cq9-RKh4.js +0 -1
  55. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/WHEEL +0 -0
  56. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/entry_points.txt +0 -0
  57. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/licenses/LICENSE +0 -0
  58. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{r as x}from"./index-DyVIXHW8.js";import{r as C}from"./floating-ui.react-dom-tGq145Jn.js";function p(r,l,e){let s=e.initialDeps??[],t;function n(){var i,o,a,c;let h;e.key&&((i=e.debug)!=null&&i.call(e))&&(h=Date.now());const u=r();if(!(u.length!==s.length||u.some((m,f)=>s[f]!==m)))return t;s=u;let v;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(v=Date.now()),t=l(...u),e.key&&((a=e.debug)!=null&&a.call(e))){const m=Math.round((Date.now()-h)*100)/100,f=Math.round((Date.now()-v)*100)/100,S=f/16,b=(g,O)=>{for(g=String(g);g.length<O;)g=" "+g;return g};console.info(`%c⏱ ${b(f,5)} /${b(m,5)} ms`,`
1
+ import{r as x}from"./index-Co-_3xPI.js";import{r as C}from"./floating-ui.react-dom-BrhHyVvs.js";function p(r,l,e){let s=e.initialDeps??[],t;function n(){var i,o,a,c;let h;e.key&&((i=e.debug)!=null&&i.call(e))&&(h=Date.now());const u=r();if(!(u.length!==s.length||u.some((m,f)=>s[f]!==m)))return t;s=u;let v;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(v=Date.now()),t=l(...u),e.key&&((a=e.debug)!=null&&a.call(e))){const m=Math.round((Date.now()-h)*100)/100,f=Math.round((Date.now()-v)*100)/100,S=f/16,b=(g,O)=>{for(g=String(g);g.length<O;)g=" "+g;return g};console.info(`%c⏱ ${b(f,5)} /${b(m,5)} ms`,`
2
2
  font-size: .6rem;
3
3
  font-weight: bold;
4
4
  color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(c=e==null?void 0:e.onChange)==null||c.call(e,t),t}return n.updateDeps=i=>{s=i},n}function M(r,l){if(r===void 0)throw new Error("Unexpected undefined");return r}const T=(r,l)=>Math.abs(r-l)<=1,R=(r,l,e)=>{let s;return function(...t){r.clearTimeout(s),s=r.setTimeout(()=>l.apply(this,t),e)}},y=r=>{const{offsetWidth:l,offsetHeight:e}=r;return{width:l,height:e}},_=r=>r,A=r=>{const l=Math.max(r.startIndex-r.overscan,0),e=Math.min(r.endIndex+r.overscan,r.count-1),s=[];for(let t=l;t<=e;t++)s.push(t);return s},D=(r,l)=>{const e=r.scrollElement;if(!e)return;const s=r.targetWindow;if(!s)return;const t=i=>{const{width:o,height:a}=i;l({width:Math.round(o),height:Math.round(a)})};if(t(y(e)),!s.ResizeObserver)return()=>{};const n=new s.ResizeObserver(i=>{const o=()=>{const a=i[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){t({width:c.inlineSize,height:c.blockSize});return}}t(y(e))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},w={passive:!0},I=typeof window>"u"?!0:"onscrollend"in window,k=(r,l)=>{const e=r.scrollElement;if(!e)return;const s=r.targetWindow;if(!s)return;let t=0;const n=r.options.useScrollendEvent&&I?()=>{}:R(s,()=>{l(t,!1)},r.options.isScrollingResetDelay),i=h=>()=>{const{horizontal:u,isRtl:d}=r.options;t=u?e.scrollLeft*(d&&-1||1):e.scrollTop,n(),l(t,h)},o=i(!0),a=i(!1);a(),e.addEventListener("scroll",o,w);const c=r.options.useScrollendEvent&&I;return c&&e.addEventListener("scrollend",a,w),()=>{e.removeEventListener("scroll",o),c&&e.removeEventListener("scrollend",a)}},F=(r,l,e)=>{if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return r[e.options.horizontal?"offsetWidth":"offsetHeight"]},W=(r,{adjustments:l=0,behavior:e},s)=>{var t,n;const i=r+l;(n=(t=s.scrollElement)==null?void 0:t.scrollTo)==null||n.call(t,{[s.options.horizontal?"left":"top"]:i,behavior:e})};class j{constructor(l){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(t=>{t.forEach(n=>{const i=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var t;(t=s())==null||t.disconnect(),e=null},observe:t=>{var n;return(n=s())==null?void 0:n.observe(t,{box:"border-box"})},unobserve:t=>{var n;return(n=s())==null?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,t])=>{typeof t>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_,rangeExtractor:A,onChange:()=>{},measureElement:F,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var s,t;(t=(s=this.options).onChange)==null||t.call(s,this,e)},this.maybeNotify=p(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(t=>{this.observer.observe(t)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,t=>{this.scrollRect=t,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(t,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<t?"forward":"backward":null,this.scrollOffset=t,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,s)=>{const t=new Map,n=new Map;for(let i=s-1;i>=0;i--){const o=e[i];if(t.has(o.lane))continue;const a=n.get(o.lane);if(a==null||o.end>a.end?n.set(o.lane,o):o.end<a.end&&t.set(o.lane,!0),t.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((i,o)=>i.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,t,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:t,getItemKey:n,enabled:i}),{key:!1}),this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:t,getItemKey:n,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let h=a;h<e;h++){const u=n(h),d=this.options.lanes===1?c[h-1]:this.getFurthestMeasurement(c,h),v=d?d.end+this.options.gap:s+t,m=o.get(u),f=typeof m=="number"?m:this.options.estimateSize(h),S=v+f,b=d?d.lane:h%this.options.lanes;c[h]={index:h,start:v,size:f,end:S,key:u,lane:b}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,s,t,n)=>this.range=e.length>0&&s>0?L({measurements:e,outerSize:s,scrollOffset:t,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=p(()=>{let e=null,s=null;const t=this.calculateRange();return t&&(e=t.startIndex,s=t.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,t,n,i)=>n===null||i===null?[]:e({startIndex:n,endIndex:i,overscan:s,count:t}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const s=this.options.indexAttribute,t=e.getAttribute(s);return t?parseInt(t,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{const t=this.indexFromElement(e),n=this.measurementsCache[t];if(!n)return;const i=n.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(t,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{const t=this.measurementsCache[e];if(!t)return;const n=this.itemSizeCache.get(t.key)??t.size,i=s-n;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(t,i,this):t.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(t.index),this.itemSizeCache=new Map(this.itemSizeCache.set(t.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,t)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=p(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,s)=>{const t=[];for(let n=0,i=e.length;n<i;n++){const o=e[n],a=s[o];t.push(a)}return t},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const s=this.getMeasurements();if(s.length!==0)return M(s[z(0,s.length-1,t=>M(s[t]).start,e)])},this.getOffsetForAlignment=(e,s,t=0)=>{const n=this.getSize(),i=this.getScrollOffset();s==="auto"&&(s=e>=i+n?"end":"start"),s==="center"?e+=(t-n)/2:s==="end"&&(e-=n);const o=this.getTotalSize()-n;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const t=this.measurementsCache[e];if(!t)return;const n=this.getSize(),i=this.getScrollOffset();if(s==="auto")if(t.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(t.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];const o=s==="end"?t.end+this.options.scrollPaddingEnd:t.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,t.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:t})},this.scrollToIndex=(e,{align:s="auto",behavior:t}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(e,s);if(!n)return;const[i,o]=n;this._scrollToOffset(i,{adjustments:void 0,behavior:t}),t!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[c]=M(this.getOffsetForIndex(e,o)),h=this.getScrollOffset();T(c,h)||this.scrollToIndex(e,{align:o,behavior:t})}else this.scrollToIndex(e,{align:o,behavior:t})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var e;const s=this.getMeasurements();let t;if(s.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=((e=s[s.length-1])==null?void 0:e.end)??0;else{const n=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&n.some(o=>o===null);){const o=s[i];n[o.lane]===null&&(n[o.lane]=o.end),i--}t=Math.max(...n.filter(o=>o!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:t})=>{this.options.scrollToFn(e,{behavior:t,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(l)}}const z=(r,l,e,s)=>{for(;r<=l;){const t=(r+l)/2|0,n=e(t);if(n<s)r=t+1;else if(n>s)l=t-1;else return t}return r>0?r-1:0};function L({measurements:r,outerSize:l,scrollOffset:e,lanes:s}){const t=r.length-1,n=a=>r[a].start;if(r.length<=s)return{startIndex:0,endIndex:t};let i=z(0,t,n,e),o=i;if(s===1)for(;o<t&&r[o].end<e+l;)o++;else if(s>1){const a=Array(s).fill(0);for(;o<t&&a.some(h=>h<e+l);){const h=r[o];a[h.lane]=h.end,o++}const c=Array(s).fill(e+l);for(;i>=0&&c.some(h=>h>=e);){const h=r[i];c[h.lane]=h.start,i--}i=Math.max(0,i-i%s),o=Math.min(t,o+(s-1-o%s))}return{startIndex:i,endIndex:o}}const E=typeof document<"u"?x.useLayoutEffect:x.useEffect;function P(r){const l=x.useReducer(()=>({}),{})[1],e={...r,onChange:(t,n)=>{var i;n?C.flushSync(l):l(),(i=r.onChange)==null||i.call(r,t,n)}},[s]=x.useState(()=>new j(e));return s.setOptions(e),E(()=>s._didMount(),[]),E(()=>s._willUpdate()),s}function N(r){return P({observeElementRect:D,observeElementOffset:k,scrollToFn:W,...r})}export{N as u};
@@ -1 +1 @@
1
- var N=Object.defineProperty;var I=(u,r,t)=>r in u?N(u,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[r]=t;var a=(u,r,t)=>I(u,typeof r!="symbol"?r+"":r,t);import{$ as F,q as x,b as f,v as l,f as R,A as w,C as v,i as p,g as V,a0 as D}from"./index-DyVIXHW8.js";const s={Done:"done",Run:"run",Running:"running",RunningTask:"running-task",ApplyVirtual:"apply-virtual",ApplyBackfill:"apply-backfill",ApplyChangesAndBackfill:"apply-changes-and-backfill",ApplyMetadata:"apply-metadata",Applying:"applying",Cancelling:"cancelling"};class O extends F{constructor(t){super(t!=null&&t.isModel?t.initial:{...t,value:(t==null?void 0:t.value)??s.Run});a(this,"_value");this._value=(t==null?void 0:t.value)??this.initial.value}get value(){return this._value}get isRun(){return this.value===s.Run}get isDone(){return this.value===s.Done}get isApplyVirtual(){return this.value===s.ApplyVirtual}get isApplyBackfill(){return this.value===s.ApplyBackfill}get isApplyChangesAndBackfill(){return this.value===s.ApplyChangesAndBackfill}get isApplyMetadata(){return this.value===s.ApplyMetadata}get isApply(){return this.isApplyVirtual||this.isApplyBackfill||this.isApplyChangesAndBackfill||this.isApplyMetadata}get isCancelling(){return this.value===s.Cancelling}get isApplying(){return this.value===s.Applying}get isRunning(){return x([s.Running,s.RunningTask],this.value)}get isRunningTask(){return this.value===s.RunningTask}get isProcessing(){return this.isRunning||this.isApplying||this.isCancelling}get isIdle(){return f(this.isProcessing)}displayStatus(t){return this.isCancelling?"Cancelling Plan...":this.isApplying?"Applying Plan...":this.isRunning&&l(t.hasChanges)?"Getting Changes...":this.isRunning&&l(t.hasBackfills)?"Getting Backfills...":this.isRunning?"Checking Plan...":this.isRunningTask?"Running Task...":"Plan"}static getActionDisplayName(t,e=[],i="Plan"){if(!e.includes(t.value))return i;let n;switch(t.value){case s.Done:n="Done";break;case s.Running:n="Running...";break;case s.RunningTask:n="Running Task...";break;case s.Applying:n="Applying...";break;case s.Cancelling:n="Cancelling...";break;case s.Run:n="Plan";break;case s.ApplyChangesAndBackfill:n="Apply Changes And Backfill";break;case s.ApplyVirtual:n="Apply Virtual Update";break;case s.ApplyBackfill:n="Apply And Backfill";break;case s.ApplyMetadata:n="Apply Metadata";break;default:n=i;break}return n}static getPlanAction({planOverview:t,planApply:e,planCancel:i}){const n=t.isRunning,c=e.isRunning,h=i.isRunning,d=e.isFinished&&t.isFinished||i.isFinished;return i.isEmpty&&e.isEmpty&&t.isEmpty?s.Run:h?s.Cancelling:c?s.Applying:n?s.Running:d?s.Done:t.isVirtualUpdate?s.ApplyVirtual:t.isMetadataUpdate?s.ApplyMetadata:t.isBackfillUpdate?s.ApplyBackfill:t.isChangesAndBackfillUpdate?s.ApplyChangesAndBackfill:s.Done}}class U extends F{constructor(t){super(t==null?void 0:t.initial);a(this,"_current");a(this,"_isFetching",!1);this._current=t==null?void 0:t._current,this._isFetching=(t==null?void 0:t._isFetching)??!1}get current(){return this._current}get environment(){var t;return(t=this.current)==null?void 0:t.environment}get meta(){var t;return(t=this.current)==null?void 0:t.meta}get plan_options(){var t;return(t=this.current)==null?void 0:t.plan_options}get start(){var t;return(t=this.current)==null?void 0:t.start}get end(){var t;return(t=this.current)==null?void 0:t.end}get duration(){var t;return((t=this==null?void 0:this.meta)==null?void 0:t.duration)??-1}get isFinished(){var t,e,i,n;return R((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.done)&&((n=(i=this.current)==null?void 0:i.meta)==null?void 0:n.status)!==w.init&&f(this.isFetching)}get isRunning(){var t,e,i,n;return v((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.done)&&((n=(i=this.current)==null?void 0:i.meta)==null?void 0:n.status)===w.init||this.isFetching}get isSuccessful(){var t,e;return this.isFinished&&((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.status)===w.success}get isFailed(){var t,e,i;return this.isFinished&&(l((t=this.current)==null?void 0:t.meta)||((i=(e=this.current)==null?void 0:e.meta)==null?void 0:i.status)===w.fail)}get isEmpty(){return l(this.current)}get isFetching(){return this._isFetching}set isFetching(t){this._isFetching=t}reset(){this._current=void 0}}class o extends F{constructor(t){var e,i;super(t);a(this,"name");a(this,"view_name");a(this,"node_type");a(this,"change_category");a(this,"diff");a(this,"indirect");a(this,"batches");a(this,"direct");a(this,"completed");a(this,"end");a(this,"interval");a(this,"start");a(this,"total");this.name=encodeURI(this.initial.name),this.view_name=encodeURI(this.initial.view_name),this.node_type=this.initial.node_type,this.change_category=this.initial.change_category,this.diff=this.initial.diff,this.batches=this.initial.batches,this.interval=this.initial.interval,this.start=this.initial.start,this.total=this.initial.total,this.completed=this.initial.completed,this.end=this.initial.end,this.indirect=(e=this.initial.indirect)==null?void 0:e.map(n=>new o(n)),this.direct=(i=this.initial.direct)==null?void 0:i.map(n=>new o(n))}get nodeType(){return this.node_type}get viewName(){return this.view_name}get displayName(){return decodeURI(this.name)}get displayViewName(){return decodeURI(this.view_name)}get changeCategory(){return this.change_category}}class k extends U{constructor(t){super(t);a(this,"_last");a(this,"_planOverview");a(this,"_lastPlanOverview");p(t)&&t.isModel&&(this._current=t._current,this._last=t._last,this._planOverview=t._planOverview,this._lastPlanOverview=t._lastPlanOverview)}get current(){return this._current??this._last}get environment(){var t,e;return((t=this._last)==null?void 0:t.environment)??((e=this._current)==null?void 0:e.environment)}get meta(){var t,e;return((t=this._last)==null?void 0:t.meta)??((e=this._current)==null?void 0:e.meta)}get plan_options(){var t,e;return((t=this._last)==null?void 0:t.plan_options)??((e=this._current)==null?void 0:e.plan_options)}get start(){var t,e;return((t=this._last)==null?void 0:t.start)??((e=this._current)==null?void 0:e.start)}get end(){var t,e;return((t=this._last)==null?void 0:t.end)??((e=this._current)==null?void 0:e.end)}get overview(){return this._lastPlanOverview??this._planOverview}get backfills(){var t;return((t=this.overview)==null?void 0:t.backfills)??[]}get added(){var t;return((t=this.overview)==null?void 0:t.added)??[]}get removed(){var t;return((t=this.overview)==null?void 0:t.removed)??[]}get direct(){var t;return((t=this.overview)==null?void 0:t.direct)??[]}get indirect(){var t;return((t=this.overview)==null?void 0:t.indirect)??[]}get metadata(){var t;return((t=this.overview)==null?void 0:t.metadata)??[]}get tasks(){var e,i,n,c;const t=((i=(e=this._last)==null?void 0:e.backfill)==null?void 0:i.tasks)??((c=(n=this._current)==null?void 0:n.backfill)==null?void 0:c.tasks)??{};return Object.entries(t??{}).reduce((h,[d,_])=>(h[encodeURI(d)]=new o(_),h),{})}get queue(){var t,e;return((e=(t=this.stageBackfill)==null?void 0:t.queue)==null?void 0:e.map(i=>this.tasks[encodeURI(i)]).filter(Boolean))??[]}get stageValidation(){var t;return(t=this.overview)==null?void 0:t.stageValidation}get stageChanges(){var t;return(t=this.overview)==null?void 0:t.stageChanges}get stageBackfills(){var t;return(t=this.overview)==null?void 0:t.stageBackfills}get stageCreation(){var t,e;return((t=this._last)==null?void 0:t.creation)??((e=this._current)==null?void 0:e.creation)}get stageRestate(){var t,e;return((t=this._last)==null?void 0:t.restate)??((e=this._current)==null?void 0:e.restate)}get stageBackfill(){var t,e;return((t=this._last)==null?void 0:t.backfill)??((e=this._current)==null?void 0:e.backfill)}get stagePromote(){var t,e;return((t=this._last)==null?void 0:t.promote)??((e=this._current)==null?void 0:e.promote)}get shouldShowEvaluation(){return this.isFailed||p(this.stageCreation)||p(this.stageBackfill)||p(this.stagePromote)}get evaluationStart(){var t,e,i,n,c,h;return((e=(t=this.stageCreation)==null?void 0:t.meta)==null?void 0:e.start)??((n=(i=this.stageBackfill)==null?void 0:i.meta)==null?void 0:n.start)??((h=(c=this.stagePromote)==null?void 0:c.meta)==null?void 0:h.start)}get evaluationEnd(){var t,e,i,n,c,h;return((e=(t=this.stagePromote)==null?void 0:t.meta)==null?void 0:e.end)??((n=(i=this.stageBackfill)==null?void 0:i.meta)==null?void 0:n.end)??((h=(c=this.stageCreation)==null?void 0:c.meta)==null?void 0:h.end)}update(t,e){var m,y,A,g,M,T,E;const{creation:i,restate:n,backfill:c,promote:h,meta:d,environment:_}=t,B=l(d)||l(_)?void 0:t;if(l(B)){this._current=void 0;return}l(this._current)&&(this._current=t),this._current.start=t.start,this._current.end=t.end,this._current.meta=t.meta,this._current.environment=t.environment,this._current.plan_options=t.plan_options,p(i)&&(l(this._current.creation)||v((m=this._current.creation.meta)==null?void 0:m.done))&&(this._current.creation=i),p(n)&&(l(this._current.restate)||v((y=this._current.restate.meta)==null?void 0:y.done))&&(this._current.restate=n),p(c)&&(l(this._current.backfill)||v((A=this._current.backfill.meta)==null?void 0:A.done))&&(this._current.backfill=c),p(h)&&(l(this._current.promote)||v((g=this._current.promote.meta)==null?void 0:g.done))&&(this._current.promote=h),R((T=(M=this.current)==null?void 0:M.meta)==null?void 0:T.done)&&l(this._last)?(this._last=this._current,this._lastPlanOverview=this._planOverview,this._current=void 0,this._planOverview=void 0):this._planOverview=p(d)&&p(_)?e==null?void 0:e.clone():void 0,this.isFetching=f((E=t.meta)==null?void 0:E.done)}reset(){this._current=void 0,this._planOverview=void 0}clear(){this._current=void 0,this._last=void 0,this._planOverview=void 0,this._lastPlanOverview=void 0}clone(){var e;const t=new k;return p(this.current)&&t.update(structuredClone(this.current),(e=this.overview)==null?void 0:e.clone()),t}}class b extends U{get cancel(){var r;return(r=this._current)==null?void 0:r.cancel}get isCancelling(){var r,t,e,i;return v((t=(r=this.current)==null?void 0:r.meta)==null?void 0:t.done)&&((i=(e=this.current)==null?void 0:e.meta)==null?void 0:i.status)===w.init||this.isFetching}update(r){var t;this._current=r,this.isFetching=f((t=r.meta)==null?void 0:t.done)}}class C extends U{constructor(t){super(t);a(this,"_added",[]);a(this,"_removed",[]);a(this,"_direct",[]);a(this,"_indirect",[]);a(this,"_metadata",[]);a(this,"_backfills",[]);p(t)&&t.isModel&&(this._added=t.added,this._removed=t.removed,this._direct=t.direct,this._indirect=t.indirect,this._metadata=t.metadata,this._backfills=t.backfills)}get stageValidation(){var t;return(t=this._current)==null?void 0:t.validation}get stageChanges(){var t;return(t=this._current)==null?void 0:t.changes}get stageBackfills(){var t;return(t=this._current)==null?void 0:t.backfills}get validation(){var t;return(t=this._current)==null?void 0:t.validation}get hasChanges(){var d;if(l((d=this._current)==null?void 0:d.changes))return;const{added:t,removed:e,modified:i}=this._current.changes??{};if([t,e,i].every(l))return;const{direct:n,indirect:c,metadata:h}=i??{};return[t,e,n,c,h].some(V)}get changes(){var t;return(t=this._current)==null?void 0:t.changes}get hasBackfills(){var t,e,i;return l((e=(t=this._current)==null?void 0:t.backfills)==null?void 0:e.models)?void 0:V((i=this._current.backfills)==null?void 0:i.models)}get hasUpdates(){return R(this.hasChanges)||R(this.hasBackfills)}get backfills(){return this._backfills}get added(){return this._added}get removed(){return this._removed}get direct(){return this._direct}get indirect(){return this._indirect}get metadata(){return this._metadata}get isVirtualUpdate(){return p(this.hasChanges)&&l(this.hasBackfills)||!!this.hasChanges&&this.skipBackfill}get isMetadataUpdate(){var t;return!!((t=this.metadata)!=null&&t.length)&&l(this.hasBackfills)}get isBackfillUpdate(){return v(this.hasChanges)&&!!this.hasBackfills&&f(this.skipBackfill)}get isChangesAndBackfillUpdate(){return!!this.hasChanges&&!!this.hasBackfills&&f(this.skipBackfill)}get isLatest(){return this.isFinished&&l(this.hasChanges)&&(l(this.hasBackfills)||this.skipBackfill)}get skipTests(){var t,e;return((e=(t=this._current)==null?void 0:t.plan_options)==null?void 0:e.skip_tests)??!1}get skipBackfill(){var t,e;return((e=(t=this._current)==null?void 0:t.plan_options)==null?void 0:e.skip_backfill)??!1}update(t){var c,h,d,_,P,B,m,y,A;this._current=t,this.isFetching=f((c=t.meta)==null?void 0:c.done);const e=((h=this._current)==null?void 0:h.changes)??{},i=(e==null?void 0:e.modified)??{},n=((d=this._current)==null?void 0:d.backfills)??{};this._added=((_=e.added)==null?void 0:_.map(g=>new o(g)))??[],this._removed=((P=e.removed)==null?void 0:P.map(g=>new o(g)))??[],this._direct=((B=i.direct)==null?void 0:B.map(g=>new o(g)))??[],this._indirect=((m=i.indirect)==null?void 0:m.map(g=>new o(g)))??[],this._metadata=((y=i.metadata)==null?void 0:y.map(g=>new o(g)))??[],this._backfills=((A=n.models)==null?void 0:A.map(g=>new o(g)))??[]}clone(){const t=new C;return p(this.current)&&t.update(structuredClone(this.current)),t}}const G=D((u,r)=>({planAction:new O,planOverview:new C,planApply:new k,planCancel:new b,setPlanAction:t=>{u(()=>({planAction:new O(t)}))},setPlanApply:t=>{u(()=>({planApply:new k(t)}))},setPlanOverview:t=>{u(()=>({planOverview:new C(t)}))},setPlanCancel:t=>{u(()=>({planCancel:new b(t)}))},resetPlanTrackers:()=>{const t=r();t.planApply.reset(),t.planCancel.reset(),t.planOverview.reset(),u(()=>({planApply:new k(t.planApply),planCancel:new b(t.planCancel),planOverview:new C(t.planOverview)}))},resetPlanCancel:()=>{const t=r();t.planCancel.reset(),u(()=>({planCancel:new b(t.planCancel)}))},clearPlanApply:()=>{const t=r();t.planApply.clear(),u(()=>({planApply:new k(t.planApply)}))}}));export{s as E,C as M,O as a,G as u};
1
+ var N=Object.defineProperty;var I=(u,r,t)=>r in u?N(u,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[r]=t;var a=(u,r,t)=>I(u,typeof r!="symbol"?r+"":r,t);import{$ as F,q as x,b as f,v as l,f as R,A as w,C as v,i as p,g as V,a0 as D}from"./index-Co-_3xPI.js";const s={Done:"done",Run:"run",Running:"running",RunningTask:"running-task",ApplyVirtual:"apply-virtual",ApplyBackfill:"apply-backfill",ApplyChangesAndBackfill:"apply-changes-and-backfill",ApplyMetadata:"apply-metadata",Applying:"applying",Cancelling:"cancelling"};class O extends F{constructor(t){super(t!=null&&t.isModel?t.initial:{...t,value:(t==null?void 0:t.value)??s.Run});a(this,"_value");this._value=(t==null?void 0:t.value)??this.initial.value}get value(){return this._value}get isRun(){return this.value===s.Run}get isDone(){return this.value===s.Done}get isApplyVirtual(){return this.value===s.ApplyVirtual}get isApplyBackfill(){return this.value===s.ApplyBackfill}get isApplyChangesAndBackfill(){return this.value===s.ApplyChangesAndBackfill}get isApplyMetadata(){return this.value===s.ApplyMetadata}get isApply(){return this.isApplyVirtual||this.isApplyBackfill||this.isApplyChangesAndBackfill||this.isApplyMetadata}get isCancelling(){return this.value===s.Cancelling}get isApplying(){return this.value===s.Applying}get isRunning(){return x([s.Running,s.RunningTask],this.value)}get isRunningTask(){return this.value===s.RunningTask}get isProcessing(){return this.isRunning||this.isApplying||this.isCancelling}get isIdle(){return f(this.isProcessing)}displayStatus(t){return this.isCancelling?"Cancelling Plan...":this.isApplying?"Applying Plan...":this.isRunning&&l(t.hasChanges)?"Getting Changes...":this.isRunning&&l(t.hasBackfills)?"Getting Backfills...":this.isRunning?"Checking Plan...":this.isRunningTask?"Running Task...":"Plan"}static getActionDisplayName(t,e=[],i="Plan"){if(!e.includes(t.value))return i;let n;switch(t.value){case s.Done:n="Done";break;case s.Running:n="Running...";break;case s.RunningTask:n="Running Task...";break;case s.Applying:n="Applying...";break;case s.Cancelling:n="Cancelling...";break;case s.Run:n="Plan";break;case s.ApplyChangesAndBackfill:n="Apply Changes And Backfill";break;case s.ApplyVirtual:n="Apply Virtual Update";break;case s.ApplyBackfill:n="Apply And Backfill";break;case s.ApplyMetadata:n="Apply Metadata";break;default:n=i;break}return n}static getPlanAction({planOverview:t,planApply:e,planCancel:i}){const n=t.isRunning,c=e.isRunning,h=i.isRunning,d=e.isFinished&&t.isFinished||i.isFinished;return i.isEmpty&&e.isEmpty&&t.isEmpty?s.Run:h?s.Cancelling:c?s.Applying:n?s.Running:d?s.Done:t.isVirtualUpdate?s.ApplyVirtual:t.isMetadataUpdate?s.ApplyMetadata:t.isBackfillUpdate?s.ApplyBackfill:t.isChangesAndBackfillUpdate?s.ApplyChangesAndBackfill:s.Done}}class U extends F{constructor(t){super(t==null?void 0:t.initial);a(this,"_current");a(this,"_isFetching",!1);this._current=t==null?void 0:t._current,this._isFetching=(t==null?void 0:t._isFetching)??!1}get current(){return this._current}get environment(){var t;return(t=this.current)==null?void 0:t.environment}get meta(){var t;return(t=this.current)==null?void 0:t.meta}get plan_options(){var t;return(t=this.current)==null?void 0:t.plan_options}get start(){var t;return(t=this.current)==null?void 0:t.start}get end(){var t;return(t=this.current)==null?void 0:t.end}get duration(){var t;return((t=this==null?void 0:this.meta)==null?void 0:t.duration)??-1}get isFinished(){var t,e,i,n;return R((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.done)&&((n=(i=this.current)==null?void 0:i.meta)==null?void 0:n.status)!==w.init&&f(this.isFetching)}get isRunning(){var t,e,i,n;return v((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.done)&&((n=(i=this.current)==null?void 0:i.meta)==null?void 0:n.status)===w.init||this.isFetching}get isSuccessful(){var t,e;return this.isFinished&&((e=(t=this.current)==null?void 0:t.meta)==null?void 0:e.status)===w.success}get isFailed(){var t,e,i;return this.isFinished&&(l((t=this.current)==null?void 0:t.meta)||((i=(e=this.current)==null?void 0:e.meta)==null?void 0:i.status)===w.fail)}get isEmpty(){return l(this.current)}get isFetching(){return this._isFetching}set isFetching(t){this._isFetching=t}reset(){this._current=void 0}}class o extends F{constructor(t){var e,i;super(t);a(this,"name");a(this,"view_name");a(this,"node_type");a(this,"change_category");a(this,"diff");a(this,"indirect");a(this,"batches");a(this,"direct");a(this,"completed");a(this,"end");a(this,"interval");a(this,"start");a(this,"total");this.name=encodeURI(this.initial.name),this.view_name=encodeURI(this.initial.view_name),this.node_type=this.initial.node_type,this.change_category=this.initial.change_category,this.diff=this.initial.diff,this.batches=this.initial.batches,this.interval=this.initial.interval,this.start=this.initial.start,this.total=this.initial.total,this.completed=this.initial.completed,this.end=this.initial.end,this.indirect=(e=this.initial.indirect)==null?void 0:e.map(n=>new o(n)),this.direct=(i=this.initial.direct)==null?void 0:i.map(n=>new o(n))}get nodeType(){return this.node_type}get viewName(){return this.view_name}get displayName(){return decodeURI(this.name)}get displayViewName(){return decodeURI(this.view_name)}get changeCategory(){return this.change_category}}class k extends U{constructor(t){super(t);a(this,"_last");a(this,"_planOverview");a(this,"_lastPlanOverview");p(t)&&t.isModel&&(this._current=t._current,this._last=t._last,this._planOverview=t._planOverview,this._lastPlanOverview=t._lastPlanOverview)}get current(){return this._current??this._last}get environment(){var t,e;return((t=this._last)==null?void 0:t.environment)??((e=this._current)==null?void 0:e.environment)}get meta(){var t,e;return((t=this._last)==null?void 0:t.meta)??((e=this._current)==null?void 0:e.meta)}get plan_options(){var t,e;return((t=this._last)==null?void 0:t.plan_options)??((e=this._current)==null?void 0:e.plan_options)}get start(){var t,e;return((t=this._last)==null?void 0:t.start)??((e=this._current)==null?void 0:e.start)}get end(){var t,e;return((t=this._last)==null?void 0:t.end)??((e=this._current)==null?void 0:e.end)}get overview(){return this._lastPlanOverview??this._planOverview}get backfills(){var t;return((t=this.overview)==null?void 0:t.backfills)??[]}get added(){var t;return((t=this.overview)==null?void 0:t.added)??[]}get removed(){var t;return((t=this.overview)==null?void 0:t.removed)??[]}get direct(){var t;return((t=this.overview)==null?void 0:t.direct)??[]}get indirect(){var t;return((t=this.overview)==null?void 0:t.indirect)??[]}get metadata(){var t;return((t=this.overview)==null?void 0:t.metadata)??[]}get tasks(){var e,i,n,c;const t=((i=(e=this._last)==null?void 0:e.backfill)==null?void 0:i.tasks)??((c=(n=this._current)==null?void 0:n.backfill)==null?void 0:c.tasks)??{};return Object.entries(t??{}).reduce((h,[d,_])=>(h[encodeURI(d)]=new o(_),h),{})}get queue(){var t,e;return((e=(t=this.stageBackfill)==null?void 0:t.queue)==null?void 0:e.map(i=>this.tasks[encodeURI(i)]).filter(Boolean))??[]}get stageValidation(){var t;return(t=this.overview)==null?void 0:t.stageValidation}get stageChanges(){var t;return(t=this.overview)==null?void 0:t.stageChanges}get stageBackfills(){var t;return(t=this.overview)==null?void 0:t.stageBackfills}get stageCreation(){var t,e;return((t=this._last)==null?void 0:t.creation)??((e=this._current)==null?void 0:e.creation)}get stageRestate(){var t,e;return((t=this._last)==null?void 0:t.restate)??((e=this._current)==null?void 0:e.restate)}get stageBackfill(){var t,e;return((t=this._last)==null?void 0:t.backfill)??((e=this._current)==null?void 0:e.backfill)}get stagePromote(){var t,e;return((t=this._last)==null?void 0:t.promote)??((e=this._current)==null?void 0:e.promote)}get shouldShowEvaluation(){return this.isFailed||p(this.stageCreation)||p(this.stageBackfill)||p(this.stagePromote)}get evaluationStart(){var t,e,i,n,c,h;return((e=(t=this.stageCreation)==null?void 0:t.meta)==null?void 0:e.start)??((n=(i=this.stageBackfill)==null?void 0:i.meta)==null?void 0:n.start)??((h=(c=this.stagePromote)==null?void 0:c.meta)==null?void 0:h.start)}get evaluationEnd(){var t,e,i,n,c,h;return((e=(t=this.stagePromote)==null?void 0:t.meta)==null?void 0:e.end)??((n=(i=this.stageBackfill)==null?void 0:i.meta)==null?void 0:n.end)??((h=(c=this.stageCreation)==null?void 0:c.meta)==null?void 0:h.end)}update(t,e){var m,y,A,g,M,T,E;const{creation:i,restate:n,backfill:c,promote:h,meta:d,environment:_}=t,B=l(d)||l(_)?void 0:t;if(l(B)){this._current=void 0;return}l(this._current)&&(this._current=t),this._current.start=t.start,this._current.end=t.end,this._current.meta=t.meta,this._current.environment=t.environment,this._current.plan_options=t.plan_options,p(i)&&(l(this._current.creation)||v((m=this._current.creation.meta)==null?void 0:m.done))&&(this._current.creation=i),p(n)&&(l(this._current.restate)||v((y=this._current.restate.meta)==null?void 0:y.done))&&(this._current.restate=n),p(c)&&(l(this._current.backfill)||v((A=this._current.backfill.meta)==null?void 0:A.done))&&(this._current.backfill=c),p(h)&&(l(this._current.promote)||v((g=this._current.promote.meta)==null?void 0:g.done))&&(this._current.promote=h),R((T=(M=this.current)==null?void 0:M.meta)==null?void 0:T.done)&&l(this._last)?(this._last=this._current,this._lastPlanOverview=this._planOverview,this._current=void 0,this._planOverview=void 0):this._planOverview=p(d)&&p(_)?e==null?void 0:e.clone():void 0,this.isFetching=f((E=t.meta)==null?void 0:E.done)}reset(){this._current=void 0,this._planOverview=void 0}clear(){this._current=void 0,this._last=void 0,this._planOverview=void 0,this._lastPlanOverview=void 0}clone(){var e;const t=new k;return p(this.current)&&t.update(structuredClone(this.current),(e=this.overview)==null?void 0:e.clone()),t}}class b extends U{get cancel(){var r;return(r=this._current)==null?void 0:r.cancel}get isCancelling(){var r,t,e,i;return v((t=(r=this.current)==null?void 0:r.meta)==null?void 0:t.done)&&((i=(e=this.current)==null?void 0:e.meta)==null?void 0:i.status)===w.init||this.isFetching}update(r){var t;this._current=r,this.isFetching=f((t=r.meta)==null?void 0:t.done)}}class C extends U{constructor(t){super(t);a(this,"_added",[]);a(this,"_removed",[]);a(this,"_direct",[]);a(this,"_indirect",[]);a(this,"_metadata",[]);a(this,"_backfills",[]);p(t)&&t.isModel&&(this._added=t.added,this._removed=t.removed,this._direct=t.direct,this._indirect=t.indirect,this._metadata=t.metadata,this._backfills=t.backfills)}get stageValidation(){var t;return(t=this._current)==null?void 0:t.validation}get stageChanges(){var t;return(t=this._current)==null?void 0:t.changes}get stageBackfills(){var t;return(t=this._current)==null?void 0:t.backfills}get validation(){var t;return(t=this._current)==null?void 0:t.validation}get hasChanges(){var d;if(l((d=this._current)==null?void 0:d.changes))return;const{added:t,removed:e,modified:i}=this._current.changes??{};if([t,e,i].every(l))return;const{direct:n,indirect:c,metadata:h}=i??{};return[t,e,n,c,h].some(V)}get changes(){var t;return(t=this._current)==null?void 0:t.changes}get hasBackfills(){var t,e,i;return l((e=(t=this._current)==null?void 0:t.backfills)==null?void 0:e.models)?void 0:V((i=this._current.backfills)==null?void 0:i.models)}get hasUpdates(){return R(this.hasChanges)||R(this.hasBackfills)}get backfills(){return this._backfills}get added(){return this._added}get removed(){return this._removed}get direct(){return this._direct}get indirect(){return this._indirect}get metadata(){return this._metadata}get isVirtualUpdate(){return p(this.hasChanges)&&l(this.hasBackfills)||!!this.hasChanges&&this.skipBackfill}get isMetadataUpdate(){var t;return!!((t=this.metadata)!=null&&t.length)&&l(this.hasBackfills)}get isBackfillUpdate(){return v(this.hasChanges)&&!!this.hasBackfills&&f(this.skipBackfill)}get isChangesAndBackfillUpdate(){return!!this.hasChanges&&!!this.hasBackfills&&f(this.skipBackfill)}get isLatest(){return this.isFinished&&l(this.hasChanges)&&(l(this.hasBackfills)||this.skipBackfill)}get skipTests(){var t,e;return((e=(t=this._current)==null?void 0:t.plan_options)==null?void 0:e.skip_tests)??!1}get skipBackfill(){var t,e;return((e=(t=this._current)==null?void 0:t.plan_options)==null?void 0:e.skip_backfill)??!1}update(t){var c,h,d,_,P,B,m,y,A;this._current=t,this.isFetching=f((c=t.meta)==null?void 0:c.done);const e=((h=this._current)==null?void 0:h.changes)??{},i=(e==null?void 0:e.modified)??{},n=((d=this._current)==null?void 0:d.backfills)??{};this._added=((_=e.added)==null?void 0:_.map(g=>new o(g)))??[],this._removed=((P=e.removed)==null?void 0:P.map(g=>new o(g)))??[],this._direct=((B=i.direct)==null?void 0:B.map(g=>new o(g)))??[],this._indirect=((m=i.indirect)==null?void 0:m.map(g=>new o(g)))??[],this._metadata=((y=i.metadata)==null?void 0:y.map(g=>new o(g)))??[],this._backfills=((A=n.models)==null?void 0:A.map(g=>new o(g)))??[]}clone(){const t=new C;return p(this.current)&&t.update(structuredClone(this.current)),t}}const G=D((u,r)=>({planAction:new O,planOverview:new C,planApply:new k,planCancel:new b,setPlanAction:t=>{u(()=>({planAction:new O(t)}))},setPlanApply:t=>{u(()=>({planApply:new k(t)}))},setPlanOverview:t=>{u(()=>({planOverview:new C(t)}))},setPlanCancel:t=>{u(()=>({planCancel:new b(t)}))},resetPlanTrackers:()=>{const t=r();t.planApply.reset(),t.planCancel.reset(),t.planOverview.reset(),u(()=>({planApply:new k(t.planApply),planCancel:new b(t.planCancel),planOverview:new C(t.planOverview)}))},resetPlanCancel:()=>{const t=r();t.planCancel.reset(),u(()=>({planCancel:new b(t.planCancel)}))},clearPlanApply:()=>{const t=r();t.planApply.clear(),u(()=>({planApply:new k(t.planApply)}))}}));export{s as E,C as M,O as a,G as u};
@@ -1,4 +1,4 @@
1
- import{R as S,r as u,aj as _n,at as ot}from"./index-DyVIXHW8.js";import{u as Wn,i as Me,e as Gn,o as Vt,d as qe,m as Ye,g as Un,j as Vn,r as Ie,s as Kn,f as qn,a as Yn,c as zn}from"./floating-ui.react-dom-tGq145Jn.js";const Kt=typeof document<"u"?S.useLayoutEffect:()=>{};function Xn(e){const t=u.useRef(null);return Kt(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},me=e=>e&&"window"in e&&e.window===e?e:pe(e).defaultView||window;function Jn(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Qn(e){return Jn(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Zn=!1;function ht(){return Zn}function qt(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Qn(n)?n=n.host:n=n.parentNode}return!1}const lt=(e=document)=>{var t;if(!ht())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Yt(e){return ht()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function er(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function tr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zt(e){let t=null;return()=>(t==null&&(t=e()),t)}const nr=zt(function(){return tr(/^Mac/i)}),rr=zt(function(){return er(/Android/i)});function Xt(){let e=u.useRef(new Map),t=u.useCallback((o,a,i,l)=>{let s=l!=null&&l.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),n=u.useCallback((o,a,i,l)=>{var s;let c=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,c,l),e.current.delete(i)},[]),r=u.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function or(e){return e.mozInputSource===0&&e.isTrusted?!0:rr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Jt(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function lr(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Qt(e){let t=u.useRef({isFocused:!1,observer:null});Kt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Xn(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=Jt(i);n(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ar=!1,Re=null,at=new Set,Te=new Map,Ee=!1,ut=!1;const ur={Tab:!0,Escape:!0};function gt(e,t){for(let n of at)n(e,t)}function sr(e){return!(e.metaKey||!nr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ne(e){Ee=!0,sr(e)&&(Re="keyboard",gt("keyboard",e))}function ye(e){Re="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ee=!0,gt("pointer",e))}function Zt(e){or(e)&&(Ee=!0,Re="virtual")}function en(e){e.target===window||e.target===document||ar||!e.isTrusted||(!Ee&&!ut&&(Re="virtual",gt("virtual",e)),Ee=!1,ut=!1)}function tn(){Ee=!1,ut=!0}function st(e){if(typeof window>"u"||Te.get(me(e)))return;const t=me(e),n=pe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ee=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ne,!0),n.addEventListener("keyup",Ne,!0),n.addEventListener("click",Zt,!0),t.addEventListener("focus",en,!0),t.addEventListener("blur",tn,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",ye,!0),n.addEventListener("pointermove",ye,!0),n.addEventListener("pointerup",ye,!0)),t.addEventListener("beforeunload",()=>{nn(e)},{once:!0}),Te.set(t,{focus:r})}const nn=(e,t)=>{const n=me(e),r=pe(e);t&&r.removeEventListener("DOMContentLoaded",t),Te.has(n)&&(n.HTMLElement.prototype.focus=Te.get(n).focus,r.removeEventListener("keydown",Ne,!0),r.removeEventListener("keyup",Ne,!0),r.removeEventListener("click",Zt,!0),n.removeEventListener("focus",en,!0),n.removeEventListener("blur",tn,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",ye,!0),r.removeEventListener("pointermove",ye,!0),r.removeEventListener("pointerup",ye,!0)),Te.delete(n))};function ir(e){const t=pe(e);let n;return t.readyState!=="loading"?st(e):(n=()=>{st(e)},t.addEventListener("DOMContentLoaded",n)),()=>nn(e,n)}typeof document<"u"&&ir();function rn(){return Re!=="pointer"}const cr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fr(e,t,n){let r=pe(n==null?void 0:n.target);const o=typeof window<"u"?me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?me(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!cr.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!ur[n.key])}function dr(e,t,n){st(),u.useEffect(()=>{let r=(o,a)=>{fr(!!(n!=null&&n.isTextInput),o,a)&&e(rn())};return at.add(r),()=>{at.delete(r)}},t)}function pr(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),i=Qt(a),l=u.useCallback(s=>{const c=pe(s.target),f=c?lt(c):lt();s.target===s.currentTarget&&f===Yt(s.nativeEvent)&&(n&&n(s),o&&o(!0),i(s))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?a:void 0}}}function vr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Xt(),s=u.useCallback(h=>{h.currentTarget.contains(h.target)&&a.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(h),o&&o(!1))},[n,o,a,l]),c=Qt(s),f=u.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const m=pe(h.target),d=lt(m);if(!a.current.isFocusWithin&&d===Yt(h.nativeEvent)){r&&r(h),o&&o(!0),a.current.isFocusWithin=!0,c(h);let p=h.currentTarget;i(m,"focus",v=>{if(a.current.isFocusWithin&&!qt(p,v.target)){let g=new m.defaultView.FocusEvent("blur",{relatedTarget:v.target});lr(g,p);let E=Jt(g);s(E)}},{capture:!0})}},[r,o,c,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let it=!1,ze=0;function mr(){it=!0,setTimeout(()=>{it=!1},50)}function Ft(e){e.pointerType==="touch"&&mr()}function hr(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ft),ze++,()=>{ze--,!(ze>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ft)}}function gr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=u.useState(!1),l=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(hr,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=Xt(),{hoverProps:f,triggerHoverEnd:h}=u.useMemo(()=>{let m=(v,g)=>{if(l.pointerType=g,o||g==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let E=v.currentTarget;l.target=E,s(pe(v.target),"pointerover",y=>{l.isHovered&&l.target&&!qt(l.target,y.target)&&d(y,y.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:g}),n&&n(!0),i(!0)},d=(v,g)=>{let E=l.target;l.pointerType="",l.target=null,!(g==="touch"||!l.isHovered||!E)&&(l.isHovered=!1,c(),r&&r({type:"hoverend",target:E,pointerType:g}),n&&n(!1),i(!1))},p={};return typeof PointerEvent<"u"&&(p.onPointerEnter=v=>{it&&v.pointerType==="mouse"||m(v,v.pointerType)},p.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&d(v,v.pointerType)}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,o,l,s,c]);return u.useEffect(()=>{o&&h({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:f,isHovered:a}}function br(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||rn()}),[a,i]=u.useState(!1),[l,s]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),f=u.useCallback(d=>{o.current.isFocused=d,i(d),c()},[c]);dr(d=>{o.current.isFocusVisible=d,c()},[],{isTextInput:n});let{focusProps:h}=pr({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=vr({isDisabled:!r,onFocusWithinChange:f});return{isFocused:a,isFocusVisible:l,focusProps:r?m:h}}var Er=Object.defineProperty,$r=(e,t,n)=>t in e?Er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t,n)=>($r(e,typeof t!="symbol"?t+"":t,n),n);let yr=class{constructor(){Xe(this,"current",this.detect()),Xe(this,"handoffState","pending"),Xe(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},be=new yr;function Se(e){var t,n;return be.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function on(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function oe(){let e=[],t={addEventListener(n,r,o,a){return n.addEventListener(r,o,a),t.add(()=>n.removeEventListener(r,o,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return on(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=oe();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function je(){let[e]=u.useState(oe);return u.useEffect(()=>()=>e.dispose(),[e]),e}let N=(e,t)=>{be.isServer?u.useEffect(e,t):u.useLayoutEffect(e,t)};function se(e){let t=u.useRef(e);return N(()=>{t.current=e},[e]),t}let x=function(e){let t=se(e);return S.useCallback((...n)=>t.current(...n),[t])};function wr(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Pr(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Sr({disabled:e=!1}={}){let t=u.useRef(null),[n,r]=u.useState(!1),o=je(),a=x(()=>{t.current=null,r(!1),o.dispose()}),i=x(l=>{if(o.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=Se(l.currentTarget);o.addEventListener(s,"pointerup",a,!1),o.addEventListener(s,"pointermove",c=>{if(t.current){let f=wr(c);r(Pr(f,t.current.getBoundingClientRect()))}},!1),o.addEventListener(s,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function ct(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function J(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,J),r}var we=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(we||{}),ce=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ce||{});function ee(){let e=xr();return u.useCallback(t=>Cr({mergeRefs:e,...t}),[e])}function Cr({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:l}){l=l??Fr;let s=ln(t,e);if(a)return Le(s,n,r,i,l);let c=o??0;if(c&2){let{static:f=!1,...h}=s;if(f)return Le(h,n,r,i,l)}if(c&1){let{unmount:f=!0,...h}=s;return J(f?0:1,{0(){return null},1(){return Le({...h,hidden:!0,style:{display:"none"}},n,r,i,l)}})}return Le(s,n,r,i,l)}function Le(e,t={},n,r,o){let{as:a=n,children:i,refName:l="ref",...s}=Je(e,["unmount","static"]),c=e.ref!==void 0?{[l]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let h={};if(t){let m=!1,d=[];for(let[p,v]of Object.entries(t))typeof v=="boolean"&&(m=!0),v===!0&&d.push(p.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(m){h["data-headlessui-state"]=d.join(" ");for(let p of d)h[`data-${p}`]=""}}if(a===u.Fragment&&(Object.keys(ve(s)).length>0||Object.keys(ve(h)).length>0))if(!u.isValidElement(f)||Array.isArray(f)&&f.length>1){if(Object.keys(ve(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ve(s)).concat(Object.keys(ve(h))).map(m=>` - ${m}`).join(`
1
+ import{R as S,r as u,aj as _n,at as ot}from"./index-Co-_3xPI.js";import{u as Wn,i as Me,e as Gn,o as Vt,d as qe,m as Ye,g as Un,j as Vn,r as Ie,s as Kn,f as qn,a as Yn,c as zn}from"./floating-ui.react-dom-BrhHyVvs.js";const Kt=typeof document<"u"?S.useLayoutEffect:()=>{};function Xn(e){const t=u.useRef(null);return Kt(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},me=e=>e&&"window"in e&&e.window===e?e:pe(e).defaultView||window;function Jn(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Qn(e){return Jn(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Zn=!1;function ht(){return Zn}function qt(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Qn(n)?n=n.host:n=n.parentNode}return!1}const lt=(e=document)=>{var t;if(!ht())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Yt(e){return ht()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function er(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function tr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zt(e){let t=null;return()=>(t==null&&(t=e()),t)}const nr=zt(function(){return tr(/^Mac/i)}),rr=zt(function(){return er(/Android/i)});function Xt(){let e=u.useRef(new Map),t=u.useCallback((o,a,i,l)=>{let s=l!=null&&l.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),n=u.useCallback((o,a,i,l)=>{var s;let c=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,c,l),e.current.delete(i)},[]),r=u.useCallback(()=>{e.current.forEach((o,a)=>{n(o.eventTarget,o.type,a,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function or(e){return e.mozInputSource===0&&e.isTrusted?!0:rr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Jt(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function lr(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Qt(e){let t=u.useRef({isFocused:!1,observer:null});Kt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Xn(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=Jt(i);n(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ar=!1,Re=null,at=new Set,Te=new Map,Ee=!1,ut=!1;const ur={Tab:!0,Escape:!0};function gt(e,t){for(let n of at)n(e,t)}function sr(e){return!(e.metaKey||!nr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ne(e){Ee=!0,sr(e)&&(Re="keyboard",gt("keyboard",e))}function ye(e){Re="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ee=!0,gt("pointer",e))}function Zt(e){or(e)&&(Ee=!0,Re="virtual")}function en(e){e.target===window||e.target===document||ar||!e.isTrusted||(!Ee&&!ut&&(Re="virtual",gt("virtual",e)),Ee=!1,ut=!1)}function tn(){Ee=!1,ut=!0}function st(e){if(typeof window>"u"||Te.get(me(e)))return;const t=me(e),n=pe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ee=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ne,!0),n.addEventListener("keyup",Ne,!0),n.addEventListener("click",Zt,!0),t.addEventListener("focus",en,!0),t.addEventListener("blur",tn,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",ye,!0),n.addEventListener("pointermove",ye,!0),n.addEventListener("pointerup",ye,!0)),t.addEventListener("beforeunload",()=>{nn(e)},{once:!0}),Te.set(t,{focus:r})}const nn=(e,t)=>{const n=me(e),r=pe(e);t&&r.removeEventListener("DOMContentLoaded",t),Te.has(n)&&(n.HTMLElement.prototype.focus=Te.get(n).focus,r.removeEventListener("keydown",Ne,!0),r.removeEventListener("keyup",Ne,!0),r.removeEventListener("click",Zt,!0),n.removeEventListener("focus",en,!0),n.removeEventListener("blur",tn,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",ye,!0),r.removeEventListener("pointermove",ye,!0),r.removeEventListener("pointerup",ye,!0)),Te.delete(n))};function ir(e){const t=pe(e);let n;return t.readyState!=="loading"?st(e):(n=()=>{st(e)},t.addEventListener("DOMContentLoaded",n)),()=>nn(e,n)}typeof document<"u"&&ir();function rn(){return Re!=="pointer"}const cr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fr(e,t,n){let r=pe(n==null?void 0:n.target);const o=typeof window<"u"?me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?me(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!cr.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!ur[n.key])}function dr(e,t,n){st(),u.useEffect(()=>{let r=(o,a)=>{fr(!!(n!=null&&n.isTextInput),o,a)&&e(rn())};return at.add(r),()=>{at.delete(r)}},t)}function pr(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const a=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),i=Qt(a),l=u.useCallback(s=>{const c=pe(s.target),f=c?lt(c):lt();s.target===s.currentTarget&&f===Yt(s.nativeEvent)&&(n&&n(s),o&&o(!0),i(s))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?a:void 0}}}function vr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Xt(),s=u.useCallback(h=>{h.currentTarget.contains(h.target)&&a.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(h),o&&o(!1))},[n,o,a,l]),c=Qt(s),f=u.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const m=pe(h.target),d=lt(m);if(!a.current.isFocusWithin&&d===Yt(h.nativeEvent)){r&&r(h),o&&o(!0),a.current.isFocusWithin=!0,c(h);let p=h.currentTarget;i(m,"focus",v=>{if(a.current.isFocusWithin&&!qt(p,v.target)){let g=new m.defaultView.FocusEvent("blur",{relatedTarget:v.target});lr(g,p);let E=Jt(g);s(E)}},{capture:!0})}},[r,o,c,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let it=!1,ze=0;function mr(){it=!0,setTimeout(()=>{it=!1},50)}function Ft(e){e.pointerType==="touch"&&mr()}function hr(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ft),ze++,()=>{ze--,!(ze>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ft)}}function gr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=u.useState(!1),l=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(hr,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=Xt(),{hoverProps:f,triggerHoverEnd:h}=u.useMemo(()=>{let m=(v,g)=>{if(l.pointerType=g,o||g==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let E=v.currentTarget;l.target=E,s(pe(v.target),"pointerover",y=>{l.isHovered&&l.target&&!qt(l.target,y.target)&&d(y,y.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:g}),n&&n(!0),i(!0)},d=(v,g)=>{let E=l.target;l.pointerType="",l.target=null,!(g==="touch"||!l.isHovered||!E)&&(l.isHovered=!1,c(),r&&r({type:"hoverend",target:E,pointerType:g}),n&&n(!1),i(!1))},p={};return typeof PointerEvent<"u"&&(p.onPointerEnter=v=>{it&&v.pointerType==="mouse"||m(v,v.pointerType)},p.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&d(v,v.pointerType)}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,o,l,s,c]);return u.useEffect(()=>{o&&h({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:f,isHovered:a}}function br(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||rn()}),[a,i]=u.useState(!1),[l,s]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),f=u.useCallback(d=>{o.current.isFocused=d,i(d),c()},[c]);dr(d=>{o.current.isFocusVisible=d,c()},[],{isTextInput:n});let{focusProps:h}=pr({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=vr({isDisabled:!r,onFocusWithinChange:f});return{isFocused:a,isFocusVisible:l,focusProps:r?m:h}}var Er=Object.defineProperty,$r=(e,t,n)=>t in e?Er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t,n)=>($r(e,typeof t!="symbol"?t+"":t,n),n);let yr=class{constructor(){Xe(this,"current",this.detect()),Xe(this,"handoffState","pending"),Xe(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},be=new yr;function Se(e){var t,n;return be.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function on(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function oe(){let e=[],t={addEventListener(n,r,o,a){return n.addEventListener(r,o,a),t.add(()=>n.removeEventListener(r,o,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return on(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=oe();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function je(){let[e]=u.useState(oe);return u.useEffect(()=>()=>e.dispose(),[e]),e}let N=(e,t)=>{be.isServer?u.useEffect(e,t):u.useLayoutEffect(e,t)};function se(e){let t=u.useRef(e);return N(()=>{t.current=e},[e]),t}let x=function(e){let t=se(e);return S.useCallback((...n)=>t.current(...n),[t])};function wr(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Pr(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Sr({disabled:e=!1}={}){let t=u.useRef(null),[n,r]=u.useState(!1),o=je(),a=x(()=>{t.current=null,r(!1),o.dispose()}),i=x(l=>{if(o.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=Se(l.currentTarget);o.addEventListener(s,"pointerup",a,!1),o.addEventListener(s,"pointermove",c=>{if(t.current){let f=wr(c);r(Pr(f,t.current.getBoundingClientRect()))}},!1),o.addEventListener(s,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function ct(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function J(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,J),r}var we=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(we||{}),ce=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ce||{});function ee(){let e=xr();return u.useCallback(t=>Cr({mergeRefs:e,...t}),[e])}function Cr({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:l}){l=l??Fr;let s=ln(t,e);if(a)return Le(s,n,r,i,l);let c=o??0;if(c&2){let{static:f=!1,...h}=s;if(f)return Le(h,n,r,i,l)}if(c&1){let{unmount:f=!0,...h}=s;return J(f?0:1,{0(){return null},1(){return Le({...h,hidden:!0,style:{display:"none"}},n,r,i,l)}})}return Le(s,n,r,i,l)}function Le(e,t={},n,r,o){let{as:a=n,children:i,refName:l="ref",...s}=Je(e,["unmount","static"]),c=e.ref!==void 0?{[l]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let h={};if(t){let m=!1,d=[];for(let[p,v]of Object.entries(t))typeof v=="boolean"&&(m=!0),v===!0&&d.push(p.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(m){h["data-headlessui-state"]=d.join(" ");for(let p of d)h[`data-${p}`]=""}}if(a===u.Fragment&&(Object.keys(ve(s)).length>0||Object.keys(ve(h)).length>0))if(!u.isValidElement(f)||Array.isArray(f)&&f.length>1){if(Object.keys(ve(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ve(s)).concat(Object.keys(ve(h))).map(m=>` - ${m}`).join(`
2
2
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
3
3
  `)].join(`
4
4
  `))}else{let m=f.props,d=m==null?void 0:m.className,p=typeof d=="function"?(...E)=>ct(d(...E),s.className):ct(d,s.className),v=p?{className:p}:{},g=ln(f.props,ve(Je(s,["ref"])));for(let E in h)E in g&&delete h[E];return u.cloneElement(f,Object.assign({},g,h,c,{ref:o(Tr(f),c.ref)},v))}return u.createElement(a,Object.assign({},Je(s,["ref"]),a!==u.Fragment&&c,a!==u.Fragment&&h),f)}function xr(){let e=u.useRef([]),t=u.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function Fr(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function ln(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...a){let i=n[r];for(let l of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;l(o,...a)}}});return t}function ft(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let a=n[r];for(let i of a)i==null||i(...o)}});return t}function z(e){var t;return Object.assign(u.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ve(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Je(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Tr(e){return S.version.split(".")[0]>="19"?e.props.ref:e.ref}let Or="span";var Oe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oe||{});function Rr(e,t){var n;let{features:r=1,...o}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ee()({ourProps:a,theirProps:o,slot:{},defaultTag:Or,name:"Hidden"})}let De=z(Rr);function an(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function de(e){return an(e)&&"tagName"in e}function re(e){return de(e)&&"accessKey"in e}function he(e){return de(e)&&"tabIndex"in e}function kr(e){return de(e)&&"style"in e}function Mr(e){return re(e)&&e.nodeName==="IFRAME"}function Lr(e){return re(e)&&e.nodeName==="INPUT"}function Ul(e){return re(e)&&e.nodeName==="LABEL"}function Ar(e){return re(e)&&e.nodeName==="FIELDSET"}function un(e){return re(e)&&e.nodeName==="LEGEND"}function Vl(e){return de(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function sn(e){let t=e.parentElement,n=null;for(;t&&!Ar(t);)un(t)&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Ir(n)?!1:r}function Ir(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(un(t))return!1;t=t.previousElementSibling}return!0}let cn=Symbol();function fn(e,t=!0){return Object.assign(e,{[cn]:t})}function Z(...e){let t=u.useRef(e);u.useEffect(()=>{t.current=e},[e]);let n=x(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[cn]))?void 0:n}var ie=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ie||{});let Nr=u.createContext(()=>{});function dn({value:e,children:t}){return S.createElement(Nr.Provider,{value:e},t)}function Dr(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Hr(e,t=!1){let[n,r]=u.useReducer(()=>({}),{}),o=u.useMemo(()=>Dr(e),[e,n]);return N(()=>{if(!e)return;let a=new ResizeObserver(r);return a.observe(e),()=>{a.disconnect()}},[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let pn=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var jr=Object.defineProperty,Br=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_r=(e,t,n)=>(Br(e,t+"",n),n),vn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},X=(e,t,n)=>(vn(e,t,"read from private field"),n?n.call(e):t.get(e)),Qe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Tt=(e,t,n,r)=>(vn(e,t,"write to private field"),t.set(e,n),n),ne,xe,Fe;let mn=class{constructor(t){Qe(this,ne,{}),Qe(this,xe,new pn(()=>new Set)),Qe(this,Fe,new Set),_r(this,"disposables",oe()),Tt(this,ne,t)}dispose(){this.disposables.dispose()}get state(){return X(this,ne)}subscribe(t,n){let r={selector:t,callback:n,current:t(X(this,ne))};return X(this,Fe).add(r),this.disposables.add(()=>{X(this,Fe).delete(r)})}on(t,n){return X(this,xe).get(t).add(n),this.disposables.add(()=>{X(this,xe).get(t).delete(n)})}send(t){let n=this.reduce(X(this,ne),t);if(n!==X(this,ne)){Tt(this,ne,n);for(let r of X(this,Fe)){let o=r.selector(X(this,ne));hn(r.current,o)||(r.current=o,r.callback(o))}for(let r of X(this,xe).get(t.type))r(X(this,ne),t)}}};ne=new WeakMap,xe=new WeakMap,Fe=new WeakMap;function hn(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ze(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ze(e.entries(),t.entries()):Ot(e)&&Ot(t)?Ze(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ze(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function Ot(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Yl(e){let[t,n]=e(),r=oe();return(...o)=>{t(...o),r.dispose(),r.microTask(n)}}var Wr=Object.defineProperty,Gr=(e,t,n)=>t in e?Wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rt=(e,t,n)=>(Gr(e,typeof t!="symbol"?t+"":t,n),n),Ur=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Ur||{});let Vr={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(o!==-1){let a=e.stack.slice();return a.splice(o,1),a.push(n),r=a,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},Kr=class gn extends mn{constructor(){super(...arguments),Rt(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Rt(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new gn({stack:[]})}reduce(t,n){return J(n.type,Vr,t,n)}};const bn=new pn(()=>Kr.new());var et={exports:{}},tt={};/**
@@ -1 +1 @@
1
- var n=Object.defineProperty;var d=(i,t,e)=>t in i?n(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);import{a,M as f}from"./file-DYQzDhLd.js";import{b as p,a0 as u}from"./index-DyVIXHW8.js";class h extends a{constructor(e,s){super(e!=null&&e.isModel?e.initial:{...e,directories:(e==null?void 0:e.directories)??[],files:(e==null?void 0:e.files)??[]},s);c(this,"_isOpen",!1);c(this,"directories",[]);c(this,"files",[]);c(this,"syncStateOpen");e!=null&&e.isModel?(this.directories=e.directories,this.files=e.files):this.update({files:this.initial.files,directories:this.initial.directories})}get level(){var e;return(((e=this.parent)==null?void 0:e.level)??-1)+1}get isChanged(){return this.name!==this.initial.name||this.files.some(e=>e.isChanged)||this.directories.some(e=>e.isChanged)}get isEmpty(){return this.directories.length===0&&this.files.length===0}get withFiles(){return this.files.length>0}get withDirectories(){return this.directories.length>0}get isNotEmpty(){return this.withFiles||this.withDirectories}get artifacts(){return this.directories.concat(this.files)}get allDirectories(){return this.directories.concat(this.directories.map(e=>e.allDirectories).flat(100))}get allFiles(){return this.files.concat(this.allDirectories.map(e=>e.files).flat(100))}get allVisibleArtifacts(){return this.directories.map(e=>e.isOpened?[e,e.allVisibleArtifacts]:[e]).flat(100).concat(this.isOpened?this.files:[])}get allArtifacts(){return this.directories.map(e=>[e,e.allArtifacts]).flat(100).concat(this.files)}get isOpened(){return this._isOpen}get isClosed(){return p(this._isOpen)}get isModels(){return this.path.startsWith("models")}get isTests(){return this.path.startsWith("tests")}open(){var e;this._isOpen=!0,(e=this.syncStateOpen)==null||e.call(this,this.isOpened)}close(){var e;this._isOpen=!1,(e=this.syncStateOpen)==null||e.call(this,this.isOpened)}toggle(){this.isOpened?this.close():this.open()}expand(){this.open(),this.directories.forEach(e=>{e.expand()})}collapse(){this.close(),this.directories.forEach(e=>{e.collapse()})}containsName(e){return this.artifacts.some(s=>s.name===e)}hasFile(e){return this.allFiles.includes(e)}hasDirectory(e){return this.allDirectories.includes(e)}addFile(e){this.files.push(e),e.parent=this}addDirectory(e){this.directories.push(e),e.parent=this}removeFile(e){this.files=this.files.filter(s=>s!==e)}removeDirectory(e){this.directories=this.directories.filter(s=>s!==e)}update({files:e=[],directories:s=[]}){this.files=[],this.directories=[],s.forEach(r=>{this.addDirectory(new h(r,this))}),e.forEach(r=>{this.addFile(new f(r,this))})}}const O=u((i,t)=>({tests:void 0,project:new h,selectedFile:void 0,files:new Map,activeRange:[],setTests(e){i(()=>({tests:e}))},setActiveRange(e){const s=t();i(()=>({activeRange:s.project.allVisibleArtifacts.filter(r=>o(r,e??s.activeRange))}))},inActiveRange(e){const s=t();return o(e,s.activeRange)},setProject(e){i(()=>({project:e}))},setFiles(e){const s=t();s.files.clear(),i(()=>({files:new Map(e.reduce((r,l)=>r.set(l.id,l),s.files))}))},setSelectedFile(e){i(()=>({selectedFile:e}))},findArtifactByPath(e){const s=t();return a.findArtifactByPath(s.project,e)},refreshFiles(e){const s=t();s.setFiles(e??s.project.allFiles)}}));function o(i,t){return t.includes(i)}export{h as M,O as u};
1
+ var n=Object.defineProperty;var d=(i,t,e)=>t in i?n(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);import{a,M as f}from"./file-D-wqO8gv.js";import{b as p,a0 as u}from"./index-Co-_3xPI.js";class h extends a{constructor(e,s){super(e!=null&&e.isModel?e.initial:{...e,directories:(e==null?void 0:e.directories)??[],files:(e==null?void 0:e.files)??[]},s);c(this,"_isOpen",!1);c(this,"directories",[]);c(this,"files",[]);c(this,"syncStateOpen");e!=null&&e.isModel?(this.directories=e.directories,this.files=e.files):this.update({files:this.initial.files,directories:this.initial.directories})}get level(){var e;return(((e=this.parent)==null?void 0:e.level)??-1)+1}get isChanged(){return this.name!==this.initial.name||this.files.some(e=>e.isChanged)||this.directories.some(e=>e.isChanged)}get isEmpty(){return this.directories.length===0&&this.files.length===0}get withFiles(){return this.files.length>0}get withDirectories(){return this.directories.length>0}get isNotEmpty(){return this.withFiles||this.withDirectories}get artifacts(){return this.directories.concat(this.files)}get allDirectories(){return this.directories.concat(this.directories.map(e=>e.allDirectories).flat(100))}get allFiles(){return this.files.concat(this.allDirectories.map(e=>e.files).flat(100))}get allVisibleArtifacts(){return this.directories.map(e=>e.isOpened?[e,e.allVisibleArtifacts]:[e]).flat(100).concat(this.isOpened?this.files:[])}get allArtifacts(){return this.directories.map(e=>[e,e.allArtifacts]).flat(100).concat(this.files)}get isOpened(){return this._isOpen}get isClosed(){return p(this._isOpen)}get isModels(){return this.path.startsWith("models")}get isTests(){return this.path.startsWith("tests")}open(){var e;this._isOpen=!0,(e=this.syncStateOpen)==null||e.call(this,this.isOpened)}close(){var e;this._isOpen=!1,(e=this.syncStateOpen)==null||e.call(this,this.isOpened)}toggle(){this.isOpened?this.close():this.open()}expand(){this.open(),this.directories.forEach(e=>{e.expand()})}collapse(){this.close(),this.directories.forEach(e=>{e.collapse()})}containsName(e){return this.artifacts.some(s=>s.name===e)}hasFile(e){return this.allFiles.includes(e)}hasDirectory(e){return this.allDirectories.includes(e)}addFile(e){this.files.push(e),e.parent=this}addDirectory(e){this.directories.push(e),e.parent=this}removeFile(e){this.files=this.files.filter(s=>s!==e)}removeDirectory(e){this.directories=this.directories.filter(s=>s!==e)}update({files:e=[],directories:s=[]}){this.files=[],this.directories=[],s.forEach(r=>{this.addDirectory(new h(r,this))}),e.forEach(r=>{this.addFile(new f(r,this))})}}const O=u((i,t)=>({tests:void 0,project:new h,selectedFile:void 0,files:new Map,activeRange:[],setTests(e){i(()=>({tests:e}))},setActiveRange(e){const s=t();i(()=>({activeRange:s.project.allVisibleArtifacts.filter(r=>o(r,e??s.activeRange))}))},inActiveRange(e){const s=t();return o(e,s.activeRange)},setProject(e){i(()=>({project:e}))},setFiles(e){const s=t();s.files.clear(),i(()=>({files:new Map(e.reduce((r,l)=>r.set(l.id,l),s.files))}))},setSelectedFile(e){i(()=>({selectedFile:e}))},findArtifactByPath(e){const s=t();return a.findArtifactByPath(s.project,e)},refreshFiles(e){const s=t();s.setFiles(e??s.project.allFiles)}}));function o(i,t){return t.includes(i)}export{h as M,O as u};
@@ -231,7 +231,7 @@
231
231
  type="font/woff2"
232
232
  crossorigin="anonymous"
233
233
  />
234
- <script type="module" crossorigin src="/assets/index-DyVIXHW8.js"></script>
234
+ <script type="module" crossorigin src="/assets/index-Co-_3xPI.js"></script>
235
235
 
236
236
  </head>
237
237
 
@@ -126,7 +126,7 @@ def create_models_only_lineage_adjacency_list(
126
126
 
127
127
 
128
128
  @router.get("/{model_name:str}/{column_name:str}")
129
- async def column_lineage(
129
+ def column_lineage(
130
130
  model_name: str,
131
131
  column_name: str,
132
132
  models_only: bool = False,
@@ -1,41 +0,0 @@
1
- import{r as o,R as J,j as f,b as Cn,c as re,at as yt,au as ne,av as St,aw as En,l as Y,i as rt}from"./index-DyVIXHW8.js";import{r as qe,u as Pn,o as Rn,s as In,f as Tn,a as Nn,b as An,h as On,l as Mn,c as _n,R as Ln}from"./floating-ui.react-dom-tGq145Jn.js";function Dn({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const jn=o.forwardRef(Dn);function kn({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const Bn=o.forwardRef(kn);function Fn({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Wn=o.forwardRef(Fn);function Vn({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"}))}const Hn=o.forwardRef(Vn),Un=J.forwardRef(function({type:t="text",value:n,placeholder:r,className:a,disabled:i=!1,autoFocus:c=!1,onInput:s,onKeyDown:u},d){return n=n??"",f.jsx("input",{ref:d,className:re("placeholder:text-neutral-300 dark:placeholder:text-neutral-700",i&&"opacity-50 cursor-not-allowed",a),type:t,value:n,placeholder:r,disabled:i,autoFocus:c,readOnly:Cn(!!s),onInput:s,onKeyDown:u})});function ot(e,[t,n]){return Math.min(n,Math.max(t,e))}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Qe(e,t=[]){let n=[];function r(i,c){const s=o.createContext(c),u=n.length;n=[...n,c];const d=h=>{var y;const{scope:g,children:S,...x}=h,l=((y=g==null?void 0:g[e])==null?void 0:y[u])||s,v=o.useMemo(()=>x,Object.values(x));return f.jsx(l.Provider,{value:v,children:S})};d.displayName=i+"Provider";function p(h,g){var l;const S=((l=g==null?void 0:g[e])==null?void 0:l[u])||s,x=o.useContext(S);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,p]}const a=()=>{const i=n.map(c=>o.createContext(c));return function(s){const u=(s==null?void 0:s[e])||i;return o.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return a.scopeName=e,[r,$n(a,...t)]}function $n(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const c=r.reduce((s,{useScope:u,scopeName:d})=>{const h=u(i)[`__scope${d}`];return{...s,...h}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function at(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kn(...e){return t=>{let n=!1;const r=e.map(a=>{const i=at(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():at(e[a],null)}}}}function L(...e){return o.useCallback(Kn(...e),e)}function Ae(e){const t=Yn(e),n=o.forwardRef((r,a)=>{const{children:i,...c}=r,s=o.Children.toArray(i),u=s.find(Xn);if(u){const d=u.props.children,p=s.map(h=>h===u?o.Children.count(d)>1?o.Children.only(null):o.isValidElement(d)?d.props.children:null:h);return f.jsx(t,{...c,ref:a,children:o.isValidElement(d)?o.cloneElement(d,void 0,p):null})}return f.jsx(t,{...c,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function Yn(e){const t=o.forwardRef((n,r)=>{const{children:a,...i}=n,c=o.isValidElement(a)?Gn(a):void 0,s=L(c,r);if(o.isValidElement(a)){const u=Zn(i,a.props);return a.type!==o.Fragment&&(u.ref=s),o.cloneElement(a,u)}return o.Children.count(a)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zn=Symbol("radix.slottable");function Xn(e){return o.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zn}function Zn(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const u=i(...s);return a(...s),u}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function Gn(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qn(e){const t=e+"CollectionProvider",[n,r]=Qe(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:v,children:y}=l,m=J.useRef(null),w=J.useRef(new Map).current;return f.jsx(a,{scope:v,itemMap:w,collectionRef:m,children:y})};c.displayName=t;const s=e+"CollectionSlot",u=Ae(s),d=J.forwardRef((l,v)=>{const{scope:y,children:m}=l,w=i(s,y),b=L(v,w.collectionRef);return f.jsx(u,{ref:b,children:m})});d.displayName=s;const p=e+"CollectionItemSlot",h="data-radix-collection-item",g=Ae(p),S=J.forwardRef((l,v)=>{const{scope:y,children:m,...w}=l,b=J.useRef(null),P=L(v,b),T=i(p,y);return J.useEffect(()=>(T.itemMap.set(b,{ref:b,...w}),()=>void T.itemMap.delete(b))),f.jsx(g,{[h]:"",ref:P,children:m})});S.displayName=p;function x(l){const v=i(e+"CollectionConsumer",l);return J.useCallback(()=>{const m=v.collectionRef.current;if(!m)return[];const w=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((T,E)=>w.indexOf(T.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:d,ItemSlot:S},x,r]}var Qn=o.createContext(void 0);function Jn(e){const t=o.useContext(Qn);return e||t||"ltr"}var er=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],M=er.reduce((e,t)=>{const n=Ae(`Primitive.${t}`),r=o.forwardRef((a,i)=>{const{asChild:c,...s}=a,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(u,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tr(e,t){e&&qe.flushSync(()=>e.dispatchEvent(t))}function ie(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nr(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e);o.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rr="DismissableLayer",$e="dismissableLayer.update",or="dismissableLayer.pointerDownOutside",ar="dismissableLayer.focusOutside",st,xt=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bt=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...u}=e,d=o.useContext(xt),[p,h]=o.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=o.useState({}),x=L(t,E=>h(E)),l=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(v),m=p?l.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,b=m>=y,P=cr(E=>{const O=E.target,D=[...d.branches].some(V=>V.contains(O));!b||D||(a==null||a(E),c==null||c(E),E.defaultPrevented||s==null||s())},g),T=lr(E=>{const O=E.target;[...d.branches].some(V=>V.contains(O))||(i==null||i(E),c==null||c(E),E.defaultPrevented||s==null||s())},g);return nr(E=>{m===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},g),o.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(st=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),it(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=st)}},[p,g,n,d]),o.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),it())},[p,d]),o.useEffect(()=>{const E=()=>S({});return document.addEventListener($e,E),()=>document.removeEventListener($e,E)},[]),f.jsx(M.div,{...u,ref:x,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,P.onPointerDownCapture)})});bt.displayName=rr;var sr="DismissableLayerBranch",ir=o.forwardRef((e,t)=>{const n=o.useContext(xt),r=o.useRef(null),a=L(t,r);return o.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(M.div,{...e,ref:a})});ir.displayName=sr;function cr(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e),r=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Ct(or,n,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lr(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e),r=o.useRef(!1);return o.useEffect(()=>{const a=i=>{i.target&&!r.current&&Ct(ar,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function it(){const e=new CustomEvent($e);document.dispatchEvent(e)}function Ct(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?tr(a,i):a.dispatchEvent(i)}var ke=0;function ur(){o.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ct()),document.body.insertAdjacentElement("beforeend",e[1]??ct()),ke++,()=>{ke===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ke--}},[])}function ct(){const 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 Be="focusScope.autoFocusOnMount",Fe="focusScope.autoFocusOnUnmount",lt={bubbles:!1,cancelable:!0},dr="FocusScope",Et=o.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=e,[s,u]=o.useState(null),d=ie(a),p=ie(i),h=o.useRef(null),g=L(t,l=>u(l)),S=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let l=function(w){if(S.paused||!s)return;const b=w.target;s.contains(b)?h.current=b:te(h.current,{select:!0})},v=function(w){if(S.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||te(h.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&te(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",v);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",v),m.disconnect()}}},[r,s,S.paused]),o.useEffect(()=>{if(s){dt.add(S);const l=document.activeElement;if(!s.contains(l)){const y=new CustomEvent(Be,lt);s.addEventListener(Be,d),s.dispatchEvent(y),y.defaultPrevented||(fr(gr(Pt(s)),{select:!0}),document.activeElement===l&&te(s))}return()=>{s.removeEventListener(Be,d),setTimeout(()=>{const y=new CustomEvent(Fe,lt);s.addEventListener(Fe,p),s.dispatchEvent(y),y.defaultPrevented||te(l??document.body,{select:!0}),s.removeEventListener(Fe,p),dt.remove(S)},0)}}},[s,d,p,S]);const x=o.useCallback(l=>{if(!n&&!r||S.paused)return;const v=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(v&&y){const m=l.currentTarget,[w,b]=pr(m);w&&b?!l.shiftKey&&y===b?(l.preventDefault(),n&&te(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),n&&te(b,{select:!0})):y===m&&l.preventDefault()}},[n,r,S.paused]);return f.jsx(M.div,{tabIndex:-1,...c,ref:g,onKeyDown:x})});Et.displayName=dr;function fr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(te(r,{select:t}),document.activeElement!==n)return}function pr(e){const t=Pt(e),n=ut(t,e),r=ut(t.reverse(),e);return[n,r]}function Pt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ut(e,t){for(const n of e)if(!vr(n,{upTo:t}))return n}function vr(e,{upTo: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 hr(e){return e instanceof HTMLInputElement&&"select"in e}function te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hr(e)&&t&&e.select()}}var dt=mr();function mr(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ft(e,t),e.unshift(t)},remove(t){var n;e=ft(e,t),(n=e[0])==null||n.resume()}}}function ft(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gr(e){return e.filter(t=>t.tagName!=="A")}var W=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{},wr=yt[" useId ".trim().toString()]||(()=>{}),yr=0;function Je(e){const[t,n]=o.useState(wr());return W(()=>{n(r=>r??String(yr++))},[e]),t?`radix-${t}`:""}var Sr="Arrow",Rt=o.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return f.jsx(M.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rt.displayName=Sr;var xr=Rt;function br(e){const[t,n]=o.useState(void 0);return W(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let c,s;if("borderBoxSize"in i){const u=i.borderBoxSize,d=Array.isArray(u)?u[0]:u;c=d.inlineSize,s=d.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var et="Popper",[It,Tt]=Qe(et),[Cr,Nt]=It(et),At=e=>{const{__scopePopper:t,children:n}=e,[r,a]=o.useState(null);return f.jsx(Cr,{scope:t,anchor:r,onAnchorChange:a,children:n})};At.displayName=et;var Ot="PopperAnchor",Mt=o.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=Nt(Ot,n),c=o.useRef(null),s=L(t,c);return o.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||c.current)}),r?null:f.jsx(M.div,{...a,ref:s})});Mt.displayName=Ot;var tt="PopperContent",[Er,Pr]=It(tt),_t=o.forwardRef((e,t)=>{var C,A,B,N,R,I;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:S="optimized",onPlaced:x,...l}=e,v=Nt(tt,n),[y,m]=o.useState(null),w=L(t,U=>m(U)),[b,P]=o.useState(null),T=br(b),E=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.height)??0,D=r+(i!=="center"?"-"+i:""),V=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},$=Array.isArray(d)?d:[d],z=$.length>0,H={padding:V,boundary:$.filter(Ir),altBoundary:z},{refs:X,floatingStyles:K,placement:j,isPositioned:F,middlewareData:k}=Pn({strategy:"fixed",placement:D,whileElementsMounted:(...U)=>_n(...U,{animationFrame:S==="always"}),elements:{reference:v.anchor},middleware:[Rn({mainAxis:a+O,alignmentAxis:c}),u&&In({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Mn():void 0,...H}),u&&Tn({...H}),Nn({...H,apply:({elements:U,rects:q,availableWidth:ye,availableHeight:Se})=>{const{width:xe,height:bn}=q.reference,Ce=U.floating.style;Ce.setProperty("--radix-popper-available-width",`${ye}px`),Ce.setProperty("--radix-popper-available-height",`${Se}px`),Ce.setProperty("--radix-popper-anchor-width",`${xe}px`),Ce.setProperty("--radix-popper-anchor-height",`${bn}px`)}}),b&&An({element:b,padding:s}),Tr({arrowWidth:E,arrowHeight:O}),g&&On({strategy:"referenceHidden",...H})]}),[Z,me]=jt(j),Q=ie(x);W(()=>{F&&(Q==null||Q())},[F,Q]);const ge=(C=k.arrow)==null?void 0:C.x,we=(A=k.arrow)==null?void 0:A.y,ee=((B=k.arrow)==null?void 0:B.centerOffset)!==0,[ue,se]=o.useState();return W(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:F?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(N=k.transformOrigin)==null?void 0:N.x,(R=k.transformOrigin)==null?void 0:R.y].join(" "),...((I=k.hide)==null?void 0:I.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(Er,{scope:n,placedSide:Z,onArrowChange:P,arrowX:ge,arrowY:we,shouldHideArrow:ee,children:f.jsx(M.div,{"data-side":Z,"data-align":me,...l,ref:w,style:{...l.style,animation:F?void 0:"none"}})})})});_t.displayName=tt;var Lt="PopperArrow",Rr={top:"bottom",right:"left",bottom:"top",left:"right"},Dt=o.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=Pr(Lt,r),c=Rr[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(xr,{...a,ref:n,style:{...a.style,display:"block"}})})});Dt.displayName=Lt;function Ir(e){return e!==null}var Tr=e=>({name:"transformOrigin",options:e,fn(t){var v,y,m;const{placement:n,rects:r,middlewareData:a}=t,c=((v=a.arrow)==null?void 0:v.centerOffset)!==0,s=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[d,p]=jt(n),h={start:"0%",center:"50%",end:"100%"}[p],g=(((y=a.arrow)==null?void 0:y.x)??0)+s/2,S=(((m=a.arrow)==null?void 0:m.y)??0)+u/2;let x="",l="";return d==="bottom"?(x=c?h:`${g}px`,l=`${-u}px`):d==="top"?(x=c?h:`${g}px`,l=`${r.floating.height+u}px`):d==="right"?(x=`${-u}px`,l=c?h:`${S}px`):d==="left"&&(x=`${r.floating.width+u}px`,l=c?h:`${S}px`),{data:{x,y:l}}}});function jt(e){const[t,n="center"]=e.split("-");return[t,n]}var Nr=At,Ar=Mt,Or=_t,Mr=Dt,_r="Portal",kt=o.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=o.useState(!1);W(()=>i(!0),[]);const c=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?Ln.createPortal(f.jsx(M.div,{...r,ref:t}),c):null});kt.displayName=_r;var Lr=yt[" useInsertionEffect ".trim().toString()]||W;function pt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,c]=Dr({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:a;{const p=o.useRef(e!==void 0);o.useEffect(()=>{const h=p.current;h!==s&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=s},[s,r])}const d=o.useCallback(p=>{var h;if(s){const g=jr(p)?p(e):p;g!==e&&((h=c.current)==null||h.call(c,g))}else i(p)},[s,e,i,c]);return[u,d]}function Dr({defaultProp:e,onChange:t}){const[n,r]=o.useState(e),a=o.useRef(n),i=o.useRef(t);return Lr(()=>{i.current=t},[t]),o.useEffect(()=>{var c;a.current!==n&&((c=i.current)==null||c.call(i,n),a.current=n)},[n,a]),[n,r,i]}function jr(e){return typeof e=="function"}function kr(e){const t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Bt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Br="VisuallyHidden",Fr=o.forwardRef((e,t)=>f.jsx(M.span,{...e,ref:t,style:{...Bt,...e.style}}));Fr.displayName=Br;var Wr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},de=new WeakMap,Ee=new WeakMap,Pe={},We=0,Ft=function(e){return e&&(e.host||Ft(e.parentNode))},Vr=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ft(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Hr=function(e,t,n,r){var a=Vr(t,Array.isArray(e)?e:[e]);Pe[n]||(Pe[n]=new WeakMap);var i=Pe[n],c=[],s=new Set,u=new Set(a),d=function(h){!h||s.has(h)||(s.add(h),d(h.parentNode))};a.forEach(d);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(s.has(g))p(g);else try{var S=g.getAttribute(r),x=S!==null&&S!=="false",l=(de.get(g)||0)+1,v=(i.get(g)||0)+1;de.set(g,l),i.set(g,v),c.push(g),l===1&&x&&Ee.set(g,!0),v===1&&g.setAttribute(n,"true"),x||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return p(t),s.clear(),We++,function(){c.forEach(function(h){var g=de.get(h)-1,S=i.get(h)-1;de.set(h,g),i.set(h,S),g||(Ee.has(h)||h.removeAttribute(r),Ee.delete(h)),S||h.removeAttribute(n)}),We--,We||(de=new WeakMap,de=new WeakMap,Ee=new WeakMap,Pe={})}},Ur=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=Wr(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),Hr(r,a,n,"aria-hidden")):function(){return null}},Te="right-scroll-bar-position",Ne="width-before-scroll-bar",$r="with-scroll-bars-hidden",Kr="--removed-body-scroll-bar-size";function Ve(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yr(e,t){var n=o.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var zr=typeof window<"u"?o.useLayoutEffect:o.useEffect,vt=new WeakMap;function Xr(e,t){var n=Yr(null,function(r){return e.forEach(function(a){return Ve(a,r)})});return zr(function(){var r=vt.get(n);if(r){var a=new Set(r),i=new Set(e),c=n.current;a.forEach(function(s){i.has(s)||Ve(s,null)}),i.forEach(function(s){a.has(s)||Ve(s,c)})}vt.set(n,e)},[e]),n}function Zr(e){return e}function Gr(e,t){t===void 0&&(t=Zr);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var u=function(){var p=c;c=[],p.forEach(i)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(p){c.push(p),d()},filter:function(p){return c=c.filter(p),n}}}};return a}function qr(e){e===void 0&&(e={});var t=Gr(null);return t.options=ne({async:!0,ssr:!1},e),t}var Wt=function(e){var t=e.sideCar,n=St(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,ne({},n))};Wt.isSideCarExport=!0;function Qr(e,t){return e.useMedium(t),Wt}var Vt=qr(),He=function(){},Me=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:He,onWheelCapture:He,onTouchMoveCapture:He}),a=r[0],i=r[1],c=e.forwardProps,s=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,S=e.noIsolation,x=e.inert,l=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,m=e.gapMode,w=St(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=g,P=Xr([n,t]),T=ne(ne({},w),a);return o.createElement(o.Fragment,null,p&&o.createElement(b,{sideCar:Vt,removeScrollBar:d,shards:h,noIsolation:S,inert:x,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:m}),c?o.cloneElement(o.Children.only(s),ne(ne({},T),{ref:P})):o.createElement(y,ne({},T,{className:u,ref:P}),s))});Me.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Me.classNames={fullWidth:Ne,zeroRight:Te};var Jr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jr();return t&&e.setAttribute("nonce",t),e}function to(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function no(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ro=function(){var e=0,t=null;return{add:function(n){e==0&&(t=eo())&&(to(t,n),no(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oo=function(){var e=ro();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ht=function(){var e=oo(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},ao={left:0,top:0,right:0,gap:0},Ue=function(e){return parseInt(e||"",10)||0},so=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ue(n),Ue(r),Ue(a)]},io=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ao;var t=so(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},co=Ht(),ve="data-scroll-locked",lo=function(e,t,n,r){var a=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat($r,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(s,"px ").concat(r,`;
5
- }
6
- body[`).concat(ve,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(a,`px;
11
- padding-top: `).concat(i,`px;
12
- padding-right: `).concat(c,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(s,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Te,` {
20
- right: `).concat(s,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(Ne,` {
24
- margin-right: `).concat(s,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(Te," .").concat(Te,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(Ne," .").concat(Ne,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(ve,`] {
36
- `).concat(Kr,": ").concat(s,`px;
37
- }
38
- `)},ht=function(){var e=parseInt(document.body.getAttribute(ve)||"0",10);return isFinite(e)?e:0},uo=function(){o.useEffect(function(){return document.body.setAttribute(ve,(ht()+1).toString()),function(){var e=ht()-1;e<=0?document.body.removeAttribute(ve):document.body.setAttribute(ve,e.toString())}},[])},fo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;uo();var i=o.useMemo(function(){return io(a)},[a]);return o.createElement(co,{styles:lo(i,!t,a,n?"":"!important")})},Ke=!1;if(typeof window<"u")try{var Re=Object.defineProperty({},"passive",{get:function(){return Ke=!0,!0}});window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{Ke=!1}var fe=Ke?{passive:!1}:!1,po=function(e){return e.tagName==="TEXTAREA"},Ut=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!po(e)&&n[t]==="visible")},vo=function(e){return Ut(e,"overflowY")},ho=function(e){return Ut(e,"overflowX")},mt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=$t(e,r);if(a){var i=Kt(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mo=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},go=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$t=function(e,t){return e==="v"?vo(t):ho(t)},Kt=function(e,t){return e==="v"?mo(t):go(t)},wo=function(e,t){return e==="h"&&t==="rtl"?-1:1},yo=function(e,t,n,r,a){var i=wo(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,u=t.contains(s),d=!1,p=c>0,h=0,g=0;do{var S=Kt(e,s),x=S[0],l=S[1],v=S[2],y=l-v-i*x;(x||y)&&$t(e,s)&&(h+=y,g+=x),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(p&&Math.abs(h)<1||!p&&Math.abs(g)<1)&&(d=!0),d},Ie=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gt=function(e){return[e.deltaX,e.deltaY]},wt=function(e){return e&&"current"in e?e.current:e},So=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xo=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},bo=0,pe=[];function Co(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),a=o.useState(bo++)[0],i=o.useState(Ht)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var l=En([e.lockRef.current],(e.shards||[]).map(wt),!0).filter(Boolean);return l.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),l.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback(function(l,v){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Ie(l),m=n.current,w="deltaX"in l?l.deltaX:m[0]-y[0],b="deltaY"in l?l.deltaY:m[1]-y[1],P,T=l.target,E=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in l&&E==="h"&&T.type==="range")return!1;var O=mt(E,T);if(!O)return!0;if(O?P=E:(P=E==="v"?"h":"v",O=mt(E,T)),!O)return!1;if(!r.current&&"changedTouches"in l&&(w||b)&&(r.current=P),!P)return!0;var D=r.current||P;return yo(D,v,l,D==="h"?w:b)},[]),u=o.useCallback(function(l){var v=l;if(!(!pe.length||pe[pe.length-1]!==i)){var y="deltaY"in v?gt(v):Ie(v),m=t.current.filter(function(P){return P.name===v.type&&(P.target===v.target||v.target===P.shadowParent)&&So(P.delta,y)})[0];if(m&&m.should){v.cancelable&&v.preventDefault();return}if(!m){var w=(c.current.shards||[]).map(wt).filter(Boolean).filter(function(P){return P.contains(v.target)}),b=w.length>0?s(v,w[0]):!c.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),d=o.useCallback(function(l,v,y,m){var w={name:l,delta:v,target:y,should:m,shadowParent:Eo(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),p=o.useCallback(function(l){n.current=Ie(l),r.current=void 0},[]),h=o.useCallback(function(l){d(l.type,gt(l),l.target,s(l,e.lockRef.current))},[]),g=o.useCallback(function(l){d(l.type,Ie(l),l.target,s(l,e.lockRef.current))},[]);o.useEffect(function(){return pe.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,fe),document.addEventListener("touchmove",u,fe),document.addEventListener("touchstart",p,fe),function(){pe=pe.filter(function(l){return l!==i}),document.removeEventListener("wheel",u,fe),document.removeEventListener("touchmove",u,fe),document.removeEventListener("touchstart",p,fe)}},[]);var S=e.removeScrollBar,x=e.inert;return o.createElement(o.Fragment,null,x?o.createElement(i,{styles:xo(a)}):null,S?o.createElement(fo,{gapMode:e.gapMode}):null)}function Eo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Po=Qr(Vt,Co);var Yt=o.forwardRef(function(e,t){return o.createElement(Me,ne({},e,{ref:t,sideCar:Po}))});Yt.classNames=Me.classNames;var Ro=[" ","Enter","ArrowUp","ArrowDown"],Io=[" ","Enter"],ce="Select",[_e,Le,To]=qn(ce),[he,da]=Qe(ce,[To,Tt]),De=Tt(),[No,oe]=he(ce),[Ao,Oo]=he(ce),zt=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:i,value:c,defaultValue:s,onValueChange:u,dir:d,name:p,autoComplete:h,disabled:g,required:S,form:x}=e,l=De(t),[v,y]=o.useState(null),[m,w]=o.useState(null),[b,P]=o.useState(!1),T=Jn(d),[E,O]=pt({prop:r,defaultProp:a??!1,onChange:i,caller:ce}),[D,V]=pt({prop:c,defaultProp:s,onChange:u,caller:ce}),$=o.useRef(null),z=v?x||!!v.closest("form"):!0,[H,X]=o.useState(new Set),K=Array.from(H).map(j=>j.props.value).join(";");return f.jsx(Nr,{...l,children:f.jsxs(No,{required:S,scope:t,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:w,valueNodeHasChildren:b,onValueNodeHasChildrenChange:P,contentId:Je(),value:D,onValueChange:V,open:E,onOpenChange:O,dir:T,triggerPointerDownPosRef:$,disabled:g,children:[f.jsx(_e.Provider,{scope:t,children:f.jsx(Ao,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(j=>{X(F=>new Set(F).add(j))},[]),onNativeOptionRemove:o.useCallback(j=>{X(F=>{const k=new Set(F);return k.delete(j),k})},[]),children:n})}),z?f.jsxs(mn,{"aria-hidden":!0,required:S,tabIndex:-1,name:p,autoComplete:h,value:D,onChange:j=>V(j.target.value),disabled:g,form:x,children:[D===void 0?f.jsx("option",{value:""}):null,Array.from(H)]},K):null]})})};zt.displayName=ce;var Xt="SelectTrigger",Zt=o.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,i=De(n),c=oe(Xt,n),s=c.disabled||r,u=L(t,c.onTriggerChange),d=Le(n),p=o.useRef("touch"),[h,g,S]=wn(l=>{const v=d().filter(w=>!w.disabled),y=v.find(w=>w.value===c.value),m=yn(v,l,y);m!==void 0&&c.onValueChange(m.value)}),x=l=>{s||(c.onOpenChange(!0),S()),l&&(c.triggerPointerDownPosRef.current={x:Math.round(l.pageX),y:Math.round(l.pageY)})};return f.jsx(Ar,{asChild:!0,...i,children:f.jsx(M.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":gn(c.value)?"":void 0,...a,ref:u,onClick:_(a.onClick,l=>{l.currentTarget.focus(),p.current!=="mouse"&&x(l)}),onPointerDown:_(a.onPointerDown,l=>{p.current=l.pointerType;const v=l.target;v.hasPointerCapture(l.pointerId)&&v.releasePointerCapture(l.pointerId),l.button===0&&l.ctrlKey===!1&&l.pointerType==="mouse"&&(x(l),l.preventDefault())}),onKeyDown:_(a.onKeyDown,l=>{const v=h.current!=="";!(l.ctrlKey||l.altKey||l.metaKey)&&l.key.length===1&&g(l.key),!(v&&l.key===" ")&&Ro.includes(l.key)&&(x(),l.preventDefault())})})})});Zt.displayName=Xt;var Gt="SelectValue",qt=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:i,placeholder:c="",...s}=e,u=oe(Gt,n),{onValueNodeHasChildrenChange:d}=u,p=i!==void 0,h=L(t,u.onValueNodeChange);return W(()=>{d(p)},[d,p]),f.jsx(M.span,{...s,ref:h,style:{pointerEvents:"none"},children:gn(u.value)?f.jsx(f.Fragment,{children:c}):i})});qt.displayName=Gt;var Mo="SelectIcon",Qt=o.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return f.jsx(M.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});Qt.displayName=Mo;var _o="SelectPortal",Jt=e=>f.jsx(kt,{asChild:!0,...e});Jt.displayName=_o;var le="SelectContent",en=o.forwardRef((e,t)=>{const n=oe(le,e.__scopeSelect),[r,a]=o.useState();if(W(()=>{a(new DocumentFragment)},[]),!n.open){const i=r;return i?qe.createPortal(f.jsx(tn,{scope:e.__scopeSelect,children:f.jsx(_e.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),i):null}return f.jsx(nn,{...e,ref:t})});en.displayName=le;var G=10,[tn,ae]=he(le),Lo="SelectContentImpl",Do=Ae("SelectContent.RemoveScroll"),nn=o.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:c,side:s,sideOffset:u,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:S,sticky:x,hideWhenDetached:l,avoidCollisions:v,...y}=e,m=oe(le,n),[w,b]=o.useState(null),[P,T]=o.useState(null),E=L(t,C=>b(C)),[O,D]=o.useState(null),[V,$]=o.useState(null),z=Le(n),[H,X]=o.useState(!1),K=o.useRef(!1);o.useEffect(()=>{if(w)return Ur(w)},[w]),ur();const j=o.useCallback(C=>{const[A,...B]=z().map(I=>I.ref.current),[N]=B.slice(-1),R=document.activeElement;for(const I of C)if(I===R||(I==null||I.scrollIntoView({block:"nearest"}),I===A&&P&&(P.scrollTop=0),I===N&&P&&(P.scrollTop=P.scrollHeight),I==null||I.focus(),document.activeElement!==R))return},[z,P]),F=o.useCallback(()=>j([O,w]),[j,O,w]);o.useEffect(()=>{H&&F()},[H,F]);const{onOpenChange:k,triggerPointerDownPosRef:Z}=m;o.useEffect(()=>{if(w){let C={x:0,y:0};const A=N=>{var R,I;C={x:Math.abs(Math.round(N.pageX)-(((R=Z.current)==null?void 0:R.x)??0)),y:Math.abs(Math.round(N.pageY)-(((I=Z.current)==null?void 0:I.y)??0))}},B=N=>{C.x<=10&&C.y<=10?N.preventDefault():w.contains(N.target)||k(!1),document.removeEventListener("pointermove",A),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",A),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",A),document.removeEventListener("pointerup",B,{capture:!0})}}},[w,k,Z]),o.useEffect(()=>{const C=()=>k(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[k]);const[me,Q]=wn(C=>{const A=z().filter(R=>!R.disabled),B=A.find(R=>R.ref.current===document.activeElement),N=yn(A,C,B);N&&setTimeout(()=>N.ref.current.focus())}),ge=o.useCallback((C,A,B)=>{const N=!K.current&&!B;(m.value!==void 0&&m.value===A||N)&&(D(C),N&&(K.current=!0))},[m.value]),we=o.useCallback(()=>w==null?void 0:w.focus(),[w]),ee=o.useCallback((C,A,B)=>{const N=!K.current&&!B;(m.value!==void 0&&m.value===A||N)&&$(C)},[m.value]),ue=r==="popper"?Ye:rn,se=ue===Ye?{side:s,sideOffset:u,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:S,sticky:x,hideWhenDetached:l,avoidCollisions:v}:{};return f.jsx(tn,{scope:n,content:w,viewport:P,onViewportChange:T,itemRefCallback:ge,selectedItem:O,onItemLeave:we,itemTextRefCallback:ee,focusSelectedItem:F,selectedItemText:V,position:r,isPositioned:H,searchRef:me,children:f.jsx(Yt,{as:Do,allowPinchZoom:!0,children:f.jsx(Et,{asChild:!0,trapped:m.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:_(a,C=>{var A;(A=m.trigger)==null||A.focus({preventScroll:!0}),C.preventDefault()}),children:f.jsx(bt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:f.jsx(ue,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:C=>C.preventDefault(),...y,...se,onPlaced:()=>X(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:_(y.onKeyDown,C=>{const A=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!A&&C.key.length===1&&Q(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let N=z().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(C.key)&&(N=N.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const R=C.target,I=N.indexOf(R);N=N.slice(I+1)}setTimeout(()=>j(N)),C.preventDefault()}})})})})})})});nn.displayName=Lo;var jo="SelectItemAlignedPosition",rn=o.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,i=oe(le,n),c=ae(le,n),[s,u]=o.useState(null),[d,p]=o.useState(null),h=L(t,E=>p(E)),g=Le(n),S=o.useRef(!1),x=o.useRef(!0),{viewport:l,selectedItem:v,selectedItemText:y,focusSelectedItem:m}=c,w=o.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&d&&l&&v&&y){const E=i.trigger.getBoundingClientRect(),O=d.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),V=y.getBoundingClientRect();if(i.dir!=="rtl"){const R=V.left-O.left,I=D.left-R,U=E.left-I,q=E.width+U,ye=Math.max(q,O.width),Se=window.innerWidth-G,xe=ot(I,[G,Math.max(G,Se-ye)]);s.style.minWidth=q+"px",s.style.left=xe+"px"}else{const R=O.right-V.right,I=window.innerWidth-D.right-R,U=window.innerWidth-E.right-I,q=E.width+U,ye=Math.max(q,O.width),Se=window.innerWidth-G,xe=ot(I,[G,Math.max(G,Se-ye)]);s.style.minWidth=q+"px",s.style.right=xe+"px"}const $=g(),z=window.innerHeight-G*2,H=l.scrollHeight,X=window.getComputedStyle(d),K=parseInt(X.borderTopWidth,10),j=parseInt(X.paddingTop,10),F=parseInt(X.borderBottomWidth,10),k=parseInt(X.paddingBottom,10),Z=K+j+H+k+F,me=Math.min(v.offsetHeight*5,Z),Q=window.getComputedStyle(l),ge=parseInt(Q.paddingTop,10),we=parseInt(Q.paddingBottom,10),ee=E.top+E.height/2-G,ue=z-ee,se=v.offsetHeight/2,C=v.offsetTop+se,A=K+j+C,B=Z-A;if(A<=ee){const R=$.length>0&&v===$[$.length-1].ref.current;s.style.bottom="0px";const I=d.clientHeight-l.offsetTop-l.offsetHeight,U=Math.max(ue,se+(R?we:0)+I+F),q=A+U;s.style.height=q+"px"}else{const R=$.length>0&&v===$[0].ref.current;s.style.top="0px";const U=Math.max(ee,K+l.offsetTop+(R?ge:0)+se)+B;s.style.height=U+"px",l.scrollTop=A-ee+l.offsetTop}s.style.margin=`${G}px 0`,s.style.minHeight=me+"px",s.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>S.current=!0)}},[g,i.trigger,i.valueNode,s,d,l,v,y,i.dir,r]);W(()=>w(),[w]);const[b,P]=o.useState();W(()=>{d&&P(window.getComputedStyle(d).zIndex)},[d]);const T=o.useCallback(E=>{E&&x.current===!0&&(w(),m==null||m(),x.current=!1)},[w,m]);return f.jsx(Bo,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:S,onScrollButtonChange:T,children:f.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:f.jsx(M.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});rn.displayName=jo;var ko="SelectPopperPosition",Ye=o.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=G,...i}=e,c=De(n);return f.jsx(Or,{...c,...i,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ye.displayName=ko;var[Bo,nt]=he(le,{}),ze="SelectViewport",on=o.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,i=ae(ze,n),c=nt(ze,n),s=L(t,i.onViewportChange),u=o.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),f.jsx(_e.Slot,{scope:n,children:f.jsx(M.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:_(a.onScroll,d=>{const p=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=c;if(g!=null&&g.current&&h){const S=Math.abs(u.current-p.scrollTop);if(S>0){const x=window.innerHeight-G*2,l=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(l,v);if(y<x){const m=y+S,w=Math.min(x,m),b=m-w;h.style.height=w+"px",h.style.bottom==="0px"&&(p.scrollTop=b>0?b:0,h.style.justifyContent="flex-end")}}}u.current=p.scrollTop})})})]})});on.displayName=ze;var an="SelectGroup",[Fo,Wo]=he(an),Vo=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Je();return f.jsx(Fo,{scope:n,id:a,children:f.jsx(M.div,{role:"group","aria-labelledby":a,...r,ref:t})})});Vo.displayName=an;var sn="SelectLabel",Ho=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Wo(sn,n);return f.jsx(M.div,{id:a.id,...r,ref:t})});Ho.displayName=sn;var Oe="SelectItem",[Uo,cn]=he(Oe),ln=o.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:i,...c}=e,s=oe(Oe,n),u=ae(Oe,n),d=s.value===r,[p,h]=o.useState(i??""),[g,S]=o.useState(!1),x=L(t,m=>{var w;return(w=u.itemRefCallback)==null?void 0:w.call(u,m,r,a)}),l=Je(),v=o.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(Uo,{scope:n,value:r,disabled:a,textId:l,isSelected:d,onItemTextChange:o.useCallback(m=>{h(w=>w||((m==null?void 0:m.textContent)??"").trim())},[]),children:f.jsx(_e.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:f.jsx(M.div,{role:"option","aria-labelledby":l,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:x,onFocus:_(c.onFocus,()=>S(!0)),onBlur:_(c.onBlur,()=>S(!1)),onClick:_(c.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:_(c.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:_(c.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:_(c.onPointerMove,m=>{var w;v.current=m.pointerType,a?(w=u.onItemLeave)==null||w.call(u):v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(c.onPointerLeave,m=>{var w;m.currentTarget===document.activeElement&&((w=u.onItemLeave)==null||w.call(u))}),onKeyDown:_(c.onKeyDown,m=>{var b;((b=u.searchRef)==null?void 0:b.current)!==""&&m.key===" "||(Io.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})})})})});ln.displayName=Oe;var be="SelectItemText",un=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...i}=e,c=oe(be,n),s=ae(be,n),u=cn(be,n),d=Oo(be,n),[p,h]=o.useState(null),g=L(t,y=>h(y),u.onItemTextChange,y=>{var m;return(m=s.itemTextRefCallback)==null?void 0:m.call(s,y,u.value,u.disabled)}),S=p==null?void 0:p.textContent,x=o.useMemo(()=>f.jsx("option",{value:u.value,disabled:u.disabled,children:S},u.value),[u.disabled,u.value,S]),{onNativeOptionAdd:l,onNativeOptionRemove:v}=d;return W(()=>(l(x),()=>v(x)),[l,v,x]),f.jsxs(f.Fragment,{children:[f.jsx(M.span,{id:u.textId,...i,ref:g}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?qe.createPortal(i.children,c.valueNode):null]})});un.displayName=be;var dn="SelectItemIndicator",fn=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cn(dn,n).isSelected?f.jsx(M.span,{"aria-hidden":!0,...r,ref:t}):null});fn.displayName=dn;var Xe="SelectScrollUpButton",pn=o.forwardRef((e,t)=>{const n=ae(Xe,e.__scopeSelect),r=nt(Xe,e.__scopeSelect),[a,i]=o.useState(!1),c=L(t,r.onScrollButtonChange);return W(()=>{if(n.viewport&&n.isPositioned){let s=function(){const d=u.scrollTop>0;i(d)};const u=n.viewport;return s(),u.addEventListener("scroll",s),()=>u.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?f.jsx(hn,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:u}=n;s&&u&&(s.scrollTop=s.scrollTop-u.offsetHeight)}}):null});pn.displayName=Xe;var Ze="SelectScrollDownButton",vn=o.forwardRef((e,t)=>{const n=ae(Ze,e.__scopeSelect),r=nt(Ze,e.__scopeSelect),[a,i]=o.useState(!1),c=L(t,r.onScrollButtonChange);return W(()=>{if(n.viewport&&n.isPositioned){let s=function(){const d=u.scrollHeight-u.clientHeight,p=Math.ceil(u.scrollTop)<d;i(p)};const u=n.viewport;return s(),u.addEventListener("scroll",s),()=>u.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?f.jsx(hn,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:u}=n;s&&u&&(s.scrollTop=s.scrollTop+u.offsetHeight)}}):null});vn.displayName=Ze;var hn=o.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,i=ae("SelectScrollButton",n),c=o.useRef(null),s=Le(n),u=o.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return o.useEffect(()=>()=>u(),[u]),W(()=>{var p;const d=s().find(h=>h.ref.current===document.activeElement);(p=d==null?void 0:d.ref.current)==null||p.scrollIntoView({block:"nearest"})},[s]),f.jsx(M.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:_(a.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:_(a.onPointerMove,()=>{var d;(d=i.onItemLeave)==null||d.call(i),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:_(a.onPointerLeave,()=>{u()})})}),$o="SelectSeparator",Ko=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return f.jsx(M.div,{"aria-hidden":!0,...r,ref:t})});Ko.displayName=$o;var Ge="SelectArrow",Yo=o.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=De(n),i=oe(Ge,n),c=ae(Ge,n);return i.open&&c.position==="popper"?f.jsx(Mr,{...a,...r,ref:t}):null});Yo.displayName=Ge;var zo="SelectBubbleInput",mn=o.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=o.useRef(null),i=L(r,a),c=kr(t);return o.useEffect(()=>{const s=a.current;if(!s)return;const u=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(u,"value").set;if(c!==t&&p){const h=new Event("change",{bubbles:!0});p.call(s,t),s.dispatchEvent(h)}},[c,t]),f.jsx(M.select,{...n,style:{...Bt,...n.style},ref:i,defaultValue:t})});mn.displayName=zo;function gn(e){return e===""||e===void 0}function wn(e){const t=ie(e),n=o.useRef(""),r=o.useRef(0),a=o.useCallback(c=>{const s=n.current+c;t(s),function u(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(s)},[t]),i=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,i]}function yn(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=Xo(e,Math.max(i,0));a.length===1&&(c=c.filter(d=>d!==n));const u=c.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return u!==n?u:void 0}function Xo(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zo=zt,Go=Zt,qo=qt,Qo=Qt,Jo=Jt,ea=en,ta=on,na=ln,ra=un,oa=fn,aa=pn,sa=vn;const ia=J.forwardRef(function({list:t=[],required:n=!1,disabled:r=!1,autoFocus:a=!1,size:i=Y.md,name:c,value:s="default",className:u,onChange:d},p){const h=t.find(g=>g.value===s)??t[0]??{value:s};return r=r||t.length<2,f.jsxs(Zo,{name:c,value:h.value,disabled:r,required:n,onValueChange:d,children:[f.jsxs(Go,{ref:p,className:re(u,r&&"opacity-50 cursor-not-allowed"),autoFocus:a,children:[f.jsx(qo,{}),f.jsx(Qo,{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1",children:f.jsx(Wn,{className:"w-4","aria-hidden":"true"})})]}),f.jsx(Jo,{children:f.jsxs(ea,{className:re("overflow-auto rounded-md bg-theme p-1 shadow-2xl border-2 border-neutral-200 dark:border-neutral-700 ring-opacity-5 focus:outline-none",i===Y.sm&&"text-xs",i===Y.md&&"text-sm",i===Y.lg&&"text-sm"),children:[f.jsx(aa,{className:"flex items-center justify-center h-3 cursor-default",children:f.jsx(Hn,{className:"w-4","aria-hidden":"true"})}),f.jsx(ta,{className:"p-1",children:t.map(({text:g,value:S})=>f.jsx(ca,{value:S,children:g},S))}),f.jsx(sa,{className:"flex items-center justify-center h-3 cursor-default",children:f.jsx(Bn,{className:"w-4","aria-hidden":"true"})})]})})]})});function ca({disabled:e=!1,value:t,children:n,className:r}){return f.jsxs(na,{value:t,className:re("leading-none rounded-md flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-brand-500 data-[highlighted]:text-brand-100",e&&"opacity-50 cursor-not-allowed",r),children:[f.jsx(ra,{children:n}),f.jsx(oa,{className:"absolute left-0 w-4 inline-flex items-center justify-center",children:f.jsx(jn,{})})]})}function je({label:e,info:t,size:n=Y.md,className:r,children:a,disabled:i=!1,required:c=!1,autoFocus:s=!1}){const u=re("text-left relative block bg-theme-lighter border-neutral-200 dark:border-neutral-700","focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",n===Y.sm&&"px-2 py-0.5 text-xs leading-4 border-2 focus:ring-2 rounded-[0.25rem] min-w-[7rem]",n===Y.md&&"px-3 py-2 text-sm leading-4 border-2 focus:ring-4 rounded-md min-w-[10rem]",n===Y.lg&&"px-3 py-2 text-sm leading-6 border-2 focus:ring-4 rounded-md min-w-[10rem]");return f.jsxs("div",{className:re("inline-block relative m-1 text-left",i&&"opacity-50 cursor-not-allowed",r),children:[rt(e)&&f.jsx(Sn,{size:n,children:e}),typeof a=="function"?a({disabled:i,required:c,autoFocus:s,size:n,className:u}):a,rt(t)&&f.jsx(xn,{children:t})]})}function Sn({htmlFor:e,className:t,children:n,size:r=Y.md}){return f.jsx("label",{htmlFor:e,className:re("block mb-1 px-2 text-sm whitespace-nowrap",r===Y.sm&&"text-xs",r===Y.md&&"text-sm",r===Y.lg&&"text-md",t),children:n})}function xn({className:e,children:t}){return f.jsx("small",{className:re("block text-xs mt-1 px-3 text-neutral-400 dark:text-neutral-600",e),children:t})}je.Label=Sn;je.Info=xn;je.Textfield=Un;je.Selector=ia;export{Ar as A,Or as C,bt as D,Et as F,je as I,M as P,Yt as R,W as a,qn as b,Qe as c,Je as d,_ as e,Jn as f,pt as g,ie as h,Tt as i,Ur as j,ur as k,Ae as l,Mr as m,Kn as n,tr as o,Nr as p,kt as q,Wn as r,Hn as s,Bn as t,L as u,jn as v};
@@ -1 +0,0 @@
1
- import{s as u,Q as c,a as n,v as a,j as s,e as f}from"./index-DyVIXHW8.js";import{L as g}from"./context-BvCFukJL.js";import x from"./ModelLineage-BUzz3_b3.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./floating-ui.react-dom-tGq145Jn.js";import"./editor-BNLMfBQ6.js";import"./file-DYQzDhLd.js";import"./project-DuzSX7Ps.js";import"./help-6Q7f7fjd.js";import"./SourceList-B1uchtse.js";import"./Input-ta8tMqGc.js";import"./index-Dafo7IQA.js";import"./popover-CViXjwzR.js";import"./ListboxShow-CNU6pC5Q.js";import"./SearchList-COHTRb0L.js";function S(){const l=u(),{modelName:t}=c(),i=n(e=>e.models),o=n(e=>e.lastSelectedModel),r=a(t)||t===(o==null?void 0:o.name)?o:i.get(encodeURI(t));function d(e){const m=i.get(e);a(m)||l(f.LineageModels+"/"+m.name)}function p(e){console.log(e==null?void 0:e.message)}return s.jsx("div",{className:"flex overflow-hidden w-full h-full",children:s.jsx(g,{showColumns:!0,handleClickModel:d,handleError:p,children:s.jsx(x,{model:r})})})}export{S as default};