import{__exports as r}from"../../../_virtual/web.dom-exception.constructor.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/get-built-in.mjs";import{__require as n}from"../internals/get-built-in-node-module.mjs";import{__require as o}from"../internals/fails.mjs";import{__require as i}from"../internals/object-create.mjs";import{__require as s}from"../internals/create-property-descriptor.mjs";import{__require as a}from"../internals/object-define-property.mjs";import{__require as m}from"../internals/define-built-in.mjs";import{__require as u}from"../internals/define-built-in-accessor.mjs";import{__require as c}from"../internals/has-own-property.mjs";import{__require as p}from"../internals/an-instance.mjs";import{__require as _}from"../internals/an-object.mjs";import{__require as f}from"../internals/error-to-string.mjs";import{__require as l}from"../internals/normalize-string-argument.mjs";import{__require as j}from"../internals/dom-exception-constants.mjs";import{__require as d}from"../internals/error-stack-clear.mjs";import{__require as g}from"../internals/internal-state.mjs";import{__require as q}from"../internals/descriptors.mjs";import{__require as h}from"../internals/is-pure.mjs";var b;function v(){if(b)return r;b=1;var v=e(),w=t(),y=n(),x=o(),E=i(),k=s(),M=a().f,C=m(),D=u(),O=c(),S=p(),A=_(),R=f(),z=l(),F=j(),L=d(),N=g(),T=q(),W=h(),B="DOMException",G="DATA_CLONE_ERR",H=w("Error"),I=w(B)||function(){try{(new(w("MessageChannel")||y("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(r){if(r.name===G&&25===r.code)return r.constructor}}(),J=I&&I.prototype,K=H.prototype,P=N.set,Q=N.getterFor(B),U="stack"in new H(B),V=function(r){return O(F,r)&&F[r].m?F[r].c:0},X=function(){S(this,Y);var r=arguments.length,e=z(r<1?void 0:arguments[0]),t=z(r<2?void 0:arguments[1],"Error"),n=V(t);if(P(this,{type:B,name:t,message:e,code:n}),T||(this.name=t,this.message=e,this.code=n),U){var o=new H(e);o.name=B,M(this,"stack",k(1,L(o.stack,1)))}},Y=X.prototype=E(K),Z=function(r){return{enumerable:!0,configurable:!0,get:r}},$=function(r){return Z(function(){return Q(this)[r]})};T&&(D(Y,"code",$("code")),D(Y,"message",$("message")),D(Y,"name",$("name"))),M(Y,"constructor",k(1,X));var rr=x(function(){return!(new I instanceof H)}),er=rr||x(function(){return K.toString!==R||"2: 1"!==String(new I(1,2))}),tr=rr||x(function(){return 25!==new I(1,"DataCloneError").code}),nr=rr||25!==I[G]||25!==J[G],or=W?er||tr||nr:rr;v({global:!0,constructor:!0,forced:or},{DOMException:or?X:I});var ir=w(B),sr=ir.prototype;for(var ar in er&&(W||I===ir)&&C(sr,"toString",R),tr&&T&&I===ir&&D(sr,"code",Z(function(){return V(A(this).name)})),F)if(O(F,ar)){var mr=F[ar],ur=mr.s,cr=k(6,mr.c);O(ir,ur)||M(ir,ur,cr),O(sr,ur)||M(sr,ur,cr)}return r}export{v as __require};