var k=/("(?:[^\\"]|\\.)*")|[:,]/g,L=function(N,i){var l,x,u;return i=i||{},l=JSON.stringify([1],void 0,i.indent===void 0?2:i.indent).slice(2,-3),x=l===""?Infinity:i.maxLength===void 0?80:i.maxLength,u=i.replacer,function J(e,a,m){var d,n,f,y,h,s,t,g,c,O,r,S;if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),r=JSON.stringify(e,u),r===void 0)return r;if(t=x-a.length-m,r.length<=t&&(c=r.replace(k,function(p,v){return v||p+" "}),c.length<=t))return c;if(u!=null&&(e=JSON.parse(r),u=void 0),typeof e=="object"&&e!==null){if(g=a+l,f=[],n=0,Array.isArray(e))for(O="[",d="]",t=e.length;n0)return[O,l+f.join(`, `+g),d].join(` `+a)}return r}(N,"",0)};export default L;