import{aE as e,aF as t,L as a}from"./p-BTBbFFOR.js";import{S as s}from"./p-BQyjljia.js";class o extends t{constructor(e){super(),this.autoRunTaskQueue=new s(e)}async executeTaskHook(){this.autoRunTaskQueue.queue.length&&await this.autoRunTaskQueue.runTask()}enqueueTheTaskIntoQueue(e=!1){this.autoRunTaskQueue.enqueue({run:async()=>{try{await this.doTask()}catch(e){a.error("The auto task run failed.",e)}}},e)}}!function(e,t,a,s){var o,c=arguments.length,n=c<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,a,s);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(n=(c<3?o(n):c>3?o(t,a,n):o(t,a))||n);c>3&&n&&Object.defineProperty(t,a,n)}([e("componentDidUpdate")],o.prototype,"executeTaskHook",null);export{o as A}