import{__exports as r}from"../../../_virtual/web.dom-exception.stack.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/global-this.mjs";import{__require as i}from"../internals/get-built-in.mjs";import{__require as o}from"../internals/create-property-descriptor.mjs";import{__require as s}from"../internals/object-define-property.mjs";import{__require as n}from"../internals/has-own-property.mjs";import{__require as a}from"../internals/an-instance.mjs";import{__require as m}from"../internals/inherit-if-required.mjs";import{__require as p}from"../internals/normalize-string-argument.mjs";import{__require as _}from"../internals/dom-exception-constants.mjs";import{__require as c}from"../internals/error-stack-clear.mjs";import{__require as u}from"../internals/descriptors.mjs";import{__require as f}from"../internals/is-pure.mjs";var l;function j(){if(l)return r;l=1;var j=e(),q=t(),d=i(),v=o(),b=s().f,g=n(),w=a(),x=m(),y=p(),h=_(),k=c(),E=u(),O=f(),D="DOMException",M=d("Error"),z=d(D),P=function(){w(this,A);var r=arguments.length,e=y(r<1?void 0:arguments[0]),t=y(r<2?void 0:arguments[1],"Error"),i=new z(e,t),o=new M(e);return o.name=D,b(i,"stack",v(1,k(o.stack,1))),x(i,this,P),i},A=P.prototype=z.prototype,B="stack"in new M(D),C="stack"in new z(1,2),F=z&&E&&Object.getOwnPropertyDescriptor(q,D),G=!(!F||F.writable&&F.configurable),H=B&&!G&&!C;j({global:!0,constructor:!0,forced:O||H},{DOMException:H?P:z});var I=d(D),J=I.prototype;if(J.constructor!==I)for(var K in O||b(J,"constructor",v(1,I)),h)if(g(h,K)){var L=h[K],N=L.s;g(I,N)||b(I,N,v(6,L.c))}return r}export{j as __require};