function e(e){if(!e||typeof e!=`object`)return null;let t=e.mailhubDetail;if(!t||typeof t!=`object`)return null;let{listPath:n,depth:r,origin:i}=t;return typeof n!=`string`||!n.startsWith(`/`)||!Number.isInteger(r)||Number(r)<1||i!==void 0&&i!==`list`&&i!==`direct`?null:{listPath:n,depth:Number(r),origin:i||`list`}}function t(e,t,n=`list`){return{mailhubDetail:{listPath:e,depth:t,origin:n}}}export{e as n,t};