import{S as G,q as $,d as S,T as q}from"./classCallCheck-DqWZIipa.js";import{x as V,j as c,M as _,y as Z,z as K,A as X,w as Q,B as H,c as J}from"./isEqual-ee78UXO0.js";import{d as Y,z as k,Z as j,Q as ee,D as te,P as ne,q as re,G as ie}from"./index-ZjGZzoKB.js";import{c as x,S as d}from"./Spinner.vue_vue_type_style_index_0_lang-0BQFuTHt.js";const $e=Y({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(t,r){var i=r.slots,n=re({width:0,height:0,offsetHeight:0,offsetWidth:0}),a=null,s=null,o=function(){s&&(s.disconnect(),s=null)},B=function(m){var u=t.onResize,l=m[0].target,w=l.getBoundingClientRect(),U=w.width,W=w.height,v=l.offsetWidth,y=l.offsetHeight,C=Math.floor(U),O=Math.floor(W);if(n.width!==C||n.height!==O||n.offsetWidth!==v||n.offsetHeight!==y){var E={width:C,height:O,offsetWidth:v,offsetHeight:y};$(n,E),u&&Promise.resolve().then(function(){u(S(S({},E),{},{offsetWidth:v,offsetHeight:y}),l)})}},F=ne(),p=function(){var m=t.disabled;if(m){o();return}var u=G(F),l=u!==a;l&&(o(),a=u),!s&&u&&(s=new V(B),s.observe(u))};return k(function(){p()}),j(function(){p()}),ee(function(){o()}),te(function(){return t.disabled},function(){p()},{flush:"post"}),function(){var f;return(f=i.default)===null||f===void 0?void 0:f.call(i)[0]}}});function ae(e,t,r,i){for(var n=e.length,a=r+-1;++a-1}function L(e,t){if(e.classList)return e.classList.contains(t);var r=e.className;return" ".concat(r," ").indexOf(" ".concat(t," "))>-1}function P(e,t){e.classList?e.classList.add(t):L(e,t)||(e.className="".concat(e.className," ").concat(t))}function M(e,t){if(e.classList)e.classList.remove(t);else if(L(e,t)){var r=e.className;e.className=" ".concat(r," ").replace(" ".concat(t," ")," ")}}var Ve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:r,css:!0,onBeforeEnter:function(n){n.style.height="0px",n.style.opacity="0",P(n,t)},onEnter:function(n){ie(function(){n.style.height="".concat(n.scrollHeight,"px"),n.style.opacity="1"})},onAfterEnter:function(n){n&&(M(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:function(n){P(n,t),n.style.height="".concat(n.offsetHeight,"px"),n.style.opacity=null},onLeave:function(n){setTimeout(function(){n.style.height="0px",n.style.opacity="0"})},onAfterLeave:function(n){n&&(M(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}};function fe(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r0){if(++t>=He)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ne=De(_e);function Qe(e){return Ne(ze(e,void 0,Me),e+"")}var Be=function(){return q()&&window.document.documentElement},h,Je=function(){if(!Be())return!1;if(h!==void 0)return h;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),h=t.scrollHeight===1,document.body.removeChild(t),h};export{$e as R,Ke as a,be as b,Ze as c,Je as d,Te as e,ae as f,Ve as g,Xe as h,de as i,qe as j,fe as k,D as l,Qe as m,Be as n,ze as o,Ne as s,N as t};