"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.default=exports.StatsMode=void 0;var _extension=require("../../core/extension"),_stats=_interopRequireDefault(require("three/examples/jsm/libs/stats.module"));let StatsMode=exports.StatsMode=function(a){return a[a.fps=0]="fps",a[a.ms=1]="ms",a[a.mb=2]="mb",a}({});var _default=exports.default=(0,_extension.definePlugin)("stats",{setup(a,b){const c=b.container,d=new _stats.default;return d.showPanel(a.mode||0),d.begin(),c.appendChild(d.dom),{update:()=>{d.update()},remove:()=>{d.end(),c.removeChild(d.dom)}}},render(){this.update()},destroyed(){this.remove()}});