Files
weiyu/deploy/server/admin/2973.484d449d.async.js

1 line
18 KiB
JavaScript
Raw Normal View History

2025-09-25 20:41:06 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2973],{22811:function(e,t,o){o.d(t,{Z:function(){return l}});var n=o(44194),r=o(24589);function l(e){const t=n.useRef(null),o=()=>{r.Z.cancel(t.current),t.current=null};return[()=>{o(),t.current=(0,r.Z)((()=>{t.current=null}))},n=>{t.current&&(n.stopPropagation(),o()),null==e||e(n)}]}},47432:function(e,t,o){o.d(t,{Z:function(){return m},S:function(){return h}});var n=o(44194),r=o(11478),l=o(43359);const i=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,d=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const o=getComputedStyle(e,null);return a(o.overflowY,t)||a(o.overflowX,t)||(e=>{const t=(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},c=(e,t,o,n,r,l,i,a)=>l<e&&i>t||l>e&&i<t?0:l<=e&&a<=o||i>=t&&a>=o?l-e-n:i>t&&a<o||l<e&&a>o?i-t+r:0,s=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},u=(e,t)=>{var o,n,r,l;if("undefined"==typeof document)return[];const{scrollMode:a,block:u,inline:b,boundary:f,skipOverflowHiddenElements:p}=t,h="function"==typeof f?f:e=>e!==f;if(!i(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,m=[];let v=e;for(;i(v)&&h(v);){if(v=s(v),v===g){m.push(v);break}null!=v&&v===document.body&&d(v)&&!d(document.documentElement)||null!=v&&d(v,p)&&m.push(v)}const C=null!=(n=null==(o=window.visualViewport)?void 0:o.width)?n:innerWidth,y=null!=(l=null==(r=window.visualViewport)?void 0:r.height)?l:innerHeight,{scrollX:k,scrollY:S}=window,{height:w,width:$,top:x,right:E,bottom:I,left:O}=e.getBoundingClientRect(),{top:R,right:B,bottom:j,left:M}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===u||"nearest"===u?x-R:"end"===u?I+j:x+w/2-R+j,W="center"===b?O+$/2-M+B:"end"===b?E+B:O-M;const P=[];for(let e=0;e<m.length;e++){const t=m[e],{height:o,width:n,top:r,right:l,bottom:i,left:s}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&O>=0&&I<=y&&E<=C&&(t===g&&!d(t)||x>=r&&I<=i&&O>=s&&E<=l))return P;const f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),h=parseInt(f.borderTopWidth,10),v=parseInt(f.borderRightWidth,10),R=parseInt(f.borderBottomWidth,10);let B=0,j=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-v:0,D="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-R:0,H="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,Z="offsetHeight"in t?0===t.offsetHeight?0:o/t.offsetHeight:0;if(g===t)B="start"===u?N:"end"===u?N-y:"nearest"===u?c(S,S+y,y,h,R,S+N,S+N+w,w):N-y/2,j="start"===b?W:"center"===b?W-C/2:"end"===b?W-C:c(k,k+C,C,p,v,k+W,k+W+$,$),B=Math.max(0,B+S),j=Math.max(0,j+k);else{B="start"===u?N-r-h:"end"===u?N-i+R+D:"nearest"===u?c(r,i,o,h,R+D,N,N+w,w):N-(r+o/2)+D/2,j="start"===b?W-s-p:"center"===b?W-(s+n/2)+M/2:"end"===b?W-l+v+M:c(s,l,n,p,v+M,W,W+$,$);const{scrollLeft:e,scrollTop:a}=t;B=0===Z?0:Math.max(0,Math.min(a+B/Z,t.scrollHeight-o/Z+D)),j=0===H?0:Math.max(0,Math.min(e+j/H,t.scrollWidth-n/H+M)),N+=a-B,W+=e-j}P.push({el:t,top:B,left:j})}return P};function b(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const o=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(u(e,t));const n="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:l,left:i}of u(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{