|
|
import{d as se,R as ae,v as ve,S as ce,M as ue}from"./index-bVOhw2NF.js";function A(e,t){console.error(`[vueuc/${e}]: ${t}`)}var c=[],de=function(){return c.some(function(e){return e.activeTargets.length>0})},he=function(){return c.some(function(e){return e.skippedTargets.length>0})},I="ResizeObserver loop completed with undelivered notifications.",le=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:I}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=I),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},fe=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e}(),G=function(){function e(t,r,n,i){return this.x=t,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,i=t.top,o=t.right,s=t.bottom,d=t.left,h=t.width,v=t.height;return{x:r,y:n,top:i,right:o,bottom:s,left:d,width:h,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},U=function(e){if(C(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},P=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},pe=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p=typeof window<"u"?window:{},x=new WeakMap,_=/auto|scroll/,be=/^tb|vertical/,ge=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},l=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new fe((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:l(),borderBoxSize:l(),contentBoxSize:l(),contentRect:new G(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),x.has(e)&&!t)return x.get(e);if(U(e))return x.set(e,W),W;var r=getComputedStyle(e),n=C(e)&&e.ownerSVGElement&&e.getBBox(),i=!ge&&r.boxSizing==="border-box",o=be.test(r.writingMode||""),s=!n&&_.test(r.overflowY||""),d=!n&&_.test(r.overflowX||""),h=n?0:a(r.paddingTop),v=n?0:a(r.paddingRight),m=n?0:a(r.paddingBottom),f=n?0:a(r.paddingLeft),Z=n?0:a(r.borderTopWidth),j=n?0:a(r.borderRightWidth),ee=n?0:a(r.borderBottomWidth),te=n?0:a(r.borderLeftWidth),M=f+v,D=h+m,E=te+j,y=Z+ee,k=d?e.offsetHeight-y-e.clientHeight:0,H=s?e.offsetWidth-E-e.clientWidth:0,re=i?M+E:0,ne=i?D+y:0,g=n?n.width:a(r.width)-re-H,z=n?n.height:a(r.height)-ne-k,ie=g+M+H+E,oe=z+D+k+y,N=u({devicePixelContentBoxSize:l(Math.round(g*devicePixelRatio),Math.round(z*devicePixelRatio),o),borderBoxSize:l(ie,oe,o),contentBoxSize:l(g,z,o),contentRect:new G(f,h,g,z)});return x.set(e,N),N},Y=function(e,t,r){var n=J(e,r),i=n.borderBoxSize,o=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return s;case b.BORDER_BOX:return i;default:return o}},ze=function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e}(),K=function(e){if(U(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},xe=function(){var e=1/0,t=[];c.forEach(function(s){if(s.activeTargets.length!==0){var d=[];s.activeTargets.forEach(function(v){var m=new ze(v.target),f=K(v.target);d.push(m),v.lastReportedSize=Y(v.target,v.observedBox),f<e&&(e=f)}),t.push(function(){s.callback.call(s.observer,d,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},L=function(e){c.forEach(function(r){r.activeTargets.splice(0,r.activeTargets
|