"use strict";const e=require("./util.js");function t(){}exports.callInterceptor=function(c,{args:n=[],done:r,canceled:s,error:o}){if(c){const i=c.apply(null,n);e.isPromise(i)?i.then((e=>{e?r():s&&s()})).catch(o||t):i?r():s&&s()}else r()};
