PageSourceSearch

https://www.propertydatalabs.com/_next/static/immutable/chunks/44zxpvr7q1f7m.js

js propertydatalabs.com collected 2026-10-02 00:56:06 UTC 87,723 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f65fcfa9-e243-23c6-da47-31df06def5a9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,315001,e=>{"use strict";var t=e.i(450654),n=e.i(323562),i=e.i(175938),r=i,o=e.i(693834);let s=(e,t)=>!("u"<typeof Element)&&t instanceof Element&&t.tagName.toUpperCase()===e,l=e=>s("DIV",e)||s("SPAN",e),a=e=>e.complete&&0!==e.naturalHeight,u=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,d=e=>{if(null!==e){if(s("IMG",e))return""===e.currentSrc?void 0:e.currentSrc;else if(l(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return u.exec(t)?.[1]}}},c=e=>{if(null==e)return{};if(!s("SVG",e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let{parentElement:t}=e,n=e.getBoundingClientRect();if(null==t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},h=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),f=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:i,targetHeight:r,targetWidth:o})=>0===e||0===t?1:n||0===r||0===o?h({height:e,offset:i,width:t}):(({containerHeight:e,containerWidth:t,offset:n,targetHeight:i,targetWidth:r})=>{let o=h({height:i,offset:n,width:r}),s=r>i?r/t:i/e;return o>1?s:o*s})({containerHeight:e,containerWidth:t,offset:i,targetHeight:r,targetWidth:o}),m=(e,t)=>{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},p=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:o,position:s,targetHeight:l,targetWidth:a,visibleHeight:u,visibleWidth:d})=>{let[c="50%",h="50%"]=s.split(" "),p=m(c,i-d),g=m(h,e-u),v=f({containerHeight:u,containerWidth:d,hasScalableSrc:r,offset:o,targetHeight:l,targetWidth:a});return{top:n+g,left:t+p,width:d*v,height:u*v,initialTransform:`translate(0,0) scale(${1/v})`}},g=({fallback:e,natural:t})=>void 0!==t&&0!==t?t:e,v=/\.svg$/i,b=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),w={overflow:"",width:""};function y(e){e.preventDefault()}function x(e){return r.default.createElement(E,{...e})}class E extends r.default.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=r.default.createRef(),this.refDialog=r.default.createRef(),this.refModalContent=r.default.createRef(),this.refModalImg=r.default.createRef(),this.refWrap=r.default.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=w,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;"LOADING"!==e&&"LOADING"===t?(this.isScaling=!1,this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;null!=e&&(this.imgEl=e.querySelector(b),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.img
2El.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),null==this.state.loadedImgEl&&this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:c(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:c(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=d(this.imgEl);if(null==e||""===e)return;let t=new Image,{imgEl:n}=this;if(s("IMG",n)){let{sizes:e,srcset:i,crossOrigin:r}=n;t.sizes=e,t.srcset=i,t.crossOrigin=r}t.src=e;let i=()=>{this.setState({loadedImgEl:t,styleGhost:c(this.imgEl)})};t.decode().then(i).catch(()=>{a(t)?i():t.onload=i})},this.handleZoom=e=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||this.isScaling||(window.visualViewport?.scale??1)>1||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[n]=t;if(1===t.length&&void 0!==n){let{screenY:e}=n;this.touchYStart=e}},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1,{changedTouches:n}=e,[i]=n;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==i){let{screenY:t}=i;this.touchYEnd=t,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||s("SVG",this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
2{if(null!==this.refModalImg.current){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(0!==t&&!Number.isNaN(t)){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{let e=document.body.style;this.prevBodyAttrs={overflow:e.overflow,width:e.width};let t=document.body.clientWidth;e.overflow="hidden",e.width=`${t}px`},this.bodyScrollEnable=()=>{let e=document.body.style,t=this.prevBodyAttrs;e.width=t.width,e.overflow=t.overflow,this.prevBodyAttrs=w},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(null==e)return;let{src:t}=e;if(void 0!==t&&""!==t){let n=new Image;n.sizes=e.sizes??"",n.srcset=e.srcSet??"",n.crossOrigin=e.crossOrigin??void 0,n.src=t;let i=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(i).catch(()=>{a(n)?i():n.onload=i})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(s("SVG",e)){let i=e.cloneNode(!0);(e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],i=new Map;if(e.hasAttribute("id")){let{id:n}=e,r=n+t;i.set(n,r),e.id=r}e.querySelectorAll("[id]").forEach(e=>{let{id:n}=e,r=n+t;i.set(n,r),e.id=r});let r=n.map(e=>`[${e}]`).join(", ");e.querySelectorAll(r).forEach(e=>{for(let t of n){let n=e.getAttribute(t);if(n?.startsWith("url(#")===!0){let r=n.slice(5,-1),o=i.get(r);void 0!==o&&e.setAttribute(t,`url(#${o})`)}}}),e.querySelectorAll("style").forEach(e=>{let{textContent:t}=e;if(""!==t){let n=t;i.forEach((e,t)=>{n=n.replaceAll(`#${t}`,`#${e}`)}),n!==t&&(e.textContent=n)}})})(i),i.style.width=`${n.width??0}px`,i.style.height=`${n.height??0}px`,i.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove(),t.current?.appendChild(i)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:t,handleDialogClose:n,handleUnzoom:i,handleZoom:a,imgEl:u,props:{a11yNameButtonUnzoom:c,a11yNameButtonZoom:h,children:b,classDialog:w,IconUnzoom:x,IconZoom:E,wrapElement:S,ZoomContent:L,zoomImg:I,zoomMargin:C},refContent:T,refDialog:z,refModalContent:D,refModalImg:N,refWrap:k,state:{id:O,isZoomImgLoaded:M,loadedImgEl:A,modalState:j,shouldRefresh:R,styleGhost:F}}=this,U=`rmiz-modal-${O}`,P=`rmiz-modal-img-${O}`,$=l(u),B=s("IMG",u),G=s("SVG",u),H=(e=>{if(null!==e)if(s("IMG",e))return e.alt;else return e.getAttribute("aria-label")??void 0})(u),W=d(u),V=B?u.sizes:void 0,Z=B?u.srcset:void 0,Y=B?u.crossOrigin:void 0,K=I?.src!==void 0&&""!==I.src,q=this.hasImage(),_=void 0!==H&&""!==H?`${h}: ${H}`:h,J="LOADING"===j||"LOADED"===j,X=q?"found":"not-found",Q="UNLOADED"===j||"UNLOADING"===j?"hidden":"visible";this.styleModalImg=q&&null!==u?(({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:i,loadedImgEl:r,offset:o,shouldRefresh:s,targetEl:a})=>{let u=(({hasZoomImg:e,imgSrc:t,isSvg:n})=>n||t?.slice(0,18)==="data:image/svg+xml"||e||void 0!==t&&v.test(t))({hasZoomImg:e,imgSrc:t,isSvg:n}),d=a.getBoundingClientRect(),c=window.getComputedStyle(a),h=null!=r&&l(a),b=null!=r&&!h,w=g({fallback:d.height,natural:r?.naturalHeight}),y=g({fallback:d.width,natural:r?.naturalWidth}),{height:x,left:E,top:S,width:L}=d,I=h?(({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:i,containerTop:r,containerWidth:o,hasScalableSrc:s,offset:l,targetHeight:a,targetWidth:u})=>{let d={containerHeight:n,containerLeft:i,containerTop:r,containerWidth:o,hasScalableSrc:s,offset:l,position:e,targetHeight:a,targetWidth:u};if("cover"===t||"contain"===t){let e=o/u,i=n/a,r="cover"===t?Math.max(e,i):Math.min(e,i);return p({...d,visibleWidth:u*r,visibleHeight:a*r})}{if("auto"===t)return p({...d,visibleWidth:u,visibleHeight:a});let[e="50%",i="50%"]=t.split(" "),r=Math.min(m(e,o)/u,m(i,n)/a);return p({...d,visibleWidth:u*r,visibleHeight:a*r})}})({backgroundPosition:c.backgroundPosition,backgroundSize:c.backgroundSize,containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:u,offset:o,targetHeight:w,targetWidth:y}):b?(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,objectFit:o,objectPosition:s,offset:l,targetHeight:a,targetWidth:u})=>{let d=o;"scale-down"===d&&(d=u<=i&&a<=e?"none":"contain");let c={containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:l,position:s,targetHeight:a,targetWidth:u};
2if("cover"===d||"contain"===d){let t=i/u,n=e/a,r="cover"===d?Math.max(t,n):Math.min(t,n);return p({...c,visibleWidth:u*r,visibleHeight:a*r})}{if("none"===d)return p({...c,visibleWidth:u,visibleHeight:a});let o=Math.max(i/u,e/a),s=f({containerHeight:a*o,containerWidth:u*o,hasScalableSrc:r,offset:l,targetHeight:a,targetWidth:u});return{top:n,left:t,width:i*s,height:e*s,initialTransform:`translate(0,0) scale(${1/s})`}}})({containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:u,objectFit:c.objectFit,objectPosition:c.objectPosition,offset:o,targetHeight:w,targetWidth:y}):(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:o,targetHeight:s,targetWidth:l})=>{let a=f({containerHeight:e,containerWidth:i,hasScalableSrc:r,offset:o,targetHeight:s,targetWidth:l});return{top:n,left:t,width:i*a,height:e*a,initialTransform:`translate(0,0) scale(${1/a})`}})({containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:u,offset:o,targetHeight:w,targetWidth:y}),C={top:I.top,left:I.left,width:I.width,height:I.height,transform:(({height:e,initialTransform:t,isZoomed:n,left:i,top:r,userTransform:o,width:s})=>{let l="";if("none"!==o&&""!==o){let t=s/2,n=e/2;l=`translate(${t}px,${n}px) ${o} translate(${-t}px,${-n}px)`}if(!n)return""===l?t:`${t} ${l}`;let a=window.innerWidth/2,u=window.innerHeight/2,d=`translate(${a-(i+s/2)}px,${u-(r+e/2)}px) scale(1)`;return""===l?d:`${d} ${l}`})({...I,isZoomed:i,userTransform:c.transform})};return i&&s&&(C.transitionDuration="0.01ms"),C}
2)({hasZoomImg:K,imgSrc:W,isSvg:G,isZoomed:J,loadedImgEl:A,offset:C,shouldRefresh:R,targetEl:u}):{};let ee=null;if(q){let t=B||$?r.default.createElement("img",{alt:H,crossOrigin:Y,sizes:V,src:W,srcSet:Z,...M&&"LOADED"===j?I:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:P,onTransitionEnd:this.handleImgTransitionEnd,ref:N,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):G?r.default.createElement("div",{"data-rmiz-modal-img":!0,onTransitionEnd:this.handleImgTransitionEnd,ref:N,style:this.styleModalImg}):null,n=r.default.createElement("button",{"aria-label":c,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},r.default.createElement(x,null));ee=null==L?r.default.createElement(r.default.Fragment,null,t,n):r.default.createElement(L,{buttonUnzoom:n,modalState:j,img:t,isZoomImgLoaded:M,onUnzoom:i})}return r.default.createElement(S,{"data-rmiz":"",ref:k},r.default.createElement(S,{"data-rmiz-content":X,ref:T,style:{visibility:"UNLOADED"===j?"visible":"hidden"}},b),q&&r.default.createElement(S,{"data-rmiz-ghost":"",style:F},r.default.createElement("button",{"aria-label":_,"data-rmiz-btn-zoom":"",onClick:a,type:"button"},r.default.createElement(E,null))),q&&o.default.createPortal(r.default.createElement("dialog",{"aria-labelledby":P,"aria-modal":"true",className:w,"data-rmiz-modal":"",id:U,onClick:t,onClose:n,onCancel:y,ref:z,role:"dialog"},r.default.createElement("div",{"data-rmiz-modal-overlay":Q}),r.default.createElement("div",{"data-rmiz-modal-content":"",ref:D},ee)),function(){let e=document.querySelector("[data-rmiz-portal]");if(null!=e)return e;let t=document.createElement("div");return t.setAttribute("data-rmiz-portal",""),document.body.appendChild(t),t}()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener("load",this.handleImgLoad),this.imgEl?.removeEventListener("click",this.handleZoom),clearTimeout(this.timeoutTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function S({onZoomChange:e,...t}){let[n,r]=i.default.useState(!1),o=i.default.useCallback((t,{event:n})=>{r(t),e?.(t,{event:n})},[e]);return i.default.createElement(x,{...t,isZoomed:n,onZoomChange:o})}E.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return r.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return r.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0},e.s(["default",0,e=>(0,t.jsx)(S,{zoomImg:{src:e.src,width:"100%",loading:"lazy"},children:(0,t.jsx)(n.default,{alt:e.alt,src:e.src,width:e.width,height:e.height,priority:e.priority,className:"rounded-md shadow-md"})})],315001)},398624,e=>{"use strict";var t=e.i(450654),n=e.i(518071),i=e.i(175938);let r=new Map;function o(e,t){let n=r.get(e);if(n)return n;let i=t();return r.set(e,i),i}function s({chart:r}){let l=(0,i.useId)(),{resolvedTheme:a}=(0,n.useTheme)(),{default:u}=(0,i.use)(o("mermaid",()=>e.A(6646))),{svg:d,bindFunctions:c}=(0,i.use)(o(`${r}-${a}-v3`,()=>("dark"===a?u.initialize({startOnLoad:!1,securityLevel:"loose",fontFamily:"inherit",theme:"base",themeVariables:{darkMode:!0,background:"#0f172a",primaryColor:"#1e40af",primaryTextColor:"#e2e8f0",primaryBorderColor:"#3b82f6",lineColor:"#64748b",secondaryColor:"#334155",tertiaryColor:"#475569",mainBkg:"#1e293b",secondBkg:"#334155",mainContrastColor:"#e2e8f0",darkTextColor:"#e2e8f0",border1:"#475569",border2:"#64748b",note:"#1e293b",noteBorder:"#475569",noteBkgColor:"#1e293b",noteTextColor:"#e2e8f0",text:"#e2e8f0",critical:"#dc2626",done:"#16a34a",activeText:"#e2e8f0",labelTextColor:"#e2e8f0",loopTextColor:"#e2e8f0",clusterBkg:"#1e293b",clusterBorder:"#475569",defaultLinkColor:"#64748b",edgeLabelBackgroun
2d:"#1e293b",nodeTextColor:"#e2e8f0"}}):u.initialize({startOnLoad:!1,securityLevel:"loose",fontFamily:"inherit",theme:"default"}),u.render(l,r.replaceAll("\\n","\n")))));return(0,t.jsx)("div",{className:"my-6 overflow-x-auto",children:(0,t.jsx)("div",{ref:e=>{e&&c?.(e)},dangerouslySetInnerHTML:{__html:d}})})}e.s(["MdxMermaidDiagram",0,function({chart:e}){let[n,r]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{r(!0)},[]),n)?(0,t.jsx)(s,{chart:e}):null}])},234814,e=>{"use strict";var t=e.i(450654),n=e.i(175938),i=e.i(152236);e.s(["default",0,({url:e,title:r})=>{let[o,s]=(0,n.useState)(!1),l=(0,n.useRef)(null),a=function(e,{threshold:t=0,root:i=null,rootMargin:r="0%",freezeOnceVisible:o=!1}){let[s,l]=(0,n.useState)(),a=s?.isIntersecting&&o,u=(0,n.useCallback)(([e])=>{l(e)},[]);return(0,n.useEffect)(()=>{let n=e.current;if(!window.IntersectionObserver||a||!n)return;let o=new IntersectionObserver(u,{threshold:t,root:i,rootMargin:r});return o.observe(n),()=>o.disconnect()},[e.current,a,t,i,r,u]),s}(l,{threshold:0,root:null,rootMargin:"0px"});return(0,t.jsx)("div",{ref:l,className:"h-full",children:a?.isIntersecting&&(0,t.jsx)("iframe",{title:r,src:e,"data-loaded":o,onLoad:()=>s(!0),className:(0,i.cn)("size-full h-full rounded-lg",{"animate-pulse bg-muted":!o}),allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}],234814)},663684,e=>{"use strict";var t=e.i(450654);let n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,r,o,s,l=null,a=0,u=!1,d=!1,c=!1,h=!1;function f(){if(!o){if(g()){c=!0;return}u||r.emit("autoplay:play"),function(){let{ownerWindow:e}=r.internalEngine();e.clearTimeout(a),a=e.setTimeout(x,s[r.selectedScrollSnap()]),l=new Date().getTime(),r.emit("autoplay:timerset")}(),u=!0}}function m(){o||(u&&r.emit("autoplay:stop"),function(){let{ownerWindow:e}=r.internalEngine();e.clearTimeout(a),a=0,l=null,r.emit("autoplay:timerstopped")}(),u=!1)}function p(){if(g())return c=u,m();c&&f()}function g(){let{ownerDocument:e}=r.internalEngine();return"hidden"===e.visibilityState}function v(){d||m()}function b(){d||f()}function w(){d=!0,m()}function y(){d=!1,f()}function x(){let{index:e}=r.internalEngine(),n=e.clone().add(1).get(),i=r.scrollSnapList().length-1,o=t.stopOnLastSnap&&n===i;if(r.canScrollNext()?r.scrollNext(h):r.scrollTo(0,h),r.emit("autoplay:select"),o)return m();f()}return{name:"autoplay",options:e,init:function(l,a){var u,d,c,g;let x,E;r=l;let{mergeOptions:S,optionsAtMedia:L}=a,I=S(n,i.globalOptions);if(t=L(S(I,e)),r.scrollSnapList().length<=1)return;h=t.jump,o=!1,u=r,d=t.delay,x=u.scrollSnapList(),s="number"==typeof d?x.map(()=>d):d(x,u);let{eventStore:C,ownerDocument:T}=r.internalEngine(),z=!!r.internalEngine().options.watchDrag,D=(c=r,g=t.rootNode,E=c.rootNode(),g&&g(E)||E);C.add(T,"visibilitychange",p),z&&r.on("pointerDown",v),z&&!t.stopOnInteraction&&r.on("pointerUp",b),t.stopOnMouseEnter&&C.add(D,"mouseenter",w),t.stopOnMouseEnter&&!t.stopOnInteraction&&C.add(D,"mouseleave",y),t.stopOnFocusIn&&r.on("slideFocusStart",m),t.stopOnFocusIn&&!t.stopOnInteraction&&C.add(r.containerNode(),"focusout",f),t.playOnInit&&f()},destroy:function(){r.off("pointerDown",v).off("pointerUp",b).off("slideFocusStart",m),m(),o=!0,u=!1},play:function(e){void 0!==e&&(h=e),f()},stop:function(){u&&m()},reset:function(){u&&f()},isPlaying:function(){return u},timeUntilNext:function(){return l?s[r.selectedScrollSnap()]-(new Date().getTime()-l):null}}}i.globalOptions=void 0;var r=e.i(323562),o=e.i(175938),s=e.i(152236);function l(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function a(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let i=e[n],r=t[n];return"function"==typeof i?`${i}`==`${r}`:l(i)&&l(r)?a(i,r):i===r})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function d(e){return"number"==typeof e}function c(e){return"string"==typeof e}function h(e){return"boolean"==typeof e}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e){return Math.abs(e)}function p(e){return Math.sign(e)}function g(e){return y(e).map(Number)}function v(e){return e[b(e)]}function b(e){return Math.max(0,e.length-1)}function w(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function x(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function E(){let e=[],t={add:function(n,i,r,o={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(i,r,o),s=()=>n.removeEventListener(i,r,o)):(n.addListener(r),s=()=>n.removeListener(r)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function S(e=0,t=0){let n=m(e-t);function i(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return i(n)?n<e?e:t:n},reachedAny:i,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e}
2,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function L(e){let t=e;function n(e){return d(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function I(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style,r=null,o=!1;return{clear:function(){!o&&(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let s=Math.round(100*e.direction(t))/100;s!==r&&(i.transform=n(s),r=s)},toggleActive:function(e){o=!e}}}let C={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function T(e,t,n){let i,r,o,s,l,a,u,z,D=e.ownerDocument,N=D.defaultView,k=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>
2(y(n).forEach(i=>{let r=t[i],o=n[i],s=f(r)&&f(o);t[i]=s?e(r,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let i=n.breakpoints||{},r=y(i).filter(t=>e.matchMedia(t).matches).map(e=>i[e]).reduce((e,n)=>t(e,n),{});return t(n,r)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(N),O=(z=[],{init:function(e,t){return(z=t.filter(({options:e})=>!1!==k.optionsAtMedia(e).active)).forEach(t=>t.init(e,k)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){z=z.filter(e=>e.destroy())}}),M=E(),A=(r={},o={init:function(e){i=e},emit:function(e){return(r[e]||[]).forEach(t=>t(i,e)),o},off:function(e,t){return r[e]=(r[e]||[]).filter(e=>e!==t),o},on:function(e,t){return r[e]=(r[e]||[]).concat([t]),o},clear:function(){r={}}}),{mergeOptions:j,optionsAtMedia:R,optionsMediaQueries:F}=k,{on:U,off:P,emit:$}=A,B=!1,G=j(C,T.globalOptions),H=j(G),W=[];function V(t,n){B||(H=R(G=j(G,t)),W=n||W,function(){let{container:t,slides:n}=H;a=(c(t)?e.querySelector(t):t)||e.children[0];let i=c(n)?a.querySelectorAll(n):n;u=[].slice.call(i||a.children)}(),s=function t(n){let i=function(e,t,n,i,r,o,s){var l,a;let u,f,C,T,z,D,N,k,O,M,A,j,R,F,{align:U,axis:P,direction:$,startIndex:B,loop:G,duration:H,dragFree:W,dragThreshold:V,inViewThreshold:Z,slidesToScroll:Y,skipSnaps:K,containScroll:q,watchResize:_,watchSlides:J,watchDrag:X,watchFocus:Q}=o,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:r}=e;return{top:t,right:n+i,bottom:t+r,left:n,width:i,height:r}}},et=ee.measure(t),en=n.map(ee.measure),ei=(f="rtl"===$,T=(C="y"===P)||!f?1:-1,z=C?"top":f?"right":"left",D=C?"bottom":f?"left":"right",{scroll:C?"y":"x",cross:C?"x":"y",startEdge:z,endEdge:D,measureSize:function(e){let{height:t,width:n}=e;return C?t:n},direction:function(e){return e*T}}),er=ei.measureSize(et),eo={measure:function(e){return e/100*er}},es=(l=U,a=er,u={start:function(){return 0},center:function(e){return(a-e)/2},end:function(e){return a-e}},{measure:function(e,t){return c(l)?u[l](e):l(a,e,t)}}),el=!G&&!!q,{slideSizes:ea,slideSizesWithGaps:eu,startGap:ed,endGap:ec}=function(e,t,n,i,r,o){let{measureSize:s,startEdge:l,endEdge:a}=e,u=n[0]&&r,d=function(){if(!u)return 0;let e=n[0];return m(t[l]-e[l])}(),c=u?parseFloat(o.getComputedStyle(v(i)).getPropertyValue(`margin-${a}`)):0,h=n.map(s),f=n.map((e,t,n)=>{let i=t===b(n);return t?i?h[t]+c:n[t+1][l]-e[l]:h[t]+d}).map(m);return{slideSizes:h,slideSizesWithGaps:f,startGap:d,endGap:c}}(ei,et,en,n,G||!!q,r),eh=function(e,t,n,i,r,o,s,l){let{startEdge:a,endEdge:u,direction:c}=e,h=d(n);return{groupSlides:function(e){return h?g(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?g(e).reduce((n,d,h)=>{let f=v(n)||0,p=d===b(e),g=r[a]-o[f][a],w=r[a]-o[d][u],y=i||0!==f?0:c(s),x=m(w-(!i&&p?c(l):0)-(g+y));return h&&x>t+2&&n.push(d),p&&n.push(e.length),n},[]).map((t,n,i)=>{let r=Math.max(i[n-1]||0);return e.slice(r,t)}):[]}}}(ei,er,Y,G,et,en,ed,ec),{snaps:ef,snapsAligned:em}=function(e,t,n,i,r){let{startEdge:o,endEdge:s}=e,{groupSlides:l}=r,a=l(i).map(e=>v(e)[s]-e[0][o]).map(m).map(t.measure),u=i.map(e=>n[o]-e[o]).map(e=>-m(e)),d=l(u).map(e=>e[0]).map((e,t)=>e+a[t]);return{snaps:u,snapsAligned:d}}(ei,es,et,en,eh),ep=-v(ef)+v(eu),{snapsContained:eg,scrollContainLimit:ev}=function(e,t,n,i){let r,o,s=S(-t+e,0),l=n.map((e,t)=>{let{min:i,max:r}=s,o=s.constrain(e),l=t===b(n);return t?l||function(e,t){return 1>=m(e-t)}(i,o)?i:function(e,t){return 1>=m(e-t)}(r,o)?r:o:r}).map(e=>parseFloat(e.toFixed(3))),a=(r=l[0],o=v(l),S(l.lastIndexOf(r),l.indexOf(o)+1));return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===i)return l;let{min:n,max:r}=a;return l.slice(n,r)}(),scrollContainLimit:a}}(er,ep,em,q),eb=el?eg:em,{limit:ew}=(N=eb[0],{limit:S(G?N-ep:v(eb),N)}),ey=function e(t,n,i){let{constrain:r}=S(0,t),o=t+1,s=l(n);function l(e){return i?m((o+e)%o):r(e)}function a(){return e(t,s,i)}let u={get:function(){return s},set:function(e){return s=l(e),u},add:function(e){return a().set(s+e)},clone:a};return u}(b(eb),B,G),ex=ey.clone(),eE=g(n),eS=function(e,t,n,i){let r=E(),o=1e3/60,s=null,l=0,a=0;function u(e){if(!a)return;s||(s=e,n(),n());let r=e-s;for(s=e,l+=r;l>=o;)n(),l-=o;i(l/o),a&&(a=t.requestAnimationFrame(u))}function d(){t.cancelAnimationFrame(a),s=null,l=0,a=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(s=null,l=0)})},destroy:function(){d(),r.clear()},start:function(){a||(a=t.requestAnimationFrame(u))},stop:d,update:n,render:i}}(i,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,previousLocation:r,scrollLooper:o,slideLooper:s,dragHandler:l,animation:a,eventHandler:u,scrollBounds:d,options:{loop:c}},h)=>{let f=e.settled(),m=!d.shouldConstrain(),p=c?f:f&&m,g=p&&!l.pointerDown();g&&a.stop();let v=n.get()*h+r.get()*(1-h);
2i.set(v),c&&(o.loop(e.direction()),s.loop()),t.to(i.get()),g&&u.emit("settle"),p||u.emit("scroll")})(eF,e)),eL=eb[ey.get()],eI=L(eL),eC=L(eL),eT=L(eL),ez=L(eL),eD=function(e,t,n,i,r){let o=0,s=0,l=r,a=.68,u=e.get(),d=0;function c(e){return l=e,f}function h(e){return a=e,f}let f={direction:function(){return s},duration:function(){return l},velocity:function(){return o},seek:function(){let t=i.get()-e.get(),r=0;return l?(n.set(e),o+=t/l,o*=a,u+=o,e.add(o),r=u-d):(o=0,n.set(i),e.set(i),r=t),s=p(r),d=u,f},settled:function(){return .001>m(i.get()-t.get())},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return c(r)},useFriction:h,useDuration:c};return f}(eI,eT,eC,ez,H),eN=function(e,t,n,i,r){let{reachedAny:o,removeOffset:s,constrain:l}=i;function a(e){return e.concat().sort((e,t)=>m(e)-m(t))[0]}function u(t,i){let r=[t,t+n,t-n];if(!e)return t;if(!i)return a(r);let o=r.filter(e=>p(e)===i);return o.length?a(o):v(r)-n}return{byDistance:function(n,i){let a=r.get()+n,{index:d,distance:c}=function(n){let i=e?s(n):l(n),{index:r}=t.map((e,t)=>({diff:u(e-i,0),index:t})).sort((e,t)=>m(e.diff)-m(t.diff))[0];return{index:r,distance:i}}(a),h=!e&&o(a);if(!i||h)return{index:d,distance:n};let f=n+u(t[d]-c,0);return{index:d,distance:f}},byIndex:function(e,n){let i=u(t[e]-r.get(),n);return{index:e,distance:i}},shortcut:u}}(G,eb,ep,ew,ez),ek=function(e,t,n,i,r,o,s){function l(r){let l=r.distance,a=r.index!==t.get();
2o.add(l),l&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),a&&(n.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(e,t){l(r.byDistance(e,t))},index:function(e,n){let i=t.clone().set(e);l(r.byIndex(i.get(),n))}}}(eS,ey,ex,eD,eN,ez,s),eO=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ew),eM=E(),eA=(O={},M=null,A=null,j=!1,{init:function(){k=new IntersectionObserver(e=>{j||(e.forEach(e=>{O[n.indexOf(e.target)]=e}),M=null,A=null,s.emit("slidesInView"))},{root:t.parentElement,threshold:Z}),n.forEach(e=>k.observe(e))},destroy:function(){k&&k.disconnect(),j=!0},get:function(e=!0){if(e&&M)return M;if(!e&&A)return A;let t=y(O).reduce((t,n)=>{let i=parseInt(n),{isIntersecting:r}=O[i];return(e&&r||!e&&!r)&&t.push(i),t},[]);return e&&(M=t),e||(A=t),t}}),{slideRegistry:ej}=function(e,t,n,i,r,o){let s,{groupSlides:l}=r,{min:a,max:u}=i;return{slideRegistry:(s=l(o),1===n.length?[o]:e&&"keepSnaps"!==t?s.slice(a,u).map((e,t,n)=>{let i=t===b(n);return t?i?w(b(o)-v(n)[0]+1,v(n)[0]):e:w(v(n[0])+1)}):s)}}(el,q,eb,ev,eh,eE),eR=function(e,t,n,i,r,o,s,l){let a={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(f){l&&(o.add(document,"keydown",c,!1),t.forEach((t,c)=>{o.add(t,"focus",t=>{(h(l)||l(f,t))&&function(t){if(new Date().getTime()-u>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));d(o)&&(r.useDuration(0),i.index(o,0),s.emit("slideFocus"))}(c)},a)}))}}}(e,n,ej,ek,eD,eM,s,Q),eF={ownerDocument:i,ownerWindow:r,eventHandler:s,containerRect:et,slideRects:en,animation:eS,axis:ei,dragHandler:function(e,t,n,i,r,o,s,l,a,u,d,c,f,g,v,b,w,y){let{cross:L,direction:I}=e,C=["INPUT","SELECT","TEXTAREA"],T={passive:!1},z=E(),D=E(),N=S(50,225).constrain(g.measure(20)),k={mouse:300,touch:400},O={mouse:500,touch:600},M=v?43:25,A=!1,j=0,R=0,F=!1,U=!1,P=!1,$=!1;function B(e){if(!x(e,i)&&e.touches.length>=2)return G(e);let t=o.readPoint(e),n=o.readPoint(e,L),s=m(t-j),a=m(n-R);if(!U&&!$&&(!e.cancelable||!(U=s>a)))return G(e);let d=o.pointerMove(e);s>b&&(P=!0),u.useFriction(.3).useDuration(.75),l.start(),r.add(I(d)),e.preventDefault()}function G(e){var t;let n,i,r=d.byDistance(0,!1).index!==c.get(),s=o.pointerUp(e)*(v?O:k)[$?"mouse":"touch"],l=(t=I(s),n=c.add(-1*p(t)),i=d.byDistance(t,!v).distance,v||m(t)<N?i:w&&r?.5*i:d.byIndex(n.get(),0).distance),h=function(e,t){var n,i;if(0===e||0===t||m(e)<=m(t))return 0;let r=(n=m(e),i=m(t),m(n-i));return m(r/e)}(s,l);U=!1,F=!1,D.clear(),u.useDuration(M-10*h).useFriction(.68+h/50),a.distance(l,!v),$=!1,f.emit("pointerUp")}function H(e){P&&(e.stopPropagation(),e.preventDefault(),P=!1)}return{init:function(e){y&&z.add(t,"dragstart",e=>e.preventDefault(),T).add(t,"touchmove",()=>void 0,T).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",G).add(t,"contextmenu",G).add(t,"click",H,!0);function l(l){(h(y)||y(e,l))&&function(e){let l,a=x(e,i);if(($=a,P=v&&a&&!e.buttons&&A,A=m(r.get()-s.get())>=2,!a||0===e.button)&&(l=e.target.nodeName||"",!C.includes(l))){let i;F=!0,o.pointerDown(e),u.useFriction(0).useDuration(0),r.set(s),i=$?n:t,D.add(i,"touchmove",B,T).add(i,"touchend",G).add(i,"mousemove",B,T).add(i,"mouseup",G),j=o.readPoint(e),R=o.readPoint(e,L),f.emit("pointerDown")}}(l)}},destroy:function(){z.clear(),D.clear()},pointerDown:function(){return F}}}(ei,e,i,r,ez,function(e,t){let n,i;function r(e){return e.timeStamp}function o(n,i){let r=i||e.scroll,o=`client${"x"===r?"X":"Y"}`;return(x(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,i=e,o(e)},pointerMove:function(e){let t=o(e)-o(i),s=r(e)-r(n)>170;return i=e,s&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;let t=o(i)-o(n),s=r(e)-r(n),l=r(e)-r(i)>170,a=t/s;return s&&!l&&m(a)>.1?a:0},readPoint:o}}(ei,r),eI,eS,ek,eD,eN,ey,s,eo,W,V,K,X),eventStore:eM,percentOfView:eo,index:ey,indexPrevious:ex,limit:ew,location:eI,offsetLocation:eT,previousLocation:eC,options:o,resizeHandler:function(e,t,n,i,r,o,s){let l,a,u=[e].concat(i),d=[],c=!1;function f(e){return r.measureSize(s.measure(e))}return{init:function(r){o&&(a=f(e),d=i.map(f),l=new ResizeObserver(n=>{(h(o)||o(r,n))&&function(n){for(let o of n){if(c)return;let n=o.target===e,s=i.indexOf(o.target),l=n?a:d[s];if(m(f(n?e:i[s])-l)>=.5){r.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
2{u.forEach(e=>l.observe(e))}))},destroy:function(){c=!0,l&&l.disconnect()}}}(t,s,r,n,ei,_,ee),scrollBody:eD,scrollBounds:function(e,t,n,i,r){let o=r.measure(10),s=r.measure(50),l=S(.1,.99),a=!1;function u(){return!a&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(r){if(!u())return;let a=e.reachedMin(t.get())?"min":"max",d=m(e[a]-t.get()),c=n.get()-t.get(),h=l.constrain(d/s);n.subtract(c*h),!r&&m(c)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){a=!e}}}(ew,eT,ez,eD,eo),scrollLooper:function(e,t,n,i){let{reachedMin:r,reachedMax:o}=S(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&r(n.get())))return;let s=-1*t*e;i.forEach(e=>e.add(s))}}}(ep,ew,eT,[eI,eT,eC,ez]),scrollProgress:eO,scrollSnapList:eb.map(eO.get),scrollSnaps:eb,scrollTarget:eN,scrollTo:ek,slideLooper:function(e,t,n,i,r,o,s,l,a){let u=g(r),d=g(r).reverse(),c=m(f(d,s[0]),n,!1).concat(m(f(u,t-s[0]-1),-n,!0));function h(e,t){return e.reduce((e,t)=>e-r[t],t)}function f(e,t){return e.reduce((e,n)=>h(e,t)>0?e.concat([n]):e,[])}function m(r,s,u){let d=o.map((e,n)=>({start:e-i[n]+.5+s,end:e+t-.5+s}));return r.map(t=>{let i=u?0:-n,r=u?n:0,o=d[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:L(-1),translate:I(e,a[t]),target:()=>l.get()>o?i:r}})}return{canLoop:function(){return c.every(({index:e})=>.1>=h(u.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:n,slideLocation:i}=e,r=t();r!==i.get()&&(n.to(r),i.set(r))})},loopPoints:c}}(ei,er,ep,ea,eu,ef,eb,eT,n),slideFocus:eR,slidesHandler:(F=!1,{init:function(e){J&&(R=new MutationObserver(t=>{!F&&(h(J)||J(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){R&&R.disconnect(),F=!0}}),slidesInView:eA,slideIndexes:eE,slideRegistry:ej,slidesToScroll:eh,target:ez,translate:I(ei,t)};return eF}(e,a,u,D,N,n,A);return n.loop&&!i.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):i}(H),F([G,...W.map(({options:e})=>e)]).forEach(e=>M.add(e,"change",Z)),H.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(_),s.eventHandler.init(_),s.resizeHandler.init(_),s.slidesHandler.init(_),s.options.loop&&s.slideLooper.loop(),a.offsetParent&&u.length&&s.dragHandler.init(_),l=O.init(_,W)))}function Z(e,t){let n=q();Y(),V(j({startIndex:n},e),t),A.emit("reInit")}function Y(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),O.destroy(),M.clear()}function K(e,t,n){H.active&&!B&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),s.scrollTo.index(e,n||0))}function q(){return s.index.get()}let _={canScrollNext:function(){return s.index.add(1).get()!==q()},canScrollPrev:function(){return s.index.add(-1).get()!==q()},containerNode:function(){return a},internalEngine:function(){return s},destroy:function(){B||(B=!0,M.clear(),Y(),A.emit("destroy"),A.clear())},off:P,on:U,emit:$,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:Z,rootNode:function(){return e},scrollNext:function(e){K(s.index.add(1).get(),e,-1)},scrollPrev:function(e){K(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:K,selectedScrollSnap:q,slideNodes:function(){return u},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return V(t,n),setTimeout(()=>A.emit("init"),0),_}function z(e={},t=[]){let n=(0,o.useRef)(e),i=(0,o.useRef)(t),[r,s]=(0,o.useState)(),[l,d]=(0,o.useState)(),c=(0,o.useCallback)(()=>{r&&r.reInit(n.current,i.current)},[r]);return(0,o.useEffect)(()=>{a(n.current,e)||(n.current=e,c())},[e,c]),(0,o.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=u(e),i=u(t);return n.every((e,t)=>a(e,i[t]))}(i.current,t)&&(i.current=t,c())},[t,c]),(0,o.useEffect)(()=>
2{if("u">typeof window&&window.document&&window.document.createElement&&l){T.globalOptions=z.globalOptions;let e=T(l,n.current,i.current);return s(e),()=>e.destroy()}s(void 0)},[l,s]),[d,r]}T.globalOptions=void 0,z.globalOptions=void 0;var D=e.i(460925),N=e.i(235248),k=e.i(466691);let O=(0,o.createContext)(null);function M(){let e=(0,o.useContext)(O);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function A({orientation:e="horizontal",opts:n,setApi:i,plugins:r,className:l,children:a,...u}){let[d,c]=z({...n,axis:"horizontal"===e?"x":"y"},r),[h,f]=(0,o.useState)(!1),[m,p]=(0,o.useState)(!1),g=(0,o.useCallback)(e=>{e&&(f(e.canScrollPrev()),p(e.canScrollNext()))},[]),v=(0,o.useCallback)(()=>{c?.scrollPrev()},[c]),b=(0,o.useCallback)(()=>{c?.scrollNext()},[c]),w=(0,o.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[v,b]);return(0,o.useEffect)(()=>{c&&i&&i(c)},[c,i]),(0,o.useEffect)(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c?.off("select",g)}},[c,g]),(0,t.jsx)(O.Provider,{value:{carouselRef:d,api:c,opts:n,orientation:e||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:b,canScrollPrev:h,canScrollNext:m},children:(0,t.jsx)("div",{onKeyDownCapture:w,className:(0,s.cn)("relative",l),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...u,children:a})})}function j({className:e,...n}){let{carouselRef:i,orientation:r}=M();return(0,t.jsx)("div",{ref:i,className:"overflow-hidden","data-slot":"carousel-content",children:(0,t.jsx)("div",{className:(0,s.cn)("flex","horizontal"===r?"-ml-4":"-mt-4 flex-col",e),...n})})}function R({className:e,...n}){let{orientation:i}=M();return(0,t.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:(0,s.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===i?"pl-4":"pt-4",e),...n})}function F({className:e,variant:n="outline",size:i="icon-sm",...r}){let{orientation:o,scrollPrev:l,canScrollPrev:a}=M();return(0,t.jsxs)(k.Button,{"data-slot":"carousel-previous",variant:n,size:i,className:(0,s.cn)("absolute touch-manipulation rounded-full","horizontal"===o?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:l,...r,children:[(0,t.jsx)(D.ChevronLeftIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function U({className:e,variant:n="outline",size:i="icon-sm",...r}){let{orientation:o,scrollNext:l,canScrollNext:a}=M();return(0,t.jsxs)(k.Button,{"data-slot":"carousel-next",variant:n,size:i,className:(0,s.cn)("absolute touch-manipulation rounded-full","horizontal"===o?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:l,...r,children:[(0,t.jsx)(N.ChevronRightIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}var P=e.i(50944);e.s(["ImageCarousel",0,function({imageUrls:e}){let{isDesktop:n,isMobile:l}=function(){let[e,t]=(0,o.useState)({width:void 0,height:void 0});(0,o.useEffect)(()=>{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let n="number"==typeof e.width&&e.width<768,i="number"==typeof e.width&&e.width>=768;return{windowSize:e,isMobile:n,isDesktop:i}}(),[a,u]=(0,o.useState)(!0),[d,c]=(0,o.useState)(null),[h,f]=(0,o.useState)(0),{setSelectedImage:m,setDialogOpen:p}=(0,P.useImageStore)();return(0,o.useEffect)(()=>{d&&d.on("select",()=>{f(d.selectedScrollSnap())})},[d]),(0,t.jsxs)(A,{className:"relative mt-2.5",setApi:c,plugins:[i({delay:2e3})],children:[(0,t.jsx)(j,{children:e.map((e,n)=>(0,t.jsx)(R,{children:(0,t.jsx)("button",{type:"button",className:"cursor-pointer overflow-hidden rounded-xl border border-muted",onClick:()=>{m(e),p(!0)},children:(0,t.jsx)(r.default,{src:e,alt:"screenshorts",width:1e3,height:1e3,sizes:"100vw",className:"aspect-1200/850 rounded-xl",style:{objectFit:"cover",width:"100%",height:"auto",objectPosition:"center",WebkitFilter:a?"blur(8px)":"none",transition:"all 0.5s ease"},onLoad:()=>u(!1),loading:"lazy"})})},`${e}-${n}`))}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(F,{variant:"ghost",className:"prose prose-neutral dark:prose-invert"}),(0,t.jsx)(U,{variant:"ghost",className:"prose prose-neutral dark:prose-invert"})]}),l&&(0,t.jsx)("div",{className:"mt-1  flex w-full items-center justify-center gap-1",children:e.map((e,n)=>(0,t.jsx)("button",{type:"button",className:(0,s.cn)("size-2 roun
2ded-full transition-colors duration-300 hover:bg-white/90",h===n?"bg-white":"bg-white/50"),onClick:()=>{d?.scrollTo(n)}},`dot-${e.toLowerCase()}`))})]})}],663684)},422236,e=>{"use strict";var t=e.i(450654),n=e.i(323562),i=e.i(175938),r=e.i(50944);e.s(["ImageShell",0,function({imageUrl:e}){let[o,s]=(0,i.useState)(!0),{setDialogOpen:l,setSelectedImage:a}=(0,r.useImageStore)();return(0,t.jsx)("button",{type:"button",className:"mt-2.5 cursor-pointer overflow-hidden rounded-xl border border-muted",onClick:()=>{a(e),l(!0)},children:(0,t.jsx)(n.default,{src:e,alt:"ScreenShort",width:1e3,height:1e3,sizes:"100vw",className:"rounded-xl",style:{WebkitFilter:o?"blur(8px)":"none",transition:"all 0.5s ease"},onLoad:()=>s(!1),loading:"lazy"})})}])},510146,e=>{"use strict";var t=e.i(450654),n=e.i(282879),i=e.i(683571),r=e.i(542658);let o=(0,i.atom)(null),s=(0,i.atom)(!1);e.s(["VideoViewer",0,function({videoSrc:e}){let{setDialogOpen:i,isDialogOpen:l,selectedVideo:a,setSelectedVideo:u}=(()=>{let[e,t]=(0,r.useAtom)(o),[n,i]=(0,r.useAtom)(s);return{selectedVideo:e,setSelectedVideo:t,isDialogOpen:n,setDialogOpen:i}})();return(0,t.jsxs)(n.Dialog,{open:l,onOpenChange:i,children:[e&&(0,t.jsx)(n.DialogTrigger,{children:(0,t.jsx)("button",{type:"button",className:"mt-2.5 cursor-pointer overflow-hidden rounded-xl border border-muted",onClick:()=>{u(e),i(!0)},children:(0,t.jsxs)("video",{src:e,controls:!1,preload:"metadata",playsInline:!0,className:"w-full rounded-xl",muted:!0,autoPlay:!0,loop:!0,children:[(0,t.jsx)("source",{src:e,type:"video/mp4"})," ","Your browser does not support the video tag."]})})}),(0,t.jsx)(n.DialogTitle,{children:(0,t.jsx)("span",{className:"sr-only",children:"Video Preview"})}),(0,t.jsx)(n.DialogContent,{className:"w-full max-w-(--breakpoint-lg) overflow-hidden p-0 sm:rounded-xl",children:a&&(0,t.jsxs)("video",{src:a,controls:!1,preload:"metadata",playsInline:!0,className:"h-auto w-full rounded-xl",muted:!0,autoPlay:!0,loop:!0,children:[(0,t.jsx)("source",{src:e,type:"video/mp4"})," ","Your browser does not support the video tag."]})})]})}],510146)},50944,e=>{"use strict";var t=e.i(683571),n=e.i(542658);let i=(0,t.atom)(null),r=(0,t.atom)(!1);e.s(["useImageStore",0,()=>{let[e,t]=(0,n.useAtom)(i),[o,s]=(0,n.useAtom)(r);return{selectedImage:e,setSelectedImage:t,isDialogOpen:o,setDialogOpen:s}}])},539083,e=>{"use strict";var t=e.i(78829),n=e.i(98283),i=e.i(611408),r=e.i(403855),o=e.i(261060),s=e.i(450654),l=e.i(106879),a=e.i(198650);let u={name:"clipboard",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]};u.node;let d=(0,a.default)(u);var c=e.i(175938),h=e.i(735813);let f=(0,c.createContext)(null);function m({className:e,containerRef:r,...o}){let a=(0,h.useTranslations)({note:"code block"}),[u,c]=(0,i.useCopyButton)(()=>{let e=r.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,s.jsx)("button",{type:"button","data-checked":u||void 0,className:(0,t.cn)((0,n.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":a(u?"Copied Text":"Copy Text",{note:"aria-label"}),onClick:c,...o,children:u?(0,s.jsx)(l.Check,{}):(0,s.jsx)(d,{})})}e.s(["CodeBlock",0,function({ref:e,title:n,allowCopy:i=!0,keepBackground:r=!1,icon:o,viewportProps:l={},children:a,Actions:u=e=>(0,s.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...d}){let h=null!==(0,c.use)(f),p=(0,c.useRef)(null);return"true"===i?i=!0:"false"===i&&(i=!1),(0,s.jsxs)("figure",{ref:e,dir:"ltr",...d,tabIndex:-1,className:(0,t.cn)(h?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",r&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",d.className),children:[n?(0,s.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof o?(0,s.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:o}}):o,(0,s.jsx)("figcaption",{className:"flex-1 truncate",children:n}),u({className:"-me-2",children:i&&(0,s.jsx)(m,{containerRef:p})})]}):u({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:i&&(0,s.jsx)(m,{containerRef:p})}),(0,s.jsx)("div",{ref:p,...l,role:"region",tabIndex:0,className:(0,t.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",l.className),style:{"--padding-right":n?void 0:"calc(var(--spacing) * 8)",counterSet:d["data-line-numbers"]?`line ${Number(d["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:a})]})},"CodeBlockTab",0,function(e){return(0,s.jsx)(o.TabsContent,{...e})},"CodeBlockTabs",0,function({ref:e,...n}){let i=(0,c.useRef)(null),l=null!==(0,c.use)(f);return(0,s.jsx)(o.Tabs,{ref:(0,r.mergeRefs)(i,e),...n,className:(0,t.cn)("bg-fd-card rounded-xl border",!l&&"my-4",n.className),children:(0,s.jsx)(f,{value:(0,c.useMemo)(()=>({containerRef:i,nested:l}),[l]),children:n.children})})},"CodeBlockTabsList",0,function(e){return(0,s.jsx)(o.TabsList,{...e,className:(0,t.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},"CodeBlockTabsTrigger",0,function({children:e,...n}){return(0,s.jsxs)(o.TabsTrigger,{...n,className:(0,t.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",n.className),children:[(0,s.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},"Pre",0,function(e){return(0,s.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}],539083)},808889,e=>{"use strict";var t=e.i(78829),n=e.i(98283),i=e.i(611408),r=e.i(450654),o=e.i(198650);let s={name:"copy-check",size:24,node:[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let l=(0,o.default)(s);var a=e.i(25691),a=a,u=e.i(735813);e.s(["Heading",0,function({as:e,...o}){let s=e??"h1",d=(0,u.useTranslations)({note:"heading anchor"}),[c,h]=(0,i.useCopyButton)(()=>
2{if(!o.id)return;let e=new URL(window.location.href);return e.hash=o.id,navigator.clipboard.writeText(e.href)});return o.id?(0,r.jsxs)(s,{...o,className:(0,t.cn)("group/heading flex scroll-m-28 flex-row items-center gap-1",o.className),children:[(0,r.jsx)("a",{"data-card":"",href:`#${o.id}`,children:o.children}),(0,r.jsx)("button",{"aria-label":d("Copy Anchor Link",{note:"aria-label"}),className:(0,t.cn)((0,n.buttonVariants)({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:h,children:c?(0,r.jsx)(l,{}):(0,r.jsx)(a.default,{})})]}):(0,r.jsx)(s,{...o})}],808889)},880151,e=>{"use strict";let t=(e,t)=>!("u"<typeof Element)&&t instanceof Element&&t.tagName.toUpperCase()===e,n=e=>t("DIV",e)||t("SPAN",e),i=e=>e.complete&&0!==e.naturalHeight,r=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,o=e=>{if(null!==e){if(t("IMG",e))return""===e.currentSrc?void 0:e.currentSrc;else if(n(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return r.exec(t)?.[1]}}},s=e=>{if(null==e)return{};if(!t("SVG",e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let{parentElement:t}=e,n=e.getBoundingClientRect();if(null==t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},l=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),a=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:i,targetHeight:r,targetWidth:o})=>0===e||0===t?1:n||0===r||0===o?l({height:e,offset:i,width:t}):(({containerHeight:e,containerWidth:t,offset:n,targetHeight:i,targetWidth:r})=>{let o=l({height:i,offset:n,width:r}),s=r>i?r/t:i/e;return o>1?s:o*s})({containerHeight:e,containerWidth:t,offset:i,targetHeight:r,targetWidth:o}),u=(e,t)=>{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},d=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:o,position:s,targetHeight:l,targetWidth:d,visibleHeight:c,visibleWidth:h})=>{let[f="50%",m="50%"]=s.split(" "),p=u(f,i-h),g=u(m,e-c),v=a({containerHeight:c,containerWidth:h,hasScalableSrc:r,offset:o,targetHeight:l,targetWidth:d});return{top:n+g,left:t+p,width:h*v,height:c*v,initialTransform:`translate(0,0) scale(${1/v})`}},c=({fallback:e,natural:t})=>void 0!==t&&0!==t?t:e,h=/\.svg$/i;var f=e.i(175938),m=e.i(693834);let p=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),g={overflow:"",width:""};function v(e){e.preventDefault()}function b(e){return f.default.createElement(w,{...e})}var w=class extends f.default.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=f.default.createRef(),this.refDialog=f.default.createRef(),this.refModalContent=f.default.createRef(),this.refModalImg=f.default.createRef(),this.refWrap=f.default.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=g,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;"LOADING"!==e&&"LOADING"===t?(this.isScaling=!1,this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;null!=e&&(this.imgEl=e.querySelector(p),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.img
2El.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),null==this.state.loadedImgEl&&this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:s(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:s(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=o(this.imgEl);if(null==e||""===e)return;let n=new Image,{imgEl:r}=this;if(t("IMG",r)){let{sizes:e,srcset:t,crossOrigin:i}=r;n.sizes=e,n.srcset=t,n.crossOrigin=i}n.src=e;let l=()=>{this.setState({loadedImgEl:n,styleGhost:s(this.imgEl)})};n.decode().then(l).catch(()=>{i(n)?l():n.onload=l})},this.handleZoom=e=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||this.isScaling||(window.visualViewport?.scale??1)>1||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[n]=t;if(1===t.length&&void 0!==n){let{screenY:e}=n;this.touchYStart=e}},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1,{changedTouches:n}=e,[i]=n;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==i){let{screenY:t}=i;this.touchYEnd=t,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||t("SVG",this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
2{if(null!==this.refModalImg.current){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(0!==t&&!Number.isNaN(t)){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{let e=document.body.style;this.prevBodyAttrs={overflow:e.overflow,width:e.width};let t=document.body.clientWidth;e.overflow="hidden",e.width=`${t}px`},this.bodyScrollEnable=()=>{let e=document.body.style,t=this.prevBodyAttrs;e.width=t.width,e.overflow=t.overflow,this.prevBodyAttrs=g},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(null==e)return;let{src:t}=e;if(void 0!==t&&""!==t){let n=new Image;n.sizes=e.sizes??"",n.srcset=e.srcSet??"",n.crossOrigin=e.crossOrigin??void 0,n.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch(()=>{i(n)?r():n.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:n,styleModalImg:i}=this;if(t("SVG",e)){let t=e.cloneNode(!0);(e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],i=new Map;if(e.hasAttribute("id")){let{id:n}=e,r=n+t;i.set(n,r),e.id=r}e.querySelectorAll("[id]").forEach(e=>{let{id:n}=e,r=n+t;i.set(n,r),e.id=r});let r=n.map(e=>`[${e}]`).join(", ");e.querySelectorAll(r).forEach(e=>{for(let t of n){let n=e.getAttribute(t);if(n?.startsWith("url(#")===!0){let r=n.slice(5,-1),o=i.get(r);void 0!==o&&e.setAttribute(t,`url(#${o})`)}}}),e.querySelectorAll("style").forEach(e=>{let{textContent:t}=e;if(""!==t){let n=t;i.forEach((e,t)=>{n=n.replaceAll(`#${t}`,`#${e}`)}),n!==t&&(e.textContent=n)}})})(t),t.style.width=`${i.width??0}px`,t.style.height=`${i.height??0}px`,t.addEventListener("click",this.handleUnzoom),n.current?.firstChild?.remove(),n.current?.appendChild(t)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:i,handleDialogClose:r,handleUnzoom:s,handleZoom:l,imgEl:p,props:{a11yNameButtonUnzoom:g,a11yNameButtonZoom:b,children:w,classDialog:y,IconUnzoom:x,IconZoom:E,wrapElement:S,ZoomContent:L,zoomImg:I,zoomMargin:C},refContent:T,refDialog:z,refModalContent:D,refModalImg:N,refWrap:k,state:{id:O,isZoomImgLoaded:M,loadedImgEl:A,modalState:j,shouldRefresh:R,styleGhost:F}}=this,U=`rmiz-modal-${O}`,P=`rmiz-modal-img-${O}`,$=n(p),B=t("IMG",p),G=t("SVG",p),H=(e=>{if(null!==e)if(t("IMG",e))return e.alt;else return e.getAttribute("aria-label")??void 0})(p),W=o(p),V=B?p.sizes:void 0,Z=B?p.srcset:void 0,Y=B?p.crossOrigin:void 0,K=I?.src!==void 0&&""!==I.src,q=this.hasImage(),_=void 0!==H&&""!==H?`${b}: ${H}`:b,J="LOADING"===j||"LOADED"===j,X=q?"found":"not-found",Q="UNLOADED"===j||"UNLOADING"===j?"hidden":"visible";this.styleModalImg=q&&null!==p?(({hasZoomImg:e,imgSrc:t,isSvg:i,isZoomed:r,loadedImgEl:o,offset:s,shouldRefresh:l,targetEl:f})=>{let m=(({hasZoomImg:e,imgSrc:t,isSvg:n})=>n||t?.slice(0,18)==="data:image/svg+xml"||e||void 0!==t&&h.test(t))({hasZoomImg:e,imgSrc:t,isSvg:i}),p=f.getBoundingClientRect(),g=window.getComputedStyle(f),v=null!=o&&n(f),b=null!=o&&!v,w=c({fallback:p.height,natural:o?.naturalHeight}),y=c({fallback:p.width,natural:o?.naturalWidth}),{height:x,left:E,top:S,width:L}=p,I=v?(({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:i,containerTop:r,containerWidth:o,hasScalableSrc:s,offset:l,targetHeight:a,targetWidth:c})=>{let h={containerHeight:n,containerLeft:i,containerTop:r,containerWidth:o,hasScalableSrc:s,offset:l,position:e,targetHeight:a,targetWidth:c};if("cover"===t||"contain"===t){let e=o/c,i=n/a,r="cover"===t?Math.max(e,i):Math.min(e,i);return d({...h,visibleWidth:c*r,visibleHeight:a*r})}{if("auto"===t)return d({...h,visibleWidth:c,visibleHeight:a});let[e="50%",i="50%"]=t.split(" "),r=Math.min(u(e,o)/c,u(i,n)/a);return d({...h,visibleWidth:c*r,visibleHeight:a*r})}})({backgroundPosition:g.backgroundPosition,backgroundSize:g.backgroundSize,containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:m,offset:s,targetHeight:w,targetWidth:y}):b?(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,objectFit:o,objectPosition:s,offset:l,targetHeight:u,targetWidth:c})=>{let h=o;
2"scale-down"===h&&(h=c<=i&&u<=e?"none":"contain");let f={containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:l,position:s,targetHeight:u,targetWidth:c};if("cover"===h||"contain"===h){let t=i/c,n=e/u,r="cover"===h?Math.max(t,n):Math.min(t,n);return d({...f,visibleWidth:c*r,visibleHeight:u*r})}{if("none"===h)return d({...f,visibleWidth:c,visibleHeight:u});let o=Math.max(i/c,e/u),s=a({containerHeight:u*o,containerWidth:c*o,hasScalableSrc:r,offset:l,targetHeight:u,targetWidth:c});return{top:n,left:t,width:i*s,height:e*s,initialTransform:`translate(0,0) scale(${1/s})`}}})({containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:m,objectFit:g.objectFit,objectPosition:g.objectPosition,offset:s,targetHeight:w,targetWidth:y}):(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:r,offset:o,targetHeight:s,targetWidth:l})=>{let u=a({containerHeight:e,containerWidth:i,hasScalableSrc:r,offset:o,targetHeight:s,targetWidth:l});return{top:n,left:t,width:i*u,height:e*u,initialTransform:`translate(0,0) scale(${1/u})`}})({containerHeight:x,containerLeft:E,containerTop:S,containerWidth:L,hasScalableSrc:m,offset:s,targetHeight:w,targetWidth:y}),C={top:I.top,left:I.left,width:I.width,height:I.height,transform:(({height:e,initialTransform:t,isZoomed:n,left:i,top:r,userTransform:o,width:s})=>{let l="";if("none"!==o&&""!==o){let t=s/2,n=e/2;l=`translate(${t}px,${n}px) ${o} translate(${-t}px,${-n}px)`}if(!n)return""===l?t:`${t} ${l}`;let a=window.innerWidth/2,u=window.innerHeight/2,d=`translate(${a-(i+s/2)}px,${u-(r+e/2)}px) scale(1)`;return""===l?d:`${d} ${l}`})({...I,isZoomed:r,userTransform:g.transform})};return r&&l&&(C.transitionDuration="0.01ms"),C}
2)({hasZoomImg:K,imgSrc:W,isSvg:G,isZoomed:J,loadedImgEl:A,offset:C,shouldRefresh:R,targetEl:p}):{};let ee=null;if(q){let t=B||$?f.default.createElement("img",{alt:H,crossOrigin:Y,sizes:V,src:W,srcSet:Z,...M&&"LOADED"===j?I:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:P,onTransitionEnd:this.handleImgTransitionEnd,ref:N,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):G?f.default.createElement("div",{"data-rmiz-modal-img":!0,onTransitionEnd:this.handleImgTransitionEnd,ref:N,style:this.styleModalImg}):null,n=f.default.createElement("button",{"aria-label":g,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},f.default.createElement(x,null));ee=null==L?f.default.createElement(f.default.Fragment,null,t,n):f.default.createElement(L,{buttonUnzoom:n,modalState:j,img:t,isZoomImgLoaded:M,onUnzoom:s})}return f.default.createElement(S,{"data-rmiz":"",ref:k},f.default.createElement(S,{"data-rmiz-content":X,ref:T,style:{visibility:"UNLOADED"===j?"visible":"hidden"}},w),q&&f.default.createElement(S,{"data-rmiz-ghost":"",style:F},f.default.createElement("button",{"aria-label":_,"data-rmiz-btn-zoom":"",onClick:l,type:"button"},f.default.createElement(E,null))),q&&m.default.createPortal(f.default.createElement("dialog",{"aria-labelledby":P,"aria-modal":"true",className:y,"data-rmiz-modal":"",id:U,onClick:i,onClose:r,onCancel:v,ref:z,role:"dialog"},f.default.createElement("div",{"data-rmiz-modal-overlay":Q}),f.default.createElement("div",{"data-rmiz-modal-content":"",ref:D},ee)),function(){let e=document.querySelector("[data-rmiz-portal]");if(null!=e)return e;let t=document.createElement("div");return t.setAttribute("data-rmiz-portal",""),document.body.appendChild(t),t}()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener("load",this.handleImgLoad),this.imgEl?.removeEventListener("click",this.handleZoom),clearTimeout(this.timeoutTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}};function y({onZoomChange:e,...t}){let[n,i]=f.default.useState(!1),r=f.default.useCallback((t,{event:n})=>{i(t),e?.(t,{event:n})},[e]);return f.default.createElement(b,{...t,isZoomed:n,onZoomChange:r})}w.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return f.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return f.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0};var x=e.i(500896),E=e.i(450654);e.s(["ImageZoom",0,function({zoomInProps:e,children:t,rmiz:n,...i}){var r;return(0,E.jsx)(y,{zoomMargin:20,wrapElement:"span",...n,zoomImg:{src:"string"==typeof(r=i.src)?r:"object"==typeof r?"default"in r?r.default.src:r.src:"",sizes:void 0,...e},children:t??(0,E.jsx)(x.Image,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...i})})}],880151)},350424,e=>{"use strict";var t=e.i(78829),n=e.i(261060),i=e.i(450654),r=e.i(175938);let o=(0,r.createContext)(null);function s(){let e=(0,r.useContext)(o);if(!e)throw Error("You must wrap your component in <Tabs>");return e}function l(e){return(0,i.jsx)(n.TabsList,{...e,className:(0,t.cn)("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose",e.className)})}function a(e){return(0,i.jsx)(n.TabsTrigger,{...e,className:(0,t.cn)("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)})}function u({value:e,className:r,...o}){return(0,i.jsx)(n.TabsContent,{value:e,className:(0,t.cn)("p-4 text-[0.9375rem] bg-fd-background rounded-xl outline-none prose-no-margin data-[state=inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none",r),...o,children:o.children})}function d(e){return e.toLowerCase().replace(/\s/,"-")}e.s(["Tab",0,function({value:e,...t}){let{items:n}=s(),o=e??n?.at(function(){let e=(0,r.useId)(),{collection:t}=s();return(0,r.useEffect)(()=>()=>{let n=t.indexOf(e);-1!==n&&t.splice(n,1)},[e,t]),t.includes(e)||t.push(e),t.indexOf(e)}());if(!o)throw Error("Failed to resolve tab `value`, please pass a `value` prop to the Tab component.");return(0,i.jsx)(u,{value:d(o),...t,children:t.children})},"Tabs",0,function({ref:e,className:s,items:u,label:c,defaultIndex:h=0,defaultValue:f=u?d(u[h]):void 0,...m}){let[p,g]=(0,r.useState)(f),v=(0,r.useMemo)(()=>[],[]);return(0,i.jsxs)(n.Tabs,{ref:e,className:(0,t.cn)("flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4",s),value:p,onValueChange:e=>{(!u||u.some(t=>d(t)===e))&&g(e)},...m,children:[u&&(0,i.jsxs)(l,{children:[c&&(0,i.jsx)("span",{className:"text-sm font-medium my-auto me-auto",children:c}),u.map(e=>(0,i.jsx)(a,{value:d(e),children:e},e))]}),(0,i.jsx)(o.Provider,{value:(0,r.useMemo)(()=>({items:u,collection:v}),[v,u]),children:m.children})]})},"TabsContent",0,u,"TabsList",0,l,"TabsTrigger",0,a])},261060,e=>{"use strict";var t=e.i(403855),n=e.i(450654),i=e.i(175938),r=e.i(543836),o=e.i(903760),s=e.i(792806),l=e.i(335411),a=Object.defineProperty,u=(e,t)=>
2a(e,"name",{value:t,configurable:!0});function d(e){let t=e+"CollectionProvider",[r,a]=(0,o.createContextScope)(t),[d,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),h=u(e=>{let{scope:t,children:r}=e,o=i.useRef(null),s=i.useRef(new Map).current;return(0,n.jsx)(d,{scope:t,itemMap:s,collectionRef:o,children:r})},"CollectionProvider");h.displayName=t;let f=e+"CollectionSlot",m=(0,l.createSlot)(f),p=i.forwardRef((e,t)=>{let{scope:i,children:r}=e,o=c(f,i),l=(0,s.useComposedRefs)(t,o.collectionRef);return(0,n.jsx)(m,{ref:l,children:r})});p.displayName=f;let g=e+"CollectionItemSlot",v="data-radix-collection-item",b=(0,l.createSlot)(g),w=i.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,a=i.useRef(null),u=(0,s.useComposedRefs)(t,a),d=c(g,r);return i.useEffect(()=>(d.itemMap.set(a,{ref:a,...l}),()=>void d.itemMap.delete(a))),(0,n.jsx)(b,{...{[v]:""},ref:u,children:o})});function y(t){let n=c(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w.displayName=g,u(y,"useCollection"),[{Provider:h,Slot:p,ItemSlot:w},y,a]}u(d,"createCollection");var c=new WeakMap,h=class e extends Map{static{u(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let i,r=this.has(t),o=this.#e.length,s=p(e),l=s>=0?s:o+s,a=l<0||l>=o?-1:l;if(a===this.size||r&&a===this.size-1||-1===a)return this.set(t,n),this;let u=this.size+ +!r;s<0&&l++;let d=[...this.#e],c=!1;for(let e=l;e<u;e++)if(l===e){let o=d[e];d[e]===t&&(o=d[e+1]),r&&this.delete(t),i=this.get(o),this.set(t,n)}else{c||d[e-1]!==t||(c=!0);let n=d[c?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,i){let r=new e(this);return r.insert(t,n,i),r}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return i;n++}}findIndex(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return n;n++}return -1}filter(t,n){let i=[],r=0;for(let e of this)Reflect.apply(t,n,[e,r,this])&&i.push(e),r++;return new e(i)}map(t,n){let i=[],r=0;for(let e of this)i.push([e[0],Reflect.apply(t,n,[e,r,this])]),r++;return new e(i)}reduce(...e){let[t,n]=e,i=0,r=n??this.at(0);for(let n of this)r=0===i&&1===e.length?n:Reflect.apply(t,this,[r,n,i,this]),i++;return r}reduceRight(...e){let[t,n]=e,i=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let r=this.at(n);i=n===this.size-1&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),i=this.get(n);t.set(n,i)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let i=new e,r=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==n&&n>0&&(r=n-1);for(let e=t;e<=r;e++){let t=this.keyAt(e),n=this.get(t);i.set(t,n)}return i}every(e,t){let n=0;for(let i of this){if(!Reflect.apply(e,t,[i,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return!0;n++}return!1}};function f(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=m(e,t);return -1===n?void 0:e[n]}function m(e,t){let n=e.length,i=p(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}function p(e){return e!=e||0===e?0:Math.trunc(e)}function g(e,t){if(e===t)return!0;
2if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}function v(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function b(e,t){return e[1].element&&t[1].element?v(e[1].element,t[1].element)?-1:1:0}function w(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}u(f,"at"),u(m,"toSafeIndex"),u(p,"toSafeInteger"),u(function(e){let t=e+"CollectionProvider",[r,a]=(0,o.createContextScope)(t),[d,c]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new h,setItemMap:u(()=>void 0,"setItemMap")}),f=u(({state:e,...t})=>e?(0,n.jsx)(p,{...t,state:e}):(0,n.jsx)(m,{...t}),"CollectionProvider");f.displayName=t;let m=u(e=>{let t=I();return(0,n.jsx)(p,{...e,state:t})},"CollectionInit");m.displayName=t+"Init";let p=u(e=>{let{scope:t,children:r,state:o}=e,l=i.useRef(null),[a,u]=i.useState(null),c=(0,s.useComposedRefs)(l,u),[h,f]=o;return i.useEffect(()=>{if(!a)return;let e=w(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,n.jsx)(d,{scope:t,itemMap:h,setItemMap:f,collectionRef:c,collectionRefObject:l,collectionElement:a,children:r})},"CollectionProviderImpl");p.displayName=t+"Impl";let v=e+"CollectionSlot",y=(0,l.createSlot)(v),x=i.forwardRef((e,t)=>{let{scope:i,children:r}=e,o=c(v,i),l=(0,s.useComposedRefs)(t,o.collectionRef);return(0,n.jsx)(y,{ref:l,children:r})});x.displayName=v;let E=e+"CollectionItemSlot",S=(0,l.createSlot)(E),L=i.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,a=i.useRef(null),[u,d]=i.useState(null),f=(0,s.useComposedRefs)(t,a,d),{setItemMap:m}=c(E,r),p=i.useRef(l);g(p.current,l)||(p.current=l);let v=p.current;return i.useEffect(()=>(m(e=>u?e.has(u)?e.set(u,{...v,element:u}).toSorted(b):(e.set(u,{...v,element:u}),e.toSorted(b)):e),()=>{m(e=>u&&e.has(u)?(e.delete(u),new h(e)):e)}),[u,v,m]),(0,n.jsx)(S,{"data-radix-collection-item":"",ref:f,children:o})});function I(){return i.useState(new h)}function C(t){let{itemMap:n}=c(e+"CollectionConsumer",t);return n}return L.displayName=E,u(I,"useInitCollection"),u(C,"useCollection"),[{Provider:f,Slot:x,ItemSlot:L},{createCollectionScope:a,useCollection:C,useInitCollection:I}]},"createCollection"),u(g,"shallowEqual"),u(v,"isElementPreceding"),u(b,"sortByDocumentPosition"),u(w,"getChildListObserver");var y=e.i(815532),x=e.i(388998),E=e.i(51614),S=e.i(334485),L=e.i(589584),I=e.i(788982),C=Object.defineProperty,T=(e,t)=>C(e,"name",{value:t,configurable:!0}),z=!1;function D(){let[e,t]=i.useState(z);return i.useEffect(()=>{z||(z=!0,t(!0))},[]),e}T(D,"useIsHydrated");var N=i[" useSyncExternalStore ".trim().toString()];function k(){return()=>{}}function O(){return N(k,()=>!0,()=>!1)}T(k,"subscribe"),T(O,"useIsHydratedModern");var M="function"==typeof N?O:D,A=Object.defineProperty,j=(e,t)=>A(e,"name",{value:t,configurable:!0}),R="rovingFocusGroup.onEntryFocus",F={bubbles:!1,cancelable:!0},U="RovingFocusGroup",[P,$,B]=d(U),[G,H]=(0,o.createContextScope)(U,[B]),[W,V]=G(U),Z=i.forwardRef(j(function(e,t){return(0,n.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(Y,{...e,ref:t})})})},"RovingFocusGroup")),Y=i.forwardRef(j(function(e,t){let{__scopeRovingFocusGroup:o,orientation:l,loop:a=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:h,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...p}=e,g=i.useRef(null),v=(0,s.useComposedRefs)(t,g),b=(0,L.useDirection)(u),[w,y]=(0,S.useControllableState)({prop:d,defaultProp:c??null,onChange:h,caller:U}),[I,C]=i.useState(!1),T=(0,E.useCallbackRef)(f),z=$(o),D=i.useRef(!1),[N,k]=i.useState(0);return i.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(R,T),()=>e.removeEventListener(R,T)},[T]),(0,n.jsx)(W,{scope:o,orientation:l,dir:b,loop:a,currentTabStopId:w,onItemFocus:i.useCallback(e=>y(e),[y]),onItemShiftTab:i.useCallback(()=>C(!0),[]),onFocusableItemAdd:i.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>k(e=>e-1),[]),children:(0,n.jsx)(x.Primitive.div,{tabIndex:I||0===N?-1:0,"data-orientation":l,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(R,F);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>
2e.focusable);X([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),m)}}D.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),K=i.forwardRef(j(function(e,t){let{__scopeRovingFocusGroup:o,focusable:s=!0,active:l=!1,tabStopId:a,children:u,...d}=e,c=(0,y.useId)(),h=a||c,f=V("RovingFocusGroupItem",o),m=f.currentTabStopId===h,p=$(o),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:b}=f,w=M();return(0,I.useLayoutEffect)(()=>{if(w&&s)return g(),()=>v()},[w,s,g,v]),i.useEffect(()=>{if(!w&&s)return g(),()=>v()},[w,s,g,v]),(0,n.jsx)(P.ItemSlot,{scope:o,id:h,focusable:s,active:l,children:(0,n.jsx)(x.Primitive.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...d,ref:t,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?f.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>f.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=J(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let i=n.indexOf(e.currentTarget);n=f.loop?Q(n,i+1):n.slice(i+1)}setTimeout(()=>X(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=b}):u})})},"RovingFocusGroupItem")),q={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function J(e,t,n){let i=_(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return q[i]}function X(e,t=!1){let n=document.activeElement;for(let i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function Q(e,t){return e.map((n,i)=>e[(t+i)%e.length])}j(_,"getDirectionAwareKey"),j(J,"getFocusIntent"),j(X,"focusFirst"),j(Q,"wrapArray");var ee=e.i(110428),et=Object.defineProperty,en=(e,t)=>et(e,"name",{value:t,configurable:!0}),ei="Tabs",[er,eo]=(0,o.createContextScope)(ei,[H]),es=H(),[el,ea]=er(ei),eu=i.forwardRef(en(function(e,t){let{__scopeTabs:i,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:a,activationMode:u="automatic",...d}=e,c=(0,L.useDirection)(a),[h,f]=(0,S.useControllableState)({prop:r,onChange:o,defaultProp:s??"",caller:ei});return(0,n.jsx)(el,{scope:i,baseId:(0,y.useId)(),value:h,onValueChange:f,orientation:l,dir:c,activationMode:u,children:(0,n.jsx)(x.Primitive.div,{dir:c,"data-orientation":l,...d,ref:t})})},"Tabs")),ed=i.forwardRef(en(function(e,t){let{__scopeTabs:i,loop:r=!0,...o}=e,s=ea("TabsList",i),l=es(i);return(0,n.jsx)(Z,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:(0,n.jsx)(x.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})},"TabsList")),ec=i.forwardRef(en(function(e,t){let{__scopeTabs:i,value:o,disabled:s=!1,...l}=e,a=ea("TabsTrigger",i),u=es(i),d=ef(a.baseId,o),c=em(a.baseId,o),h=o===a.value;return(0,n.jsx)(K,{asChild:!0,...u,focusable:!s,active:h,children:(0,n.jsx)(x.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":c,"data-state":h?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...l,ref:t,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(o)}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{!s&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&a.onValueChange(o)}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==a.activationMode;h||s||!e||a.onValueChange(o)})})})},"TabsTrigger")),eh=i.forwardRef(en(function(e,t){let{__scopeTabs:r,value:o,forceMount:s,children:l,...a}=e,u=ea("TabsContent",r),d=ef(u.baseId,o),c=em(u.baseId,o),h=o===u.value,f=i.useRef(h);return i.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.jsx)(ee.Presence,{present:s||h,children:({present:i})=>(0,n.jsx)(x.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!i,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:i&&l})})},"TabsContent"));function ef(e,t){return`${e}-trigger-${t}`}function em(e,t){return`${e}-content-${t}`}en(ef,"makeTriggerId"),en(em,"makeContentId");let ep=new Map,eg=(0,i.createContext)(null);e.s(["Tabs",0,function({ref:e,groupId:r,persist:o=!1,updateAnchor:s=!1,defaultValue:l,value:a,onValueChange:u,...d}){let c=(0,i.useRef)(null),h=(0,i.useMemo)(()=>new Map,[]),f=(0,i.useMemo)(()=>
2new Map,[]),[m,p]=void 0===a?(0,i.useState)(l):[a,(0,i.useEffectEvent)(e=>u?.(e))];return(0,i.useLayoutEffect)(()=>{if(!r)return;let e=sessionStorage.getItem(r);o&&(e??=localStorage.getItem(r)),e&&p(e);let t=ep.get(r)??new Set;return t.add(p),ep.set(r,t),()=>{t.delete(p)}},[r,o]),(0,i.useLayoutEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,n]of h.entries())if(n===e){p(t),c.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,n]of f.entries())if(n.contains(t)){p(e),requestAnimationFrame(()=>t.scrollIntoView());return}}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[h,f]),(0,n.jsx)(eu,{ref:(0,t.mergeRefs)(e,c),value:m,onValueChange:e=>{if(s){let t=h.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(r){let t=ep.get(r);if(t)for(let n of t)n(e);sessionStorage.setItem(r,e),o&&localStorage.setItem(r,e)}else p(e)},...d,children:(0,n.jsx)(eg,{value:(0,i.useMemo)(()=>({valueToIdMap:h,panels:f}),[h,f]),children:d.children})})},"TabsContent",0,function({value:e,ref:r,...o}){let{valueToIdMap:s,panels:l}=function(){let e=(0,i.use)(eg);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return o.id&&s.set(e,o.id),(0,n.jsx)(eh,{ref:(0,t.mergeRefs)(r,t=>{t?l.set(e,t):l.delete(e)}),value:e,...o,children:o.children})},"TabsList",0,ed,"TabsTrigger",0,ec],261060)},611408,e=>{"use strict";var t=e.i(175938);e.s(["useCopyButton",0,function(e){let[n,i]=(0,t.useState)(!1),r=(0,t.useRef)(e),o=(0,t.useRef)(null);r.current=e;let s=(0,t.useCallback)(()=>{o.current&&window.clearTimeout(o.current),Promise.resolve(r.current()).then(()=>{i(!0),o.current=window.setTimeout(()=>{i(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[n,s]}])}]);
3
4//# debugId=f65fcfa9-e243-23c6-da47-31df06def5a9
5//# sourceMappingURL=3z1fslgardanl.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.