1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`v2026.09.41`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fea387e9-520a-4c69-b7bd-3947d18138b0`,e._sentryDebugIdIdentifier=`sentry-dbid-fea387e9-520a-4c69-b7bd-3947d18138b0`)}catch{}})();import{n as e,t}from"./defineProperty-C4WXPCin.js";import{t as n}from"./clamp-B9v_qNrv.js";import{t as r}from"./isEqual-CfuVf9Ap.js";import{t as i}from"./math-DblmGWrD.js";var a=[`top start`,`top left`,`top center`,`top end`,`top right`,`center`,`center center`,`bottom start`,`bottom left`,`bottom center`,`bottom end`,`bottom right`,`start top`,`start center`,`start bottom`,`left top`,`left center`,`left bottom`,`end top`,`end center`,`end bottom`,`right top`,`right center`,`right bottom`],o=e=>{if(!a.includes(e))throw Error(`Invalid anchor position: ${e}! Syntax: '<side> <align>'. Side Valid values are: '${a.join(`, `)}'`);return e},s=(e,t)=>e===`start`?t?`right`:`left`:e===`end`?t?`left`:`right`:e,c=(e,t)=>{let n=e.split(` `),r=n[0],i=n[1];return i=i||`center`,{side:s(r,t),align:s(i,t)}},l=e=>({center:`center`,top:`bottom`,bottom:`top`,left:`right`,right:`left`})[e];e();var u=class e{constructor(n,r,{distanceFromAnchor:i,distanceFromContainer:a,relativeToElement:o=null,dataReceiverElement:s=r}={}){t(this,`_anchor`,void 0),t(this,`distanceFromAnchor`,void 0),t(this,`distanceFromContainer`,void 0),t(this,`_getLeftPosition`,void 0),t(this,`_getTopPosition`,void 0),t(this,`_$anchoredElement`,void 0),t(this,`_$dataReceiverElement`,void 0),t(this,`_relativeToElement`,void 0),this._anchor=n,this.distanceFromAnchor=i??e.DEFAULT_DISTANCE_FROM_ANCHOR,this.distanceFromContainer=a??e.DEFAULT_DISTANCE_FROM_CONTAINER,this._relativeToElement=o,this._$anchoredElement=$(r),this._$dataReceiverElement=$(s),this.recalculatePositionGetters()}get anchor(){return this._anchor}set anchor(e){r(this.anchor,e)||(this._anchor=e,this.recalculatePositionGetters())}get anchoredElement(){return this._$anchoredElement[0]}set anchoredElement(e){this._$anchoredElement=$(e)}get dataReceiverElement(){return this._$dataReceiverElement[0]}set dataReceiverElement(e){this._$dataReceiverElement=$(e)}reposition(e,t){let{left:n,top:r}=this.getRepositionCordinates(e,t);this._$anchoredElement.css({left:n,top:r})}getRepositionCordinates(e,t){var n;let r=this.getBoundingClientRectInCurrentWindow(e),i=new DOMRect,a=t==null?void 0:t.getBoundingClientRect(),o=(n=this._relativeToElement)==null?void 0:n.getBoundingClientRect();return i.width=this._$anchoredElement.outerWidth(),i.height=this._$anchoredElement.outerHeight(),{left:this._getLeftPosition(r,i,a,o),top:this._getTopPosition(r,i,a,o)}}getPositionGettersFromAnchor(e){let t=e=>((e==null?void 0:e.top)??0)+this.distanceFromContainer,r=(e,t)=>((t==null?void 0:t.bottom)??window.innerHeight)-e.height-this.distanceFromContainer,a=e=>((e==null?void 0:e.left)??0)+this.distanceFromContainer,o=(e,t)=>((t==null?void 0:t.right)??window.innerWidth)-e.width-this.distanceFromContainer,s=(e,t)=>t?e-t.top:e,c=(e,t)=>t?e-t.left:e;if(e.side===`center`)return this._$dataReceiverElement.attr(`actual-side`,`center`),this._$dataReceiverElement.attr(`actual-align`,`center`),{getLeftPosition:(e,t,r,i)=>c(n(e.left-t.width/2+e.width/2,a(r),o(t,r)),i),getTopPosition:(e,i,a,o)=>s(n(e.top-i.height/2+e.height/2,t(a),r(i,a)),o)};let u={},d={top:`getTopPosition`,right:`getLeftPosition`,bottom:`getTopPosition`,left:`getLeftPosition`},f={top:(e,t)=>e.top-t.height-this.distanceFromAnchor,right:e=>e.right+this.distanceFromAnchor,bottom:e=>e.bottom+this.distanceFromAnchor,left:(e,t)=>e.left-t.width-this.distanceFromAnchor},p=d[e.side],m=p===`getLeftPosition`?a:t,h=p===`getLeftPosition`?o:r,g=p===`getLeftPosition`?c:s;u[p]=(t,r,a,o)=>{let s=f[e.side](t,r),c=m(a),u=h(r,a);if(i(s,c,u))return this._$dataReceiverElement.attr(`actual-side`,e.side),g(s,o);let d=l(e.side),p=f[d](t,r);if(i(p,c,u))return this._$dataReceiverElement.attr(`actual-side`,d),g(p,o);let _=n(s,c,u),v=Math.abs(_-s),y=n(p,c,u);return v<Math.abs(y-p)?(this._$dataReceiverElement.attr(`actual-side`,e.side),g(_,o)):(this._$dataReceiverElement.attr(`actual-side`,d),g(y,o))};let _=[`left`,`right`].includes(e.side),v={top:e=>e.top,right:(e,t)=>
1e.right-t.width,bottom:(e,t)=>e.bottom-t.height,left:e=>e.left,center:_?(e,t)=>e.top-t.height/2+e.height/2:(e,t)=>e.left-t.width/2+e.width/2},y=_?`getTopPosition`:`getLeftPosition`,b=e.align===`center`?y:d[e.align],x=b===`getLeftPosition`?a:t,S=b===`getLeftPosition`?o:r,C=b===`getLeftPosition`?c:s;return u[b]=(t,r,a,o)=>{let s=v[e.align](t,r),c=x(a),u=S(r,a);if(i(s,c,u))return this._$dataReceiverElement.attr(`actual-align`,e.align),C(s,o);let d=l(e.align),f=v[d](t,r);if(i(f,c,u))return this._$dataReceiverElement.attr(`actual-align`,d),C(f,o);let p=n(s,c,u),m=Math.abs(p-s),h=n(f,c,u);return m<Math.abs(h-f)?(this._$dataReceiverElement.attr(`actual-align`,e.align),C(p,o)):(this._$dataReceiverElement.attr(`actual-align`,d),C(h,o))},u}recalculatePositionGetters(){let{getLeftPosition:e,getTopPosition:t}=this.getPositionGettersFromAnchor(this.anchor);this._getLeftPosition=e,this._getTopPosition=t}getBoundingClientRectInCurrentWindow(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;if(!n)return t;let r=window,i=t.left,a=t.top;for(;n!==r;){let e=n==null?void 0:n.parent;if(!e)break;let t=n==null?void 0:n.frameElement;if(!t)break;let r=t.getBoundingClientRect();i+=r.left,a+=r.top,n=e}return new DOMRect(i,a,t.width,t.height)}};t(u,`DEFAULT_DISTANCE_FROM_ANCHOR`,6),t(u,`DEFAULT_DISTANCE_FROM_CONTAINER`,6);export{o as n,c as r,u as t}; 2//# sourceMappingURL=PositionStrategy-B-0IArm7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.