36 lines
221 KiB
JavaScript
36 lines
221 KiB
JavaScript
|
try{
|
||
|
(()=>{var Vd=Object.create;var sa=Object.defineProperty;var Yd=Object.getOwnPropertyDescriptor;var Kd=Object.getOwnPropertyNames;var Xd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var je=(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 ln=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kd(t))!Jd.call(e,o)&&o!==r&&sa(e,o,{get:()=>t[o],enumerable:!(n=Yd(t,o))||n.enumerable});return e};var ut=(e,t,r)=>(r=e!=null?Vd(Xd(e)):{},Qd(t||!e||!e.__esModule?sa(r,"default",{value:e,enumerable:!0}):r,e));var u=ln(()=>{});var s=ln(()=>{});var l=ln(()=>{});var Ta=O((xa,En)=>{u();s();l();(function(e){if(typeof xa=="object"&&typeof En<"u")En.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(o,a,i){function c(h,m){if(!a[h]){if(!o[h]){var f=typeof je=="function"&&je;if(!m&&f)return f(h,!0);if(p)return p(h,!0);var w=new Error("Cannot find module '"+h+"'");throw w.code="MODULE_NOT_FOUND",w}var g=a[h]={exports:{}};o[h][0].call(g.exports,function(A){var x=o[h][1][A];return c(x||A)},g,g.exports,n,o,a,i)}return a[h].exports}for(var p=typeof je=="function"&&je,d=0;d<i.length;d++)c(i[d]);return c}({1:[function(n,o,a){o.exports=function(i){if(typeof Map!="function"||i){var c=n("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(n,o,a){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(c){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(p=this.indexOf(c),p>=0)return this.lastItem=this.list[p],this.list[p].val},i.prototype.set=function(c,p){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=p,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=p,this):(this.lastItem={key:c,val:p},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(c){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),p=this.indexOf(c),p>=0)return this.size--,this.list.splice(p,1)[0]},i.prototype.has=function(c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],!0):!1)},i.prototype.forEach=function(c,p){var d;for(d=0;d<this.size;d++)c.call(p||this,this.list[d].val,this.list[d].key,this)},i.prototype.indexOf=function(c){var p;for(p=0;p<this.size;p++)if(this.isEqual(this.list[p].key,c))return p;return-1},i.prototype.isEqual=function(c,p){return c===p||c!==c&&p!==p},o.exports=i},{}],3:[function(n,o,a){var i=n("map-or-similar");o.exports=function(h){var m=new i(!1),f=[];return function(w){var g=function(){var A=m,x,P,D=arguments.length-1,F=Array(D+1),M=!0,j;if((g.numArgs||g.numArgs===0)&&g.numArgs!==D+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(j=0;j<D;j++){if(F[j]={cacheItem:A,arg:arguments[j]},A.has(arguments[j])){A=A.get(arguments[j]);continue}M=!1,x=new i(!1),A.set(arguments[j],x),A=x}return M&&(A.has(arguments[D])?P=A.get(arguments[D]):M=!1),M||(P=w.apply(null,arguments),A.set(arguments[D],P)),h>0&&(F[D]={cacheItem:A,arg:arguments[D]},M?c(f,F):f.push(F),f.length>h&&p(f.shift())),g.wasMemoized=M,g.numArgs=D+1,P};return g.limit=h,g.wasMemoized=!1,g.cache=m,g.lru=f,g}};function c(h,m){var f=h.length,w=m.length,g,A,x;for(A=0;A<f;A++){for(g=!0,x=0;x<w;x++)if(!d(h[A][x].arg,m[x].arg)){g=!1;break}if(g)break}h.push(h.splice(A,1)[0])}function p(h){var m=h.length,f=h[m-1],w,g;for(f.cacheItem.delete(f.arg),g=m-2;g>=0&&(f=h[g],w=f.cacheItem.get(f.arg),!w||!w.size);g--)f.cacheItem.delete(f.arg)}function d(h,m){return h===m||h!==h&&m!==m}},{"map-or-similar":1}]},{},
|
||
|
`)>=0)return!1;return!0}function FS(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=He.call(Array(e.indent+1)," ");else return null;return{base:r,prev:He.call(Array(t+1),r)}}function Eo(e,t){if(e.length===0)return"";var r=`
|
||
|
`+t.prev+t.base;return r+He.call(e,","+r)+`
|
||
|
`+t.prev}function $r(e,t){var r=bo(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Ze(e,o)?t(e[o],e):""}var a=typeof fo=="function"?fo(e):[],i;if(Mt){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var p in e)Ze(e,p)&&(r&&String(Number(p))===p&&p<e.length||Mt&&i["$"+p]instanceof Symbol||(nf.call(/[^\w$]/,p)?n.push(t(p,e)+": "+t(e[p],e)):n.push(p+": "+t(e[p],e))));if(typeof fo=="function")for(var d=0;d<a.length;d++)of.call(e,a[d])&&n.push("["+t(a[d])+"]: "+t(e[a[d]],e));return n}});var hf=O((VM,df)=>{"use strict";u();s();l();var ff=ht(),jt=Up(),BS=pf(),NS=Rt(),Hr=ff("%WeakMap%",!0),Wr=ff("%Map%",!0),qS=jt("WeakMap.prototype.get",!0),MS=jt("WeakMap.prototype.set",!0),jS=jt("WeakMap.prototype.has",!0),LS=jt("Map.prototype.get",!0),kS=jt("Map.prototype.set",!0),$S=jt("Map.prototype.has",!0),wo=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},zS=function(e,t){var r=wo(e,t);return r&&r.value},US=function(e,t,r){var n=wo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},HS=function(e,t){return!!wo(e,t)};df.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new NS("Side channel does not contain "+BS(a))},get:function(a){if(Hr&&a&&(typeof a=="object"||typeof a=="function")){if(t)return qS(t,a)}else if(Wr){if(r)return LS(r,a)}else if(n)return zS(n,a)},has:function(a){if(Hr&&a&&(typeof a=="object"||typeof a=="function")){if(t)return jS(t,a)}else if(Wr){if(r)return $S(r,a)}else if(n)return HS(n,a);return!1},set:function(a,i){Hr&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Hr),MS(t,a,i)):Wr?(r||(r=new Wr),kS(r,a,i)):(n||(n={key:{},next:null}),US(n,a,i))}};return o}});var Gr=O((JM,mf)=>{"use strict";u();s();l();var WS=String.prototype.replace,GS=/%20/g,Co={RFC1738:"RFC1738",RFC3986:"RFC3986"};mf.exports={default:Co.RFC3986,formatters:{RFC1738:function(e){return WS.call(e,GS,"+")},RFC3986:function(e){return String(e)}},RFC1738:Co.RFC1738,RFC3986:Co.RFC3986}});var xo=O((tj,gf)=>{"use strict";u();s();l();var VS=Gr(),_o=Object.prototype.hasOwnProperty,mt=Array.isArray,We=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),YS=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(mt(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},yf=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},KS=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(mt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!_o.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return mt(t)&&!mt(r)&&(o=yf(t,n)),mt(t)&&mt(r)?(r.forEach(function(a,i){if(_o.call(t,i)){var c=t[i];c&&typeof c=="object"&&a&&typeof a=="object"?t[i]=e(c,a,n):t.push(a)}else t[i]=a}),t):Object.keys(r).reduce(function(a,i){var c=r[i];return _o.call(a,i)?a[i]=e(a[i],c,n):a[i]=c,a},o)},XS=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},JS=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Oo=1024,QS=function(t,r,n,o,a){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(w){return"%26%23"+parseInt(w.slice(2),16)+"%3B"});for(var c="",p=0;p<i.length;p+=Oo){for(var d=i.length>=Oo?i.slice(p,p+Oo):i,h=[],m=0;m<d.length;++m){var f=d.charCodeAt(m);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===VS.RFC1738&&(f===40||f===41)){h[h.length]=d.charAt(m);continue}if(f<128){h[h.length]=We[f];continue}if(f<2048){h[h.length]=We[192|f>>6]+We[128|f&63];continue}if(f<55296||f>=57344){h[h.length]=We[224|f>>12]+We[128|f>>6&63]+We[128|f&63];continue}m+=1,f=65536+((f&1023)<<10|d.charCodeAt(m)&1023),h[h.length]=We[240|f>>18]+We[12
|
||
|
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(c){return c.replace(a,`
|
||
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(c,p){var d=i.match(/(?:^|\n)( *)$/),h=d?d[1]:"",m=c;typeof c=="string"&&c.includes(`
|
||
|
`)&&(m=String(c).split(`
|
||
|
`).map(function(f,w){return w===0?f:""+h+f}).join(`
|
||
|
`)),i+=m+n[p+1]}),i}var IE=(e=>(e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e))(IE||{});u();s();l();var Yr=ut(Tc(),1);u();s();l();var $E=Object.create,Ic=Object.defineProperty,zE=Object.getOwnPropertyDescriptor,UE=Object.getOwnPropertyNames,HE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty,GE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),VE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of UE(t))!WE.call(e,o)&&o!==r&&Ic(e,o,{get:()=>t[o],enumerable:!(n=zE(t,o))||n.enumerable});return e},YE=(e,t,r)=>(r=e!=null?$E(HE(e)):{},VE(t||!e||!e.__esModule?Ic(r,"default",{value:e,enumerable:!0}):r,e)),KE=GE(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(c,p,d){var h,m,f,w=t.call(c),g=t.call(p);if(c===p)return!0;if(c==null||p==null)return!1;if(d.indexOf(c)>-1&&d.indexOf(p)>-1)return!0;if(d.push(c,p),w!=g||(h=n(c),m=n(p),h.length!=m.length||h.some(function(A){return!i(c[A],p[A],d)})))return!1;switch(w.slice(8,-1)){case"Symbol":return c.valueOf()==p.valueOf();case"Date":case"Number":return+c==+p||+c!=+c&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+c==""+p;case"Set":case"Map":h=c.entries(),m=p.entries();do if(!i((f=h.next()).value,m.next().value,d))return!1;while(!f.done);return!0;case"ArrayBuffer":c=new Uint8Array(c),p=new Uint8Array(p);case"DataView":c=new Uint8Array(c.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(c.length!=p.length)return!1;for(f=0;f<c.length;f++)if((f in c||f in p)&&(f in c!=f in p||!i(c[f],p[f],d)))return!1;return!0;case"Object":return i(r(c),r(p),d);default:return!1}}(o,a,[])}}()});var _9=YE(KE());var Ff=ut(Rc(),1),Bf=ut(Uc(),1);u();s();l();var AA=ut(Tf(),1),wA=Object.create,Nf=Object.defineProperty,CA=Object.getOwnPropertyDescriptor,qf=Object.getOwnPropertyNames,_A=Object.getPrototypeOf,OA=Object.prototype.hasOwnProperty,Ke=(e,t)=>function(){return t||(0,e[qf(e)[0]])((t={exports:{}}).exports,t),t.exports},xA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qf(t))!OA.call(e,o)&&o!==r&&Nf(e,o,{get:()=>t[o],enumerable:!(n=CA(t,o))||n.enumerable});return e},TA=(e,t,r)=>(r=e!=null?wA(_A(e)):{},xA(t||!e||!e.__esModule?Nf(r,"default",{value:e,enumerable:!0}):r,e)),Mf=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2
|
||
|
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $,N=!0,z=!1,U;return{s:function(){$=_[Symbol.iterator]()},n:function(){var Z=$.next();return N=Z.done,Z},e:function(Z){z=!0,U=Z},f:function(){try{!N&&$.return!=null&&$.return()}finally{if(z)throw U}}}}function i(_,R){if(_){if(typeof _=="string")return c(_,R);var B=Object.prototype.toString.call(_).slice(8,-1);if(B==="Object"&&_.constructor&&(B=_.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return c(_,R)}}function c(_,R){(R==null||R>_.length)&&(R=_.length);for(var B=0,$=new Array(R);B<R;B++)$[B]=_[B];return $}var p=PA(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var _={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return D(0,5).forEach(function(R){D(0,5).forEach(function(B){D(0,5).forEach(function($){return m(R,B,$,_)})})}),D(0,23).forEach(function(R){var B=R+232,$=f(R*10+8);_[B]="#"+$+$+$}),_}function m(_,R,B,$){var N=16+_*36+R*6+B,z=_>0?_*40+55:0,U=R>0?R*40+55:0,Z=B>0?B*40+55:0;$[N]=w([z,U,Z])}function f(_){for(var R=_.toString(16);R.length<2;)R="0"+R;return R}function w(_){var R=[],B=a(_),$;try{for(B.s();!($=B.n()).done;){var N=$.value;R.push(f(N))}}catch(z){B.e(z)}finally{B.f()}return"#"+R.join("")}function g(_,R,B,$){var N;return R==="text"?N=j(B,$):R==="display"?N=x(_,B,$):R==="xterm256"?N=I(_,$.colors[B]):R==="rgb"&&(N=A(_,B)),N}function A(_,R){R=R.substring(2).slice(0,-1);var B=+R.substr(0,2),$=R.substring(5).split(";"),N=$.map(function(z){return("0"+Number(z).toString(16)).substr(-2)}).join("");return W(_,(B===38?"color:#":"background-color:#")+N)}function x(_,R,B){R=parseInt(R,10);var $={"-1":function(){return"<br/>"},0:function(){return _.length&&P(_)},1:function(){return H(_,"b")},3:function(){return H(_,"i")},4:function(){return H(_,"u")},8:function(){return W(_,"display:none")},9:function(){return H(_,"strike")},22:function(){return W(_,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return V(_,"i")},24:function(){return V(_,"u")},39:function(){return I(_,B.fg)},49:function(){return L(_,B.bg)},53:function(){return W(_,"text-decoration:overline")}},N;return $[R]?N=$[R]():4<R&&R<7?N=H(_,"blink"):29<R&&R<38?N=I(_,B.colors[R-30]):39<R&&R<48?N=L(_,B.colors[R-40]):89<R&&R<98?N=I(_,B.colors[8+(R-90)]):99<R&&R<108&&(N=L(_,B.colors[8+(R-100)])),N}function P(_){var R=_.slice(0);return _.length=0,R.reverse().map(function(B){return"</"+B+">"}).join("")}function D(_,R){for(var B=[],$=_;$<=R;$++)B.push($);return B}function F(_){return function(R){return(_===null||R.category!==_)&&_!=="all"}}function M(_){_=parseInt(_,10);var R=null;return _===0?R="all":_===1?R="bold":2<_&&_<5?R="underline":4<_&&_<7?R="blink":_===8?R="hide":_===9?R="strike":29<_&&_<38||_===39||89<_&&_<98?R="foreground-color":(39<_&&_<48||_===49||99<_&&_<108)&&(R="background-color"),R}function j(_,R){return R.escapeXML?p.encodeXML(_):_}function H(_,R,B){return B||(B=""),_.push(R),"<".concat(R).concat(B?' style="'.concat(B,'"'):"",">")}function W(_,R){return H(_,"span",R)}function I(_,R){return H(_,"span","color:"+R)}function L(_,R){return H(_,"span","background-color:"+R)}function V(_,R){var B;if(_.slice(-1)[0]===R&&(B=_.pop()),B)return"</"+R+">"}function J(_,R,B){var $=!1,N=3;function z(){return""}function U(te,k){return B("xterm256",k),""}function Z(te){return R.newline?B("display",-1):B("text",te),""}function ae(te,k){$=!0,k.trim().length===0&&(k="0"),k=k.trimRight(";").split(";");var le=a(k),me;try{for(le.s();!(me=le.n()).done;){var Re=me.value;B("display",Re)}}catch(on){le.e(on)}finally{le.f()}return""}function he(te){return B("text",te),""}function Ee(te){return B("rgb",te),""}var ye=[{pattern:/^\x08+/,sub:z},{pattern:/^\x1b\[[012]?K/,sub:z},{pattern:/^\x1b\[\(B/,sub:z},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ee},{pattern:/^\x1b\[38;5;(\d+)m/,sub:U},{pattern:/^\n/,sub:Z},{pattern:/^\r+\n/,sub:Z},{pattern:/^
|
||
|
CSF .story annotations deprecated; annotate story functions directly:
|
||
|
- StoryFn.story.name => StoryFn.storyName
|
||
|
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
||
|
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
||
|
`,Vj=(0,Ff.default)(()=>{},jA);var Po=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,c])=>{let p=o[i];Array.isArray(c)||typeof p>"u"?o[i]=c:(0,Yr.default)(c)&&(0,Yr.default)(p)?t[i]=!0:typeof c<"u"&&(o[i]=c)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>(0,Yr.default)(i))?n[o]=Po(...a):n[o]=a[a.length-1]}),n};var Ro=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(mn.warn(eo`
|
||
|
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
||
|
|
||
|
Consider using the mapping feature or fully custom args:
|
||
|
- Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values
|
||
|
- Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args
|
||
|
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Ro(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,ar.default)(e,o=>Ro(o,t,new Set(r)))}):{name:"object",value:{}}},LA=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=(0,ar.default)(n,(i,c)=>({name:c,type:Ro(i,`${t}.${c}`,new Set)})),a=(0,ar.default)(r,(i,c)=>({name:c}));return Po(o,a,r)};LA.secondPass=!0;var Rf=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),kA=(e,t,r)=>!t&&!r?e:e&&(0,Bf.default)(e,(n,o)=>{let a=n.name||o;return(!t||Rf(a,t))&&(!r||!Rf(a,r))}),$A=(e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&mn.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},zA=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=kA(t,n,o),c=(0,ar.default)(i,(p,d)=>p?.type&&$A(p,d,a));return Po(c,i)};zA.secondPass=!0;var Yj=new Error("prepareAborted"),{AbortController:Kj}=globalThis;var{fetch:Xj}=Ne;var{history:Jj,document:Qj}=Ne;var UA=TA(FA()),{document:Zj}=Ne;var HA=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(HA||{});var eL=new UA.default({escapeXML:!0});var{document:tL}=Ne;var WA=Object.create,Lf=Object.defineProperty,GA=Object.getOwnPropertyDescriptor,kf=Object.getOwnPropertyNames,VA=Object.getPrototypeOf,YA=Object.prototype.hasOwnProperty,KA=(e=>typeof je<"u"?je:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof je<"u"?je:t)[r]}):e)(function(e){if(typeof je<"u")return je.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ie=(e,t)=>function(){return t||(0,e[kf(e)[0]])((t={exports:{}}).exports,t),t.exports},XA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kf(t))!YA.call(e,o)&&o!==r&&Lf(e,o,{get:()=>t[o],enumerable:!(n=GA(t,o))||n.enumerable});return e},yt=(e,t,r)=>(r=e!=null?WA(VA(e)):{},XA(t||!e||!e.__esModule?Lf(r,"default",{value:e,enumerable:!0}):r,e)),JA=Ie({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,c,p)=>`\x1B[${38+a};2;${i};${c};${p}m`;function o(){let a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[c,p]of Object.entries(i)){for(let[d,h]of Object.entries(p))i[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},p[d]=i[d],a.set(h[0],h[1]);Object.defineProperty(i,c,{value:p,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Obj
|
||
|
`)!==-1&&(M=m.spacingOuter+x+M+m.spacingOuter+f),M=`{${M}}`),`${m.spacingInner+f+P.prop.open+D+P.prop.close}=${P.value.open}${M}${P.value.close}`}).join("")};e.printProps=n;var o=(d,h,m,f,w,g)=>d.map(A=>h.spacingOuter+m+(typeof A=="string"?a(A,h):g(A,h,m,f,w))).join("");e.printChildren=o;var a=(d,h)=>{let m=h.colors.content;return m.open+(0,t.default)(d)+m.close};e.printText=a;var i=(d,h)=>{let m=h.colors.comment;return`${m.open}<!--${(0,t.default)(d)}-->${m.close}`};e.printComment=i;var c=(d,h,m,f,w)=>{let g=f.colors.tag;return`${g.open}<${d}${h&&g.close+h+f.spacingOuter+w+g.open}${m?`>${g.close}${m}${f.spacingOuter}${w}${g.open}</${d}`:`${h&&!f.min?"":" "}/`}>${g.close}`};e.printElement=c;var p=(d,h)=>{let m=h.colors.tag;return`${m.open}<${d}${m.close} \u2026${m.open} />${m.close}`};e.printElementAsLeaf=p}}),tw=Ie({"../../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=Fo(),r=1,n=3,o=8,a=11,i=/^((HTML|SVG)\w*)?Element$/,c=x=>{try{return typeof x.hasAttribute=="function"&&x.hasAttribute("is")}catch{return!1}},p=x=>{let P=x.constructor.name,{nodeType:D,tagName:F}=x,M=typeof F=="string"&&F.includes("-")||c(x);return D===r&&(i.test(P)||M)||D===n&&P==="Text"||D===o&&P==="Comment"||D===a&&P==="DocumentFragment"},d=x=>x?.constructor?.name&&p(x);e.test=d;function h(x){return x.nodeType===n}function m(x){return x.nodeType===o}function f(x){return x.nodeType===a}var w=(x,P,D,F,M,j)=>{if(h(x))return(0,t.printText)(x.data,P);if(m(x))return(0,t.printComment)(x.data,P);let H=f(x)?"DocumentFragment":x.tagName.toLowerCase();return++F>P.maxDepth?(0,t.printElementAsLeaf)(H,P):(0,t.printElement)(H,(0,t.printProps)(f(x)?[]:Array.from(x.attributes,W=>W.name).sort(),f(x)?{}:Array.from(x.attributes).reduce((W,I)=>(W[I.name]=I.value,W),{}),P,D+P.indent,F,M,j),(0,t.printChildren)(Array.prototype.slice.call(x.childNodes||x.children),P,D+P.indent,F,M,j),P,D)};e.serialize=w;var g={serialize:w,test:d},A=g;e.default=A}}),rw=Ie({"../../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=Kr(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",c="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",d="@@__IMMUTABLE_SET__@@",h="@@__IMMUTABLE_STACK__@@",m=I=>`Immutable.${I}`,f=I=>`[${I}]`,w=" ",g="\u2026",A=(I,L,V,J,Q,X,_)=>++J>L.maxDepth?f(m(_)):`${m(_)+w}{${(0,t.printIteratorEntries)(I.entries(),L,V,J,Q,X)}}`;function x(I){let L=0;return{next(){if(L<I._keys.length){let V=I._keys[L++];return{done:!1,value:[V,I.get(V)]}}return{done:!0,value:void 0}}}}var P=(I,L,V,J,Q,X)=>{let _=m(I._name||"Record");return++J>L.maxDepth?f(_):`${_+w}{${(0,t.printIteratorEntries)(x(I),L,V,J,Q,X)}}`},D=(I,L,V,J,Q,X)=>{let _=m("Seq");return++J>L.maxDepth?f(_):I[o]?`${_+w}{${I._iter||I._object?(0,t.printIteratorEntries)(I.entries(),L,V,J,Q,X):g}}`:`${_+w}[${I._iter||I._array||I._collection||I._iterable?(0,t.printIteratorValues)(I.values(),L,V,J,Q,X):g}]`},F=(I,L,V,J,Q,X,_)=>++J>L.maxDepth?f(m(_)):`${m(_)+w}[${(0,t.printIteratorValues)(I.values(),L,V,J,Q,X)}]`,M=(I,L,V,J,Q,X)=>I[a]?A(I,L,V,J,Q,X,I[i]?"OrderedMap":"Map"):I[n]?F(I,L,V,J,Q,X,"List"):I[d]?F(I,L,V,J,Q,X,I[i]?"OrderedSet":"Set"):I[h]?F(I,L,V,J,Q,X,"Stack"):I[p]?D(I,L,V,J,Q,X):P(I,L,V,J,Q,X);e.serialize=M;var j=I=>I&&(I[r]===!0||I[c]===!0);e.test=j;var H={serialize:M,test:j},W=H;e.default=W}}),nw=Ie({"../../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"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"
|
||
|
${Re}`)},{edgeSpacing:ee.spacingOuter,min:ee.min,spacing:ee.spacingInner},ee.colors)}catch(me){throw new D(me.message,me.stack)}if(typeof le!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof le}".`);return le}function X(T,Y){for(let ee=0;ee<T.length;ee++)try{if(T[ee].test(Y))return T[ee]}catch(ue){throw new D(ue.message,ue.stack)}return null}function _(T,Y,ee,ue,te,k){let le=X(Y.plugins,T);if(le!==null)return Q(le,T,Y,ee,ue,te);let me=L(T,Y.printFunctionName,Y.escapeRegex,Y.escapeString);return me!==null?me:V(T,Y,ee,ue,te,k)}var R={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},B=Object.keys(R),$=T=>T,N=$({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:R});e.DEFAULT_OPTIONS=N;function z(T){if(Object.keys(T).forEach(Y=>{if(!Object.prototype.hasOwnProperty.call(N,Y))throw new Error(`pretty-format: Unknown option "${Y}".`)}),T.min&&T.indent!==void 0&&T.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(T.theme!==void 0){if(T.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof T.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof T.theme}".`)}}var U=T=>B.reduce((Y,ee)=>{let ue=T.theme&&T.theme[ee]!==void 0?T.theme[ee]:R[ee],te=ue&&t.default[ue];if(te&&typeof te.close=="string"&&typeof te.open=="string")Y[ee]=te;else throw new Error(`pretty-format: Option "theme" has a key "${ee}" whose value "${ue}" is undefined in ansi-styles.`);return Y},Object.create(null)),Z=()=>B.reduce((T,Y)=>(T[Y]={close:"",open:""},T),Object.create(null)),ae=T=>T?.printFunctionName??N.printFunctionName,he=T=>T?.escapeRegex??N.escapeRegex,Ee=T=>T?.escapeString??N.escapeString,ye=T=>({callToJSON:T?.callToJSON??N.callToJSON,colors:T?.highlight?U(T):Z(),compareKeys:typeof T?.compareKeys=="function"||T?.compareKeys===null?T.compareKeys:N.compareKeys,escapeRegex:he(T),escapeString:Ee(T),indent:T?.min?"":ve(T?.indent??N.indent),maxDepth:T?.maxDepth??N.maxDepth,maxWidth:T?.maxWidth??N.maxWidth,min:T?.min??N.min,plugins:T?.plugins??N.plugins,printBasicPrototype:T?.printBasicPrototype??!0,printFunctionName:ae(T),spacingInner:T?.min?" ":`
|
||
|
`,spacingOuter:T?.min?"":`
|
||
|
`});function ve(T){return new Array(T+1).join(" ")}function ge(T,Y){if(Y&&(z(Y),Y.plugins)){let ue=X(Y.plugins,T);if(ue!==null)return Q(ue,T,ye(Y),"",0,[])}let ee=L(T,ae(Y),he(Y),Ee(Y));return ee!==null?ee:V(T,ye(Y),"",0,[])}var xe={AsymmetricMatcher:n.default,DOMCollection:o.default,DOMElement:a.default,Immutable:i.default,ReactElement:c.default,ReactTestComponent:p.default};e.plugins=xe;var Se=ge;e.default=Se}}),$f=Ie({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=w;var t="diff-sequences",r=0,n=(g,A,x,P,D)=>{let F=0;for(;g<A&&x<P&&D(g,x);)g+=1,x+=1,F+=1;return F},o=(g,A,x,P,D)=>{let F=0;for(;g<=A&&x<=P&&D(A,P);)A-=1,P-=1,F+=1;return F},a=(g,A,x,P,D,F,M)=>{let j=0,H=-g,W=F[j],I=W;F[j]+=n(W+1,A,P+W-H+1,x,D);let L=g<M?g:M;for(j+=1,H+=2;j<=L;j+=1,H+=2){if(j!==g&&I<F[j])W=F[j];else if(W=I+1,A<=W)return j-1;I=F[j],F[j]=W+n(W+1,A,P+W-H+1,x,D)}return M},i=(g,A,x,P,D,F,M)=>{let j=0,H=g,W=F[j],I=W;F[j]-=o(A,W-1,x,P+W-H-1,D);let L=g<M?g:M;for(j+=1,H-=2;j<=L;j+=1,H-=2){if(j!==g&&F[j]<I)W=F[j];else if(W=I-1,W<A)return j-1;I=F[j],F[j]=W-o(A,W-1,x,P+W-H-1,D)}return M},c=(g,A,x,P,D,F,M,j,H,W,I)=>{let L=P-A,V=x-A,J=D-P-V,Q=-J-(g-1),X=-J+(g-1),_=r,R=g<j?g:j;for(let B=0,$=-g;B<=R;B+=1,$+=2){let N=B===0||B!==g&&_<M[B],z=N?M[B]:_,U=N?z:z+1,Z=L+U-$,ae=n(U+1,x,Z+1,D,F),he=U+ae;if(_=M[B],M[B]=he,Q<=$&&$<=X){let Ee=(g-1-($+J))/2;if(Ee<=W&&H[Ee]-1<=he){let ye=L+z-(N?$+1:$-1),ve=o(A,z,P,ye,F),ge=z-ve,xe=ye-ve,Se=ge+1,T=xe+1;I.nChangePreceding=g-1,g-1===Se+T-A-P?(I.aEndPreceding=A,I.bEndPreceding=P):(I.aEndPreceding=Se,I.bEndPreceding=T),I.nCommonPreceding=ve,ve!==0&&(I.aCommonPreceding=Se,I.bCommonPreceding=T),I.nCommonFollowing=ae,ae!==0&&(I.aCommonFollowing=U+1,I.bCommonFollowing=Z+1);let Y=he+1,ee=Z+ae+1;return I.nChangeFollowing=g-1,g-1===x+D-Y-ee?(I.aStartFollowing=x,I.bStartFollowing=D):(I.aStartFollowing=Y,I.bStartFollowing=ee),!0}}}return!1},p=(g,A,x,P,D,F,M,j,H,W,I)=>{let L=D-x,V=x-A,J=D-P-V,Q=J-g,X=J+g,_=r,R=g<W?g:W;for(let B=0,$=g;B<=R;B+=1,$-=2){let N=B===0||B!==g&&H[B]<_,z=N?H[B]:_,U=N?z:z-1,Z=L+U-$,ae=o(A,U-1,P,Z-1,F),he=U-ae;if(_=H[B],H[B]=he,Q<=$&&$<=X){let Ee=(g+($-J))/2;if(Ee<=j&&he-1<=M[Ee]){let ye=Z-ae;if(I.nChangePreceding=g,g===he+ye-A-P?(I.aEndPreceding=A,I.bEndPreceding=P):(I.aEndPreceding=he,I.bEndPreceding=ye),I.nCommonPreceding=ae,ae!==0&&(I.aCommonPreceding=he,I.bCommonPreceding=ye),I.nChangeFollowing=g-1,g===1)I.nCommonFollowing=0,I.aStartFollowing=x,I.bStartFollowing=D;else{let ve=L+z-(N?$-1:$+1),ge=n(z,x,ve,D,F);I.nCommonFollowing=ge,ge!==0&&(I.aCommonFollowing=z,I.bCommonFollowing=ve);let xe=z+ge,Se=ve+ge;g-1===x+D-xe-Se?(I.aStartFollowing=x,I.bStartFollowing=D):(I.aStartFollowing=xe,I.bStartFollowing=Se)}return!0}}}return!1},d=(g,A,x,P,D,F,M,j,H)=>{let W=P-A,I=D-x,L=x-A,V=D-P,J=V-L,Q=L,X=L;if(M[0]=A-1,j[0]=x,J%2===0){let _=(g||J)/2,R=(L+V)/2;for(let B=1;B<=R;B+=1)if(Q=a(B,x,D,W,F,M,Q),B<_)X=i(B,A,P,I,F,j,X);else if(p(B,A,x,P,D,F,M,Q,j,X,H))return}else{let _=((g||J)+1)/2,R=(L+V+1)/2,B=1;for(Q=a(B,x,D,W,F,M,Q),B+=1;B<=R;B+=1)if(X=i(B-1,A,P,I,F,j,X),B<_)Q=a(B,x,D,W,F,M,Q);else if(c(B,A,x,P,D,F,M,Q,j,X,H))return}throw new Error(`${t}: no overlap aStart=${A} aEnd=${x} bStart=${P} bEnd=${D}`)},h=(g,A,x,P,D,F,M,j,H,W)=>{if(D-P<x-A){if(F=!F,F&&M.length===1){let{foundSubsequence:Ee,isCommon:ye}=M[0];M[1]={foundSubsequence:(ve,ge,xe)=>{Ee(ve,xe,ge)},isCommon:(ve,ge)=>ye(ge,ve)}}let ae=A,he=x;A=P,x=D,P=ae,D=he}let{foundSubsequence:I,isCommon:L}=M[F?1:0];d(g,A,x,P,D,L,j,H,W);let{nChangePreceding:V,aEndPreceding:J,bEndPreceding:Q,nCommonPreceding:X,aCommonPreceding:_,bCommonPreceding:R,nCommonFollowing:B,aCommonFollowing:$,bCommonFollowing:N,nChangeFollowing:z,aStartFollowing:U,bStartFollowing:Z}=W;A<J&&P<Q&&h(V,A,J,P,Q,F,M,j,H,W),X!==0&&I(X,_,R),B!==0&&I(B,$,N),U<x&&Z<D&&h(z,U,x,Z,D,F,M,j,H,W)},m=(g,A)=>{if(typeof A!="number")throw new TypeError(`${t}: ${g} typeof ${typeof A} is not a number`);if(!Number.isSafeInteger(A))throw new RangeError(`${t}: ${g} value ${A} is not a safe integer`);if(A<0)throw new RangeError(`${t}: ${g} value ${A} is a negative intege
|
||
|
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"]},m={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},f="\u2026";function w(b,C){var q=h[m[C]]||h[C];return q?"\x1B[".concat(q[0],"m").concat(String(b),"\x1B[").concat(q[1],"m"):String(b)}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=b.showHidden,q=C===void 0?!1:C,G=b.depth,K=G===void 0?2:G,re=b.colors,ce=re===void 0?!1:re,fe=b.customInspect,Te=fe===void 0?!0:fe,_e=b.showProxy,Me=_e===void 0?!1:_e,it=b.maxArrayLength,un=it===void 0?1/0:it,Ut=b.breakLength,vt=Ut===void 0?1/0:Ut,Ht=b.seen,Hd=Ht===void 0?[]:Ht,ia=b.truncate,Wd=ia===void 0?1/0:ia,ua=b.stylize,Gd=ua===void 0?String:ua,sn={showHidden:!!q,depth:Number(K),colors:!!ce,customInspect:!!Te,showProxy:!!Me,maxArrayLength:Number(un),breakLength:Number(vt),truncate:Number(Wd),seen:Hd,stylize:Gd};return sn.colors&&(sn.stylize=w),sn}function A(b,C){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f;b=String(b);var G=q.length,K=b.length;return G>C&&K>G?q:K>C&&K>G?"".concat(b.slice(0,C-G)).concat(q):b}function x(b,C,q){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";q=q||C.inspect;var K=b.length;if(K===0)return"";for(var re=C.truncate,ce="",fe="",Te="",_e=0;_e<K;_e+=1){var Me=_e+1===b.length,it=_e+2===b.length;Te="".concat(f,"(").concat(b.length-_e,")");var un=b[_e];C.truncate=re-ce.length-(Me?0:G.length);var Ut=fe||q(un,C)+(Me?"":G),vt=ce.length+Ut.length,Ht=vt+Te.length;if(Me&&vt>re&&ce.length+Te.length<=re||!Me&&!it&&Ht>re||(fe=Me?"":q(b[_e+1],C)+(it?"":G),!Me&&it&&Ht>re&&vt+fe.length>re))break;if(ce+=Ut,!Me&&!it&&vt+fe.length>=re){Te="".concat(f,"(").concat(b.length-_e-1,")");break}Te=""}return"".concat(ce).concat(Te)}function P(b){return b.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?b:JSON.stringify(b).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function D(b,C){var q=o(b,2),G=q[0],K=q[1];return C.truncate-=2,typeof G=="string"?G=P(G):typeof G!="number"&&(G="[".concat(C.inspect(G,C),"]")),C.truncate-=G.length,K=C.inspect(K,C),"".concat(G,": ").concat(K)}function F(b,C){var q=Object.keys(b).slice(b.length);if(!b.length&&!q.length)return"[]";C.truncate-=4;var G=x(b,C);C.truncate-=G.length;var K="";return q.length&&(K=x(q.map(function(re){return[re,b[re]]}),C,D)),"[ ".concat(G).concat(K?", ".concat(K):""," ]")}var M=Function.prototype.toString,j=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,H=512;function W(b){if(typeof b!="function")return null;var C="";if(typeof Function.prototype.name>"u"&&typeof b.name>"u"){var q=M.call(b);if(q.indexOf("(")>H)return C;var G=q.match(j);G&&(C=G[1])}else C=b.name;return C}var I=W,L=function(b){return typeof Buffer=="function"&&b instanceof Buffer?"Buffer":b[Symbol.toStringTag]?b[Symbol.toStringTag]:I(b.constructor)};function V(b,C){var q=L(b);C.truncate-=q.length+4;var G=Object.keys(b).slice(b.length);if(!b.length&&!G.length)return"".concat(q,"[]");for(var K="",re=0;re<b.length;re++){var ce="".concat(C.stylize(A(b[re],C.truncate),"number")).concat(re===b.length-1?"":", ");if(C.truncate-=ce.length,b[re]!==b.length&&C.truncate<=3){K+="".concat(f,"(").concat(b.length-b[re]+1,")");break}K+=ce}var fe="";return G.length&&(fe=x(G.map(function(Te){return[Te,b[Te]]}),C,D)),"".concat(q,"[ ").concat(K).concat(fe?", ".concat(fe):""," ]")}function J(b,C){var q=b.toJSON();if(q===null)return"Invalid Date";var G=q.split("T"),K=G[0];return C.stylize("".concat(K,"T").concat(A(G[1],C.truncate-K.leng
|
||
|
`)}function ra(b,C){var q=b.getAttributeNames(),G=b.tagName.toLowerCase(),K=C.stylize("<".concat(G),"special"),re=C.stylize(">","special"),ce=C.stylize("</".concat(G,">"),"special");C.truncate-=G.length*2+5;var fe="";q.length>0&&(fe+=" ",fe+=x(q.map(function(Me){return[Me,b.getAttribute(Me)]}),C,Md," ")),C.truncate-=fe.length;var Te=C.truncate,_e=an(b.children,C);return _e&&_e.length>Te&&(_e="".concat(f,"(").concat(b.children.length,")")),"".concat(K).concat(fe).concat(re).concat(_e).concat(ce)}var jd=typeof Symbol=="function"&&typeof Symbol.for=="function",pr=jd?Symbol.for("chai/inspect"):"@@chai/inspect",Et=!1;try{var na=KA("util");Et=na.inspect?na.inspect.custom:!1}catch{Et=!1}function oa(){this.key="chai/loupe__"+Math.random()+Date.now()}oa.prototype={get:function(b){return b[this.key]},has:function(b){return this.key in b},set:function(b,C){Object.isExtensible(b)&&Object.defineProperty(b,this.key,{value:C,configurable:!0})}};var fr=new(typeof WeakMap=="function"?WeakMap:oa),dr={},aa={undefined:function(b,C){return C.stylize("undefined","undefined")},null:function(b,C){return C.stylize(null,"null")},boolean:function(b,C){return C.stylize(b,"boolean")},Boolean:function(b,C){return C.stylize(b,"boolean")},number:$,Number:$,bigint:N,BigInt:N,string:ge,String:ge,function:Q,Function:Q,symbol:xe,Symbol:xe,Array:F,Date:J,Map:R,Set:Z,RegExp:z,Promise:te,WeakSet:function(b,C){return C.stylize("WeakSet{\u2026}","special")},WeakMap:function(b,C){return C.stylize("WeakMap{\u2026}","special")},Arguments:Re,Int8Array:V,Uint8Array:V,Uint8ClampedArray:V,Int16Array:V,Uint16Array:V,Int32Array:V,Uint32Array:V,Float32Array:V,Float64Array:V,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:qd,HTMLCollection:an,NodeList:an},Ld=function(b,C,q){return pr in b&&typeof b[pr]=="function"?b[pr](C):Et&&Et in b&&typeof b[Et]=="function"?b[Et](C.depth,C):"inspect"in b&&typeof b.inspect=="function"?b.inspect(C.depth,C):"constructor"in b&&fr.has(b.constructor)?fr.get(b.constructor)(b,C):dr[q]?dr[q](b,C):""},kd=Object.prototype.toString;function hr(b,C){C=g(C),C.inspect=hr;var q=C,G=q.customInspect,K=b===null?"null":n(b);if(K==="object"&&(K=kd.call(b).slice(8,-1)),aa[K])return aa[K](b,C);if(G&&b){var re=Ld(b,C,K);if(re)return typeof re=="string"?re:hr(re,C)}var ce=b?Object.getPrototypeOf(b):!1;return ce===Object.prototype||ce===null?k(b,C):b&&typeof HTMLElement=="function"&&b instanceof HTMLElement?ra(b,C):"constructor"in b?b.constructor!==Object?me(b,C):k(b,C):b===Object(b)?k(b,C):C.stylize(String(b),K)}function $d(b,C){return fr.has(b)?!1:(fr.set(b,C),!0)}function zd(b,C){return b in dr?!1:(dr[b]=C,!0)}var Ud=pr;r.custom=Ud,r.default=hr,r.inspect=hr,r.registerConstructor=$d,r.registerStringTag=zd,Object.defineProperty(r,"__esModule",{value:!0})})}}),uw=yt(Bo(),1),pL=yt($f(),1),fL=Symbol("vitest:SAFE_COLORS"),sw={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"]},lw=Object.entries(sw);function No(e){return String(e)}No.open="";No.close="";var dL=lw.reduce((e,[t])=>(e[t]=No,e),{isColorSupported:!1});var{AsymmetricMatcher:hL,DOMCollection:mL,DOMElement:yL,Immutable:gL,ReactElement:bL,ReactTestComponent:EL}=uw.plugins;var cw=yt(Bo(),1),vL=yt(zf(),1),{AsymmetricMatcher:SL,DOMCollection:AL,DOMElement:wL,Immutable:CL,ReactElement:_L,ReactTestComponent:OL}=cw.plugins;yt(Bo(),1);yt($f(),1);yt(zf(
|
||
|
`);return y.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:Xe.size.s1,...t}},r.flatMap((n,o)=>{if(n.startsWith("expect(")){let h=md(n,7),m=h&&7+h.length,f=h&&n.slice(m).match(/\.(to|last|nth)[A-Z]\w+\(/);if(f){let w=m+f.index+f[0].length,g=md(n,w);if(g)return["expect(",y.createElement(Wo,{key:`received_${h}`,value:h}),n.slice(m,w),y.createElement(Go,{key:`expected_${g}`,value:g}),n.slice(w+g.length),y.createElement("br",{key:`br${o}`})]}}if(n.match(/^\s*- /))return[y.createElement(Go,{key:n+o,value:n}),y.createElement("br",{key:`br${o}`})];if(n.match(/^\s*\+ /)||n.match(/^Received: $/))return[y.createElement(Wo,{key:n+o,value:n}),y.createElement("br",{key:`br${o}`})];let[,a,i]=n.match(/^(Expected|Received): (.*)$/)||[];if(a&&i)return a==="Expected"?["Expected: ",y.createElement(Go,{key:n+o,value:Ho(i),parsed:!0}),y.createElement("br",{key:`br${o}`})]:["Received: ",y.createElement(Wo,{key:n+o,value:Ho(i),parsed:!0}),y.createElement("br",{key:`br${o}`})];let[,c,p]=n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&p)return[`${c} of calls: `,y.createElement(bt,{key:n+o,value:Number(p)}),y.createElement("br",{key:`br${o}`})];let[,d]=n.match(/^Received has value: (.+)$/)||[];return d?["Received has value: ",y.createElement(bt,{key:n+o,value:Ho(d)}),y.createElement("br",{key:`br${o}`})]:[y.createElement("span",{key:n+o},n),y.createElement("br",{key:`br${o}`})]}))},f_=ie.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),Fd=({status:e})=>{let t=ir();switch(e){case se.DONE:return y.createElement(Zf,{color:t.color.positive,"data-testid":"icon-done"});case se.ERROR:return y.createElement(sd,{color:t.color.negative,"data-testid":"icon-error"});case se.ACTIVE:return y.createElement(ad,{color:t.color.secondary,"data-testid":"icon-active"});case se.WAITING:return y.createElement(f_,{"data-testid":"icon-waiting"},y.createElement(ed,{color:en(.5,"#CCCCCC"),size:6}));default:return null}};function d_(e){return Bd(e)||Nd(e)}function Bd(e){return e&&typeof e=="object"&&"name"in e&&typeof e.name=="string"&&e.name==="AssertionError"}function Nd(e){return e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&e.message.startsWith("expect(")}var h_=ie.div(()=>({fontFamily:Xe.fonts.mono,fontSize:Xe.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),m_=ie("div",{shouldForwardProp:e=>!["call","pausedAt"].includes(e.toString())})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:Xe.fonts.base,fontSize:13,...t.status===se.ERROR&&{backgroundColor:e.base==="dark"?en(.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}`}}),y_=ie.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),g_=ie("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===se.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===se.ERROR?e.color.warning:e.color.secondary}`,background:r.status===se.ERROR?"transparent":e.background.hoverable},"& > div":{opacity:r.status===se.WAITING?.5:1}})),b_=ie.div({padding:6}),E_=ie(fn)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),v_=ie(hn)(({theme:e})=>({fontFamily:e.typography.fonts.base})),gd=ie("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:Xe.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),S_=({exception:e})=>{if(Nd(e))return ne(yd,{...
|
||
|
|
||
|
${e.diff}`:""}`,style:{padding:0}}),ne("p",null,"See the full stack trace in the browser console."));let t=e.message.split(`
|
||
|
|
||
|
`),r=t.length>1;return ne(gd,null,ne("pre",null,t[0]),r&&ne("p",null,"See the full stack trace in the browser console."))},A_=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:c,pausedAt:p})=>{let[d,h]=ke(!1),m=!n.goto||!e.interceptable||!!e.ancestors.length;return a?null:ne(m_,{call:e,pausedAt:p},ne(y_,{isInteractive:m},ne(g_,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:m,onMouseEnter:()=>n.goto&&h(!0),onMouseLeave:()=>n.goto&&h(!1)},ne(Fd,{status:d?se.ACTIVE:e.status}),ne(h_,{style:{marginLeft:6,marginBottom:1}},ne(ta,{call:e,callsById:t}))),ne(b_,null,o?.length>0&&ne(st,{hasChrome:!1,tooltip:ne(v_,{note:`${i?"Show":"Hide"} interactions`})},ne(E_,{containsIcon:!0,onClick:c},ne(nd,null))))),e.status===se.ERROR&&e.exception?.callId===e.id&&ne(S_,{exception:e.exception}))},w_=ie.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),C_=ie.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),__=()=>{let[e,t]=ke(!0),r=ma().getDocsUrl({subpath:lC,versioned:!0,renderer:!0});return Je(()=>{let n=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(n)},[]),e?null:y.createElement(va,{title:"Interaction testing",description:y.createElement(y.Fragment,null,"Interaction tests allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:y.createElement(w_,null,y.createElement(dn,{href:sC,target:"_blank",withArrow:!0},y.createElement(cd,null)," Watch 8m video"),y.createElement(C_,null),y.createElement(dn,{href:r,target:"_blank",withArrow:!0},y.createElement(td,null)," Read docs"))})},O_=ie.div(({theme:e})=>({height:"100%",background:e.background.content})),bd=ie.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,backgroundColor:e.base==="dark"?en(.93,e.color.negative):e.background.warning,padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Vo=ie.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})),Ed=ie.div({paddingBottom:4,fontWeight:"bold"}),x_=ie.p({margin:0,padding:"0 0 20px"}),vd=ie.pre(({theme:e})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:e.typography.size.s1-1})),T_=yr(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:o,hasException:a,caughtException:i,unhandledErrors:c,isPlaying:p,pausedAt:d,onScrollToEnd:h,endRef:m}){return ne(O_,null,(n.length>0||a)&&ne(vC,{controls:t,controlStates:r,status:p?se.ACTIVE:a?se.ERROR:se.DONE,storyFileName:o,onScrollToEnd:h}),ne("div",{"aria-label":"Interactions list"},n.map(f=>ne(A_,{key:f.id,call:f,callsById:e,controls:t,controlStates:r,childCallIds:f.childCallIds,isHidden:f.isHidden,isCollapsed:f.isCollapsed,toggleCollapsed:f.toggleCollapsed,pausedAt:d}))),i&&!d_(i)&&ne(bd,null,ne(Ed,null,"Caught exception in ",ne(Vo,null,"play")," function"),ne(vd,{"data-chromatic":"ignore"},Sd(i))),c&&ne(bd,null,ne(Ed,null,"Unhandled Errors"),ne(x_,null,"Found ",c.length," unhandled error",c.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",ne(Vo,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",ne(Vo,null,"true"),"."),c.map((f,w)=>ne(vd,{key:w,"data-chromatic":"ignore"},Sd(f)))),ne("div",{ref:m}),!p&&!i&&n.length===0&&ne(__,null))});function Sd(e){return e.stack||`${e.name}: ${e.message}`}var Yo={start:!1,back:!1,goto:!1,next:!1,end:!1},Ad=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return e.map(({callId:i,ancestors:c,status:p})=>{let d=!1;return c.forEach(h=>{r.has(h)&&(d=!0),a.set(h,(a.get(h)||[]).concat(i))}),{...t.get(i),status:p,isHidden:d}}).map(i=>{let c=i.status===se.ERROR&&o.get(i.ancestors.slice(-1)[0])?.status===se.ACTIVE?se.ACTIVE:i.status;return o.set(i.id,{...i,status:c}),{...i,status:c,childCallIds:a.get(i.id),isCollapsed:r.has(i.id),
|
||
|
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
|