/*
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(n){"use strict";const r=null;function e(n){return null!=n}function u(n){return null==n}function t(n){return void 0===n}function o(n,u){return e(n)?u(n):r}function l(n){return n}function i(n,r){if(u(n))throw new Error(r);return n}function f(n,r){return e(n)?n:"function"==typeof r?r():r}function c(n,r){return e(n)?n:r}function s(n){return e(n)&&n.destroy(),null}function a(n){return e(n)&&n.dispose(),null}function p(n){return e(n)&&n.remove(),null}function y(n){return e(n)&&n.abort(),null}function m(n){return e(n)&&n.release(),null}function b(n,r,u){return e(n)&&e(r)?e(u)?u(n,r):n.equals(r):n===r}function d(n){return null}function w(n,r){const u=new Array;return n.forEach((n=>{const t=r(n);e(t)&&u.push(t)})),u}function M(n,r){const e=new Array;for(const u of n)e.push(S(u,null,r));return e}function h(n,r){for(const e of n)o(e,r)}function S(n,r,u){return e(n)?u(n):r}function v(n,r){for(const u of n){const n=r(u);if(e(n))return n}return null}function N(n){return n.filter((n=>e(n)))}function O(n,...r){let e=n;for(let u=0;u<r.length&&e;++u)e=e[r[u]];return e}function g(n){return n}n.abortMaybe=y,n.applySome=o,n.assumeNonNull=g,n.destroyMaybe=s,n.disposeMaybe=a,n.equalsMaybe=b,n.filterNones=N,n.forEachSome=h,n.get=O,n.isNone=u,n.isSome=e,n.isUndefined=t,n.mapMany=M,n.mapOr=S,n.mapSome=w,n.mapSomeFirst=v,n.none=r,n.nullifyNonnullableForDispose=d,n.releaseMaybe=m,n.removeMaybe=p,n.unwrap=l,n.unwrapOr=f,n.unwrapOrThrow=i,n.unwrapOrValue=c,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
