/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports"],(function(t){"use strict";function e(t){var e,r,o,u=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,o=Symbol.iterator);u--;){if(r&&null!=(e=t[r]))return e.call(t);if(o&&null!=(e=t[o]))return new n(e.call(t));r="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function n(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return n=function(t){this.s=t,this.n=t.next},n.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new n(t)}function r(t){this.wrapped=t}function o(t){var e,n;function o(t,r){return new Promise((function(o,i){var c={key:t,arg:r,resolve:o,reject:i,next:null};n?n=n.next=c:(e=n=c,u(t,r))}))}function u(e,n){try{var o=t[e](n),c=o.value,a=c instanceof r;Promise.resolve(a?c.wrapped:c).then((function(t){a?u("return"===e?"return":"next",t):i(o.done?"return":"normal",t)}),(function(t){u("throw",t)}))}catch(f){i("throw",f)}}function i(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?u(e.key,e.arg):n=null}this._invoke=o,"function"!=typeof t.return&&(this.return=void 0)}function u(t){return function(){return new o(t.apply(this,arguments))}}function i(t){return new r(t)}function c(t,e,n,r,o,u,i){try{var c=t[u](i),a=c.value}catch(f){return void n(f)}c.done?e(a):Promise.resolve(a).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var u=t.apply(e,n);function i(t){c(u,r,o,i,a,"next",t)}function a(t){c(u,r,o,i,a,"throw",t)}i(void 0)}))}}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,y(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function h(t,e,n){return h=v()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&y(o,n.prototype),o},h.apply(null,arguments)}function b(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||!b(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return h(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,t)},d(t)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(t){return this._invoke("next",t)},o.prototype.throw=function(t){return this._invoke("throw",t)},o.prototype.return=function(t){return this._invoke("return",t)},t._assertThisInitialized=w,t._asyncIterator=e,t._asyncToGenerator=a,t._awaitAsyncGenerator=i,t._createClass=s,t._inheritsLoose=l,t._wrapAsyncGenerator=u,t._wrapNativeSuper=d}));
