"use strict";var __extends=this&&this.__extends||function(){var n=function(r,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i))e[i]=o[i]};return n(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.UnShiftCommand=void 0;var AbstractCommand_1=require("../AbstractCommand");var UnShiftCommand=function(n){__extends(r,n);function r(t){var e=n.call(this)||this;if(Array.isArray(t)){e.val=t}else{e.val=[t]}return e}Object.defineProperty(r.prototype,"operator",{get:function(){return"$push"},enumerable:false,configurable:true});r.prototype.stringify=function(){var t={$each:this.val};t.$position=0;return t};return r}(AbstractCommand_1.UpdateCommand);exports.UnShiftCommand=UnShiftCommand;