{"version":3,"sources":["./node_modules/ng2-file-upload/__ivy_ngcc__/fesm2015/ng2-file-upload.js","./src/app/shared/shared.pdate.module.ts","./src/app/shared/material.persian-date.adapter.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2G;AAC5D;;AAE/C;AACA;AACA,cAAc,wGAAwG;AACtH;AACA;AACA,WAAW,EAAE;AACb,YAAY;AACZ;AACwC;AACxC;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,qBAAqB,EAAE;AACvB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAWV;;AAED;AACA;AACA,cAAc,wGAAwG;AACtH;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD,sDAAsD;AACtD;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAoDV;;AAED;AACA;AACA,cAAc,wGAAwG;AACtH;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAWV;;AAED;AACA;AACA,cAAc,wGAAwG;AACtH;AACA;AACA,WAAW,EAAE;AACb,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB,WAAW,EAKV;AACD;AACA;AACA;AACA,gCAAgC;AAChC,WAAW,EAuCV;AACD;AACA;AACA,eAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,EAAE;AACzB,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,4BAA4B,0DAAY;AACxC;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,iDAAiD;AACvF;AACA,0CAA0C,6CAA6C;AACvF;AACA;AACA,0CAA0C,6CAA6C;AACvF;AACA;AACA,0CAA0C,6CAA6C;AACvF;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,GAAG;AAClB,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA,2BAA2B,EAAE;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,EAAE;AAC7B;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,EAAE;AACvB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,EAAE;AACzB;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,EAAE;AAC7B,4BAA4B;AAC5B;AACA;AACA,+BAA+B,EAAE;AACjC;AACA;AACA,4EAA4E,WAAW;AACvF,uDAAuD,WAAW;AAClE;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA,SAAS;AACT;AACA,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA,uBAAuB,EAAE;AACzB;AACA,uBAAuB,EAAE;AACzB;AACA,uBAAuB,EAAE;AACzB;AACA,yBAAyB,EAAE;AAC3B;AACA,SAAS;AACT;AACA,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA,SAAS;AACT;AACA,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,uBAAuB,EAAE;AACzB,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA,uBAAuB,EAAE;AACzB,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;A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;AACvB,SAAS,GAAG,EAAE,EAAE;AAChB,WAAW,EAUV;;AAED;AACA;AACA,cAAc,wGAAwG;AACtH;AACA;AACA;AACA,eAAe,EAAE;AACjB;AACA;AACA,4BAA4B,0DAAY;AACxC,8BAA8B,0DAAY;AAC1C;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,yBAAyB,EAAE;AAC3B,qDAAqD,EAAE;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA,0FAA0F;AAC1F;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAAE;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,qCAAqC,+DAAwB,CAAC,wDAAiB,GAAG;AAClJ,yBAAyB,+DAAwB,EAAE,gIAAgI;AACnL,QAAQ,wDAAiB,qEAAqE,2BAA2B,EAAE,8EAA8E,+BAA+B,EAAE,gFAAgF,gCAAgC,EAAE;AAC5V,KAAK,EAAE,WAAW,uBAAuB,YAAY,iDAAiD,EAAE;AACxG;AACA;AACA,KAAK,OAAO,wDAAU;AACtB;AACA;AACA,gBAAgB,OAAO,mDAAK,EAAE;AAC9B,gBAAgB,OAAO,oD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I,IAAI,CAAC;QACT,IAAI,KAAK,YAAY,IAAI,EAAE;YACzB,IAAI,GAAG,0CAAY,CAAC,KAAK,CAAC,CAAC;SAC5B;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,IAAI,CAAC,KAAK,EAAE;gBACV,OAAO,IAAI,CAAC;aACb;YACD,IAAI,GAAG,0CAAY,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACzC;QACD,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC9B,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACF","file":"default~pages-branch-branch-module~pages-customer-customer-module~pages-iframe-iframe-module~pages-r~826e658f-es2015.js","sourcesContent":["import { EventEmitter, Directive, ElementRef, Input, Output, HostListener, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} node\n * @return {?}\n */\nimport * as ɵngcc0 from '@angular/core';\nfunction isElement(node) {\n return !!(node && (node.nodeName || node.prop && node.attr && node.find));\n}\nclass FileLikeObject {\n /**\n * @param {?} fileOrInput\n */\n constructor(fileOrInput) {\n this.rawFile = fileOrInput;\n /** @type {?} */\n let isInput = isElement(fileOrInput);\n /** @type {?} */\n let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;\n /** @type {?} */\n let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';\n /** @type {?} */\n let method = '_createFrom' + postfix;\n ((/** @type {?} */ (this)))[method](fakePathOrObject);\n }\n /**\n * @param {?} path\n * @return {?}\n */\n _createFromFakePath(path) {\n this.lastModifiedDate = void 0;\n this.size = void 0;\n this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();\n this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\\\') + 2);\n }\n /**\n * @param {?} object\n * @return {?}\n */\n _createFromObject(object) {\n this.size = object.size;\n this.type = object.type;\n this.name = object.name;\n }\n}\nif (false) {\n /** @type {?} */\n FileLikeObject.prototype.lastModifiedDate;\n /** @type {?} */\n FileLikeObject.prototype.size;\n /** @type {?} */\n FileLikeObject.prototype.type;\n /** @type {?} */\n FileLikeObject.prototype.name;\n /** @type {?} */\n FileLikeObject.prototype.rawFile;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FileItem {\n /**\n * @param {?} uploader\n * @param {?} some\n * @param {?} options\n */\n constructor(uploader, some, options) {\n this.url = '/';\n this.headers = [];\n this.withCredentials = true;\n this.formData = [];\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = false;\n this.progress = 0;\n this.index = void 0;\n this.uploader = uploader;\n this.some = some;\n this.options = options;\n this.file = new FileLikeObject(some);\n this._file = some;\n if (uploader.options) {\n this.method = uploader.options.method || 'POST';\n this.alias = uploader.options.itemAlias || 'file';\n }\n this.url = uploader.options.url;\n }\n /**\n * @return {?}\n */\n upload() {\n try {\n this.uploader.uploadItem(this);\n }\n catch (e) {\n this.uploader._onCompleteItem(this, '', 0, {});\n this.uploader._onErrorItem(this, '', 0, {});\n }\n }\n /**\n * @return {?}\n */\n cancel() {\n this.uploader.cancelItem(this);\n }\n /**\n * @return {?}\n */\n remove() {\n this.uploader.removeFromQueue(this);\n }\n /**\n * @return {?}\n */\n onBeforeUpload() {\n return void 0;\n }\n /**\n * @param {?} form\n * @return {?}\n */\n onBuildForm(form) {\n return { form };\n }\n /**\n * @param {?} progress\n * @return {?}\n */\n onProgress(progress) {\n return { progress };\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onSuccess(response, status, headers) {\n return { response, status, headers };\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onError(response, status, headers) {\n return { response, status, headers };\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onCancel(response, status, headers) {\n return { response, status, headers };\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onComplete(response, status, headers) {\n return { response, status, headers };\n }\n /**\n * @return {?}\n */\n _onBeforeUpload() {\n this.isReady = true;\n this.isUploading = true;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = false;\n this.progress = 0;\n this.onBeforeUpload();\n }\n /**\n * @param {?} form\n * @return {?}\n */\n _onBuildForm(form) {\n this.onBuildForm(form);\n }\n /**\n * @param {?} progress\n * @return {?}\n */\n _onProgress(progress) {\n this.progress = progress;\n this.onProgress(progress);\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onSuccess(response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = true;\n this.isCancel = false;\n this.isError = false;\n this.progress = 100;\n this.index = void 0;\n this.onSuccess(response, status, headers);\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onError(response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = true;\n this.progress = 0;\n this.index = void 0;\n this.onError(response, status, headers);\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onCancel(response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = true;\n this.isError = false;\n this.progress = 0;\n this.index = void 0;\n this.onCancel(response, status, headers);\n }\n /**\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onComplete(response, status, headers) {\n this.onComplete(response, status, headers);\n if (this.uploader.options.removeAfterUpload) {\n this.remove();\n }\n }\n /**\n * @return {?}\n */\n _prepareToUploading() {\n this.index = this.index || ++this.uploader._nextIndex;\n this.isReady = true;\n }\n}\nif (false) {\n /** @type {?} */\n FileItem.prototype.file;\n /** @type {?} */\n FileItem.prototype._file;\n /** @type {?} */\n FileItem.prototype.alias;\n /** @type {?} */\n FileItem.prototype.url;\n /** @type {?} */\n FileItem.prototype.method;\n /** @type {?} */\n FileItem.prototype.headers;\n /** @type {?} */\n FileItem.prototype.withCredentials;\n /** @type {?} */\n FileItem.prototype.formData;\n /** @type {?} */\n FileItem.prototype.isReady;\n /** @type {?} */\n FileItem.prototype.isUploading;\n /** @type {?} */\n FileItem.prototype.isUploaded;\n /** @type {?} */\n FileItem.prototype.isSuccess;\n /** @type {?} */\n FileItem.prototype.isCancel;\n /** @type {?} */\n FileItem.prototype.isError;\n /** @type {?} */\n FileItem.prototype.progress;\n /** @type {?} */\n FileItem.prototype.index;\n /** @type {?} */\n FileItem.prototype._xhr;\n /** @type {?} */\n FileItem.prototype._form;\n /**\n * @type {?}\n * @protected\n */\n FileItem.prototype.uploader;\n /**\n * @type {?}\n * @protected\n */\n FileItem.prototype.some;\n /**\n * @type {?}\n * @protected\n */\n FileItem.prototype.options;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FileType {\n /**\n * @param {?} file\n * @return {?}\n */\n static getMimeClass(file) {\n /** @type {?} */\n let mimeClass = 'application';\n if (this.mime_psd.indexOf(file.type) !== -1) {\n mimeClass = 'image';\n }\n else if (file.type.match('image.*')) {\n mimeClass = 'image';\n }\n else if (file.type.match('video.*')) {\n mimeClass = 'video';\n }\n else if (file.type.match('audio.*')) {\n mimeClass = 'audio';\n }\n else if (file.type === 'application/pdf') {\n mimeClass = 'pdf';\n }\n else if (this.mime_compress.indexOf(file.type) !== -1) {\n mimeClass = 'compress';\n }\n else if (this.mime_doc.indexOf(file.type) !== -1) {\n mimeClass = 'doc';\n }\n else if (this.mime_xsl.indexOf(file.type) !== -1) {\n mimeClass = 'xls';\n }\n else if (this.mime_ppt.indexOf(file.type) !== -1) {\n mimeClass = 'ppt';\n }\n if (mimeClass === 'application') {\n mimeClass = this.fileTypeDetection(file.name);\n }\n return mimeClass;\n }\n /**\n * @param {?} inputFilename\n * @return {?}\n */\n static fileTypeDetection(inputFilename) {\n /** @type {?} */\n let types = {\n 'jpg': 'image',\n 'jpeg': 'image',\n 'tif': 'image',\n 'psd': 'image',\n 'bmp': 'image',\n 'png': 'image',\n 'nef': 'image',\n 'tiff': 'image',\n 'cr2': 'image',\n 'dwg': 'image',\n 'cdr': 'image',\n 'ai': 'image',\n 'indd': 'image',\n 'pin': 'image',\n 'cdp': 'image',\n 'skp': 'image',\n 'stp': 'image',\n '3dm': 'image',\n 'mp3': 'audio',\n 'wav': 'audio',\n 'wma': 'audio',\n 'mod': 'audio',\n 'm4a': 'audio',\n 'compress': 'compress',\n 'zip': 'compress',\n 'rar': 'compress',\n '7z': 'compress',\n 'lz': 'compress',\n 'z01': 'compress',\n 'bz2': 'compress',\n 'gz': 'compress',\n 'pdf': 'pdf',\n 'xls': 'xls',\n 'xlsx': 'xls',\n 'ods': 'xls',\n 'mp4': 'video',\n 'avi': 'video',\n 'wmv': 'video',\n 'mpg': 'video',\n 'mts': 'video',\n 'flv': 'video',\n '3gp': 'video',\n 'vob': 'video',\n 'm4v': 'video',\n 'mpeg': 'video',\n 'm2ts': 'video',\n 'mov': 'video',\n 'doc': 'doc',\n 'docx': 'doc',\n 'eps': 'doc',\n 'txt': 'doc',\n 'odt': 'doc',\n 'rtf': 'doc',\n 'ppt': 'ppt',\n 'pptx': 'ppt',\n 'pps': 'ppt',\n 'ppsx': 'ppt',\n 'odp': 'ppt'\n };\n /** @type {?} */\n let chunks = inputFilename.split('.');\n if (chunks.length < 2) {\n return 'application';\n }\n /** @type {?} */\n let extension = chunks[chunks.length - 1].toLowerCase();\n if (types[extension] === undefined) {\n return 'application';\n }\n else {\n return types[extension];\n }\n }\n}\n/* MS office */\nFileType.mime_doc = [\n 'application/msword',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',\n 'application/vnd.ms-word.document.macroEnabled.12',\n 'application/vnd.ms-word.template.macroEnabled.12'\n];\nFileType.mime_xsl = [\n 'application/vnd.ms-excel',\n 'application/vnd.ms-excel',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',\n 'application/vnd.ms-excel.sheet.macroEnabled.12',\n 'application/vnd.ms-excel.template.macroEnabled.12',\n 'application/vnd.ms-excel.addin.macroEnabled.12',\n 'application/vnd.ms-excel.sheet.binary.macroEnabled.12'\n];\nFileType.mime_ppt = [\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'application/vnd.openxmlformats-officedocument.presentationml.template',\n 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',\n 'application/vnd.ms-powerpoint.addin.macroEnabled.12',\n 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'\n];\n/* PSD */\nFileType.mime_psd = [\n 'image/photoshop',\n 'image/x-photoshop',\n 'image/psd',\n 'application/photoshop',\n 'application/psd',\n 'zz-application/zz-winassoc-psd'\n];\n/* Compressed files */\nFileType.mime_compress = [\n 'application/x-gtar',\n 'application/x-gcompress',\n 'application/compress',\n 'application/x-tar',\n 'application/x-rar-compressed',\n 'application/octet-stream',\n 'application/x-zip-compressed',\n 'application/zip-compressed',\n 'application/x-7z-compressed',\n 'application/gzip',\n 'application/x-bzip2'\n];\nif (false) {\n /** @type {?} */\n FileType.mime_doc;\n /** @type {?} */\n FileType.mime_xsl;\n /** @type {?} */\n FileType.mime_ppt;\n /** @type {?} */\n FileType.mime_psd;\n /** @type {?} */\n FileType.mime_compress;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isFile(value) {\n return (File && value instanceof File);\n}\n/**\n * @record\n */\nfunction Headers() { }\nif (false) {\n /** @type {?} */\n Headers.prototype.name;\n /** @type {?} */\n Headers.prototype.value;\n}\n/**\n * @record\n */\nfunction FileUploaderOptions() { }\nif (false) {\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.allowedMimeType;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.allowedFileType;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.autoUpload;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.isHTML5;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.filters;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.headers;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.method;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.authToken;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.maxFileSize;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.queueLimit;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.removeAfterUpload;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.url;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.disableMultipart;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.itemAlias;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.authTokenHeader;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.additionalParameter;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.parametersBeforeFiles;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.formatDataFunction;\n /** @type {?|undefined} */\n FileUploaderOptions.prototype.formatDataFunctionIsAsync;\n}\nclass FileUploader {\n /**\n * @param {?} options\n */\n constructor(options) {\n this.isUploading = false;\n this.queue = [];\n this.progress = 0;\n this._nextIndex = 0;\n this.options = {\n autoUpload: false,\n isHTML5: true,\n filters: [],\n removeAfterUpload: false,\n disableMultipart: false,\n formatDataFunction: (/**\n * @param {?} item\n * @return {?}\n */\n (item) => item._file),\n formatDataFunctionIsAsync: false\n };\n this.setOptions(options);\n this.response = new EventEmitter();\n }\n /**\n * @param {?} options\n * @return {?}\n */\n setOptions(options) {\n this.options = Object.assign(this.options, options);\n this.authToken = this.options.authToken;\n this.authTokenHeader = this.options.authTokenHeader || 'Authorization';\n this.autoUpload = this.options.autoUpload;\n this.options.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });\n if (this.options.maxFileSize) {\n this.options.filters.unshift({ name: 'fileSize', fn: this._fileSizeFilter });\n }\n if (this.options.allowedFileType) {\n this.options.filters.unshift({ name: 'fileType', fn: this._fileTypeFilter });\n }\n if (this.options.allowedMimeType) {\n this.options.filters.unshift({ name: 'mimeType', fn: this._mimeTypeFilter });\n }\n for (let i = 0; i < this.queue.length; i++) {\n this.queue[i].url = this.options.url;\n }\n }\n /**\n * @param {?} files\n * @param {?=} options\n * @param {?=} filters\n * @return {?}\n */\n addToQueue(files, options, filters) {\n /** @type {?} */\n let list = [];\n for (let file of files) {\n list.push(file);\n }\n /** @type {?} */\n let arrayOfFilters = this._getFilters(filters);\n /** @type {?} */\n let count = this.queue.length;\n /** @type {?} */\n let addedFileItems = [];\n list.map((/**\n * @param {?} some\n * @return {?}\n */\n (some) => {\n if (!options) {\n options = this.options;\n }\n /** @type {?} */\n let temp = new FileLikeObject(some);\n if (this._isValidFile(temp, arrayOfFilters, options)) {\n /** @type {?} */\n let fileItem = new FileItem(this, some, options);\n addedFileItems.push(fileItem);\n this.queue.push(fileItem);\n this._onAfterAddingFile(fileItem);\n }\n else {\n /** @type {?} */\n let filter = arrayOfFilters[this._failFilterIndex];\n this._onWhenAddingFileFailed(temp, filter, options);\n }\n }));\n if (this.queue.length !== count) {\n this._onAfterAddingAll(addedFileItems);\n this.progress = this._getTotalProgress();\n }\n this._render();\n if (this.options.autoUpload) {\n this.uploadAll();\n }\n }\n /**\n * @param {?} value\n * @return {?}\n */\n removeFromQueue(value) {\n /** @type {?} */\n let index = this.getIndexOfItem(value);\n /** @type {?} */\n let item = this.queue[index];\n if (item.isUploading) {\n item.cancel();\n }\n this.queue.splice(index, 1);\n this.progress = this._getTotalProgress();\n }\n /**\n * @return {?}\n */\n clearQueue() {\n while (this.queue.length) {\n this.queue[0].remove();\n }\n this.progress = 0;\n }\n /**\n * @param {?} value\n * @return {?}\n */\n uploadItem(value) {\n /** @type {?} */\n let index = this.getIndexOfItem(value);\n /** @type {?} */\n let item = this.queue[index];\n /** @type {?} */\n let transport = this.options.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n item._prepareToUploading();\n if (this.isUploading) {\n return;\n }\n this.isUploading = true;\n ((/** @type {?} */ (this)))[transport](item);\n }\n /**\n * @param {?} value\n * @return {?}\n */\n cancelItem(value) {\n /** @type {?} */\n let index = this.getIndexOfItem(value);\n /** @type {?} */\n let item = this.queue[index];\n /** @type {?} */\n let prop = this.options.isHTML5 ? item._xhr : item._form;\n if (item && item.isUploading) {\n prop.abort();\n }\n }\n /**\n * @return {?}\n */\n uploadAll() {\n /** @type {?} */\n let items = this.getNotUploadedItems().filter((/**\n * @param {?} item\n * @return {?}\n */\n (item) => !item.isUploading));\n if (!items.length) {\n return;\n }\n items.map((/**\n * @param {?} item\n * @return {?}\n */\n (item) => item._prepareToUploading()));\n items[0].upload();\n }\n /**\n * @return {?}\n */\n cancelAll() {\n /** @type {?} */\n let items = this.getNotUploadedItems();\n items.map((/**\n * @param {?} item\n * @return {?}\n */\n (item) => item.cancel()));\n }\n /**\n * @param {?} value\n * @return {?}\n */\n isFile(value) {\n return isFile(value);\n }\n /**\n * @param {?} value\n * @return {?}\n */\n isFileLikeObject(value) {\n return value instanceof FileLikeObject;\n }\n /**\n * @param {?} value\n * @return {?}\n */\n getIndexOfItem(value) {\n return typeof value === 'number' ? value : this.queue.indexOf(value);\n }\n /**\n * @return {?}\n */\n getNotUploadedItems() {\n return this.queue.filter((/**\n * @param {?} item\n * @return {?}\n */\n (item) => !item.isUploaded));\n }\n /**\n * @return {?}\n */\n getReadyItems() {\n return this.queue\n .filter((/**\n * @param {?} item\n * @return {?}\n */\n (item) => (item.isReady && !item.isUploading)))\n .sort((/**\n * @param {?} item1\n * @param {?} item2\n * @return {?}\n */\n (item1, item2) => item1.index - item2.index));\n }\n /**\n * @return {?}\n */\n destroy() {\n return void 0;\n }\n /**\n * @param {?} fileItems\n * @return {?}\n */\n onAfterAddingAll(fileItems) {\n return { fileItems };\n }\n /**\n * @param {?} fileItem\n * @param {?} form\n * @return {?}\n */\n onBuildItemForm(fileItem, form) {\n return { fileItem, form };\n }\n /**\n * @param {?} fileItem\n * @return {?}\n */\n onAfterAddingFile(fileItem) {\n return { fileItem };\n }\n /**\n * @param {?} item\n * @param {?} filter\n * @param {?} options\n * @return {?}\n */\n onWhenAddingFileFailed(item, filter, options) {\n return { item, filter, options };\n }\n /**\n * @param {?} fileItem\n * @return {?}\n */\n onBeforeUploadItem(fileItem) {\n return { fileItem };\n }\n /**\n * @param {?} fileItem\n * @param {?} progress\n * @return {?}\n */\n onProgressItem(fileItem, progress) {\n return { fileItem, progress };\n }\n /**\n * @param {?} progress\n * @return {?}\n */\n onProgressAll(progress) {\n return { progress };\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onSuccessItem(item, response, status, headers) {\n return { item, response, status, headers };\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onErrorItem(item, response, status, headers) {\n return { item, response, status, headers };\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onCancelItem(item, response, status, headers) {\n return { item, response, status, headers };\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n onCompleteItem(item, response, status, headers) {\n return { item, response, status, headers };\n }\n /**\n * @return {?}\n */\n onCompleteAll() {\n return void 0;\n }\n /**\n * @param {?} item\n * @return {?}\n */\n _mimeTypeFilter(item) {\n return !(this.options.allowedMimeType && this.options.allowedMimeType.indexOf(item.type) === -1);\n }\n /**\n * @param {?} item\n * @return {?}\n */\n _fileSizeFilter(item) {\n return !(this.options.maxFileSize && item.size > this.options.maxFileSize);\n }\n /**\n * @param {?} item\n * @return {?}\n */\n _fileTypeFilter(item) {\n return !(this.options.allowedFileType &&\n this.options.allowedFileType.indexOf(FileType.getMimeClass(item)) === -1);\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onErrorItem(item, response, status, headers) {\n item._onError(response, status, headers);\n this.onErrorItem(item, response, status, headers);\n }\n /**\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onCompleteItem(item, response, status, headers) {\n item._onComplete(response, status, headers);\n this.onCompleteItem(item, response, status, headers);\n /** @type {?} */\n let nextItem = this.getReadyItems()[0];\n this.isUploading = false;\n if (nextItem) {\n nextItem.upload();\n return;\n }\n this.onCompleteAll();\n this.progress = this._getTotalProgress();\n this._render();\n }\n /**\n * @protected\n * @param {?} parsedHeaders\n * @return {?}\n */\n _headersGetter(parsedHeaders) {\n return (/**\n * @param {?} name\n * @return {?}\n */\n (name) => {\n if (name) {\n return parsedHeaders[name.toLowerCase()] || void 0;\n }\n return parsedHeaders;\n });\n }\n /**\n * @protected\n * @param {?} item\n * @return {?}\n */\n _xhrTransport(item) {\n /** @type {?} */\n let that = this;\n /** @type {?} */\n let xhr = item._xhr = new XMLHttpRequest();\n /** @type {?} */\n let sendable;\n this._onBeforeUploadItem(item);\n if (typeof item._file.size !== 'number') {\n throw new TypeError('The file specified is no longer valid');\n }\n if (!this.options.disableMultipart) {\n sendable = new FormData();\n this._onBuildItemForm(item, sendable);\n /** @type {?} */\n const appendFile = (/**\n * @return {?}\n */\n () => sendable.append(item.alias, item._file, item.file.name));\n if (!this.options.parametersBeforeFiles) {\n appendFile();\n }\n // For AWS, Additional Parameters must come BEFORE Files\n if (this.options.additionalParameter !== undefined) {\n Object.keys(this.options.additionalParameter).forEach((/**\n * @param {?} key\n * @return {?}\n */\n (key) => {\n /** @type {?} */\n let paramVal = this.options.additionalParameter[key];\n // Allow an additional parameter to include the filename\n if (typeof paramVal === 'string' && paramVal.indexOf('{{file_name}}') >= 0) {\n paramVal = paramVal.replace('{{file_name}}', item.file.name);\n }\n sendable.append(key, paramVal);\n }));\n }\n if (this.options.parametersBeforeFiles) {\n appendFile();\n }\n }\n else {\n sendable = this.options.formatDataFunction(item);\n }\n xhr.upload.onprogress = (/**\n * @param {?} event\n * @return {?}\n */\n (event) => {\n /** @type {?} */\n let progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n this._onProgressItem(item, progress);\n });\n xhr.onload = (/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n /** @type {?} */\n let response = this._transformResponse(xhr.response, headers);\n /** @type {?} */\n let gist = this._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n /** @type {?} */\n let method = '_on' + gist + 'Item';\n ((/** @type {?} */ (this)))[method](item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n });\n xhr.onerror = (/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n /** @type {?} */\n let response = this._transformResponse(xhr.response, headers);\n this._onErrorItem(item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n });\n xhr.onabort = (/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n /** @type {?} */\n let response = this._transformResponse(xhr.response, headers);\n this._onCancelItem(item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n });\n xhr.open(item.method, item.url, true);\n xhr.withCredentials = item.withCredentials;\n if (this.options.headers) {\n for (let header of this.options.headers) {\n xhr.setRequestHeader(header.name, header.value);\n }\n }\n if (item.headers.length) {\n for (let header of item.headers) {\n xhr.setRequestHeader(header.name, header.value);\n }\n }\n if (this.authToken) {\n xhr.setRequestHeader(this.authTokenHeader, this.authToken);\n }\n xhr.onreadystatechange = (/**\n * @return {?}\n */\n function () {\n if (xhr.readyState == XMLHttpRequest.DONE) {\n that.response.emit(xhr.responseText);\n }\n });\n if (this.options.formatDataFunctionIsAsync) {\n sendable.then((/**\n * @param {?} result\n * @return {?}\n */\n (result) => xhr.send(JSON.stringify(result))));\n }\n else {\n xhr.send(sendable);\n }\n this._render();\n }\n /**\n * @protected\n * @param {?=} value\n * @return {?}\n */\n _getTotalProgress(value = 0) {\n if (this.options.removeAfterUpload) {\n return value;\n }\n /** @type {?} */\n let notUploaded = this.getNotUploadedItems().length;\n /** @type {?} */\n let uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n /** @type {?} */\n let ratio = 100 / this.queue.length;\n /** @type {?} */\n let current = value * ratio / 100;\n return Math.round(uploaded * ratio + current);\n }\n /**\n * @protected\n * @param {?} filters\n * @return {?}\n */\n _getFilters(filters) {\n if (!filters) {\n return this.options.filters;\n }\n if (Array.isArray(filters)) {\n return filters;\n }\n if (typeof filters === 'string') {\n /** @type {?} */\n let names = filters.match(/[^\\s,]+/g);\n return this.options.filters\n .filter((/**\n * @param {?} filter\n * @return {?}\n */\n (filter) => names.indexOf(filter.name) !== -1));\n }\n return this.options.filters;\n }\n /**\n * @protected\n * @return {?}\n */\n _render() {\n return void 0;\n }\n /**\n * @protected\n * @return {?}\n */\n _queueLimitFilter() {\n return this.options.queueLimit === undefined || this.queue.length < this.options.queueLimit;\n }\n /**\n * @protected\n * @param {?} file\n * @param {?} filters\n * @param {?} options\n * @return {?}\n */\n _isValidFile(file, filters, options) {\n this._failFilterIndex = -1;\n return !filters.length ? true : filters.every((/**\n * @param {?} filter\n * @return {?}\n */\n (filter) => {\n this._failFilterIndex++;\n return filter.fn.call(this, file, options);\n }));\n }\n /**\n * @protected\n * @param {?} status\n * @return {?}\n */\n _isSuccessCode(status) {\n return (status >= 200 && status < 300) || status === 304;\n }\n /**\n * @protected\n * @param {?} response\n * @param {?} headers\n * @return {?}\n */\n _transformResponse(response, headers) {\n return response;\n }\n /**\n * @protected\n * @param {?} headers\n * @return {?}\n */\n _parseHeaders(headers) {\n /** @type {?} */\n let parsed = {};\n /** @type {?} */\n let key;\n /** @type {?} */\n let val;\n /** @type {?} */\n let i;\n if (!headers) {\n return parsed;\n }\n headers.split('\\n').map((/**\n * @param {?} line\n * @return {?}\n */\n (line) => {\n i = line.indexOf(':');\n key = line.slice(0, i).trim().toLowerCase();\n val = line.slice(i + 1).trim();\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }));\n return parsed;\n }\n /**\n * @protected\n * @param {?} item\n * @param {?} filter\n * @param {?} options\n * @return {?}\n */\n _onWhenAddingFileFailed(item, filter, options) {\n this.onWhenAddingFileFailed(item, filter, options);\n }\n /**\n * @protected\n * @param {?} item\n * @return {?}\n */\n _onAfterAddingFile(item) {\n this.onAfterAddingFile(item);\n }\n /**\n * @protected\n * @param {?} items\n * @return {?}\n */\n _onAfterAddingAll(items) {\n this.onAfterAddingAll(items);\n }\n /**\n * @protected\n * @param {?} item\n * @return {?}\n */\n _onBeforeUploadItem(item) {\n item._onBeforeUpload();\n this.onBeforeUploadItem(item);\n }\n /**\n * @protected\n * @param {?} item\n * @param {?} form\n * @return {?}\n */\n _onBuildItemForm(item, form) {\n item._onBuildForm(form);\n this.onBuildItemForm(item, form);\n }\n /**\n * @protected\n * @param {?} item\n * @param {?} progress\n * @return {?}\n */\n _onProgressItem(item, progress) {\n /** @type {?} */\n let total = this._getTotalProgress(progress);\n this.progress = total;\n item._onProgress(progress);\n this.onProgressItem(item, progress);\n this.onProgressAll(total);\n this._render();\n }\n /**\n * @protected\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onSuccessItem(item, response, status, headers) {\n item._onSuccess(response, status, headers);\n this.onSuccessItem(item, response, status, headers);\n }\n /**\n * @protected\n * @param {?} item\n * @param {?} response\n * @param {?} status\n * @param {?} headers\n * @return {?}\n */\n _onCancelItem(item, response, status, headers) {\n item._onCancel(response, status, headers);\n this.onCancelItem(item, response, status, headers);\n }\n}\nif (false) {\n /** @type {?} */\n FileUploader.prototype.authToken;\n /** @type {?} */\n FileUploader.prototype.isUploading;\n /** @type {?} */\n FileUploader.prototype.queue;\n /** @type {?} */\n FileUploader.prototype.progress;\n /** @type {?} */\n FileUploader.prototype._nextIndex;\n /** @type {?} */\n FileUploader.prototype.autoUpload;\n /** @type {?} */\n FileUploader.prototype.authTokenHeader;\n /** @type {?} */\n FileUploader.prototype.response;\n /** @type {?} */\n FileUploader.prototype.options;\n /**\n * @type {?}\n * @protected\n */\n FileUploader.prototype._failFilterIndex;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FileSelectDirective {\n /**\n * @param {?} element\n */\n constructor(element) {\n this.onFileSelected = new EventEmitter();\n this.element = element;\n }\n /**\n * @return {?}\n */\n getOptions() {\n return this.uploader.options;\n }\n /**\n * @return {?}\n */\n getFilters() {\n return {};\n }\n /**\n * @return {?}\n */\n isEmptyAfterSelection() {\n return !!this.element.nativeElement.attributes.multiple;\n }\n /**\n * @return {?}\n */\n onChange() {\n /** @type {?} */\n let files = this.element.nativeElement.files;\n /** @type {?} */\n let options = this.getOptions();\n /** @type {?} */\n let filters = this.getFilters();\n this.uploader.addToQueue(files, options, filters);\n this.onFileSelected.emit(files);\n if (this.isEmptyAfterSelection()) {\n this.element.nativeElement.value = '';\n }\n }\n}\nFileSelectDirective.ɵfac = function FileSelectDirective_Factory(t) { return new (t || FileSelectDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef)); };\nFileSelectDirective.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: FileSelectDirective, selectors: [[\"\", \"ng2FileSelect\", \"\"]], hostBindings: function FileSelectDirective_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"change\", function FileSelectDirective_change_HostBindingHandler() { return ctx.onChange(); });\n } }, inputs: { uploader: \"uploader\" }, outputs: { onFileSelected: \"onFileSelected\" } });\n/** @nocollapse */\nFileSelectDirective.ctorParameters = () => [\n { type: ElementRef }\n];\nFileSelectDirective.propDecorators = {\n uploader: [{ type: Input }],\n onFileSelected: [{ type: Output }],\n onChange: [{ type: HostListener, args: ['change',] }]\n};\n/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(FileSelectDirective, [{\n type: Directive,\n args: [{ selector: '[ng2FileSelect]' }]\n }], function () { return [{ type: ɵngcc0.ElementRef }]; }, { onFileSelected: [{\n type: Output\n }], \n /**\n * @return {?}\n */\n onChange: [{\n type: HostListener,\n args: ['change']\n }], uploader: [{\n type: Input\n }] }); })();\nif (false) {\n /** @type {?} */\n FileSelectDirective.prototype.uploader;\n /** @type {?} */\n FileSelectDirective.prototype.onFileSelected;\n /**\n * @type {?}\n * @protected\n */\n FileSelectDirective.prototype.element;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FileDropDirective {\n /**\n * @param {?} element\n */\n constructor(element) {\n this.fileOver = new EventEmitter();\n this.onFileDrop = new EventEmitter();\n this.element = element;\n }\n /**\n * @return {?}\n */\n getOptions() {\n return this.uploader.options;\n }\n /**\n * @return {?}\n */\n getFilters() {\n return {};\n }\n /**\n * @param {?} event\n * @return {?}\n */\n onDrop(event) {\n /** @type {?} */\n let transfer = this._getTransfer(event);\n if (!transfer) {\n return;\n }\n /** @type {?} */\n let options = this.getOptions();\n /** @type {?} */\n let filters = this.getFilters();\n this._preventAndStop(event);\n this.uploader.addToQueue(transfer.files, options, filters);\n this.fileOver.emit(false);\n this.onFileDrop.emit(transfer.files);\n }\n /**\n * @param {?} event\n * @return {?}\n */\n onDragOver(event) {\n /** @type {?} */\n let transfer = this._getTransfer(event);\n if (!this._haveFiles(transfer.types)) {\n return;\n }\n transfer.dropEffect = 'copy';\n this._preventAndStop(event);\n this.fileOver.emit(true);\n }\n /**\n * @param {?} event\n * @return {?}\n */\n onDragLeave(event) {\n if (((/** @type {?} */ (this))).element) {\n if (event.currentTarget === ((/** @type {?} */ (this))).element[0]) {\n return;\n }\n }\n this._preventAndStop(event);\n this.fileOver.emit(false);\n }\n /**\n * @protected\n * @param {?} event\n * @return {?}\n */\n _getTransfer(event) {\n return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; // jQuery fix;\n }\n /**\n * @protected\n * @param {?} event\n * @return {?}\n */\n _preventAndStop(event) {\n event.preventDefault();\n event.stopPropagation();\n }\n /**\n * @protected\n * @param {?} types\n * @return {?}\n */\n _haveFiles(types) {\n if (!types) {\n return false;\n }\n if (types.indexOf) {\n return types.indexOf('Files') !== -1;\n }\n else if (types.contains) {\n return types.contains('Files');\n }\n else {\n return false;\n }\n }\n}\nFileDropDirective.ɵfac = function FileDropDirective_Factory(t) { return new (t || FileDropDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef)); };\nFileDropDirective.ɵdir = ɵngcc0.ɵɵdefineDirective({ type: FileDropDirective, selectors: [[\"\", \"ng2FileDrop\", \"\"]], hostBindings: function FileDropDirective_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"drop\", function FileDropDirective_drop_HostBindingHandler($event) { return ctx.onDrop($event); })(\"dragover\", function FileDropDirective_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })(\"dragleave\", function FileDropDirective_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });\n } }, inputs: { uploader: \"uploader\" }, outputs: { fileOver: \"fileOver\", onFileDrop: \"onFileDrop\" } });\n/** @nocollapse */\nFileDropDirective.ctorParameters = () => [\n { type: ElementRef }\n];\nFileDropDirective.propDecorators = {\n uploader: [{ type: Input }],\n fileOver: [{ type: Output }],\n onFileDrop: [{ type: Output }],\n onDrop: [{ type: HostListener, args: ['drop', ['$event'],] }],\n onDragOver: [{ type: HostListener, args: ['dragover', ['$event'],] }],\n onDragLeave: [{ type: HostListener, args: ['dragleave', ['$event'],] }]\n};\n/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(FileDropDirective, [{\n type: Directive,\n args: [{ selector: '[ng2FileDrop]' }]\n }], function () { return [{ type: ɵngcc0.ElementRef }]; }, { fileOver: [{\n type: Output\n }], onFileDrop: [{\n type: Output\n }], \n /**\n * @param {?} event\n * @return {?}\n */\n onDrop: [{\n type: HostListener,\n args: ['drop', ['$event']]\n }], \n /**\n * @param {?} event\n * @return {?}\n */\n onDragOver: [{\n type: HostListener,\n args: ['dragover', ['$event']]\n }], \n /**\n * @param {?} event\n * @return {?}\n */\n onDragLeave: [{\n type: HostListener,\n args: ['dragleave', ['$event']]\n }], uploader: [{\n type: Input\n }] }); })();\nif (false) {\n /** @type {?} */\n FileDropDirective.prototype.uploader;\n /** @type {?} */\n FileDropDirective.prototype.fileOver;\n /** @type {?} */\n FileDropDirective.prototype.onFileDrop;\n /**\n * @type {?}\n * @protected\n */\n FileDropDirective.prototype.element;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FileUploadModule {\n}\nFileUploadModule.ɵmod = ɵngcc0.ɵɵdefineNgModule({ type: FileUploadModule });\nFileUploadModule.ɵinj = ɵngcc0.ɵɵdefineInjector({ factory: function FileUploadModule_Factory(t) { return new (t || FileUploadModule)(); }, imports: [[CommonModule]] });\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FileUploadModule, { declarations: function () { return [FileDropDirective, FileSelectDirective]; }, imports: function () { return [CommonModule]; }, exports: function () { return [FileDropDirective, FileSelectDirective]; } }); })();\n/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(FileUploadModule, [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [FileDropDirective, FileSelectDirective],\n exports: [FileDropDirective, FileSelectDirective]\n }]\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FileDropDirective, FileItem, FileLikeObject, FileSelectDirective, FileUploadModule, FileUploader };\n\n//# sourceMappingURL=ng2-file-upload.js.map","import { NgModule } from '@angular/core';\r\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\r\nimport { MaterialPersianDateAdapter, PERSIAN_DATE_FORMATS } from './material.persian-date.adapter';\r\n\r\n@NgModule({\r\n providers: [\r\n { provide: DateAdapter, useClass: MaterialPersianDateAdapter, deps: [MAT_DATE_LOCALE] },\r\n { provide: MAT_DATE_FORMATS, useValue: PERSIAN_DATE_FORMATS }\r\n ]\r\n})\r\nexport class SharedPdateModule { }\r\n","\r\nimport { DateAdapter } from \"@angular/material/core\";\r\nimport * as jalaliMoment from \"jalali-moment\";\r\n\r\nexport const PERSIAN_DATE_FORMATS = {\r\n parse: {\r\n dateInput: \"jYYYY/jMM/jDD\"\r\n },\r\n display: {\r\n dateInput: \"jYYYY/jMM/jDD\",\r\n monthYearLabel: \"jYYYY jMMMM\",\r\n dateA11yLabel: \"jYYYY/jMM/jDD\",\r\n monthYearA11yLabel: \"jYYYY jMMMM\"\r\n }\r\n};\r\n\r\nexport class MaterialPersianDateAdapter extends DateAdapter {\r\n\r\n constructor() {\r\n super();\r\n super.setLocale(\"fa\");\r\n }\r\n\r\n getYear(date: jalaliMoment.Moment): number {\r\n return this.clone(date).jYear();\r\n }\r\n\r\n getMonth(date: jalaliMoment.Moment): number {\r\n return this.clone(date).jMonth();\r\n }\r\n\r\n getDate(date: jalaliMoment.Moment): number {\r\n return this.clone(date).jDate();\r\n }\r\n\r\n getDayOfWeek(date: jalaliMoment.Moment): number {\r\n return this.clone(date).day();\r\n }\r\n\r\n getMonthNames(style: \"long\" | \"short\" | \"narrow\"): string[] {\r\n switch (style) {\r\n case \"long\":\r\n case \"short\":\r\n return jalaliMoment.localeData(\"fa\").jMonths().slice(0);\r\n case \"narrow\":\r\n return jalaliMoment.localeData(\"fa\").jMonthsShort().slice(0);\r\n }\r\n }\r\n\r\n getDateNames(): string[] {\r\n const valuesArray = Array(31);\r\n for (let i = 0; i < 31; i++) {\r\n valuesArray[i] = String(i + 1);\r\n }\r\n return valuesArray;\r\n }\r\n\r\n getDayOfWeekNames(style: \"long\" | \"short\" | \"narrow\"): string[] {\r\n switch (style) {\r\n case \"long\":\r\n return jalaliMoment.localeData(\"fa\").weekdays().slice(0);\r\n case \"short\":\r\n return jalaliMoment.localeData(\"fa\").weekdaysShort().slice(0);\r\n case \"narrow\":\r\n return [\"ی\", \"د\", \"س\", \"چ\", \"پ\", \"ج\", \"ش\"];\r\n }\r\n }\r\n\r\n getYearName(date: jalaliMoment.Moment): string {\r\n return this.clone(date).jYear().toString();\r\n }\r\n\r\n getFirstDayOfWeek(): number {\r\n return jalaliMoment.localeData(\"fa\").firstDayOfWeek();\r\n }\r\n\r\n getNumDaysInMonth(date: jalaliMoment.Moment): number {\r\n return this.clone(date).jDaysInMonth();\r\n }\r\n\r\n clone(date: jalaliMoment.Moment): jalaliMoment.Moment {\r\n return date.clone().locale(\"fa\");\r\n }\r\n\r\n createDate(year: number, month: number, date: number): jalaliMoment.Moment {\r\n if (month < 0 || month > 11) {\r\n throw Error(\r\n `Invalid month index \"${month}\". Month index has to be between 0 and 11.`\r\n );\r\n }\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\r\n }\r\n const result = jalaliMoment()\r\n .jYear(year).jMonth(month).jDate(date)\r\n .hours(0).minutes(0).seconds(0).milliseconds(0)\r\n .locale(\"fa\");\r\n\r\n if (this.getMonth(result) !== month) {\r\n throw Error(`Invalid date ${date} for month with index ${month}.`);\r\n }\r\n if (!result.isValid()) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\r\n }\r\n return result;\r\n }\r\n\r\n today(): jalaliMoment.Moment {\r\n return jalaliMoment().locale(\"fa\");\r\n }\r\n\r\n parse(value: any, parseFormat: string | string[]): jalaliMoment.Moment | null {\r\n if (value && typeof value === \"string\") {\r\n return jalaliMoment(value, parseFormat, \"fa\");\r\n }\r\n return value ? jalaliMoment(value).locale(\"fa\") : null;\r\n }\r\n\r\n format(date: jalaliMoment.Moment, displayFormat: string): string {\r\n date = this.clone(date);\r\n if (!this.isValid(date)) {\r\n throw Error(\"JalaliMomentDateAdapter: Cannot format invalid date.\");\r\n }\r\n return date.format(displayFormat);\r\n }\r\n\r\n addCalendarYears(date: jalaliMoment.Moment, years: number): jalaliMoment.Moment {\r\n return this.clone(date).add(years, \"jYear\");\r\n }\r\n\r\n addCalendarMonths(date: jalaliMoment.Moment, months: number): jalaliMoment.Moment {\r\n return this.clone(date).add(months, \"jmonth\");\r\n }\r\n\r\n addCalendarDays(date: jalaliMoment.Moment, days: number): jalaliMoment.Moment {\r\n return this.clone(date).add(days, \"jDay\");\r\n }\r\n\r\n toIso8601(date: jalaliMoment.Moment): string {\r\n return this.clone(date).format();\r\n }\r\n\r\n isDateInstance(obj: any): boolean {\r\n return jalaliMoment.isMoment(obj);\r\n }\r\n\r\n isValid(date: jalaliMoment.Moment): boolean {\r\n return this.clone(date).isValid();\r\n }\r\n\r\n invalid(): jalaliMoment.Moment {\r\n return jalaliMoment.invalid();\r\n }\r\n\r\n deserialize(value: any): jalaliMoment.Moment | null {\r\n let date;\r\n if (value instanceof Date) {\r\n date = jalaliMoment(value);\r\n }\r\n if (typeof value === \"string\") {\r\n if (!value) {\r\n return null;\r\n }\r\n date = jalaliMoment(value).locale(\"fa\");\r\n }\r\n if (date && this.isValid(date)) {\r\n return date;\r\n }\r\n return super.deserialize(value);\r\n }\r\n}"],"sourceRoot":"webpack:///"}