import{__require as r}from"./function-uncurry-this.mjs";import{__require as t}from"./define-built-ins.mjs";import{__require as e}from"./internal-metadata.mjs";import{__require as i}from"./an-instance.mjs";import{__require as n}from"./an-object.mjs";import{__require as o}from"./is-null-or-undefined.mjs";import{__require as u}from"./is-object.mjs";import{__require as s}from"./iterate.mjs";import{__require as a}from"./array-iteration.mjs";import{__require as f}from"./has-own-property.mjs";import{__require as m}from"./internal-state.mjs";var c,_;function p(){if(_)return c;_=1;var p=r(),d=t(),h=e().getWeakData,j=i(),v=n(),l=o(),q=u(),g=s(),y=a(),b=f(),z=m(),w=z.set,x=z.getterFor,E=y.find,I=y.findIndex,S=p([].splice),k=0,A=function(r){return r.frozen||(r.frozen=new C)},C=function(){this.entries=[]},D=function(r,t){return E(r.entries,function(r){return r[0]===t})};return C.prototype={get:function(r){var t=D(this,r);if(t)return t[1]},has:function(r){return!!D(this,r)},set:function(r,t){var e=D(this,r);e?e[1]=t:this.entries.push([r,t])},delete:function(r){var t=I(this.entries,function(t){return t[0]===r});return~t&&S(this.entries,t,1),!!~t}},c={getConstructor:function(r,t,e,i){var n=r(function(r,n){j(r,o),w(r,{type:t,id:k++,frozen:null}),l(n)||g(n,r[i],{that:r,AS_ENTRIES:e})}),o=n.prototype,u=x(t),s=function(r,t,e){var i=u(r),n=h(v(t),!0);return!0===n?A(i).set(t,e):n[i.id]=e,r};return d(o,{delete:function(r){var t=u(this);if(!q(r))return!1;var e=h(r);return!0===e?A(t).delete(r):e&&b(e,t.id)&&delete e[t.id]},has:function(r){var t=u(this);if(!q(r))return!1;var e=h(r);return!0===e?A(t).has(r):e&&b(e,t.id)}}),d(o,e?{get:function(r){var t=u(this);if(q(r)){var e=h(r);if(!0===e)return A(t).get(r);if(e)return e[t.id]}},set:function(r,t){return s(this,r,t)}}:{add:function(r){return s(this,r,!0)}}),n}}}export{p as __require};