ode-explorer 1.1.0-develop-b2school.202311281653 → 1.1.0-develop-b2school.202312191840

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{u as rt,j as f,I as dt,a8 as lt,w as ct,af as mt,ag as _t,ah as ft,ai as B,aj as st,d as ht,n as Mt,ak as pt,p as gt,e as vt,N as yt,ac as $t,r as Yt,a5 as xt,R as tt,ae as et,B as St}from"./index.js";import{T as nt}from"./Tooltip.js";import{C as U}from"./Card.js";import"/assets/js/edifice-ts-client/index.js";const at=({app:y,resource:d,time:m,isSelected:u=!1,isSelectable:g=!0,onClick:c,onSelect:r})=>{const b=`/userbook/avatar/${d==null?void 0:d.creatorId}`;function p(T){const{rights:w,creatorId:k}=T||{};return w.filter(I=>!I.includes(k)).length>=1}const l=p(d),x=d==null?void 0:d.public,{t:h}=rt();return f.jsx(U,{app:y,isSelected:u,isSelectable:g,onClick:c,onSelect:r,children:T=>f.jsxs(f.Fragment,{children:[f.jsxs(U.Body,{children:[f.jsx("div",{className:"card-image",children:d!=null&&d.thumbnail?f.jsx(dt,{alt:"",height:80,width:80,src:d==null?void 0:d.thumbnail,objectFit:"cover",className:"rounded h-full"}):f.jsx(lt,{app:y,iconFit:"ratio",size:"80",variant:"rounded"})}),f.jsxs("div",{className:"text-truncate",children:[f.jsx(U.Title,{children:d==null?void 0:d.name}),f.jsx(U.Text,{children:f.jsx("em",{children:m})})]})]}),f.jsxs(U.Footer,{children:[f.jsxs("div",{className:`
1
+ import{u as rt,j as f,I as dt,a8 as lt,w as ct,af as mt,ag as _t,ah as ft,ai as st,aj as B,d as ht,n as Mt,ak as pt,p as gt,e as vt,N as yt,ac as $t,r as Yt,a5 as xt,R as tt,ae as et,B as St}from"./index.js";import{T as nt}from"./Tooltip.js";import{C as U}from"./Card.js";import"/assets/js/edifice-ts-client/index.js";const at=({app:y,resource:d,time:m,isSelected:u=!1,isSelectable:g=!0,onClick:c,onSelect:r})=>{const b=`/userbook/avatar/${d==null?void 0:d.creatorId}`;function p(T){const{rights:w,creatorId:k}=T||{};return w.filter(I=>!I.includes(k)).length>=1}const l=p(d),x=d==null?void 0:d.public,{t:h}=rt();return f.jsx(U,{app:y,isSelected:u,isSelectable:g,onClick:c,onSelect:r,children:T=>f.jsxs(f.Fragment,{children:[f.jsxs(U.Body,{children:[f.jsx("div",{className:"card-image",children:d!=null&&d.thumbnail?f.jsx(dt,{alt:"",height:80,width:80,src:d==null?void 0:d.thumbnail,objectFit:"cover",className:"rounded h-full"}):f.jsx(lt,{app:y,iconFit:"ratio",size:"80",variant:"rounded"})}),f.jsxs("div",{className:"text-truncate",children:[f.jsx(U.Title,{children:d==null?void 0:d.name}),f.jsx(U.Text,{children:f.jsx("em",{children:m})})]})]}),f.jsxs(U.Footer,{children:[f.jsxs("div",{className:`
2
2
  d-inline-flex
3
3
  align-items-center
4
4
  gap-8
package/dist/Tooltip.js CHANGED
@@ -1 +1 @@
1
- import{r as F,aj as ht,a as yt,j as J,a5 as gt}from"./index.js";var Ue=function(t){return t.reduce(function(r,n){var a=n[0],o=n[1];return r[a]=o,r},{})},ze=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,R="top",T="bottom",k="right",B="left",De="auto",ce=[R,T,k,B],_="start",fe="end",wt="clippingParents",tt="viewport",oe="popper",bt="reference",Xe=ce.reduce(function(e,t){return e.concat([t+"-"+_,t+"-"+fe])},[]),rt=[].concat(ce,[De]).reduce(function(e,t){return e.concat([t,t+"-"+_,t+"-"+fe])},[]),xt="beforeRead",Ot="read",Et="afterRead",At="beforeMain",jt="main",Pt="afterMain",St="beforeWrite",Dt="write",Rt="afterWrite",Bt=[xt,Ot,Et,At,jt,Pt,St,Dt,Rt];function V(e){return e?(e.nodeName||"").toLowerCase():null}function C(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=C(e).Element;return e instanceof t||e instanceof Element}function M(e){var t=C(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Re(e){if(typeof ShadowRoot>"u")return!1;var t=C(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $t(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!M(o)||!V(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(u){var i=a[u];i===!1?o.removeAttribute(u):o.setAttribute(u,i===!0?"":i)}))})}function Ct(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=u.reduce(function(s,c){return s[c]="",s},{});!M(a)||!V(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const Mt={name:"applyStyles",enabled:!0,phase:"write",fn:$t,effect:Ct,requires:["computeStyles"]};function H(e){return e.split("-")[0]}var K=Math.max,be=Math.min,ee=Math.round;function Pe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function nt(){return!/^((?!chrome|android).)*safari/i.test(Pe())}function te(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&M(e)&&(a=e.offsetWidth>0&&ee(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ee(n.height)/e.offsetHeight||1);var u=Q(e)?C(e):window,i=u.visualViewport,s=!nt()&&r,c=(n.left+(s&&i?i.offsetLeft:0))/a,f=(n.top+(s&&i?i.offsetTop:0))/o,l=n.width/a,d=n.height/o;return{width:l,height:d,top:f,right:c+l,bottom:f+d,left:c,x:c,y:f}}function Be(e){var t=te(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function at(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Re(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N(e){return C(e).getComputedStyle(e)}function Tt(e){return["table","td","th"].indexOf(V(e))>=0}function I(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return V(e)==="html"?e:e.assignedSlot||e.parentNode||(Re(e)?e.host:null)||I(e)}function Ye(e){return!M(e)||N(e).position==="fixed"?null:e.offsetParent}function kt(e){var t=/firefox/i.test(Pe()),r=/Trident/i.test(Pe());if(r&&M(e)){var n=N(e);if(n.position==="fixed")return null}var a=xe(e);for(Re(a)&&(a=a.host);M(a)&&["html","body"].indexOf(V(a))<0;){var o=N(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function pe(e){for(var t=C(e),r=Ye(e);r&&Tt(r)&&N(r).position==="static";)r=Ye(r);return r&&(V(r)==="html"||V(r)==="body"&&N(r).position==="static")?t:r||kt(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ie(e,t,r){return K(e,be(t,r))}function Lt(e,t,r){var n=ie(e,t,r);return n>r?r:n}function ot(){return{top:0,right:0,bottom:0,left:0}}function it(e){return Object.assign({},ot(),e)}function st(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Wt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,it(typeof t!="number"?t:st(t,ce))};function Ft(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,u=r.modifiersData.popperOffsets,i=H(r.placement),s=$e(i),c=[B,k].indexOf(i)>=0,f=c?"height":"width";if(!(!o||!u)){var l=Wt(a.padding,r),d=Be(o),p=s==="y"?R:B,y=s==="y"?T:k,h=r.rects.reference[f]+r.rects.reference[s]-u[s]-r.rects.popper[f],v=u[s]-r.rects.reference[s],b=pe(o),O=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,E=h/2-v/2,m=l[p],g=O-d[f]-l[y],w=O/2-d[f]/2+E,x=ie(m,w,g),P=s;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-w,t)}}function Ht(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||at(t.elements.popper,a)&&(t.elements.arrow=a))}const Vt={name:"arrow",enabled:!0,phase:"main",fn:Ft,effect:Ht,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(e){return e.split("-")[1]}var Nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qt(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ee(r*a)/a||0,y:ee(n*a)/a||0}}function Ge(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,u=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,l=e.isFixed,d=u.x,p=d===void 0?0:d,y=u.y,h=y===void 0?0:y,v=typeof f=="function"?f({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var b=u.hasOwnProperty("x"),O=u.hasOwnProperty("y"),E=B,m=R,g=window;if(c){var w=pe(r),x="clientHeight",P="clientWidth";if(w===C(r)&&(w=I(r),N(w).position!=="static"&&i==="absolute"&&(x="scrollHeight",P="scrollWidth")),w=w,a===R||(a===B||a===k)&&o===fe){m=T;var j=l&&w===g&&g.visualViewport?g.visualViewport.height:w[x];h-=j-n.height,h*=s?1:-1}if(a===B||(a===R||a===T)&&o===fe){E=k;var A=l&&w===g&&g.visualViewport?g.visualViewport.width:w[P];p-=A-n.width,p*=s?1:-1}}var S=Object.assign({position:i},c&&Nt),L=f===!0?qt({x:p,y:h},C(r)):{x:p,y:h};if(p=L.x,h=L.y,s){var D;return Object.assign({},S,(D={},D[m]=O?"0":"",D[E]=b?"0":"",D.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",D))}return Object.assign({},S,(t={},t[m]=O?h+"px":"",t[E]=b?p+"px":"",t.transform="",t))}function It(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,u=o===void 0?!0:o,i=r.roundOffsets,s=i===void 0?!0:i,c={placement:H(t.placement),variation:re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:It,data:{}};var ye={passive:!0};function zt(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,u=n.resize,i=u===void 0?!0:u,s=C(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",r.update,ye)}),i&&s.addEventListener("resize",r.update,ye),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",r.update,ye)}),i&&s.removeEventListener("resize",r.update,ye)}}const Xt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zt,data:{}};var Yt={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(e){return e.replace(/left|right|bottom|top/g,function(t){return Yt[t]})}var Gt={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Gt[t]})}function Ce(e){var t=C(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Me(e){return te(I(e)).left+Ce(e).scrollLeft}function Jt(e,t){var r=C(e),n=I(e),a=r.visualViewport,o=n.clientWidth,u=n.clientHeight,i=0,s=0;if(a){o=a.width,u=a.height;var c=nt();(c||!c&&t==="fixed")&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:u,x:i+Me(e),y:s}}function Kt(e){var t,r=I(e),n=Ce(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=K(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=K(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Me(e),s=-n.scrollTop;return N(a||r).direction==="rtl"&&(i+=K(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:u,x:i,y:s}}function Te(e){var t=N(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ft(e){return["html","body","#document"].indexOf(V(e))>=0?e.ownerDocument.body:M(e)&&Te(e)?e:ft(xe(e))}function se(e,t){var r;t===void 0&&(t=[]);var n=ft(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=C(n),u=a?[o].concat(o.visualViewport||[],Te(n)?n:[]):n,i=t.concat(u);return a?i:i.concat(se(xe(u)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qt(e,t){var r=te(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ke(e,t,r){return t===tt?Se(Jt(e,r)):Q(t)?Qt(t,r):Se(Kt(I(e)))}function Zt(e){var t=se(xe(e)),r=["absolute","fixed"].indexOf(N(e).position)>=0,n=r&&M(e)?pe(e):e;return Q(n)?t.filter(function(a){return Q(a)&&at(a,n)&&V(a)!=="body"}):[]}function _t(e,t,r,n){var a=t==="clippingParents"?Zt(e):[].concat(t),o=[].concat(a,[r]),u=o[0],i=o.reduce(function(s,c){var f=Ke(e,c,n);return s.top=K(f.top,s.top),s.right=be(f.right,s.right),s.bottom=be(f.bottom,s.bottom),s.left=K(f.left,s.left),s},Ke(e,u,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function ut(e){var t=e.reference,r=e.element,n=e.placement,a=n?H(n):null,o=n?re(n):null,u=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,s;switch(a){case R:s={x:u,y:t.y-r.height};break;case T:s={x:u,y:t.y+t.height};break;case k:s={x:t.x+t.width,y:i};break;case B:s={x:t.x-r.width,y:i};break;default:s={x:t.x,y:t.y}}var c=a?$e(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case _:s[c]=s[c]-(t[f]/2-r[f]/2);break;case fe:s[c]=s[c]+(t[f]/2-r[f]/2);break}}return s}function ue(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,u=o===void 0?e.strategy:o,i=r.boundary,s=i===void 0?wt:i,c=r.rootBoundary,f=c===void 0?tt:c,l=r.elementContext,d=l===void 0?oe:l,p=r.altBoundary,y=p===void 0?!1:p,h=r.padding,v=h===void 0?0:h,b=it(typeof v!="number"?v:st(v,ce)),O=d===oe?bt:oe,E=e.rects.popper,m=e.elements[y?O:d],g=_t(Q(m)?m:m.contextElement||I(e.elements.popper),s,f,u),w=te(e.elements.reference),x=ut({reference:w,element:E,strategy:"absolute",placement:a}),P=Se(Object.assign({},E,x)),j=d===oe?P:w,A={top:g.top-j.top+b.top,bottom:j.bottom-g.bottom+b.bottom,left:g.left-j.left+b.left,right:j.right-g.right+b.right},S=e.modifiersData.offset;if(d===oe&&S){var L=S[a];Object.keys(A).forEach(function(D){var U=[k,T].indexOf(D)>=0?1:-1,z=[R,T].indexOf(D)>=0?"y":"x";A[D]+=L[z]*U})}return A}function er(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,u=r.padding,i=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?rt:s,f=re(n),l=f?i?Xe:Xe.filter(function(y){return re(y)===f}):ce,d=l.filter(function(y){return c.indexOf(y)>=0});d.length===0&&(d=l);var p=d.reduce(function(y,h){return y[h]=ue(e,{placement:h,boundary:a,rootBoundary:o,padding:u})[H(h)],y},{});return Object.keys(p).sort(function(y,h){return p[y]-p[h]})}function tr(e){if(H(e)===De)return[];var t=ge(e);return[Je(e),t,Je(t)]}function rr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,i=u===void 0?!0:u,s=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,y=p===void 0?!0:p,h=r.allowedAutoPlacements,v=t.options.placement,b=H(v),O=b===v,E=s||(O||!y?[ge(v)]:tr(v)),m=[v].concat(E).reduce(function(Z,q){return Z.concat(H(q)===De?er(t,{placement:q,boundary:f,rootBoundary:l,padding:c,flipVariations:y,allowedAutoPlacements:h}):q)},[]),g=t.rects.reference,w=t.rects.popper,x=new Map,P=!0,j=m[0],A=0;A<m.length;A++){var S=m[A],L=H(S),D=re(S)===_,U=[R,T].indexOf(L)>=0,z=U?"width":"height",$=ue(t,{placement:S,boundary:f,rootBoundary:l,altBoundary:d,padding:c}),W=U?D?k:B:D?T:R;g[z]>w[z]&&(W=ge(W));var le=ge(W),X=[];if(o&&X.push($[L]<=0),i&&X.push($[W]<=0,$[le]<=0),X.every(function(Z){return Z})){j=S,P=!1;break}x.set(S,X)}if(P)for(var ve=y?3:1,Oe=function(q){var ae=m.find(function(me){var Y=x.get(me);if(Y)return Y.slice(0,q).every(function(Ee){return Ee})});if(ae)return j=ae,"break"},ne=ve;ne>0;ne--){var de=Oe(ne);if(de==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const nr={name:"flip",enabled:!0,phase:"main",fn:rr,requiresIfExists:["offset"],data:{_skip:!1}};function Qe(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ze(e){return[R,k,T,B].some(function(t){return e[t]>=0})}function ar(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,u=ue(t,{elementContext:"reference"}),i=ue(t,{altBoundary:!0}),s=Qe(u,n),c=Qe(i,a,o),f=Ze(s),l=Ze(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}const or={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ar};function ir(e,t,r){var n=H(e),a=[B,R].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=o[0],i=o[1];return u=u||0,i=(i||0)*a,[B,k].indexOf(n)>=0?{x:i,y:u}:{x:u,y:i}}function sr(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,u=rt.reduce(function(f,l){return f[l]=ir(l,t.rects,o),f},{}),i=u[t.placement],s=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=u}const fr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sr};function ur(e){var t=e.state,r=e.name;t.modifiersData[r]=ut({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const cr={name:"popperOffsets",enabled:!0,phase:"read",fn:ur,data:{}};function pr(e){return e==="x"?"y":"x"}function lr(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,i=u===void 0?!1:u,s=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,d=r.tether,p=d===void 0?!0:d,y=r.tetherOffset,h=y===void 0?0:y,v=ue(t,{boundary:s,rootBoundary:c,padding:l,altBoundary:f}),b=H(t.placement),O=re(t.placement),E=!O,m=$e(b),g=pr(m),w=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,j=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(o){var D,U=m==="y"?R:B,z=m==="y"?T:k,$=m==="y"?"height":"width",W=w[m],le=W+v[U],X=W-v[z],ve=p?-P[$]/2:0,Oe=O===_?x[$]:P[$],ne=O===_?-P[$]:-x[$],de=t.elements.arrow,Z=p&&de?Be(de):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ot(),ae=q[U],me=q[z],Y=ie(0,x[$],Z[$]),Ee=E?x[$]/2-ve-Y-ae-A.mainAxis:Oe-Y-ae-A.mainAxis,ct=E?-x[$]/2+ve+Y+me+A.mainAxis:ne+Y+me+A.mainAxis,Ae=t.elements.arrow&&pe(t.elements.arrow),pt=Ae?m==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,ke=(D=S==null?void 0:S[m])!=null?D:0,lt=W+Ee-ke-pt,vt=W+ct-ke,Le=ie(p?be(le,lt):le,W,p?K(X,vt):X);w[m]=Le,L[m]=Le-W}if(i){var We,dt=m==="x"?R:B,mt=m==="x"?T:k,G=w[g],he=g==="y"?"height":"width",Fe=G+v[dt],He=G-v[mt],je=[R,B].indexOf(b)!==-1,Ve=(We=S==null?void 0:S[g])!=null?We:0,Ne=je?Fe:G-x[he]-P[he]-Ve+A.altAxis,qe=je?G+x[he]+P[he]-Ve-A.altAxis:He,Ie=p&&je?Lt(Ne,G,qe):ie(p?Ne:Fe,G,p?qe:He);w[g]=Ie,L[g]=Ie-G}t.modifiersData[n]=L}}const vr={name:"preventOverflow",enabled:!0,phase:"main",fn:lr,requiresIfExists:["offset"]};function dr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mr(e){return e===C(e)||!M(e)?Ce(e):dr(e)}function hr(e){var t=e.getBoundingClientRect(),r=ee(t.width)/e.offsetWidth||1,n=ee(t.height)/e.offsetHeight||1;return r!==1||n!==1}function yr(e,t,r){r===void 0&&(r=!1);var n=M(t),a=M(t)&&hr(t),o=I(t),u=te(e,a,r),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((V(t)!=="body"||Te(o))&&(i=mr(t)),M(t)?(s=te(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Me(o))),{x:u.left+i.scrollLeft-s.x,y:u.top+i.scrollTop-s.y,width:u.width,height:u.height}}function gr(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(i){if(!r.has(i)){var s=t.get(i);s&&a(s)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function wr(e){var t=gr(e);return Bt.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function xr(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _e={placement:"bottom",modifiers:[],strategy:"absolute"};function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Or(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?_e:a;return function(i,s,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_e,o),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},l=[],d=!1,p={state:f,setOptions:function(b){var O=typeof b=="function"?b(f.options):b;h(),f.options=Object.assign({},o,f.options,O),f.scrollParents={reference:Q(i)?se(i):i.contextElement?se(i.contextElement):[],popper:se(s)};var E=wr(xr([].concat(n,f.options.modifiers)));return f.orderedModifiers=E.filter(function(m){return m.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var b=f.elements,O=b.reference,E=b.popper;if(et(O,E)){f.rects={reference:yr(O,pe(E),f.options.strategy==="fixed"),popper:Be(E)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var m=0;m<f.orderedModifiers.length;m++){if(f.reset===!0){f.reset=!1,m=-1;continue}var g=f.orderedModifiers[m],w=g.fn,x=g.options,P=x===void 0?{}:x,j=g.name;typeof w=="function"&&(f=w({state:f,options:P,name:j,instance:p})||f)}}}},update:br(function(){return new Promise(function(v){p.forceUpdate(),v(f)})}),destroy:function(){h(),d=!0}};if(!et(i,s))return p;p.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){f.orderedModifiers.forEach(function(v){var b=v.name,O=v.options,E=O===void 0?{}:O,m=v.effect;if(typeof m=="function"){var g=m({state:f,name:b,instance:p,options:E}),w=function(){};l.push(g||w)}})}function h(){l.forEach(function(v){return v()}),l=[]}return p}}var Er=[Xt,cr,Ut,Mt,fr,nr,vr,Vt,or],Ar=Or({defaultModifiers:Er}),jr=typeof Element<"u",Pr=typeof Map=="function",Sr=typeof Set=="function",Dr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function we(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!we(e[n],t[n]))return!1;return!0}var o;if(Pr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!we(n.value[1],t.get(n.value[0])))return!1;return!0}if(Sr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Dr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(jr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!we(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var Rr=function(t,r){try{return we(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Br=ht(Rr);var $r=[],Cr=function(t,r,n){n===void 0&&(n={});var a=F.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||$r},u=F.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=u[0],s=u[1],c=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var y=p.state,h=Object.keys(y.elements);yt.flushSync(function(){s({styles:Ue(h.map(function(v){return[v,y.styles[v]||{}]})),attributes:Ue(h.map(function(v){return[v,y.attributes[v]]}))})})},requires:["computeStyles"]}},[]),f=F.useMemo(function(){var d={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Br(a.current,d)?a.current||d:(a.current=d,d)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=F.useRef();return ze(function(){l.current&&l.current.setOptions(f)},[f]),ze(function(){if(!(t==null||r==null)){var d=n.createPopper||Ar,p=d(t,r,f);return l.current=p,function(){p.destroy(),l.current=null}}},[t,r,n.createPopper]),{state:l.current?l.current.state:null,styles:i.styles,attributes:i.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};const Mr=({children:e,message:t,icon:r=null,placement:n="auto"})=>{const[a,o]=F.useState(null),[u,i]=F.useState(null),[s,c]=F.useState(null),{styles:f,attributes:l}=Cr(a,u,{placement:n,modifiers:[{name:"arrow",options:{element:s}}]}),[d,p]=F.useState(!1);return J.jsxs(J.Fragment,{children:[J.jsx("div",{className:"d-inline-block position-relative z-2",ref:o,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},children:e}),d&&J.jsxs("div",{className:gt("tooltip d-block show mb-12","bs-tooltip-auto"),ref:i,style:f.popper,...l.popper,children:[J.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[r&&r,J.jsx("div",{children:t})]}),J.jsx("div",{className:"tooltip-arrow",ref:c,style:f.arrow})]})]})},kr=Mr;export{kr as T};
1
+ import{r as F,ai as ht,a as yt,j as J,a5 as gt}from"./index.js";var Ue=function(t){return t.reduce(function(r,n){var a=n[0],o=n[1];return r[a]=o,r},{})},ze=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,R="top",T="bottom",k="right",B="left",De="auto",ce=[R,T,k,B],_="start",fe="end",wt="clippingParents",tt="viewport",oe="popper",bt="reference",Xe=ce.reduce(function(e,t){return e.concat([t+"-"+_,t+"-"+fe])},[]),rt=[].concat(ce,[De]).reduce(function(e,t){return e.concat([t,t+"-"+_,t+"-"+fe])},[]),xt="beforeRead",Ot="read",Et="afterRead",At="beforeMain",jt="main",Pt="afterMain",St="beforeWrite",Dt="write",Rt="afterWrite",Bt=[xt,Ot,Et,At,jt,Pt,St,Dt,Rt];function V(e){return e?(e.nodeName||"").toLowerCase():null}function C(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=C(e).Element;return e instanceof t||e instanceof Element}function M(e){var t=C(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Re(e){if(typeof ShadowRoot>"u")return!1;var t=C(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $t(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!M(o)||!V(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(u){var i=a[u];i===!1?o.removeAttribute(u):o.setAttribute(u,i===!0?"":i)}))})}function Ct(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=u.reduce(function(s,c){return s[c]="",s},{});!M(a)||!V(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const Mt={name:"applyStyles",enabled:!0,phase:"write",fn:$t,effect:Ct,requires:["computeStyles"]};function H(e){return e.split("-")[0]}var K=Math.max,be=Math.min,ee=Math.round;function Pe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function nt(){return!/^((?!chrome|android).)*safari/i.test(Pe())}function te(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&M(e)&&(a=e.offsetWidth>0&&ee(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ee(n.height)/e.offsetHeight||1);var u=Q(e)?C(e):window,i=u.visualViewport,s=!nt()&&r,c=(n.left+(s&&i?i.offsetLeft:0))/a,f=(n.top+(s&&i?i.offsetTop:0))/o,l=n.width/a,d=n.height/o;return{width:l,height:d,top:f,right:c+l,bottom:f+d,left:c,x:c,y:f}}function Be(e){var t=te(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function at(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Re(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N(e){return C(e).getComputedStyle(e)}function Tt(e){return["table","td","th"].indexOf(V(e))>=0}function I(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return V(e)==="html"?e:e.assignedSlot||e.parentNode||(Re(e)?e.host:null)||I(e)}function Ye(e){return!M(e)||N(e).position==="fixed"?null:e.offsetParent}function kt(e){var t=/firefox/i.test(Pe()),r=/Trident/i.test(Pe());if(r&&M(e)){var n=N(e);if(n.position==="fixed")return null}var a=xe(e);for(Re(a)&&(a=a.host);M(a)&&["html","body"].indexOf(V(a))<0;){var o=N(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function pe(e){for(var t=C(e),r=Ye(e);r&&Tt(r)&&N(r).position==="static";)r=Ye(r);return r&&(V(r)==="html"||V(r)==="body"&&N(r).position==="static")?t:r||kt(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ie(e,t,r){return K(e,be(t,r))}function Lt(e,t,r){var n=ie(e,t,r);return n>r?r:n}function ot(){return{top:0,right:0,bottom:0,left:0}}function it(e){return Object.assign({},ot(),e)}function st(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Wt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,it(typeof t!="number"?t:st(t,ce))};function Ft(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,u=r.modifiersData.popperOffsets,i=H(r.placement),s=$e(i),c=[B,k].indexOf(i)>=0,f=c?"height":"width";if(!(!o||!u)){var l=Wt(a.padding,r),d=Be(o),p=s==="y"?R:B,y=s==="y"?T:k,h=r.rects.reference[f]+r.rects.reference[s]-u[s]-r.rects.popper[f],v=u[s]-r.rects.reference[s],b=pe(o),O=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,E=h/2-v/2,m=l[p],g=O-d[f]-l[y],w=O/2-d[f]/2+E,x=ie(m,w,g),P=s;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-w,t)}}function Ht(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||at(t.elements.popper,a)&&(t.elements.arrow=a))}const Vt={name:"arrow",enabled:!0,phase:"main",fn:Ft,effect:Ht,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(e){return e.split("-")[1]}var Nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qt(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ee(r*a)/a||0,y:ee(n*a)/a||0}}function Ge(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,u=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,l=e.isFixed,d=u.x,p=d===void 0?0:d,y=u.y,h=y===void 0?0:y,v=typeof f=="function"?f({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var b=u.hasOwnProperty("x"),O=u.hasOwnProperty("y"),E=B,m=R,g=window;if(c){var w=pe(r),x="clientHeight",P="clientWidth";if(w===C(r)&&(w=I(r),N(w).position!=="static"&&i==="absolute"&&(x="scrollHeight",P="scrollWidth")),w=w,a===R||(a===B||a===k)&&o===fe){m=T;var j=l&&w===g&&g.visualViewport?g.visualViewport.height:w[x];h-=j-n.height,h*=s?1:-1}if(a===B||(a===R||a===T)&&o===fe){E=k;var A=l&&w===g&&g.visualViewport?g.visualViewport.width:w[P];p-=A-n.width,p*=s?1:-1}}var S=Object.assign({position:i},c&&Nt),L=f===!0?qt({x:p,y:h},C(r)):{x:p,y:h};if(p=L.x,h=L.y,s){var D;return Object.assign({},S,(D={},D[m]=O?"0":"",D[E]=b?"0":"",D.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",D))}return Object.assign({},S,(t={},t[m]=O?h+"px":"",t[E]=b?p+"px":"",t.transform="",t))}function It(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,u=o===void 0?!0:o,i=r.roundOffsets,s=i===void 0?!0:i,c={placement:H(t.placement),variation:re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:It,data:{}};var ye={passive:!0};function zt(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,u=n.resize,i=u===void 0?!0:u,s=C(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",r.update,ye)}),i&&s.addEventListener("resize",r.update,ye),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",r.update,ye)}),i&&s.removeEventListener("resize",r.update,ye)}}const Xt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zt,data:{}};var Yt={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(e){return e.replace(/left|right|bottom|top/g,function(t){return Yt[t]})}var Gt={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Gt[t]})}function Ce(e){var t=C(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Me(e){return te(I(e)).left+Ce(e).scrollLeft}function Jt(e,t){var r=C(e),n=I(e),a=r.visualViewport,o=n.clientWidth,u=n.clientHeight,i=0,s=0;if(a){o=a.width,u=a.height;var c=nt();(c||!c&&t==="fixed")&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:u,x:i+Me(e),y:s}}function Kt(e){var t,r=I(e),n=Ce(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=K(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=K(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Me(e),s=-n.scrollTop;return N(a||r).direction==="rtl"&&(i+=K(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:u,x:i,y:s}}function Te(e){var t=N(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ft(e){return["html","body","#document"].indexOf(V(e))>=0?e.ownerDocument.body:M(e)&&Te(e)?e:ft(xe(e))}function se(e,t){var r;t===void 0&&(t=[]);var n=ft(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=C(n),u=a?[o].concat(o.visualViewport||[],Te(n)?n:[]):n,i=t.concat(u);return a?i:i.concat(se(xe(u)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qt(e,t){var r=te(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ke(e,t,r){return t===tt?Se(Jt(e,r)):Q(t)?Qt(t,r):Se(Kt(I(e)))}function Zt(e){var t=se(xe(e)),r=["absolute","fixed"].indexOf(N(e).position)>=0,n=r&&M(e)?pe(e):e;return Q(n)?t.filter(function(a){return Q(a)&&at(a,n)&&V(a)!=="body"}):[]}function _t(e,t,r,n){var a=t==="clippingParents"?Zt(e):[].concat(t),o=[].concat(a,[r]),u=o[0],i=o.reduce(function(s,c){var f=Ke(e,c,n);return s.top=K(f.top,s.top),s.right=be(f.right,s.right),s.bottom=be(f.bottom,s.bottom),s.left=K(f.left,s.left),s},Ke(e,u,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function ut(e){var t=e.reference,r=e.element,n=e.placement,a=n?H(n):null,o=n?re(n):null,u=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,s;switch(a){case R:s={x:u,y:t.y-r.height};break;case T:s={x:u,y:t.y+t.height};break;case k:s={x:t.x+t.width,y:i};break;case B:s={x:t.x-r.width,y:i};break;default:s={x:t.x,y:t.y}}var c=a?$e(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case _:s[c]=s[c]-(t[f]/2-r[f]/2);break;case fe:s[c]=s[c]+(t[f]/2-r[f]/2);break}}return s}function ue(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,u=o===void 0?e.strategy:o,i=r.boundary,s=i===void 0?wt:i,c=r.rootBoundary,f=c===void 0?tt:c,l=r.elementContext,d=l===void 0?oe:l,p=r.altBoundary,y=p===void 0?!1:p,h=r.padding,v=h===void 0?0:h,b=it(typeof v!="number"?v:st(v,ce)),O=d===oe?bt:oe,E=e.rects.popper,m=e.elements[y?O:d],g=_t(Q(m)?m:m.contextElement||I(e.elements.popper),s,f,u),w=te(e.elements.reference),x=ut({reference:w,element:E,strategy:"absolute",placement:a}),P=Se(Object.assign({},E,x)),j=d===oe?P:w,A={top:g.top-j.top+b.top,bottom:j.bottom-g.bottom+b.bottom,left:g.left-j.left+b.left,right:j.right-g.right+b.right},S=e.modifiersData.offset;if(d===oe&&S){var L=S[a];Object.keys(A).forEach(function(D){var U=[k,T].indexOf(D)>=0?1:-1,z=[R,T].indexOf(D)>=0?"y":"x";A[D]+=L[z]*U})}return A}function er(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,u=r.padding,i=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?rt:s,f=re(n),l=f?i?Xe:Xe.filter(function(y){return re(y)===f}):ce,d=l.filter(function(y){return c.indexOf(y)>=0});d.length===0&&(d=l);var p=d.reduce(function(y,h){return y[h]=ue(e,{placement:h,boundary:a,rootBoundary:o,padding:u})[H(h)],y},{});return Object.keys(p).sort(function(y,h){return p[y]-p[h]})}function tr(e){if(H(e)===De)return[];var t=ge(e);return[Je(e),t,Je(t)]}function rr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,i=u===void 0?!0:u,s=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,y=p===void 0?!0:p,h=r.allowedAutoPlacements,v=t.options.placement,b=H(v),O=b===v,E=s||(O||!y?[ge(v)]:tr(v)),m=[v].concat(E).reduce(function(Z,q){return Z.concat(H(q)===De?er(t,{placement:q,boundary:f,rootBoundary:l,padding:c,flipVariations:y,allowedAutoPlacements:h}):q)},[]),g=t.rects.reference,w=t.rects.popper,x=new Map,P=!0,j=m[0],A=0;A<m.length;A++){var S=m[A],L=H(S),D=re(S)===_,U=[R,T].indexOf(L)>=0,z=U?"width":"height",$=ue(t,{placement:S,boundary:f,rootBoundary:l,altBoundary:d,padding:c}),W=U?D?k:B:D?T:R;g[z]>w[z]&&(W=ge(W));var le=ge(W),X=[];if(o&&X.push($[L]<=0),i&&X.push($[W]<=0,$[le]<=0),X.every(function(Z){return Z})){j=S,P=!1;break}x.set(S,X)}if(P)for(var ve=y?3:1,Oe=function(q){var ae=m.find(function(me){var Y=x.get(me);if(Y)return Y.slice(0,q).every(function(Ee){return Ee})});if(ae)return j=ae,"break"},ne=ve;ne>0;ne--){var de=Oe(ne);if(de==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const nr={name:"flip",enabled:!0,phase:"main",fn:rr,requiresIfExists:["offset"],data:{_skip:!1}};function Qe(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ze(e){return[R,k,T,B].some(function(t){return e[t]>=0})}function ar(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,u=ue(t,{elementContext:"reference"}),i=ue(t,{altBoundary:!0}),s=Qe(u,n),c=Qe(i,a,o),f=Ze(s),l=Ze(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}const or={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ar};function ir(e,t,r){var n=H(e),a=[B,R].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=o[0],i=o[1];return u=u||0,i=(i||0)*a,[B,k].indexOf(n)>=0?{x:i,y:u}:{x:u,y:i}}function sr(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,u=rt.reduce(function(f,l){return f[l]=ir(l,t.rects,o),f},{}),i=u[t.placement],s=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=u}const fr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sr};function ur(e){var t=e.state,r=e.name;t.modifiersData[r]=ut({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const cr={name:"popperOffsets",enabled:!0,phase:"read",fn:ur,data:{}};function pr(e){return e==="x"?"y":"x"}function lr(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,i=u===void 0?!1:u,s=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,d=r.tether,p=d===void 0?!0:d,y=r.tetherOffset,h=y===void 0?0:y,v=ue(t,{boundary:s,rootBoundary:c,padding:l,altBoundary:f}),b=H(t.placement),O=re(t.placement),E=!O,m=$e(b),g=pr(m),w=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,j=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(o){var D,U=m==="y"?R:B,z=m==="y"?T:k,$=m==="y"?"height":"width",W=w[m],le=W+v[U],X=W-v[z],ve=p?-P[$]/2:0,Oe=O===_?x[$]:P[$],ne=O===_?-P[$]:-x[$],de=t.elements.arrow,Z=p&&de?Be(de):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ot(),ae=q[U],me=q[z],Y=ie(0,x[$],Z[$]),Ee=E?x[$]/2-ve-Y-ae-A.mainAxis:Oe-Y-ae-A.mainAxis,ct=E?-x[$]/2+ve+Y+me+A.mainAxis:ne+Y+me+A.mainAxis,Ae=t.elements.arrow&&pe(t.elements.arrow),pt=Ae?m==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,ke=(D=S==null?void 0:S[m])!=null?D:0,lt=W+Ee-ke-pt,vt=W+ct-ke,Le=ie(p?be(le,lt):le,W,p?K(X,vt):X);w[m]=Le,L[m]=Le-W}if(i){var We,dt=m==="x"?R:B,mt=m==="x"?T:k,G=w[g],he=g==="y"?"height":"width",Fe=G+v[dt],He=G-v[mt],je=[R,B].indexOf(b)!==-1,Ve=(We=S==null?void 0:S[g])!=null?We:0,Ne=je?Fe:G-x[he]-P[he]-Ve+A.altAxis,qe=je?G+x[he]+P[he]-Ve-A.altAxis:He,Ie=p&&je?Lt(Ne,G,qe):ie(p?Ne:Fe,G,p?qe:He);w[g]=Ie,L[g]=Ie-G}t.modifiersData[n]=L}}const vr={name:"preventOverflow",enabled:!0,phase:"main",fn:lr,requiresIfExists:["offset"]};function dr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mr(e){return e===C(e)||!M(e)?Ce(e):dr(e)}function hr(e){var t=e.getBoundingClientRect(),r=ee(t.width)/e.offsetWidth||1,n=ee(t.height)/e.offsetHeight||1;return r!==1||n!==1}function yr(e,t,r){r===void 0&&(r=!1);var n=M(t),a=M(t)&&hr(t),o=I(t),u=te(e,a,r),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((V(t)!=="body"||Te(o))&&(i=mr(t)),M(t)?(s=te(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Me(o))),{x:u.left+i.scrollLeft-s.x,y:u.top+i.scrollTop-s.y,width:u.width,height:u.height}}function gr(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(i){if(!r.has(i)){var s=t.get(i);s&&a(s)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function wr(e){var t=gr(e);return Bt.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function xr(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _e={placement:"bottom",modifiers:[],strategy:"absolute"};function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Or(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?_e:a;return function(i,s,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_e,o),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},l=[],d=!1,p={state:f,setOptions:function(b){var O=typeof b=="function"?b(f.options):b;h(),f.options=Object.assign({},o,f.options,O),f.scrollParents={reference:Q(i)?se(i):i.contextElement?se(i.contextElement):[],popper:se(s)};var E=wr(xr([].concat(n,f.options.modifiers)));return f.orderedModifiers=E.filter(function(m){return m.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var b=f.elements,O=b.reference,E=b.popper;if(et(O,E)){f.rects={reference:yr(O,pe(E),f.options.strategy==="fixed"),popper:Be(E)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var m=0;m<f.orderedModifiers.length;m++){if(f.reset===!0){f.reset=!1,m=-1;continue}var g=f.orderedModifiers[m],w=g.fn,x=g.options,P=x===void 0?{}:x,j=g.name;typeof w=="function"&&(f=w({state:f,options:P,name:j,instance:p})||f)}}}},update:br(function(){return new Promise(function(v){p.forceUpdate(),v(f)})}),destroy:function(){h(),d=!0}};if(!et(i,s))return p;p.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){f.orderedModifiers.forEach(function(v){var b=v.name,O=v.options,E=O===void 0?{}:O,m=v.effect;if(typeof m=="function"){var g=m({state:f,name:b,instance:p,options:E}),w=function(){};l.push(g||w)}})}function h(){l.forEach(function(v){return v()}),l=[]}return p}}var Er=[Xt,cr,Ut,Mt,fr,nr,vr,Vt,or],Ar=Or({defaultModifiers:Er}),jr=typeof Element<"u",Pr=typeof Map=="function",Sr=typeof Set=="function",Dr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function we(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!we(e[n],t[n]))return!1;return!0}var o;if(Pr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!we(n.value[1],t.get(n.value[0])))return!1;return!0}if(Sr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Dr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(jr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!we(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var Rr=function(t,r){try{return we(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Br=ht(Rr);var $r=[],Cr=function(t,r,n){n===void 0&&(n={});var a=F.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||$r},u=F.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=u[0],s=u[1],c=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var y=p.state,h=Object.keys(y.elements);yt.flushSync(function(){s({styles:Ue(h.map(function(v){return[v,y.styles[v]||{}]})),attributes:Ue(h.map(function(v){return[v,y.attributes[v]]}))})})},requires:["computeStyles"]}},[]),f=F.useMemo(function(){var d={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Br(a.current,d)?a.current||d:(a.current=d,d)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=F.useRef();return ze(function(){l.current&&l.current.setOptions(f)},[f]),ze(function(){if(!(t==null||r==null)){var d=n.createPopper||Ar,p=d(t,r,f);return l.current=p,function(){p.destroy(),l.current=null}}},[t,r,n.createPopper]),{state:l.current?l.current.state:null,styles:i.styles,attributes:i.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};const Mr=({children:e,message:t,icon:r=null,placement:n="auto"})=>{const[a,o]=F.useState(null),[u,i]=F.useState(null),[s,c]=F.useState(null),{styles:f,attributes:l}=Cr(a,u,{placement:n,modifiers:[{name:"arrow",options:{element:s}}]}),[d,p]=F.useState(!1);return J.jsxs(J.Fragment,{children:[J.jsx("div",{className:"d-inline-block position-relative z-2",ref:o,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},children:e}),d&&J.jsxs("div",{className:gt("tooltip d-block show mb-12","bs-tooltip-auto"),ref:i,style:f.popper,...l.popper,children:[J.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[r&&r,J.jsx("div",{children:t})]}),J.jsx("div",{className:"tooltip-arrow",ref:c,style:f.arrow})]})]})},kr=Mr;export{kr as T};