var qr=Object.create,$e=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Gr=Object.getOwnPropertyNames,Yr=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty,n=(a,t)=>$e(a,"name",{value:t,configurable:!0}),f=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),Wr=(a,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gr(t))!zr.call(a,i)&&i!==r&&$e(a,i,{get:()=>t[i],enumerable:!(s=Br(t,i))||s.enumerable});return a},bt=(a,t,r)=>(r=a!=null?qr(Yr(a)):{},Wr(t||!a||!a.__esModule?$e(r,"default",{value:a,enumerable:!0}):r,a)),xt=f((a,t)=>{var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}),Z=f((a,t)=>{var r=xt(),s=typeof self=="object"&&self&&self.Object===Object&&self,i=r||s||Function("return this")();t.exports=i}),Ee=f((a,t)=>{var r=Z(),s=r.Symbol;t.exports=s}),Hr=f((a,t)=>{var r=Ee(),s=Object.prototype,i=s.hasOwnProperty,p=s.toString,c=r?r.toStringTag:void 0;function u(y){var m=i.call(y,c),T=y[c];try{y[c]=void 0;var v=!0}catch{}var x=p.call(y);return v&&(m?y[c]=T:delete y[c]),x}n(u,"getRawTag"),t.exports=u}),Xr=f((a,t)=>{var r=Object.prototype,s=r.toString;function i(p){return s.call(p)}n(i,"objectToString"),t.exports=i}),fe=f((a,t)=>{var r=Ee(),s=Hr(),i=Xr(),p="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;function y(m){return m==null?m===void 0?c:p:u&&u in Object(m)?s(m):i(m)}n(y,"baseGetTag"),t.exports=y}),Me=f((a,t)=>{function r(s){var i=typeof s;return s!=null&&(i=="object"||i=="function")}n(r,"isObject"),t.exports=r}),wt=f((a,t)=>{var r=fe(),s=Me(),i="[object AsyncFunction]",p="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function y(m){if(!s(m))return!1;var T=r(m);return T==p||T==c||T==i||T==u}n(y,"isFunction"),t.exports=y}),Qr=f((a,t)=>{var r=Z(),s=r["__core-js_shared__"];t.exports=s}),Zr=f((a,t)=>{var r=Qr(),s=function(){var p=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function i(p){return!!s&&s in p}n(i,"isMasked"),t.exports=i}),Pt=f((a,t)=>{var r=Function.prototype,s=r.toString;function i(p){if(p!=null){try{return s.call(p)}catch{}try{return p+""}catch{}}return""}n(i,"toSource"),t.exports=i}),en=f((a,t)=>{var r=wt(),s=Zr(),i=Me(),p=Pt(),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,y=Function.prototype,m=Object.prototype,T=y.toString,v=m.hasOwnProperty,x=RegExp("^"+T.call(v).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(w){if(!i(w)||s(w))return!1;var _=r(w)?x:u;return _.test(p(w))}n(g,"baseIsNative"),t.exports=g}),tn=f((a,t)=>{function r(s,i){return s==null?void 0:s[i]}n(r,"getValue"),t.exports=r}),ie=f((a,t)=>{var r=en(),s=tn();function i(p,c){var u=s(p,c);return r(u)?u:void 0}n(i,"getNative"),t.exports=i}),rn=f((a,t)=>{var r=ie(),s=function(){try{var i=r(Object,"defineProperty");return i({},"",{}),i}catch{}}();t.exports=s}),nn=f((a,t)=>{var r=rn();function s(i,p,c){p=="__proto__"&&r?r(i,p,{configurable:!0,enumerable:!0,value:c,writable:!0}):i[p]=c}n(s,"baseAssignValue"),t.exports=s}),an=f((a,t)=>{function r(s){return function(i,p,c){for(var u=-1,y=Object(i),m=c(i),T=m.length;T--;){var v=m[s?T:++u];if(p(y[v],v,y)===!1)break}return i}}n(r,"createBaseFor"),t.exports=r}),on=f((a,t)=>{var r=an(),s=r();t.exports=s}),sn=f((a,t)=>{function r(s,i){for(var p=-1,c=Array(s);++p{function r(s){return s!=null&&typeof s=="object"}n(r,"isObjectLike"),t.exports=r}),pn=f((a,t)=>{var r=fe(),s=Te(),i="[object Arguments]";function p(c){return s(c)&&r(c)==i}n(p,"baseIsArguments"),t.exports=p}),Nt=f((a,t)=>{var r=pn(),s=Te(),i=Object.prototype,p=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(y){return s(y)&&p.call(y,"callee")&&!c.call(y,"callee")};t.exports=u}),ne=f((a,t)=>{var r=Array.isArray;t.exports=r}),ln=f((a,t)=>{function r(){return!1}n(r,"stubFalse"),t.exports=r}),Ot=f((a,t)=>{var r=Z(),s=ln(),i=typeof a=="object"&&a&&!a.nodeType&&a,p=i&&typeof t=="object"&&t&&!t.nodeType&&t,c=p&&p.exports===i,u=c?r.Buffer:void 0,y=u?u.isBuffer:void 0,m=y||s;t.exports=m}),_t=f((a,t)=>{var r=9007199254740991,s=/^(?:0|[1-9]\d*)$/;function i(p,c){var u=typeof p;return c=c??r,!!c&&(u=="number"||u!="symbol"&&s.test(p))&&p>-1&&p%1==0&&p{var r=9007199254740991;function s(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=r}n(s,"isLength"),t.exports=s}),cn=f((a,t)=>{var r=fe(),s=Ce(),i=Te(),p="[object Arguments]",c="[object Array]",u="[object Boolean]",y="[object Date]",m="[object Error]",T="[object Function]",v="[object Map]",x="[object Number]",g="[object Object]",w="[object RegExp]",_="[object Set]",L="[object String]",R="[object WeakMap]",P="[object ArrayBuffer]",k="[object DataView]",S="[object Float32Array]",K="[object Float64Array]",A="[object Int8Array]",V="[object Int16Array]",j="[object Int32Array]",I="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",G="[object Uint32Array]",E={};E[S]=E[K]=E[A]=E[V]=E[j]=E[I]=E[O]=E[$]=E[G]=!0,E[p]=E[c]=E[P]=E[u]=E[k]=E[y]=E[m]=E[T]=E[v]=E[x]=E[g]=E[w]=E[_]=E[L]=E[R]=!1;function Y(C){return i(C)&&s(C.length)&&!!E[r(C)]}n(Y,"baseIsTypedArray"),t.exports=Y}),un=f((a,t)=>{function r(s){return function(i){return s(i)}}n(r,"baseUnary"),t.exports=r}),yn=f((a,t)=>{var r=xt(),s=typeof a=="object"&&a&&!a.nodeType&&a,i=s&&typeof t=="object"&&t&&!t.nodeType&&t,p=i&&i.exports===s,c=p&&r.process,u=function(){try{var y=i&&i.require&&i.require("util").types;return y||c&&c.binding&&c.binding("util")}catch{}}();t.exports=u}),Et=f((a,t)=>{var r=cn(),s=un(),i=yn(),p=i&&i.isTypedArray,c=p?s(p):r;t.exports=c}),dn=f((a,t)=>{var r=sn(),s=Nt(),i=ne(),p=Ot(),c=_t(),u=Et(),y=Object.prototype,m=y.hasOwnProperty;function T(v,x){var g=i(v),w=!g&&s(v),_=!g&&!w&&p(v),L=!g&&!w&&!_&&u(v),R=g||w||_||L,P=R?r(v.length,String):[],k=P.length;for(var S in v)(x||m.call(v,S))&&!(R&&(S=="length"||_&&(S=="offset"||S=="parent")||L&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||c(S,k)))&&P.push(S);return P}n(T,"arrayLikeKeys"),t.exports=T}),mn=f((a,t)=>{var r=Object.prototype;function s(i){var p=i&&i.constructor,c=typeof p=="function"&&p.prototype||r;return i===c}n(s,"isPrototype"),t.exports=s}),fn=f((a,t)=>{function r(s,i){return function(p){return s(i(p))}}n(r,"overArg"),t.exports=r}),Tn=f((a,t)=>{var r=fn(),s=r(Object.keys,Object);t.exports=s}),hn=f((a,t)=>{var r=mn(),s=Tn(),i=Object.prototype,p=i.hasOwnProperty;function c(u){if(!r(u))return s(u);var y=[];for(var m in Object(u))p.call(u,m)&&m!="constructor"&&y.push(m);return y}n(c,"baseKeys"),t.exports=c}),vn=f((a,t)=>{var r=wt(),s=Ce();function i(p){return p!=null&&s(p.length)&&!r(p)}n(i,"isArrayLike"),t.exports=i}),qe=f((a,t)=>{var r=dn(),s=hn(),i=vn();function p(c){return i(c)?r(c):s(c)}n(p,"keys"),t.exports=p}),gn=f((a,t)=>{var r=on(),s=qe();function i(p,c){return p&&r(p,c,s)}n(i,"baseForOwn"),t.exports=i}),Jn=f((a,t)=>{function r(){this.__data__=[],this.size=0}n(r,"listCacheClear"),t.exports=r}),St=f((a,t)=>{function r(s,i){return s===i||s!==s&&i!==i}n(r,"eq"),t.exports=r}),Se=f((a,t)=>{var r=St();function s(i,p){for(var c=i.length;c--;)if(r(i[c][0],p))return c;return-1}n(s,"assocIndexOf"),t.exports=s}),bn=f((a,t)=>{var r=Se(),s=Array.prototype,i=s.splice;function p(c){var u=this.__data__,y=r(u,c);if(y<0)return!1;var m=u.length-1;return y==m?u.pop():i.call(u,y,1),--this.size,!0}n(p,"listCacheDelete"),t.exports=p}),xn=f((a,t)=>{var r=Se();function s(i){var p=this.__data__,c=r(p,i);return c<0?void 0:p[c][1]}n(s,"listCacheGet"),t.exports=s}),wn=f((a,t)=>{var r=Se();function s(i){return r(this.__data__,i)>-1}n(s,"listCacheHas"),t.exports=s}),Pn=f((a,t)=>{var r=Se();function s(i,p){var c=this.__data__,u=r(c,i);return u<0?(++this.size,c.push([i,p])):c[u][1]=p,this}n(s,"listCacheSet"),t.exports=s}),je=f((a,t)=>{var r=Jn(),s=bn(),i=xn(),p=wn(),c=Pn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var r=je();function s(){this.__data__=new r,this.size=0}n(s,"stackClear"),t.exports=s}),On=f((a,t)=>{function r(s){var i=this.__data__,p=i.delete(s);return this.size=i.size,p}n(r,"stackDelete"),t.exports=r}),_n=f((a,t)=>{function r(s){return this.__data__.get(s)}n(r,"stackGet"),t.exports=r}),En=f((a,t)=>{function r(s){return this.__data__.has(s)}n(r,"stackHas"),t.exports=r}),Be=f((a,t)=>{var r=ie(),s=Z(),i=r(s,"Map");t.exports=i}),Ie=f((a,t)=>{var r=ie(),s=r(Object,"create");t.exports=s}),Sn=f((a,t)=>{var r=Ie();function s(){this.__data__=r?r(null):{},this.size=0}n(s,"hashClear"),t.exports=s}),jn=f((a,t)=>{function r(s){var i=this.has(s)&&delete this.__data__[s];return this.size-=i?1:0,i}n(r,"hashDelete"),t.exports=r}),In=f((a,t)=>{var r=Ie(),s="__lodash_hash_undefined__",i=Object.prototype,p=i.hasOwnProperty;function c(u){var y=this.__data__;if(r){var m=y[u];return m===s?void 0:m}return p.call(y,u)?y[u]:void 0}n(c,"hashGet"),t.exports=c}),kn=f((a,t)=>{var r=Ie(),s=Object.prototype,i=s.hasOwnProperty;function p(c){var u=this.__data__;return r?u[c]!==void 0:i.call(u,c)}n(p,"hashHas"),t.exports=p}),An=f((a,t)=>{var r=Ie(),s="__lodash_hash_undefined__";function i(p,c){var u=this.__data__;return this.size+=this.has(p)?0:1,u[p]=r&&c===void 0?s:c,this}n(i,"hashSet"),t.exports=i}),Rn=f((a,t)=>{var r=Sn(),s=jn(),i=In(),p=kn(),c=An();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var r=Rn(),s=je(),i=Be();function p(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}n(p,"mapCacheClear"),t.exports=p}),Ln=f((a,t)=>{function r(s){var i=typeof s;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?s!=="__proto__":s===null}n(r,"isKeyable"),t.exports=r}),ke=f((a,t)=>{var r=Ln();function s(i,p){var c=i.__data__;return r(p)?c[typeof p=="string"?"string":"hash"]:c.map}n(s,"getMapData"),t.exports=s}),Un=f((a,t)=>{var r=ke();function s(i){var p=r(this,i).delete(i);return this.size-=p?1:0,p}n(s,"mapCacheDelete"),t.exports=s}),Vn=f((a,t)=>{var r=ke();function s(i){return r(this,i).get(i)}n(s,"mapCacheGet"),t.exports=s}),Dn=f((a,t)=>{var r=ke();function s(i){return r(this,i).has(i)}n(s,"mapCacheHas"),t.exports=s}),Kn=f((a,t)=>{var r=ke();function s(i,p){var c=r(this,i),u=c.size;return c.set(i,p),this.size+=c.size==u?0:1,this}n(s,"mapCacheSet"),t.exports=s}),Ge=f((a,t)=>{var r=Fn(),s=Un(),i=Vn(),p=Dn(),c=Kn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var r=je(),s=Be(),i=Ge(),p=200;function c(u,y){var m=this.__data__;if(m instanceof r){var T=m.__data__;if(!s||T.length{var r=je(),s=Nn(),i=On(),p=_n(),c=En(),u=$n();function y(m){var T=this.__data__=new r(m);this.size=T.size}n(y,"Stack"),y.prototype.clear=s,y.prototype.delete=i,y.prototype.get=p,y.prototype.has=c,y.prototype.set=u,t.exports=y}),Mn=f((a,t)=>{var r="__lodash_hash_undefined__";function s(i){return this.__data__.set(i,r),this}n(s,"setCacheAdd"),t.exports=s}),Cn=f((a,t)=>{function r(s){return this.__data__.has(s)}n(r,"setCacheHas"),t.exports=r}),qn=f((a,t)=>{var r=Ge(),s=Mn(),i=Cn();function p(c){var u=-1,y=c==null?0:c.length;for(this.__data__=new r;++u{function r(s,i){for(var p=-1,c=s==null?0:s.length;++p{function r(s,i){return s.has(i)}n(r,"cacheHas"),t.exports=r}),It=f((a,t)=>{var r=qn(),s=Bn(),i=Gn(),p=1,c=2;function u(y,m,T,v,x,g){var w=T&p,_=y.length,L=m.length;if(_!=L&&!(w&&L>_))return!1;var R=g.get(y),P=g.get(m);if(R&&P)return R==m&&P==y;var k=-1,S=!0,K=T&c?new r:void 0;for(g.set(y,m),g.set(m,y);++k<_;){var A=y[k],V=m[k];if(v)var j=w?v(V,A,k,m,y,g):v(A,V,k,y,m,g);if(j!==void 0){if(j)continue;S=!1;break}if(K){if(!s(m,function(I,O){if(!i(K,O)&&(A===I||x(A,I,T,v,g)))return K.push(O)})){S=!1;break}}else if(!(A===V||x(A,V,T,v,g))){S=!1;break}}return g.delete(y),g.delete(m),S}n(u,"equalArrays"),t.exports=u}),Yn=f((a,t)=>{var r=Z(),s=r.Uint8Array;t.exports=s}),zn=f((a,t)=>{function r(s){var i=-1,p=Array(s.size);return s.forEach(function(c,u){p[++i]=[u,c]}),p}n(r,"mapToArray"),t.exports=r}),Wn=f((a,t)=>{function r(s){var i=-1,p=Array(s.size);return s.forEach(function(c){p[++i]=c}),p}n(r,"setToArray"),t.exports=r}),Hn=f((a,t)=>{var r=Ee(),s=Yn(),i=St(),p=It(),c=zn(),u=Wn(),y=1,m=2,T="[object Boolean]",v="[object Date]",x="[object Error]",g="[object Map]",w="[object Number]",_="[object RegExp]",L="[object Set]",R="[object String]",P="[object Symbol]",k="[object ArrayBuffer]",S="[object DataView]",K=r?r.prototype:void 0,A=K?K.valueOf:void 0;function V(j,I,O,$,G,E,Y){switch(O){case S:if(j.byteLength!=I.byteLength||j.byteOffset!=I.byteOffset)return!1;j=j.buffer,I=I.buffer;case k:return!(j.byteLength!=I.byteLength||!E(new s(j),new s(I)));case T:case v:case w:return i(+j,+I);case x:return j.name==I.name&&j.message==I.message;case _:case R:return j==I+"";case g:var C=c;case L:var b=$&y;if(C||(C=u),j.size!=I.size&&!b)return!1;var oe=Y.get(j);if(oe)return oe==I;$|=m,Y.set(j,I);var ee=p(C(j),C(I),$,G,E,Y);return Y.delete(j),ee;case P:if(A)return A.call(j)==A.call(I)}return!1}n(V,"equalByTag"),t.exports=V}),Xn=f((a,t)=>{function r(s,i){for(var p=-1,c=i.length,u=s.length;++p{var r=Xn(),s=ne();function i(p,c,u){var y=c(p);return s(p)?y:r(y,u(p))}n(i,"baseGetAllKeys"),t.exports=i}),Zn=f((a,t)=>{function r(s,i){for(var p=-1,c=s==null?0:s.length,u=0,y=[];++p{function r(){return[]}n(r,"stubArray"),t.exports=r}),ta=f((a,t)=>{var r=Zn(),s=ea(),i=Object.prototype,p=i.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(y){return y==null?[]:(y=Object(y),r(c(y),function(m){return p.call(y,m)}))}:s;t.exports=u}),ra=f((a,t)=>{var r=Qn(),s=ta(),i=qe();function p(c){return r(c,i,s)}n(p,"getAllKeys"),t.exports=p}),na=f((a,t)=>{var r=ra(),s=1,i=Object.prototype,p=i.hasOwnProperty;function c(u,y,m,T,v,x){var g=m&s,w=r(u),_=w.length,L=r(y),R=L.length;if(_!=R&&!g)return!1;for(var P=_;P--;){var k=w[P];if(!(g?k in y:p.call(y,k)))return!1}var S=x.get(u),K=x.get(y);if(S&&K)return S==y&&K==u;var A=!0;x.set(u,y),x.set(y,u);for(var V=g;++P<_;){k=w[P];var j=u[k],I=y[k];if(T)var O=g?T(I,j,k,y,u,x):T(j,I,k,u,y,x);if(!(O===void 0?j===I||v(j,I,m,T,x):O)){A=!1;break}V||(V=k=="constructor")}if(A&&!V){var $=u.constructor,G=y.constructor;$!=G&&"constructor"in u&&"constructor"in y&&!(typeof $=="function"&&$ instanceof $&&typeof G=="function"&&G instanceof G)&&(A=!1)}return x.delete(u),x.delete(y),A}n(c,"equalObjects"),t.exports=c}),aa=f((a,t)=>{var r=ie(),s=Z(),i=r(s,"DataView");t.exports=i}),oa=f((a,t)=>{var r=ie(),s=Z(),i=r(s,"Promise");t.exports=i}),sa=f((a,t)=>{var r=ie(),s=Z(),i=r(s,"Set");t.exports=i}),ia=f((a,t)=>{var r=ie(),s=Z(),i=r(s,"WeakMap");t.exports=i}),pa=f((a,t)=>{var r=aa(),s=Be(),i=oa(),p=sa(),c=ia(),u=fe(),y=Pt(),m="[object Map]",T="[object Object]",v="[object Promise]",x="[object Set]",g="[object WeakMap]",w="[object DataView]",_=y(r),L=y(s),R=y(i),P=y(p),k=y(c),S=u;(r&&S(new r(new ArrayBuffer(1)))!=w||s&&S(new s)!=m||i&&S(i.resolve())!=v||p&&S(new p)!=x||c&&S(new c)!=g)&&(S=n(function(K){var A=u(K),V=A==T?K.constructor:void 0,j=V?y(V):"";if(j)switch(j){case _:return w;case L:return m;case R:return v;case P:return x;case k:return g}return A},"getTag")),t.exports=S}),la=f((a,t)=>{var r=jt(),s=It(),i=Hn(),p=na(),c=pa(),u=ne(),y=Ot(),m=Et(),T=1,v="[object Arguments]",x="[object Array]",g="[object Object]",w=Object.prototype,_=w.hasOwnProperty;function L(R,P,k,S,K,A){var V=u(R),j=u(P),I=V?x:c(R),O=j?x:c(P);I=I==v?g:I,O=O==v?g:O;var $=I==g,G=O==g,E=I==O;if(E&&y(R)){if(!y(P))return!1;V=!0,$=!1}if(E&&!$)return A||(A=new r),V||m(R)?s(R,P,k,S,K,A):i(R,P,I,k,S,K,A);if(!(k&T)){var Y=$&&_.call(R,"__wrapped__"),C=G&&_.call(P,"__wrapped__");if(Y||C){var b=Y?R.value():R,oe=C?P.value():P;return A||(A=new r),K(b,oe,k,S,A)}}return E?(A||(A=new r),p(R,P,k,S,K,A)):!1}n(L,"baseIsEqualDeep"),t.exports=L}),kt=f((a,t)=>{var r=la(),s=Te();function i(p,c,u,y,m){return p===c?!0:p==null||c==null||!s(p)&&!s(c)?p!==p&&c!==c:r(p,c,u,y,i,m)}n(i,"baseIsEqual"),t.exports=i}),ca=f((a,t)=>{var r=jt(),s=kt(),i=1,p=2;function c(u,y,m,T){var v=m.length,x=v,g=!T;if(u==null)return!x;for(u=Object(u);v--;){var w=m[v];if(g&&w[2]?w[1]!==u[w[0]]:!(w[0]in u))return!1}for(;++v{var r=Me();function s(i){return i===i&&!r(i)}n(s,"isStrictComparable"),t.exports=s}),ua=f((a,t)=>{var r=At(),s=qe();function i(p){for(var c=s(p),u=c.length;u--;){var y=c[u],m=p[y];c[u]=[y,m,r(m)]}return c}n(i,"getMatchData"),t.exports=i}),Rt=f((a,t)=>{function r(s,i){return function(p){return p==null?!1:p[s]===i&&(i!==void 0||s in Object(p))}}n(r,"matchesStrictComparable"),t.exports=r}),ya=f((a,t)=>{var r=ca(),s=ua(),i=Rt();function p(c){var u=s(c);return u.length==1&&u[0][2]?i(u[0][0],u[0][1]):function(y){return y===c||r(y,c,u)}}n(p,"baseMatches"),t.exports=p}),Ye=f((a,t)=>{var r=fe(),s=Te(),i="[object Symbol]";function p(c){return typeof c=="symbol"||s(c)&&r(c)==i}n(p,"isSymbol"),t.exports=p}),ze=f((a,t)=>{var r=ne(),s=Ye(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/;function c(u,y){if(r(u))return!1;var m=typeof u;return m=="number"||m=="symbol"||m=="boolean"||u==null||s(u)?!0:p.test(u)||!i.test(u)||y!=null&&u in Object(y)}n(c,"isKey"),t.exports=c}),da=f((a,t)=>{var r=Ge(),s="Expected a function";function i(p,c){if(typeof p!="function"||c!=null&&typeof c!="function")throw new TypeError(s);var u=n(function(){var y=arguments,m=c?c.apply(this,y):y[0],T=u.cache;if(T.has(m))return T.get(m);var v=p.apply(this,y);return u.cache=T.set(m,v)||T,v},"memoized");return u.cache=new(i.Cache||r),u}n(i,"memoize"),i.Cache=r,t.exports=i}),ma=f((a,t)=>{var r=da(),s=500;function i(p){var c=r(p,function(y){return u.size===s&&u.clear(),y}),u=c.cache;return c}n(i,"memoizeCapped"),t.exports=i}),fa=f((a,t)=>{var r=ma(),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,p=r(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(s,function(y,m,T,v){u.push(T?v.replace(i,"$1"):m||y)}),u});t.exports=p}),Ta=f((a,t)=>{function r(s,i){for(var p=-1,c=s==null?0:s.length,u=Array(c);++p{var r=Ee(),s=Ta(),i=ne(),p=Ye(),c=1/0,u=r?r.prototype:void 0,y=u?u.toString:void 0;function m(T){if(typeof T=="string")return T;if(i(T))return s(T,m)+"";if(p(T))return y?y.call(T):"";var v=T+"";return v=="0"&&1/T==-c?"-0":v}n(m,"baseToString"),t.exports=m}),va=f((a,t)=>{var r=ha();function s(i){return i==null?"":r(i)}n(s,"toString"),t.exports=s}),Ft=f((a,t)=>{var r=ne(),s=ze(),i=fa(),p=va();function c(u,y){return r(u)?u:s(u,y)?[u]:i(p(u))}n(c,"castPath"),t.exports=c}),Ae=f((a,t)=>{var r=Ye(),s=1/0;function i(p){if(typeof p=="string"||r(p))return p;var c=p+"";return c=="0"&&1/p==-s?"-0":c}n(i,"toKey"),t.exports=i}),Lt=f((a,t)=>{var r=Ft(),s=Ae();function i(p,c){c=r(c,p);for(var u=0,y=c.length;p!=null&&u{var r=Lt();function s(i,p,c){var u=i==null?void 0:r(i,p);return u===void 0?c:u}n(s,"get"),t.exports=s}),Ja=f((a,t)=>{function r(s,i){return s!=null&&i in Object(s)}n(r,"baseHasIn"),t.exports=r}),ba=f((a,t)=>{var r=Ft(),s=Nt(),i=ne(),p=_t(),c=Ce(),u=Ae();function y(m,T,v){T=r(T,m);for(var x=-1,g=T.length,w=!1;++x{var r=Ja(),s=ba();function i(p,c){return p!=null&&s(p,c,r)}n(i,"hasIn"),t.exports=i}),wa=f((a,t)=>{var r=kt(),s=ga(),i=xa(),p=ze(),c=At(),u=Rt(),y=Ae(),m=1,T=2;function v(x,g){return p(x)&&c(g)?u(y(x),g):function(w){var _=s(w,x);return _===void 0&&_===g?i(w,x):r(g,_,m|T)}}n(v,"baseMatchesProperty"),t.exports=v}),Pa=f((a,t)=>{function r(s){return s}n(r,"identity"),t.exports=r}),Na=f((a,t)=>{function r(s){return function(i){return i==null?void 0:i[s]}}n(r,"baseProperty"),t.exports=r}),Oa=f((a,t)=>{var r=Lt();function s(i){return function(p){return r(p,i)}}n(s,"basePropertyDeep"),t.exports=s}),_a=f((a,t)=>{var r=Na(),s=Oa(),i=ze(),p=Ae();function c(u){return i(u)?r(p(u)):s(u)}n(c,"property"),t.exports=c}),Ea=f((a,t)=>{var r=ya(),s=wa(),i=Pa(),p=ne(),c=_a();function u(y){return typeof y=="function"?y:y==null?i:typeof y=="object"?p(y)?s(y[0],y[1]):r(y):c(y)}n(u,"baseIteratee"),t.exports=u}),Sa=f((a,t)=>{var r=nn(),s=gn(),i=Ea();function p(c,u){var y={};return u=i(u,3),s(c,function(m,T,v){r(y,T,u(m,T,v))}),y}n(p,"mapValues"),t.exports=p}),ja=f((a,t)=>{(function(r,s){typeof a=="object"&&typeof t<"u"?s(a):typeof define=="function"&&define.amd?define(["exports"],s):(r=typeof globalThis<"u"?globalThis:r||self,s(r.jtpp={}))})(a,function(r){function s(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}n(s,"tokenToString");let i=class Ut extends Error{constructor(o){super(`No parslet found for token: ${s(o)}`),this.token=o,Object.setPrototypeOf(this,Ut.prototype)}getToken(){return this.token}};n(i,"NoParsletFoundError");let p=i,c=class Vt extends Error{constructor(o){super(`The parsing ended early. The next token was: ${s(o)}`),this.token=o,Object.setPrototypeOf(this,Vt.prototype)}getToken(){return this.token}};n(c,"EarlyEndOfParseError");let u=c,y=class Dt extends Error{constructor(o,l){let d=`Unexpected type: '${o.type}'.`;l!==void 0&&(d+=` Message: ${l}`),super(d),Object.setPrototypeOf(this,Dt.prototype)}};n(y,"UnexpectedTypeError");let m=y;function T(e){return o=>o.startsWith(e)?{type:e,text:e}:null}n(T,"makePunctuationRule");function v(e){let o=0,l,d=e[0],h=!1;if(d!=="'"&&d!=='"')return null;for(;o{let o=w(e);return o==null?null:{type:"Identifier",text:o}},"identifierRule");function P(e){return o=>{if(!o.startsWith(e))return null;let l=o[e.length];return l!==void 0&&g.test(l)?null:{type:e,text:e}}}n(P,"makeKeyWordRule");let k=n(e=>{let o=v(e);return o==null?null:{type:"StringValue",text:o}},"stringValueRule"),S=n(e=>e.length>0?null:{type:"EOF",text:""},"eofRule"),K=n(e=>{let o=L(e);return o===null?null:{type:"Number",text:o}},"numberRule"),A=[S,T("=>"),T("("),T(")"),T("{"),T("}"),T("["),T("]"),T("|"),T("&"),T("<"),T(">"),T(","),T(";"),T("*"),T("?"),T("!"),T("="),T(":"),T("..."),T("."),T("#"),T("~"),T("/"),T("@"),P("undefined"),P("null"),P("function"),P("this"),P("new"),P("module"),P("event"),P("external"),P("typeof"),P("keyof"),P("readonly"),P("import"),P("is"),P("in"),K,R,k],V=/^\s*\n\s*/,j=class _e{static create(o){let l=this.read(o);o=l.text;let d=this.read(o);return o=d.text,new _e(o,void 0,l.token,d.token)}constructor(o,l,d,h){this.text="",this.text=o,this.previous=l,this.current=d,this.next=h}static read(o,l=!1){l=l||V.test(o),o=o.trim();for(let d of A){let h=d(o);if(h!==null){let J=Object.assign(Object.assign({},h),{startOfLine:l});return o=o.slice(J.text.length),{text:o,token:J}}}throw new Error("Unexpected Token "+o)}advance(){let o=_e.read(this.text);return new _e(o.text,this.current,this.next,o.token)}};n(j,"Lexer");let I=j;function O(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType")throw new m(e);return e}n(O,"assertRootResult");function $(e){return e.type==="JsdocTypeKeyValue"?E(e):O(e)}n($,"assertPlainKeyValueOrRootResult");function G(e){return e.type==="JsdocTypeName"?e:E(e)}n(G,"assertPlainKeyValueOrNameResult");function E(e){if(e.type!=="JsdocTypeKeyValue")throw new m(e);return e}n(E,"assertPlainKeyValueResult");function Y(e){var o;if(e.type==="JsdocTypeVariadic"){if(((o=e.element)===null||o===void 0?void 0:o.type)==="JsdocTypeName")return e;throw new m(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new m(e);return e}n(Y,"assertNumberOrVariadicNameResult");function C(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}n(C,"isSquaredProperty");var b;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.UNION=4]="UNION",e[e.INTERSECTION=5]="INTERSECTION",e[e.PREFIX=6]="PREFIX",e[e.INFIX=7]="INFIX",e[e.TUPLE=8]="TUPLE",e[e.SYMBOL=9]="SYMBOL",e[e.OPTIONAL=10]="OPTIONAL",e[e.NULLABLE=11]="NULLABLE",e[e.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",e[e.FUNCTION=13]="FUNCTION",e[e.ARROW=14]="ARROW",e[e.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",e[e.GENERIC=16]="GENERIC",e[e.NAME_PATH=17]="NAME_PATH",e[e.PARENTHESIS=18]="PARENTHESIS",e[e.SPECIAL_TYPES=19]="SPECIAL_TYPES"})(b||(b={}));let oe=class{constructor(o,l,d){this.grammar=o,typeof l=="string"?this._lexer=I.create(l):this._lexer=l,this.baseParser=d}get lexer(){return this._lexer}parse(){let o=this.parseType(b.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return o}parseType(o){return O(this.parseIntermediateType(o))}parseIntermediateType(o){let l=this.tryParslets(null,o);if(l===null)throw new p(this.lexer.current);return this.parseInfixIntermediateType(l,o)}parseInfixIntermediateType(o,l){let d=this.tryParslets(o,l);for(;d!==null;)o=d,d=this.tryParslets(o,l);return o}tryParslets(o,l){for(let d of this.grammar){let h=d(this,l,o);if(h!==null)return h}return null}consume(o){return Array.isArray(o)||(o=[o]),o.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(o){this._lexer=o.lexer}};n(oe,"Parser");let ee=oe;function Fe(e){return e==="EOF"||e==="|"||e===","||e===")"||e===">"}n(Fe,"isQuestionMarkUnknownType");let Le=n((e,o,l)=>{let d=e.lexer.current.type,h=e.lexer.next.type;return l==null&&d==="?"&&!Fe(h)||l!=null&&d==="?"?(e.consume("?"),l==null?{type:"JsdocTypeNullable",element:e.parseType(b.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:O(l),meta:{position:"suffix"}}):null},"nullableParslet");function F(e){let o=n((l,d,h)=>{let J=l.lexer.current.type,N=l.lexer.next.type;if(h===null){if("parsePrefix"in e&&e.accept(J,N))return e.parsePrefix(l)}else if("parseInfix"in e&&e.precedence>d&&e.accept(J,N))return e.parseInfix(l,h);return null},"parslet");return Object.defineProperty(o,"name",{value:e.name}),o}n(F,"composeParslet");let he=F({name:"optionalParslet",accept:n(e=>e==="=","accept"),precedence:b.OPTIONAL,parsePrefix:n(e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(b.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:n((e,o)=>(e.consume("="),{type:"JsdocTypeOptional",element:O(o),meta:{position:"suffix"}}),"parseInfix")}),ve=F({name:"numberParslet",accept:n(e=>e==="Number","accept"),parsePrefix:n(e=>{let o=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:o}},"parsePrefix")}),wr=F({name:"parenthesisParslet",accept:n(e=>e==="(","accept"),parsePrefix:n(e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let o=e.parseIntermediateType(b.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return o.type==="JsdocTypeParameterList"?o:o.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[o]}:{type:"JsdocTypeParenthesis",element:O(o)}},"parsePrefix")}),Pr=F({name:"specialTypesParslet",accept:n((e,o)=>e==="?"&&Fe(o)||e==="null"||e==="undefined"||e==="*","accept"),parsePrefix:n(e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)},"parsePrefix")}),Nr=F({name:"notNullableParslet",accept:n(e=>e==="!","accept"),precedence:b.NULLABLE,parsePrefix:n(e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(b.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:n((e,o)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:O(o),meta:{position:"suffix"}}),"parseInfix")});function at({allowTrailingComma:e}){return F({name:"parameterListParslet",accept:n(o=>o===",","accept"),precedence:b.PARAMETER_LIST,parseInfix:n((o,l)=>{let d=[$(l)];o.consume(",");do try{let h=o.parseIntermediateType(b.PARAMETER_LIST);d.push($(h))}catch(h){if(e&&h instanceof p)break;throw h}while(o.consume(","));if(d.length>0&&d.slice(0,-1).some(h=>h.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:d}},"parseInfix")})}n(at,"createParameterListParslet");let Or=F({name:"genericParslet",accept:n((e,o)=>e==="<"||e==="."&&o==="<","accept"),precedence:b.GENERIC,parseInfix:n((e,o)=>{let l=e.consume(".");e.consume("<");let d=[];do d.push(e.parseType(b.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:O(o),elements:d,meta:{brackets:"angle",dot:l}}},"parseInfix")}),_r=F({name:"unionParslet",accept:n(e=>e==="|","accept"),precedence:b.UNION,parseInfix:n((e,o)=>{e.consume("|");let l=[];do l.push(e.parseType(b.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[O(o),...l]}},"parseInfix")}),Ue=[Le,he,ve,wr,Pr,Nr,at({allowTrailingComma:!0}),Or,_r,he];function ce({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:o,pathGrammar:l}){return n(function(d,h,J){if(J==null||h>=b.NAME_PATH)return null;let N=d.lexer.current.type,U=d.lexer.next.type;if(!(N==="."&&U!=="<"||N==="["&&(e||J.type==="JsdocTypeName")||o&&(N==="~"||N==="#")))return null;let D,q=!1;d.consume(".")?D="property":d.consume("[")?(D="property-brackets",q=!0):d.consume("~")?D="inner":(d.consume("#"),D="instance");let Q=l!==null?new ee(l,d.lexer,d):d,z=Q.parseIntermediateType(b.NAME_PATH);d.acceptLexerState(Q);let me;switch(z.type){case"JsdocTypeName":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":me={type:"JsdocTypeProperty",value:z.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:z.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(z.specialType==="event")me=z;else throw new m(z,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new m(z,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(q&&!d.consume("]")){let Jt=d.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Jt.type}' with text '${Jt.text}'`)}return{type:"JsdocTypeNamePath",left:O(J),right:me,pathType:D}},"namePathParslet")}n(ce,"createNamePathParslet");function W({allowedAdditionalTokens:e}){return F({name:"nameParslet",accept:n(o=>o==="Identifier"||o==="this"||o==="new"||e.includes(o),"accept"),parsePrefix:n(o=>{let{type:l,text:d}=o.lexer.current;return o.consume(l),{type:"JsdocTypeName",value:d}},"parsePrefix")})}n(W,"createNameParslet");let ue=F({name:"stringValueParslet",accept:n(e=>e==="StringValue","accept"),parsePrefix:n(e=>{let o=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:o.slice(1,-1),meta:{quote:o[0]==="'"?"single":"double"}}},"parsePrefix")});function ye({pathGrammar:e,allowedTypes:o}){return F({name:"specialNamePathParslet",accept:n(l=>o.includes(l),"accept"),parsePrefix:n(l=>{let d=l.lexer.current.type;if(l.consume(d),!l.consume(":"))return{type:"JsdocTypeName",value:d};let h,J=l.lexer.current;if(l.consume("StringValue"))h={type:"JsdocTypeSpecialNamePath",value:J.text.slice(1,-1),specialType:d,meta:{quote:J.text[0]==="'"?"single":"double"}};else{let D="",q=["Identifier","@","/"];for(;q.some(Q=>l.consume(Q));)D+=J.text,J=l.lexer.current;h={type:"JsdocTypeSpecialNamePath",value:D,specialType:d,meta:{quote:void 0}}}let N=new ee(e,l.lexer,l),U=N.parseInfixIntermediateType(h,b.ALL);return l.acceptLexerState(N),O(U)},"parsePrefix")})}n(ye,"createSpecialNamePathParslet");let ot=[W({allowedAdditionalTokens:["external","module"]}),ue,ve,ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],pe=[...ot,ye({allowedTypes:["event"],pathGrammar:ot})];function ge(e){let o;if(e.type==="JsdocTypeParameterList")o=e.elements;else if(e.type==="JsdocTypeParenthesis")o=[e.element];else throw new m(e);return o.map(l=>$(l))}n(ge,"getParameters");function st(e){let o=ge(e);if(o.some(l=>l.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return o}n(st,"getUnnamedParameters");function Je({allowNamedParameters:e,allowNoReturnType:o,allowWithoutParenthesis:l,allowNewAsFunctionKeyword:d}){return F({name:"functionParslet",accept:n((h,J)=>h==="function"||d&&h==="new"&&J==="(","accept"),parsePrefix:n(h=>{let J=h.consume("new");h.consume("function");let N=h.lexer.current.type==="(";if(!N){if(!l)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let U={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:J,parenthesis:N},D=h.parseIntermediateType(b.FUNCTION);if(e===void 0)U.parameters=st(D);else{if(J&&D.type==="JsdocTypeFunction"&&D.arrow)return U=D,U.constructor=!0,U;U.parameters=ge(D);for(let q of U.parameters)if(q.type==="JsdocTypeKeyValue"&&!e.includes(q.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${q.type}`)}if(h.consume(":"))U.returnType=h.parseType(b.PREFIX);else if(!o)throw new Error("function is missing return type");return U},"parsePrefix")})}n(Je,"createFunctionParslet");function be({allowPostfix:e,allowEnclosingBrackets:o}){return F({name:"variadicParslet",accept:n(l=>l==="...","accept"),precedence:b.PREFIX,parsePrefix:n(l=>{l.consume("...");let d=o&&l.consume("[");try{let h=l.parseType(b.PREFIX);if(d&&!l.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:O(h),meta:{position:"prefix",squareBrackets:d}}}catch(h){if(h instanceof p){if(d)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw h}},"parsePrefix"),parseInfix:e?(l,d)=>(l.consume("..."),{type:"JsdocTypeVariadic",element:O(d),meta:{position:"suffix",squareBrackets:!1}}):void 0})}n(be,"createVariadicParslet");let it=F({name:"symbolParslet",accept:n(e=>e==="(","accept"),precedence:b.SYMBOL,parseInfix:n((e,o)=>{if(o.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let l={type:"JsdocTypeSymbol",value:o.value};if(!e.consume(")")){let d=e.parseIntermediateType(b.SYMBOL);if(l.element=Y(d),!e.consume(")"))throw new Error("Symbol does not end after value")}return l},"parseInfix")}),pt=F({name:"arrayBracketsParslet",precedence:b.ARRAY_BRACKETS,accept:n((e,o)=>e==="["&&o==="]","accept"),parseInfix:n((e,o)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[O(o)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function xe({objectFieldGrammar:e,allowKeyTypes:o}){return F({name:"objectParslet",accept:n(l=>l==="{","accept"),parsePrefix:n(l=>{l.consume("{");let d={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!l.consume("}")){let h,J=new ee(e,l.lexer,l);for(;;){J.acceptLexerState(l);let N=J.parseIntermediateType(b.OBJECT);l.acceptLexerState(J),N===void 0&&o&&(N=l.parseIntermediateType(b.OBJECT));let U=!1;if(N.type==="JsdocTypeNullable"&&(U=!0,N=N.element),N.type==="JsdocTypeNumber"||N.type==="JsdocTypeName"||N.type==="JsdocTypeStringValue"){let D;N.type==="JsdocTypeStringValue"&&(D=N.meta.quote),d.elements.push({type:"JsdocTypeObjectField",key:N.value.toString(),right:void 0,optional:U,readonly:!1,meta:{quote:D}})}else if(N.type==="JsdocTypeObjectField"||N.type==="JsdocTypeJsdocObjectField")d.elements.push(N);else throw new m(N);if(l.lexer.current.startOfLine)h="linebreak";else if(l.consume(","))h="comma";else if(l.consume(";"))h="semicolon";else break;if(l.lexer.current.type==="}")break}if(d.meta.separator=h??"comma",!l.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return d},"parsePrefix")})}n(xe,"createObjectParslet");function we({allowSquaredProperties:e,allowKeyTypes:o,allowReadonly:l,allowOptional:d}){return F({name:"objectFieldParslet",precedence:b.KEY_VALUE,accept:n(h=>h===":","accept"),parseInfix:n((h,J)=>{var N;let U=!1,D=!1;d&&J.type==="JsdocTypeNullable"&&(U=!0,J=J.element),l&&J.type==="JsdocTypeReadonlyProperty"&&(D=!0,J=J.element);let q=(N=h.baseParser)!==null&&N!==void 0?N:h;if(q.acceptLexerState(h),J.type==="JsdocTypeNumber"||J.type==="JsdocTypeName"||J.type==="JsdocTypeStringValue"||C(J)){if(C(J)&&!e)throw new m(J);q.consume(":");let Q;J.type==="JsdocTypeStringValue"&&(Q=J.meta.quote);let z=q.parseType(b.KEY_VALUE);return h.acceptLexerState(q),{type:"JsdocTypeObjectField",key:C(J)?J:J.value.toString(),right:z,optional:U,readonly:D,meta:{quote:Q}}}else{if(!o)throw new m(J);q.consume(":");let Q=q.parseType(b.KEY_VALUE);return h.acceptLexerState(q),{type:"JsdocTypeJsdocObjectField",left:O(J),right:Q}}},"parseInfix")})}n(we,"createObjectFieldParslet");function Pe({allowOptional:e,allowVariadic:o}){return F({name:"keyValueParslet",precedence:b.KEY_VALUE,accept:n(l=>l===":","accept"),parseInfix:n((l,d)=>{let h=!1,J=!1;if(e&&d.type==="JsdocTypeNullable"&&(h=!0,d=d.element),o&&d.type==="JsdocTypeVariadic"&&d.element!==void 0&&(J=!0,d=d.element),d.type!=="JsdocTypeName")throw new m(d);l.consume(":");let N=l.parseType(b.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:d.value,right:N,optional:h,variadic:J}},"parseInfix")})}n(Pe,"createKeyValueParslet");let lt=[...Ue,Je({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue,ye({allowedTypes:["module","external","event"],pathGrammar:pe}),be({allowEnclosingBrackets:!0,allowPostfix:!0}),W({allowedAdditionalTokens:["keyof"]}),it,pt,ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pe})],Er=[...lt,xe({objectFieldGrammar:[W({allowedAdditionalTokens:["module","in"]}),we({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...lt],allowKeyTypes:!0}),Pe({allowOptional:!0,allowVariadic:!0})],ct=F({name:"typeOfParslet",accept:n(e=>e==="typeof","accept"),parsePrefix:n(e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:O(e.parseType(b.KEY_OF_TYPE_OF))}),"parsePrefix")}),Sr=[W({allowedAdditionalTokens:["module","keyof","event","external","in"]}),Le,he,ue,ve,we({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],jr=[...Ue,xe({allowKeyTypes:!1,objectFieldGrammar:Sr}),W({allowedAdditionalTokens:["event","external","in"]}),ct,Je({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),be({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["keyof"]}),ye({allowedTypes:["module"],pathGrammar:pe}),ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pe}),Pe({allowOptional:!1,allowVariadic:!1}),it];function ut({allowQuestionMark:e}){return F({name:"tupleParslet",accept:n(o=>o==="[","accept"),parsePrefix:n(o=>{o.consume("[");let l={type:"JsdocTypeTuple",elements:[]};if(o.consume("]"))return l;let d=o.parseIntermediateType(b.ALL);if(d.type==="JsdocTypeParameterList"?d.elements[0].type==="JsdocTypeKeyValue"?l.elements=d.elements.map(E):l.elements=d.elements.map(O):d.type==="JsdocTypeKeyValue"?l.elements=[E(d)]:l.elements=[O(d)],!o.consume("]"))throw new Error("Unterminated '['");if(!e&&l.elements.some(h=>h.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return l},"parsePrefix")})}n(ut,"createTupleParslet");let Ir=F({name:"keyOfParslet",accept:n(e=>e==="keyof","accept"),parsePrefix:n(e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:O(e.parseType(b.KEY_OF_TYPE_OF))}),"parsePrefix")}),kr=F({name:"importParslet",accept:n(e=>e==="import","accept"),parsePrefix:n(e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let o=e.parseType(b.PREFIX);if(o.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:o}},"parsePrefix")}),Ar=F({name:"readonlyPropertyParslet",accept:n(e=>e==="readonly","accept"),parsePrefix:n(e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(b.KEY_VALUE)}),"parsePrefix")}),Rr=F({name:"arrowFunctionParslet",precedence:b.ARROW,accept:n(e=>e==="=>","accept"),parseInfix:n((e,o)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:ge(o).map(G),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(b.OBJECT)}),"parseInfix")}),Fr=F({name:"intersectionParslet",accept:n(e=>e==="&","accept"),precedence:b.INTERSECTION,parseInfix:n((e,o)=>{e.consume("&");let l=[];do l.push(e.parseType(b.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[O(o),...l]}},"parseInfix")}),Lr=F({name:"predicateParslet",precedence:b.INFIX,accept:n(e=>e==="is","accept"),parseInfix:n((e,o)=>{if(o.type!=="JsdocTypeName")throw new m(o,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:o,right:O(e.parseIntermediateType(b.INFIX))}},"parseInfix")}),Ur=F({name:"objectSquareBracketPropertyParslet",accept:n(e=>e==="[","accept"),parsePrefix:n(e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");let o=e.lexer.current.text;e.consume("Identifier");let l;if(e.consume(":")){let d=e.baseParser;d.acceptLexerState(e),l={type:"JsdocTypeIndexSignature",key:o,right:d.parseType(b.ARRAY_BRACKETS)},e.acceptLexerState(d)}else if(e.consume("in")){let d=e.baseParser;d.acceptLexerState(e),l={type:"JsdocTypeMappedType",key:o,right:d.parseType(b.ARRAY_BRACKETS)},e.acceptLexerState(d)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return l},"parsePrefix")}),Vr=[Ar,W({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),Le,he,ue,ve,we({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Ur],Dr=[...Ue,xe({allowKeyTypes:!1,objectFieldGrammar:Vr}),ct,Ir,kr,ue,Je({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),ut({allowQuestionMark:!1}),be({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["event","external","in"]}),ye({allowedTypes:["module"],pathGrammar:pe}),pt,Rr,ce({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:pe}),Fr,Lr,Pe({allowVariadic:!0,allowOptional:!0})];function Ve(e,o){switch(o){case"closure":return new ee(jr,e).parse();case"jsdoc":return new ee(Er,e).parse();case"typescript":return new ee(Dr,e).parse()}}n(Ve,"parse");function yt(e,o=["typescript","closure","jsdoc"]){let l;for(let d of o)try{return Ve(e,d)}catch(h){l=h}throw l}n(yt,"tryParse");function le(e,o){let l=e[o.type];if(l===void 0)throw new Error(`In this set of transform rules exists no rule for type ${o.type}.`);return l(o,d=>le(e,d))}n(le,"transform");function B(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}n(B,"notAvailableTransform");function De(e){let o={params:[]};for(let l of e.parameters)l.type==="JsdocTypeKeyValue"?l.key==="this"?o.this=l.right:l.key==="new"?o.new=l.right:o.params.push(l):o.params.push(l);return o}n(De,"extractSpecialParams");function de(e,o,l){return e==="prefix"?l+o:o+l}n(de,"applyPosition");function H(e,o){switch(o){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}n(H,"quote");function Ke(){return{JsdocTypeParenthesis:n((e,o)=>`(${e.element!==void 0?o(e.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:n((e,o)=>`keyof ${o(e.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:n((e,o)=>{if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let l=`(${e.parameters.map(o).join(", ")}) => ${o(e.returnType)}`;return e.constructor&&(l="new "+l),l}else{let l=e.constructor?"new":"function";return e.parenthesis&&(l+=`(${e.parameters.map(o).join(", ")})`,e.returnType!==void 0&&(l+=`: ${o(e.returnType)}`)),l}},"JsdocTypeFunction"),JsdocTypeName:n(e=>e.value,"JsdocTypeName"),JsdocTypeTuple:n((e,o)=>`[${e.elements.map(o).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:n((e,o)=>e.meta.position===void 0?"...":de(e.meta.position,o(e.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:n((e,o)=>{let l=o(e.left),d=o(e.right);switch(e.pathType){case"inner":return`${l}~${d}`;case"instance":return`${l}#${d}`;case"property":return`${l}.${d}`;case"property-brackets":return`${l}[${d}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:n(e=>H(e.value,e.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:n(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:n((e,o)=>{if(e.meta.brackets==="square"){let l=e.elements[0],d=o(l);return l.type==="JsdocTypeUnion"||l.type==="JsdocTypeIntersection"?`(${d})[]`:`${d}[]`}else return`${o(e.left)}${e.meta.dot?".":""}<${e.elements.map(o).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:n((e,o)=>`import(${o(e.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:n((e,o)=>{let l="";return e.readonly&&(l+="readonly "),typeof e.key=="string"?l+=H(e.key,e.meta.quote):l+=o(e.key),e.optional&&(l+="?"),e.right===void 0?l:l+`: ${o(e.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:n((e,o)=>`${o(e.left)}: ${o(e.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:n((e,o)=>{let l=e.key;return e.optional&&(l+="?"),e.variadic&&(l="..."+l),e.right===void 0?l:l+`: ${o(e.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:n(e=>`${e.specialType}:${H(e.value,e.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:n((e,o)=>de(e.meta.position,o(e.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:n(()=>"null","JsdocTypeNull"),JsdocTypeNullable:n((e,o)=>de(e.meta.position,o(e.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:n(e=>e.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:n((e,o)=>`{${e.elements.map(o).join((e.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:n((e,o)=>de(e.meta.position,o(e.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:n((e,o)=>`${e.value}(${e.element!==void 0?o(e.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:n((e,o)=>`typeof ${o(e.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:n(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:n((e,o)=>e.elements.map(o).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:n(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:n((e,o)=>e.elements.map(o).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:n(e=>H(e.value,e.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:n((e,o)=>`${o(e.left)} is ${o(e.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:n((e,o)=>`[${e.key}: ${o(e.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:n((e,o)=>`[${e.key} in ${o(e.right)}]`,"JsdocTypeMappedType")}}n(Ke,"stringifyRules");let Kr=Ke();function dt(e){return le(Kr,e)}n(dt,"stringify");let $r=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function X(e){let o={type:"NameExpression",name:e};return $r.includes(e)&&(o.reservedWord=!0),o}n(X,"makeName");let Mr={JsdocTypeOptional:n((e,o)=>{let l=o(e.element);return l.optional=!0,l},"JsdocTypeOptional"),JsdocTypeNullable:n((e,o)=>{let l=o(e.element);return l.nullable=!0,l},"JsdocTypeNullable"),JsdocTypeNotNullable:n((e,o)=>{let l=o(e.element);return l.nullable=!1,l},"JsdocTypeNotNullable"),JsdocTypeVariadic:n((e,o)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let l=o(e.element);return l.repeatable=!0,l},"JsdocTypeVariadic"),JsdocTypeAny:n(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:n(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:n(e=>X(H(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:n(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:n(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:n((e,o)=>{let l=De(e),d={type:"FunctionType",params:l.params.map(o)};return l.this!==void 0&&(d.this=o(l.this)),l.new!==void 0&&(d.new=o(l.new)),e.returnType!==void 0&&(d.result=o(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:n((e,o)=>({type:"TypeApplication",applications:e.elements.map(l=>o(l)),expression:o(e.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:n(e=>X(e.specialType+":"+H(e.value,e.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:n(e=>e.value!=="function"?X(e.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:n(e=>X(e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:n((e,o)=>{let l={type:"RecordType",fields:[]};for(let d of e.elements)d.type!=="JsdocTypeObjectField"&&d.type!=="JsdocTypeJsdocObjectField"?l.fields.push({type:"FieldType",key:o(d),value:void 0}):l.fields.push(o(d));return l},"JsdocTypeObject"),JsdocTypeObjectField:n((e,o)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:X(H(e.key,e.meta.quote)),value:e.right===void 0?void 0:o(e.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:n((e,o)=>({type:"FieldType",key:o(e.left),value:o(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:n((e,o)=>({type:"TypeUnion",elements:e.elements.map(l=>o(l))}),"JsdocTypeUnion"),JsdocTypeKeyValue:n((e,o)=>({type:"FieldType",key:X(e.key),value:e.right===void 0?void 0:o(e.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:n((e,o)=>{let l=o(e.left),d;e.right.type==="JsdocTypeSpecialNamePath"?d=o(e.right).name:d=H(e.right.value,e.right.meta.quote);let h=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return X(`${l.name}${h}${d}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:n(e=>{let o="",l=e.element,d=!1;return(l==null?void 0:l.type)==="JsdocTypeVariadic"&&(l.meta.position==="prefix"?o="...":d=!0,l=l.element),(l==null?void 0:l.type)==="JsdocTypeName"?o+=l.value:(l==null?void 0:l.type)==="JsdocTypeNumber"&&(o+=l.value.toString()),d&&(o+="..."),X(`${e.value}(${o})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:n((e,o)=>o(O(e.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B};function mt(e){return le(Mr,e)}n(mt,"catharsisTransform");function te(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}n(te,"getQuoteStyle");function ft(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}n(ft,"getMemberType");function Ne(e,o){return o.length===2?{type:e,left:o[0],right:o[1]}:{type:e,left:o[0],right:Ne(e,o.slice(1))}}n(Ne,"nestResults");let Cr={JsdocTypeOptional:n((e,o)=>({type:"OPTIONAL",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:n((e,o)=>({type:"NULLABLE",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:n((e,o)=>({type:"NOT_NULLABLE",value:o(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:n((e,o)=>{let l={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(l.value=o(e.element)),l},"JsdocTypeVariadic"),JsdocTypeName:n(e=>({type:"NAME",name:e.value}),"JsdocTypeName"),JsdocTypeTypeof:n((e,o)=>({type:"TYPE_QUERY",name:o(e.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:n((e,o)=>({type:"TUPLE",entries:e.elements.map(o)}),"JsdocTypeTuple"),JsdocTypeKeyof:n((e,o)=>({type:"KEY_QUERY",value:o(e.element)}),"JsdocTypeKeyof"),JsdocTypeImport:n(e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:te(e.element.meta.quote),string:e.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:n(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:n(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:n((e,o)=>{let l=De(e),d={type:e.arrow?"ARROW":"FUNCTION",params:l.params.map(h=>{if(h.type==="JsdocTypeKeyValue"){if(h.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:h.key,typeName:o(h.right)}}else return o(h)}),new:null,returns:null};return l.this!==void 0?d.this=o(l.this):e.arrow||(d.this=null),l.new!==void 0&&(d.new=o(l.new)),e.returnType!==void 0&&(d.returns=o(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:n((e,o)=>{let l={type:"GENERIC",subject:o(e.left),objects:e.elements.map(o),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(l.objects[0]={type:"NAME",name:"function"}),l},"JsdocTypeGeneric"),JsdocTypeObjectField:n((e,o)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:te(e.meta.quote),value:null,readonly:!1};let l=o(e.right);return e.optional&&(l={type:"OPTIONAL",value:l,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:te(e.meta.quote),value:l,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:n(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:n((e,o)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let l=o(e.right);return e.optional&&(l={type:"OPTIONAL",value:l,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:l,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:n((e,o)=>{let l=[];for(let d of e.elements)(d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField")&&l.push(o(d));return{type:"RECORD",entries:l}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:n(e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:te(e.meta.quote),path:e.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:n((e,o)=>{let l=!1,d,h;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(l=!0,d=e.right.value,h=te(e.right.meta.quote)):(d=e.right.value,h=te(e.right.meta.quote));let J={type:ft(e.pathType),owner:o(e.left),name:d,quoteStyle:h,hasEventPrefix:l};if(J.owner.type==="MODULE"){let N=J.owner;return J.owner=J.owner.value,N.value=J,N}else return J},"JsdocTypeNamePath"),JsdocTypeUnion:n((e,o)=>Ne("UNION",e.elements.map(o)),"JsdocTypeUnion"),JsdocTypeParenthesis:n((e,o)=>({type:"PARENTHESIS",value:o(O(e.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:n(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:n(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:n(e=>({type:"STRING_VALUE",quoteStyle:te(e.meta.quote),string:e.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:n((e,o)=>Ne("INTERSECTION",e.elements.map(o)),"JsdocTypeIntersection"),JsdocTypeNumber:n(e=>({type:"NUMBER_VALUE",number:e.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B};function Tt(e){return le(Cr,e)}n(Tt,"jtpTransform");function ht(){return{JsdocTypeIntersection:n((e,o)=>({type:"JsdocTypeIntersection",elements:e.elements.map(o)}),"JsdocTypeIntersection"),JsdocTypeGeneric:n((e,o)=>({type:"JsdocTypeGeneric",left:o(e.left),elements:e.elements.map(o),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:n(e=>e,"JsdocTypeNullable"),JsdocTypeUnion:n((e,o)=>({type:"JsdocTypeUnion",elements:e.elements.map(o)}),"JsdocTypeUnion"),JsdocTypeUnknown:n(e=>e,"JsdocTypeUnknown"),JsdocTypeUndefined:n(e=>e,"JsdocTypeUndefined"),JsdocTypeTypeof:n((e,o)=>({type:"JsdocTypeTypeof",element:o(e.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:n((e,o)=>{let l={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(l.element=o(e.element)),l},"JsdocTypeSymbol"),JsdocTypeOptional:n((e,o)=>({type:"JsdocTypeOptional",element:o(e.element),meta:{position:e.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:n((e,o)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(o)}),"JsdocTypeObject"),JsdocTypeNumber:n(e=>e,"JsdocTypeNumber"),JsdocTypeNull:n(e=>e,"JsdocTypeNull"),JsdocTypeNotNullable:n((e,o)=>({type:"JsdocTypeNotNullable",element:o(e.element),meta:{position:e.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:n(e=>e,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:n((e,o)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:o(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:n((e,o)=>({type:"JsdocTypeJsdocObjectField",left:o(e.left),right:o(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:n((e,o)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:o(e.right),optional:e.optional,variadic:e.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:n((e,o)=>({type:"JsdocTypeImport",element:o(e.element)}),"JsdocTypeImport"),JsdocTypeAny:n(e=>e,"JsdocTypeAny"),JsdocTypeStringValue:n(e=>e,"JsdocTypeStringValue"),JsdocTypeNamePath:n(e=>e,"JsdocTypeNamePath"),JsdocTypeVariadic:n((e,o)=>{let l={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(l.element=o(e.element)),l},"JsdocTypeVariadic"),JsdocTypeTuple:n((e,o)=>({type:"JsdocTypeTuple",elements:e.elements.map(o)}),"JsdocTypeTuple"),JsdocTypeName:n(e=>e,"JsdocTypeName"),JsdocTypeFunction:n((e,o)=>{let l={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(o),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(l.returnType=o(e.returnType)),l},"JsdocTypeFunction"),JsdocTypeKeyof:n((e,o)=>({type:"JsdocTypeKeyof",element:o(e.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:n((e,o)=>({type:"JsdocTypeParenthesis",element:o(e.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:n(e=>e,"JsdocTypeProperty"),JsdocTypePredicate:n((e,o)=>({type:"JsdocTypePredicate",left:o(e.left),right:o(e.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:n((e,o)=>({type:"JsdocTypeIndexSignature",key:e.key,right:o(e.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:n((e,o)=>({type:"JsdocTypeMappedType",key:e.key,right:o(e.right)}),"JsdocTypeMappedType")}}n(ht,"identityTransformRules");let vt={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function Oe(e,o,l,d,h){d==null||d(e,o,l);let J=vt[e.type];for(let N of J){let U=e[N];if(U!==void 0)if(Array.isArray(U))for(let D of U)Oe(D,e,N,d,h);else Oe(U,e,N,d,h)}h==null||h(e,o,l)}n(Oe,"_traverse");function gt(e,o,l){Oe(e,void 0,void 0,o,l)}n(gt,"traverse"),r.catharsisTransform=mt,r.identityTransformRules=ht,r.jtpTransform=Tt,r.parse=Ve,r.stringify=dt,r.stringifyRules=Ke,r.transform=le,r.traverse=gt,r.tryParse=yt,r.visitorKeys=vt})});__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;bt(Sa(),1);var Ia=["null","undefined"];function Re(a){return Ia.some(t=>t===a)}n(Re,"isDefaultValueBlacklisted");var ka=n(a=>{if(!a)return"";if(typeof a=="string")return a;throw new Error(`Description: expected string, got: ${JSON.stringify(a)}`)},"str");function We(a){return!!a.__docgenInfo}n(We,"hasDocgen");function Aa(a){return a!=null&&Object.keys(a).length>0}n(Aa,"isValidDocgenSection");function Ra(a,t){return We(a)?a.__docgenInfo[t]:null}n(Ra,"getDocgenSection");function Kt(a){return We(a)?ka(a.__docgenInfo.description):""}n(Kt,"getDocgenDescription");var re;(function(a){a.start="/**",a.nostart="/***",a.delim="*",a.end="*/"})(re=re||(re={}));function $t(a){return/^\s+$/.test(a)}n($t,"isSpace");function Mt(a){let t=a.match(/\r+$/);return t==null?["",a]:[a.slice(-t[0].length),a.slice(0,-t[0].length)]}n(Mt,"splitCR");function se(a){let t=a.match(/^\s+/);return t==null?["",a]:[a.slice(0,t[0].length),a.slice(t[0].length)]}n(se,"splitSpace");function Ct(a){return a.split(/\n/)}n(Ct,"splitLines");function qt(a={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},a)}n(qt,"seedSpec");function Bt(a={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},a)}n(Bt,"seedTokens");var Fa=/^@\S+/;function Gt({fence:a="```"}={}){let t=Yt(a),r=n((s,i)=>t(s)?!i:i,"toggleFence");return n(function(s){let i=[[]],p=!1;for(let c of s)Fa.test(c.tokens.description)&&!p?i.push([c]):i[i.length-1].push(c),p=r(c.tokens.description,p);return i},"parseBlock")}n(Gt,"getParser");function Yt(a){return typeof a=="string"?t=>t.split(a).length%2===0:a}n(Yt,"getFencer");function zt({startLine:a=0,markers:t=re}={}){let r=null,s=a;return n(function(i){let p=i,c=Bt();if([c.lineEnd,p]=Mt(p),[c.start,p]=se(p),r===null&&p.startsWith(t.start)&&!p.startsWith(t.nostart)&&(r=[],c.delimiter=p.slice(0,t.start.length),p=p.slice(t.start.length),[c.postDelimiter,p]=se(p)),r===null)return s++,null;let u=p.trimRight().endsWith(t.end);if(c.delimiter===""&&p.startsWith(t.delim)&&!p.startsWith(t.end)&&(c.delimiter=t.delim,p=p.slice(t.delim.length),[c.postDelimiter,p]=se(p)),u){let y=p.trimRight();c.end=p.slice(y.length-t.end.length),p=y.slice(0,-t.end.length)}if(c.description=p,r.push({number:s,source:i,tokens:c}),s++,u){let y=r.slice();return r=null,y}return null},"parseSource")}n(zt,"getParser");function Wt({tokenizers:a}){return n(function(t){var r;let s=qt({source:t});for(let i of a)if(s=i(s),!((r=s.problems[s.problems.length-1])===null||r===void 0)&&r.critical)break;return s},"parseSpec")}n(Wt,"getParser");function Ht(){return a=>{let{tokens:t}=a.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(a.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:a.source[0].number,critical:!0}),a):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),a.tag=r[2],a)}}n(Ht,"tagTokenizer");function Xt(a="compact"){let t=Qt(a);return r=>{let s=0,i=[];for(let[u,{tokens:y}]of r.source.entries()){let m="";if(u===0&&y.description[0]!=="{")return r;for(let T of y.description)if(T==="{"&&s++,T==="}"&&s--,m+=T,s===0)break;if(i.push([y,m]),s===0)break}if(s!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let p=[],c=i[0][0].postDelimiter.length;for(let[u,[y,m]]of i.entries())y.type=m,u>0&&(y.type=y.postDelimiter.slice(c)+m,y.postDelimiter=y.postDelimiter.slice(0,c)),[y.postType,y.description]=se(y.description.slice(m.length)),p.push(y.type);return p[0]=p[0].slice(1),p[p.length-1]=p[p.length-1].slice(0,-1),r.type=t(p),r}}n(Xt,"typeTokenizer");var La=n(a=>a.trim(),"trim");function Qt(a){return a==="compact"?t=>t.map(La).join(""):a==="preserve"?t=>t.join(` `):a}n(Qt,"getJoiner");var Ua=n(a=>a&&a.startsWith('"')&&a.endsWith('"'),"isQuoted");function Zt(){let a=n((t,{tokens:r},s)=>r.type===""?t:s,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(a,0)],s=r.description.trimLeft(),i=s.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],r.name=`"${i[1]}"`,[r.postName,r.description]=se(s.slice(r.name.length)),t;let p=0,c="",u=!1,y;for(let T of s){if(p===0&&$t(T))break;T==="["&&p++,T==="]"&&p--,c+=T}if(p!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let m=c;if(c[0]==="["&&c[c.length-1]==="]"){u=!0,c=c.slice(1,-1);let T=c.split("=");if(c=T[0].trim(),T[1]!==void 0&&(y=T.slice(1).join("=").trim()),c==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(y==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!Ua(y)&&/=(?!>)/.test(y))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=u,t.name=c,r.name=m,y!==void 0&&(t.default=y),[r.postName,r.description]=se(s.slice(r.name.length)),t}}n(Zt,"nameTokenizer");function er(a="compact",t=re){let r=He(a);return s=>(s.description=r(s.source,t),s)}n(er,"descriptionTokenizer");function He(a){return a==="compact"?tr:a==="preserve"?rr:a}n(He,"getJoiner");function tr(a,t=re){return a.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}n(tr,"compactJoiner");var Va=n((a,{tokens:t},r)=>t.type===""?a:r,"lineNo"),Da=n(({tokens:a})=>(a.delimiter===""?a.start:a.postDelimiter.slice(1))+a.description,"getDescription");function rr(a,t=re){if(a.length===0)return"";a[0].tokens.description===""&&a[0].tokens.delimiter===t.start&&(a=a.slice(1));let r=a[a.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(a=a.slice(0,-1)),a=a.slice(a.reduce(Va,0)),a.map(Da).join(` `)}n(rr,"preserveJoiner");function nr({startLine:a=0,fence:t="```",spacing:r="compact",markers:s=re,tokenizers:i=[Ht(),Xt(r),Zt(),er(r)]}={}){if(a<0||a%1>0)throw new Error("Invalid startLine");let p=zt({startLine:a,markers:s}),c=Gt({fence:t}),u=Wt({tokenizers:i}),y=He(r);return function(m){let T=[];for(let v of Ct(m)){let x=p(v);if(x===null)continue;let g=c(x),w=g.slice(1).map(u);T.push({description:y(g[0],s),tags:w,source:x,problems:w.reduce((_,L)=>_.concat(L.problems),[])})}return T}}n(nr,"getParser");function ar(a){return a.start+a.delimiter+a.postDelimiter+a.tag+a.postTag+a.type+a.postType+a.name+a.postName+a.description+a.end+a.lineEnd}n(ar,"join");function Ka(){return a=>a.source.map(({tokens:t})=>ar(t)).join(` `)}n(Ka,"getStringifier");function or(a,t={}){return nr(t)(a)}n(or,"parse");var Xe=bt(ja(),1);function sr(a){return a!=null&&a.includes("@")}n(sr,"containsJsDoc");function ir(a){let t=`/** `+(a??"").split(` `).map(s=>` * ${s}`).join(` `)+` */`,r=or(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}n(ir,"parse");var $a={tags:["param","arg","argument","returns","ignore","deprecated"]},Ma=n((a,t=$a)=>{if(!sr(a))return{includesJsDoc:!1,ignore:!1};let r=ir(a),s=pr(r,t.tags);return s.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:s}},"parseJsDoc");function pr(a,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let s of a.tags)if(!(t!==void 0&&!t.includes(s.tag)))if(s.tag==="ignore"){r.ignore=!0;break}else switch(s.tag){case"param":case"arg":case"argument":{let i=cr(s);i!=null&&(r.params==null&&(r.params=[]),r.params.push(i));break}case"deprecated":{let i=ur(s);i!=null&&(r.deprecated=i);break}case"returns":{let i=yr(s);i!=null&&(r.returns=i);break}}return r}n(pr,"extractJsDocTags");function lr(a){return a.replace(/[\.-]$/,"")}n(lr,"normaliseParamName");function cr(a){if(!a.name||a.name==="-")return null;let t=et(a.type);return{name:a.name,type:t,description:Ze(a.description),getPrettyName:n(()=>lr(a.name),"getPrettyName"),getTypeName:n(()=>t?tt(t):null,"getTypeName")}}n(cr,"extractParam");function ur(a){return a.name?Qe(a.name,a.description):null}n(ur,"extractDeprecated");function Qe(a,t){let r=a===""?t:`${a} ${t}`;return Ze(r)}n(Qe,"joinNameAndDescription");function Ze(a){let t=a.replace(/^- /g,"").trim();return t===""?null:t}n(Ze,"normaliseDescription");function yr(a){let t=et(a.type);return t?{type:t,description:Qe(a.name,a.description),getTypeName:n(()=>tt(t),"getTypeName")}:null}n(yr,"extractReturns");var ae=(0,Xe.stringifyRules)(),Ca=ae.JsdocTypeObject;ae.JsdocTypeAny=()=>"any";ae.JsdocTypeObject=(a,t)=>`(${Ca(a,t)})`;ae.JsdocTypeOptional=(a,t)=>t(a.element);ae.JsdocTypeNullable=(a,t)=>t(a.element);ae.JsdocTypeNotNullable=(a,t)=>t(a.element);ae.JsdocTypeUnion=(a,t)=>a.elements.map(t).join("|");function et(a){try{return(0,Xe.parse)(a,"typescript")}catch{return null}}n(et,"extractType");function tt(a){return(0,Xe.transform)(ae,a)}n(tt,"extractTypeName");function rt(a){return a.length>90}n(rt,"isTooLongForTypeSummary");function dr(a){return a.length>50}n(dr,"isTooLongForDefaultValueSummary");function M(a,t){return a===t?{summary:a}:{summary:a,detail:t}}n(M,"createSummaryValue");function nt({name:a,value:t,elements:r,raw:s}){return t??(r!=null?r.map(nt).join(" | "):s??a)}n(nt,"generateUnionElement");function mr({name:a,raw:t,elements:r}){return r!=null?M(r.map(nt).join(" | ")):t!=null?M(t.replace(/^\|\s*/,"")):M(a)}n(mr,"generateUnion");function fr({type:a,raw:t}){return t!=null?M(t):M(a)}n(fr,"generateFuncSignature");function Tr({type:a,raw:t}){return t!=null?rt(t)?M(a,t):M(t):M(a)}n(Tr,"generateObjectSignature");function hr(a){let{type:t}=a;return t==="object"?Tr(a):fr(a)}n(hr,"generateSignature");function vr({name:a,raw:t}){return t!=null?rt(t)?M(a,t):M(t):M(a)}n(vr,"generateDefault");function qa(a){if(a==null)return null;switch(a.name){case"union":return mr(a);case"signature":return hr(a);default:return vr(a)}}n(qa,"createType");function Ba(a,t){if(a!=null){let{value:r}=a;if(!Re(r))return dr(r)?M(t==null?void 0:t.name,r):M(r)}return null}n(Ba,"createDefaultValue");function Ga({tsType:a,required:t}){if(a==null)return null;let r=a.name;return t||(r=r.replace(" | undefined","")),M(["Array","Record","signature"].includes(a.name)?a.raw:r)}n(Ga,"createType");function Ya({defaultValue:a}){if(a!=null){let{value:t}=a;if(!Re(t))return M(t)}return null}n(Ya,"createDefaultValue");function gr(a){return a!=null?M(a.name):null}n(gr,"createType");function Jr(a){let{computed:t,func:r}=a;return typeof t>"u"&&typeof r>"u"}n(Jr,"isReactDocgenTypescript");function br(a){return a?a.name==="string"?!0:a.name==="enum"?Array.isArray(a.value)&&a.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}n(br,"isStringValued");function xr(a,t){if(a!=null){let{value:r}=a;if(!Re(r))return Jr(a)&&br(t)?M(JSON.stringify(r)):M(r)}return null}n(xr,"createDefaultValue");function za(a,t,r){let{description:s,required:i,defaultValue:p}=r;return{name:a,type:gr(t),required:i,description:s,defaultValue:xr(p,t)}}n(za,"createBasicPropDef");function Wa(a,t){var r;if(t!=null&&t.includesJsDoc){let{description:s,extractedTags:i}=t;s!=null&&(a.description=t.description);let p={...i,params:(r=i==null?void 0:i.params)==null?void 0:r.map(c=>({name:c.getPrettyName(),description:c.description}))};Object.values(p).filter(Boolean).length>0&&(a.jsDocTags=p)}return a}n(Wa,"applyJsDocResult");function Ha(a,t,r,s){let i=Ma(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:s(a,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:r}}n(Ha,"extractProp");function Xa(a){return a!=null?Kt(a):""}n(Xa,"extractComponentDescription");const{combineParameters:Qa}=__STORYBOOK_MODULE_PREVIEW_API__;var ro=n(a=>{let{component:t,argTypes:r,parameters:{docs:s={}}}=a,{extractArgTypes:i}=s,p=i&&t?i(t):{};return p?Qa(p,r):r},"enhanceArgTypes"),Za="storybook/docs",no=`${Za}/snippet-rendered`,eo=(a=>(a.AUTO="auto",a.CODE="code",a.DYNAMIC="dynamic",a))(eo||{});export{no as e,eo as s,ro as z}; //# sourceMappingURL=index-B659rHmc.js.map