Loading
function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function s(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,t,n,r,i,s,a,o){return s<e&&a>t||s>e&&a<t?0:s<=e&&o<=n||a>=t&&o>=n?s-e-r:a>t&&o<n||s<e&&o>n?a-t+i:0}n.d(t,{A:()=>o});var o=function(e,t){var n=window,i=t.scrollMode,o=t.block,l=t.inline,u=t.boundary,c=t.skipOverflowHiddenElements,d="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw TypeError("Invalid target");for(var _,f,p=document.scrollingElement||document.documentElement,h=[],m=e;r(m)&&d(m);){if((m=null==(f=(_=m).parentElement)?_.getRootNode().host||null:f)===p){h.push(m);break}null!=m&&m===document.body&&s(m)&&!s(document.documentElement)||null!=m&&s(m,c)&&h.push(m)}for(var E=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,I=window.scrollY||pageYOffset,T=e.getBoundingClientRect(),S=T.height,y=T.width,v=T.top,N=T.right,C=T.bottom,R=T.left,O="start"===o||"nearest"===o?v:"end"===o?C:v+S/2,b="center"===l?R+y/2:"end"===l?N:R,D=[],L=0;L<h.length;L++){var w=h[L],M=w.getBoundingClientRect(),P=M.height,x=M.width,k=M.top,U=M.right,G=M.bottom,F=M.left;if("if-needed"===i&&v>=0&&R>=0&&C<=g&&N<=E&&v>=k&&C<=G&&R>=F&&N<=U)break;var V=getComputedStyle(w),B=parseInt(V.borderLeftWidth,10),H=parseInt(V.borderTopWidth,10),j=parseInt(V.borderRightWidth,10),Y=parseInt(V.borderBottomWidth,10),W=0,K=0,$="offsetWidth"in w?w.offsetWidth-w.clientWidth-B-j:0,z="offsetHeight"in w?w.offsetHeight-w.clientHeight-H-Y:0,q="offsetWidth"in w?0===w.offsetWidth?0:x/w.offsetWidth:0,Z="offsetHeight"in w?0===w.offsetHeight?0:P/w.offsetHeight:0;if(p===w)W="start"===o?O:"end"===o?O-g:"nearest"===o?a(I,I+g,g,H,Y,I+O,I+O+S,S):O-g/2,K="start"===l?b:"center"===l?b-E/2:"end"===l?b-E:a(A,A+E,E,B,j,A+b,A+b+y,y),W=Math.max(0,W+I),K=Math.max(0,K+A);else{W="start"===o?O-k-H:"end"===o?O-G+Y+z:"nearest"===o?a(k,G,P,H,Y+z,O,O+S,S):O-(k+P/2)+z/2,K="start"===l?b-F-B:"center"===l?b-(F+x/2)+$/2:"end"===l?b-U+j+$:a(F,U,x,B,j+$,b,b+y,y);var X=w.scrollLeft,Q=w.scrollTop;O+=Q-(W=Math.max(0,Math.min(Q+W/Z,w.scrollHeight-P/Z+z))),b+=X-(K=Math.max(0,Math.min(X+K/q,w.scrollWidth-x/q+$)))}D.push({el:w,top:W,left:K})}return D}}