Spaces:
Running
Running
import{v as o,w as p,x as a,y as m}from"./scheduler.BZlHRu_0.js";import{g as v,b as g,d as x,t as w}from"./index.a_oafgNU.js";function j(e,t){const h=t.token={};function c(r,s,d,k){if(t.token!==h)return;t.resolved=k;let u=t.ctx;d!==void 0&&(u=u.slice(),u[d]=k);const l=r&&(t.current=r)(u);let b=!1;t.block&&(t.blocks?t.blocks.forEach((n,_)=>{_!==s&&n&&(v(),g(n,1,1,()=>{t.blocks[_]===n&&(t.blocks[_]=null)}),x())}):t.block.d(1),l.c(),w(l,1),l.m(t.mount(),t.anchor),b=!0),t.block=l,t.blocks&&(t.blocks[s]=l),b&&m()}if(o(e)){const r=p();if(e.then(s=>{a(r),c(t.then,1,t.value,s),a(null)},s=>{if(a(r),c(t.catch,2,t.error,s),a(null),!t.hasCatch)throw s}),t.current!==t.pending)return c(t.pending,0),!0}else{if(t.current!==t.then)return c(t.then,1,t.value,e),!0;t.resolved=e}}function q(e,t,h){const c=t.slice(),{resolved:r}=e;e.current===e.then&&(c[e.value]=r),e.current===e.catch&&(c[e.error]=r),e.block.p(c,h)}export{j as h,q as u}; | |