"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4499],{42988:function(e,t,n){var r=n(82729),o=n(93733),i=n(67294),s=n(49751),a=n(88171),u=n(31666);function _templateObject(){var e=(0,r._)(["\n display: grid;\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n\n ",";\n ",";\n"]);return _templateObject=function(){return e},e}var __rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},c=u.Z.div(_templateObject(),function(e){return(0,o.W1)("align-items",e.alignItems)},function(e){return(0,o.W1)("justify-content",e.justifyContent)},function(e){return e.justifyItems&&(0,o.W1)("justify-items",e.justifyItems)},function(e){return e.alignContent&&(0,o.W1)("align-content",e.alignContent)},function(e){return!e.columns&&!e.rows&&!e.autoFlow&&"grid-auto-flow: column"},function(e){return(0,a.Uw)(e.columns,"columns")},function(e){return(0,a.Uw)(e.rows,"rows")},function(e){return(0,o.ap)("gap",e.gap)},function(e){return(0,o.ap)("width",e.width)},function(e){return(0,o.ap)("height",e.height)},function(e){return(0,o.ap)("min-width",e.minWidth)},function(e){return(0,o.ap)("min-height",e.minHeight)},function(e){return(0,o.ap)("max-width",e.maxWidth)},function(e){return(0,o.ap)("max-height",e.maxHeight)},function(e){return e.autoFlow&&(0,o.W1)("grid-auto-flow",e.autoFlow)},function(e){return e.columns&&e.autoFlow&&(0,o.W1)("grid-auto-flow",e.autoFlow)});t.Z=function(e){var t=e.children,n=e.width,r=e.height,o=e.minWidth,a=e.minHeight,u=e.maxWidth,l=e.maxHeight,f=e.gap,p=e.columns,d=e.rows,h=e.alignItems,g=e.justifyContent,m=e.justifyItems,v=e.alignContent,y=e.autoFlow,b=e.className,w=e.style,O=__rest(e,["children","width","height","minWidth","minHeight","maxWidth","maxHeight","gap","columns","rows","alignItems","justifyContent","justifyItems","alignContent","autoFlow","className","style"]);return(b||w)&&console.warn(s.qF),i.createElement(c,Object.assign({alignItems:void 0===h?"center":h,justifyContent:void 0===g?"start":g,justifyItems:m,alignContent:v,gap:f,columns:p,rows:d,width:n,height:r,minWidth:o,minHeight:a,maxWidth:u,maxHeight:l,autoFlow:y},O),t)}},19783:function(e,t,n){n.d(t,{dz:function(){return f},oW:function(){return c}});var r=n(82729),o=n(93733),i=n(67294),s=n(31666),a=n(72662),u=n(49751);function _templateObject(){var e=(0,r._)(["\n display: ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ","\n"]);return _templateObject=function(){return e},e}var __rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},c={body:{size:"body-md",fontWeight:"book"},title:{size:"body-lg",fontWeight:"bold"},mainTitle:{size:"heading-md",fontWeight:"bold"}},getTextPxSize=function(e){return a.iH[e].fontSize*a.bf},getTextUnitSize=function(e){return(0,o.u)(a.iH[e].fontSize)},lineHeightToPx=function(e){return a.iH[e].fontSize*a.iH[e].lineHeight*a.bf},clampBuilder=function(e,t,n,r){var o=(t-e)/(r-n),i=-n*o+e;return"".concat(i,"px + ").concat(100*o,"vw")},l=s.Z.span(_templateObject(),function(e){return e.isInline?"inline":"block"},function(e){return!e.sizeMinMax&&(0,o.y3)(e.size)},function(e){return(0,o.On)(e.fontWeight)},function(e){return e.color&&"color: ".concat((0,o.Rv)(e.color))},function(e){return e.isDimmed&&"opacity: ".concat(.6)},function(e){return e.alignment&&"text-align: ".concat(e.alignment)},function(e){return e.hasEllipsis&&!e.ellipsisLines&&"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "},function(e){return e.hasEllipsis&&e.ellipsisLines&&"\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ".concat(e.ellipsisLines,";\n ")},function(e){return!e.hasEllipsis&&e.noWrap&&"white-space: nowrap; overflow: hidden;"},function(e){return e.sizeMinMax&&"\n min-height: 0vw;\n font-size: clamp(\n ".concat(getTextUnitSize(e.sizeMinMax[0]),",\n ").concat(clampBuilder(getTextPxSize(e.sizeMinMax[0]),getTextPxSize(e.sizeMinMax[1]),496,1200),",\n ").concat(getTextUnitSize(e.sizeMinMax[1]),"\n );\n\n line-height: clamp(\n ").concat(lineHeightToPx(e.sizeMinMax[0]),"px,\n ").concat(clampBuilder(lineHeightToPx(e.sizeMinMax[0]),lineHeightToPx(e.sizeMinMax[1]),496,1200),",\n ").concat(lineHeightToPx(e.sizeMinMax[1]),"px\n );\n ")}),f=["left","right","center"];t.ZP=function(e){var t=e.children,n=e.size,r=e.color,o=e.isInline,s=e.isDimmed,a=e.fontWeight,f=e.hasEllipsis,p=e.ellipsisLines,d=e.noWrap,h=e.variant,g=e.htmlTag,m=e.alignment,v=e.sizeMinMax,y=__rest(e,["children","size","color","isInline","isDimmed","fontWeight","hasEllipsis","ellipsisLines","noWrap","variant","htmlTag","alignment","sizeMinMax"]);return s&&console.warn(u.$P),i.createElement(l,Object.assign({size:h?c[h].size:void 0===n?"body-md":n,color:r,isInline:o,isDimmed:s,fontWeight:h?c[h].fontWeight:void 0===a?"book":a,hasEllipsis:f,ellipsisLines:p,noWrap:d,variant:h,as:void 0===g?"span":g,alignment:m,sizeMinMax:v},y),t)}},49751:function(e,t,n){n.d(t,{$P:function(){return r},OY:function(){return i},oP:function(){return s},qF:function(){return o}});var r="Lens: Text prop 'isDimmed' is deprecated, use color=\"bodyDimmed\" instead.",o="Lens: don't apply custom styles to components, learn more: https://lens.loom.dev/guides/development-best-practices/the-risk-of-modifying-components-with-custom-styles.",i="Lens: Distribute component is deprecated. Use Arrange or Split.",s="Lens: Layout component is deprecated. Use Arrange or Split."},62372:function(e,t,n){n.d(t,{XI:function(){return useHover},lq:function(){return mergeRefs},sJ:function(){return useLayer}});var r,o,i=n(67294),s=n(73935);function _defineProperties(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function useTrackRef(e){var t=(0,i.useRef)(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var a="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function getPixelValue(e){return parseFloat(e.replace("px",""))}function limit(e,t,n){return en?n:e}function mergeRefs(){for(var e=arguments.length,t=Array(e),n=0;n=0})}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(d.filter(function(t){return e[t]<0}).map(function(t){return[t,e[t]]}))}}]),BoundsOffsets}();function sumOfPropertyValues(){for(var e=arguments.length,t=Array(e),n=0;nv?v-w:0;d[n.prop]=limit(w+e+O,g,v),d[n.opposite.prop]=d[n.prop]+n.factor(i[c])}d.width=d.right-d.left,d.height=d.bottom-d.top;var C=m.create(d);return 0===e&&(this._cachedLayerBounds=C),C},e.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides(function(t,n){return n-t.factor(e)}).merge(function(t){return{width:t.width+2*e,height:t.height+2*e}})},e.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=h.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},_createClass(Placement,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this;return(null!=(e=null==(t=Object.entries(this.getContainerOffsets().negativeSides).map(function(e){var t=e[0],n=e[1];return[f[t],n]}).filter(function(e){var t=e[0];return n.primary.isOppositeDirection(t)}).sort(function(e,t){var n=e[1];return t[1]-n}))?void 0:t[0])?e:[])[0]||null}}]),Placement}(),y=function(e){function PlacementCenter(){return e.apply(this,arguments)||this}return PlacementCenter.prototype=Object.create(e.prototype),PlacementCenter.prototype.constructor=PlacementCenter,_setPrototypeOf(PlacementCenter,e),PlacementCenter.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=m.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},PlacementCenter}(v),b={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},w=function(){function Placements(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}Placements.getSidesFromPlacementType=function(e){var t,n=e.split("-"),r=n[0],o=n[1],i=f[r];return t="center"===o?p.center:i.isHorizontal?"start"===o?p.top:p.bottom:"start"===o?p.left:p.right,[i,t]},Placements.create=function(e,t){var n={arrow:t.arrowOffset,container:t.containerOffset,trigger:t.triggerOffset};function getListOfPlacements(r){void 0===r&&(r=t.placement);var o=Placements.getSidesFromPlacementType(r),i=o[0],s=o[1],a=f[i.isHorizontal?t.preferY:t.preferX],u=!i.isHorizontal&&e.triggerHasBiggerWidth||i.isHorizontal&&e.triggerHasBiggerHeight;function placementFrom(r,o){return new v(r,o,e,t.layerDimensions,n)}var c=[];return c[0]=placementFrom(i,s),c[1]=placementFrom(i,s.isCenter?a:p.center),c[2]=placementFrom(i,p[(s.opposite.isCenter?a.opposite:s.opposite).prop]),c[3]=placementFrom(a,u?i:p[i.opposite.prop]),c[4]=placementFrom(a,p.center),c[5]=placementFrom(a,u?p[i.opposite.prop]:i),c[6]=placementFrom(f[a.opposite.prop],u?i:p[i.opposite.prop]),c[7]=placementFrom(f[a.opposite.prop],p.center),c[8]=placementFrom(f[a.opposite.prop],u?p[i.opposite.prop]:i),c[9]=placementFrom(f[i.opposite.prop],s),c[10]=placementFrom(f[i.opposite.prop],s.isCenter?a:p.center),c[11]=placementFrom(f[i.opposite.prop],p[(s.opposite.isCenter?a.opposite:s.opposite).prop]),c=c.filter(function(e){return e.type===t.placement||t.possiblePlacements.includes(e.type)})}return"center"===t.placement?new Placements([new y(p.center,p.center,e,t.layerDimensions,n)].concat(getListOfPlacements(t.preferY+"-"+t.preferX)),t,e):new Placements(getListOfPlacements(),t,e)};var e=Placements.prototype;return e.filterPlacementsBySide=function(e){return this.placements.filter(function(t){return t.primary===e})},e.findFirstPlacementThatFits=function(){return this.placements.find(function(e){return e.fitsContainer})},e.placementWithBiggestVisibleSurface=function(){return this.placements.map(function(e){return{placement:e,surface:e.visibleSurface}}).sort(function(e,t){return t.surface-e.surface})[0].placement},e.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},e.getSecondaryOffset=function(e){var t,n=this.config,r=n.auto,o=n.snap;if(!r||o||e instanceof y)return 0;var i=this.filterPlacementsBySide(e.primary);if(0===i.indexOf(e)&&e.fitsContainer)return 0;var s=i.find(function(e){return!e.fitsContainer});if(!s)return 0;var a=s.secondaryOffsetSide;if(!a)return 0;var u=e.getContainerOffsets(),c=e.secondary;return t=e.triggerIsBigger||s===e?a.isPush?-1:1:c===p.left||[p.top,p.center].includes(c)&&a.isPush?-1:1,u[a.prop]*t},e.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"};return{arrow:function(e,t,n){if(t.primary.isCenter)return b;var r,o,i,s,a,u,c,l,f,p,d=e.layer,h=e.trigger,g=e.arrow,m=t.primary.oppositeSizeProp,v=h[m]>d[m],y=n+g[m]/2,w=d[m]-g[m]/2-n,O=(r=e.layer,o=e.trigger,i=e.arrow,s=t.primary.oppositeSizeProp,u=(a=t.primary.isHorizontal?["top","bottom"]:["left","right"])[0],c=a[1],((l=r[u]+r[s]/2-o[u]-i[s]/2-n)<0?-l:0)+((f=r[c]-r[s]/2-o[c]+i[s]/2+n)>0?-f:0)),C=t.primary.prop,S=t.primary.oppositeCssProp,P=v?d[m]/2+O:h[S]+h[m]/2-d[S];return _extends({},b,((p={})[C]="100%",p[S]=limit(P,y,w),p))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset),layer:this.config.overflowContainer?_extends({},o,{position:"fixed",top:e.top,left:e.left}):_extends({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},e.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=h.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some(function(e){var n=e[0];return e[1]<=-t[f[n].sizeProp]})?"full":n.allSidesArePositive?null:"partial"},e.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},Placements}(),O=function(){function SubjectsBounds(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}SubjectsBounds.create=function(e,t,n,r,o,i,s,a){var u=m.fromWindow(e);return new SubjectsBounds({layer:m.fromElement(t,{environment:e,withTransform:!1}),trigger:a?m.create(boundsToObject(a())):m.fromElement(n),arrow:o?m.fromElement(o):m.empty(),parent:r?m.fromElement(r):u,window:u,scrollContainers:[u].concat(i.map(function(e){return m.fromElement(e,{withScrollbars:!1})}))},s)};var e=SubjectsBounds.prototype;return e.merge=function(e){return new SubjectsBounds(_extends({},this,e),this.overflowContainer)},e.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map(function(t){return t.offsetsTo(e)})},_createClass(SubjectsBounds,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),SubjectsBounds}(),C={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0};function useLayer(e){var t,n,r,o,c,l,f,p,d,h,g,m,v,y,b,P,E,x,B,j,L,_,T,z,H,k,R,I,M,W,F,D,A,N,V,Y,G,X=e.isOpen,U=void 0!==X&&X,Z=e.overflowContainer,q=void 0===Z?C.overflowContainer:Z,$=e.environment,J=void 0===$?"undefined"!=typeof window?window:void 0:$,K=e.ResizeObserver,Q=e.placement,ee=void 0===Q?C.placement:Q,et=e.possiblePlacements,en=void 0===et?C.possiblePlacements:et,er=e.preferX,eo=void 0===er?C.preferX:er,ei=e.preferY,es=void 0===ei?C.preferY:ei,ea=e.auto,eu=void 0===ea?C.auto:ea,ec=e.snap,el=void 0===ec?C.snap:ec,ef=e.triggerOffset,ep=void 0===ef?C.triggerOffset:ef,ed=e.containerOffset,eh=void 0===ed?C.containerOffset:ed,eg=e.arrowOffset,em=void 0===eg?C.arrowOffset:eg,ev=e.container,ey=void 0===ev?C.container:ev,eb=e.layerDimensions,ew=void 0===eb?null:eb,eO=e.onDisappear,eC=e.onOutsideClick,eS=e.onParentClose,eP=e.trigger,eE=(0,i.useState)(function(){return{layerSide:"center"===ee?"center":w.getSidesFromPlacementType(ee)[0].prop,styles:{layer:{position:q?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),ex=eE[0],eB=eE[1],ej=(0,i.useRef)(null),eL=(t=(0,i.useRef)(ex),U?t.current=ex:t.current=null,t),e_=(0,i.useRef)({cancelled:!1});(0,i.useEffect)(function(){return function(){e_.current.cancelled=!0}},[]);var eT=(0,i.useCallback)(function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,s=e.trigger,a=i[0],u=O.create(J,o,s,a,r,i,q,null==eP?void 0:eP.getBounds),c=w.create(u,{placement:ee,possiblePlacements:en,auto:eu,layerDimensions:ew,arrowOffset:em,containerOffset:eh,triggerOffset:ep,preferX:eo,preferY:es,snap:el,overflowContainer:q}).result(t,n),l=c.hasDisappeared,f={layerSide:c.layerSide,styles:c.styles};if(!eL.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n0},removeAllEventSubscriptions:function(){for(var e,t=_createForOfIteratorHelperLoose(P.current);!(e=t()).done;)(0,e.value)();P.current=[]},addEventSubscription:function(e){P.current.push(e)}}},[])).hasEventSubscriptions,B=E.addEventSubscription,j=E.removeAllEventSubscriptions,L=(0,i.useCallback)(function(){var e=y(),t=e.layer,n=e.trigger,r=e.scrollContainers,i=r[0];if(!t)throw Error(createReferenceError("layer"));if(!n&&!g)throw Error(createReferenceError("trigger"));var s={top:0,left:0};if(i){var a=i.scrollLeft;s={top:i.scrollTop,left:a}}else{var u=c.scrollX;s={top:c.scrollY,left:u}}var l={left:0,top:0};if(i){var f=c.getComputedStyle(i),p=f.borderLeftWidth,d=f.borderTopWidth;l={left:getPixelValue(p)||0,top:getPixelValue(d)||0}}o({layer:t,trigger:n,scrollContainers:r,arrow:h.current},s,l)},[y,o,c,h,g]),_=(0,i.useCallback)(function(){var e=y(),t=e.trigger,n=e.layer,r=e.scrollContainers;if(!n)throw Error(createReferenceError("layer"));if(!t&&!g)throw Error(createReferenceError("trigger"));if(d){for(var o=!1,i=new d(function(){if(!o){o=!0;return}L()}),s=0,a=[t,n,document.body];s