import{__require as r}from"./function-call.mjs";import{__require as t}from"./is-callable.mjs";import{__require as e}from"./is-object.mjs";var i,n;function o(){if(n)return i;n=1;var o=r(),u=t(),a=e(),f=TypeError;return i=function(r,t){var e,i;if("string"===t&&u(e=r.toString)&&!a(i=o(e,r)))return i;if(u(e=r.valueOf)&&!a(i=o(e,r)))return i;if("string"!==t&&u(e=r.toString)&&!a(i=o(e,r)))return i;throw new f("Can't convert object to primitive value")}}export{o as __require};