import{__exports as r}from"../../../_virtual/es.regexp.to-string.mjs";import{__require as e}from"../internals/function-name.mjs";import{__require as t}from"../internals/define-built-in.mjs";import{__require as i}from"../internals/an-object.mjs";import{__require as n}from"../internals/to-string.mjs";import{__require as s}from"../internals/fails.mjs";import{__require as a}from"../internals/regexp-get-flags.mjs";var o;function m(){if(o)return r;o=1;var m=e().PROPER,u=t(),f=i(),_=n(),p=s(),l=a(),g="toString",c=RegExp.prototype,j=c[g],q=p(function(){return"/a/b"!==j.call({source:"a",flags:"b"})}),x=m&&j.name!==g;return(q||x)&&u(c,g,function(){var r=f(this);return"/"+_(r.source)+"/"+_(l(r))},{unsafe:!0}),r}export{m as __require};