PageSourceSearch

https://www.builtcold.com/_next/static/immutable/chunks/1mzgpvw9f9pjl.js

js builtcold.com collected 2026-10-04 19:02:25 UTC 100,908 bytes, 4 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]="9cbe843f-5829-860e-7d50-02ee4c2c140e")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,900462,798873,97438,427804,235690,833761,212538,229833,e=>{"use strict";let t,n;var r=e.i(542124),a=e.i(522790),i=e.i(943473),l=e.i(85115);function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>a.createContext(e));return function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[function(t,i){let l=a.createContext(i);l.displayName=t+"Context";let o=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,u=n?.[e]?.[o]||l,c=a.useMemo(()=>s,Object.values(s));return(0,r.jsx)(u.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(n,r,s={}){let{optional:u=!1}=s,c=r?.[e]?.[o]||l,d=a.useContext(c);if(d)return d;if(void 0!==i)return i;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let a=n(e)[`__scope${r}`];return{...t,...a}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(i,...t)]}var s=globalThis?.document?a.useLayoutEffect:()=>{};a[" useEffectEvent ".trim().toString()],a[" useInsertionEffect ".trim().toString()];var u=a[" useInsertionEffect ".trim().toString()]||s;function c({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,l,o]=function({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),l=a.useRef(t);return u(()=>{l.current=t},[t]),a.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}({defaultProp:t,onChange:n}),s=void 0!==e,d=s?e:i;{let t=a.useRef(void 0!==e);a.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[d,a.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&o.current?.(n)}else l(t)},[s,e,l,o])]}Symbol("RADIX:SYNC_STATE");var d=e.i(595370),p=e.i(235235);function f(e){let t=e+"CollectionProvider",[n,i]=o(t),[s,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,i=a.useRef(null),l=a.useRef(new Map).current;return(0,r.jsx)(s,{scope:t,itemMap:l,collectionRef:i,children:n})};c.displayName=t;let d=e+"CollectionSlot",f=(0,p.createSlot)(d),m=a.forwardRef((e,t)=>{let{scope:n,children:a}=e,i=u(d,n),o=(0,l.useComposedRefs)(t,i.collectionRef);return(0,r.jsx)(f,{ref:o,children:a})});m.displayName=d;let g=e+"CollectionItemSlot",h="data-radix-collection-item",v=(0,p.createSlot)(g),x=a.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,s=a.useRef(null),c=(0,l.useComposedRefs)(t,s),d=u(g,n);return a.useEffect(()=>(d.itemMap.set(s,{ref:s,...o}),()=>void d.itemMap.delete(s))),(0,r.jsx)(v,{...{[h]:""},ref:c,children:i})});return x.displayName=g,[{Provider:c,Slot:m,ItemSlot:x},function(t){let n=u(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}var m=a.createContext(void 0);function g(e){let t=a.useContext(m);return e||t||"ltr"}var h=e.i(492124),v=0,x=null;function y(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var b=e.i(125433),_="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},j=a.forwardRef((e,t)=>
2{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[c,p]=a.useState(null),f=(0,b.useCallbackRef)(o),m=(0,b.useCallbackRef)(s),g=a.useRef(null),h=(0,l.useComposedRefs)(t,p),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(i){let e=function(e){if(v.paused||!c)return;let t=e.target;c.contains(t)?g.current=t:S(g.current,{select:!0})},t=function(e){if(v.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||S(g.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&S(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[i,c,v.paused]),a.useEffect(()=>{if(c){R.add(v);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(_,C);c.addEventListener(_,f),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(S(r,{select:t}),document.activeElement!==n)return}(P(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&S(c))}return()=>{c.removeEventListener(_,f),setTimeout(()=>{let t=new CustomEvent(w,C);c.addEventListener(w,m),c.dispatchEvent(t),t.defaultPrevented||S(e??document.body,{select:!0}),c.removeEventListener(w,m),R.remove(v)},0)}}},[c,f,m,v]);let x=a.useCallback(e=>{if(!n&&!i||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){var a;let t,i=e.currentTarget,[l,o]=[N(t=P(a=i),a),N(t.reverse(),a)];l&&o?e.shiftKey||r!==o?e.shiftKey&&r===l&&(e.preventDefault(),n&&S(o,{select:!0})):(e.preventDefault(),n&&S(l,{select:!0})):r===i&&e.preventDefault()}},[n,i,v.paused]);return(0,r.jsx)(d.Primitive.div,{tabIndex:-1,...u,ref:h,onKeyDown:x})});function P(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function N(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t})))return r}function S(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var R=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=k(n,e)).unshift(e)},remove(e){n=k(n,e),n[0]?.resume()}});function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var E=a[" useId ".trim().toString()]||(()=>void 0),I=0;function M(e){let[t,n]=a.useState(E());return s(()=>{e||n(e=>e??String(I++))},[e]),e||(t?`radix-${t}`:"")}let T=["top","right","bottom","left"],L=Math.min,A=Math.max,O=Math.round,D=Math.floor,$=e=>({x:e,y:e}),F={left:"right",right:"left",bottom:"top",top:"bottom"};function z(e,t){return"function"==typeof e?e(t):e}function H(e){return e.split("-")[0]}function B(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function V(e){return"y"===e?"height":"width"}function K(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function W(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let q=["left","right"],Z=["right","left"],G=["top","bottom"],Y=["bottom","top"];function X(e){let t=H(e);return F[t]+e.slice(t.length)}function J(e){var t,n,r,a;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(a=e.left)?a:0}:{top:e,right:e,bottom:e,left:e}}function Q(e){let{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ee(e,t,n){let r,{reference:a,floating:i}
2=e,l=K(t),o=U(K(t)),s=V(o),u=H(t),c=a.x+a.width/2-i.width/2,d=a.y+a.height/2-i.height/2,p=a[s]/2-i[s]/2;switch(u){case"top":r={x:c,y:a.y-i.height};break;case"bottom":r={x:c,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:d};break;case"left":r={x:a.x-i.width,y:d};break;default:r={x:a.x,y:a.y}}let f=B(t);return f&&(r[o]+=p*("end"===f?1:-1)*(n&&"y"===l?-1:1)),r}async function et(e,t){var n;void 0===t&&(t={});let{x:r,y:a,platform:i,rects:l,elements:o,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),m=J(f),g=o[p?"floating"===d?"reference":"floating":d],h=Q(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(o.floating)),y=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=Q(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:x,strategy:s}):v);return{top:(h.top-b.top+m.top)/y.y,bottom:(b.bottom-h.bottom+m.bottom)/y.y,left:(h.left-b.left+m.left)/y.x,right:(b.right-h.right+m.right)/y.x}}let en=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,o=l.detectOverflow?l:{...l,detectOverflow:et},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=ee(u,r,s),p=r,f=0,m={};for(let n=0;n<i.length;n++){let g=i[n];if(!g)continue;let{name:h,fn:v}=g,{x:x,y:y,data:b,reset:_}=await v({x:c,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=x?x:c,d=null!=y?y:d,m[h]={...m[h],...b},_&&f<50&&(f++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(u=!0===_.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):_.rects),{x:c,y:d}=ee(u,p,s)),n=-1)}return{x:c,y:d,placement:p,strategy:a,middlewareData:m}};function er(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ea(e){return T.some(t=>e[t]>=0)}let ei=new Set(["left","top"]);async function el(e,t){let{placement:n,platform:r,elements:a}=e,i=await (null==r.isRTL?void 0:r.isRTL(a.floating)),l=H(n),o=B(n),s="y"===K(n),u=ei.has(l)?-1:1,c=i&&s?-1:1,d=z(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof m&&(f="end"===o?-1*m:m),s?{x:f*c,y:p*u}:{x:p*u,y:f*c}}function eo(){return"u">typeof window}function es(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function eu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ec(e){var t;return null==(t=(ed(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ed(e){return!!eo()&&(e instanceof Node||e instanceof eu(e).Node)}function ep(e){return!!eo()&&(e instanceof Element||e instanceof eu(e).Element)}function ef(e){return!!eo()&&(e instanceof HTMLElement||e instanceof eu(e).HTMLElement)}function em(e){return!(!eo()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eu(e).ShadowRoot)}function eg(e){let{overflow:t,overflowX:n,overflowY:r,display:a}=eC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}function eh(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ev=/transform|translate|scale|rotate|perspective|filter/,ex=/paint|layout|strict|content/,ey=e=>!!e&&"none"!==e;function eb(e){let t=ep(e)?eC(e):e;return ey(t.transform)||ey(t.translate)||ey(t.scale)||ey(t.rotate)||ey(t.perspective)||!e_()&&(ey(t.backdropFilter)||ey(t.filter))||ev.test(t.willChange||"")||ex.test(t.contain||"")}function e_(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ew(e){return/^(html|body|#document)$/.test(es(e))}function eC(e){return eu(e).getComputedStyle(e)}function ej(e){return ep(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eP(e){if("html"===es(e))return e;let t=e.assignedSlot||e.parentNode||em(e)&&e.host||ec(e);return em(t)?t.host:t}
2function eN(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=function e(t){let n=eP(t);return ew(n)?(t.ownerDocument||t).body:ef(n)&&eg(n)?n:e(n)}(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),l=eu(a);if(!i)return t.concat(a,eN(a,[],n));{let e=eS(l);return t.concat(l,l.visualViewport||[],eg(a)?a:[],e&&n?eN(e):[])}}function eS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eR(e){let t=eC(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=ef(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:r,o=O(n)!==i||O(r)!==l;return o&&(n=i,r=l),{width:n,height:r,$:o}}function ek(e){return ep(e)?e:e.contextElement}function eE(e){let t=ek(e);if(!ef(t))return $(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:i}=eR(t),l=(i?O(n.width):n.width)/r,o=(i?O(n.height):n.height)/a;return l&&Number.isFinite(l)||(l=1),o&&Number.isFinite(o)||(o=1),{x:l,y:o}}let eI=$(0);function eM(e){let t=eu(e);return e_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eI}function eT(e,t,n,r){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ek(e),o=$(1);t&&(r?ep(r)&&(o=eE(r)):o=eE(e));let s=(void 0===(a=n)&&(a=!1),r&&a&&r===eu(l))?eM(l):$(0),u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,d=i.width/o.x,p=i.height/o.y;if(l&&r){let e=eu(l),t=ep(r)?eu(r):r,n=e,a=eS(n);for(;a&&t!==n;){let e=eE(a),t=a.getBoundingClientRect(),r=eC(a),i=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=i,c+=l,a=eS(n=eu(a))}}return Q({width:d,height:p,x:u,y:c})}function eL(e,t){let n=ej(e).scrollLeft;return t?t.left+n:eT(ec(e)).left+n}function eA(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eL(e,n),y:n.top+t.scrollTop}}function eO(e,t,n){var r;let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,a=eu(e),i=ec(e),l=a.visualViewport,o=i.clientWidth,s=i.clientHeight,u=0,c=0;if(l){let e=!e_()||"fixed"===t;r?e||(u=-l.offsetLeft,c=-l.offsetTop):(o=l.width,s=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=eL(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?a/2:a;l<=25&&(o-=l)}return{width:o,height:s,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,i,l,o,s;t=ej(r=ec(e)),n=r.ownerDocument.body,i=A(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=A(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+eL(r),s=-t.scrollTop,"rtl"===eC(n).direction&&(o+=A(r.clientWidth,n.clientWidth)-i),a={width:i,height:l,x:o,y:s}}else if(ep(t)){let e,r,i,l,o,s;r=(e=eT(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=eE(t),o=t.clientWidth*l.x,s=t.clientHeight*l.y,a={width:o,height:s,x:i*l.x,y:r*l.y}}else{let n=eM(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Q(a)}function eD(e){return"static"===eC(e).position}function e$(e,t){if(!ef(e)||"fixed"===eC(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ec(e)===n&&(n=n.ownerDocument.body),n}function eF(e,t){var n;let r=eu(e);if(eh(e))return r;if(!ef(e)){let t=eP(e);for(;t&&!ew(t);){if(ep(t)&&!eD(t))return t;t=eP(t)}return r}let a=e$(e,t);for(;a&&(n=a,/^(table|td|th)$/.test(es(n)))&&eD(a);)a=e$(a,t);return a&&ew(a)&&eD(a)&&!eb(a)?r:a||function(e){let t=eP(e);for(;ef(t)&&!ew(t);){if(eb(t))return t;if(eh(t))break;t=eP(t)}return null}(e)||r}let ez=async function(e){let t=this.getOffsetParent||eF,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ef(t),a=ec(t),i="fixed"===n,l=eT(e,!0,i,t),o={scrollLeft:0,scrollTop:0},s=$(0);if((r||!i)&&(("body"!==es(t)||eg(a))&&(o=ej(t)),r)){let e=eT(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&a&&(s.x=eL(a));let u=!a||r||i?$(0):eA(a,o);return{x:l.left+o.scrollLeft-s.x-u.x,y:l.top+o.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eH={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,i="fixed"===a,l=ec(r),o=!!t&&eh(t.floating);if(r===l||o&&i)return n;let s={scrollLeft:0,scrollTop:0},u=$(1),c=$(0),d=ef(r);
2if((d||!i)&&(("body"!==es(r)||eg(l))&&(s=ej(r)),d)){let e=eT(r);u=eE(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||i?$(0):eA(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-s.scrollTop*u.y+c.y+p.y}},getDocumentElement:ec,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,i=[..."clippingAncestors"===n?eh(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eN(e,[],!1).filter(e=>ep(e)&&"body"!==es(e)),a=null,i="fixed"===eC(e).position,l=i?eP(e):e;for(;ep(l)&&!ew(l);){let e=eC(l),t=eb(l),n=a?a.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?a=e:r=r.filter(e=>e!==l),l=eP(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eO(t,i[0],a),o=l.top,s=l.right,u=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=eO(t,i[e],a);o=A(n.top,o),s=L(n.right,s),u=L(n.bottom,u),c=A(n.left,c)}return{width:s-c,height:u-o,x:c,y:o}},getOffsetParent:eF,getElementRects:ez,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eR(e);return{width:t,height:n}},getScale:eE,isElement:ep,isRTL:function(e){return"rtl"===eC(e).direction}};function eB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eU=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:i,platform:l,elements:o,middlewareData:s}=t,{element:u,padding:c=0}=z(e,t)||{};if(null==u)return{};let d=J(c),p={x:n,y:r},f=U(K(a)),m=V(f),g=await l.getDimensions(u),h="y"===f,v=h?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[f]-p[f]-i.floating[m],y=p[f]-i.reference[f],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),_=b?b[v]:0;_&&await (null==l.isElement?void 0:l.isElement(b))||(_=o.floating[v]||i.floating[m]);let w=_/2-g[m]/2-1,C=L(d[h?"top":"left"],w),j=L(d[h?"bottom":"right"],w),P=_-g[m]-j,N=_/2-g[m]/2+(x/2-y/2),S=A(C,L(N,P)),R=!s.arrow&&null!=B(a)&&N!==S&&i.reference[m]/2-(N<C?C:j)-g[m]/2<0,k=R?N<C?N-C:N-P:0;return{[f]:p[f]+k,data:{[f]:S,centerOffset:N-S-k,...R&&{alignmentOffset:k}},reset:R}}});var eV=e.i(559852),eK="u">typeof document?a.useLayoutEffect:function(){};function eW(e,t){let n,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eW(e[r],t[r]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){let n=a[r];if(("_owner"!==n||!e.$$typeof)&&!eW(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eq(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eZ(e,t){let n=eq(e);return Math.round(t*n)/n}function eG(e){let t=a.useRef(e);return eK(()=>{t.current=e}),t}var eY=a.forwardRef((e,t)=>{let{children:n,width:a=10,height:i=5,...l}=e;return(0,r.jsx)(d.Primitive.svg,{...l,ref:t,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,r.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eY.displayName="Arrow";var eX="Popper",[eJ,eQ]=o(eX),[e0,e1]=eJ(eX),e2=e=>{let{__scopePopper:t,children:n}=e,[i,l]=a.useState(null),[o,s]=a.useState(void 0);return(0,r.jsx)(e0,{scope:t,anchor:i,onAnchorChange:l,placementState:o,setPlacementState:s,children:n})};e2.displayName=eX;var e3="PopperAnchor",e4=a.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,s=e1(e3,n),u=a.useRef(null),c=s.onAnchorChange,p=a.useCallback(e=>{u.current=e,e&&c(e)},[c]),f=(0,l.useComposedRefs)(t,p),m=a.useRef(null);a.useEffect(()=>{if(!i)return;let e=m.current;m.current=i.current,e!==m.current&&c(m.current)});let g=s.placementState&&ta(s.placementState),h=g?.[0],v=g?.[1];return i?null:(0,r.jsx)(d.Primitive.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...o,ref:f})});e4.displayName=e3;var e5="PopperContent",[e8,e6]=eJ(e5),e9=a.forwardRef((e,t)=>{var n,i,o,u,c,p,f,m,g,h,v,x,y;let _,w,C,j,P,N,{__scopePopper:S,side:R="bottom",sideOffset:k=0,align:E="center",alignOffset:I=0,arrowPadding:M=0,avoidCollisions:T=!0,collisionBoundary:O=[],collisionPadding:$=0,sticky:F="partial",hideWhenDetached:J=!1,updatePositionStrategy:Q="optimized",onPlaced:ee,...et}
2=e,eo=e1(e5,S),[es,ed]=a.useState(null),ep=(0,l.useComposedRefs)(t,ed),[ef,em]=a.useState(null),eg=function(e){let[t,n]=a.useState(void 0);return s(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;n({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ef),eh=eg?.width??0,ev=eg?.height??0,ex="number"==typeof $?$:{top:0,right:0,bottom:0,left:0,...$},ey=Array.isArray(O)?O:[O],eb=ey.length>0,e_={padding:ex,boundary:ey.filter(tn),altBoundary:eb},{refs:ew,floatingStyles:eC,placement:ej,isPositioned:eP,middlewareData:eS}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:o}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=a.useState(r);eW(f,r)||m(r);let[g,h]=a.useState(null),[v,x]=a.useState(null),y=a.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=a.useCallback(e=>{e!==j.current&&(j.current=e,x(e))},[]),_=l||g,w=o||v,C=a.useRef(null),j=a.useRef(null),P=a.useRef(d),N=null!=u,S=eG(u),R=eG(i),k=eG(c),E=a.useCallback(()=>{var e,r;let a,i,l;if(!C.current||!j.current)return;let o={placement:t,strategy:n,middleware:f};R.current&&(o.platform=R.current),(e=C.current,r=j.current,a=new Map,i=null!=o?o:{},l={...eH,...i.platform,_c:a},en(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==k.current};I.current&&!eW(P.current,t)&&(P.current=t,eV.flushSync(()=>{p(t)}))})},[f,t,n,R,k]);eK(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let I=a.useRef(!1);eK(()=>(I.current=!0,()=>{I.current=!1}),[]),eK(()=>{if(_&&(C.current=_),w&&(j.current=w),_&&w){if(S.current)return S.current(_,w,E);E()}},[_,w,E,S,N]);let M=a.useMemo(()=>({reference:C,floating:j,setReference:y,setFloating:b}),[y,b]),T=a.useMemo(()=>({reference:_,floating:w}),[_,w]),L=a.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=eZ(T.floating,d.x),r=eZ(T.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eq(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:E,refs:M,elements:T,floatingStyles:L}),[d,E,M,T,L])}({strategy:"fixed",placement:R+("center"!==E?"-"+E:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ek(e),d=i||l?[...c?eN(c):[],...t?eN(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let p=c&&s?function(e,t,n){let r,a=null,i=ec(e);function l(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}function o(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),l();let u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(n||t(),!p||!f)return;let m={rootMargin:-D(d)+"px "+-D(i.clientWidth-(c+p))+"px "+-D(i.clientHeight-(d+f))+"px "+-D(c)+"px",threshold:A(0,L(1,s))||1},g=!0;function h(t){let n=t[0].intersectionRatio;if(!eB(u,e.getBoundingClientRect()))return o();if(n!==s){if(!g)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}g=!1}try{a=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){a=new IntersectionObserver(h,m)}a.observe(e)}let s=eu(e),u=()=>o(n);return s.addEventListener("resize",u),o(!0),()=>{s.removeEventListener("resize",u),l()}}(c,n,l):null,f=-1,m=null;o&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let g=u?eT(e):null;return u&&function t(){let r=eT(e);g&&!eB(g,r)&&n(),g=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;
2d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===Q}),elements:{reference:eo.anchor},middleware:[{name:(_={name:"offset",options:i=n={mainAxis:k+ev,alignmentAxis:I},async fn(e){var t,n;let{x:r,y:a,placement:l,middlewareData:o}=e,s=await el(e,i);return l===(null==(t=o.offset)?void 0:t.placement)&&null!=(n=o.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:l}}}}).name,fn:_.fn,options:[n,void 0]},T&&{name:(w={name:"shift",options:c=u={mainAxis:!0,crossAxis:!1,limiter:"partial"===F?{fn:(o=void 0,{options:o={},fn(e){var t,n,r,a;let{x:i,y:l,placement:s,rects:u,middlewareData:c}=e,{offset:d=0,mainAxis:p=!0,crossAxis:f=!0}=z(o,e),m={x:i,y:l},g=K(s),h=U(g),v=m[h],x=m[g],y=z(d,e),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(t=y.mainAxis)?t:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(p){let e="y"===h?"height":"width",t=u.reference[h]-u.floating[e]+b.mainAxis,n=u.reference[h]+u.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(f){let e="y"===h?"width":"height",t=ei.has(H(s)),n=u.reference[g]-u.floating[e]+(t&&(null==(r=c.offset)?void 0:r[g])||0)+(t?0:b.crossAxis),i=u.reference[g]+u.reference[e]+(t?0:(null==(a=c.offset)?void 0:a[g])||0)-(t?b.crossAxis:0);x<n?x=n:x>i&&(x=i)}return{[h]:v,[g]:x}}}).fn,options:[void 0,void 0]}:void 0,...e_},async fn(e){let{x:t,y:n,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=z(c,e),u={x:t,y:n},d=await a.detectOverflow(e,s),p=K(r),f=U(p),m=u[f],g=u[p],h=(e,t)=>A(t+d["y"===e?"top":"left"],L(t,t-d["y"===e?"bottom":"right"]));i&&(m=h(f,m)),l&&(g=h(p,g));let v=o.fn({...e,[f]:m,[p]:g});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[f]:i,[p]:l}}}}}).name,fn:w.fn,options:[u,void 0]},T&&{name:(C={name:"flip",options:f=p={...e_},async fn(e){var t,n,r,a,i,l,o,s;let u,c,d,{placement:p,middlewareData:m,rects:g,initialPlacement:h,platform:v,elements:x}=e,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:_,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:j=!0,...P}=z(f,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let N=H(p),S=K(h),R=H(h)===h,k=await (null==v.isRTL?void 0:v.isRTL(x.floating)),E=_||(R||!j?[X(h)]:(u=X(h),[W(h),u,W(u)])),I="none"!==C;!_&&I&&E.push(...(c=B(h),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Z:q;return t?q:Z;case"left":case"right":return t?G:Y;default:return[]}}(H(h),"start"===C,k),c&&(d=d.map(e=>e+"-"+c),j&&(d=d.concat(d.map(W)))),d));let M=[h,...E],T=await v.detectOverflow(e,P),L=[],A=(null==(n=m.flip)?void 0:n.overflows)||[];if(y&&L.push(T[N]),b){let e,t,n,r,a=(l=p,o=g,void 0===(s=k)&&(s=!1),e=B(l),n=V(t=U(K(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",o.reference[n]>o.floating[n]&&(r=X(r)),[r,X(r)]);L.push(T[a[0]],T[a[1]])}if(A=[...A,{placement:p,overflows:L}],!L.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=M[e];if(t&&("alignment"!==b||S===K(t)||A.every(e=>K(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(a=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(i=A.filter(e=>{if(I){let t=K(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=h}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:C.fn,options:[p,void 0]},{name:(j={name:"size",options:g=m={...e_,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:a,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){let t,n,{placement:r,rects:a,platform:i,elements:l}=e,{apply:o=()=>{},...s}=z(g,e),u=await i.detectOverflow(e,s),c=H(r),d=B(r),p="y"===K(r),{width:f,height:m}=a.floating;"top"===c||"bottom"===c?(t=c,n=d===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=c,t="end"===d?"top":"bottom");let h=m-u.top-u.bottom,v=f-u.left-u.right,x=L(m-u[t],h),y=L(f-u[n],v),b=e.middlewareData.shift,_=!b,w=x,C=y;null!=b&&b.enabled.x&&(C=v),null!=b&&b.enabled.y&&(w=h),_&&!d&&(p?C=f-2*A(u.left,u.right):w=m-2*A(u.top,u.bottom)),await o({...e,availableWidth:C,availableHeight:w});let j=await i.getDimensions(l.floating);return f!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}).name,fn:j.fn,options:[m,void 0]},ef&&{name:(P={name:"arrow",options:v=h={element:ef,padding:M},fn(e){let{element:t,padding:n}="function"==typeof v?v(e):v;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eU({element:t.current,padding:n}).fn(e):{}:t?eU({element:t,padding:n}).fn(e):{}}}).name,fn:P.fn,options:[h,void 0]},tr({arrowWidth:eh,arrowHeight:ev}),J&&{name:(N={name:"hide",options:y=x={strategy:"referenceHidden",...e_,boundary:eb?e_.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...a}=z(y,e);switch(r){case"referenceHidden":{let r=er(await n.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ea(r)}}}case"escaped":{let r=er(await n.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:ea(r)}}}default:return{}}}}).name,fn:N.fn,options:[x,void 0]}]}),eR=eo.setPlacementState;s(()=>(eR(ej),()=>{eR(void 0)}),[ej,eR]);let[eE,eI]=ta(ej),eM=(0,b.useCallbackRef)(ee);s(()=>{eP&&eM?.()},[eP,eM]);let eL=eS.arrow?.x,eA=eS.arrow?.y,eO=eS.arrow?.centerOffset!==0,[eD,e$]=a.useState();return s(()=>{es&&e$(window.getComputedStyle(es).zIndex)},[es]),(0,r.jsx)("div",{ref:ew.setFloating,"data-radix-popper-content-wrapper":"",style:{...eC,transform:eP?eC.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eD,"--radix-popper-transform-origin":[eS.transformOrigin?.x,eS.transformOrigin?.y].join(" "),...eS.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,r.jsx)(e8,{scope:S,placedSide:eE,placedAlign:eI,onArrowChange:em,arrowX:eL,arrowY:eA,shouldHideArrow:eO,children:(0,r.jsx)(d.Primitive.div,{"data-side":eE,"data-align":eI,...et,ref:ep,style:{...et.style,animation:eP?void 0:"none"}})})})});e9.displayName=e5;var e7="PopperArrow",te={top:"bottom",right:"left",bottom:"top",left:"r
2ight"},tt=a.forwardRef(function(e,t){let{__scopePopper:n,...a}=e,i=e6(e7,n),l=te[i.placedSide];return(0,r.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]: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:(0,r.jsx)(eY,{...a,ref:t,style:{...a.style,display:"block"}})})});function tn(e){return null!==e}tt.displayName=e7;var tr=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,o=i?0:e.arrowHeight,[s,u]=ta(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(a.arrow?.x??0)+l/2,p=(a.arrow?.y??0)+o/2,f="",m="";return"bottom"===s?(f=i?c:`${d}px`,m=`${-o}px`):"top"===s?(f=i?c:`${d}px`,m=`${r.floating.height+o}px`):"right"===s?(f=`${-o}px`,m=i?c:`${p}px`):"left"===s&&(f=`${r.floating.width+o}px`,m=i?c:`${p}px`),{data:{x:f,y:m}}}});function ta(e){let[t,n="center"]=e.split("-");return[t,n]}var ti=a.forwardRef((e,t)=>{let{container:n,...i}=e,[l,o]=a.useState(!1);s(()=>o(!0),[]);let u=n||l&&globalThis?.document?.body;return u?eV.createPortal((0,r.jsx)(d.Primitive.div,{...i,ref:t}),u):null});ti.displayName="Portal";var tl=e=>{var t;let n,r,{present:i,children:l}=e,o=function(e){var t,n;let[r,i]=a.useState(),l=a.useRef(null),o=a.useRef(e),u=a.useRef("none"),c=a.useRef(void 0),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>n[e][t]??e,t));return a.useEffect(()=>{"mounted"===d?(u.current=c.current??ts(l.current),c.current=void 0):u.current="none"},[d]),s(()=>{let t=l.current,n=o.current;if(n!==e){let r=u.current,a=ts(t);e?(c.current=a,p("MOUNT")):"none"===a||t?.display==="none"?p("UNMOUNT"):n&&r!==a?p("ANIMATION_OUT"):p("UNMOUNT"),o.current=e}},[e,p]),s(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let a=ts(l.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(p("ANIMATION_END"),!o.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},a=e=>{e.target===r&&(u.current=ts(l.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:a.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,c.current=ts(t)}else l.current=null;i(e)},[])}}(i),u="function"==typeof l?l({present:o.isPresent}):a.Children.only(l),c=function(...e){let t=a.useRef(e);return t.current=e,a.useCallback(e=>{let n=t.current,r=!1,a=n.map(t=>{let n=to(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t?t():to(n[e],null)}}},[])}(o.ref,(t=u,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof l||o.isPresent?a.cloneElement(u,{ref:c}):null};function to(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ts(e){return e?.animationName||"none"}tl.displayName="Presence";var tu=!1,tc=a[" useSyncExternalStore ".trim().toString()];function td(){return()=>{}}var tp="function"==typeof tc?function(){return tc(td,()=>!0,()=>!1)}:function(){let[e,t]=a.useState(tu);return a.useEffect(()=>{tu||(tu=!0,t(!0))},[]),e},tf="rovingFocusGroup.onEntryFocus",tm={bubbles:!1,cancelable:!0}
2,tg="RovingFocusGroup",[th,tv,tx]=f(tg),[ty,tb]=o(tg,[tx]),[t_,tw]=ty(tg),tC=a.forwardRef((e,t)=>(0,r.jsx)(th.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(th.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(tj,{...e,ref:t})})}));tC.displayName=tg;var tj=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:u,currentTabStopId:p,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:v=!1,...x}=e,y=a.useRef(null),_=(0,l.useComposedRefs)(t,y),w=g(u),[C,j]=c({prop:p,defaultProp:f??null,onChange:m,caller:tg}),[P,N]=a.useState(!1),S=(0,b.useCallbackRef)(h),R=tv(n),k=a.useRef(!1),[E,I]=a.useState(0);return a.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(tf,S),()=>e.removeEventListener(tf,S)},[S]),(0,r.jsx)(t_,{scope:n,orientation:o,dir:w,loop:s,currentTabStopId:C,onItemFocus:a.useCallback(e=>j(e),[j]),onItemShiftTab:a.useCallback(()=>N(!0),[]),onFocusableItemAdd:a.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>I(e=>e-1),[]),children:(0,r.jsx)(d.Primitive.div,{tabIndex:P||0===E?-1:0,"data-orientation":o,...x,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,i.composeEventHandlers)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(tf,tm);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>e.focusable);tR([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),v)}}k.current=!1}),onBlur:(0,i.composeEventHandlers)(e.onBlur,()=>N(!1))})})}),tP="RovingFocusGroupItem",tN=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:l=!0,active:o=!1,tabStopId:u,children:c,...p}=e,f=M(),m=u||f,g=tw(tP,n),h=g.currentTabStopId===m,v=tv(n),{onFocusableItemAdd:x,onFocusableItemRemove:y,currentTabStopId:b}=g,_=tp();return s(()=>{if(_&&l)return x(),()=>y()},[_,l,x,y]),a.useEffect(()=>{if(!_&&l)return x(),()=>y()},[_,l,x,y]),(0,r.jsx)(th.ItemSlot,{scope:n,id:m,focusable:l,active:o,children:(0,r.jsx)(d.Primitive.span,{tabIndex:h?0:-1,"data-orientation":g.orientation,...p,ref:t,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{l?g.onItemFocus(m):e.preventDefault()}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let a=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return tS[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&a.reverse();let i=a.indexOf(e.currentTarget);a=g.loop?(n=a,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):a.slice(i+1)}setTimeout(()=>tR(a))}}),children:"function"==typeof c?c({isCurrentTabStop:h,hasTabStop:null!=b}):c})})});tN.displayName=tP;var tS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tR(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tk=e.i(645751),tE=e.i(715588),tI=["Enter"," "],tM=["ArrowUp","PageDown","End"],tT=["ArrowDown","PageUp","Home",...tM],tL={ltr:[...tI,"ArrowRight"],rtl:[...tI,"ArrowLeft"]},tA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tO="Menu",[tD,t$,tF]=f(tO),[tz,tH]=o(tO,[tF,eQ,tb]),tB=eQ(),tU=tb(),[tV,tK]=tz(tO),[tW,tq]=tz(tO),tZ=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:l,onOpenChange:o,modal:s=!0}=e,u=tB(t),[c,d]=a.useState(null),p=a.useRef(!1),f=(0,b.useCallbackRef)(o),m=g(l);return a.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),a.useEffect(()=>{if(!n)return;let e=()=>f(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,f]),(0,r.jsx)(e2,{...u,children:(0,r.jsx)(tV,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:d,children:(0,r.jsx)(tW,{scope:t,onClose:a.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:m,modal:s,children:i})})})};tZ.displayName=tO;var tG=a.forwardRef((e,t)=>
2{let{__scopeMenu:n,...a}=e,i=tB(n);return(0,r.jsx)(e4,{...i,...a,ref:t})});tG.displayName="MenuAnchor";var tY="MenuPortal",[tX,tJ]=tz(tY,{forceMount:void 0}),tQ=e=>{let{__scopeMenu:t,forceMount:n,children:a,container:i}=e,l=tK(tY,t);return(0,r.jsx)(tX,{scope:t,forceMount:n,children:(0,r.jsx)(tl,{present:n||l.open,children:(0,r.jsx)(ti,{asChild:!0,container:i,children:a})})})};tQ.displayName=tY;var t0="MenuContent",[t1,t2]=tz(t0),t3=a.forwardRef((e,t)=>{let n=tJ(t0,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,l=tK(t0,e.__scopeMenu),o=tq(t0,e.__scopeMenu);return(0,r.jsx)(tD.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(tl,{present:a||l.open,children:(0,r.jsx)(tD.Slot,{scope:e.__scopeMenu,children:o.modal?(0,r.jsx)(t4,{...i,ref:t}):(0,r.jsx)(t5,{...i,ref:t})})})})}),t4=a.forwardRef((e,t)=>{let n=tK(t0,e.__scopeMenu),o=a.useRef(null),s=(0,l.useComposedRefs)(t,o);return a.useEffect(()=>{let e=o.current;if(e)return(0,tk.hideOthers)(e)},[]),(0,r.jsx)(t6,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),t5=a.forwardRef((e,t)=>{let n=tK(t0,e.__scopeMenu);return(0,r.jsx)(t6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t8=(0,p.createSlot)("MenuContent.ScrollLock"),t6=a.forwardRef((e,t)=>{let{__scopeMenu:n,loop:o=!1,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:b,onDismiss:_,disableOutsideScroll:w,...C}=e,P=tK(t0,n),N=tq(t0,n),S=tB(n),R=tU(n),k=t$(n),[E,I]=a.useState(null),M=a.useRef(null),T=(0,l.useComposedRefs)(t,M,P.onContentChange),L=a.useRef(0),A=a.useRef(""),O=a.useRef(0),D=a.useRef(null),$=a.useRef("right"),F=a.useRef(0),z=w?tE.RemoveScroll:a.Fragment;a.useEffect(()=>()=>window.clearTimeout(L.current),[]),a.useEffect(()=>{x||(x={start:y(),end:y()});let{start:e,end:t}=x;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),v++,()=>{1===v&&(x?.start.remove(),x?.end.remove(),x=null),v=Math.max(0,v-1)}},[]);let H=a.useCallback(e=>{var t,n;return $.current===D.current?.side&&(t=e,!!(n=D.current?.area)&&function(e,t){let{x:n,y:r}=e,a=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],o=t[i],s=l.x,u=l.y,c=o.x,d=o.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(a=!a)}return a}({x:t.clientX,y:t.clientY},n))},[]);return(0,r.jsx)(t1,{scope:n,searchRef:A,onItemEnter:a.useCallback(e=>{H(e)&&e.preventDefault()},[H]),onItemLeave:a.useCallback(e=>{H(e)||(M.current?.focus(),I(null))},[H]),onTriggerLeave:a.useCallback(e=>{H(e)&&e.preventDefault()},[H]),pointerGraceTimerRef:O,onPointerGraceIntentChange:a.useCallback(e=>{D.current=e},[]),children:(0,r.jsx)(z,{...w?{as:t8,allowPinchZoom:!0}:void 0,children:(0,r.jsx)(j,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.composeEventHandlers)(u,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,r.jsx)(h.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:b,onDismiss:_,children:(0,r.jsx)(tC,{asChild:!0,...R,dir:N.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:I,onEntryFocus:(0,i.composeEventHandlers)(p,e=>{N.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,r.jsx)(e9,{role:"menu","aria-orientation":"vertical","data-state":nC(P.o
2pen),"data-radix-menu-content":"",dir:N.dir,...S,...C,ref:T,style:{outline:"none",...C.style},onKeyDown:(0,i.composeEventHandlers)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var a;let t,i,l,o,s,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(a=e.key,t=A.current+a,i=k().filter(e=>!e.disabled),l=document.activeElement,o=i.find(e=>e.ref.current===l)?.textValue,s=function(e,t,n){var r;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===a.length&&(l=l.filter(e=>e!==n));let o=l.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),t,o),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){A.current=t,window.clearTimeout(L.current),""!==t&&(L.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=M.current;if(e.target!==i||!tT.includes(e.key))return;e.preventDefault();let l=k().filter(e=>!e.disabled).map(e=>e.ref.current);tM.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,i.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),A.current="")}),onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,nN(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&($.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});t3.displayName=t0;var t9=a.forwardRef((e,t)=>{let{__scopeMenu:n,...a}=e;return(0,r.jsx)(d.Primitive.div,{role:"group",...a,ref:t})});t9.displayName="MenuGroup";var t7=a.forwardRef((e,t)=>{let{__scopeMenu:n,...a}=e;return(0,r.jsx)(d.Primitive.div,{...a,ref:t})});t7.displayName="MenuLabel";var ne="MenuItem",nt="menu.itemSelect",nn=a.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:o,...s}=e,u=a.useRef(null),c=tq(ne,e.__scopeMenu),p=t2(ne,e.__scopeMenu),f=(0,l.useComposedRefs)(t,u),m=a.useRef(!1);return(0,r.jsx)(nr,{...s,ref:f,disabled:n,onClick:(0,i.composeEventHandlers)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(nt,{bubbles:!0,cancelable:!0});e.addEventListener(nt,e=>o?.(e),{once:!0}),(0,d.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,i.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(""===p.searchRef.current||" "!==e.key)&&tI.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nn.displayName=ne;var nr=a.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:o=!1,textValue:s,...u}=e,c=t2(ne,n),p=tU(n),f=a.useRef(null),m=(0,l.useComposedRefs)(t,f),[g,h]=a.useState(!1),[v,x]=a.useState("");return a.useEffect(()=>{let e=f.current;e&&x((e.textContent??"").trim())},[u.children]),(0,r.jsx)(tD.ItemSlot,{scope:n,disabled:o,textValue:s??v,children:(0,r.jsx)(tN,{asChild:!0,...p,focusable:!o,children:(0,r.jsx)(d.Primitive.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:m,onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,nN(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,nN(e=>c.onItemLeave(e))),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>h(!0)),onBlur:(0,i.composeEventHandlers)(e.onBlur,()=>h(!1))})})})}),na=a.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:a,...l}=e;return(0,r.jsx)(np,{scope:e.__scopeMenu,checked:n,children:(0,r.jsx)(nn,{role:"menuitemcheckbox","aria-checked":nj(n)?"mixed":n,...l,ref:t,"data-state":nP(n),onSelect:(0,i.composeEventHandlers)(l.onSelect,()=>a?.(!!nj(n)||!n),{checkForDefaultPrevented:!1})})})});na.displayName="MenuCheckboxItem";var ni="MenuRadioGroup",[nl,no]=tz(ni,{value:void 0,onValueChange:()=>{}}),ns=a.forwardRef((e,t)=>
2{let{value:n,onValueChange:a,...i}=e,l=(0,b.useCallbackRef)(a);return(0,r.jsx)(nl,{scope:e.__scopeMenu,value:n,onValueChange:l,children:(0,r.jsx)(t9,{...i,ref:t})})});ns.displayName=ni;var nu="MenuRadioItem",nc=a.forwardRef((e,t)=>{let{value:n,...a}=e,l=no(nu,e.__scopeMenu),o=n===l.value;return(0,r.jsx)(np,{scope:e.__scopeMenu,checked:o,children:(0,r.jsx)(nn,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":nP(o),onSelect:(0,i.composeEventHandlers)(a.onSelect,()=>l.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nc.displayName=nu;var nd="MenuItemIndicator",[np,nf]=tz(nd,{checked:!1}),nm=a.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:a,...i}=e,l=nf(nd,n);return(0,r.jsx)(tl,{present:a||nj(l.checked)||!0===l.checked,children:(0,r.jsx)(d.Primitive.span,{...i,ref:t,"data-state":nP(l.checked)})})});nm.displayName=nd;var ng=a.forwardRef((e,t)=>{let{__scopeMenu:n,...a}=e;return(0,r.jsx)(d.Primitive.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});ng.displayName="MenuSeparator";var nh=a.forwardRef((e,t)=>{let{__scopeMenu:n,...a}=e,i=tB(n);return(0,r.jsx)(tt,{...i,...a,ref:t})});nh.displayName="MenuArrow";var[nv,nx]=tz("MenuSub"),ny="MenuSubTrigger",nb=a.forwardRef((e,t)=>{let n=tK(ny,e.__scopeMenu),o=tq(ny,e.__scopeMenu),s=nx(ny,e.__scopeMenu),u=t2(ny,e.__scopeMenu),c=a.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=u,f={__scopeMenu:e.__scopeMenu},m=a.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);a.useEffect(()=>m,[m]),a.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),p(null)}},[d,p]);let g=(0,l.useComposedRefs)(t,s.onTriggerChange);return(0,r.jsx)(tG,{asChild:!0,...f,children:(0,r.jsx)(nr,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?s.contentId:void 0,"data-state":nC(n.open),...e,ref:g,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,nN(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,nN(e=>{m();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,a="right"===r,i=t[a?"left":"right"],l=t[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(""===u.searchRef.current||" "!==t.key)&&tL[o.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});nb.displayName=ny;var n_="MenuSubContent",nw=a.forwardRef((e,t)=>{let n=tJ(t0,e.__scopeMenu),{forceMount:o=n.forceMount,align:s="start",...u}=e,c=tK(t0,e.__scopeMenu),d=tq(t0,e.__scopeMenu),p=nx(n_,e.__scopeMenu),f=a.useRef(null),m=(0,l.useComposedRefs)(t,f);return(0,r.jsx)(tD.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(tl,{present:o||c.open,children:(0,r.jsx)(tD.Slot,{scope:e.__scopeMenu,children:(0,r.jsx)(t6,{id:p.contentId,"aria-labelledby":p.triggerId,...u,ref:m,align:s,side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==p.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,i.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tA[d.dir].includes(e.key);t&&n&&(c.onOpenChange(!1),p.trigger?.focus(),e.preventDefault())})})})})})});function nC(e){return e?"open":"closed"}function nj(e){return"indeterminate"===e}function nP(e){return nj(e)?"indeterminate":e?"checked":"unchecked"}function nN(e){return t=>
2"mouse"===t.pointerType?e(t):void 0}nw.displayName=n_;var nS="DropdownMenu",[nR,nk]=o(nS,[tH]),nE=tH(),[nI,nM]=nR(nS),nT=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:l,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,d=nE(t),p=a.useRef(null),[f,m]=c({prop:l,defaultProp:o??!1,onChange:s,caller:nS});return(0,r.jsx)(nI,{scope:t,triggerId:M(),triggerRef:p,contentId:M(),open:f,onOpenChange:m,onOpenToggle:a.useCallback(()=>m(e=>!e),[m]),modal:u,children:(0,r.jsx)(tZ,{...d,open:f,onOpenChange:m,dir:i,modal:u,children:n})})};nT.displayName=nS;var nL="DropdownMenuTrigger",nA=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,s=nM(nL,n),u=nE(n),c=(0,l.useComposedRefs)(t,s.triggerRef);return(0,r.jsx)(tG,{asChild:!0,...u,children:(0,r.jsx)(d.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:c,onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,e=>{!a&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{!a&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nA.displayName=nL;var nO=e=>{let{__scopeDropdownMenu:t,...n}=e,a=nE(t);return(0,r.jsx)(tQ,{...a,...n})};nO.displayName="DropdownMenuPortal";var nD="DropdownMenuContent",n$=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...l}=e,o=nM(nD,n),s=nE(n),u=a.useRef(!1);return(0,r.jsx)(t3,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...l,ref:t,onCloseAutoFocus:(0,i.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||o.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n$.displayName=nD,a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(t9,{...i,...a,ref:t})}).displayName="DropdownMenuGroup",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(t7,{...i,...a,ref:t})}).displayName="DropdownMenuLabel";var nF=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nn,{...i,...a,ref:t})});nF.displayName="DropdownMenuItem";var nz=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(na,{...i,...a,ref:t})});nz.displayName="DropdownMenuCheckboxItem";var nH=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(ns,{...i,...a,ref:t})});nH.displayName="DropdownMenuRadioGroup";var nB=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nc,{...i,...a,ref:t})});nB.displayName="DropdownMenuRadioItem";var nU=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nm,{...i,...a,ref:t})});nU.displayName="DropdownMenuItemIndicator";var nV=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(ng,{...i,...a,ref:t})});nV.displayName="DropdownMenuSeparator",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nh,{...i,...a,ref:t})}).displayName="DropdownMenuArrow",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nb,{...i,...a,ref:t})}).displayName="DropdownMenuSubTrigger",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nE(n);return(0,r.jsx)(nw,{...i,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var nK=e.i(39585),nW=e.i(24904),nq=e.i(366178),nZ=e.i(958576),nG=e.i(832500),nY=e.i(122918),nX=e.i(332891),nX=nX,nJ=e.i(711279),nQ=e.i(160635),n0=e.i(643449),n0=n0,n1=e.i(23484),n2=e.i(179568),n3=e.i(342684),n3=n3,n4=e.i(185479),n5=e.i(6
254255),n8=e.i(277105);e.s(["Settings",()=>n8.default],798873);var n8=n8,n6=e.i(799665),n9=e.i(139145),n9=n9,n7=e.i(69588);function re(e){let t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",t),document.documentElement.classList.toggle("light",!t),document.documentElement.style.colorScheme=t?"dark":"light",window.localStorage.setItem("theme",e)}function rt({theme:e,onThemeChange:t,blueprint:n,className:i,triggerLabel:l,triggerAttributes:o,labels:s,language:u,showAppearance:c=!0}={}){let[d,p]=(0,a.useState)(!1),[f,m]=(0,a.useState)("system"),g=e??f,h=(0,a.useId)(),v=(0,a.useId)();if((0,a.useEffect)(()=>{if(void 0===e){let e,t="light"===(e=window.localStorage.getItem("theme"))||"dark"===e||"system"===e?e:"system";m(t),re(t)}p(!0)},[e]),(0,a.useEffect)(()=>{if(!d||void 0!==e||"system"!==g)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>re("system");return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e,d,g]),!d)return(0,r.jsx)("span",{className:`${n7.default.utilitySkeleton} ${i??""}`,"aria-hidden":"true"});let x=[{key:"light",label:s?.light??"Light",Icon:n6.Sun},{key:"dark",label:s?.dark??"Dark",Icon:n4.Moon},{key:"system",label:s?.system??"System",Icon:n3.default}];return(0,r.jsxs)(nT,{modal:!1,children:[(0,r.jsx)(nA,{...o,className:`${n7.default.utilityTrigger} ${i??""}`,"aria-label":l??(u?"Settings":"Theme"),children:u?(0,r.jsx)(n8.default,{}):(0,r.jsx)(n9.default,{})}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"end",sideOffset:14,collisionPadding:12,className:`${n7.default.panel} ${u?n7.default.settingsPanel:n7.default.appearancePanel}`,children:[c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{id:h,className:n7.default.sectionLabel,children:s?.appearance??"Appearance"}),(0,r.jsxs)(nH,{"aria-labelledby":h,value:n?.active?"blueprint":g,onValueChange:r=>{if("blueprint"===r)n?.onSelect();else void 0!==e||(m(r),re(r)),t?.(r)},children:[x.map(({key:e,label:t,Icon:a})=>(0,r.jsxs)(nB,{value:e,className:`${n7.default.utilityMenuItem} ${!n?.active&&g===e?n7.default.utilityMenuItemActive:""}`,children:[(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(a,{}),t]}),(0,r.jsx)(nU,{asChild:!0,children:(0,r.jsx)(n2.Check,{className:n7.default.utilityCheck})})]},e)),n&&(0,r.jsxs)(nB,{value:"blueprint",className:`${n7.default.utilityMenuItem} ${n.active?n7.default.utilityMenuItemActive:""}`,children:[(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(n5.Ruler,{}),s?.blueprint??"Blueprint"]}),(0,r.jsx)(nU,{asChild:!0,children:(0,r.jsx)(n2.Check,{className:n7.default.utilityCheck})})]})]})]}),u&&(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(nV,{className:n7.default.divider}),(0,r.jsx)("p",{id:v,className:n7.default.sectionLabel,children:u.label}),(0,r.jsx)(nH,{value:u.value,onValueChange:u.onValueChange,"aria-labelledby":v,"aria-busy":u.pending||void 0,children:u.options.map(e=>(0,r.jsxs)(nB,{value:e.value,textValue:e.label,disabled:u.pending,onSelect:e=>e.preventDefault(),className:`${n7.default.utilityMenuItem} ${u.value===e.value?n7.default.utilityMenuItemActive:""}`,children:[(0,r.jsx)("span",{lang:e.value,translate:"no",children:e.label}),(0,r.jsx)(nU,{asChild:!0,children:(0,r.jsx)(n2.Check,{className:n7.default.utilityCheck})})]},e.value))}),(0,r.jsx)("div",{role:"status","aria-live":"polite",className:n7.default.languageStatus,children:u.pending?u.pendingLabel:u.error})]})]})})]})}function rn(e){return(0,r.jsxs)("svg",{viewBox:"0 0 53 63",fill:"currentColor","aria-hidden":"true",...e,children:[(0,r.jsx)("path",{d:"M52.67 48.87V16.94L26.34 1.04 0 16.94v31.92l26.34 13.87 26.33-13.86Zm-3.58-20.06-14.98-9.05v4.18l14.98 9.04v9.77L28.12 30.1V6.31l20.97 12.65v9.85ZM3.58 18.96 24.55 6.31v23.8L3.58 42.77V18.96Zm0 27.99 22.76-13.74L49.1 46.95 26.34 58.7 3.58 46.95Z"}),(0,r.jsx)("path",{d:"m8.63 21.34 9.96-6.02v4.19l-9.96 6.01v-4.18Zm0 9 9.96-6.06v4.18l-9.96 6.02v-4.14Z"})]})}function rr({width:e=120,height:t=24,...n}){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 594 62.9",width:e,height:t,fill:"currentColor","aria-label":"BuiltCold",role:"img",...n,children:[(0,r.jsx)("path",{d:"m52.67,48.87v-31.93L26.34,1.04,0,16.94v31.92l26.34,13.87,26.34-13.86Zm-3.58-20.06l-14.98-9.05v4.18l14.98,9.04v9.77l-20.97-12.65V6.31l20.97,12.65v9.85ZM3.58,18.96L24.55,6.31v23.8L3.58,42.77v-23.8Zm0,27.99l22.76-13.74,22.76,13.74-22.76,11.75L3.58,46.95Z"}),(0,r.jsx)("polygon",{points:"8.63 21.34 8.63 25.52 18.59 19.51 18.59 15.32 8.63 21.34"}),(0,r.jsx)("polygon",{points:"8.63 34.48 18.59 28.46 18.59 24.28 8.63 30.29 8.63 34.48"}),(0,r.jsx)("path",{d:"m81.16,1.04h28.67c6.95,0,12.03,1.58,15.25,4.73,3.21,3.16,4.82,7.08,4.82,11.77,0,6.26-2.29,10.46-6.86,12.6,2.95,1.1,5.17,2.93,6.65,5.48,1.48,2.55,2.22,5.21,2.22,7.99,0,5.04-1.71,9.34-5.13,12.9-3.42,3.56-8.69,5.34-15.81,5.34h-29.8V1.04Zm27.37,23.72c5.27,0,7.91-1.91,7.91-5.74s-2.17-5.65-6.52-5.65h-15.55v11.38h14.16Zm3.04,24.67c2.43,0,4.2-.61,5.3-1.82,1.1-1.22,1.65-2.64,1.65-4.26,0-4.46-3.1-6.69-9.3-6.69h-14.86v12.77h17.2Z"}),(0,r.jsx)("path",{d:"m173.43,62.9c-3.24,0-6.3-.42-9.17-1.26-2.87-.84-5.55-2.17-8.04-4s-4.47-4.39-5.95-7.69c-1.48-3.3-2.22-7.15-2.22-11.55V7.04l13.21-6v37.36c0,4.34.97,7.38,2.91,9.12,1.94,1.74,5.02,2.61,9.25,2.61s7.17-.88,9.17-2.65,3-4.79,3-9.08V7.04l13.21-6v37.36c0,4.34-.73,8.15-2.17,11.42-1.45,3.27-3.4,5.84-5.86,7.69-2.46,1.86-5.14,3.22-8.04,4.08-2.9.87-5.99,1.3-9.3,1.3Z"}),(0,r.jsx)("path",{d:"m218.34,61.86V7.04l13.21-6v60.81h-13.21Z"}),(0,r.jsx)("path",{d:"m251.44,61.86V7.04l13.21-6v48.04h29.19v12.77h-42.4Z"}),(0,r.jsx)("path",{d:"m327.29,13.73v48.13h-13.21V13.73h-17.46V1.04h48.13v12.68h-17.46Z"}),(0,r.jsx)("path",{d:"m384.89,62.9c-4.4,0-8.28-.9-11.64-2.7-3.36-1.79-6-4.23-7.91-7.3-1.91-3.07-3.33-6.4-4.26-9.99-.93-3.59-1.39-7.41-1.39-11.47s.48-7.81,1.43-11.43c.96-3.62,2.4-6.95,4.34-9.99,1.94-3.04,4.57-5.48,7.91-7.3,3.33-1.82,7.17-2.74,11.51-2.74,9.5,0,16.04,3.65,19.63,10.95l-6.78,3.48c-1.62-2.43-3.4-4.27-5.34-5.52-1.94-1.24-4.45-1.87-7.51-1.87-4.11,0-7.53,1.3-10.25,3.91-2.72,2.61-4.59,5.66-5.6,9.17-1.01,3.5-1.52,7.29-1.52,11.34,0,6.66,1.48,12.38,4.43,17.16,2.95,4.78,7.27,7.17,12.95,7.17s10.08-2.58,13.2-7.73l6.95,2.6c-1.68,3.71-4.2,6.68-7.56,8.91-3.36,2.23-7.56,3.35-12.6,3.35Z"}),(0,r.jsx)("path",{d:"m447.35,62.9c-4.58,0-8.59-.91-12.03-2.74-3.45-1.82-6.14-4.28-8.08-7.38-1.94-3.1-3.37-6.43-4.3-9.99-.93-3.56-1.39-7.34-1.39-11.34s.46-7.77,1.39-11.34c.93-3.56,2.36-6.89,4.3-9.99,1.94-3.1,4.63-5.56,8.08-7.38,3.45-1.82,7.46-2.74,12.03-2.74,3.7,0,7.05.61,10.03,1.82,2.98,1.22,5.44,2.84,7.38,4.87,1.94,2.03,3.56,4.43,4.87,7.21,1.3,2.78,2.23,5.62,2.78,8.51.55,2.9.83,5.91.83,9.04s-.28,6.14-.83,9.04c-.55,2.9-1.48,5.73-2.78,8.51-1.3,2.78-2.93,5.19-4.87,7.21-1.94,2.03-4.4,3.65-7.38,4.87-2.98,1.22-6.33,1.82-10.03,1.82Zm-8.38-9.21c2.4,1.39,5.2,2.09,8.38,2.09s5.99-.74,8.43-2.22c2.43-1.48,4.31-3.43,5.
265-5.86,1.33-2.43,2.32-5.03,2.95-7.78.64-2.75.96-5.57.96-8.47,0-4.28-.54-8.18-1.61-11.69-1.07-3.5-3.01-6.5-5.82-8.99-2.81-2.49-6.33-3.74-10.56-3.74-3.19,0-5.98.74-8.38,2.21-2.41,1.48-4.27,3.45-5.6,5.91-1.33,2.46-2.33,5.05-3,7.77-.67,2.72-1,5.56-1,8.52,0,3.13.32,6.08.95,8.86s1.64,5.36,3,7.73c1.36,2.38,3.24,4.26,5.65,5.64Z"}),(0,r.jsx)("path",{d:"m494.09,61.86V7.04l7.56-6v53.52h29.89v7.3h-37.44Z"}),(0,r.jsx)("path",{d:"m549.17,1.04h16.59c4.98,0,9.35.87,13.12,2.61,3.76,1.74,6.72,4.08,8.86,7.04,2.14,2.95,3.72,6.17,4.74,9.64,1.01,3.48,1.52,7.18,1.52,11.12s-.48,7.34-1.43,10.73c-.95,3.39-2.46,6.6-4.52,9.64-2.06,3.04-5.03,5.47-8.91,7.3-3.88,1.82-8.46,2.74-13.73,2.74h-16.25V1.04Zm17.2,53.78c3.59,0,6.73-.68,9.43-2.04,2.69-1.36,4.76-3.22,6.21-5.56,1.45-2.35,2.51-4.82,3.17-7.43.66-2.6,1-5.39,1-8.34,0-4.17-.61-7.96-1.83-11.38-1.22-3.42-3.3-6.28-6.25-8.6-2.95-2.31-6.55-3.47-10.77-3.47h-10.6v46.83h9.64Z"})]})}e.s(["BuiltColdLogo",0,rr,"BuiltColdMark",0,rn],97438);var ra=e.i(239790),ra=ra,ri=e.i(308924),rl=e.i(356018),rl=rl,ro=e.i(20286),ro=ro;function rs(e,t){if(!e)return t;let n=e.replace(/\/$/,"");return"/"===t?n||"/":`${n}${t}`}function ru(e,t){return e?rs(e,t):void 0}function rc({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n,policyPlannerPath:r="/policy-planner"}={}){return{home:rs(e,"/"),programTracker:rs(e,"/programs"),policyPlanner:null===r?null:rs(e,r),programTrackerOverview:rs(e,"/products/program-tracker"),policyPlannerOverview:rs(e,"/products/policy-planner"),supplierPortal:rs(e,"/suppliers"),supplierPortalOverview:rs(e,"/products/supplier-portal"),documentation:ru(t,"/"),releaseNotes:ru(n,"/"),programsDirectory:rs(e,"/programs-directory"),projects:rs(e,"/your_projects"),signIn:rs(e,"/sign-in"),getStarted:rs(e,"/get-started"),accessControl:rs(e,"/admin/access"),coldTruth:rs(e,"/admin/cold-truth"),requestedManufacturers:rs(e,"/admin/requested_manufacturers"),privacyRequests:rs(e,"/admin/privacy-requests"),billing:rs(e,"/admin/billing"),integrations:rs(e,"/admin/integrations")}}let rd={ariaLabel:"Help",section:"Support",guidebook:"Guidebook",infoTooltips:"Info Tooltips",contactProgramSupport:"Contact program support",releaseNotes:"Release notes"};function rp({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n,onContactSupport:a,onOpenGuidebook:i,ring:l,tooltips:o,className:s,labels:u=rd}){let c=rc({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n});return(0,r.jsxs)(nT,{modal:!1,children:[(0,r.jsx)(nA,{className:`${n7.default.utilityTrigger} ${l?n7.default.utilityTriggerRing:""} ${s??""}`,"aria-label":u.ariaLabel,children:(0,r.jsx)(ra.default,{})}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"end",sideOffset:14,className:`${n7.default.panel} ${n7.default.helpPanel}`,children:[(0,r.jsx)("p",{className:n7.default.sectionLabel,children:u.section}),i&&(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsx)("button",{type:"button",className:n7.default.utilityMenuItem,onClick:i,children:(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(nZ.BookOpen,{}),u.guidebook]})})}),o&&(0,r.jsxs)(nz,{checked:o.enabled,onCheckedChange:o.onToggle,className:n7.default.utilityMenuItem,children:[(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(ri.Info,{}),u.infoTooltips]}),(0,r.jsx)("span",{className:`${n7.default.utilitySwitch} ${o.enabled?n7.default.utilitySwitchOn:""}`,"aria-hidden":"true",children:(0,r.jsx)("span",{})})]}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)(nF,{asChild:!0,children:a?(0,r.jsx)("button",{type:"button",className:n7.default.utilityMenuItem,onClick:a,children:(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(rl.default,{}),u.contactProgramSupport]})}):(0,r.jsx)("a",{href:"mailto:[email protected]",className:n7.default.utilityMenuItem,children:(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(rl.default,{}),u.contactProgramSupport]})})}),c.releaseNotes&&(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsx)(n1.default,{href:c.releaseNotes,className:n7.default.utilityMenuItem,children:(0,r.jsxs)("span",{className:n7.default.utilityMenuIdentity,children:[(0,r.jsx)(ro.default,{}),u.releaseNotes]})})})]})})]})}e.s(["BuiltColdHelpControl",0,rp],427804);var rf=e.i(542353),rf=rf,rm=e.i(388031),rg=e.i(200043),rg=rg,rh=e.i(4363);let rv={signIn:"Sign in",userFallback:"BuiltCold user",accountAriaLabel:e=>`Open account menu for ${e}`,editProfile:"Edit Profile",yourProjects:"Your Projects",signOut:"Sign Out"};function rx({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n,labels:a=rv}){let i=(0,nK.useClerk)(),{isLoaded:l,isSignedIn:o,user:s}=(0,nW.useUser)(),u=rc({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n});if(!l)return(0,r.jsx)("span",{className:n7.default.avatarSkeleton,"aria-hidden":"true"});if(!o||!s)return(0,r.jsx)("button",{type:"button",className:n7.default.signIn,onClick:()=>void i.redirectToSignIn({redirectUrl:window.location.href}),children:a.signIn});let c=s.fullName??s.username??a.userFallback,d=s.primaryEmailAddress?.emailAddress,p=!!s.publicMetadata?.isAdmin;return(0,r.jsxs)(nT,{modal:!1,children:[(0,r.jsxs)(nA,{className:n7.default.accountTrigger,"aria-label":a.accountAriaLabel(c),children:[s.imageUrl?(0,r.jsx)("img",{src:s.imageUrl,alt:"",width:28,height:28,className:n7.default.avatar}):(0,r.jsx)("span",{className:n7.default.avatarFallback,children:c.split(/\s+/).map(e=>e[0]).join("").toUpperCase().slice(0,2)}),p&&(0,r.jsx)(rf.default,{className:n7.default.adminCrown,fill:"currentColor"})]}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"end",sideOffset:9,collisionPadding:16,className:`${n7.default.panel} ${n7.default.accountPanel}`,children:[(0,r.jsxs)("div",{className:n7.default.userHeader,children:[(0,r.jsx)("p",{className:n7.default.userName,children:c}),d&&(0,r.jsx)("p",{className:n7.default.userEmail,children:d})]}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:n7.default.accountAction,onClick:()=>i.openUserProfile({}),children:[(0,r.jsx)(rh.User,{}),a.editProfile]})}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)(n1.default,{href:u.projects,className:n7.default.accountAction,children:[(0,r.jsx)(rm.FolderOpen,{}),a.yourProjects]})}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:`${n7.default.accountAction} ${n7.default.dangerAction}`,onClick:()=>i.signOut({redirectUrl:u.home}),children:[(0,r.jsx)(rg.default,{}),a.signOut]})})]})})]})}function ry({appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n,internationalControl:a,appearanceControl:i,helpControl:l,labels:o}){let s={appBaseUrl:e,docsBaseUrl:t,blogBaseUrl:n};return(0,r.jsxs)("div",{className:n7.default.controlRail,children:[a,void 0===i?(0,r.jsx)(rt,{}
2):i,void 0===l?(0,r.jsx)(rp,{...s,labels:o?.help}):l,(0,r.jsx)(rx,{...s,labels:o?.account})]})}var rb=e.i(850188);e.s(["Cable",()=>rb.default],235690);var rb=rb,r_=e.i(841134),rw=e.i(407891),rC=e.i(213244),n0=n0,rj=e.i(408744),rP=e.i(119336);let rN={products:"Products",programTracker:{title:"Program Tracker",description:"Track and manage compliance programs"},policyPlanner:{title:"Policy Planner",description:"Design and deploy Buy Clean policies"},supplierPortal:{title:"Supplier Portal",description:"See how your declarations score and answer agencies",isNew:"NEW"},documentation:{title:"Documentation",description:"Buy Clean guidance and administrator guides"},resources:"Resources",releaseNotes:{title:"Release Notes",description:"What changed in BuiltCold and why it matters"},programsDirectory:{title:"Programs Directory",description:"Explore public Buy Clean programs"},powerTools:"Power Tools",accessControl:"Access Control",coldTruth:"Cold Truth Console",requestedManufacturers:"Requested Manufacturers",privacyRequests:"Privacy Requests",integrations:"Integrations"};function rS({href:e,icon:t,title:n,description:a,iconClassName:i,isNew:l,newLabel:o}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t,{className:`${n7.default.itemIcon} ${i??""}`}),(0,r.jsxs)("span",{className:n7.default.itemCopy,children:[(0,r.jsxs)("span",{className:n7.default.itemTitle,children:[n,l&&(0,r.jsx)("span",{className:n7.default.newBadge,children:o??"NEW"})]}),a&&(0,r.jsx)("span",{className:n7.default.itemDescription,children:a})]})]});return null===e?(0,r.jsx)(nF,{disabled:!0,className:n7.default.menuItem,"aria-busy":"true",children:s}):(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsx)(n1.default,{href:e,className:n7.default.menuItem,children:s})})}function rR({activeProduct:e="products",appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a,policyPlannerPath:i,showPowerTools:l,publicProducts:o=!1,supplierAccount:s=!1,triggerLabel:u,className:c,labels:d=rN}){let{user:p}=(0,nW.useUser)(),f=l??!!p?.publicMetadata?.isAdmin,m=rc({appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a,policyPlannerPath:i});return(0,r.jsxs)(nT,{modal:!1,children:[(0,r.jsxs)(nA,{className:`${n7.default.trigger} ${c??""}`,children:[(0,r.jsx)("span",{children:u??function(e,t){switch(t){case"program-tracker":return e.programTracker.title;case"policy-planner":return e.policyPlanner.title;case"supplier-portal":return e.supplierPortal.title;case"documentation":return e.documentation.title;case"release-notes":return e.releaseNotes.title;case"products":return e.products}}(d,e)}),(0,r.jsx)(rw.ChevronDown,{className:n7.default.chevron})]}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"start",sideOffset:9,collisionPadding:16,className:n7.default.panel,children:[(0,r.jsx)("p",{className:n7.default.sectionLabel,children:d.products}),!s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rS,{href:o?m.programTrackerOverview:m.programTracker,icon:nq.BarChart3,title:d.programTracker.title,description:d.programTracker.description,iconClassName:n7.default.blueIcon}),(0,r.jsx)(rS,{href:o?m.policyPlannerOverview:m.policyPlanner,icon:nY.FileText,title:d.policyPlanner.title,description:d.policyPlanner.description,iconClassName:n7.default.greenIcon})]}),(0,r.jsx)(rS,{href:o?m.supplierPortalOverview:m.supplierPortal,icon:nG.Factory,title:d.supplierPortal.title,description:d.supplierPortal.description,iconClassName:n7.default.cyanIcon,isNew:!0,newLabel:d.supplierPortal.isNew}),!s&&m.documentation&&(0,r.jsx)(rS,{href:m.documentation,icon:nZ.BookOpen,title:d.documentation.title,description:d.documentation.description,iconClassName:n7.default.cyanIcon}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)("p",{className:n7.default.sectionLabel,children:d.resources}),!s&&m.releaseNotes&&(0,r.jsx)(rS,{href:m.releaseNotes,icon:n0.default,title:d.releaseNotes.title,description:d.releaseNotes.description,iconClassName:n7.default.violetIcon}),(0,r.jsx)(rS,{href:m.programsDirectory,icon:nJ.Map,title:d.programsDirectory.title,description:d.programsDirectory.description}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)("p",{className:n7.default.sectionLabel,children:d.powerTools}),(0,r.jsx)(rS,{href:m.accessControl,icon:rj.Shield,title:d.accessControl}),(0,r.jsx)(rS,{href:m.coldTruth,icon:rC.Database,title:d.coldTruth}),(0,r.jsx)(rS,{href:m.requestedManufacturers,icon:nG.Factory,title:d.requestedManufacturers}),(0,r.jsx)(rS,{href:m.privacyRequests,icon:rP.ShieldCheck,title:d.privacyRequests}),(0,r.jsx)(rS,{href:m.billing,icon:r_.CreditCard,title:d.billing??"Billing"}),(0,r.jsx)(rS,{href:m.integrations,icon:rb.default,title:d.integrations})]})]})})]})}var rk=e.i(905697),rE=e.i(822958),rI=e.i(588868),rM=e.i(848054),n8=n8;function rT({className:e}){return(0,r.jsxs)("div",{className:`${n7.default.orgTrigger} ${n7.default.orgSkeleton} ${e??""}`,"aria-hidden":"true",children:[(0,r.jsx)("span",{className:n7.default.orgImageSkeleton}),(0,r.jsx)("span",{className:n7.default.orgNameSkeleton})]})}let rL={ariaLabel:e=>`Organization: ${e}`,organization:"Organization",organizations:"Organizations",settings:"Organization Settings",create:"Create Organization",loading:"Loading…",loadMore:"Load more"};function rA({className:e,open:t,onOpenChange:n,onCreateOrganization:i,labels:l=rL}){let o=(0,nK.useClerk)(),{isLoaded:s,isSignedIn:u}=(0,nW.useUser)(),{organization:c}=(0,rk.useOrganization)(),{userMemberships:d,isLoaded:p}=(0,rE.useOrganizationList)({userMemberships:{infinite:!0}}),[f,m]=(0,a.useState)(!1);(0,a.useEffect)(()=>m(!0),[]);let g=i??(()=>o.openCreateOrganization({})),h=d?.isLoading??!0;if(s&&!u)return null;if(!f||!s||!o.loaded||!p||h)return(0,r.jsx)(rT,{className:e});let v=d?.data??[];return 0===v.length?(0,r.jsxs)("button",{type:"button",onClick:g,className:`${n7.default.trigger} ${e??""}`,children:[(0,r.jsx)(rM.Plus,{className:n7.default.smallIcon}),(0,r.jsx)("span",{children:l.create})]}):(0,r.jsxs)(nT,{modal:!1,open:t,onOpenChange:n,children:[(0,r.jsxs)(nA,{"aria-label":l.ariaLabel(c?.name??l.organization),className:`${n7.default.trigger} ${n7.default.orgTrigger} ${e??""}`,children:[c?.imageUrl?(0,r.jsx)("img",{src:c.imageUrl,alt:c.name,width:18,height:18,className:n7.default.orgTriggerImage}):(0,r.jsx)(rI.Building2,{className:n7.default.orgTriggerIcon}),(0,r.jsx)("span",{className:n7.default.orgTriggerName,children:c?.name??l.organization}),(0,r.jsx)(rw.ChevronDown,{className:n7.default.chevron})]}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"start",sideOffset:10,collisionPadding:25,className:`${n7.default.panel} ${n7.default.organizationPanel}`,children:[(0,r.jsx)("p",{className:n7.default.sectionLabel,children:l.organizations}),v.map(({organization:e})=>{let t=c?.id===e.id;return(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",onClick:()=>
2o.setActive({organization:e.id}),className:`${n7.default.organizationItem} ${t?n7.default.organizationItemActive:""}`,children:[(0,r.jsxs)("span",{className:n7.default.organizationIdentity,children:[e.imageUrl?(0,r.jsx)("img",{src:e.imageUrl,alt:e.name,width:20,height:20,className:n7.default.organizationImage}):(0,r.jsx)(rI.Building2,{className:n7.default.organizationIcon}),(0,r.jsx)("span",{className:n7.default.organizationName,children:e.name})]}),t&&(0,r.jsx)(n2.Check,{className:n7.default.organizationCheck})]})},e.id)}),d?.hasNextPage&&(0,r.jsxs)(nF,{className:n7.default.organizationAction,disabled:d.isFetching,onSelect:e=>{e.preventDefault(),d.fetchNext()},children:[(0,r.jsx)(rw.ChevronDown,{}),d.isFetching?l.loading:l.loadMore]}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:n7.default.organizationAction,onClick:()=>o.openOrganizationProfile({}),children:[(0,r.jsx)(n8.default,{}),l.settings]})}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:n7.default.organizationAction,onClick:g,children:[(0,r.jsx)(rM.Plus,{}),l.create]})})]})})]})}e.s(["BuiltColdOrganizationStatus",0,function({label:e,href:t,tone:n="inReview",className:a}){return void 0===e?(0,r.jsx)(rT,{className:a}):(0,r.jsxs)(n1.default,{href:t,className:`${n7.default.trigger} ${n7.default.orgTrigger} ${a??""}`,children:[(0,r.jsx)("span",{"aria-hidden":"true",className:`${n7.default.orgStatusDot} ${n7.default[`orgStatusDot_${n}`]}`}),(0,r.jsx)("span",{className:n7.default.orgTriggerName,children:e})]})},"ClerkOrganizationControl",0,rA],833761);let rO={home:"BuiltCold home",openNavigation:"Open navigation",programs:"Programs",signIn:"Sign in",getStarted:"Get Started",productMenu:{products:"Products",programTracker:{title:"Program Tracker",description:"Track and manage compliance programs"},policyPlanner:{title:"Policy Planner",description:"Design and deploy Buy Clean policies"},supplierPortal:{title:"Supplier Portal",description:"See how your declarations score and answer agencies",isNew:"NEW"},documentation:{title:"Documentation",description:"Buy Clean guidance and administrator guides"},resources:"Resources",releaseNotes:{title:"Release Notes",description:"What changed in BuiltCold and why it matters"},programsDirectory:{title:"Programs Directory",description:"Explore public Buy Clean programs"},powerTools:"Power Tools",accessControl:"Access Control",coldTruth:"Cold Truth Console",requestedManufacturers:"Requested Manufacturers",privacyRequests:"Privacy Requests",integrations:"Integrations"},organization:{ariaLabel:e=>`Organization: ${e}`,organization:"Organization",organizations:"Organizations",settings:"Organization Settings",create:"Create Organization",loading:"Loading…",loadMore:"Load more"},help:{ariaLabel:"Help",section:"Support",guidebook:"Guidebook",infoTooltips:"Info Tooltips",contactProgramSupport:"Contact program support",releaseNotes:"Release notes"},account:{signIn:"Sign in",userFallback:"BuiltCold user",accountAriaLabel:e=>`Open account menu for ${e}`,editProfile:"Edit Profile",yourProjects:"Your Projects",signOut:"Sign Out"}};function rD({children:e,className:t}){return(0,r.jsx)("div",{className:`${n7.default.surface} ${t??""}`,children:e})}function r$({children:e,className:t,sticky:n=!1}){return(0,r.jsx)(rD,{className:`${n?n7.default.sticky:""} ${t??""}`,children:(0,r.jsx)("div",{className:n7.default.shellPadding,children:(0,r.jsx)("div",{className:n7.default.shellRow,children:e})})})}function rF({activeProduct:e,appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a,internationalControl:i,appearanceControl:l,className:o,sticky:s,labels:u}){let c=(0,nK.useClerk)(),d={appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a},p=rc(d);return(0,r.jsxs)(r$,{sticky:s,className:`nextra-navbar ${o??""}`,children:[(0,r.jsxs)("div",{className:n7.default.signedOutLeft,children:[(0,r.jsx)(rH,{links:p,labels:u,onSignIn:()=>void c.redirectToSignIn({redirectUrl:window.location.href})}),(0,r.jsx)(n1.default,{href:p.home,className:n7.default.signedOutHomeLink,"aria-label":u.home,children:(0,r.jsx)(rr,{className:n7.default.signedOutLogo})}),(0,r.jsxs)("div",{className:n7.default.signedOutDesktopNavigation,children:[(0,r.jsx)("span",{className:n7.default.separator,"aria-hidden":"true",children:"/"}),(0,r.jsx)(rR,{activeProduct:e,publicProducts:!0,labels:u.productMenu,...d}),(0,r.jsx)("span",{className:n7.default.separator,"aria-hidden":"true",children:"/"}),(0,r.jsx)(n1.default,{href:p.programsDirectory,className:n7.default.trigger,children:u.programs})]})]}),(0,r.jsxs)("div",{className:n7.default.signedOutUtilities,children:[i,(0,r.jsx)("span",{className:n7.default.signedOutAppearance,children:void 0===l?
2(0,r.jsx)(rt,{}):l}),(0,r.jsx)("button",{type:"button",className:n7.default.signedOutSignIn,onClick:()=>void c.redirectToSignIn({redirectUrl:window.location.href}),children:u.signIn}),(0,r.jsx)(n1.default,{href:p.getStarted,className:n7.default.getStarted,children:u.getStarted})]})]})}function rz({href:e,icon:t,title:n}){return(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)(n1.default,{href:e,className:n7.default.mobileMenuItem,children:[(0,r.jsx)(t,{}),(0,r.jsx)("span",{children:n})]})})}function rH({links:e,labels:t,onSignIn:n}){return(0,r.jsxs)(nT,{modal:!1,children:[(0,r.jsx)(nA,{className:n7.default.mobileMenuTrigger,"aria-label":t.openNavigation,children:(0,r.jsx)(nQ.Menu,{})}),(0,r.jsx)(nO,{children:(0,r.jsxs)(n$,{align:"start",sideOffset:10,collisionPadding:12,className:`${n7.default.panel} ${n7.default.mobileMenuPanel}`,children:[(0,r.jsx)("p",{className:n7.default.sectionLabel,children:t.productMenu.products}),(0,r.jsx)(rz,{href:e.programTrackerOverview,icon:nq.BarChart3,title:t.productMenu.programTracker.title}),(0,r.jsx)(rz,{href:e.policyPlannerOverview,icon:nY.FileText,title:t.productMenu.policyPlanner.title}),(0,r.jsx)(rz,{href:e.supplierPortalOverview,icon:nG.Factory,title:t.productMenu.supplierPortal.title}),e.documentation&&(0,r.jsx)(rz,{href:e.documentation,icon:nZ.BookOpen,title:t.productMenu.documentation.title}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)("p",{className:n7.default.sectionLabel,children:t.productMenu.resources}),e.releaseNotes&&(0,r.jsx)(rz,{href:e.releaseNotes,icon:n0.default,title:t.productMenu.releaseNotes.title}),(0,r.jsx)(rz,{href:e.programsDirectory,icon:nJ.Map,title:t.programs}),(0,r.jsx)("div",{className:n7.default.divider}),(0,r.jsx)(nF,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:n7.default.mobileMenuItem,onClick:n,children:[(0,r.jsx)(nX.default,{}),(0,r.jsx)("span",{children:t.signIn})]})})]})})]})}function rB({className:e,sticky:t}){return(0,r.jsxs)(r$,{sticky:t,className:`nextra-navbar ${e??""}`,children:[(0,r.jsxs)("div",{className:n7.default.loadingLeft,"aria-hidden":"true",children:[(0,r.jsx)("span",{className:n7.default.loadingMark}),(0,r.jsx)("span",{className:n7.default.loadingLabel}),(0,r.jsx)("span",{className:n7.default.loadingLabelShort})]}),(0,r.jsxs)("div",{className:n7.default.loadingUtilities,"aria-hidden":"true",children:[(0,r.jsx)("span",{className:n7.default.loadingControl}),(0,r.jsx)("span",{className:n7.default.loadingControl}),(0,r.jsx)("span",{className:n7.default.loadingAvatar})]})]})}e.s(["BuiltColdGlobalNav",0,function({activeProduct:e,appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a,policyPlannerPath:i,utilitySlot:l,internationalControl:o,appearanceControl:s,helpControl:u,contextNavigation:c,mobileNavigation:d,organizationControl:p,primaryNavigationClassName:f,sticky:m=!0,showPowerTools:g,supplierAccount:h,productTriggerLabel:v,className:x,authState:y="auto",labels:b=rO}){let{isLoaded:_,isSignedIn:w}=(0,nW.useUser)(),C="auto"===y?_?w?"signed-in":"signed-out":"loading":y,j={appBaseUrl:t,docsBaseUrl:n,blogBaseUrl:a,policyPlannerPath:i};if("signed-out"===C)return(0,r.jsx)(rF,{activeProduct:e,internationalControl:o,appearanceControl:s,className:x,sticky:m,labels:b,...j});if("loading"===C)return(0,r.jsx)(rB,{className:x,sticky:m});let P=rc(j);return(0,r.jsxs)(r$,{sticky:m,className:`nextra-navbar ${x??""}`,children:[(0,r.jsxs)("div",{className:n7.default.globalLeft,children:[d,(0,r.jsx)(n1.default,{href:P.home,className:n7.default.homeLink,"aria-label":b.home,children:(0,r.jsx)(rn,{className:n7.default.globalMark})}),(0,r.jsxs)("div",{className:`${n7.default.primaryNavigation} ${f??""}`,children:[(0,r.jsx)("span",{className:n7.default.separator,"aria-hidden":"true",children:"/"}),p??(0,r.jsx)(rA,{labels:b.organization}),(0,r.jsx)("span",{className:n7.default.separator,"aria-hidden":"true",children:"/"}),(0,r.jsx)(rR,{activeProduct:e,showPowerTools:g,supplierAccount:h,triggerLabel:v,labels:b.productMenu,...j})]}),c]}),(0,r.jsxs)("div",{className:n7.default.utilities,children:[l,(0,r.jsx)(ry,{...j,internationalControl:o,appearanceControl:s,helpControl:u,labels:b})]})]})}],212538),e.s([],229833);var rU=e.i(163847),rV=e.i(580721),rK=e.i(518071),rW=e.i(872939),rq=e.i(554940),rZ=e.i(10058),rG=e.i(158492),rY=e.i(835743),rX=e.i(15078),rJ=e.i(130389);e.s(["default",0,function({className:e}){let{setTheme:t,theme:n}=(0,rK.useTheme)(),a=(0,rW.usePathname)(),{blueprintActive:i,setBlueprintActive:l}=(0,rZ.useMatrixBlueprint)(),{locale:o,setLocale:s,isSwitching:u,error:c}=(0,rq.useTranslationLocale)(),d=(0,rG.useEarlyAccessFlag)("early-access-internationalization"),p=(0,rV.useTranslations)(),f=a?.endsWith("/material-matrix")??!1,m=(0,rJ.followsSystemAppearance)(a??"");if(m&&!d)return null;let g=p(d?"settings.trigger":"settings.theme"),h=p("settings.appearance"),v=p("settings.light"),x=p("settings.dark"),y=p("settings.system"),b=p("settings.blueprint"),_=p("settings.language"),w=p("settings.switching"),C=p("settings.languageError");return(0,r.jsx)(rt,{className:e,theme:"light"===n||"dark"===n||"system"===n?n:"system",showAppearance:!m,triggerLabel:g,triggerAttributes:(0,rX.translationAttributes)(d?"settings.trigger":"settings.theme",g),labels:{appearance:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.appearance",h),children:h}),light:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.light",v),children:v}),dark:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.dark",x),children:x}),system:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.system",y),children:y}),blueprint:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.blueprint",b),children:b})},onThemeChange:e=>{t(e),f&&l(!1)},blueprint:f?{active:i,onSelect:()=>l(!0)}:void 0,language:d?{value:o,options:rY.SHIPPED_LOCALES.map(e=>({value:e,label:rU.TRANSLATION_LOCALES[e].nativeName})),onValueChange:e=>{let t=rY.SHIPPED_LOCALES.find(t=>t===e);t&&s(t)},label:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.language",_),children:_}),pending:u,pendingLabel:(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.switching",w),children:w}),error:c?(0,r.jsx)("span",{...(0,rX.translationAttributes)("settings.languageError",C),children:C}):void 0}:void 0})}],900462)},554940,e=>{"use strict";var t=e.i(542124),n=e.i(522790),r=e.i(971624);e.i(50420);var a=e.i(304197),i=e.i(886092),l=e.i(243084),o=e.i(872939),s=e.i(283164),u=e.i(158492),c=e.i(835743);let d="builtcold:translation-guest-locale";function p(e){try{localStorage.setItem(d,JSON.stringify(e))}catch{}}class f{handlers;generation;sequence;running;pending;constructor(e){this.handlers=e,this.generation=0,this.sequence=0,this.running=!1}reset(){this.generation++,this.pending=void 0,this.handlers.busy(!1)}submit(e){this.pending={generation:this.generation,sequence:++this.sequence,value:e},this.handlers.busy(!0),this.drain()}retry(){this.pending&&(this.handlers.busy(!0),this.drain())}hasPending(){return void 0!==this.pending}async drain(){if(!this.running){this.running=!0;try{for(;this.pending;){let e=this.pending;try{if(await this.handlers.write(e.value),e.generation!==this.generation||this.pending?.sequence!==e.sequence)continue;this.pending=void 0,this.handlers.success(e.value)}catch(t){if(e.generation!==this.generation||this.pending?.sequence!==e.sequence)continue;this.handlers.failure(t);break}}}finally{this.running=!1,this.handlers.busy(!1)}}}}let m=(0,n.createContext)(null);e.s(["LocalePreferencesProvider",0,function({children:e}){let g=(0,u.useEarlyAccessFlag)("early-access-internationalization"),{isLoaded:h,isSignedIn:v,userId:x}=(0,r.useAuth)(),{isAuthenticated:y,isLoading:b}=(0,a.useConvexAuth)(),_=(0,c.shippedLocale)((0,l.useLocale)()),w=(0,n.useRef)(_),C=(0,o.useRouter)(),[j,P]=(0,n.useTransition)(),N=(0,n.useRef)(null),[S,R]=(0,n.use
2State)(0),k=(0,i.useMutation)(s.api.userLocalePreferences.reconcile),E=(0,i.useMutation)(s.api.userLocalePreferences.set),I=(0,i.useQuery)(s.api.userLocalePreferences.get,g&&h&&v&&y&&x?{expectedUserId:x}:"skip"),M=I?.userId===x&&!!x,[T,L]=(0,n.useState)(_),[A,O]=(0,n.useState)(!1),[D,$]=(0,n.useState)(null),F=(0,n.useRef)({locale:"en",pending:!1}),z=(0,n.useRef)(void 0),H=(0,n.useRef)(!1),B=(0,n.useRef)(void 0),U=(0,n.useRef)(!1),V=(0,n.useRef)({enabled:g,userId:x,isLoaded:h,isSignedIn:v,isAuthenticated:y,currentLocale:_,accountReady:M,reconcile:k,save:E});V.current={enabled:g,userId:x,isLoaded:h,isSignedIn:v,isAuthenticated:y,currentLocale:_,accountReady:M,reconcile:k,save:E};let K=(0,n.useCallback)(e=>{L(e)},[]);(0,n.useEffect)(()=>{let e=g?T:"en";document.cookie=`builtcold-locale=${e}; Path=/; Max-Age=31536000; SameSite=Lax${"https:"===window.location.protocol?"; Secure":""}`,document.documentElement.lang=e;let t=null!==N.current&&N.current!==e;if(e===_&&!t){N.current=null;return}N.current!==e&&(N.current=e,P(()=>C.refresh()))},[g,T,_,S,C]);let W=(0,n.useRef)(null);W.current||(W.current=new f({write:async e=>{let t=V.current;if(!t.enabled||t.userId!==e.account||!t.isAuthenticated||!t.accountReady)return;let n=e.reconcile?await t.reconcile({expectedUserId:e.account,...void 0===e.locale?{}:{pendingLocale:e.locale}}):await t.save({expectedUserId:e.account,locale:e.locale??"en"});e.result={locale:(0,c.shippedLocale)(n.locale),updatedAt:n.updatedAt}},success:e=>{V.current.userId===e.account&&V.current.enabled&&void 0!==e.result&&(U.current=!0,B.current=e.result.updatedAt,e.guest&&F.current===e.guest&&(F.current={...e.guest,pending:!1},p(F.current)),$(null),K(e.result.locale))},failure:()=>$("Your language could not be saved. Select it again to retry."),busy:O})),(0,n.useEffect)(()=>{if(!g){W.current?.reset(),z.current=void 0,U.current=!1,L("en");return}if(!h||v&&(b||!y||!M))return;H.current||(F.current=function(e="en"){try{let t=localStorage.getItem(d);if(null===t)return{locale:e,pending:!1};let n=JSON.parse(t);if(n&&"object"==typeof n&&"locale"in n&&(0,c.isShippedLocale)(n.locale))return{locale:n.locale,pending:"pending"in n&&!0===n.pending,claimedBy:"claimedBy"in n&&"string"==typeof n.claimedBy?n.claimedBy:void 0}}catch{}return{locale:"en",pending:!1}}(v?"en":w.current),H.current=!0);let e=v?x:null;if(z.current!==e)if(z.current=e,W.current?.reset(),B.current=void 0,U.current=!1,$(null),null===e)K(F.current.locale);else{let t=F.current.pending&&(!F.current.claimedBy||F.current.claimedBy===e);t&&!F.current.claimedBy&&(F.current={...F.current,claimedBy:e},p(F.current));let n=t?F.current:void 0;W.current?.submit({account:e,reconcile:!0,locale:n?.locale,guest:n})}},[g,h,v,x,y,b,M,K]),(0,n.useEffect)(()=>{if(!g||!v||!y||!I||z.current!==x||!U.current||W.current?.hasPending())return;let e=(0,c.shippedLocale)(I.locale);if(void 0!==B.current){if(I.updatedAt<B.current)return;B.current=void 0}K(e)},[g,v,y,x,I,A,K]),(0,n.useEffect)(()=>{M&&y&&W.current?.retry()},[M,y]),(0,n.useEffect)(()=>()=>{W.current?.reset(),z.current=void 0,U.current=!1},[]);let q=(0,n.useCallback)(e=>{let t=V.current;t.enabled&&t.isLoaded&&(!t.isSignedIn||t.isAuthenticated&&t.accountReady)&&($(null),N.current===e&&(N.current=null),R(e=>e+1),K(e),t.isSignedIn&&t.userId?W.current?.submit({account:t.userId,locale:e,reconcile:!1,guest:F.current.pending&&F.current.claimedBy===t.userId?F.current:void 0}):(F.current={locale:e,pending:!0},p(F.current)))},[K]);return(0,t.jsx)(m.Provider,{value:{locale:g?T:"en",setLocale:q,isSwitching:A||j||g&&(!h||!!v&&!M||T!==_),error:D},children:e})},"useTranslationLocale",0,function(){let e=(0,n.useContext)(m);if(!e)throw Error("useTranslationLocale requires LocalePreferencesProvider");return e}],554940)},130389,e=>{"use strict";let t=["/provide_supplier_data"];e.s(["followsSystemAppearance",0,function(e){return t.some(t=>e===t||e.startsWith(`${t}/`))}])},971624,e=>{"use strict";var t=e.i(516658);e.s(["useAuth",()=>t.x])},822958,e=>{"use strict";var t=e.i(47435);e.s(["useOrganizationList",()=>t.f])},711279,e=>{"use strict";var t=e.i(981172);e.s(["Map",()=>t.default])},69588,e=>{e.v({accountAction:"app-shell-module__CbPtea__accountAction",accountPanel:"app-shell-module__CbPtea__accountPanel",accountTrigger:"app-shell-module__CbPtea__accountTrigger",adminCrown:"app-shell-module__CbPtea__adminCrown",appearancePanel:"app-shell-module__CbPtea__appearancePanel",avatar:"app-shell-module__CbPtea__avatar",avatarFallback:"app-shell-module__CbPtea__avatarFallback",avatarSkeleton:"app-shell-module__CbPtea__avatarSkeleton",blueIcon:"app-shell-module__CbPtea__blueIcon",chevron:"app-shell-module__CbPtea__chevron",controlRail:"app-shell-module__CbPtea__controlRail",cyanIcon:"app-shell-module__CbPtea__cyanIcon",dangerAction:"app-shell-module__CbPtea__dangerAction",desktopLogo:"app-shell-module__CbPtea__desktopLogo",divider:"app-shell-module__CbPtea__divider",getStarted:"app-shell-module__CbPtea__getStarted",globalLeft:"app-shell-module__CbPtea__globalLeft",globalMark:"app-shell-module__CbPtea__globalMark",green
2Icon:"app-shell-module__CbPtea__greenIcon",helpPanel:"app-shell-module__CbPtea__helpPanel",homeLink:"app-shell-module__CbPtea__homeLink",itemCopy:"app-shell-module__CbPtea__itemCopy",itemDescription:"app-shell-module__CbPtea__itemDescription",itemIcon:"app-shell-module__CbPtea__itemIcon",itemTitle:"app-shell-module__CbPtea__itemTitle",languageStatus:"app-shell-module__CbPtea__languageStatus",loadingAvatar:"app-shell-module__CbPtea__loadingAvatar",loadingControl:"app-shell-module__CbPtea__loadingControl",loadingLabel:"app-shell-module__CbPtea__loadingLabel",loadingLabelShort:"app-shell-module__CbPtea__loadingLabelShort",loadingLeft:"app-shell-module__CbPtea__loadingLeft",loadingMark:"app-shell-module__CbPtea__loadingMark",loadingUtilities:"app-shell-module__CbPtea__loadingUtilities",menuItem:"app-shell-module__CbPtea__menuItem",mobileLogo:"app-shell-module__CbPtea__mobileLogo",mobileMenuItem:"app-shell-module__CbPtea__mobileMenuItem",mobileMenuPanel:"app-shell-module__CbPtea__mobileMenuPanel",mobileMenuTrigger:"app-shell-module__CbPtea__mobileMenuTrigger",newBadge:"app-shell-module__CbPtea__newBadge",orgImageSkeleton:"app-shell-module__CbPtea__orgImageSkeleton",orgNameSkeleton:"app-shell-module__CbPtea__orgNameSkeleton",orgSkeleton:"app-shell-module__CbPtea__orgSkeleton",orgStatusDot:"app-shell-module__CbPtea__orgStatusDot",orgStatusDot_actionNeeded:"app-shell-module__CbPtea__orgStatusDot_actionNeeded",orgStatusDot_approved:"app-shell-module__CbPtea__orgStatusDot_approved",orgStatusDot_inReview:"app-shell-module__CbPtea__orgStatusDot_inReview",orgStatusDot_notApproved:"app-shell-module__CbPtea__orgStatusDot_notApproved",orgTrigger:"app-shell-module__CbPtea__orgTrigger",orgTriggerIcon:"app-shell-module__CbPtea__orgTriggerIcon",orgTriggerImage:"app-shell-module__CbPtea__orgTriggerImage",orgTriggerName:"app-shell-module__CbPtea__orgTriggerName",organizationAction:"app-shell-module__CbPtea__organizationAction",organizationCheck:"app-shell-module__CbPtea__organizationCheck",organizationIcon:"app-shell-module__CbPtea__organizationIcon",organizationIdentity:"app-shell-module__CbPtea__organizationIdentity",organizationImage:"app-shell-module__CbPtea__organizationImage",organizationItem:"app-shell-module__CbPtea__organizationItem",organizationItemActive:"app-shell-module__CbPtea__organizationItemActive",organizationName:"app-shell-module__CbPtea__organizationName",organizationPanel:"app-shell-module__CbPtea__organizationPanel",panel:"app-shell-module__CbPtea__panel","panel-in":"app-shell-module__CbPtea__panel-in",primaryNavigation:"app-shell-module__CbPtea__primaryNavigation",pulse:"app-shell-module__CbPtea__pulse",sectionLabel:"app-shell-module__CbPtea__sectionLabel",separator:"app-shell-module__CbPtea__separator",settingsPanel:"app-shell-module__CbPtea__settingsPanel",shellPadding:"app-shell-module__CbPtea__shellPadding",shellRow:"app-shell-module__CbPtea__shellRow",signIn:"app-shell-module__CbPtea__signIn",signedOutAppearance:"app-shell-module__CbPtea__signedOutAppearance",signedOutDesktopNavigation:"app-shell-module__CbPtea__signedOutDesktopNavigation",signedOutHomeLink:"app-shell-module__CbPtea__signedOutHomeLink",signedOutLeft:"app-shell-module__CbPtea__signedOutLeft",signedOutLogo:"app-shell-module__CbPtea__signedOutLogo",signedOutSignIn:"app-shell-module__CbPtea__signedOutSignIn",signedOutUtilities:"app-shell-module__CbPtea__signedOutUtilities",smallIcon:"app-shell-module__CbPtea__smallIcon",sticky:"app-shell-module__CbPtea__sticky",surface:"app-shell-module__CbPtea__surface",trigger:"app-shell-module__CbPtea__trigger",userEmail:"app-shell-module__CbPtea__userEmail",userHeader:"app-shell-module__CbPtea__userHeader",userName:"app-shell-module__CbPtea__userName",utilities:"app-shell-module__CbPtea__utilities",utilityCheck:"app-shell-module__CbPtea__utilityCheck",utilityDisclosure:"app-shell-module__CbPtea__utilityDisclosure",utilityMenuIdentity:"app-shell-module__CbPtea__utilityMenuIdentity",utilityMenuItem:"app-shell-module__CbPtea__utilityMenuItem",utilityMenuItemActive:"app-shell-module__CbPtea__utilityMenuItemActive",utilitySkeleton:"app-shell-module__CbPtea__utilitySkeleton",utilitySubmenu:"app-shell-module__CbPtea__utilitySubmenu",utilitySubmenuItem:"app-shell-module__CbPtea__utilitySubmenuItem",utilitySwitch:"app-shell-module__CbPtea__utilitySwitch",utilitySwitchOn:"app-shell-module__CbPtea__utilitySwitchOn",utilityTrigger:"app-shell-module__CbPtea__utilityTrigger",utilityTriggerRing:"app-shell-module__CbPtea__utilityTriggerRing",violetIcon:"app-shell-module__CbPtea__violetIcon"})}]);
3
4//# debugId=9cbe843f-5829-860e-7d50-02ee4c2c140e

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.