var c=function(){var r=function(o,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))e[i]=n[i]};return r(o,t)};return function(o,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();import{AggregatePipeline as u}from"../command/AggregatePipeline";import{DocumentAction as a}from"../common/constant";import{ActionBuilder as l}from"../common/util";var s=function(r){c(o,r);function o(t){var e=r.call(this)||this;e.collectionName=t;return e}o.prototype.end=function(){var t={$aggregate:this.done()};return l.buildDocumentAction(a.aggregate,this.collectionName,t)};return o}(u);export{s as AggregateBuilder};