PageSourceSearch

https://cdn.jabama.com/static/_next/static/chunks/0zj4x8uq4gmgs.js

js jabama.com collected 2026-10-02 18:12:14 UTC 128,257 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8230542f-fc22-386d-6ad0-76ac5a7d2690")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,880269,210242,825339,501583,e=>{"use strict";let t;function n(){return"u">typeof window}function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!n()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!n()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!n()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=x(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function f(e){return/^(table|td|th)$/.test(r(e))}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let p=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,h=e=>!!e&&"none"!==e;function g(e){let t=a(e)?x(e):e;return h(t.transform)||h(t.translate)||h(t.scale)||h(t.rotate)||h(t.perspective)||!v()&&(h(t.backdropFilter)||h(t.filter))||p.test(t.willChange||"")||m.test(t.contain||"")}function y(e){let t=S(e);for(;s(t)&&!b(t);){if(g(t))return t;if(d(t))break;t=S(t)}return null}function v(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function b(e){return/^(html|body|#document)$/.test(r(e))}function x(e){return i(e).getComputedStyle(e)}function w(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function S(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function T(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=S(t);return b(n)?(t.ownerDocument||t).body:s(n)&&c(n)?n:e(n)}(e),l=o===(null==(r=e.ownerDocument)?void 0:r.body),a=i(o);if(!l)return t.concat(o,T(o,[],n));{let e=E(a);return t.concat(a,a.visualViewport||[],c(o)?o:[],e&&n?T(e):[])}}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,x,"getContainingBlock",0,y,"getDocumentElement",0,o,"getFrameElement",0,E,"getNodeName",0,r,"getNodeScroll",0,w,"getOverflowAncestors",0,T,"getParentNode",0,S,"getWindow",0,i,"isContainingBlock",0,g,"isElement",0,a,"isHTMLElement",0,s,"isLastTraversableNode",0,b,"isNode",0,l,"isOverflowElement",0,c,"isShadowRoot",0,u,"isTableElement",0,f,"isTopLayer",0,d,"isWebKit",0,v],880269);let A=["top","right","bottom","left"],R=A.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),O=Math.min,C=Math.max,k=Math.round,I=Math.floor,P=e=>({x:e,y:e}),M={left:"right",right:"left",bottom:"top",top:"bottom"};function N(e,t,n){return C(e,O(t,n))}function _(e,t){return"function"==typeof e?e(t):e}function D(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function F(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function z(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function H(e){return F(z(e))}function U(e,t,n){void 0===n&&(n=!1);let r=L(e),i=H(e),o=j(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=X(l)),[l,X(l)]}function W(e){let t=X(e);return[B(e),t,B(t)]}function B(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let $=["left","right"],Y=["right","left"],V=["top","bottom"],G=["bottom","top"];function q(e,t,n,r){let i=L(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Y:$;return t?$:Y;case"left":case"right":return t?V:G;default:return[]}}(D(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(B)))),o}function X(e){let t=D(e);return M[t]+e.slice(t.length)}function K(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function Z(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function J(e,t,n){let r,{reference:i,floating:o}=e,l=z(t),a=H(t),s=j(a),u=D(t),c=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,d=i[s]/2-o[s]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}let p=L(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function Q(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=_(t,e),m=K(p),h=a[d?"floating"===f?"reference":"floating":f],g=Z(await o.getClippingRect
2({element:null==(n=await (null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},x=Z(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:s}):y);return{top:(g.top-x.top+m.top)/b.y,bottom:(x.bottom-g.bottom+m.bottom)/b.y,left:(g.left-x.left+m.left)/b.x,right:(x.right-g.right+m.right)/b.x}}e.s(["clamp",0,N,"createCoords",0,P,"evaluate",0,_,"floor",0,I,"getAlignment",0,L,"getAlignmentAxis",0,H,"getAlignmentSides",0,U,"getAxisLength",0,j,"getExpandedPlacements",0,W,"getOppositeAlignmentPlacement",0,B,"getOppositeAxis",0,F,"getOppositeAxisPlacements",0,q,"getOppositePlacement",0,X,"getPaddingObject",0,K,"getSide",0,D,"getSideAxis",0,z,"max",0,C,"min",0,O,"placements",0,R,"rectToClientRect",0,Z,"round",0,k,"sides",0,A],210242);let ee=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Q},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=J(u,r,s),d=r,p=0,m={};for(let n=0;n<o.length;n++){let h=o[n];if(!h)continue;let{name:g,fn:y}=h,{x:v,y:b,data:x,reset:w}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=b?b:f,m[g]={...m[g],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=J(u,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:m}};function et(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function en(e){return A.some(t=>e[t]>=0)}function er(e){let t=O(...e.map(e=>e.left)),n=O(...e.map(e=>e.top));return{x:t,y:n,width:C(...e.map(e=>e.right))-t,height:C(...e.map(e=>e.bottom))-n}}let ei=new Set(["left","top"]);async function eo(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=D(n),a=L(n),s="y"===z(n),u=ei.has(l)?-1:1,c=o&&s?-1:1,f=_(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function el(e){let t=x(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=s(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=k(n)!==o||k(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function ea(e){return a(e)?e:e.contextElement}function es(e){let t=ea(e);if(!s(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=el(t),l=(o?k(n.width):n.width)/r,a=(o?k(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eu=P(0);function ec(e){let t=i(e);return v()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function ef(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),s=ea(e),u=P(1);t&&(r?a(r)&&(u=es(r)):u=es(e));let c=(void 0===(o=n)&&(o=!1),r&&o&&r===i(s))?ec(s):P(0),f=(l.left+c.x)/u.x,d=(l.top+c.y)/u.y,p=l.width/u.x,m=l.height/u.y;if(s&&r){let e=i(s),t=a(r)?i(r):r,n=e,o=E(n);for(;o&&t!==n;){let e=es(o),t=o.getBoundingClientRect(),r=x(o),l=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,p*=e.x,m*=e.y,f+=l,d+=a,o=E(n=i(o))}}return Z({width:p,height:m,x:f,y:d})}function ed(e,t){let n=w(e).scrollLeft;return t?t.left+n:ef(o(e)).left+n}function ep(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function em(e,t,n){var r;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,n){void 0===n&&(n="viewport");
2let r="layoutViewport"===n,l=i(e),a=o(e),s=l.visualViewport,u=a.clientWidth,c=a.clientHeight,f=0,d=0;if(s){let e=!v()||"fixed"===t;r?e||(f=-s.offsetLeft,d=-s.offsetTop):(u=s.width,c=s.height,e&&(f=s.offsetLeft,d=s.offsetTop))}if(0>=ed(a)){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(a).scrollbarGutter?i/2:i;o<=25&&(u-=o)}return{width:u,height:c,x:f,y:d}}(e,n,t);else if("document"===t){let t,n,i,a,s,u;t=w(r=o(e)),n=r.ownerDocument.body,i=C(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=C(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+ed(r),u=-t.scrollTop,"rtl"===x(n).direction&&(s+=C(r.clientWidth,n.clientWidth)-i),l={width:i,height:a,x:s,y:u}}else if(a(t)){let e,r,i,o,a,s;r=(e=ef(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,o=es(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:a,height:s,x:i*o.x,y:r*o.y}}else{let n=ec(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Z(l)}function eh(e){return"static"===x(e).position}function eg(e,t){if(!s(e)||"fixed"===x(e).position)return null;if(t)return t(e);let n=e.offsetParent;return o(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){let n=i(e);if(d(e))return n;if(!s(e)){let t=S(e);for(;t&&!b(t);){if(a(t)&&!eh(t))return t;t=S(t)}return n}let r=eg(e,t);for(;r&&f(r)&&eh(r);)r=eg(r,t);return r&&b(r)&&eh(r)&&!g(r)?n:r||y(e)||n}let ev=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=s(t),l=o(t),a="fixed"===n,u=ef(e,!0,a,t),f={scrollLeft:0,scrollTop:0},d=P(0);if((i||!a)&&(("body"!==r(t)||c(l))&&(f=w(t)),i)){let e=ef(t,!0,a,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}!i&&l&&(d.x=ed(l));let p=!l||i||a?P(0):ep(l,f);return{x:u.left+f.scrollLeft-d.x-p.x,y:u.top+f.scrollTop-d.y-p.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:l}=e,a="fixed"===l,u=o(i),f=!!t&&d(t.floating);if(i===u||f&&a)return n;let p={scrollLeft:0,scrollTop:0},m=P(1),h=P(0),g=s(i);if((g||!a)&&(("body"!==r(i)||c(u))&&(p=w(i)),g)){let e=ef(i);m=es(i),h.x=e.x+i.clientLeft,h.y=e.y+i.clientTop}let y=!u||g||a?P(0):ep(u,p);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-p.scrollLeft*m.x+h.x+y.x,y:n.y*m.y-p.scrollTop*m.y+h.y+y.y}},getDocumentElement:o,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e,l=[..."clippingAncestors"===n?d(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=T(e,[],!1).filter(e=>a(e)&&"body"!==r(e)),o=null,l="fixed"===x(e).position,s=l?S(e):e;for(;a(s)&&!b(s);){let e=x(s),t=g(s),n=o?o.position:l?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:i=i.filter(e=>e!==s),s=S(s)}return t.set(e,i),i}(t,this._c):[].concat(n),i],s=em(t,l[0],o),u=s.top,c=s.right,f=s.bottom,p=s.left;for(let e=1;e<l.length;e++){let n=em(t,l[e],o);u=C(n.top,u),c=O(n.right,c),f=O(n.bottom,f),p=C(n.left,p)}return{width:c-p,height:f-u,x:p,y:u}},getOffsetParent:ey,getElementRects:ev,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=el(e);return{width:t,height:n}},getScale:es,isElement:a,isRTL:function(e){return"rtl"===x(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await eo(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},eS=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=_(e,t),c={x:n,y:r},f=await o.detectOverflow(t,u),d=z(i),p=F(d),m=c[p],h=c[d],g=(e,t)=>N(t+f["y"===e?"top":"left"],t,t-f["y"===e?"bottom":"right"]);l&&(m=g(p,m)),a&&(h=g(d,h));let y=s.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:l,[d]:a}}}}}},eT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=_(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let x=D(a),w=z(c),S=D(c)===c,T=await (null==f.isRTL?void 0:f.isRTL(d.floating)),E=h||(S||!v?[X(c)]:W(c)),A="none"!==y;!h&&A&&E.push(...q(c,v,y,T));let R=[c,...E],O=await f.detectOverflow(t,b),C=[],k=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&C.push(O[x]),m){let e=U(a,u,T);C.push(O[e[0]],O[e[1]])}if(k=[...k,{placement:a,overflows:C}],!C.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=R[e];if(t&&("alignment"!==m||w===z(t)||k.every(e=>z(e.placement)!==w||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(o=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=k.filter(e=>{if(A){let t=z(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},eE=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:i,rects:o,platform:l,elements:a}=t,{apply:s=()=>{},...u}=_(e,t),c=await l.detectOverflow(t,u),f=D(i),d=L(i),p="y"===z(i),{width:m,height:h}=o.floating;"top"===f||"bottom"===f?(n=f,r=d===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,n="end"===d?"top":"bottom");let g=h-c.top-c.bottom,y=m-c.left-c.right,v=O(h-c[n],g),b=O(m-c[r],y),x=t.middlewareData.shift,w=!x,S=v,T=b;null!=x&&x.enabled.x&&(T=y),null!=x&&x.enabled.y&&(S=g),w&&!d&&(p?T=m-2*C(c.left,c.right):S=h-2*C(c.top,c.bottom)),await s({...t,availableWidth:T,availableHeight:S});let E=await l.getDimensions(a.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}},eA=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=_(e,t);switch(i){case"referenceHidden":{let e=et(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:en(e)}}}case"escaped":{let e=et(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:en(e)}}}default:return{}}}}},eR=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=_(e,t)||{};if(null==u)return{};let f=K(c),d={x:n,y:r},p=H(i),m=j(p),h=await l.getDimensions(u),g="y"===p,y=g?"clientHeight":"clientWidth",v=o.reference[m]+o.reference[p]-d[p]-o.floating[m],b=d[p]-o.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),w=x?x[y]:0;w&&await (null==l.isElement?void 0:l.isElement(x))||(w=a.floating[y]||o.floating[m]);let S=w/2-h[m]/2-1,T=O(f[g?"top":"left"],S),E=O(f[g?"bottom":"right"],S),A=w-h[m]-E,R=w/2-h[m]/2+(v/2-b/2),C=N(T,R,A),k=!s.arrow&&null!=L(i)&&R!==C&&o.reference[m]/2-(R<T?T:E)-h[m]/2<0,I=k?R<T?R-T:R-A:0;return{[p]:d[p]+I,data:{[p]:C,centerOffset:R-C-I,...k&&{alignmentOffset:I}},reset:k}}}),eO=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:l,y:a,placement:s,rects:u,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=_(e,t),m={x:l,y:a},h=z(s),g=F(h),y=m[g],v=m[h],b=_(f,t),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(n=b.mainAxis)?n:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(d){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+x.mainAxis,n=u.reference[g]+u.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(p){let e="y"===g?"width":"height",t=ei.has(D(s)),n=u.reference[h]-u.floating[e]+(t&&(null==(i=c.offset)?void 0:i[h])||0)+(t?0:x.crossAxis),r=u.reference[h]+u.reference[e]+(t?0:(null==(o=c.offset)?void 0:o[h])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:y,[h]:v}}}},eC=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...eb,...i.platform,_c:r};return ee(e,t,{...i,platform:o})};e.s(["arrow",0,eR,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i,o;let{rects:l,middlewareData:a,placement:s,platform:u,elements:c}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:p=R,autoAlignment:m=!0,...h}=_(e,t),g=void 0!==d||p===R?((o=d||null)?[...p.filter(e=>L(e)===o),...p.filter(e=>L(e)!==o)]:p.filter(e=>D(e)===e)).filter(e=>!o||L(e)===o||!!m&&B(e)!==e):p,y=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=g[y];if(null==v)return{};if(s!==v)return{reset:{placement:g[0]}};let b=await u.detectOverflow(t,h),x=U(v,l,await (null==u.isRTL?void 0:u.isRTL(c.floating))),w=[b[D(v)],b[x[0]],b[x[1]]],S=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:w}],T=g[y+1];if(T)return{data:{index:y+1,overflows:S},reset:{placement:T}};let E=S.map(e=>{let t=L(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>
2e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),A=(null==(i=E.filter(e=>e[2].slice(0,L(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||E[0][0];return A!==s?{data:{index:y+1,overflows:S},reset:{placement:A}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,d=ea(e),p=a||s?[...d?T(d):[],...t?T(t):[]]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});let m=d&&c?function(e,t,n){let r,l=null,a=o(e);function s(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function u(n,i){void 0===n&&(n=!1),void 0===i&&(i=1),s();let o=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=o;if(n||t(),!d||!p)return;let m={rootMargin:-I(f)+"px "+-I(a.clientWidth-(c+d))+"px "+-I(a.clientHeight-(f+p))+"px "+-I(c)+"px",threshold:C(0,O(1,i))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(!ex(o,e.getBoundingClientRect()))return u();if(n!==i){if(!h)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}h=!1}try{l=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(e){l=new IntersectionObserver(g,m)}l.observe(e)}let c=i(e),f=()=>u(n);return c.addEventListener("resize",f),u(!0),()=>{c.removeEventListener("resize",f),s()}}(d,n,s):null,h=-1,g=null;u&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!f&&g.observe(d),t&&g.observe(t));let y=f?ef(e):null;return f&&function t(){let r=ef(e);y&&!ex(y,r)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(l)}},"computePosition",0,eC,"flip",0,eT,"hide",0,eA,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:o,strategy:l}=t,{padding:a=2,x:s,y:u}=_(e,t),c=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]);if(!c.length)return{};let f=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Z(er(e)))}(c),d=Z(er(c)),p=K(a),m=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&(f[0].left>f[1].right||f[1].left>f[0].right)&&null!=s&&null!=u)return f.find(e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)||d;if(f.length>=2){if("y"===z(n)){let e=f[0],t=f[f.length-1],r="top"===D(n),i=e.top,o=t.bottom,l=r?e.left:t.left;return Z({x:l,y:i,width:(r?e.right:t.right)-l,height:o-i})}let e="left"===D(n),t=C(...f.map(e=>e.right)),r=O(...f.map(e=>e.left)),i=f.filter(n=>e?n.left===r:n.right===t),o=i[0].top;return Z({x:r,y:o,width:t-r,height:i[i.length-1].bottom-o})}return d}},floating:r.floating,strategy:l});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},"limitShift",0,eO,"offset",0,ew,"shift",0,eS,"size",0,eE],825339);var ek=e.i(417999),eI=e.i(866444),eP="u">typeof document?ek.useLayoutEffect:function(){};function eM(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eM(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eN(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let n=eN(e);return Math.round(t*n)/n}function eD(e){let t=ek.useRef(e);return eP(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eR({element:n.current,padding:r}).fn(t):{}:n?eR({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=eT(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=eA(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eO(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=ew(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=eS(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=eE(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[c,f]=ek.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}
2),[d,p]=ek.useState(r);eM(d,r)||p(r);let[m,h]=ek.useState(null),[g,y]=ek.useState(null),v=ek.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),b=ek.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),x=o||m,w=l||g,S=ek.useRef(null),T=ek.useRef(null),E=ek.useRef(c),A=null!=s,R=eD(s),O=eD(i),C=eD(u),k=ek.useCallback(()=>{if(!S.current||!T.current)return;let e={placement:t,strategy:n,middleware:d};O.current&&(e.platform=O.current),eC(S.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==C.current};I.current&&!eM(E.current,t)&&(E.current=t,eI.flushSync(()=>{f(t)}))})},[d,t,n,O,C]);eP(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let I=ek.useRef(!1);eP(()=>(I.current=!0,()=>{I.current=!1}),[]),eP(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(R.current)return R.current(x,w,k);k()}},[x,w,k,R,A]);let P=ek.useMemo(()=>({reference:S,floating:T,setReference:v,setFloating:b}),[v,b]),M=ek.useMemo(()=>({reference:x,floating:w}),[x,w]),N=ek.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=e_(M.floating,c.x),r=e_(M.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eN(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,c.x,c.y]);return ek.useMemo(()=>({...c,update:k,refs:P,elements:M,floatingStyles:N}),[c,k,P,M,N])}],501583)},130562,(e,t,n)=>{"use strict";var r=e.r(417999),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},745549,(e,t,n)=>{"use strict";t.exports=e.r(130562)},871667,(e,t,n)=>{"use strict";var r=e.r(417999),i=e.r(745549),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,a=r.useRef,s=r.useEffect,u=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=a(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=l(e,(f=u(function(){function e(e){if(!s){if(s=!0,l=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return a=t}return a=e}if(t=a,o(l,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(l=e,t):(l=e,a=n)}var l,a,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},127337,(e,t,n)=>{"use strict";t.exports=e.r(871667)},68051,853607,809937,200622,911686,981090,114396,832817,675007,595410,222769,617506,67019,305478,804704,247810,288019,479995,722348,744267,47334,300441,782486,816045,196630,473361,26522,274172,166506,654975,11902,903826,907153,364598,42237,399417,132074,672487,914554,548740,591475,601132,45527,907531,32677,397252,e=>{"use strict";let t;e.s([],701913),e.i(701913),e.i(845310);var n,r,i,o,l,a=e.i(417999);let s=[];function u(e){a.useEffect(e,s)}let c={};function f(e,t){let n=a.useRef(c);return n.current===c&&(n.current=e(t)),n}e.s(["useRefWithInit",0,f],853607);let d="u">typeof document?a.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,d],809937);let p=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,p],200622);let m=a.createContext(void 0);function h(){let e=a.useContext(m);if(!e)throw Error(p(73));return e}var g=e.i(745549),y=e.i(127337);let v=parseInt(a.version,10),b=v>=19?function(e,n,r,i,o){let l;if(!t){let t;return t=a.useCallback(()=>n(e.getSnapshot(),r,i,o),[e,n,r,i,o]),(0,g.useSyncExternalStore)(e.subscribe,t,t)}let s=t.syncIndex;return t.syncIndex+=1,t.didInitialize?(l=t.syncHooks[s]).store===e&&l.selector===n&&Object.is(l.a1,r)&&Object.is(l.a2,i)&&Object.is(l.a3,o)||(l.store!==e&&(t.didChangeStore=!0),l.store=e,l.selector=n,l.a1=r,l.a2=i,l.a3
2=o,l.value=n(e.getSnapshot(),r,i,o)):(l={store:e,selector:n,a1:r,a2:i,a3:o,value:n(e.getSnapshot(),r,i,o)},t.syncHooks.push(l)),l.value}:function(e,t,n,r,i){return(0,y.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};function x(e,t,n,r,i){return b(e,t,n,r,i)}[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,g.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,x],911686);class w{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return x(this,e,t,n,r)}}e.s(["Store",0,w],981090);let S={...a},T=S.useInsertionEffect,E=T&&T!==S.useLayoutEffect?T:e=>e();function A(e){let t=f(R).current;return t.next=e,E(t.effect),t.trampoline}function R(){let e={next:void 0,callback:O,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function O(){}function C(){}e.s(["useStableCallback",0,A],114396);let k=Object.freeze([]),I=Object.freeze({});e.s(["EMPTY_ARRAY",0,k,"EMPTY_OBJECT",0,I,"NOOP",0,C],832817);class P extends w{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){a.useDebugValue(e);let n=this;d(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;d(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;d(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){a.useDebugValue(e);let n=this,r=void 0!==t;d(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return a.useDebugValue(e),x(this,this.selectors[e],t,n,r)}useContextCallback(e,t){a.useDebugValue(e);let n=A(t??C);this.context[e]=n}useStateSetter(e){let t=a.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}let M=(e,t,n,r,i,o,...l)=>{let a;if(l.length>0)throw Error(p(1));if(e&&t&&n&&r&&i&&o)a=(l,a,s,u)=>o(e(l,a,s,u),t(l,a,s,u),n(l,a,s,u),r(l,a,s,u),i(l,a,s,u),a,s,u);else if(e&&t&&n&&r&&i)a=(o,l,a,s)=>i(e(o,l,a,s),t(o,l,a,s),n(o,l,a,s),r(o,l,a,s),l,a,s);else if(e&&t&&n&&r)a=(i,o,l,a)=>r(e(i,o,l,a),t(i,o,l,a),n(i,o,l,a),o,l,a);else if(e&&t&&n)a=(r,i,o,l)=>n(e(r,i,o,l),t(r,i,o,l),i,o,l);else if(e&&t)a=(n,r,i,o)=>t(e(n,r,i,o),r,i,o);else if(e)a=e;else throw Error("Missing arguments");return a};e.s(["createSelector",0,M],675007);let N=0;function _(e){return N+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${N}`}function D(e){return e?.ownerDocument||document}e.s(["ownerDocument",0,D],595410);class L{static create(){return new L}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function F(){let e=f(L.create).current;return u(e.disposeEffect),e}function j(e,t){if("string"==typeof e)return{description:e};if("function"==typeof e){let n=e(t);return"string"==typeof n?{description:n}:n}return e}e.s(["Timeout",0,L,"useTimeout",0,F],222769);var z=e.i(880269);function H(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function U(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;
2if(n&&(0,z.isShadowRoot)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function W(e){return"composedPath"in e?e.composedPath()[0]:e.target}e.s(["activeElement",0,H,"contains",0,U,"getTarget",0,W],617506),e.s([],996411),e.i(996411);let{userAgent:B,platform:$,maxTouchPoints:Y}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},V=B.toLowerCase(),G=$.toLowerCase(),q=/^i(os$|p)/.test(G)||"macintel"===G&&Y>1,X="android",K=G===X||V.includes(X),Z=!q&&G.startsWith("mac"),J=G.startsWith("win"),Q=!K&&/^(linux|chrome os)/.test(G),ee=Z||q;e.s(["android",0,K,"apple",0,ee,"ios",0,q,"linux",0,Q,"mac",0,Z,"windows",0,J],238080);var et=e.i(238080);let en="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),er=!en&&V.includes("firefox"),ei=!en&&V.includes("chrom");e.s(["blink",0,ei,"gecko",0,er,"webkit",0,en],194112);var eo=e.i(194112);e.s(["voiceOver",0,ee],340265);var el=e.i(340265);let ea=/jsdom|happydom/.test(V);e.s(["jsdom",0,ea],623199);var es=e.i(623199);e.s(["engine",0,eo,"env",0,es,"os",0,et,"screenReader",0,el],892437);var eu=e.i(892437);e.s(["platform",0,eu],67019);var eu=eu;let ec="data-base-ui-focusable",ef="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ed="ArrowLeft",ep="ArrowRight",em="ArrowUp",eh="ArrowDown";function eg(e){return(0,z.isHTMLElement)(e)&&e.matches(ef)}function ey(e){if(!e||eu.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function ev(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let o="ending"===e.transitionStatus;t.set(e.id,{value:e,domIndex:i,visibleIndex:o?-1:n,offsetY:r}),r+=e.height||0,o||(n+=1)}),t}function eb(e,t){let n=0;return e.map(e=>{if("ending"===e.transitionStatus)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}e.s(["ARROW_DOWN",0,eh,"ARROW_LEFT",0,ed,"ARROW_RIGHT",0,ep,"ARROW_UP",0,em,"FOCUSABLE_ATTRIBUTE",0,ec,"TYPEABLE_SELECTOR",0,ef],305478),e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(ec)?e:e.querySelector(`[${ec}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ef}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&eg(e)},"isTypeableElement",0,eg,"matchesFocusVisible",0,ey],804704);let ex=e=>e.toastMetadata,ew={toasts:M(e=>e.toasts),isEmpty:M(e=>0===e.toasts.length),toast:M(ex,(e,t)=>e.get(t)?.value),toastIndex:M(ex,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:M(ex,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:M(ex,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:M(e=>e.hovering),focused:M(e=>e.focused),expanded:M(e=>e.hovering||e.focused),expandedOrOutOfFocus:M(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:M(e=>e.prevFocusElement)};class eS extends P{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:ev(e.toasts)},{},ew)}setFocused(e){this.set("focused",e)}setHovering(e){this.set("hovering",e)}setIsWindowFocused(e){this.set("isWindowFocused",e)}setPrevFocusElement(e){this.set("prevFocusElement",e)}setViewport=e=>{this.set("viewport",e)};syncProviderProps(e){let t=this.state.limit!==e.limit;if(this.state.timeout===e.timeout&&!t)return;let n={timeout:e.timeout,limit:e.limit};if(t){let t=eb(this.state.toasts,e.limit);n.toasts=t,n.toastMetadata=ev(t)}this.update(n)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=ew.toastIndex(this.state,e);if(-1===n)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||_("toast");if(e.id){let t=ew.toast(this.state,e.id);if(t)if("ending"===t.transitionStatus)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}let i={...e,id:r,updateKey:0,transitionStatus:"starting"},o=[i,...this.state.toasts];this.setToasts(eb(o,n));let l=i.timeout??t;return"loading"!==i.type&&l>0&&this.scheduleTimer(r,l,()=>this.closeToast(r)),ew.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>
2{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,o=ew.toast(this.state,e)??null;if(!o||"ending"===o.transitionStatus)return;let l={...o,...t,...n.markUpdated&&{updateKey:(o.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?l:t));let a=l.timeout??r,s=o?.timeout??r,u=Object.hasOwn(t,"timeout"),c="ending"!==l.transitionStatus&&"loading"!==l.type&&a>0,f=this.timers.has(e),d=s!==a,p=o?.type==="loading";!c&&f?this.clearTimer(e):c&&(!f||d||u||p||n.resetTimer)&&(this.clearTimer(e),this.scheduleTimer(e,a,()=>this.closeToast(e)),ew.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t,n=void 0===e,{limit:r,toasts:i}=this.state;if(n)t=i,this.clearTimers();else{let n=ew.toast(this.state,e);if(!n)return;t=[n],this.clearTimer(e)}let o=eb(i.map(t=>n||t.id===e?{...t,transitionStatus:"ending",height:0}:t),r),l={toasts:o,toastMetadata:ev(o)};o.some(e=>"ending"!==e.transitionStatus)||(l.hovering=!1,l.focused=!1),this.update(l),t.forEach(e=>{"ending"!==e.transitionStatus&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=j(t.loading),r=this.addToast({...n,type:"loading"}),i=e.then(e=>{let n=j(t.success,e);return this.updateToast(r,{...n,type:"success",timeout:n.timeout}),e}).catch(e=>{let n=j(t.error,e);return this.updateToast(r,{...n,type:"error",timeout:n.timeout}),Promise.reject(e)});return({}).hasOwnProperty.call(t,"setPromise")&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=L.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if("touch"!==e.pointerType)return;let t=W(e);U(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!ew.expandedOrOutOfFocus(this.state),o=i?
2L.create():void 0;o?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:o,start:i?r:0,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){let t=this.timers.get(e);t?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){0===this.timers.size&&(this.areTimersPaused=!1)}setToasts(e){let t={toasts:e,toastMetadata:ev(e)};0===e.length&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=H(D(this.state.viewport));if(!this.state.viewport||!U(this.state.viewport,t)||!ey(t))return;if(void 0===e)return void this.restoreFocusToPrevElement();let n=ew.toasts(this.state),r=ew.toastIndex(this.state,e),i=null,o=r+1;for(;o<n.length;){if("ending"!==n[o].transitionStatus){i=n[o];break}o+=1}if(!i)for(o=r-1;o>=0;){if("ending"!==n[o].transitionStatus){i=n[o];break}o-=1}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}}var eT=e.i(148014);function eE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function eA(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}e.s(["addEventListener",0,eE],247810),e.s(["mergeCleanups",0,eA],288019);var eR=z;e.s(["ownerWindow",()=>eR.getWindow],479995);var eR=z;let eO={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},eC={...eO,position:"fixed",top:0,left:0},ek={...eO,position:"absolute"};e.s(["visuallyHidden",0,eC,"visuallyHiddenInput",0,ek],722348);var eu=eu;let eI=a.forwardRef(function(e,t){let[n,r]=a.useState();return d(()=>{eu.screenReader.voiceOver&&eu.engine.webkit&&r("button")},[]),(0,eT.jsx)("span",{...e,ref:t,style:eC,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})});function eP(e,t,n,r){var i,o,l,a,s;let u=f(eN).current;return i=u,o=e,l=t,a=n,s=r,(i.refs[0]!==o||i.refs[1]!==l||i.refs[2]!==a||i.refs[3]!==s)&&e_(u,[e,t,n,r]),u.callback}function eM(e){var t,n;let r=f(eN).current;return t=r,n=e,(t.refs.length!==n.length||t.refs.some((e,t)=>e!==n[t]))&&e_(r,e),r.callback}function eN(){return{callback:null,cleanup:null,refs:[]}}function e_(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}function eD(e){if(!a.isValidElement(e))return null;let t=e.props;return(v>=19?t?.ref:e.ref)??null}function eL(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}e.s(["FocusGuard",0,eI],744267),e.s(["useMergedRefs",0,eP,"useMergedRefsN",0,eM],47334);let eF={};function ej(e,t,n,r,i){if(!n&&!r&&!i&&!e)return eH(t);let o=eH(e);return t&&(o=eU(o,t)),n&&(o=eU(o,n)),r&&(o=eU(o,r)),i&&(o=eU(o,i)),o}function ez(e){if(0===e.length)return eF;if(1===e.length)return eH(e[0]);let t=eH(e[0]);for(let n=1;n<e.length;n+=1)t=eU(t,e[n]);return t}function eH(e){return eB(e)?{...e$(e,eF)}:function(e){let t={...e};for(let e in t){let n=t[e];eW(e,n)&&(t[e]=eY(n))}return t}(e)}function eU(e,t){return eB(t)?e$(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=eL(e.style,r);break;case"className":e[n]=eG(e.className,r);break;default:eW(n,r)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(eq(r)){eV(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:eY(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function eW(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function eB(e){return"function"==typeof e}function e$(e,t){return eB(e)?e(t):e??eF}function eY(e){return e?(...t)=>{let n=t[0];return eq(n)&&eV(n),e(...t)}:e}function eV(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function eG(e,t){return t?e?t+" "+e:t:e}function eq(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}function eX(e,t,n={}){let r=t.render,i=function(e,t={}){var n;let{className:r,style:i,render:o}=e,{state:l=I,ref:a,props:s,stateAttributesMapping:u,enabled:c=!0}
2=t,f=c?"function"==typeof r?r(l):r:void 0,d=c?"function"==typeof i?i(l):i:void 0,p=c?function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}(l,u):I,m=c&&s?Array.isArray(n=s)?ez(n):ej(void 0,n):void 0,h=c?eL(p,m)??{}:I;return("u">typeof document&&(c?Array.isArray(a)?h.ref=eM([h.ref,eD(o),...a]):h.ref=eP(h.ref,eD(o),a):eP(null,null)),c)?(void 0!==f&&(h.className=eG(h.className,f)),void 0!==d&&(h.style=eL(h.style,d)),h):I}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=ej(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===eK&&(i=a.Children.toArray(t)[0]),a.cloneElement(i,e)}if(e&&"string"==typeof e){var i,o;return i=e,o=n,"button"===i?(0,a.createElement)("button",{type:"button",...o,key:o.key}):"img"===i?(0,a.createElement)("img",{alt:"",...o,key:o.key}):a.createElement(i,o)}throw Error(p(8))}(e,r,i,n.state??I)}e.s(["makeEventPreventable",0,eV,"mergeClassNames",0,eG,"mergeProps",0,ej,"mergePropsN",0,ez],300441);let eK=Symbol.for("react.lazy");e.s(["useRenderElement",0,eX],782486);let eZ=((n={}).frontmostHeight="--toast-frontmost-height",n),eJ=a.forwardRef(function(e,t){let{render:n,className:r,style:i,children:o,...l}=e,s=h(),u=F(),c=a.useRef(!1),f=a.useRef(!1),d=a.useRef(!1),p=s.useState("isEmpty"),m=s.useState("toasts"),g=s.useState("focused"),y=s.useState("expanded"),v=s.useState("prevFocusElement"),b=m[0]?.height??0,x=a.useMemo(()=>m.some(e=>"ending"===e.transitionStatus),[m]),w=a.useMemo(()=>m.filter(e=>"high"===e.priority),[m]);function S(e){let t=s.state.viewport;if(t)if(c.current=!0,e.relatedTarget===t){let e=m.find(e=>"ending"!==e.transitionStatus&&!e.limited);e?e.ref?.current?.focus():s.restoreFocusToPrevElement()}else s.restoreFocusToPrevElement()}function T(){s.state.toasts.some(e=>"ending"===e.transitionStatus)||d.current||!f.current||(s.state.isWindowFocused&&s.resumeTimers(),s.setHovering(!1),f.current=!1)}function E(){s.pauseTimers(),s.setHovering(!0),f.current=!1}function A(){s.state.isWindowFocused&&s.resumeTimers()}function R(e){"touch"===e.pointerType&&(d.current=!1,T())}function O(){if(c.current){c.current=!1;return}!g&&ey(H(D(s.state.viewport)))&&(s.setFocused(!0),s.pauseTimers())}a.useEffect(()=>{let e=s.state.viewport;if(e)return eE((0,eR.getWindow)(e),"keydown",function(t){p||"F6"===t.key&&W(t)!==e&&(t.preventDefault(),s.setPrevFocusElement(H(D(e))),e?.focus({preventScroll:!0}),s.pauseTimers(),s.setFocused(!0))})},[s,p]),a.useEffect(()=>{let e=s.state.viewport;if(!e||p)return;let t=(0,eR.getWindow)(e);return eA(eE(t,"blur",function(e){W(e)===t&&(s.setIsWindowFocused(!1),s.pauseTimers())},!0),eE(t,"focus",function(n){if(n.relatedTarget)return;let r=W(n),i=H(D(e));r!==t&&U(e,r)&&ey(i)||s.resumeTimers(),u.start(0,()=>s.setIsWindowFocused(!0))},!0))},[s,u,p]),a.useEffect(()=>{let e=s.state.viewport;if(e&&!p)return eE(D(e),"pointerdown",s.handleDocumentPointerDown,!0)},[p,s]),a.useEffect(T,[x,s]);let C=eX("div",e,{ref:[t,s.setViewport],state:{expanded:y},props:[{tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:E,onMouseMove:E,onMouseLeave:function(){s.state.toasts.some(e=>"ending"===e.transitionStatus)||d.current?f.current=!0:(A(),s.setHovering(!1))},onFocus:O,onBlur:function(e){!g||U(s.state.viewport,e.relatedTarget)||(s.setFocused(!1),A())},onKeyDown:function(e){"Tab"===e.key&&e.shiftKey&&W(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement(),s.resumeTimers())},onClick:O,onPointerDown:function(e){"touch"===e.pointerType&&(d.current=!0)},onPointerUp:R,onPointerCancel:R},{style:{[eZ.frontmostHeight]:b?`${b}px`:void 0}},l,{children:(0,eT.jsxs)(a.Fragment,{children:[!p&&v&&(0,eT.jsx)(eI,{onFocus:S}),o,!p&&v&&(0,eT.jsx)(eI,{onFocus:S})]})}]});return(0,eT.jsxs)(a.Fragment,{children:[!p&&v&&(0,eT.jsx)(eI,{onFocus:S}),C,!g&&w.length>0&&(0,eT.jsx)("div",{style:eC,children:w.map(e=>(0,eT.jsxs)("div",{role:"alert","aria-atomic":!0,children:[(0,eT.jsx)("div",{children:e.title}),(0,eT.jsx)("div",{children:e.description})]},e.id))})]})});var eQ=e.i(866444);function e0(e){return v>=19?e:e?"true":void 0}e.s(["inertValue",0,e0],816045);let e1=a.createContext(void 0);function e2(){let e=a.useContext(e1);if(!e)throw Error(p(66));return e}let e5=((r={}).startingStyle="data-starting-style",r.endingStyle="data-ending-style",r),e7={[e5.startingStyle]:""},e4={[e5.endingStyle]:""},e3={transitionStatus:e=>"starting"===e?e7:"ending"===e?e4:null};e.s(["TransitionStatusDataAttributes",0,e5,"transitionStatusMapping",0,e3],196630);let e6=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class e9{static create(){return new e9}static request(e){return e6.request(e)}static cancel(e){return e6.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=e6.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(e6.cancel(this.currentId),this.currentId=null)};
2disposeEffect=()=>this.cancel}function e8(){let e=f(e9.create).current;return u(e.disposeEffect),e}function te(e){return null==e?e:"current"in e?e.current:e}function tt(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,o=A(i),l=function(e,t=!1,n=!0){let r=e8();return A((i,o=null)=>{r.cancel();let l=te(e);if(null==l)return;let a=()=>{eQ.flushSync(i)};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function s(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||a()}).catch(()=>{if(n){o?.aborted||a();return}let e=l.getAnimations();!o?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&s()})}if(t){let e=e5.startingStyle;if(!l.hasAttribute(e))return void r.request(s);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),s())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(s)})}(r,n,!1);a.useEffect(()=>{if(!t)return;let e=new AbortController;return l(o,e.signal),()=>{e.abort()}},[t,n,o,l])}e.s(["AnimationFrame",0,e9,"useAnimationFrame",0,e8],473361),e.s(["resolveRef",0,te],26522),e.s(["useOpenChangeComplete",0,tt],274172);let tn=((i={}).index="--toast-index",i.offsetY="--toast-offset-y",i.height="--toast-height",i.swipeMovementX="--toast-swipe-movement-x",i.swipeMovementY="--toast-swipe-movement-y",i),tr={style:{transition:"none"}},ti="[data-base-ui-swipe-ignore]",to="[data-swipe-ignore]",tl={fallbackAxisSide:"end"},ta={clipPath:"inset(50%)",position:"fixed",top:0,left:0};e.s(["BASE_UI_SWIPE_IGNORE_SELECTOR",0,ti,"CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,tr,"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"LEGACY_SWIPE_IGNORE_SELECTOR",0,to,"POPUP_COLLISION_AVOIDANCE",0,tl,"ownerVisuallyHidden",0,ta],166506);var eR=z;function ts(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}let tu={...e3,swipeDirection:e=>e?{"data-swipe-direction":e}:null},tc=`${ti},${to}`,tf=a.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:o=["down","right"],style:l,...s}=e,u=n.positionerProps?.anchor!==void 0,c=[];u||(c=Array.isArray(o)?o:[o]);let f=c.length>0,p=h(),[m,g]=a.useState(void 0),[y,v]=a.useState(!1),[b,x]=a.useState(!1),[w,S]=a.useState(!1),[T,E]=a.useState({x:0,y:0}),[R,O]=a.useState({x:0,y:0,scale:1}),[C,k]=a.useState(),[I,P]=a.useState(),[M,N]=a.useState(null),_=a.useRef(null),L=a.useRef({x:0,y:0}),F=a.useRef({x:0,y:0,scale:1}),j=a.useRef(void 0),z=a.useRef(0),B=a.useRef(!1),$=a.useRef({x:0,y:0}),Y=a.useRef(!1),V=a.useRef({x:0,y:0}),G=a.useRef(null),q=a.useRef(null),X=p.useState("toastIndex",n.id),K=p.useState("toastVisibleIndex",n.id),Z=p.useState("toastOffsetY",n.id),J=p.useState("focused"),Q=p.useState("expanded");tt({open:"ending"!==n.transitionStatus,ref:_,onComplete(){"ending"===n.transitionStatus&&p.removeToast(n.id)}});let ee=A((e=!1)=>{let t=_.current;if(!t)return;let r=t.style.height;t.style.height="auto";let i=t.offsetHeight;function o(){p.updateToastInternal(n.id,{ref:_,height:i,..."starting"===n.transitionStatus?{transitionStatus:void 0}:{}})}t.style.height=r,e?eQ.flushSync(o):o()});function et(e){V.current=e,E(e)}d(ee,[ee]),d(()=>()=>{q.current?.abort()},[]);let en=A(e=>{let t;if(e.pointerId!==G.current)return;G.current=null,q.current?.abort(),q.current=null,v(!1),x(!1),N(null);let r=F.current;if("pointercancel"===e.type||B.current){et({x:r.x,y:r.y}),g(void 0);return}let i=!1,o=V.current,l=o.x-r.x,a=o.y-r.y;for(let e of c){switch(e){case"right":l>40&&(i=!0,t="right");break;case"left":l<-40&&(i=!0,t="left");break;case"down":a>40&&(i=!0,t="down");break;case"up":a<-40&&(i=!0,t="up")}if(i)break}i?(g(t),S(!0),p.closeToast(n.id)):(et({x:r.x,y:r.y}),g(void 0))});a.useEffect(()=>{if(!f)return;let e=_.current;if(e)return eE(e,"touchmove",function(t){null!==G.current&&U(e,W(t))&&t.preventDefault()},{passive:!1})},[f]);let er="high"===n.priority,ei={role:er?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":C,"aria-describedby":I,"aria-hidden":!!er&&!J||void 0,onPointerDown:f?function(e){if(0!==e.button)return;"touch"===e.pointerType&&p.pauseTimers();let t=W(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${tc}`))return;if(B.current=!1,j.current=void 0,z.current=0,G.current=e.pointerId,L.current={x:e.clientX,y:e.clientY},$.current=L.current,_.current){let e=function(e){let t=(0,eR.getWindow)(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}(_.current);F.current=e,O(e),et({x:e.x,y:e.y})}p.setHovering(!0),v(!0),x(!1),N(null),Y.current=!0;let n=_.current;if(n){q.current?.abort();let t=new AbortController;q.current=t;let r=D(n);r.addEventListener("pointerup",en,{signal:t.signal}),r.addEventListener("pointercancel",en,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}:void 0,onPointerMove:f?function(e){let t,n,r;if(e.pointerId!==G.current)return;e.preventDefault(),Y.current&&(L.current={x:e.clientX,y:e.clientY},Y.current=!1);let{clientY:i,clientX:o,movementX:l,movementY:a}=e;(a<0&&i>$.current.y||a>0&&i<$.current.y)&&($.current={x:$.current.x,y:i}),(l<0&&o>$.current.x||l>0&&o<$.current.x)&&($.current={x:o,y:$.current.y});let s=o-L.current.x,u=i-L.current.y,f=i-$.current.y,d=o-$.current.x;if(!b&&Math.sqrt(s*s+u*u)>=1&&(x(!0),null===M)){let e=c.includes("left")||c.includes("right"),t=c.includes("up")||c.includes("down");e&&t&&N(Math.abs(s)>Math.abs(u)?"horizontal":"vertical")}if(j.current){let e=j.current,t=ts(e,d,f);t>40?(B.current=!1,g(e)):c.includes("left")&&c.includes("right")||c.includes("up")&&c.includes("down")||!(z.current-t>=10)||(B.current=!0)}else"vertical"===M?u>0?t="down":u<0&&(t="up"):"horizontal"===M?s>0?t="right":s<0&&(t="left"):t=Math.abs(s)>
2=Math.abs(u)?s>0?"right":"left":u>0?"down":"up",t&&c.includes(t)&&(j.current=t,z.current=ts(t,s,u),g(t));let p=(n=s,r=u,c.includes("left")||c.includes("right")?(!c.includes("right")&&s>0&&(n=s**.5),!c.includes("left")&&s<0&&(n=-(Math.abs(s)**.5))):n=s>0?s**.5:-(Math.abs(s)**.5),c.includes("up")||c.includes("down")?(!c.includes("down")&&u>0&&(r=u**.5),!c.includes("up")&&u<0&&(r=-(Math.abs(u)**.5))):r=u>0?u**.5:-(Math.abs(u)**.5),{x:n,y:r}),m=F.current.x,h=F.current.y;"horizontal"===M?(c.includes("left")||c.includes("right"))&&(m+=p.x):("vertical"===M||(c.includes("left")||c.includes("right"))&&(m+=p.x),(c.includes("up")||c.includes("down"))&&(h+=p.y)),et({x:m,y:h})}:void 0,onPointerUp:f?en:void 0,onPointerCancel:f?en:void 0,onKeyDown:function(e){"Escape"===e.key&&_.current&&U(_.current,H(D(_.current)))&&p.closeToast(n.id)},inert:e0(n.limited),style:{...function(){if(!y&&T.x===R.x&&T.y===R.y&&!w)return{[tn.swipeMovementX]:"0px",[tn.swipeMovementY]:"0px"};let e=T.x-R.x,t=T.y-R.y;return{transition:y?"none":void 0,transform:y?`translateX(${T.x}px) translateY(${T.y}px) scale(${R.scale})`:void 0,[tn.swipeMovementX]:`${e}px`,[tn.swipeMovementY]:`${t}px`}}(),[tn.index]:"ending"===n.transitionStatus?X:K,[tn.offsetY]:`${Z}px`,[tn.height]:n.height?`${n.height}px`:void 0}},eo=a.useMemo(()=>({rootRef:_,toast:n,titleId:C,setTitleId:k,descriptionId:I,setDescriptionId:P,swiping:y,swipeDirection:m,recalculateHeight:ee,index:X,visibleIndex:K,expanded:Q}),[n,C,I,y,m,ee,X,K,Q]),el={transitionStatus:n.transitionStatus,expanded:Q,limited:n.limited||!1,type:n.type,swiping:eo.swiping,swipeDirection:eo.swipeDirection},ea=eX("div",e,{ref:[t,eo.rootRef],state:el,stateAttributesMapping:tu,props:[ei,s]});return(0,eT.jsx)(e1.Provider,{value:eo,children:ea})}),td=a.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{visibleIndex:l,expanded:s,recalculateHeight:u}=e2(),c=a.useRef(null);return d(()=>{let e=c.current;if(!e||(u(),"function"!=typeof ResizeObserver||"function"!=typeof MutationObserver))return;let t=new ResizeObserver(()=>u(!0)),n=new MutationObserver(()=>u(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[u]),eX("div",e,{ref:[t,c],state:{expanded:s,behind:l>0},props:o})}),tp=0,tm=S.useId;function th(e,t){if(void 0!==tm){let n=tm();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=a.useState(e),i=e||n;return a.useEffect(()=>{null==n&&(tp+=1,r(`${t}-${tp}`))},[n,t]),i}(e,t)}e.s(["useId",0,th],654975);let tg=a.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:l,...a}=e,{toast:s,setDescriptionId:u}=e2(),c=l??s.description,f=!!c,p=th(o);d(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m=eX("p",e,{ref:t,state:{type:s.type},props:{...a,id:p,children:c}});return f?m:null}),ty=a.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:l,...a}=e,{toast:s,setTitleId:u}=e2(),c=l??s.title,f=!!c,p=th(o);d(()=>{if(f)return u(p),()=>{u(void 0)}},[f,p,u]);let m=eX("h2",e,{ref:t,state:{type:s.type},props:{...a,id:p,children:c}});return f?m:null}),tv=a.createContext(void 0);function tb(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:o}=e,l=a.useRef(null),s=function(e=!1){let t=a.useContext(tv);if(void 0===t&&!e)throw Error(p(16));return t}(!0),u=o??void 0!==s,{props:c}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:o}=e,l=r&&!1!==t,s=r&&!1===t;return{props:a.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=i,!o&&n&&(e.tabIndex=t?i:-1)),(o&&(t||l)||!o&&n)&&(e["aria-disabled"]=n),o&&(!t||s)&&(e.disabled=n),e},[r,n,t,l,s,o,i])}}({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:i}),f=a.useCallback(()=>{let e=l.current;tx(e)&&u&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)},[t,c.disabled,u]);return d(f,[f]),{getButtonProps:a.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:l,onPointerDown:a,...s}=e;return ej({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||(eV(e),l?.(e),e.baseUIHandlerPrevented))return;let o=e.target===e.currentTarget,a=e.currentTarget,s=tx(a),c=!i&&(r=a,!!(r?.tagName==="A"&&r?.href)),f=o&&(i?s:!c),d="Enter"===e.key,p=" "===e.key,m=a.getAttribute("role"),h=m?.
2startsWith("menuitem")||"option"===m||"gridcell"===m;if(o&&u&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),c||i&&s?(a.click(),e.preventBaseUIHandler()):f&&(n?.(e),e.preventBaseUIHandler());return}f&&(!i&&(p||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){t||((eV(e),o?.(e),e.target===e.currentTarget&&i&&u&&tx(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||u||" "!==e.key||n?.(e)))},onPointerDown(e){t?e.preventDefault():a?.(e)}},i?{type:"button"}:{role:"button"},c,s)},[t,c,u,i]),buttonRef:A(e=>{l.current=e,f()})}}function tx(e){return(0,z.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["useButton",0,tb],11902);let tw=a.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o,nativeButton:l=!0,...s}=e,u=h(),{toast:c}=e2(),f=u.useState("expanded"),[d,p]=a.useState(!1),{getButtonProps:m,buttonRef:g}=tb({disabled:o,native:l});return eX("button",e,{ref:[t,g],state:{type:c.type},props:[{"aria-hidden":!f&&!d,onClick(){u.closeToast(c.id)},onFocus(){p(!0)},onBlur(){p(!1)}},s,m]})}),tS=a.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o,nativeButton:l=!0,...a}=e,{toast:s}=e2(),u=s.actionProps?.children??a.children,c=!!u,{getButtonProps:f,buttonRef:d}=tb({disabled:o,native:l}),p=eX("button",e,{ref:[t,d],state:{type:s.type},props:[a,s.actionProps,f,{children:u}]});return c?p:null});var tT=e.i(210242),eu=eu;function tE(e){e.preventDefault(),e.stopPropagation()}function tA(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}function tR(e,t,n){return Math.floor(e/t)!==n}function tO(e,t){return t<0||t>=e.length}function tC(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.length-1&&tk(e,o,r))return o}function tk(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!tI(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function tI(e,t=e?(0,z.getComputedStyle)(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}function tP(e){for(let t of Array.from(e.children))if("summary"===(0,z.getNodeName)(t))return t;return null}function tM(e){let t=e?(0,z.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,z.getNodeName)(e.parentElement)&&tP(e.parentElement)===e)&&("details"!==t||null==tP(e))&&("input"!==t||"hidden"!==e.type)}function tN(e){if(!tM(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,z.isShadowRoot)(n)?n.host:null}(t)){let n=t!==e,r="slot"===(0,z.getNodeName)(t);if(t.hasAttribute("inert")||n&&"details"===(0,z.getNodeName)(t)&&!t.open&&!function(e,t){let n=tP(t);return!!n&&(e===n||U(n,e))}(e,t)||t.hasAttribute("hidden")||!r&&!function(e,t){let n=(0,z.getComputedStyle)(e);return t?"none"!==n.display:tI(e,n)}(t,n))return!1}return!0}function t_(e){let t=e.tabIndex;if(t<0){let t=(0,z.getNodeName)(e);if("details"===t||"audio"===t||"video"===t||(0,z.isHTMLElement)(e)&&e.isContentEditable)return 0}return t}function tD(e){return"input"!==(0,z.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function tL(e){if((0,z.isHTMLElement)(e)&&"slot"===(0,z.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,z.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function tF(e){let t=[];return!function e(t,n){tL(t).forEach(t=>{tM(t)&&n.push(t),e(t,n)})}(e,t),t.filter(tN)}function tj(e){let t=tF(e);return t.filter(e=>t_(e)>=0&&function(e,t){let n=tD(e);if(!n)return!0;let r=t.find(e=>{let t=tD(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=tD(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function tz(e,t){let n=tj(e),r=n.length;if(0===r)return;let i=H(D(e)),o=n.indexOf(i);return n[-1===o?1===t?0:r-1:o+t]}function tH(e){return tz(D(e).body,1)||e}function tU(e){return tz(D(e).body,-1)||e}function tW(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!U(n,r)}
2function tB(e){tj(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function t$(e){let t=[];!function e(t,n,r){tL(t).forEach(t=>{(0,z.isHTMLElement)(t)&&t.matches(n)&&r.push(t),e(t,n,r)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function tY(e,t,n,r){let i=!1,o=!1,l=r??I;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){o=!0},get isCanceled(){return i},get isPropagationAllowed(){return o},trigger:n,...l}}e.s(["isClickLikeEvent",0,tA,"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(eu.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!eu.env.jsdom&&(!eu.os.android&&0===e.width&&0===e.height||eu.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,tE],903826),e.s(["findNonDisabledListIndex",0,tC,"getGridNavigatedIndex",0,function(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:o,cols:l,disabledIndices:a,minIndex:s,maxIndex:u,prevIndex:c,stopEvent:f=!1}){let d,p=c;if(t.key===em?d="up":t.key===eh&&(d="down"),d){let n=[],o=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(null==e)return;h+=1;let l=e.closest('[role="row"]');l&&(m=!0),(l!==t||-1===r)&&(t=l,n[r+=1]=[]),n[r].push(i),o[i]=r})}let g=!1,y=0;if(m)for(let e of n){let t=e.length;t>y&&(y=t),t!==l&&(g=!0)}let v=g&&h<e.length,b=y||l;f&&tE(t);let x=(l=>{if(!g||-1===c)return;let s=o[c];if(null==s)return;let u=n[s].indexOf(c),f="up"===l?-1:1;for(let l=s+f,d=0;d<n.length;d+=1,l+=f){if(l<0||l>=n.length){if(!r||v)return;if(l=l<0?n.length-1:0,i){let e=Math.min(u,n[l].length-1);l=o[i(t,c,n[l][e]??n[l][0])]??l}}let s=n[l];for(let t=Math.min(u,s.length-1);t>=0;t-=1){let n=s[t];if(!tk(e,n,a))return n}}})(d)??(t=>{if(!v||-1===c)return;let n=c%b,i="up"===t?-b:b,o=u-u%b,l=(0,tT.floor)(u/b)+1;for(let t=c-n+i,s=0;s<l;s+=1,t+=i){if(t<0||t>u){if(!r)return;t=t<0?o:0}let i=Math.min(t+b-1,u);for(let r=Math.min(t+n,i);r>=t;r-=1)if(!tk(e,r,a))return r}})(d);if(void 0!==x)p=x;else if(-1===c)p="up"===d?u:s;else if(p=tC(e,{startingIndex:c,amount:b,decrement:"up"===d,disabledIndices:a}),r){if("up"===d&&(c-b<s||p<0)){let e=c%b,n=u%b,r=u-(n-e);p=n===e?u:n>e?r:r-b,i&&(p=i(t,c,p))}"down"===d&&c+b>u&&(p=tC(e,{startingIndex:c%b-b,amount:b,disabledIndices:a}),i&&(p=i(t,c,p)))}tO(e,p)&&(p=c)}if("both"===n){let n=(0,tT.floor)(c/l);t.key===(o?ed:ep)&&(f&&tE(t),c%l!=l-1?(p=tC(e,{startingIndex:c,disabledIndices:a}),r&&tR(p,l,n)&&(p=tC(e,{startingIndex:c-c%l-1,disabledIndices:a}),i&&(p=i(t,c,p)))):r&&(p=tC(e,{startingIndex:c-c%l-1,disabledIndices:a}),i&&(p=i(t,c,p))),tR(p,l,n)&&(p=c)),t.key===(o?ep:ed)&&(f&&tE(t),c%l!=0?(p=tC(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&tR(p,l,n)&&(p=tC(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:a}),i&&(p=i(t,c,p)))):r&&(p=tC(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:a}),i&&(p=i(t,c,p))),tR(p,l,n)&&(p=c));let s=(0,tT.floor)(u/l)===n;tO(e,p)&&(r&&s?(p=t.key===(o?ep:ed)?u:tC(e,{startingIndex:c-c%l-1,disabledIndices:a}),i&&(p=i(t,c,p))):p=c)}return p},"getMaxListIndex",0,function(e,t){return tC(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return tC(e.current,{disabledIndices:t})},"isElementVisible",0,tI,"isIndexOutOfListBounds",0,tO,"isListIndexDisabled",0,tk],907153),e.s(["disableFocusInside",0,tB,"enableFocusInside",0,t$,"focusable",0,tF,"getNextTabbable",0,tH,"getPreviousTabbable",0,tU,"isOutsideEvent",0,tW,"isTabbable",0,function(e){return tN(e)&&t_(e)>=0},"tabbable",0,tj],364598),e.s(["createChangeEventDetails",0,tY,"createGenericEventDetails",0,function(e,t,n){let r=n??I;return{reason:e,event:t??new Event("base-ui"),...r}}],42237),e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
2inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],640477);var tV=e.i(640477);e.s(["REASONS",0,tV],399417);var tV=tV;function tG(e){return`data-base-ui-${e}`}e.s(["createAttribute",0,tG],132074);let tq=a.createContext(null),tX=()=>a.useContext(tq),tK=tG("portal");function tZ(e={}){let{ref:t,container:n,componentProps:r=I,elementProps:i}=e,o=th(),l=tX(),s=l?.portalNode,[u,c]=a.useState(null),[f,p]=a.useState(null),m=A(e=>{null!==e&&p(e)}),h=a.useRef(null);d(()=>{if(null===n){h.current&&(h.current=null,p(null),c(null));return}if(null==o)return;let e=(n&&((0,z.isNode)(n)?n:n.current))??s??document.body;if(null==e){h.current&&(h.current=null,p(null),c(null));return}h.current!==e&&(h.current=e,p(null),c(e))}
2,[n,s,o]);let g=eX("div",r,{ref:[t,m],props:[{id:o,[tK]:""},i]});return{portalNode:f,portalSubtree:u&&g?eQ.createPortal(g,u):null}}let tJ=a.forwardRef(function(e,t){let{render:n,className:r,style:i,children:o,container:l,renderGuards:s,...u}=e,{portalNode:c,portalSubtree:f}=tZ({container:l,ref:t,componentProps:e,elementProps:u}),p=a.useRef(null),m=a.useRef(null),h=a.useRef(null),g=a.useRef(null),[y,v]=a.useState(null),b=a.useRef(!1),x=y?.modal,w=y?.open,S="boolean"==typeof s?s:!!y&&!y.modal&&y.open&&!!c;a.useEffect(()=>{if(c&&!x)return eA(eE(c,"focusin",e,!0),eE(c,"focusout",e,!0));function e(e){c&&e.relatedTarget&&tW(e)&&("focusin"===e.type?b.current&&(t$(c),b.current=!1):(tB(c),b.current=!0))}},[c,x]),d(()=>{c&&!0===w&&b.current&&(t$(c),b.current=!1)},[w,c]);let T=a.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:c,setFocusManagerState:v}),[c]);return(0,eT.jsxs)(a.Fragment,{children:[f,(0,eT.jsxs)(tq.Provider,{value:T,children:[S&&c&&(0,eT.jsx)(eI,{"data-type":"outside",ref:p,onFocus:e=>{if(tW(e,c))h.current?.focus();else{let e=tU(y?y.domReference:null);e?.focus()}}}),S&&c&&(0,eT.jsx)("span",{"aria-owns":c.id,style:ta}),c&&eQ.createPortal(o,c),S&&c&&(0,eT.jsx)(eI,{"data-type":"outside",ref:m,onFocus:e=>{if(tW(e,c))g.current?.focus();else{let t=tH(y?y.domReference:null);t?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,tY(tV.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,tJ,"useFloatingPortalNode",0,tZ,"usePortalContext",0,tX],672487);let tQ=a.forwardRef(function(e,t){let{children:n,container:r,className:i,render:o,style:l,...s}=e,{portalNode:u,portalSubtree:c}=tZ({container:r,ref:t,componentProps:e,elementProps:s});return c||u?(0,eT.jsxs)(a.Fragment,{children:[c,u&&eQ.createPortal(n,u)]}):null});var eR=z;function t0(e){let t=f(t1,e).current;return t.next=e,d(t.effect),t}function t1(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,t0],914554);var t2=e.i(825339),t5=e.i(501583);let t7=a.createContext(null),t4=a.createContext(null),t3=()=>a.useContext(t7)?.id||null,t6=e=>{let t=a.useContext(t4);return e??t};e.s(["useFloatingParentNodeId",0,t3,"useFloatingTree",0,t6],548740);class t9{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}let t8={open:M(e=>e.open),transitionStatus:M(e=>e.transitionStatus),domReferenceElement:M(e=>e.domReferenceElement),referenceElement:M(e=>e.positionReference??e.referenceElement),floatingElement:M(e=>e.floatingElement),floatingId:M(e=>e.floatingId)};class ne extends P{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...o}=e;super({...o,positionReference:o.referenceElement,domReferenceElement:o.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:i},t8),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&tA(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
2{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function nt(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=th(),o=null!=t3(),l=f(()=>new ne({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new t9,floatingId:i,syncOnly:!1,nested:o})).current;return d(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,z.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),l.update(e)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=o,l}e.s(["useFloatingRootContext",0,nt],591475);let nn=a.createContext(void 0);function nr(){let e=a.useContext(nn);return e?.direction??"ltr"}e.s(["useDirection",0,nr],601132);let ni=(0,t5.hide)().fn,no={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await ni(e);return{data:{referenceHidden:o.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}};var eR=z;let nl={sideX:"left",sideY:"top"};function na(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function ns(e,t,n){let{rects:r,placement:i}=e;return{side:na(t,(0,tT.getSide)(i),n),align:(0,tT.getAlignment)(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function nu(e){var t,n;let{anchor:r,positionMethod:i="absolute",side:o="bottom",sideOffset:l=0,align:s="center",alignOffset:u=0,collisionBoundary:c,collisionPadding:f=5,sticky:p=!1,arrowPadding:m=5,disableAnchorTracking:h=!1,inline:g,keepMounted:y=!1,floatingRootContext:v,mounted:b,collisionAvoidance:x,shiftCrossAxis:w=!1,nodeId:S,adaptiveOrigin:T,lazyFlip:E=!1,externalTree:R}=e,[O,C]=a.useState(null);b||null===O||C(null);let k=x.side||"flip",I=x.align||"flip",P=x.fallbackAxisSide||"end",M="function"==typeof r?r:void 0,N=A(M),_=M?N:r,L=t0(r),F=t0(b),j="rtl"===nr(),H=O||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":j?"left":"right","inline-start":j?"right":"left"})[o],U="center"===s?H:`${H}-${s}`,W=f,B=+("bottom"===o),$=+("top"===o),Y=+("right"===o),V=+("left"===o);"number"==typeof W?W={top:W+B,right:W+V,bottom:W+$,left:W+Y}:W&&(W={top:(W.top||0)+B,right:(W.right||0)+V,bottom:(W.bottom||0)+$,left:(W.left||0)+Y});let G={boundary:"clipping-ancestors"===c?"clippingAncestors":c,padding:W},q=a.useRef(null),X=t0(l),K=t0(u),Z="function"!=typeof l?l:0,J="function"!=typeof u?u:0,Q=[];g&&Q.push(g),Q.push((0,t5.offset)(e=>{let t=ns(e,o,j),n="function"==typeof X.current?X.current(t):X.current,r="function"==typeof K.current?K.current(t):K.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[Z,J,j,o]));let ee="none"===I&&"shift"!==k,et=!ee&&(p||w||"shift"===k),en="none"===k?null:(0,t5.flip)({...G,padding:{top:W.top+1,right:W.right+1,bottom:W.bottom+1,left:W.left+1},mainAxis:!w&&"flip"===k,crossAxis:"flip"===I&&"alignment",fallbackAxisSideDirection:P}),er=ee?null:(0,t5.shift)(e=>{let t=D(e.elements.floating).documentElement;return{...G,rootBoundary:w?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==I,crossAxis:et,limiter:p||w?void 0:(0,t5.limitShift)(e=>{if(!q.current)return{};let{width:t,height:n}=q.current.getBoundingClientRect(),r=(0,tT.getSideAxis)((0,tT.getSide)(e.placement)),i="y"===r?W.left+W.right:W.top+W.bottom;return{offset:("y"===r?t:n)/2+i/2}})}},[G,p,w,W,I]);"shift"===k||"shift"===I||"center"===s?Q.push(er,en):Q.push(en,er),Q.push((0,t5.size)({...G,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!F.current)return;let i=e.style;i.setProperty("--available-width",`${t}px`),i.setProperty("--available-height",`${n}px`);let o=(0,eR.getWindow)(e).devicePixelRatio||1,{x:l,y:a,width:s,height:u}=r.reference,c=(Math.round((l+s)*o)-Math.round(l*o))/o,f=(Math.round((a+u)*o)-Math.round(a*o))/o;i.setProperty("--anchor-width",`${c}px`),i.setProperty("--anchor-height",`${f}px`)}}),(t=e=>({element:q.current||D(e.elements.floating).createElement("div"),padding:m,offsetParent:"floating"}),n=[m],{name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=e,{element:u,padding:c=0,offsetParent:f="real"}=(0,tT.evaluate)(t,e)||{};if(null==u)return{};
2let d=(0,tT.getPaddingObject)(c),p={x:n,y:r},m=(0,tT.getAlignmentAxis)(i),h=(0,tT.getAxisLength)(m),g=await l.getDimensions(u),y="y"===m,v=y?"clientHeight":"clientWidth",b=o.reference[h]+o.reference[m]-p[m]-o.floating[h],x=p[m]-o.reference[m],w="real"===f?await l.getOffsetParent?.(u):a.floating,S=a.floating[v]||o.floating[h];S&&await l.isElement?.(w)||(S=a.floating[v]||o.floating[h]);let T=S/2-g[h]/2-1,E=Math.min(d[y?"top":"left"],T),A=Math.min(d[y?"bottom":"right"],T),R=S-g[h]-A,O=S/2-g[h]/2+(b/2-x/2),C=(0,tT.clamp)(E,O,R),k=!s.arrow&&null!=(0,tT.getAlignment)(i)&&O!==C&&o.reference[h]/2-(O<E?E:A)-g[h]/2<0,I=k?O<E?O-E:O-R:0;return{[m]:p[m]+I,data:{[m]:C,centerOffset:O-C-I,...k&&{alignmentOffset:I}},reset:k}},options:[t,n]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:n,placement:r,rects:i,y:a}=e,s=(0,tT.getSide)(r),u=(0,tT.getSideAxis)(s),c=q.current,f=n.arrow?.x||0,d=n.arrow?.y||0,p=c?.clientWidth||0,m=c?.clientHeight||0,h=f+p/2,g=d+m/2,y=Math.abs(n.shift?.y||0),v=i.reference.height/2,b="function"==typeof l?l(ns(e,o,j)):l,x=y>b,w={top:`${h}px calc(100% + ${b}px)`,bottom:`${h}px ${-b}px`,left:`calc(100% + ${b}px) ${g}px`,right:`${-b}px ${g}px`}[s],S=`${h}px ${i.reference.y+v-a}px`;return t.floating.style.setProperty("--transform-origin",et&&"y"===u&&x?S:w),{}}},no,T),d(()=>{!b&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,v]);let ei=a.useMemo(()=>({elementResize:!h&&"u">typeof ResizeObserver,layoutShift:!h&&"u">typeof IntersectionObserver}),[h]),{refs:eo,elements:el,x:ea,y:es,middlewareData:eu,update:ec,placement:ef,context:ed,isPositioned:ep,floatingStyles:em}=function(e={}){let{nodeId:t,externalTree:n}=e,r=nt(e),i=e.rootContext||r,o=i.useState("referenceElement"),l=i.useState("floatingElement"),s=i.useState("domReferenceElement"),u=i.useState("open"),c=i.useState("floatingId"),[f,p]=a.useState(null),[m,h]=a.useState(void 0),[g,y]=a.useState(void 0),v=a.useRef(null),b=t6(n),x=a.useMemo(()=>({reference:o,floating:l,domReference:s}),[o,l,s]),w=(0,t5.useFloating)({...e,elements:{...x,...f&&{reference:f}}}),S=(0,z.isElement)(m)?m:null,T=void 0===g?i.state.floatingElement:g;i.useSyncedValue("referenceElement",m??null),i.useSyncedValue("domReferenceElement",void 0===m?s:S),i.useSyncedValue("floatingElement",T);let E=a.useCallback(e=>{let t=(0,z.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),w.refs.setReference(t)},[w.refs]),A=a.useCallback(e=>{((0,z.isElement)(e)||null===e)&&(v.current=e,h(e)),((0,z.isElement)(w.refs.reference.current)||null===w.refs.reference.current||null!==e&&!(0,z.isElement)(e))&&w.refs.setReference(e)},[w.refs,h]),R=a.useCallback(e=>{y(e),w.refs.setFloating(e)},[w.refs]),O=a.useMemo(()=>({...w.refs,setReference:A,setFloating:R,setPositionReference:E,domReference:v}),[w.refs,A,R,E]),C=a.useMemo(()=>({...w.elements,domReference:s}),[w.elements,s]),k=a.useMemo(()=>({...w,dataRef:i.context.dataRef,open:u,onOpenChange:i.setOpen,events:i.context.events,floatingId:c,refs:O,elements:C,nodeId:t,rootStore:i}),[w,O,C,t,i,u,c]);return d(()=>{s&&(v.current=s)},[s]),d(()=>{i.context.dataRef.current.floatingContext=k;let e=b?.nodesRef.current.find(e=>e.id===t);e&&(e.context=k)}),a.useMemo(()=>({...w,context:k,refs:O,elements:C,rootStore:i}),[w,O,C,k,i])}({rootContext:v,open:y?b:void 0,placement:U,middleware:Q,strategy:i,whileElementsMounted:y?void 0:(...e)=>(0,t2.autoUpdate)(...e,ei),nodeId:S,externalTree:R}),{sideX:eh,sideY:eg}=eu.adaptiveOrigin||nl,ey=ep?i:"fixed",ev=a.useMemo(()=>{let e=T?{position:ey,[eh]:ea,[eg]:es}:{position:ey,...em};return ep||(e.opacity=0),e},[T,ey,eh,ea,eg,es,em,ep]),eb=a.useRef(null);d(()=>{if(!b)return;let e=L.current,t="function"==typeof e?e():e,n=(nc(t)?t.current:t)||null;n!==eb.current&&(eo.setPositionReference(n),eb.current=n)},[b,eo,_,L]),a.useEffect(()=>{if(!b)return;let e=L.current;"function"!=typeof e&&nc(e)&&e.current!==eb.current&&(eo.setPositionReference(e.current),eb.current=e.current)},[b,eo,_,L]),a.useEffect(()=>{if(y&&b&&el.reference&&el.floating)return(0,t2.autoUpdate)(el.reference,el.floating,ec,ei)},[y,b,el,ec,ei]);let ex=(0,tT.getSide)(ef),ew=na(o,ex,j),eS=(0,tT.getAlignment)(ef)||"center",eT=!!eu.hide?.referenceHidden;d(()=>{E&&b&&ep&&C(ex)},[E,b,ep,ex]);let eE=a.useMemo(()=>
2({position:"absolute",top:eu.arrow?.y,left:eu.arrow?.x}),[eu.arrow]),eA=eu.arrow?.centerOffset!==0;return a.useMemo(()=>({positionerStyles:ev,arrowStyles:eE,arrowRef:q,arrowUncentered:eA,side:ew,align:eS,physicalSide:ex,anchorHidden:eT,refs:eo,context:ed,isPositioned:ep,update:ec}),[ev,eE,q,eA,ew,eS,ex,eT,eo,ed,ep,ec])}function nc(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",0,nu],45527);let nf=a.createContext(void 0),nd=((o={}).open="data-open",o.closed="data-closed",o[o.startingStyle=e5.startingStyle]="startingStyle",o[o.endingStyle=e5.endingStyle]="endingStyle",o.anchorHidden="data-anchor-hidden",o.side="data-side",o.align="data-align",o),np=((l={}).popupOpen="data-popup-open",l.pressed="data-pressed",l),nm={[np.popupOpen]:""},nh={[np.popupOpen]:"",[np.pressed]:""},ng={[nd.open]:""},ny={[nd.closed]:""},nv={[nd.anchorHidden]:""},nb={open:e=>e?ng:ny,anchorHidden:e=>e?nv:null};function nx(e){return"starting"===e?tr:I}function nw(e,t,{styles:n,transitionStatus:r,props:i,refs:o,hidden:l,inert:a=!1}){let s={...n};return a&&(s.pointerEvents="none"),eX("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:l,style:s},nx(r),i],stateAttributesMapping:nb})}e.s(["popupStateMapping",0,nb,"pressableTriggerOpenStateMapping",0,{open:e=>e?nh:null},"triggerOpenStateMapping",0,{open:e=>e?nm:null}],907531),e.s(["getDisabledMountTransitionStyles",0,nx],32677),e.s(["usePositioner",0,nw],397252);let nS=a.forwardRef(function(e,t){let{toast:n,...r}=e,i=h(),o=n.positionerProps??I,{render:l,className:s,anchor:u=o.anchor,positionMethod:c=o.positionMethod??"absolute",side:f=o.side??"top",align:d=o.align??"center",sideOffset:p=o.sideOffset??0,alignOffset:m=o.alignOffset??0,collisionBoundary:g=o.collisionBoundary??"clipping-ancestors",collisionPadding:y=o.collisionPadding??5,arrowPadding:v=o.arrowPadding??5,sticky:b=o.sticky??!1,disableAnchorTracking:x=o.disableAnchorTracking??!1,collisionAvoidance:w=o.collisionAvoidance??tl,style:S,...T}=r,[E,A]=a.useState(null),R=i.useState("toastIndex",n.id),O=i.useState("toastVisibleIndex",n.id),k=(0,z.isElement)(u)?u:null,P=nt({open:!0,onOpenChange:C,elements:{floating:E,reference:k}}),M=nu({anchor:k,positionMethod:c,floatingRootContext:P,mounted:!0,side:f,sideOffset:p,align:d,alignOffset:m,collisionBoundary:g,collisionPadding:y,sticky:b,arrowPadding:v,disableAnchorTracking:x,keepMounted:!0,collisionAvoidance:w}),N=nw(e,a.useMemo(()=>({side:M.side,align:M.align,anchorHidden:M.anchorHidden}),[M.side,M.align,M.anchorHidden]),{styles:{...M.positionerStyles,[tn.index]:"ending"===n.transitionStatus?R:O},transitionStatus:n.transitionStatus,props:T,refs:[t,A]});return(0,eT.jsx)(nf.Provider,{value:M,children:N})}),nT=a.forwardRef(function(e,t){let{className:n,render:r,style:i,...o}=e,{arrowRef:l,side:s,align:u,arrowUncentered:c,arrowStyles:f}=function(){let e=a.useContext(nf);if(void 0===e)throw Error(p(84));return e}();return eX("div",e,{state:{side:s,align:u,uncentered:c},ref:[t,l],props:[{style:f,"aria-hidden":!0},o]})});e.s(["Action",0,tS,"Arrow",0,nT,"Close",0,tw,"Content",0,td,"Description",0,tg,"Portal",0,tQ,"Positioner",0,nS,"Provider",0,function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,o=f(()=>new eS({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return u(o.disposeEffect),a.useEffect(function(){if(i)return i[" subscribe"](({action:e,options:t})=>{let n=t.id;"promise"===e&&t.promise?o.promiseToast(t.promise,t):"update"===e&&n?o.updateToast(n,t):"close"===e?o.closeToast(n):o.addToast(t)})},[o,i]),d(()=>{o.syncProviderProps({timeout:n,limit:r})},[o,n,r]),(0,eT.jsx)(m.Provider,{value:o,children:t})},"Root",0,tf,"Title",0,ty,"Viewport",0,eJ,"createToastManager",0,function(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||_("toast");return t({action:"add",options:{...e,id:n,transitionStatus:"starting"}}),n},close(e){t({action:"close",options:{id:e}})},update(e,n){t({action:"update",options:{...n,id:e}})},promise(e,n){let r=e;return t({action:"promise",options:{...n,promise:e,setPromise(e){r=e}}}),r}}},"useToastManager",0,function(){let e=a.useContext(m);if(!e)throw Error(p(73));let t=e.useState("toasts");return a.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}],859496);var nE=e.i(859496);e.s(["Toast",0,nE],68051)},703246,(e,t,n)=>{"use strict";var r;let i;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
2let l=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,u=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,f=Object.freeze,d=Object.seal,p=Object.create,m="u">typeof Reflect&&Reflect,h=m.apply,g=m.construct;f||(f=function(e){return e}),d||(d=function(e){return e}),h||(h=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),g||(g=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let y=F(Array.prototype.forEach),v=F(Array.prototype.lastIndexOf),b=F(Array.prototype.pop),x=F(Array.prototype.push),w=F(Array.prototype.splice),S=Array.isArray,T=F(String.prototype.toLowerCase),E=F(String.prototype.toString),A=F(String.prototype.match),R=F(String.prototype.replace),O=F(String.prototype.indexOf),C=F(String.prototype.trim),k=F(Number.prototype.toString),I=F(Boolean.prototype.toString),P="u"<typeof BigInt?null:F(BigInt.prototype.toString),M="u"<typeof Symbol?null:F(Symbol.prototype.toString),N=F(Object.prototype.hasOwnProperty),_=F(Object.prototype.toString),D=F(RegExp.prototype.test),L=(r=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(r,t)});function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h(e,t,r)}}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(a&&a(e,null),!S(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function z(e){let t=p(null);for(let r of l(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],a=!0,s=!1;try{i=(t=t.call(e)).next,!1;for(;!(a=(n=i.call(t)).done)&&(l.push(n.value),2!==l.length);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(r)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],l=n[1];N(e,i)&&(S(l)?t[i]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(l):l&&"object"==typeof l&&l.constructor===Object?t[i]=z(l):t[i]=l)}return t}function H(e,t){for(;null!==e;){let n=c(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=u(e)}return function(){return null}}let U=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$=f(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),V=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=f(["#text"]),q=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=f(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=f(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=d(/{{[\w\W]*|^[\w\W]*}}/g),Q=d(/<%[\w\W]*|^[\w\W]*%>/g),ee=d(/\${[\w\W]*/g),et=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),en=d(/^aria-[\-\w]+$/),er=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ei=d(/^(?:\w+script|data):/i),eo=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),el=d(/^html$/i),ea=d(/^[a-z][.\w]*(-[.\w]+)+$/i),es=d(/<[/\w!]/g),eu=d(/<[/\w]/g),ec=d(/<\/no(script|embed|frames)/i),ef=d(/\/>/i),ed=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ep=f(j({},ed)),em=(i={},y(ed,e=>{i[e]=d(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),f(i)),eh=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},eg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ey=function(e,t,n,r){return N(e,t)&&S(e[t])?j(r.base?z(r.base):{},e[t],r.transform):n},ev=function(e,t,n){let r=N(e,t)?e[t]:void 0;return r&&"object"==typeof r?z(r):n()};t.exports=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=t=>e(t);if(i.version="3.4.14",i.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return i.isSupported=!1,i;let o=r.document,a=o,s=a.currentScript;r.DocumentFragment;let u=r.HTMLTemplateElement,c=r.Node,m=r.Element,h=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let g=r.DOMParser,F=r.trustedTypes,ed=m.prototype,eb=H(ed,"cloneNode"),ex=H(ed,"remove"),ew=H(ed,"nextSibling"),eS=H(ed,"childNodes"),eT=H(ed,"parentNode"),eE=H(ed,"shadowRoot"),eA=H(ed,"attributes"),eR=c&&c.prototype?H(c.prototype,"nodeType"):null,eO=c&&c.prototype?H(c.prototype,"nodeName"):null,eC=c&&c.prototype?H(c.prototype,"ownerDocument"):null,ek=function(e){return eR?eR(e):e.nodeType},eI=function(e){return eO?eO(e):e.nodeName};if("function"==typeof u){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eP="",eM=!1,eN=0,e_=function(){if(eN>0)throw L('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')}
2,eD=function(e){e_(),eN++;try{return t.createHTML(e)}finally{eN--}},eL=function(e){e_(),eN++;try{return t.createScriptURL(e)}finally{eN--}},eF=o,ej=eF.implementation,ez=eF.createNodeIterator,eH=eF.createDocumentFragment,eU=eF.getElementsByTagName,eW=a.importNode,eB=eg();i.isSupported="function"==typeof l&&"function"==typeof eT&&ej&&void 0!==ej.createHTMLDocument;let e$=er,eY=null,eV=j({},[...U,...W,...B,...Y,...G]),eG=null,eq=j({},[...q,...X,...K,...Z]),eX=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eK=null,eZ=null,eJ=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eQ=!0,e0=!0,e1=!1,e2=!0,e5=!1,e7=!0,e4=!1,e3=!1,e6=null,e9=null,e8=!1,te=!1,tt=!1,tn=!1,tr=!0,ti=!1,to="user-content-",tl=!0,ta=!1,ts={},tu=null,tc=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tf=null,td=j({},["audio","video","img","source","image","track"]),tp=null,tm=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),th="http://www.w3.org/1998/Math/MathML",tg="http://www.w3.org/2000/svg",ty="http://www.w3.org/1999/xhtml",tv=ty,tb=!1,tx=null,tw=j({},[th,tg,ty],E),tS=f(["mi","mo","mn","ms","mtext"]),tT=j({},tS),tE=f(["annotation-xml"]),tA=j({},tE),tR=j({},["title","style","font","a","script"]),tO=null,tC=["application/xhtml+xml","text/html"],tk=null,tI=null,tP=o.createElement("form"),tM=function(e){return e instanceof RegExp||e instanceof Function},tN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tI&&tI===e)return;e&&"object"==typeof e||(e={}),e=z(e),tk="application/xhtml+xml"===(tO=-1===tC.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:T,eY=ey(e,"ALLOWED_TAGS",eV,{transform:tk}),eG=ey(e,"ALLOWED_ATTR",eq,{transform:tk}),tx=ey(e,"ALLOWED_NAMESPACES",tw,{transform:E}),tp=ey(e,"ADD_URI_SAFE_ATTR",tm,{transform:tk,base:tm}),tf=ey(e,"ADD_DATA_URI_TAGS",td,{transform:tk,base:td}),tu=ey(e,"FORBID_CONTENTS",tc,{transform:tk}),eK=ey(e,"FORBID_TAGS",z({}),{transform:tk}),eZ=ey(e,"FORBID_ATTR",z({}),{transform:tk}),ts=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?z(e.USE_PROFILES):e.USE_PROFILES),eQ=!1!==e.ALLOW_ARIA_ATTR,e0=!1!==e.ALLOW_DATA_ATTR,e1=e.ALLOW_UNKNOWN_PROTOCOLS||!1,e2=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e5=e.SAFE_FOR_TEMPLATES||!1,e7=!1!==e.SAFE_FOR_XML,e4=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,tt=e.RETURN_DOM_FRAGMENT||!1,tn=e.RETURN_TRUSTED_TYPE||!1,e8=e.FORCE_BODY||!1,tr=!1!==e.SANITIZE_DOM,ti=e.SANITIZE_NAMED_PROPS||!1,tl=!1!==e.KEEP_CONTENT,ta=e.IN_PLACE||!1,e$=!function(e){try{return D(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?er:e.ALLOWED_URI_REGEXP,tv="string"==typeof e.NAMESPACE?e.NAMESPACE:ty,tT=ev(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>j({},tS)),tA=ev(e,"HTML_INTEGRATION_POINTS",()=>j({},tE));let r=ev(e,"CUSTOM_ELEMENT_HANDLING",()=>p(null));if(eX=p(null),N(r,"tagNameCheck")&&tM(r.tagNameCheck)&&(eX.tagNameCheck=r.tagNameCheck),N(r,"attributeNameCheck")&&tM(r.attributeNameCheck)&&(eX.attributeNameCheck=r.attributeNameCheck),N(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eX.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),d(eX),e5&&(e0=!1),tt&&(te=!0),ts&&(eY=j({},G),eG=p(null),!0===ts.html&&(j(eY,U),j(eG,q)),!0===ts.svg&&(j(eY,W),j(eG,X),j(eG,Z)),!0===ts.svgFilters&&(j(eY,B),j(eG,X),j(eG,Z)),!0===ts.mathMl&&(j(eY,Y),j(eG,K),j(eG,Z))),eJ.tagCheck=null,eJ.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eJ.tagCheck=e.ADD_TAGS:S(e.ADD_TAGS)&&(eY===eV&&(eY=z(eY)),j(eY,e.ADD_TAGS,tk))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eJ.attributeCheck=e.ADD_ATTR:S(e.ADD_ATTR)&&(eG===eq&&(eG=z(eG)),j(eG,e.ADD_ATTR,tk))),N(e,"ADD_FORBID_CONTENTS")&&S(e.ADD_FORBID_CONTENTS)&&(tu===tc&&(tu=z(tu)),j(tu,e.ADD_FORBID_CONTENTS,tk)),tl&&(eY["#text"]=!0),e4&&j(eY,["html","head","body"]),eY.table&&(j(eY,["tbody"]),delete eK.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eP=eD("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eP=""):(void 0===t&&(eM||(n=eh(F,s),eM=!0),t=n),t&&"string"==typeof eP&&(eP=eD("")));f&&f(e),tI=e},t_=j({},[...W,...B,...$]),tD=j({},[...Y,...V]),tL=function(e){var t,n,r;let i=eT(e);i&&i.tagName||(i={namespaceURI:tv,tagName:"template"});let o=T(e.tagName),l=T(i.tagName);return!!tx[e.namespaceURI]&&(e.namespaceURI===tg?(t=i).namespaceURI===ty?"svg"===o:t.namespaceURI===th?"svg"===o&&("annotation-xml"===l||tT[l]):!!t_[o]:e.namespaceURI===th?(n=i).namespaceURI===ty?"math"===o:n.namespaceURI===tg?"math"===o&&tA[l]:!!tD[o]:e.namespaceURI===ty?((r=i).namespaceURI!==tg||!!tA[l])&&(r.namespaceURI!==th||!!tT[l])&&!tD[o]&&(tR[o]||!t_[o]):"application/xhtml+xml"===tO&&!!tx[e.namespaceURI])},tF=function(e){x(i.removed,{element:e});try{eT(e).removeChild(e)}catch(t){if(ex(e),!eT(e))throw L("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tj=function(e,t,n){try{e.removeAttributeNode(t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tz=function(e){tW(e);let t=eS(e);if(t){let e=[];y(t,t=>{x(e,t)}),y(e,e=>{try{ex(e)}catch(e){}})}let n=eA(e);
2if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tj(e,r,i)}},tH=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}x(i.removed,{attribute:n||null,from:t});try{n?t.removeAttributeNode(n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(te||tt)try{tF(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tU=function(e){let t=eA(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||eG[tk(i)]||tj(e,r,i)}},tW=function(e){let t=[e];for(;t.length>0;){let e=t.pop();1===ek(e)&&tU(e);let n=eS(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tB=function(e,t){return!!e7&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},t$=function(e){if(!e7)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ek(e);if(7===n||8===n&&D(eu,e.data)){try{ex(e)}catch(e){}continue}if(1===n){let t=tk(eI(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&tB("for",t)&&e.removeAttribute("for")}catch(e){}}let r=eS(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tY=function(e){let n=null,r=null;if(e8)e="<remove></remove>"+e;else{let t=A(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tO&&tv===ty&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eD(e):e;if(tv===ty)try{n=new g().parseFromString(i,tO)}catch(e){}if(!n||!n.documentElement){n=ej.createDocument(tv,"template",null);try{n.documentElement.innerHTML=tb?eP:i}catch(e){}}let l=n.body||n.documentElement;return(e&&r&&l.insertBefore(o.createTextNode(r),l.childNodes[0]||null),tv===ty)?eU.call(n,e4?"html":"body")[0]:e4?n.documentElement:l},tV=function(e){let t=eC?eC(e):e.ownerDocument;return ez.call(t||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},tG=function(e){return e=R(e,J," "),e=R(e,Q," "),e=R(e,ee," ")},tq=function(e){var t;e.normalize();let n=eC?eC(e):e.ownerDocument,r=ez.call(n||e,e,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=tG(i.data),i=r.nextNode();let o=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");o&&y(o,e=>{tK(e.content)&&tq(e.content)})},tX=function(e){let t=eO?eO(e):null;return"string"==typeof t&&"form"===tk(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eA(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eR(e)||e.childNodes!==eS(e))},tK=function(e){if(!eR||"object"!=typeof e||null===e)return!1;try{return 11===eR(e)}catch(e){return!1}},tZ=function(e){if(!eR||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eR(e)}catch(e){return!1}};function tJ(e,t,n){0!==e.length&&y(e,e=>{e.call(i,t,n,tI)})}let tQ=function(e,t){if(e instanceof RegExp)return D(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},t0=function(e,t,n){if(!eK[t]&&t3(t)&&tQ(eX.tagNameCheck,t))return!1;if(tl&&!tu[t]){let t=eT(e),r=eS(e);if(r&&t){let i=r.length;for(let o=i-1;o>=0;--o){let i=e===n?eb(r[o],!0):r[o];t.insertBefore(i,ew(e))}}}return tF(e),!0},t1=function(e,t,n,r){return 0===e.length?t:t===n||t===r?z(t):t},t2=function(e,t){return e!==t&&null===eT(e)&&(ta&&tW(e),!0)},t5=function(e,t){if(tJ(eB.beforeSanitizeElements,e,null),t2(e,t))return!0;if(tX(e))return tF(e),!0;let n=tk(eI(e));if(eY=t1(eB.uponSanitizeElement,eY,eV,e6),tJ(eB.uponSanitizeElement,e,{tagName:n,allowedTags:eY}),t2(e,t))return!0;if(e7&&e.hasChildNodes()&&!tZ(e.firstElementChild)&&D(es,e.textContent)&&D(es,e.innerHTML)||e7&&e.namespaceURI===ty&&ep[n]&&(tZ(e.firstElementChild)||"string"==typeof e.textContent&&D(em[n],e.textContent))||7===e.nodeType||e7&&8===e.nodeType&&D(eu,e.data))return tF(e),!0;if(eK[n]||!(eJ.tagCheck instanceof Function&&eJ.tagCheck(n))&&!eY[n]){let r=t0(e,n,t);
2return!1===r&&tJ(eB.afterSanitizeElements,e,null),r}if(1===ek(e)&&!tL(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&D(ec,e.innerHTML))return tF(e),!0;if(e5&&3===e.nodeType){let t=tG(e.textContent);e.textContent!==t&&(x(i.removed,{element:e.cloneNode()}),e.textContent=t)}return tJ(eB.afterSanitizeElements,e,null),!1},t7=function(e,t,n){if(eZ[t]||tB(t,e)||tr&&("id"===t||"name"===t)&&(n in o||n in tP))return!1;let r=eG[t]||eJ.attributeCheck instanceof Function&&eJ.attributeCheck(t,e);return!!(e0&&D(et,t)||eQ&&D(en,t))||(r?!(!(tp[t]||D(e$,R(n,eo,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!tf[e])&&(!e1||D(ei,R(n,eo,""))))||!n:t3(e)&&tQ(eX.tagNameCheck,e)&&tQ(eX.attributeNameCheck,t,e)||"is"===t&&eX.allowCustomizedBuiltInElements&&tQ(eX.tagNameCheck,n))},t4=j({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),t3=function(e){return!t4[T(e)]&&D(ea,e)},t6=function(e,n,r,i){if(t&&"object"==typeof F&&"function"==typeof F.getAttributeType&&!r)switch(F.getAttributeType(e,n)){case"TrustedHTML":return eD(i);case"TrustedScriptURL":return eL(i)}return i},t9=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tX(e)?tF(e):b(i.removed)}catch(n){tH(t,e)}},t8=function(e){tJ(eB.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tX(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eG=t1(eB.uponSanitizeAttribute,eG,eq,e9),forceKeepAttr:void 0},r=t.length,i=tk(e.nodeName);for(;r--;){let o=t[r],l=o.name,a=o.namespaceURI,s=o.value,u=tk(l),c="value"===l?s:C(s);if(n.attrName=u,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,tJ(eB.uponSanitizeAttribute,e,n),c=n.attrValue,ti&&("id"===u||"name"===u)&&0!==O(c,to)&&(tH(l,e,o),c=to+c),e7&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&A(c,"href")){tH(l,e,o);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!e2&&D(ef,c)||(e5&&(c=tG(c)),!t7(i,u,c))){tH(l,e,o);continue}(c=t6(i,u,a,c))!==s&&t9(e,l,a,c)}}tJ(eB.afterSanitizeAttributes,e,null)},ne=function(e){let t=null,n=tV(e);for(tJ(eB.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tJ(eB.uponSanitizeShadowNode,t,null),t5(t,e),t8(t),tK(t.content)&&ne(t.content),1===ek(t)){let e=eE(t);tK(e)&&(nt(e),ne(e))}tJ(eB.afterSanitizeShadowDOM,e,null)},nt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ne(e.shadow);continue}let n=e.node,r=1===ek(n),i=eS(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eO?eO(n):null;if("string"==typeof e&&"template"===tk(e)){let e=n.content;tK(e)&&t.push({node:e,shadow:null})}}if(r){let e=eE(n);tK(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,l=null,s=null;if((tb=!e)&&(e="<!-->"),"string"!=typeof e&&!tZ(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return k(e);case"boolean":return I(e);case"bigint":return P?P(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return _(e);case"function":case"object":{if(null===e)return _(e);let t=H(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:_(n)}return _(e)}}}(e)))throw L("dirty is not a string, aborting");if(!i.isSupported)return e;e3?(eY=e6,eG=e9):tN(n),(eB.uponSanitizeElement.length>0||eB.uponSanitizeAttribute.length>0)&&(eY=z(eY)),eB.uponSanitizeAttribute.length>0&&(eG=z(eG)),i.removed=[];let u=ta&&"string"!=typeof e&&tZ(e);if(u){t$(e);let t=eI(e);if("string"==typeof t){let n=tk(t);if(!eY[n]||eK[n])throw tz(e),L("root node is forbidden and cannot be sanitized in-place")}if(tX(e))throw tz(e),L("root node is clobbered and cannot be sanitized in-place");try{nt(e)}catch(t){throw tz(e),t}}else if(tZ(e))1===(o=(r=tY("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),nt(o);else{if(!te&&!e5&&!e4&&-1===e.indexOf("<"))return t&&tn?eD(e):e;if(!(r=tY(e)))return te?null:tn?eP:""}r&&e8&&tF(r.firstChild);let c=u?e:r;try{let e=tV(c);for(;l=e.nextNode();)t5(l,c),t8(l),tK(l.content)&&ne(l.content)}catch(t){throw u&&(tz(e),y(i.removed,e=>{e.element&&tW(e.element)})),t}if(u)return y(i.removed,e=>{e.element&&tW(e.element)}),e5&&tq(e),e;if(te){if(e5&&tq(r),tt)for(s=eH.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(eG.shadowroot||eG.shadowrootmode)&&(s=eW.call(a,s,!0)),s}let f=e4?r.outerHTML:r.innerHTML;return e4&&eY["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&D(el,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),e5&&(f=tG(f)),t&&tn?eD(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tN(e),e3=!0,e6=eY,e9=eG},i.clearConfig=function(){tI=null,e3=!1,e6=null,e9=null,t=n,eP=""},i.isValidAttribute=function(e,t,n){return tI||tN({}),t7(tk(e),tk(t),n)},i.addHook=function(e,t){"function"!=typeof t||N(eB,e)&&x(eB[e],t)},i.removeHook=function(e,t){if(N(eB,e)){if(void 0!==t){let n=v(eB[e],t);return -1===n?void 0:w(eB[e],n,1)[0]}return b(eB[e])}},i.removeHooks=function(e){N(eB,e)&&(eB[e]=[])},i.removeAllHooks=function(){eB=eg()},i}()},446410,(e,t,n)=>{t.exports=self.DOMPurify||(self.DOMPurify=e.r(703246).default||e.r(703246))},738565,e=>{"use strict";var t=e.i(148014);e.s(["CheckCircleFillIcon",0,({size:e=24,title:n,titleId:r,width:i,height:o,fill:l,...a})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i??e,height:o??e,fill:"none",viewBox:"0 0 24 24","aria-labelledby":r,...a,children:[n?(0,t.jsx)("title",{id:r,children:n}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.25A9.75 9.75 0 0 1 21.75 12 9.75 9.75 0 0 1 12 21.75 9.75 9.75 0 0 1 2.25 12 9.75 9.75 0 0 1 12 2.25m3.173 6.38a.75.75 0 0 0-1.043.197l-3.171 4.649-1.117-1.437a.75.75 0 0 0-1.184.922l1.75 2.25a.75.75 0 0 0 1.212-.038l3.75-5.5a.75.75 0 0 0-.197-1.043",clipRule:"evenodd"})]})])},686310,e=>{"use strict";var t=e.i(148014);
2e.s(["ExclamationMarkTriangleFillIcon",0,({size:e=24,title:n,titleId:r,width:i,height:o,fill:l,...a})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i??e,height:o??e,fill:"none",viewBox:"0 0 24 24","aria-labelledby":r,...a,children:[n?(0,t.jsx)("title",{id:r,children:n}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.319 3.767c1.185-2.075 4.175-2.075 5.36 0l7.66 13.403c1.175 2.058-.31 4.62-2.68 4.62H4.34c-2.371 0-3.857-2.562-2.68-4.62zm2.68 11.608c-.55 0-1 .445-1 1l.006.103A1.001 1.001 0 1 0 12.1 15.38zm0-6.745a.75.75 0 0 0-.75.75v3.74a.75.75 0 0 0 1.5 0V9.38a.75.75 0 0 0-.75-.75",clipRule:"evenodd"})]})])},473854,977815,59870,786209,e=>{"use strict";var t=e.i(148014),n=e.i(299527),r=e.i(68051),i=e.i(446410),o=e.i(738565),l=e.i(686310);let a=({size:e=24,title:n,titleId:r,width:i,height:o,fill:l,...a})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i??e,height:o??e,fill:"none",viewBox:"0 0 24 24","aria-labelledby":r,...a,children:[n?(0,t.jsx)("title",{id:r,children:n}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.25A9.75 9.75 0 0 0 2.25 12 9.75 9.75 0 0 0 12 21.75 9.75 9.75 0 0 0 21.75 12 9.75 9.75 0 0 0 12 2.25m-.059 6.497c.753-.041 1.4.526 1.46 1.274-.01.35-.252.641-.799 1.086q-.065.054-.14.112c-.213.172-.469.376-.668.584-.25.262-.544.66-.544 1.197a.75.75 0 0 0 1.5.01.6.6 0 0 1 .128-.17c.123-.13.276-.252.48-.415l.19-.154c.518-.42 1.353-1.126 1.353-2.272q0-.022-.002-.046a2.887 2.887 0 0 0-3.004-2.705 2.93 2.93 0 0 0-2.94 2.267.75.75 0 0 0 1.46.34 1.43 1.43 0 0 1 1.454-1.107zm.934 7.008a.875.875 0 1 1-1.75 0 .875.875 0 0 1 1.75 0",clipRule:"evenodd"})]}),s=({size:e=24,title:n,titleId:r,width:i,height:o,fill:l,...a})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i??e,height:o??e,fill:"none",viewBox:"0 0 24 24","aria-labelledby":r,...a,children:[n?(0,t.jsx)("title",{id:r,children:n}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 7a.75.75 0 0 1 1.06 0L12 10.94 15.94 7A.75.75 0 1 1 17 8.06L13.06 12 17 15.94A.75.75 0 1 1 15.94 17L12 13.06 8.06 17A.75.75 0 1 1 7 15.94L10.94 12 7 8.06A.75.75 0 0 1 7 7",clipRule:"evenodd"})]});e.s(["XmarkSmallIcon",0,s],977815),e.i(600582);var u=e.i(756703);e.i(930765);var c=e.i(989650);e.i(875398);var f=e.i(146234);e.i(79774);var d=e.i(322514),p=e.i(294237);let m=(0,p.cva)("z-snackbar pointer-events-none fixed inset-x-12 top-12 mx-auto w-[calc(100vw-24px)] outline-none sm:right-12 sm:left-auto sm:mx-0 sm:w-[318px]"),h=(0,p.cva)(["group/toast bg-card focus-visible:ring-border-emphasis pointer-events-auto absolute inset-x-0 top-0 z-[calc(1000-var(--toast-index))] mx-auto w-full overflow-visible rounded-xl shadow-md outline-none select-none focus-visible:ring-2",["origin-top will-change-transform","[--gap:4px] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)+calc(var(--toast-index)*var(--gap))+var(--toast-swipe-movement-y))] [--peek:12px] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) motion-reduce:transition-none [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--peek))+(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:start-0 after:bottom-full after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]"],"data-starting-style:[transform:translateX(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateX(150%)]"]),g=(0,p.cva)("flex min-h-56 items-start gap-8 overflow-hidden rounded-[inherit] px-12 transition-opacity duration-[250ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none data-behind:opacity-0 data-expanded:opacity-100"),y="w-full text-text-high-emphasis group-data-[type=error]/toast:text-negative-text-on-card group-data-[type=success]/toast:text-positive-text-on-card",v=(0,p.cva)(y),b=(0,p.cva)(y),x=(0,p.cva)("my-12 shrink-0"),w=(0,p.cva)("rounded-md"),S=(0,p.cva)("shrink-0 self-center"),T=(0,p.cva)("[&_svg]:text-svg-icon-xs"),E=(0,p.cva)("flex w-28 shrink-0 items-center justify-center self-stretch [&_svg]:h-20 [&_svg]:w-20"),A=(0,p.cva)("flex min-h-56 min-w-0 flex-1 flex-col justify-center gap-2 py-6"),R=r.Toast.createToastManager();function O(e){let i,o,l,a=(0,n.c)(6);a[0]!==e?({timeout:o,...i}=e,a[0]=e,a[1]=i,a[2]=o):(i=a[1],o=a[2]);let s=void 0===o?4500:o;return a[3]!==i||a[4]!==s?(l=(0,t.jsx)(r.Toast.Provider,{timeout:s,...i}),a[3]=i,a[4]=s,a[5]=l):l=a[5],l}function C(e){let i,o=(0,n.c)(2);return o[0]!==e?(i=(0,t.jsx)(r.Toast.Portal,{"data-slot":"toast-portal",...e}),o[0]=e,o[1]=i):i=o[1],i}function k(e){let i,o,l,a,s=(0,n.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(l=m({className:i}),s[3]=i,s[4]=l):l=s[4],s[5]!==o||s[6]!==l?(a=(0,t.jsx)(r.Toast.Viewport,{className:l,"data-slot":"toast-viewport",...o}),s[5]=o,s[6]=l,s[7]=a):a=s[7],a}function I(e){return"string"==typeof e&&e?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:i.default.sanitize(e,{ALLOWED_TAGS:["b","br","em","i","strong"],ALLOWED_ATTR:[],ALLOW_ARIA_ATTR:!1,ALLOW_DATA_ATTR:!1})}}):e}function P(e){let i,o,l,a,s,u,c,f,d,p,m,g,y=(0,n.c)(22);y[0]!==e?({className:i,swipeDirection:l,toast:a,...o}=e,y[0]=e,y[1]=i,y[2]=o,y[3]=l,y[4]=a):(i=y[1],o=y[2],l=y[3],a=y[4]),y[5]!==l?(s=void 0===l?["up","left","right"]:l,y[5]=l,y[6]=s):s=y[6];let v=s;return y[7]!==a.title?(c=I(a.title),y[7]=a.title,y[8]=c):c=y[8],u=c,y[9]!==a.description?(d=I(a.description),y[9]=a.description,y[10]=d):d=y[10],f=d,y[11]!==f||y[12]!==u||y[13]!==a?(p={...a,title:u,description:f},y[11]=f,y[12]=u,y[13]=a,y[14]=p):p=y[14],y[15]!==i?(m=h({className:i}),y[15]=i,y[16]=m):m=y[16],y[17]!==o||y[18]!==v||y[19]!==p||y[20]!==m?(g=(0,t.jsx)(r.Toast.Root,{toast:p,className:m,"data-slot":"toast",swipeDirection:v,...o,"data-theme":"dark"}),y[17]=o,y[18]=v,y[19]=p,y[20]=m,y[21]=g):g=y[21],g}function M(e){let i,o,l,a,s=(0,n.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(l=g({className:i}),s[3]=i,s[4]=l):l=s[4],s[5]!==o||s[6]!==l?(a=(0,t.jsx)(r.Toast.Content,{className:l,"data-slot":"toast-content",...o}),s[5]=o,s[6]=l,s[7]=a):a=s[7],a}function N(e){let i,o,l,a,s=(0,n.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(l=v({className:i}),s[3]=i,s[4]=l):l=s[4],s[5]!==o||s[6]!==l?(a=(0,t.jsx)(d.Typography,{asChild:!0,variant:"body-xs-strong",children:(0,t.jsx)(r.Toast.Title,{className:l,"data-slot":"toast-title",dir:"auto",...o})}),s[5]=o,s[6]=l,s[7]=a):a=s[7],a}function _(e){let i,o,l,a,s=(0,n.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(l=b({className:i}),s[3]=i,s[4]=l):l=s[4],s[5]!==o||s[6]!==l?(a=(0,t.jsx)(d.Typography,{asChild:!0,variant:"body-xs",children:(0,t.jsx)(r.Toast.Description,{className:l,"data-slot":"toast-description",dir:"auto",...o})}),s[5]=o,s[6]=l,s[7]=a):a=s[7],a}function D(e){let i,o,l,a,s,u=(0,n.c)(10);u[0]!==e?({className:i,render:l,...o}=e,u[0]=e,u[1]=i,u[2]=o,u[3]=l):(i=u[1],o=u[2],l=u[3]);let c=l??L;return u[4]!==i?(a=x({className:i}),u[4]=i,u[5]=a):a=u[5],u[6]!==o||u[7]!==c||u[8]!==a?(s=(0,t.jsx)(r.Toast.Action,{render:c,className:a,"data-slot":"toast-action",...o}),u[6]=o,u[7]=c,u[8]=a,u[9]=s):s=u[9],s}function L(e,n){var r;return(0,t.jsx)(u.Button,{...e,className:w({className:e.className}),color:"success"===(r=n.type)?"positive":"error"===r?"negative":"base",size:"sm",variant:"solid"})}function F(e){let i,o,l,a,u,c,f,d,p=(0,n.c)(16);p[0]!==e?({"aria-label":u,children:i,className:o,render:a,...l}=e,p[0]=e,p[1]=i,p[2]=o,p[3]=l,p[4]=a,p[5]=u):(i=p[1],o=p[2],l=p[3],a=p[4],u=p[5]);let m=void 0===u?"Close notification":u,h=a??j;return p[6]!==o?(c=S({className:o}),p[6]=o,p[7]=c):c=p[7],p[8]!==i?(f=i??(0,t.jsx)(s,{}),p[8]=i,p[9]=f):f=p[9],p[10]!==m||p[11]!==l||p[12]!==h||p[13]!==c||p[14]!==f?(d=(0,t.jsx)(r.Toast.Close,{render:h,className:c,"data-slot":"toast-close","aria-label":m,...l,children:f}),p[10]=m,p[11]=l,p[12]=h,p[13]=c,p[14]=f,p[15]=d):d=p[15],d}function j(e){return(0,t.jsx)(c.IconButton,{...e,rounded:!0,className:T({className:e.className}),color:"base",size:"xs",variant:"transparent"})}function z(e){let r,i,s=(0,n.c)(6),{icon:u,type:c}=e;if(null===u)return null;let d=u;if(void 0===d)if("success"===c){let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.SvgIcon,{color:"positive-shape-on-surface",component:o.CheckCircleFillIcon,fontSize:"sm"}),s[0]=e):e=s[0],d=e}else if("error"===c){let e;s[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.SvgIcon,{color:"negative-shape-on-surface",component:l.ExclamationMarkTri
2angleFillIcon,fontSize:"sm"}),s[1]=e):e=s[1],d=e}else{let e;s[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.SvgIcon,{color:"base-shape-on-surface",component:a,fontSize:"sm"}),s[2]=e):e=s[2],d=e}return s[3]===Symbol.for("react.memo_cache_sentinel")?(r=E(),s[3]=r):r=s[3],s[4]!==d?(i=(0,t.jsx)("span",{className:r,"data-slot":"toast-icon",children:d}),s[4]=d,s[5]=i):i=s[5],i}function H(){let e,t=(0,n.c)(2),{toasts:i}=r.Toast.useToastManager();return t[0]!==i?(e=i.map(U),t[0]=i,t[1]=e):e=t[1],e}function U(e){let n=e.data?.dismissible??!1;return(0,t.jsx)(P,{toast:e,children:(0,t.jsxs)(M,{children:[n?(0,t.jsx)(F,{}):(0,t.jsx)(z,{icon:e.data?.icon,type:e.type}),(0,t.jsxs)("div",{className:A(),children:[(0,t.jsx)(N,{}),(0,t.jsx)(_,{})]}),(0,t.jsx)(D,{})]})},e.id)}function W(e){let r,i,o,l,a,s,u,c=(0,n.c)(13);c[0]!==e?({children:r,dir:i,toastManager:l,...o}=e,c[0]=e,c[1]=r,c[2]=i,c[3]=o,c[4]=l):(r=c[1],i=c[2],o=c[3],l=c[4]);let f=void 0===l?R:l;return c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(H,{}),c[5]=a):a=c[5],c[6]!==i?(s=(0,t.jsx)(C,{children:(0,t.jsx)(k,{dir:i,children:a})}),c[6]=i,c[7]=s):s=c[7],c[8]!==r||c[9]!==o||c[10]!==f||c[11]!==s?(u=(0,t.jsxs)(O,{toastManager:f,...o,children:[r,s]}),c[8]=r,c[9]=o,c[10]=f,c[11]=s,c[12]=u):u=c[12],u}r.Toast.useToastManager,e.s(["Toast",0,function(e){let r,i=(0,n.c)(2);return i[0]!==e?(r=(0,t.jsx)(W,{...e}),i[0]=e,i[1]=r):r=i[1],r},"toast",0,R],59870),e.s(["showToast",0,function(e){let{description:t,dismissible:n,duration:r,icon:i,timeout:o,title:l,type:a="neutral",...s}=e;return R.add({...s,data:void 0===n&&void 0===i?void 0:{dismissible:n,icon:i},description:t,timeout:r??o??3e3,title:l,type:a})}],786209),e.s([],473854)}]);
3
4//# debugId=8230542f-fc22-386d-6ad0-76ac5a7d2690

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.