import{__exports as r}from"../../../_virtual/es.suppressed-error.constructor.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/global-this.mjs";import{__require as o}from"../internals/object-is-prototype-of.mjs";import{__require as s}from"../internals/object-get-prototype-of.mjs";import{__require as i}from"../internals/object-set-prototype-of.mjs";import{__require as n}from"../internals/copy-constructor-properties.mjs";import{__require as a}from"../internals/object-create.mjs";import{__require as m}from"../internals/create-non-enumerable-property.mjs";import{__require as p}from"../internals/create-property-descriptor.mjs";import{__require as u}from"../internals/error-stack-install.mjs";import{__require as _}from"../internals/normalize-string-argument.mjs";import{__require as l}from"../internals/well-known-symbol.mjs";import{__require as c}from"../internals/fails.mjs";import{__require as f}from"../internals/is-pure.mjs";var j;function q(){if(j)return r;j=1;var q=e(),y=t(),g=o(),b=s(),d=i(),h=n(),v=a(),w=m(),E=p(),S=u(),k=_(),x=l(),z=c(),T=f(),A=y.SuppressedError,B=x("toStringTag"),C=Error,D=!!A&&3!==A.length,F=!!A&&z(function(){return 4===new A(1,2,3,{cause:4}).cause}),G=D||F,H=function(r,e,t){var o,s=g(I,this);return d?o=!G||s&&b(this)!==I?d(new C,s?b(this):I):new A:(o=s?this:v(I),w(o,B,"Error")),void 0!==t&&w(o,"message",k(t)),S(o,H,o.stack,1),w(o,"error",r),w(o,"suppressed",e),o};d?d(H,C):h(H,C,{name:!0});var I=H.prototype=G?A.prototype:v(C.prototype,{constructor:E(1,H),message:E(1,""),name:E(1,"SuppressedError")});return G&&!T&&(I.constructor=H),q({global:!0,constructor:!0,arity:3,forced:G},{SuppressedError:H}),r}export{q as __require};