import{__require as r}from"./function-uncurry-this.mjs";import{__require as e}from"./require-object-coercible.mjs";import{__require as t}from"./to-string.mjs";import{__require as i}from"./whitespaces.mjs";var o,u;function n(){if(u)return o;u=1;var n=r(),s=e(),m=t(),a=i(),c=n("".replace),_=RegExp("^["+a+"]+"),f=RegExp("(^|[^"+a+"])["+a+"]+$"),p=function(r){return function(e){var t=m(s(e));return 1&r&&(t=c(t,_,"")),2&r&&(t=c(t,f,"$1")),t}};return o={start:p(1),end:p(2),trim:p(3)}}export{n as __require};