"use strict";(self["webpackChunkAstroAI"]=self["webpackChunkAstroAI"]||[]).push([[3577],{52602:function(t){var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var o=0;o<e.length;o+=1)n[o+t.length]=e[o];return n},a=function(t,e){for(var n=[],r=e||0,o=0;r<t.length;r+=1,o+=1)n[o]=t[r];return n},l=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n};t.exports=function(t){var c=this;if("function"!==typeof c||n.apply(c)!==o)throw new TypeError(e+c);for(var s,f=a(arguments,1),u=function(){if(this instanceof s){var e=c.apply(this,i(f,arguments));return Object(e)===e?e:this}return c.apply(t,i(f,arguments))},p=r(0,c.length-f.length),y=[],d=0;d<p;d++)y[d]="$"+d;if(s=Function("binder","return function ("+l(y,",")+"){ return binder.apply(this,arguments); }")(u),c.prototype){var h=function(){};h.prototype=c.prototype,s.prototype=new h,h.prototype=null}return s}},83682:function(t,e,n){var r=n(52602);t.exports=Function.prototype.bind||r},5072:function(t,e,n){var r;n(16573),n(78100),n(77936),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(37467),n(44732),n(79577);var o=n(24302),i=n(61334),a=n(55619),l=n(44671),c=n(84195),s=n(19340),f=n(81868),u=Function,p=function(t){try{return u('"use strict"; return ('+t+").constructor;")()}catch(e){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(C){y=null}var d=function(){throw new s},h=y?function(){try{return d}catch(t){try{return y(arguments,"callee").get}catch(e){return d}}}():d,g=n(88374)(),m=n(61333)(),w=Object.getPrototypeOf||(m?function(t){return t.__proto__}:null),v={},A="undefined"!==typeof Uint8Array&&w?w(Uint8Array):r,x={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&w?w([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":v,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&w?w(w([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&w?w((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&w?w((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&w?w(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":h,"%TypedArray%":A,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(w)try{null.error}catch(C){var b=w(w(C));x["%Error.prototype%"]=b}var P=function t(e){var n;if("%AsyncFunction%"===e)n=p("async function () {}");else if("%GeneratorFunction%"===e)n=p("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=p("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&w&&(n=w(o.prototype))}return x[e]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=n(83682),E=n(51866),F=S.call(Function.call,Array.prototype.concat),I=S.call(Function.apply,Array.prototype.splice),O=S.call(Function.call,String.prototype.replace),T=S.call(Function.call,String.prototype.slice),U=S.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,D=function(t){var e=T(t,0,1),n=T(t,-1);if("%"===e&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return O(t,k,(function(t,e,n,o){r[r.length]=n?O(o,B,"$1"):e||t})),r},L=function(t,e){var n,r=t;if(E(R,r)&&(n=R[r],r="%"+n[0]+"%"),E(x,r)){var o=x[r];if(o===v&&(o=P(r)),"undefined"===typeof o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=D(t),r=n.length>0?n[0]:"",o=L("%"+r+"%",e),i=o.name,a=o.value,l=!1,f=o.alias;f&&(r=f[0],I(n,F([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var d=n[u],h=T(d,0,1),g=T(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),r+="."+d,i="%"+r+"%",E(x,i))a=x[i];else if(null!=a){if(!(d in a)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(y&&u+1>=n.length){var m=y(a,d);p=!!m,a=p&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else p=E(a,d),a=a[d];p&&!l&&(x[i]=a)}}return a}},59196:function(t,e,n){n.d(e,{UE:function(){return Bt},ll:function(){return It},rD:function(){return Dt},__:function(){return Ot},UU:function(){return kt},cY:function(){return Tt},BN:function(){return Ut}});const r=Math.min,o=Math.max,i=Math.round,a=Math.floor,l=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function f(t,e,n){return o(t,r(e,n))}function u(t,e){return"function"===typeof t?t(e):t}function p(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(p(t))?"y":"x"}function m(t){return d(g(t))}function w(t,e,n){void 0===n&&(n=!1);const r=y(t),o=m(t),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=P(a)),[a,P(a)]}function v(t){const e=P(t);return[A(t),e,A(e)]}function A(t){return t.replace(/start|end/g,(t=>s[t]))}function x(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:a;default:return[]}}function b(t,e,n,r){const o=y(t);let i=x(p(t),"start"===n,r);return o&&(i=i.map((t=>t+"-"+o)),e&&(i=i.concat(i.map(A)))),i}function P(t){return t.replace(/left|right|bottom|top/g,(t=>c[t]))}function R(t){return{top:0,right:0,bottom:0,left:0,...t}}function S(t){return"number"!==typeof t?R(t):{top:t,right:t,bottom:t,left:t}}function E(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}n(44114);function F(t,e,n){let{reference:r,floating:o}=t;const i=g(e),a=m(e),l=h(a),c=p(e),s="y"===i,f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let w;switch(c){case"top":w={x:f,y:r.y-o.height};break;case"bottom":w={x:f,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:u};break;case"left":w={x:r.x-o.width,y:u};break;default:w={x:r.x,y:r.y}}switch(y(e)){case"start":w[a]-=d*(n&&s?-1:1);break;case"end":w[a]+=d*(n&&s?-1:1);break}return w}const I=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=F(s,r,c),p=r,y={},d=0;for(let h=0;h<l.length;h++){const{name:n,fn:i}=l[h],{x:g,y:m,data:w,reset:v}=await i({x:f,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:s,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=m?m:u,y={...y,[n]:{...y[n],...w}},v&&d<=50&&(d++,"object"===typeof v&&(v.placement&&(p=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:f,y:u}=F(s,p,c))),h=-1)}return{x:f,y:u,placement:p,strategy:o,middlewareData:y}};async function O(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:y=!1,padding:d=0}=u(e,t),h=S(d),g="floating"===p?"reference":"floating",m=l[y?g:p],w=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:c})),v="floating"===p?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(A))&&await(null==i.getScale?void 0:i.getScale(A))||{x:1,y:1},b=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:A,strategy:c}):v);return{top:(w.top-b.top+h.top)/x.y,bottom:(b.bottom-w.bottom+h.bottom)/x.y,left:(w.left-b.left+h.left)/x.x,right:(b.right-w.right+h.right)/x.x}}const T=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:a,platform:l,elements:c,middlewareData:s}=e,{element:p,padding:d=0}=u(t,e)||{};if(null==p)return{};const g=S(d),w={x:n,y:o},v=m(i),A=h(v),x=await l.getDimensions(p),b="y"===v,P=b?"top":"left",R=b?"bottom":"right",E=b?"clientHeight":"clientWidth",F=a.reference[A]+a.reference[v]-w[v]-a.floating[A],I=w[v]-a.reference[v],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(p));let T=O?O[E]:0;T&&await(null==l.isElement?void 0:l.isElement(O))||(T=c.floating[E]||a.floating[A]);const U=F/2-I/2,k=T/2-x[A]/2-1,B=r(g[P],k),D=r(g[R],k),L=B,C=T-x[A]-D,_=T/2-x[A]/2+U,M=f(L,_,C),W=!s.arrow&&null!=y(i)&&_!==M&&a.reference[A]/2-(_<L?B:D)-x[A]/2<0,N=W?_<L?_-L:_-C:0;return{[v]:w[v]+N,data:{[v]:M,centerOffset:_-M-N,...W&&{alignmentOffset:N}},reset:W}}});const U=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:s}=e,{mainAxis:f=!0,crossAxis:y=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:A=!0,...x}=u(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const R=p(o),S=g(l),E=p(l)===l,F=await(null==c.isRTL?void 0:c.isRTL(s.floating)),I=d||(E||!A?[P(l)]:v(l)),T="none"!==m;!d&&T&&I.push(...b(l,A,m,F));const U=[l,...I],k=await O(e,x),B=[];let D=(null==(r=i.flip)?void 0:r.overflows)||[];if(f&&B.push(k[R]),y){const t=w(o,a,F);B.push(k[t[0]],k[t[1]])}if(D=[...D,{placement:o,overflows:B}],!B.every((t=>t<=0))){var L,C;const t=((null==(L=i.flip)?void 0:L.index)||0)+1,e=U[t];if(e)return{data:{index:t,overflows:D},reset:{placement:e}};let n=null==(C=D.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var _;const t=null==(_=D.filter((t=>{if(T){const e=g(t.placement);return e===S||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:_[0];t&&(n=t);break}case"initialPlacement":n=l;break}if(o!==n)return{reset:{placement:n}}}return{}}}};async function k(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),l=y(n),c="y"===g(n),s=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,d=u(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:w}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"===typeof w&&(m="end"===l?-1*w:w),c?{x:m*f,y:h*s}:{x:h*s,y:m*f}}const B=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=e,c=await k(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},D=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=u(t,e),s={x:n,y:r},y=await O(e,c),h=g(p(o)),m=d(h);let w=s[m],v=s[h];if(i){const t="y"===m?"top":"left",e="y"===m?"bottom":"right",n=w+y[t],r=w-y[e];w=f(n,w,r)}if(a){const t="y"===h?"top":"left",e="y"===h?"bottom":"right",n=v+y[t],r=v-y[e];v=f(n,v,r)}const A=l.fn({...e,[m]:w,[h]:v});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[m]:i,[h]:a}}}}}};function L(){return"undefined"!==typeof window}function C(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function M(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!L()&&(t instanceof Node||t instanceof _(t).Node)}function N(t){return!!L()&&(t instanceof Element||t instanceof _(t).Element)}function j(t){return!!L()&&(t instanceof HTMLElement||t instanceof _(t).HTMLElement)}function G(t){return!(!L()||"undefined"===typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof _(t).ShadowRoot)}function V(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function H(t){return["table","td","th"].includes(C(t))}function z(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function J(t){const e=q(),n=N(t)?X(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function $(t){let e=Q(t);while(j(e)&&!Y(e)){if(J(e))return e;if(z(e))return null;e=Q(e)}return null}function q(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Y(t){return["html","body","#document"].includes(C(t))}function X(t){return _(t).getComputedStyle(t)}function K(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if("html"===C(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||M(t);return G(e)?e.host:e}function Z(t){const e=Q(t);return Y(e)?t.ownerDocument?t.ownerDocument.body:t.body:j(e)&&V(e)?e:Z(e)}function tt(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=Z(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),a=_(o);if(i){const t=et(a);return e.concat(a,a.visualViewport||[],V(o)?o:[],t&&n?tt(t):[])}return e.concat(o,tt(o,[],n))}function et(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nt(t){const e=X(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=j(t),a=o?t.offsetWidth:n,l=o?t.offsetHeight:r,c=i(n)!==a||i(r)!==l;return c&&(n=a,r=l),{width:n,height:r,$:c}}function rt(t){return N(t)?t:t.contextElement}function ot(t){const e=rt(t);if(!j(e))return l(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:a}=nt(e);let c=(a?i(n.width):n.width)/r,s=(a?i(n.height):n.height)/o;return c&&Number.isFinite(c)||(c=1),s&&Number.isFinite(s)||(s=1),{x:c,y:s}}const it=l(0);function at(t){const e=_(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:it}function lt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==_(t))&&e}function ct(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=rt(t);let a=l(1);e&&(r?N(r)&&(a=ot(r)):a=ot(t));const c=lt(i,n,r)?at(i):l(0);let s=(o.left+c.x)/a.x,f=(o.top+c.y)/a.y,u=o.width/a.x,p=o.height/a.y;if(i){const t=_(i),e=r&&N(r)?_(r):r;let n=t,o=et(n);while(o&&r&&e!==n){const t=ot(o),e=o.getBoundingClientRect(),r=X(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,f*=t.y,u*=t.x,p*=t.y,s+=i,f+=a,n=_(o),o=et(n)}}return E({width:u,height:p,x:s,y:f})}function st(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i="fixed"===o,a=M(r),c=!!e&&z(e.floating);if(r===a||c&&i)return n;let s={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),p=j(r);if((p||!p&&!i)&&(("body"!==C(r)||V(a))&&(s=K(r)),j(r))){const t=ct(r);f=ot(r),u.x=t.x+r.clientLeft,u.y=t.y+r.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-s.scrollLeft*f.x+u.x,y:n.y*f.y-s.scrollTop*f.y+u.y}}function ft(t){return Array.from(t.getClientRects())}function ut(t,e){const n=K(t).scrollLeft;return e?e.left+n:ct(M(t)).left+n}function pt(t){const e=M(t),n=K(t),r=t.ownerDocument.body,i=o(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=o(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ut(t);const c=-n.scrollTop;return"rtl"===X(r).direction&&(l+=o(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:l,y:c}}function yt(t,e){const n=_(t),r=M(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const t=q();(!t||t&&"fixed"===e)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}function dt(t,e){const n=ct(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=j(t)?ot(t):l(1),a=t.clientWidth*i.x,c=t.clientHeight*i.y,s=o*i.x,f=r*i.y;return{width:a,height:c,x:s,y:f}}function ht(t,e,n){let r;if("viewport"===e)r=yt(t,n);else if("document"===e)r=pt(M(t));else if(N(e))r=dt(e,n);else{const n=at(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return E(r)}function gt(t,e){const n=Q(t);return!(n===e||!N(n)||Y(n))&&("fixed"===X(n).position||gt(n,e))}function mt(t,e){const n=e.get(t);if(n)return n;let r=tt(t,[],!1).filter((t=>N(t)&&"body"!==C(t))),o=null;const i="fixed"===X(t).position;let a=i?Q(t):t;while(N(a)&&!Y(a)){const e=X(a),n=J(a);n||"fixed"!==e.position||(o=null);const l=i?!n&&!o:!n&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||V(a)&&!n&&gt(t,a);l?r=r.filter((t=>t!==a)):o=e,a=Q(a)}return e.set(t,r),r}function wt(t){let{element:e,boundary:n,rootBoundary:i,strategy:a}=t;const l="clippingAncestors"===n?z(e)?[]:mt(e,this._c):[].concat(n),c=[...l,i],s=c[0],f=c.reduce(((t,n)=>{const i=ht(e,n,a);return t.top=o(i.top,t.top),t.right=r(i.right,t.right),t.bottom=r(i.bottom,t.bottom),t.left=o(i.left,t.left),t}),ht(e,s,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function vt(t){const{width:e,height:n}=nt(t);return{width:e,height:n}}function At(t,e,n){const r=j(e),o=M(e),i="fixed"===n,a=ct(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const s=l(0);if(r||!r&&!i)if(("body"!==C(e)||V(o))&&(c=K(e)),r){const t=ct(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else o&&(s.x=ut(o));let f=0,u=0;if(o&&!r&&!i){const t=o.getBoundingClientRect();u=t.top+c.scrollTop,f=t.left+c.scrollLeft-ut(o,t)}const p=a.left+c.scrollLeft-s.x-f,y=a.top+c.scrollTop-s.y-u;return{x:p,y:y,width:a.width,height:a.height}}function xt(t){return"static"===X(t).position}function bt(t,e){if(!j(t)||"fixed"===X(t).position)return null;if(e)return e(t);let n=t.offsetParent;return M(t)===n&&(n=n.ownerDocument.body),n}function Pt(t,e){const n=_(t);if(z(t))return n;if(!j(t)){let e=Q(t);while(e&&!Y(e)){if(N(e)&&!xt(e))return e;e=Q(e)}return n}let r=bt(t,e);while(r&&H(r)&&xt(r))r=bt(r,e);return r&&Y(r)&&xt(r)&&!J(r)?n:r||$(t)||n}const Rt=async function(t){const e=this.getOffsetParent||Pt,n=this.getDimensions,r=await n(t.floating);return{reference:At(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function St(t){return"rtl"===X(t).direction}const Et={convertOffsetParentRelativeRectToViewportRelativeRect:st,getDocumentElement:M,getClippingRect:wt,getOffsetParent:Pt,getElementRects:Rt,getClientRects:ft,getDimensions:vt,getScale:ot,isElement:N,isRTL:St};function Ft(t,e){let n,i=null;const l=M(t);function c(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}function s(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),c();const{left:p,top:y,width:d,height:h}=t.getBoundingClientRect();if(f||e(),!d||!h)return;const g=a(y),m=a(l.clientWidth-(p+d)),w=a(l.clientHeight-(y+h)),v=a(p),A=-g+"px "+-m+"px "+-w+"px "+-v+"px",x={rootMargin:A,threshold:o(0,r(1,u))||1};let b=!0;function P(t){const e=t[0].intersectionRatio;if(e!==u){if(!b)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}b=!1}try{i=new IntersectionObserver(P,{...x,root:l.ownerDocument})}catch(R){i=new IntersectionObserver(P,x)}i.observe(t)}return s(!0),c}function It(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:c=!1}=r,s=rt(t),f=o||i?[...s?tt(s):[],...tt(e)]:[];f.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const u=s&&l?Ft(s,n):null;let p,y=-1,d=null;a&&(d=new ResizeObserver((t=>{let[r]=t;r&&r.target===s&&d&&(d.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),s&&!c&&d.observe(s),d.observe(e));let h=c?ct(t):null;function g(){const e=ct(t);!h||e.x===h.x&&e.y===h.y&&e.width===h.width&&e.height===h.height||n(),h=e,p=requestAnimationFrame(g)}return c&&g(),n(),()=>{var t;f.forEach((t=>{o&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=d)||t.disconnect(),d=null,c&&cancelAnimationFrame(p)}}const Ot=O,Tt=B,Ut=D,kt=U,Bt=T,Dt=(t,e,n)=>{const r=new Map,o={platform:Et,...n},i={...o.platform,_c:r};return I(t,e,{...o,platform:i})}}}]);
//# sourceMappingURL=astroai-3577.1730088201596.js.map