@storybook/components 7.0.0-alpha.26 → 7.0.0-alpha.27
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.
- package/dist/{WithTooltip-DT5MBLBP.mjs → WithTooltip-RLHWCLNI.mjs} +1 -1
- package/dist/chunk-DOXQFWKR.mjs +1 -0
- package/dist/{chunk-VRGGYK7V.mjs → chunk-JEIBMHVL.mjs} +2 -2
- package/dist/html.mjs +1 -1
- package/dist/index.js +125 -125
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-B7JBN7QU.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as ca,A as D,B as E,C as F,D as G,E as H,F as I,G as J,H as K,I as L,J as M,K as N,L as O,M as P,N as Q,O as R,P as S,Q as T,R as U,S as V,T as W,U as X,V as Y,W as Z,X as _,Y as $,Z as aa,_ as ba,a,aa as da,b,ba as ea,c,ca as fa,d,da as ga,e,ea as ha,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-
|
|
1
|
+
import{$ as ca,A as D,B as E,C as F,D as G,E as H,F as I,G as J,H as K,I as L,J as M,K as N,L as O,M as P,N as Q,O as R,P as S,Q as T,R as U,S as V,T as W,U as X,V as Y,W as Z,X as _,Y as $,Z as aa,_ as ba,a,aa as da,b,ba as ea,c,ca as fa,d,da as ga,e,ea as ha,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-JEIBMHVL.mjs";import{a as f,b as g,c as h}from"./chunk-Y6UFDINQ.mjs";import"./chunk-DOXQFWKR.mjs";import"./chunk-4X44FYPN.mjs";import"./chunk-YAFA3GB2.mjs";import"./chunk-4WK7HOG6.mjs";import"./chunk-LC7SMRDR.mjs";import"./chunk-6DJSDOUY.mjs";import"./chunk-QXAZSNDI.mjs";import"./chunk-IVMRYYOF.mjs";import"./chunk-EZE5MBDV.mjs";import"./chunk-QGMJ4JHD.mjs";import"./chunk-NLOH2CIO.mjs";import"./chunk-ZV7AC5A7.mjs";import"./chunk-6EV5ZZOA.mjs";import"./chunk-7HBVBYF4.mjs";import"./chunk-ODU4EEZU.mjs";import"./chunk-MRAUGYIE.mjs";import"./chunk-EX2QXXYQ.mjs";export{d as A,f as ActionBar,ba as AddonPanel,C as Badge,S as Bar,e as Blockquote,L as Button,i as Code,k as DL,j as Div,G as DocumentWrapper,T as FlexBar,M as Form,l as H1,m as H2,n as H3,o as H4,p as H5,q as H6,r as HR,V as IconButton,W as IconButtonSkeleton,D as Icons,s as Img,t as LI,F as Link,ea as Loader,u as OL,v as P,J as Placeholder,w as Pre,B as ResetWrapper,g as ScrollArea,$ as Separator,I as Spaced,x as Span,da as StorybookIcon,ca as StorybookLogo,E as Symbols,H as SyntaxHighlighter,z as TT,X as TabBar,U as TabButton,Y as TabWrapper,y as Table,Z as Tabs,_ as TabsState,R as TooltipLinkList,P as TooltipMessage,Q as TooltipNote,A as UL,N as WithTooltip,O as WithTooltipPure,K as Zoom,b as codeCommon,ga as components,h as createCopyToClipboardFunction,fa as getStoryHref,aa as interleaveSeparators,a as nameSpaceClassNames,ha as resetComponents,c as withReset};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/components",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.27",
|
|
4
4
|
"description": "Core Storybook Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"prepare": "../../../scripts/prepare/bundle.ts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/client-logger": "7.0.0-alpha.
|
|
54
|
+
"@storybook/client-logger": "7.0.0-alpha.27",
|
|
55
55
|
"@storybook/csf": "0.0.2--canary.0899bb7.0",
|
|
56
|
-
"@storybook/theming": "7.0.0-alpha.
|
|
56
|
+
"@storybook/theming": "7.0.0-alpha.27",
|
|
57
57
|
"core-js": "^3.8.2",
|
|
58
58
|
"memoizerific": "^1.11.3",
|
|
59
59
|
"qs": "^6.10.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
],
|
|
101
101
|
"platform": "neutral"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "3e33f0709dd97151b7dfd86fd9858d13fd1c5738"
|
|
104
104
|
}
|
package/dist/chunk-B7JBN7QU.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n}from"./chunk-EX2QXXYQ.mjs";n();n();function Oe(t,e){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},Oe(t,e)}function _t(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Oe(t,e)}n();var R="top",M="bottom",C="right",D="left",Te="auto",ee=[R,M,C,D],J="start",ne="end",lt="clippingParents",Le="viewport",de="popper",ct="reference",Ie=ee.reduce(function(t,e){return t.concat([e+"-"+J,e+"-"+ne])},[]),je=[].concat(ee,[Te]).reduce(function(t,e){return t.concat([e,e+"-"+J,e+"-"+ne])},[]),Ht="beforeRead",kt="read",$t="afterRead",Ft="beforeMain",It="main",qt="afterMain",Xt="beforeWrite",Yt="write",zt="afterWrite",ut=[Ht,kt,$t,Ft,It,qt,Xt,Yt,zt];n();n();n();function L(t){return t?(t.nodeName||"").toLowerCase():null}n();n();function N(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function G(t){var e=N(t).Element;return t instanceof e||t instanceof Element}function T(t){var e=N(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ve(t){if(typeof ShadowRoot>"u")return!1;var e=N(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ut(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},i=e.attributes[r]||{},a=e.elements[r];!T(a)||!L(a)||(Object.assign(a.style,o),Object.keys(i).forEach(function(p){var f=i[p];f===!1?a.removeAttribute(p):a.setAttribute(p,f===!0?"":f)}))})}function Gt(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],a=e.attributes[o]||{},p=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),f=p.reduce(function(s,c){return s[c]="",s},{});!T(i)||!L(i)||(Object.assign(i.style,f),Object.keys(a).forEach(function(s){i.removeAttribute(s)}))})}}var dt={name:"applyStyles",enabled:!0,phase:"write",fn:Ut,effect:Gt,requires:["computeStyles"]};n();n();function j(t){return t.split("-")[0]}n();n();n();var Y=Math.max,ae=Math.min,K=Math.round;function I(t,e){e===void 0&&(e=!1);var r=t.getBoundingClientRect(),o=1,i=1;if(T(t)&&e){var a=t.offsetHeight,p=t.offsetWidth;p>0&&(o=K(r.width)/p||1),a>0&&(i=K(r.height)/a||1)}return{width:r.width/o,height:r.height/i,top:r.top/i,right:r.right/o,bottom:r.bottom/i,left:r.left/o,x:r.left/o,y:r.top/i}}function pe(t){var e=I(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}n();function Ee(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&ve(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}n();n();function H(t){return N(t).getComputedStyle(t)}n();function qe(t){return["table","td","th"].indexOf(L(t))>=0}n();n();function _(t){return((G(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return L(t)==="html"?t:t.assignedSlot||t.parentNode||(ve(t)?t.host:null)||_(t)}function vt(t){return!T(t)||H(t).position==="fixed"?null:t.offsetParent}function Jt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&T(t)){var o=H(t);if(o.position==="fixed")return null}var i=Q(t);for(ve(i)&&(i=i.host);T(i)&&["html","body"].indexOf(L(i))<0;){var a=H(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function z(t){for(var e=N(t),r=vt(t);r&&qe(r)&&H(r).position==="static";)r=vt(r);return r&&(L(r)==="html"||L(r)==="body"&&H(r).position==="static")?e:r||Jt(t)||e}n();function fe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}n();function se(t,e,r){return Y(t,ae(e,r))}function gt(t,e,r){var o=se(t,e,r);return o>r?r:o}n();n();function Pe(){return{top:0,right:0,bottom:0,left:0}}function Se(t){return Object.assign({},Pe(),t)}n();function Re(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Kt=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Se(typeof e!="number"?e:Re(e,ee))};function Qt(t){var e,r=t.state,o=t.name,i=t.options,a=r.elements.arrow,p=r.modifiersData.popperOffsets,f=j(r.placement),s=fe(f),c=[D,C].indexOf(f)>=0,m=c?"height":"width";if(!(!a||!p)){var x=Kt(i.padding,r),B=pe(a),u=s==="y"?R:D,w=s==="y"?M:C,d=r.rects.reference[m]+r.rects.reference[s]-p[s]-r.rects.popper[m],v=p[s]-r.rects.reference[s],E=z(a),P=E?s==="y"?E.clientHeight||0:E.clientWidth||0:0,S=d/2-v/2,g=x[u],y=P-B[m]-x[w],h=P/2-B[m]/2+S,b=se(g,h,y),A=s;r.modifiersData[o]=(e={},e[A]=b,e.centerOffset=b-h,e)}}function Zt(t){var e=t.state,r=t.options,o=r.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Ee(e.elements.popper,i)||(e.elements.arrow=i))}var ht={name:"arrow",enabled:!0,phase:"main",fn:Qt,effect:Zt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};n();n();function q(t){return t.split("-")[1]}var er={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tr(t){var e=t.x,r=t.y,o=window,i=o.devicePixelRatio||1;return{x:K(e*i)/i||0,y:K(r*i)/i||0}}function xt(t){var e,r=t.popper,o=t.popperRect,i=t.placement,a=t.variation,p=t.offsets,f=t.position,s=t.gpuAcceleration,c=t.adaptive,m=t.roundOffsets,x=t.isFixed,B=p.x,u=B===void 0?0:B,w=p.y,d=w===void 0?0:w,v=typeof m=="function"?m({x:u,y:d}):{x:u,y:d};u=v.x,d=v.y;var E=p.hasOwnProperty("x"),P=p.hasOwnProperty("y"),S=D,g=R,y=window;if(c){var h=z(r),b="clientHeight",A="clientWidth";if(h===N(r)&&(h=_(r),H(h).position!=="static"&&f==="absolute"&&(b="scrollHeight",A="scrollWidth")),h=h,i===R||(i===D||i===C)&&a===ne){g=M;var W=x&&h===y&&y.visualViewport?y.visualViewport.height:h[b];d-=W-o.height,d*=s?1:-1}if(i===D||(i===R||i===M)&&a===ne){S=C;var V=x&&h===y&&y.visualViewport?y.visualViewport.width:h[A];u-=V-o.width,u*=s?1:-1}}var O=Object.assign({position:f},c&&er),k=m===!0?tr({x:u,y:d}):{x:u,y:d};if(u=k.x,d=k.y,s){var $;return Object.assign({},O,($={},$[g]=P?"0":"",$[S]=E?"0":"",$.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",$))}return Object.assign({},O,(e={},e[g]=P?d+"px":"",e[S]=E?u+"px":"",e.transform="",e))}function rr(t){var e=t.state,r=t.options,o=r.gpuAcceleration,i=o===void 0?!0:o,a=r.adaptive,p=a===void 0?!0:a,f=r.roundOffsets,s=f===void 0?!0:f;if(!1)var c;var m={placement:j(e.placement),variation:q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,xt(Object.assign({},m,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:p,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,xt(Object.assign({},m,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var yt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rr,data:{}};n();var We={passive:!0};function or(t){var e=t.state,r=t.instance,o=t.options,i=o.scroll,a=i===void 0?!0:i,p=o.resize,f=p===void 0?!0:p,s=N(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(m){m.addEventListener("scroll",r.update,We)}),f&&s.addEventListener("resize",r.update,We),function(){a&&c.forEach(function(m){m.removeEventListener("scroll",r.update,We)}),f&&s.removeEventListener("resize",r.update,We)}}var wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:or,data:{}};n();n();var ir={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(t){return t.replace(/left|right|bottom|top/g,function(e){return ir[e]})}n();var nr={start:"end",end:"start"};function Ve(t){return t.replace(/start|end/g,function(e){return nr[e]})}n();n();n();n();n();function me(t){var e=N(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function le(t){return I(_(t)).left+me(t).scrollLeft}function Xe(t){var e=N(t),r=_(t),o=e.visualViewport,i=r.clientWidth,a=r.clientHeight,p=0,f=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(p=o.offsetLeft,f=o.offsetTop)),{width:i,height:a,x:p+le(t),y:f}}n();function Ye(t){var e,r=_(t),o=me(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=Y(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=Y(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-o.scrollLeft+le(t),s=-o.scrollTop;return H(i||r).direction==="rtl"&&(f+=Y(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:p,x:f,y:s}}n();n();n();function ce(t){var e=H(t),r=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function _e(t){return["html","body","#document"].indexOf(L(t))>=0?t.ownerDocument.body:T(t)&&ce(t)?t:_e(Q(t))}function te(t,e){var r;e===void 0&&(e=[]);var o=_e(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),a=N(o),p=i?[a].concat(a.visualViewport||[],ce(o)?o:[]):o,f=e.concat(p);return i?f:f.concat(te(Q(p)))}n();function he(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ar(t){var e=I(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function bt(t,e){return e===Le?he(Xe(t)):G(e)?ar(e):he(Ye(_(t)))}function pr(t){var e=te(Q(t)),r=["absolute","fixed"].indexOf(H(t).position)>=0,o=r&&T(t)?z(t):t;return G(o)?e.filter(function(i){return G(i)&&Ee(i,o)&&L(i)!=="body"}):[]}function ze(t,e,r){var o=e==="clippingParents"?pr(t):[].concat(e),i=[].concat(o,[r]),a=i[0],p=i.reduce(function(f,s){var c=bt(t,s);return f.top=Y(c.top,f.top),f.right=ae(c.right,f.right),f.bottom=ae(c.bottom,f.bottom),f.left=Y(c.left,f.left),f},bt(t,a));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}n();function Ae(t){var e=t.reference,r=t.element,o=t.placement,i=o?j(o):null,a=o?q(o):null,p=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,s;switch(i){case R:s={x:p,y:e.y-r.height};break;case M:s={x:p,y:e.y+e.height};break;case C:s={x:e.x+e.width,y:f};break;case D:s={x:e.x-r.width,y:f};break;default:s={x:e.x,y:e.y}}var c=i?fe(i):null;if(c!=null){var m=c==="y"?"height":"width";switch(a){case J:s[c]=s[c]-(e[m]/2-r[m]/2);break;case ne:s[c]=s[c]+(e[m]/2-r[m]/2);break;default:}}return s}function U(t,e){e===void 0&&(e={});var r=e,o=r.placement,i=o===void 0?t.placement:o,a=r.boundary,p=a===void 0?lt:a,f=r.rootBoundary,s=f===void 0?Le:f,c=r.elementContext,m=c===void 0?de:c,x=r.altBoundary,B=x===void 0?!1:x,u=r.padding,w=u===void 0?0:u,d=Se(typeof w!="number"?w:Re(w,ee)),v=m===de?ct:de,E=t.rects.popper,P=t.elements[B?v:m],S=ze(G(P)?P:P.contextElement||_(t.elements.popper),p,s),g=I(t.elements.reference),y=Ae({reference:g,element:E,strategy:"absolute",placement:i}),h=he(Object.assign({},E,y)),b=m===de?h:g,A={top:S.top-b.top+d.top,bottom:b.bottom-S.bottom+d.bottom,left:S.left-b.left+d.left,right:b.right-S.right+d.right},W=t.modifiersData.offset;if(m===de&&W){var V=W[i];Object.keys(A).forEach(function(O){var k=[C,M].indexOf(O)>=0?1:-1,$=[R,M].indexOf(O)>=0?"y":"x";A[O]+=V[$]*k})}return A}n();function Ue(t,e){e===void 0&&(e={});var r=e,o=r.placement,i=r.boundary,a=r.rootBoundary,p=r.padding,f=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?je:s,m=q(o),x=m?f?Ie:Ie.filter(function(w){return q(w)===m}):ee,B=x.filter(function(w){return c.indexOf(w)>=0});B.length===0&&(B=x);var u=B.reduce(function(w,d){return w[d]=U(t,{placement:d,boundary:i,rootBoundary:a,padding:p})[j(d)],w},{});return Object.keys(u).sort(function(w,d){return u[w]-u[d]})}function fr(t){if(j(t)===Te)return[];var e=ge(t);return[Ve(t),e,Ve(e)]}function sr(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,p=r.altAxis,f=p===void 0?!0:p,s=r.fallbackPlacements,c=r.padding,m=r.boundary,x=r.rootBoundary,B=r.altBoundary,u=r.flipVariations,w=u===void 0?!0:u,d=r.allowedAutoPlacements,v=e.options.placement,E=j(v),P=E===v,S=s||(P||!w?[ge(v)]:fr(v)),g=[v].concat(S).reduce(function(ue,Z){return ue.concat(j(Z)===Te?Ue(e,{placement:Z,boundary:m,rootBoundary:x,padding:c,flipVariations:w,allowedAutoPlacements:d}):Z)},[]),y=e.rects.reference,h=e.rects.popper,b=new Map,A=!0,W=g[0],V=0;V<g.length;V++){var O=g[V],k=j(O),$=q(O)===J,xe=[R,M].indexOf(k)>=0,ye=xe?"width":"height",F=U(e,{placement:O,boundary:m,rootBoundary:x,altBoundary:B,padding:c}),X=xe?$?C:D:$?M:R;y[ye]>h[ye]&&(X=ge(X));var De=ge(X),re=[];if(a&&re.push(F[k]<=0),f&&re.push(F[X]<=0,F[De]<=0),re.every(function(ue){return ue})){W=O,A=!1;break}b.set(O,re)}if(A)for(var Ne=w?3:1,He=function(Z){var be=g.find(function(Ce){var oe=b.get(Ce);if(oe)return oe.slice(0,Z).every(function(ke){return ke})});if(be)return W=be,"break"},we=Ne;we>0;we--){var Be=He(we);if(Be==="break")break}e.placement!==W&&(e.modifiersData[o]._skip=!0,e.placement=W,e.reset=!0)}}var Ot={name:"flip",enabled:!0,phase:"main",fn:sr,requiresIfExists:["offset"],data:{_skip:!1}};n();function Et(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Pt(t){return[R,C,M,D].some(function(e){return t[e]>=0})}function mr(t){var e=t.state,r=t.name,o=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,p=U(e,{elementContext:"reference"}),f=U(e,{altBoundary:!0}),s=Et(p,o),c=Et(f,i,a),m=Pt(s),x=Pt(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:m,hasPopperEscaped:x},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":x})}var St={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mr};n();function lr(t,e,r){var o=j(t),i=[D,R].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,p=a[0],f=a[1];return p=p||0,f=(f||0)*i,[D,C].indexOf(o)>=0?{x:f,y:p}:{x:p,y:f}}function cr(t){var e=t.state,r=t.options,o=t.name,i=r.offset,a=i===void 0?[0,0]:i,p=je.reduce(function(m,x){return m[x]=lr(x,e.rects,a),m},{}),f=p[e.placement],s=f.x,c=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=p}var Rt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cr};n();function ur(t){var e=t.state,r=t.name;e.modifiersData[r]=Ae({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var At={name:"popperOffsets",enabled:!0,phase:"read",fn:ur,data:{}};n();n();function Ge(t){return t==="x"?"y":"x"}function dr(t){var e=t.state,r=t.options,o=t.name,i=r.mainAxis,a=i===void 0?!0:i,p=r.altAxis,f=p===void 0?!1:p,s=r.boundary,c=r.rootBoundary,m=r.altBoundary,x=r.padding,B=r.tether,u=B===void 0?!0:B,w=r.tetherOffset,d=w===void 0?0:w,v=U(e,{boundary:s,rootBoundary:c,padding:x,altBoundary:m}),E=j(e.placement),P=q(e.placement),S=!P,g=fe(E),y=Ge(g),h=e.modifiersData.popperOffsets,b=e.rects.reference,A=e.rects.popper,W=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,V=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(!!h){if(a){var $,xe=g==="y"?R:D,ye=g==="y"?M:C,F=g==="y"?"height":"width",X=h[g],De=X+v[xe],re=X-v[ye],Ne=u?-A[F]/2:0,He=P===J?b[F]:A[F],we=P===J?-A[F]:-b[F],Be=e.elements.arrow,ue=u&&Be?pe(Be):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pe(),be=Z[xe],Ce=Z[ye],oe=se(0,b[F],ue[F]),ke=S?b[F]/2-Ne-oe-be-V.mainAxis:He-oe-be-V.mainAxis,Mt=S?-b[F]/2+Ne+oe+Ce+V.mainAxis:we+oe+Ce+V.mainAxis,$e=e.elements.arrow&&z(e.elements.arrow),Tt=$e?g==="y"?$e.clientTop||0:$e.clientLeft||0:0,rt=($=O?.[g])!=null?$:0,Lt=X+ke-rt-Tt,jt=X+Mt-rt,ot=se(u?ae(De,Lt):De,X,u?Y(re,jt):re);h[g]=ot,k[g]=ot-X}if(f){var it,Wt=g==="x"?R:D,Vt=g==="x"?M:C,ie=h[y],Me=y==="y"?"height":"width",nt=ie+v[Wt],at=ie-v[Vt],Fe=[R,D].indexOf(E)!==-1,pt=(it=O?.[y])!=null?it:0,ft=Fe?nt:ie-b[Me]-A[Me]-pt+V.altAxis,st=Fe?ie+b[Me]+A[Me]-pt-V.altAxis:at,mt=u&&Fe?gt(ft,ie,st):se(u?ft:nt,ie,u?st:at);h[y]=mt,k[y]=mt-ie}e.modifiersData[o]=k}}var Dt={name:"preventOverflow",enabled:!0,phase:"main",fn:dr,requiresIfExists:["offset"]};n();n();n();n();function Je(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ke(t){return t===N(t)||!T(t)?me(t):Je(t)}function vr(t){var e=t.getBoundingClientRect(),r=K(e.width)/t.offsetWidth||1,o=K(e.height)/t.offsetHeight||1;return r!==1||o!==1}function Qe(t,e,r){r===void 0&&(r=!1);var o=T(e),i=T(e)&&vr(e),a=_(e),p=I(t,i),f={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((L(e)!=="body"||ce(a))&&(f=Ke(e)),T(e)?(s=I(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):a&&(s.x=le(a))),{x:p.left+f.scrollLeft-s.x,y:p.top+f.scrollTop-s.y,width:p.width,height:p.height}}n();function gr(t){var e=new Map,r=new Set,o=[];t.forEach(function(a){e.set(a.name,a)});function i(a){r.add(a.name);var p=[].concat(a.requires||[],a.requiresIfExists||[]);p.forEach(function(f){if(!r.has(f)){var s=e.get(f);s&&i(s)}}),o.push(a)}return t.forEach(function(a){r.has(a.name)||i(a)}),o}function Ze(t){var e=gr(t);return ut.reduce(function(r,o){return r.concat(e.filter(function(i){return i.phase===o}))},[])}n();function et(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}n();function tt(t){var e=t.reduce(function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ct(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,o=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?Nt:i;return function(f,s,c){c===void 0&&(c=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,a),modifiersData:{},elements:{reference:f,popper:s},attributes:{},styles:{}},x=[],B=!1,u={state:m,setOptions:function(E){var P=typeof E=="function"?E(m.options):E;d(),m.options=Object.assign({},a,m.options,P),m.scrollParents={reference:G(f)?te(f):f.contextElement?te(f.contextElement):[],popper:te(s)};var S=Ze(tt([].concat(o,m.options.modifiers)));if(m.orderedModifiers=S.filter(function(O){return O.enabled}),!1){var g;if(getBasePlacement(m.options.placement)===auto)var y;var h,b,A,W,V}return w(),u.update()},forceUpdate:function(){if(!B){var E=m.elements,P=E.reference,S=E.popper;if(!!Bt(P,S)){m.rects={reference:Qe(P,z(S),m.options.strategy==="fixed"),popper:pe(S)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(O){return m.modifiersData[O.name]=Object.assign({},O.data)});for(var g=0,y=0;y<m.orderedModifiers.length;y++){if(m.reset===!0){m.reset=!1,y=-1;continue}var h=m.orderedModifiers[y],b=h.fn,A=h.options,W=A===void 0?{}:A,V=h.name;typeof b=="function"&&(m=b({state:m,options:W,name:V,instance:u})||m)}}}},update:et(function(){return new Promise(function(v){u.forceUpdate(),v(m)})}),destroy:function(){d(),B=!0}};if(!Bt(f,s))return u;u.setOptions(c).then(function(v){!B&&c.onFirstUpdate&&c.onFirstUpdate(v)});function w(){m.orderedModifiers.forEach(function(v){var E=v.name,P=v.options,S=P===void 0?{}:P,g=v.effect;if(typeof g=="function"){var y=g({state:m,name:E,instance:u,options:S}),h=function(){};x.push(y||h)}})}function d(){x.forEach(function(v){return v()}),x=[]}return u}}n();var hr=[wt,At,yt,dt,Rt,Ot,Dt,ht,St],xr=Ct({defaultModifiers:hr});export{Oe as a,_t as b,Te as c,xr as d};
|