2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
import{aB as Ve,aC as xe,ap as Me,ar as We,aD as ke,aE as je,aF as qe,aG as _e,aH as Ne,r as Te,aI as le,H as X,K as Re,s as He,a1 as ie,aJ as N,aK as de,af as De,d as $e,aL as ze,aM as Ke,k as V,aN as Ue,aO as Xe,aP as Ye,aQ as Ge,C as Qe,aR as fe,aS as Z,aT as B,aU as he,aV as me,aW as Ze,aX as ne,aY as ge,aZ as Je}from"./G_17LgpR.js";import{t as ve,v as Be,d as Ie,_ as et,u as tt,a as nt,c as pe,b as ae,g as be,e as rt}from"./DC-Co_wt.js";import{i as Le}from"./xHelY-u9.js";import{S as it,c as we}from"./DBmCMGoE.js";import{a as at}from"./CO4NYPx8.js";import{i as lt,b as st,l as ot}from"./C-7vddbp.js";import{i as ut}from"./0dsigLwk.js";import{f as ct}from"./C9NlmXgZ.js";import{u as dt,F as ce}from"./DYXDK3m5.js";function ye(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Fe(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function se(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Fe(r.overflowY,t)||Fe(r.overflowX,t)||(function(a){var n=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!n&&(n.clientHeight<a.scrollHeight||n.clientWidth<a.scrollWidth)})(e)}return!1}function re(e,t,r,a,n,i,u,h){return i<e&&u>t||i>e&&u<t?0:i<=e&&h<=r||u>=t&&h>=r?i-e-a:u>t&&h<r||i<e&&h>r?u-t+n:0}var Pe=function(e,t){var r=window,a=t.scrollMode,n=t.block,i=t.inline,u=t.boundary,h=t.skipOverflowHiddenElements,b=typeof u=="function"?u:function(Ae){return Ae!==u};if(!ye(e))throw new TypeError("Invalid target");for(var E,I,O=document.scrollingElement||document.documentElement,M=[],y=e;ye(y)&&b(y);){if((y=(I=(E=y).parentElement)==null?E.getRootNode().host||null:I)===O){M.push(y);break}y!=null&&y===document.body&&se(y)&&!se(document.documentElement)||y!=null&&se(y,h)&&M.push(y)}for(var k=r.visualViewport?r.visualViewport.width:innerWidth,L=r.visualViewport?r.visualViewport.height:innerHeight,x=window.scrollX||pageXOffset,T=window.scrollY||pageYOffset,A=e.getBoundingClientRect(),s=A.height,l=A.width,g=A.top,c=A.right,f=A.bottom,d=A.left,F=n==="start"||n==="nearest"?g:n==="end"?f:g+s/2,v=i==="center"?d+l/2:i==="end"?c:d,P=[],W=0;W<M.length;W++){var p=M[W],j=p.getBoundingClientRect(),R=j.height,H=j.width,o=j.top,m=j.right,w=j.bottom,S=j.left;if(a==="if-needed"&&g>=0&&d>=0&&f<=L&&c<=k&&g>=o&&f<=w&&d>=S&&c<=m)return P;var _=getComputedStyle(p),$=parseInt(_.borderLeftWidth,10),U=parseInt(_.borderTopWidth,10),q=parseInt(_.borderRightWidth,10),D=parseInt(_.borderBottomWidth,10),C=0,z=0,G="offsetWidth"in p?p.offsetWidth-p.clientWidth-$-q:0,K="offsetHeight"in p?p.offsetHeight-p.clientHeight-U-D:0,Q="offsetWidth"in p?p.offsetWidth===0?0:H/p.offsetWidth:0,ee="offsetHeight"in p?p.offsetHeight===0?0:R/p.offsetHeight:0;if(O===p)C=n==="start"?F:n==="end"?F-L:n==="nearest"?re(T,T+L,L,U,D,T+F,T+F+s,s):F-L/2,z=i==="start"?v:i==="center"?v-k/2:i==="end"?v-k:re(x,x+k,k,$,q,x+v,x+v+l,l),C=Math.max(0,C+T),z=Math.max(0,z+x);else{C=n==="start"?F-o-U:n==="end"?F-w+D+K:n==="nearest"?re(o,w,R,U,D+K,F,F+s,s):F-(o+R/2)+K/2,z=i==="start"?v-S-$:i==="center"?v-(S+H/2)+G/2:i==="end"?v-m+q+G:re(S,m,H,$,q+G,v,v+l,l);var te=p.scrollLeft,J=p.scrollTop;F+=J-(C=Math.max(0,Math.min(J+C/ee,p.scrollHeight-R/ee+K))),v+=te-(z=Math.max(0,Math.min(te+z/Q,p.scrollWidth-H/Q+G)))}P.push({el:p,top:C,left:z})}return P};function Se(e){return e===Object(e)&&Object.keys(e).length!==0}function ft(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(a){var n=a.el,i=a.top,u=a.left;n.scroll&&r?n.scroll({top:i,left:u,behavior:t}):(n.scrollTop=i,n.scrollLeft=u)})}function ht(e){return e===!1?{block:"end",inline:"nearest"}:Se(e)?e:{block:"start",inline:"nearest"}}function mt(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Se(t)&&typeof t.behavior=="function")return t.behavior(r?Pe(e,t):[]);if(r){var a=ht(t);return ft(Pe(e,a),a.behavior)}}function gt(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);+
|