"undefined"==typeof WeakMap&&!function(){function WeakMap(){this.name="__st"+(1e9*Math.random()>>>0)+counter+++"__"}var defineProperty=Object.defineProperty,counter=Date.now()%1e9;WeakMap.prototype={set:function(key,value){var entry=key[this.name];return entry&&entry[0]===key?entry[1]=value:defineProperty(key,this.name,{value:[key,value],writable:!0}),this},get:function(key){var entry;return(entry=key[this.name])&&entry[0]===key?entry[1]:void 0},delete:function(key){var entry=key[this.name];return!(!entry||entry[0]!==key||(entry[0]=entry[1]=void 0))},has:function(key){var entry=key[this.name];return!!entry&&entry[0]===key}},globalThis.WeakMap=WeakMap}();