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E,gCAAgC,oCAAoC,mCAAmC,qEAAqE,mCAAmC,WAAW,KAAK,oCAAoC,eAAe,kCAAkC,4BAA4B,OAAO,4DAA4D,GAAG,qBAAqB,2CAA2C,GAAG,+CAA+C,GAAG,yCAAyC,WAAW,oCAAoC,gCAAgC,GAAG,6CAA6C,WAAW,oCAAoC,oCAAoC,GAAG,0CAA0C,WAAW,oCAAoC,sCAAsC,GAAG,6CAA6C,WAAW,oCAAoC,wCAAwC,GAAG,uCAAuC,WAAW,oCAAoC,yCAAyC,GAAG,gDAAgD,WAAW,oCAAoC,iDAAiD,GAAG,qDAAqD,WAAW,oCAAoC,yDAAyD,GAAG,uCAAuC,kDAAkD,UAAU,uCAAuC,gBAAgB,uEAAuE,0EAA0E,0CAA0C,yBAAyB,GAAG,UAAU,IAAI,mDAAmD,uIAAuI,WAAW,GAAG,GAAG,2CAA2C,gCAAgC,oBAAoB,aAAa,0CAA0C,kCAAkC,8CAA8C,kDAAkD,sBAAsB,uCAAuC,gBAAgB,wGAAwG,kFAAkF,qIAAqI,+BAA+B,uGAAuG,wDAAwD,GAAG,GAAG,wCAAwC,WAAW,4FAA4F,6CAA6C,+BAA+B,0BAA0B,qCAAqC,GAAG,sDAAsD,0BAA0B,kBAAkB,GAAG,4CAA4C,0CAA0C,OAAO,ikBAAikB,kDAAkD,oCAAoC,gCAAgC,OAAO,yGAAyG,YAAY,QAAQ,wDAAwD,yGAAyG,OAAO,kFAAkF,OAAO,GAAG,qDAAqD,iEAAiE,qBAAqB,WAAW,0CAA0C,SAAS,iDAAiD,iBAAiB,EAAE,oEAAoE,+BAA+B,KAAK,kDAAkD,qCAAqC,SAAS,SAAS,WAAW,SAAS,+CAA+C,EAAE,kFAAkF,iBAAiB,yDAAyD,uFAAuF,mHAAmH,IAAI,YAAY;AAAA,oGAAE,C","file":"js/chunk-2d0ab6db.568de8e9.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../request\",\"../../../core/Error\",\"../../../core/has\",\"../../../core/lang\",\"../../../core/Loadable\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/SetUtils\",\"../../../core/urlUtils\",\"../../../core/accessorSupport/decorators\",\"../../../tasks/QueryTask\",\"../../../tasks/operations/queryAttachments\",\"../../../tasks/operations/zscale\"],(function(e,t,r,a,n,s,u,o,i,l,c,d,p,h,y,f){\"use strict\";function m(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return\"string\"==typeof e?[2,d.dataComponents(e)||{data:e}]:[2,l.create((function(t,r){var a=new FileReader;a.readAsDataURL(e),a.onload=function(){return t(d.dataComponents(a.result))},a.onerror=function(e){return r(e)}}))]}))}))}Object.defineProperty(t,\"__esModule\",{value:!0});var _=c.SetFromValues([\"Feature Layer\",\"Table\"]),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=\"feature-layer\",t}return r.__extends(t,e),t.prototype.load=function(e){var t=i.isSome(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),l.resolve(this)},Object.defineProperty(t.prototype,\"queryTask\",{get:function(){var e=this.layer,t=e.capabilities.query.supportsFormatPBF,r=e.parsedUrl,a=e.dynamicDataSource,n=e.gdbVersion,u=e.spatialReference,o=s(\"featurelayer-pbf\")&&t?\"pbf\":\"json\";return new h({url:r.path,format:o,dynamicDataSource:a,gdbVersion:n,sourceSpatialReference:u})},enumerable:!1,configurable:!0}),t.prototype.addAttachment=function(e,t){var r=this;return this.load().then((function(){var n=e.attributes[r.layer.objectIdField],s=r.layer.parsedUrl.path+\"/\"+n+\"/addAttachment\",u=r._getLayerRequestOptions(),o=r._getFormDataForAttachment(t,u.query);return a(s,{body:o}).then((function(e){return r._createFeatureEditResult(e.data.addAttachmentResult)})).catch((function(e){throw r._createAttachmentErrorResult(n,e)}))}))},t.prototype.updateAttachment=function(e,t,r){var n=this;return this.load().then((function(){var s=e.attributes[n.layer.objectIdField],u=n.layer.parsedUrl.path+\"/\"+s+\"/updateAttachment\",o=n._getLayerRequestOptions({query:{attachmentId:t}}),i=n._getFormDataForAttachment(r,o.query);return a(u,{body:i}).then((function(e){return n._createFeatureEditResult(e.data.updateAttachmentResult)})).catch((function(e){throw n._createAttachmentErrorResult(s,e)}))}))},t.prototype.applyEdits=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,s,u,o,i,l,c,d,p,h,y,m,_,b,g,v,F,R;return r.__generator(this,(function(I){switch(I.label){case 0:return[4,this.load()];case 1:I.sent(),n=e.addFeatures.map(this._serializeFeature,this),s=e.updateFeatures.map(this._serializeFeature,this),u=this._getFeatureIds(e.deleteFeatures),f.unapplyEditsZUnitScaling(n,s,this.layer.spatialReference),o=[],i=[],l=r.__spreadArrays(e.deleteAttachments),c=0,d=e.addAttachments,I.label=2;case 2:return c