text: 'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.default=createWidgetsManager;var _utils=require('./utils');function createWidgetsManager(a){function b(){d||(d=!0,(0,_utils.defer)(function(){d=!1,a()}))}var c=[],d=!1;return{registerWidget:function registerWidget(e){return c.push(e),b(),function(){c.splice(c.indexOf(e),1),b()}},update:b,getWidgets:function getWidgets(){return c}}}