import{__exports as r}from"../../../_virtual/es.string.to-well-formed.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as o}from"../internals/require-object-coercible.mjs";import{__require as n}from"../internals/to-string.mjs";import{__require as s}from"../internals/fails.mjs";var a;function m(){if(a)return r;a=1;var m=e(),u=t(),f=i(),l=o(),_=n(),c=s(),p=Array,j=f("".charAt),q=f("".charCodeAt),v=f([].join),d="".toWellFormed,g=d&&c(function(){return"1"!==u(d,1)});return m({target:"String",proto:!0,forced:g},{toWellFormed:function(){var r=_(l(this));if(g)return u(d,r);for(var e=r.length,t=p(e),i=0;i<e;i++){var o=q(r,i);55296!=(63488&o)?t[i]=j(r,i):o>=56320||i+1>=e||56320!=(64512&q(r,i+1))?t[i]="�":(t[i]=j(r,i),t[++i]=j(r,i))}return v(t,"")}}),r}export{m as __require};