Anvil/sb-addons/interactions-9/manager-bundle.js

13 lines
93 KiB
JavaScript
Raw Normal View History

2024-02-08 10:52:22 +01:00
try{
(()=>{var ze=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var i=__REACT__,{Children:pi,Component:mi,Fragment:$e,Profiler:fi,PureComponent:di,StrictMode:gi,Suspense:bi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hi,cloneElement:yi,createContext:Ei,createElement:H,createFactory:vi,createRef:Si,forwardRef:_i,isValidElement:wi,lazy:Oi,memo:st,useCallback:ir,useContext:Ti,useDebugValue:Ri,useEffect:Be,useImperativeHandle:Ci,useLayoutEffect:xi,useMemo:lr,useReducer:Pi,useRef:pt,useState:Pe,version:Ai}=__REACT__;var $i=__STORYBOOK_API__,{ActiveTabs:ki,Consumer:cr,ManagerContext:Fi,Provider:Mi,addons:Ct,combineParameters:Li,controlOrMetaKey:zi,controlOrMetaSymbol:Bi,eventMatchesShortcut:Di,eventToShortcut:Wi,isMacLike:Hi,isShortcutTaken:qi,keyToSymbol:Gi,merge:Ui,mockChannel:Yi,optionOrAltSymbol:Vi,shortcutMatchesShortcut:Ki,shortcutToHumanString:Ji,types:ur,useAddonState:xt,useArgTypes:Xi,useArgs:Zi,useChannel:sr,useGlobalTypes:Qi,useGlobals:el,useParameter:pr,useSharedState:tl,useStoryPrepared:rl,useStorybookApi:nl,useStorybookState:al}=__STORYBOOK_API__;var ul=__STORYBOOK_COMPONENTS__,{A:sl,ActionBar:pl,AddonPanel:mr,Badge:fr,Bar:dr,Blockquote:ml,Button:gr,ClipboardCode:fl,Code:dl,DL:gl,Div:bl,DocumentWrapper:hl,ErrorFormatter:yl,FlexBar:El,Form:vl,H1:Sl,H2:_l,H3:wl,H4:Ol,H5:Tl,H6:Rl,HR:Cl,IconButton:Pt,IconButtonSkeleton:xl,Icons:ke,Img:Pl,LI:Al,Link:br,ListItem:jl,Loader:Il,OL:Nl,P:hr,Placeholder:yr,Pre:$l,ResetWrapper:kl,ScrollArea:Fl,Separator:Er,Spaced:vr,Span:Ml,StorybookIcon:Ll,StorybookLogo:zl,Symbols:Bl,SyntaxHighlighter:Dl,TT:Wl,TabBar:Hl,TabButton:ql,TabWrapper:Gl,Table:Ul,Tabs:Yl,TabsState:Vl,TooltipLinkList:Kl,TooltipMessage:Jl,TooltipNote:At,UL:Xl,WithTooltip:De,WithTooltipPure:Zl,Zoom:Ql,codeCommon:ec,components:tc,createCopyToClipboardFunction:rc,getStoryHref:nc,icons:ac,interleaveSeparators:oc,nameSpaceClassNames:ic,resetComponents:lc,withReset:cc}=__STORYBOOK_COMPONENTS__;var fc=__STORYBOOK_CLIENT_LOGGER__,{deprecate:dc,logger:gc,once:bc,pretty:hc}=__STORYBOOK_CLIENT_LOGGER__;var _c=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:wc,CONFIG_ERROR:Oc,CURRENT_STORY_WAS_SET:Tc,DOCS_PREPARED:Rc,DOCS_RENDERED:Cc,FORCE_REMOUNT:Sr,FORCE_RE_RENDER:xc,GLOBALS_UPDATED:Pc,IGNORED_EXCEPTION:_r,NAVIGATE_URL:Ac,PLAY_FUNCTION_THREW_EXCEPTION:wr,PRELOAD_ENTRIES:jc,PREVIEW_BUILDER_PROGRESS:Ic,PREVIEW_KEYDOWN:Nc,REGISTER_SUBSCRIPTION:$c,REQUEST_WHATS_NEW_DATA:kc,RESET_STORY_ARGS:Fc,RESULT_WHATS_NEW_DATA:Mc,SELECT_STORY:Lc,SET_CONFIG:zc,SET_CURRENT_STORY:Bc,SET_GLOBALS:Dc,SET_INDEX:Wc,SET_STORIES:Hc,SET_WHATS_NEW_CACHE:qc,SHARED_STATE_CHANGED:Gc,SHARED_STATE_SET:Uc,STORIES_COLLAPSE_ALL:Yc,STORIES_EXPAND_ALL:Vc,STORY_ARGS_UPDATED:Kc,STORY_CHANGED:Jc,STORY_ERRORED:Xc,STORY_INDEX_INVALIDATED:Zc,STORY_MISSING:Qc,STORY_PREPARED:eu,STORY_RENDERED:tu,STORY_RENDER_PHASE_CHANGED:Or,STORY_SPECIFIED:ru,STORY_THREW_EXCEPTION:Tr,STORY_UNCHANGED:nu,TELEMETRY_ERROR:au,TOGGLE_WHATS_NEW_NOTIFICATIONS:ou,UPDATE_GLOBALS:iu,UPDATE_QUERY_PARAMS:lu,UPDATE_STORY_ARGS:cu}=__STORYBOOK_CORE_EVENTS__;var mt=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var hu=__STORYBOOK_THEMING__,{CacheProvider:yu,ClassNames:Eu,Global:vu,ThemeProvider:Su,background:_u,color:wu,convert:Ou,create:Tu,createCache:Ru,createGlobal:Cu,createReset:xu,css:Pu,darken:Au,ensure:ju,ignoreSsrWarning:Iu,isPropValid:Nu,jsx:$u,keyframes:ku,lighten:Fu,styled:J,themes:Mu,typography:Ie,useTheme:ft,withTheme:Lu}=__STORYBOOK_THEMING__;function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){
`)!==-1&&(N=b.spacingOuter+S+N+b.spacingOuter+m),N=`{${N}}`),`${b.spacingInner+m+_.prop.open+O+_.prop.close}=${_.value.open}${N}${_.value.close}`}).join("")};e.printProps=n;var a=(f,h,b,m,v,d)=>f.map(y=>h.spacingOuter+b+(typeof y=="string"?u(y,h):d(y,h,b,m,v))).join("");e.printChildren=a;var u=(f,h)=>{let b=h.colors.content;return b.open+(0,t.default)(f)+b.close};e.printText=u;var o=(f,h)=>{let b=h.colors.comment;return`${b.open}<!--${(0,t.default)(f)}-->${b.close}`};e.printComment=o;var c=(f,h,b,m,v)=>{let d=m.colors.tag;return`${d.open}<${f}${h&&d.close+h+m.spacingOuter+v+d.open}${b?`>${d.close}${b}${m.spacingOuter}${v}${d.open}</${f}`:`${h&&!m.min?"":" "}/`}>${d.close}`};e.printElement=c;var p=(f,h)=>{let b=h.colors.tag;return`${b.open}<${f}${b.close} \u2026${b.open} />${b.close}`};e.printElementAsLeaf=p}}),Ea=ye({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Vt(),r=1,n=3,a=8,u=11,o=/^((HTML|SVG)\w*)?Element$/,c=S=>{try{return typeof S.hasAttribute=="function"&&S.hasAttribute("is")}catch{return!1}},p=S=>{let _=S.constructor.name,{nodeType:O,tagName:C}=S,N=typeof C=="string"&&C.includes("-")||c(S);return O===r&&(o.test(_)||N)||O===n&&_==="Text"||O===a&&_==="Comment"||O===u&&_==="DocumentFragment"},f=S=>S?.constructor?.name&&p(S);e.test=f;function h(S){return S.nodeType===n}function b(S){return S.nodeType===a}function m(S){return S.nodeType===u}var v=(S,_,O,C,N,j)=>{if(h(S))return(0,t.printText)(S.data,_);if(b(S))return(0,t.printComment)(S.data,_);let k=m(S)?"DocumentFragment":S.tagName.toLowerCase();return++C>_.maxDepth?(0,t.printElementAsLeaf)(k,_):(0,t.printElement)(k,(0,t.printProps)(m(S)?[]:Array.from(S.attributes,T=>T.name).sort(),m(S)?{}:Array.from(S.attributes).reduce((T,E)=>(T[E.name]=E.value,T),{}),_,O+_.indent,C,N,j),(0,t.printChildren)(Array.prototype.slice.call(S.childNodes||S.children),_,O+_.indent,C,N,j),_,O)};e.serialize=v;var d={serialize:v,test:f},y=d;e.default=y}}),va=ye({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=St(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",u="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",c="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",f="@@__IMMUTABLE_SET__@@",h="@@__IMMUTABLE_STACK__@@",b=E=>`Immutable.${E}`,m=E=>`[${E}]`,v=" ",d="\u2026",y=(E,A,q,z,D,G,B)=>++z>A.maxDepth?m(b(B)):`${b(B)+v}{${(0,t.printIteratorEntries)(E.entries(),A,q,z,D,G)}}`;function S(E){let A=0;return{next(){if(A<E._keys.length){let q=E._keys[A++];return{done:!1,value:[q,E.get(q)]}}return{done:!0,value:void 0}}}}var _=(E,A,q,z,D,G)=>{let B=b(E._name||"Record");return++z>A.maxDepth?m(B):`${B+v}{${(0,t.printIteratorEntries)(S(E),A,q,z,D,G)}}`},O=(E,A,q,z,D,G)=>{let B=b("Seq");return++z>A.maxDepth?m(B):E[a]?`${B+v}{${E._iter||E._object?(0,t.printIteratorEntries)(E.entries(),A,q,z,D,G):d}}`:`${B+v}[${E._iter||E._array||E._collection||E._iterable?(0,t.printIteratorValues)(E.values(),A,q,z,D,G):d}]`},C=(E,A,q,z,D,G,B)=>++z>A.maxDepth?m(b(B)):`${b(B)+v}[${(0,t.printIteratorValues)(E.values(),A,q,z,D,G)}]`,N=(E,A,q,z,D,G)=>E[u]?y(E,A,q,z,D,G,E[o]?"OrderedMap":"Map"):E[n]?C(E,A,q,z,D,G,"List"):E[f]?C(E,A,q,z,D,G,E[o]?"OrderedSet":"Set"):E[h]?C(E,A,q,z,D,G,"Stack"):E[p]?O(E,A,q,z,D,G):_(E,A,q,z,D,G);e.serialize=N;var j=E=>E&&(E[r]===!0||E[c]===!0);e.test=j;var k={serialize:N,test:j},T=k;e.default=T}}),Sa=ye({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"
${Te}`)},{edgeSpacing:W.spacingOuter,min:W.min,spacing:W.spacingInner},W.colors)}catch(oe){throw new O(oe.message,oe.stack)}if(typeof ae!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ae}".`);return ae}function G(g,F){for(let W=0;W<g.length;W++)try{if(g[W].test(F))return g[W]}catch(X){throw new O(X.message,X.stack)}return null}function B(g,F,W,X,V,x){let ae=G(F.plugins,g);if(ae!==null)return D(ae,g,F,W,X,V);let oe=A(g,F.printFunctionName,F.escapeRegex,F.escapeString);return oe!==null?oe:q(g,F,W,X,V,x)}var ie={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},L=Object.keys(ie),ee=g=>g,R=ee({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ie});e.DEFAULT_OPTIONS=R;function M(g){if(Object.keys(g).forEach(F=>{if(!Object.prototype.hasOwnProperty.call(R,F))throw new Error(`pretty-format: Unknown option "${F}".`)}),g.min&&g.indent!==void 0&&g.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(g.theme!==void 0){if(g.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof g.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof g.theme}".`)}}var I=g=>L.reduce((F,W)=>{let X=g.theme&&g.theme[W]!==void 0?g.theme[W]:ie[W],V=X&&t.default[X];if(V&&typeof V.close=="string"&&typeof V.open=="string")F[W]=V;else throw new Error(`pretty-format: Option "theme" has a key "${W}" whose value "${X}" is undefined in ansi-styles.`);return F},Object.create(null)),K=()=>L.reduce((g,F)=>(g[F]={close:"",open:""},g),Object.create(null)),Z=g=>g?.printFunctionName??R.printFunctionName,ne=g=>g?.escapeRegex??R.escapeRegex,pe=g=>g?.escapeString??R.escapeString,me=g=>({callToJSON:g?.callToJSON??R.callToJSON,colors:g?.highlight?I(g):K(),compareKeys:typeof g?.compareKeys=="function"||g?.compareKeys===null?g.compareKeys:R.compareKeys,escapeRegex:ne(g),escapeString:pe(g),indent:g?.min?"":le(g?.indent??R.indent),maxDepth:g?.maxDepth??R.maxDepth,maxWidth:g?.maxWidth??R.maxWidth,min:g?.min??R.min,plugins:g?.plugins??R.plugins,printBasicPrototype:g?.printBasicPrototype??!0,printFunctionName:Z(g),spacingInner:g?.min?" ":`
`,spacingOuter:g?.min?"":`
`});function le(g){return new Array(g+1).join(" ")}function fe(g,F){if(F&&(M(F),F.plugins)){let X=G(F.plugins,g);if(X!==null)return D(X,g,me(F),"",0,[])}let W=A(g,Z(F),ne(F),pe(F));return W!==null?W:q(g,me(F),"",0,[])}var we={AsymmetricMatcher:n.default,DOMCollection:a.default,DOMElement:u.default,Immutable:o.default,ReactElement:c.default,ReactTestComponent:p.default};e.plugins=we;var Ee=fe;e.default=Ee}}),Hr=ye({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var t="diff-sequences",r=0,n=(d,y,S,_,O)=>{let C=0;for(;d<y&&S<_&&O(d,S);)d+=1,S+=1,C+=1;return C},a=(d,y,S,_,O)=>{let C=0;for(;d<=y&&S<=_&&O(y,_);)y-=1,_-=1,C+=1;return C},u=(d,y,S,_,O,C,N)=>{let j=0,k=-d,T=C[j],E=T;C[j]+=n(T+1,y,_+T-k+1,S,O);let A=d<N?d:N;for(j+=1,k+=2;j<=A;j+=1,k+=2){if(j!==d&&E<C[j])T=C[j];else if(T=E+1,y<=T)return j-1;E=C[j],C[j]=T+n(T+1,y,_+T-k+1,S,O)}return N},o=(d,y,S,_,O,C,N)=>{let j=0,k=d,T=C[j],E=T;C[j]-=a(y,T-1,S,_+T-k-1,O);let A=d<N?d:N;for(j+=1,k-=2;j<=A;j+=1,k-=2){if(j!==d&&C[j]<E)T=C[j];else if(T=E-1,T<y)return j-1;E=C[j],C[j]=T-a(y,T-1,S,_+T-k-1,O)}return N},c=(d,y,S,_,O,C,N,j,k,T,E)=>{let A=_-y,q=S-y,z=O-_-q,D=-z-(d-1),G=-z+(d-1),B=r,ie=d<j?d:j;for(let L=0,ee=-d;L<=ie;L+=1,ee+=2){let R=L===0||L!==d&&B<N[L],M=R?N[L]:B,I=R?M:M+1,K=A+I-ee,Z=n(I+1,S,K+1,O,C),ne=I+Z;if(B=N[L],N[L]=ne,D<=ee&&ee<=G){let pe=(d-1-(ee+z))/2;if(pe<=T&&k[pe]-1<=ne){let me=A+M-(R?ee+1:ee-1),le=a(y,M,_,me,C),fe=M-le,we=me-le,Ee=fe+1,g=we+1;E.nChangePreceding=d-1,d-1===Ee+g-y-_?(E.aEndPreceding=y,E.bEndPreceding=_):(E.aEndPreceding=Ee,E.bEndPreceding=g),E.nCommonPreceding=le,le!==0&&(E.aCommonPreceding=Ee,E.bCommonPreceding=g),E.nCommonFollowing=Z,Z!==0&&(E.aCommonFollowing=I+1,E.bCommonFollowing=K+1);let F=ne+1,W=K+Z+1;return E.nChangeFollowing=d-1,d-1===S+O-F-W?(E.aStartFollowing=S,E.bStartFollowing=O):(E.aStartFollowing=F,E.bStartFollowing=W),!0}}}return!1},p=(d,y,S,_,O,C,N,j,k,T,E)=>{let A=O-S,q=S-y,z=O-_-q,D=z-d,G=z+d,B=r,ie=d<T?d:T;for(let L=0,ee=d;L<=ie;L+=1,ee-=2){let R=L===0||L!==d&&k[L]<B,M=R?k[L]:B,I=R?M:M-1,K=A+I-ee,Z=a(y,I-1,_,K-1,C),ne=I-Z;if(B=k[L],k[L]=ne,D<=ee&&ee<=G){let pe=(d+(ee-z))/2;if(pe<=j&&ne-1<=N[pe]){let me=K-Z;if(E.nChangePreceding=d,d===ne+me-y-_?(E.aEndPreceding=y,E.bEndPreceding=_):(E.aEndPreceding=ne,E.bEndPreceding=me),E.nCommonPreceding=Z,Z!==0&&(E.aCommonPreceding=ne,E.bCommonPreceding=me),E.nChangeFollowing=d-1,d===1)E.nCommonFollowing=0,E.aStartFollowing=S,E.bStartFollowing=O;else{let le=A+M-(R?ee-1:ee+1),fe=n(M,S,le,O,C);E.nCommonFollowing=fe,fe!==0&&(E.aCommonFollowing=M,E.bCommonFollowing=le);let we=M+fe,Ee=le+fe;d-1===S+O-we-Ee?(E.aStartFollowing=S,E.bStartFollowing=O):(E.aStartFollowing=we,E.bStartFollowing=Ee)}return!0}}}return!1},f=(d,y,S,_,O,C,N,j,k)=>{let T=_-y,E=O-S,A=S-y,q=O-_,z=q-A,D=A,G=A;if(N[0]=y-1,j[0]=S,z%2===0){let B=(d||z)/2,ie=(A+q)/2;for(let L=1;L<=ie;L+=1)if(D=u(L,S,O,T,C,N,D),L<B)G=o(L,y,_,E,C,j,G);else if(p(L,y,S,_,O,C,N,D,j,G,k))return}else{let B=((d||z)+1)/2,ie=(A+q+1)/2,L=1;for(D=u(L,S,O,T,C,N,D),L+=1;L<=ie;L+=1)if(G=o(L-1,y,_,E,C,j,G),L<B)D=u(L,S,O,T,C,N,D);else if(c(L,y,S,_,O,C,N,D,j,G,k))return}throw new Error(`${t}: no overlap aStart=${y} aEnd=${S} bStart=${_} bEnd=${O}`)},h=(d,y,S,_,O,C,N,j,k,T)=>{if(O-_<S-y){if(C=!C,C&&N.length===1){let{foundSubsequence:pe,isCommon:me}=N[0];N[1]={foundSubsequence:(le,fe,we)=>{pe(le,we,fe)},isCommon:(le,fe)=>me(fe,le)}}let Z=y,ne=S;y=_,S=O,_=Z,O=ne}let{foundSubsequence:E,isCommon:A}=N[C?1:0];f(d,y,S,_,O,A,j,k,T);let{nChangePreceding:q,aEndPreceding:z,bEndPreceding:D,nCommonPreceding:G,aCommonPreceding:B,bCommonPreceding:ie,nCommonFollowing:L,aCommonFollowing:ee,bCommonFollowing:R,nChangeFollowing:M,aStartFollowing:I,bStartFollowing:K}=T;y<z&&_<D&&h(q,y,z,_,D,C,N,j,k,T),G!==0&&E(G,B,ie),L!==0&&E(L,ee,R),I<S&&K<O&&h(M,I,S,K,O,C,N,j,k,T)},b=(d,y)=>{if(typeof y!="number")throw new TypeError(`${t}: ${d} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${t}: ${d} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${t}: ${d} value ${y} is a negative
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},b={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},m="\u2026";function v(l,s){var w=h[b[s]]||h[s];return w?"\x1B[".concat(w[0],"m").concat(String(l),"\x1B[").concat(w[1],"m"):String(l)}function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=l.showHidden,w=s===void 0?!1:s,P=l.depth,$=P===void 0?2:P,U=l.colors,Q=U===void 0?!1:U,re=l.customInspect,he=re===void 0?!0:re,ge=l.showProxy,Re=ge===void 0?!1:ge,Le=l.maxArrayLength,Tt=Le===void 0?1/0:Le,Ze=l.breakLength,Ye=Ze===void 0?1/0:Ze,Qe=l.seen,un=Qe===void 0?[]:Qe,ar=l.truncate,sn=ar===void 0?1/0:ar,or=l.stylize,pn=or===void 0?String:or,Rt={showHidden:!!w,depth:Number($),colors:!!Q,customInspect:!!he,showProxy:!!Re,maxArrayLength:Number(Tt),breakLength:Number(Ye),truncate:Number(sn),seen:un,stylize:pn};return Rt.colors&&(Rt.stylize=v),Rt}function y(l,s){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;l=String(l);var P=w.length,$=l.length;return P>s&&$>P?w:$>s&&$>P?"".concat(l.slice(0,s-P)).concat(w):l}function S(l,s,w){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";w=w||s.inspect;var $=l.length;if($===0)return"";for(var U=s.truncate,Q="",re="",he="",ge=0;ge<$;ge+=1){var Re=ge+1===l.length,Le=ge+2===l.length;he="".concat(m,"(").concat(l.length-ge,")");var Tt=l[ge];s.truncate=U-Q.length-(Re?0:P.length);var Ze=re||w(Tt,s)+(Re?"":P),Ye=Q.length+Ze.length,Qe=Ye+he.length;if(Re&&Ye>U&&Q.length+he.length<=U||!Re&&!Le&&Qe>U||(re=Re?"":w(l[ge+1],s)+(Le?"":P),!Re&&Le&&Qe>U&&Ye+re.length>U))break;if(Q+=Ze,!Re&&!Le&&Ye+re.length>=U){he="".concat(m,"(").concat(l.length-ge-1,")");break}he=""}return"".concat(Q).concat(he)}function _(l){return l.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?l:JSON.stringify(l).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function O(l,s){var w=a(l,2),P=w[0],$=w[1];return s.truncate-=2,typeof P=="string"?P=_(P):typeof P!="number"&&(P="[".concat(s.inspect(P,s),"]")),s.truncate-=P.length,$=s.inspect($,s),"".concat(P,": ").concat($)}function C(l,s){var w=Object.keys(l).slice(l.length);if(!l.length&&!w.length)return"[]";s.truncate-=4;var P=S(l,s);s.truncate-=P.length;var $="";return w.length&&($=S(w.map(function(U){return[U,l[U]]}),s,O)),"[ ".concat(P).concat($?", ".concat($):""," ]")}var N=Function.prototype.toString,j=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;function k(l){if(typeof l!="function")return null;var s="";if(typeof Function.prototype.name>"u"&&typeof l.name>"u"){var w=N.call(l).match(j);w&&(s=w[1])}else s=l.name;return s}var T=k,E=function(l){return typeof Buffer=="function"&&l instanceof Buffer?"Buffer":l[Symbol.toStringTag]?l[Symbol.toStringTag]:T(l.constructor)};function A(l,s){var w=E(l);s.truncate-=w.length+4;var P=Object.keys(l).slice(l.length);if(!l.length&&!P.length)return"".concat(w,"[]");for(var $="",U=0;U<l.length;U++){var Q="".concat(s.stylize(y(l[U],s.truncate),"number")).concat(U===l.length-1?"":", ");if(s.truncate-=Q.length,l[U]!==l.length&&s.truncate<=3){$+="".concat(m,"(").concat(l.length-l[U]+1,")");break}$+=Q}var re="";return P.length&&(re=S(P.map(function(he){return[he,l[he]]}),s,O)),"".concat(w,"[ ").concat($).concat(re?", ".concat(re):""," ]")}function q(l,s){var w=l.toJSON();if(w===null)return"Invalid Date";var P=w.split("T"),$=P[0];return s.stylize("".concat($,"T").concat(y(P[1],s.truncate-$.length-1)),"date")}function z(l,s){var w=T(l);return w?s.stylize("[Function ".c
`)}function er(l,s){var w=l.getAttributeNames(),P=l.tagName.toLowerCase(),$=s.stylize("<".concat(P),"special"),U=s.stylize(">","special"),Q=s.stylize("</".concat(P,">"),"special");s.truncate-=P.length*2+5;var re="";w.length>0&&(re+=" ",re+=S(w.map(function(Re){return[Re,l.getAttribute(Re)]}),s,tn," ")),s.truncate-=re.length;var he=s.truncate,ge=Ot(l.children,s);return ge&&ge.length>he&&(ge="".concat(m,"(").concat(l.children.length,")")),"".concat($).concat(re).concat(U).concat(ge).concat(Q)}var rn=typeof Symbol=="function"&&typeof Symbol.for=="function",it=rn?Symbol.for("chai/inspect"):"@@chai/inspect",Ue=!1;try{var tr=fa("util");Ue=tr.inspect?tr.inspect.custom:!1}catch{Ue=!1}function rr(){this.key="chai/loupe__"+Math.random()+Date.now()}rr.prototype={get:function(l){return l[this.key]},has:function(l){return this.key in l},set:function(l,s){Object.isExtensible(l)&&Object.defineProperty(l,this.key,{value:s,configurable:!0})}};var lt=new(typeof WeakMap=="function"?WeakMap:rr),ct={},nr={undefined:function(l,s){return s.stylize("undefined","undefined")},null:function(l,s){return s.stylize(null,"null")},boolean:function(l,s){return s.stylize(l,"boolean")},Boolean:function(l,s){return s.stylize(l,"boolean")},number:L,Number:L,bigint:ee,BigInt:ee,string:le,String:le,function:z,Function:z,symbol:fe,Symbol:fe,Array:C,Date:q,Map:B,Set:I,RegExp:R,Promise:X,WeakSet:function(l,s){return s.stylize("WeakSet{\u2026}","special")},WeakMap:function(l,s){return s.stylize("WeakMap{\u2026}","special")},Arguments:oe,Int8Array:A,Uint8Array:A,Uint8ClampedArray:A,Int16Array:A,Uint16Array:A,Int32Array:A,Uint32Array:A,Float32Array:A,Float64Array:A,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:en,HTMLCollection:Ot,NodeList:Ot},nn=function(l,s,w){return it in l&&typeof l[it]=="function"?l[it](s):Ue&&Ue in l&&typeof l[Ue]=="function"?l[Ue](s.depth,s):"inspect"in l&&typeof l.inspect=="function"?l.inspect(s.depth,s):"constructor"in l&&lt.has(l.constructor)?lt.get(l.constructor)(l,s):ct[w]?ct[w](l,s):""},an=Object.prototype.toString;function ut(l,s){s=d(s),s.inspect=ut;var w=s,P=w.customInspect,$=l===null?"null":n(l);if($==="object"&&($=an.call(l).slice(8,-1)),nr[$])return nr[$](l,s);if(P&&l){var U=nn(l,s,$);if(U)return typeof U=="string"?U:ut(U,s)}var Q=l?Object.getPrototypeOf(l):!1;return Q===Object.prototype||Q===null?V(l,s):l&&typeof HTMLElement=="function"&&l instanceof HTMLElement?er(l,s):"constructor"in l?l.constructor!==Object?ae(l,s):V(l,s):l===Object(l)?V(l,s):s.stylize(String(l),$)}function on(l,s){return lt.has(l)?!1:(lt.set(l,s),!0)}function ln(l,s){return l in ct?!1:(ct[l]=s,!0)}var cn=it;r.custom=cn,r.default=ut,r.inspect=ut,r.registerConstructor=on,r.registerStringTag=ln,Object.defineProperty(r,"__esModule",{value:!0})})}}),Ta=Ge(Kt(),1);Ge(Hr(),1);var Ra={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},Ca=Object.entries(Ra);function Jt(e){return String(e)}Jt.open="";Jt.close="";Ca.reduce((e,[t])=>(e[t]=Jt,e),{isColorSupported:!1});Ta.plugins;var xa=Ge(Kt(),1);Ge(qr(),1);xa.plugins;Ge(Kt(),1);Ge(Hr(),1);Ge(qr(),1);var Y=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Y||{}),He={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrume
`);return i.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:Ie.size.s1,...t}},r.flatMap((n,a)=>{if(n.startsWith("expect(")){let h=Fr(n,7),b=h&&7+h.length,m=h&&n.slice(b).match(/\.(to|last|nth)[A-Z]\w+\(/);if(m){let v=b+m.index+m[0].length,d=Fr(n,v);if(d)return["expect(",i.createElement(yt,{key:`received_${h}`,value:h}),n.slice(b,v),i.createElement(Et,{key:`expected_${d}`,value:d}),n.slice(v+d.length),i.createElement("br",{key:`br${a}`})]}}if(n.match(/^\s*- /))return[i.createElement(Et,{key:n+a,value:n}),i.createElement("br",{key:`br${a}`})];if(n.match(/^\s*\+ /))return[i.createElement(yt,{key:n+a,value:n}),i.createElement("br",{key:`br${a}`})];let[,u,o]=n.match(/^(Expected|Received): (.*)$/)||[];if(u&&o)return u==="Expected"?["Expected: ",i.createElement(Et,{key:n+a,value:Wt(o),parsed:!0}),i.createElement("br",{key:`br${a}`})]:["Received: ",i.createElement(yt,{key:n+a,value:Wt(o),parsed:!0}),i.createElement("br",{key:`br${a}`})];let[,c,p]=n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&p)return[`${c} of calls: `,i.createElement(qe,{key:n+a,value:Number(p)}),i.createElement("br",{key:`br${a}`})];let[,f]=n.match(/^Received has value: (.+)$/)||[];return f?["Received has value: ",i.createElement(qe,{key:n+a,value:Wt(f)}),i.createElement("br",{key:`br${a}`})]:[i.createElement("span",{key:n+a},n),i.createElement("br",{key:`br${a}`})]}))},No={pure:{gray:{500:"#CCCCCC"}}},$o={colors:No},ko=$o,{colors:{pure:{gray:Fo}}}=ko,Mo=J(ke)(({theme:e,status:t})=>{let r={[Y.DONE]:e.color.positive,[Y.ERROR]:e.color.negative,[Y.ACTIVE]:e.color.secondary,[Y.WAITING]:ht(.5,Fo[500])}[t];return{width:t===Y.WAITING?6:12,height:t===Y.WAITING?6:12,color:r,justifySelf:"center"}}),Qr=({status:e,className:t})=>{let r={[Y.DONE]:"check",[Y.ERROR]:"stopalt",[Y.ACTIVE]:"play",[Y.WAITING]:"circle"}[e];return i.createElement(Mo,{"data-testid":`icon-${e}`,status:e,icon:r,className:t})},Lo=J.div(()=>({fontFamily:Ie.fonts.mono,fontSize:Ie.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),zo=J("div",{shouldForwardProp:e=>!["call","pausedAt"].includes(e.toString())})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:Ie.fonts.base,fontSize:13,...t.status===Y.ERROR&&{backgroundColor:e.base==="dark"?ht(.93,e.color.negative):e.background.warning},paddingLeft:t.ancestors.length*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),Bo=J.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),Do=J("button",{shouldForwardProp:e=>!["call"].includes(e.toString())})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status===Y.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===Y.ERROR?e.color.warning:e.color.secondary}`,background:r.status===Y.ERROR?"transparent":e.background.hoverable},"& > div":{opacity:r.status===Y.WAITING?.5:1}})),Wo=J.div({padding:6}),Ho=J(Pt)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),qo=J(At)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Go=J("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:Ie.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),Uo=({exception:e})=>{if(e.message.startsWith("expect("))return H(Mr,{...e});let t=e.message.split(`
`),r=t.length>1;return H(Go,null,H("pre",null,t[0]),e.showDiff&&e.diff?H($e,null,H("br",null),H(Mr,{message:e.diff,style:{padding:0}})):H("pre",null,H("br",null),e.expected&&H($e,null,"Expected: ",H(Et,{value:e.expected}),H("br",null)),e.actual&&H($e,null,"Received: ",H(yt,{value:e.actual}),H("br",null))),r&&H("p",null,"See the full stack trace in the browser console."))},Yo=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:a,isHidden:u,isCollapsed:o,toggleCollapsed:c,pausedAt:p})=>{let[f,h]=Pe(!1),b=!n.goto||!e.interceptable||!!e.ancestors.length;return u?null:H(zo,{call:e,pausedAt:p},H(Bo,{isInteractive:b},H(Do,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:b,onMouseEnter:()=>n.goto&&h(!0),onMouseLeave:()=>n.goto&&h(!1)},H(Qr,{status:f?Y.ACTIVE:e.status}),H(Lo,{style:{marginLeft:6,marginBottom:1}},H(Qt,{call:e,callsById:t}))),H(Wo,null,a?.length>0&&H(De,{hasChrome:!1,tooltip:H(qo,{note:`${o?"Show":"Hide"} interactions`})},H(Ho,{containsIcon:!0,onClick:c},H(ke,{icon:"listunordered"}))))),e.status===Y.ERROR&&e.exception?.callId===e.id&&H(Uo,{exception:e.exception}))},Vo=J.div(({theme:e,withException:t})=>({minHeight:"100%",background:e.background.content,...t&&{backgroundColor:e.base==="dark"?ht(.93,e.color.negative):e.background.warning}})),Ko=J.div(({theme:e})=>({padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Jo=J.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${e.appBorderColor}`,borderRadius:3})),Xo=J.div({paddingBottom:4,fontWeight:"bold"}),Zo=J.p({margin:0,padding:"0 0 20px"}),Qo=J.pre(({theme:e})=>({margin:0,padding:0,fontSize:e.typography.size.s1-1})),ei=st(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:a,hasException:u,caughtException:o,isPlaying:c,pausedAt:p,onScrollToEnd:f,endRef:h}){return H(Vo,{withException:!!o},(n.length>0||u)&&H(Ba,{controls:t,controlStates:r,status:c?Y.ACTIVE:u?Y.ERROR:Y.DONE,storyFileName:a,onScrollToEnd:f}),H("div",{"aria-label":"Interactions list"},n.map(b=>H(Yo,{key:b.id,call:b,callsById:e,controls:t,controlStates:r,childCallIds:b.childCallIds,isHidden:b.isHidden,isCollapsed:b.isCollapsed,toggleCollapsed:b.toggleCollapsed,pausedAt:p}))),o&&!o.message?.startsWith("ignoredException")&&H(Ko,null,H(Xo,null,"Caught exception in ",H(Jo,null,"play")," function"),H(Zo,null,"This story threw an error after it finished rendering which means your interactions couldn' t be run.Go to this story' s play function in ",a," to fix."),H(Qo,{"data-chromatic":"ignore"},o.stack||`${o.name}: ${o.message}`)),H("div",{ref:h}),!c&&!o&&n.length===0&&H(yr,null,"No interactions found",H(br,{href:"https://storybook.js.org/docs/react/writing-stories/play-function",target:"_blank",withArrow:!0},"Learn how to add interactions to your story")))}),Ht={start:!1,back:!1,goto:!1,next:!1,end:!1},Lr=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let a=new Map,u=new Map;return e.map(({callId:o,ancestors:c,status:p})=>{let f=!1;return c.forEach(h=>{r.has(h)&&(f=!0),u.set(h,(u.get(h)||[]).concat(o))}),{...t.get(o),status:p,isHidden:f}}).map(o=>{let c=o.status===Y.ERROR&&a.get(o.ancestors.slice(-1)[0])?.status===Y.ACTIVE?Y.ACTIVE:o.status;return a.set(o.id,{...o,status:c}),{...o,status:c,childCallIds:u.get(o.id),isCollapsed:r.has(o.id),toggleCollapsed:()=>n(p=>(p.has(o.id)?p.delete(o.id):p.add(o.id),new Set(p)))}})},ti=st(function({storyId:e}){let[t,r]=xt(_t,{controlStates:Ht,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0}),[n,a]=Pe(void 0),[u,o]=Pe(new Set),{controlStates:c=Ht,isErrored:p=!1,pausedAt:f=void 0,interactions:h=[],isPlaying:b=!1,caughtException:m=void 0}=t,v=pt([]),d=pt(new Map),y=({status:T,...E})=>d.current.set(E.id,E),S=pt();Be(()=>{let T;return mt.IntersectionObserver&&(T=new mt.IntersectionObserver(([E])=>a(E.isIntersecting?void 0:E.target),{root:mt.document.querySelector("#panel-tab-content")}),S.current&&T.observe(S.current)),()=>T?.disconnect()},[
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }