import{__exports as r}from"../../../_virtual/es.regexp.constructor.mjs";import{__require as e}from"../internals/descriptors.mjs";import{__require as t}from"../internals/global-this.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as s}from"../internals/is-forced.mjs";import{__require as n}from"../internals/inherit-if-required.mjs";import{__require as o}from"../internals/create-non-enumerable-property.mjs";import{__require as a}from"../internals/object-create.mjs";import{__require as m}from"../internals/object-get-own-property-names.mjs";import{__require as p}from"../internals/object-is-prototype-of.mjs";import{__require as u}from"../internals/is-regexp.mjs";import{__require as l}from"../internals/to-string.mjs";import{__require as _}from"../internals/regexp-get-flags.mjs";import{__require as f}from"../internals/regexp-sticky-helpers.mjs";import{__require as c}from"../internals/proxy-accessor.mjs";import{__require as g}from"../internals/define-built-in.mjs";import{__require as j}from"../internals/fails.mjs";import{__require as q}from"../internals/has-own-property.mjs";import{__require as h}from"../internals/internal-state.mjs";import{__require as x}from"../internals/set-species.mjs";import{__require as y}from"../internals/well-known-symbol.mjs";import{__require as d}from"../internals/regexp-unsupported-dot-all.mjs";import{__require as v}from"../internals/regexp-unsupported-ncg.mjs";var w;function b(){if(w)return r;w=1;var b=e(),E=t(),S=i(),k=s(),R=n(),A=o(),I=a(),D=m().f,O=p(),P=u(),T=l(),U=_(),Y=f(),C=c(),K=g(),M=j(),N=q(),z=h().enforce,B=x(),F=y(),G=d(),H=v(),J=F("match"),L=E.RegExp,Q=L.prototype,V=E.SyntaxError,W=S(Q.exec),X=S("".charAt),Z=S("".replace),$=S("".indexOf),rr=S("".slice),er=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,tr=/a/g,ir=/a/g,sr=new L(tr)!==tr,nr=Y.MISSED_STICKY,or=Y.UNSUPPORTED_Y,ar=b&&(!sr||nr||G||H||M(function(){return ir[J]=!1,L(tr)!==tr||L(ir)===ir||"/a/i"!==String(L(tr,"i"))}));if(k("RegExp",ar)){for(var mr=function(r,e){var t,i,s,n,o,a,m=O(Q,this),p=P(r),u=void 0===e,l=[],_=r;if(!m&&p&&u&&r.constructor===mr)return r;if((p||O(Q,r))&&(r=r.source,u&&(e=U(_))),r=void 0===r?"":T(r),e=void 0===e?"":T(e),_=r,G&&"dotAll"in tr&&(i=!!e&&$(e,"s")>-1)&&(e=Z(e,/s/g,"")),t=e,nr&&"sticky"in tr&&(s=!!e&&$(e,"y")>-1)&&or&&(e=Z(e,/y/g,"")),H&&(n=function(r){for(var e,t=r.length,i=0,s="",n=[],o=I(null),a=!1,m=!1,p=0,u="";i<t;i++){if("\\"===(e=X(r,i)))e+=X(r,++i);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:if(s+=e,"?:"===rr(r,i+1,i+3))continue;W(er,rr(r,i+1))&&(i+=2,m=!0),p++;continue;case">"===e&&m:if(""===u||N(o,u))throw new V("Invalid capture group name");o[u]=!0,n[n.length]=[u,p],m=!1,u="";continue}m?u+=e:s+=e}return[s,n]}(r),r=n[0],l=n[1]),o=R(L(r,e),m?this:Q,mr),(i||s||l.length)&&(a=z(o),i&&(a.dotAll=!0,a.raw=mr(function(r){for(var e,t=r.length,i=0,s="",n=!1;i<t;i++)"\\"!==(e=X(r,i))?n||"."!==e?("["===e?n=!0:"]"===e&&(n=!1),s+=e):s+="[\\s\\S]":s+=e+X(r,++i);return s}(r),t)),s&&(a.sticky=!0),l.length&&(a.groups=l)),r!==_)try{A(o,"source",""===_?"(?:)":_)}catch(r){}return o},pr=D(L),ur=0;pr.length>ur;)C(mr,L,pr[ur++]);Q.constructor=mr,mr.prototype=Q,K(E,"RegExp",mr,{constructor:!0})}return B("RegExp"),r}export{b as __require};