import{__module as r}from"../../../_virtual/make-built-in.mjs";import{__require as t}from"./function-uncurry-this.mjs";import{__require as e}from"./fails.mjs";import{__require as o}from"./is-callable.mjs";import{__require as i}from"./has-own-property.mjs";import{__require as n}from"./descriptors.mjs";import{__require as s}from"./function-name.mjs";import{__require as u}from"./inspect-source.mjs";import{__require as a}from"./internal-state.mjs";var m;function p(){if(m)return r.exports;m=1;var p=t(),c=e(),f=o(),l=i(),_=n(),g=s().CONFIGURABLE,y=u(),j=a(),h=j.enforce,q=j.get,v=String,S=Object.defineProperty,b=p("".slice),d=p("".replace),x=p([].join),w=_&&!c(function(){return 8!==S(function(){},"length",{value:8}).length}),F=String(String).split("String"),O=r.exports=function(r,t,e){"Symbol("===b(v(t),0,7)&&(t="["+d(v(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!l(r,"name")||g&&r.name!==t)&&(_?S(r,"name",{value:t,configurable:!0}):r.name=t),w&&e&&l(e,"arity")&&r.length!==e.arity&&S(r,"length",{value:e.arity});try{e&&l(e,"constructor")&&e.constructor?_&&S(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var o=h(r);return l(o,"source")||(o.source=x(F,"string"==typeof t?t:"")),r};return Function.prototype.toString=O(function(){return f(this)&&q(this).source||y(this)},"toString"),r.exports}export{p as __require};