/*

Based off glamor's StyleSheet, thanks Sunil ❤️

high performance StyleSheet for css-in-js systems

- uses multiple style tags behind the scenes for millions of rules
- uses `insertRule` for appending in production for *much* faster performance

// usage

import { StyleSheet } from '@emotion/sheet'

let styleSheet = new StyleSheet({ key: '', container: document.head })

styleSheet.insert('#box { border: 1px solid red; }')
- appends a css rule into the stylesheet

styleSheet.flush()
- empties the stylesheet of all its contents

*/

/*
  options.target         - name of the target object
  options.global         - target is the global object
  options.stat           - export as static methods of target
  options.proto          - export as prototype methods of target
  options.real           - real prototype method for the `pure` version
  options.forced         - export even if the native feature is available
  options.bind           - bind methods to the target, required for the `pure` version
  options.wrap           - wrap constructors to preventing global pollution, required for the `pure` version
  options.unsafe         - use the simple assignment of property instead of delete + defineProperty
  options.sham           - add a flag to not completely full polyfills
  options.enumerable     - export as enumerable property
  options.dontCallGetSet - prevent calling a getter on target
  options.name           - the .name of the function if it does not match the key
*/

/*
 Modernizr 3.0.0pre (Custom Build) | MIT
*/

/*
if (module.hot) {
  module.hot.accept('./App', () => {
    require('./App').default()
  })
}*/

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/* #__PURE__ */

/* , ...args */

/* , ...arguments */

/* , ...items */

/* , endPosition = @length */

/* , fromIndex = 0 */

/* , init */

/* , initialValue */

/* , mapfn = undefined, thisArg = undefined */

/* , newTarget */

/* , position = 0 */

/* , that = undefined */

/* , thisArg */

/* , value */

/* . */

/* .ErrorBox */

/* .ErrorType */

/* .FieldId */

/* .KSSOError */

/* .LegalBackendActions */

/* .N200 */

/* .Platform */

/* .Protocol */

/* .ProvisioningMethod */

/* .Retryer */

/* .Router */

/* .StepContainer */

/* .Subscribable */

/* .__RouterContext */

/* .createAndHandleError */

/* .createBrowserHistory */

/* .createLocation */

/* .createPath */

/* .css */

/* .defaultPoliciesForJitDisabled */

/* .defaultPoliciesForJitEnabled */

/* .focusManager */

/* .fontFamily */

/* .getDefaultUserProvisioningPolicies */

/* .getKindByPath */

/* .getLogger */

/* .getNextStepInSteps */

/* .getPathByKind */

/* .getPreviousStepInSteps */

/* .getProtocol */

/* .getProtocolPath */

/* .getProvisioningFromPath */

/* .getProvisioningPath */

/* .getStep */

/* .getStepList */

/* .gridSize */

/* .h200 */

/* .heading */

/* .isServer */

/* .jsx */

/* .matchPath */

/* .noop */

/* .notifyManager */

/* .onlineManager */

/* .post */

/* .scheduleMicrotask */

/* .sleep */

/* .subtleHeading */

/* .useAnalyticsEvents */

/* .useGlobalTheme */

/* .useHistory */

/* .useRouteMatch */

/* .useTrackedRef */

/* .useUrlParams */

/* B100 */

/* B200 */

/* B300 */

/* B400 */

/* B50 */

/* B500 */

/* B75 */

/* BrowserRouter */

/* Built-in method references that are verified to be native. */

/* CHANNEL */

/* COLOR_MODE_ATTRIBUTE */

/* CommonActionTypes */

/* Controller */

/* DEFAULT_THEME_MODE */

/* DN0 */

/* DN10 */

/* DN100 */

/* DN20 */

/* DN200 */

/* DN30 */

/* DN300 */

/* DN40 */

/* DN400 */

/* DN500 */

/* DN60 */

/* DN600 */

/* DN70 */

/* DN90 */

/* DN900 */

/* ErrorBoundary */

/* ErrorBox */

/* ErrorMessage */

/* ErrorType */

/* G400 */

/* HelperMessage */

/* KSSOError */

/* Kind */

/* LegalBackendActions */

/* Math.imul(h, m): */

/* Math.imul(k, m): */

/* Modal */

/* Mutation */

/* N10 */

/* N100 */

/* N20 */

/* N200 */

/* N20A */

/* N30 */

/* N300 */

/* N30A */

/* N40 */

/* N400 */

/* N500 */

/* N70 */

/* N700 */

/* N800 */

/* N90 */

/* N900 */

/* OidcActionTypes */

/* Platform */

/* Previously, defaultValue was being set as undefined in Field.defaultProps, which
         * effectively made it an optional prop to external consumers of Field. However the
         * prop types defined defaultValue as required, so inside the component it was not
         * valid for defaultValue to be undefined. We need to suppress the error
         * after changing defaultValue to explictly be an optional prop.
         * If default value has changed we are using new default value.
         * Otherwise we need to check if we already have value for this field
         * (because we are using changing key prop to re-run field level validation, and that
         * cause the component re-mounting) to not override the actual value with the default value.
         */

/* Protocol */

/* ProvisioningMethod */

/* R100 */

/* R300 */

/* R400 */

/* R500 */

/* R75 */

/* Retryer */

/* Route */

/* STANDARD_HEADERS */

/* SamlActionTypes */

/* StepContainer */

/* SubmitStatus */

/* Subscribable */

/* Switch */

/* THEME_DATA_ATTRIBUTE */

/* THEME_MODES */

/* TOKEN_NOT_FOUND_CSS_VAR */

/* TestStep */

/* UserActivatePolicy */

/* UserNotFoundPolicy */

/* UserUpdatePolicy */

/* Y200 */

/* Y300 */

/* Y400 */

/* Y500 */

/* Z+1 */

/* ["default"] */

/* appendErrors */

/* binding */

/* borderRadius */

/* clearQueryClient */

/* codeFontFamily */

/* combineClass */

/* commonSVGStyles */

/* createAndHandleError */

/* createPath */

/* createTheme */

/* css */

/* default */

/* empty */

/* ensureQueryKeyArray */

/* eslint-disable */

/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */

/* eslint-disable @repo/internal/styles/no-nested-styles */

/* eslint-disable es/no-array-prototype-keys -- safe */

/* eslint-disable es/no-object-getownpropertynames -- safe */

/* eslint-disable es/no-string-prototype-matchall -- safe */

/* eslint-disable es/no-symbol -- required for testing */

/* eslint-disable es/no-symbol -- safe */

/* eslint-disable no-proto -- safe */

/* eslint-disable no-self-assign -- prototype methods protection */

/* eslint-disable no-unused-vars */

/* eslint-disable prefer-rest-params */

/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */

/* eslint-disable regexp/no-useless-quantifier -- testing */

/* eslint-disable-next-line jsx-a11y/anchor-has-content */

/* eslint-enable no-self-assign -- prototype methods protection */

/* focusManager */

/* fontFamily */

/* fontSize */

/* functionalUpdate */

/* generateVisitedPathsList */

/* get */

/* getAbortController */

/* getAppBaseUrl */

/* getBackground */

/* getContextPath */

/* getDefaultState */

/* getDocumentationLink */

/* getIconSize */

/* getIdpId */

/* getIdpIdFromSessionStorage */

/* getKindByPath */

/* getKrbToken */

/* getLogger */

/* getName */

/* getPath */

/* getPlatform */

/* getPlatformFromPlatformId */

/* getPluginKey */

/* getPluginKeyBasePart */

/* getProtocol */

/* getProtocolPath */

/* getProtocols */

/* getProvisioningMethod */

/* getRegisteredStyles */

/* getRoutes */

/* getServletUrl */

/* getStepByIndex */

/* global ActiveXObject -- old IE, WSH */

/* global Bun, Deno -- detection */

/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */

/* gridSize */

/* h200 */

/* h600 */

/* harmony default export */

/* harmony export */

/* harmony import */

/* harmony reexport (checked) */

/* hashQueryKey */

/* hashQueryKeyByOptions */

/* ignore */

/* importMetadataFromPaste */

/* importMetadataFromUrl */

/* initialDraft */

/* insertStyles */

/* isBlank */

/* isCancelable */

/* isCancelledError */

/* isNotBlank */

/* isServer */

/* isValidTimeout */

/* istanbul ignore next */

/* jsx */

/* k >>> r: */

/* keyframes */

/* mainReducer */

/* matchMutation */

/* matchQuery */

/* mergeSteps */

/* module decorator */

/* n */

/* noop */

/* notifyManager */

/* o */

/* onlineManager */

/* parseFilterArgs */

/* parseMutationArgs */

/* parseQueryArgs */

/* partialMatchKey */

/* post */

/* queryClient */

/* reexport */

/* reexport safe */

/* registerStyles */

/* replaceEqualDeep */

/* resetIdpId */

/* serializeStyles */

/* set */

/* setAppBaseUrl */

/* setContextPath */

/* setIdpIdInSessionStorage */

/* setKrbToken */

/* setLogger */

/* setPlatform */

/* setPluginKey */

/* setPluginKeyBasePart */

/* setServletUrl */

/* shallowEqualObjects */

/* submitSamlConfig */

/* subtleHeading */

/* timeUntilStale */

/* uid */

/* unused harmony export CancelledError */

/* unused harmony export FocusManager */

/* unused harmony export NotifyManager */

/* unused harmony export OnlineManager */

/* unused harmony export ValidMessage */

/* unused harmony export defaultDocumentationLink */

/* unused harmony export getApiInfo */

/* unused harmony export initialCommonWizardState */

/* unused harmony export provisioningMethods */

/* unused harmony export useNextAndPreviousSteps */

/* unused harmony exports BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodSchema, ZodSet, ZodString, ZodSymbol, ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, any, array, bigint, boolean, coerce, custom, date, datetimeRegex, default, defaultErrorMap, discriminatedUnion, effect, enum, function, getErrorMap, getParsedType, instanceof, intersection, isAborted, isAsync, isDirty, isValid, late, lazy, literal, makeIssue, map, nan, nativeEnum, never, null, nullable, number, object, objectUtil, oboolean, onumber, optional, ostring, pipeline, preprocess, promise, quotelessJson, record, set, setErrorMap, strictObject, string, symbol, transformer, tuple, undefined, union, unknown, util, void */

/* unused harmony exports CONTRAST_MODE_ATTRIBUTE, CUSTOM_THEME_ATTRIBUTE, DEFAULT_THEME, CSS_PREFIX, CSS_VAR_FULL, CURRENT_SURFACE_CSS_VAR */

/* unused harmony exports Form, FormProvider, useController, useFieldArray, useWatch */

/* unused harmony exports HashRouter, Link, NavLink */

/* unused harmony exports difference, replaceAt, parseMutationFilterArgs, mapQueryStatusFilter, stableValueHash, partialDeepEqual, isPlainObject, isQueryKey, isError */

/* unused harmony exports fontFallback, h900, h800, h700, h500, h400, h300, h100 */

/* unused harmony exports fontSizeSmall, focusRing, noFocusRing, visuallyHidden, assistive, skeletonShimmer */

/* unused harmony exports getPlatformDisplayName, getGroups */

/* useAnalyticsContext */

/* useDraft */

/* useDraftMutate */

/* useForm */

/* useGetDraft */

/* useGlobalTheme */

/* useHistory */

/* useLocation */

/* useParams */

/* usePlatformLeafEventHandler */

/* useResetDraftAndRequestDelete */

/* useRouteMatch */

/* useSaveDraft */

/* useStepControl */

/* useUrlParams */

/* useVisitedPaths */

/* zodResolver */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */

/*#__PURE__*/

/**
             * load each transition sequentially
             */

/**
             * load each transition sequentially in reverse
             */

/**
         * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
         * If you want to pass through unknown properties, use `.passthrough()` instead.
         */

/**
         * @deprecated Use `.extend` instead
         *  */

/**
         * The following parameters are optionally typed in final-form to indicate that not all parameters need
         * to be subscribed to. We cast them as booleans (using || false), since this is what they are semantically.
         */

/**
       * Do not update dirtySinceLastSubmit until submission has finished.
       */

/**
       * Do not update submitFailed until submission has finished.
       */

/**
     * @deprecated
     */

/**
     * Equivalent to `.min(1)`
     */

/**
     * Prior to zod@1.0.12 there was a bug in the
     * inferred type of merged objects. Please
     * upgrade if you are experiencing issues.
     */

/**
     * Similar as for setting initial state value.
     * Additionally we are checking if the default value is a function,
     * it is used in checkbox fields, where fields with same name and
     * defaultIsChecked should create array of values. In this situation we can't
     * override the default value on re-registering, but also we don't need to change
     * the key prop to re-run validation.
     */

/**
     * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
     * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
     * have a different value for each object in the union.
     * @param discriminator the name of the discriminator property
     * @param types an array of object schemas
     * @param params
     */

/**
     * This span exists to off-load animations from the circle element,
     * which were causing performance issues (style recalculations)
     * on Safari and older versions of Chrome.
     *
     * This can be removed and styles placed back on the circle element once
     * Safari fixes this bug and off-loads rendering to the GPU from the CPU.
     */

/**
   * Align better inline with text.
   */

/**
   * All calls to the wrapped function will be batched.
   */

/**
   * Internally, Theme uses React Context, with internal providers and consumers.
   * The React Context passes only a function that gets props, and turns them into tokens. This
   * function gets mixed as more Providers with their own themes are added. This mixed function
   * is ultimately picked up by Consumers, which implement a context consumer internally to fetch
   * the theme.
   */

/**
   * Stop-color doesn't properly apply in chrome when the inherited/current color changes.
   * We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS
   * rule) and then override it with currentColor for the color changes to be picked up.
   */

/**
   * The Spinner animation uses a combination of two
   * css animations on two separate elements.
   */

/**
   * The Theme Provider takes regular nodes as its children, but also takes a *theme function*
   * - The theme function takes a set of props, as well as a function (getTokens) that can turn props into tokens.
   * - The getTokens function isn't called immediately - instead the props are passed
   *    through a mix of parent theming functions
   * Children of this provider will receive this mixed theme
   */

/**
   * Use this method to set a custom function to batch notifications together into a single tick.
   * By default React Query will use the batch function provided by ReactDOM or React Native.
   */

/**
   * Use this method to set a custom notify function.
   * This can be used to for example wrap notifications with `React.act` while running tests.
   */

/**
   * We are going to animate this in.
   */

/**
   * When the animation completes, stay at the last frame of the animation.
   */

/**
  @param t: time (elapsed)
  @param b: initial value
  @param c: amount of change
  @param d: duration
*/

/**
 * @deprecated
 *
 * Pass `fatal` into the params object instead:
 *
 * ```ts
 * z.string().custom((val) => val.length > 5, { fatal: false })
 * ```
 *
 */

/**
 * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-4693 Internal documentation for deprecation (no external access)}
 */

/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * @name uid
 * returns an UID associated with {item}
 * @param {Object} item - object to generate UID for
 * @param {Number} index, a fallback index
 * @example
 * uid(object) == 1;
 * uid(object) == 1;
 * uid(anotherObject) == 2;
 * uid("not object", 42) == 42
 *
 * @see {@link useUID}
 */

/**
 * A <Link> wrapper that knows if it's "active" or not.
 */

/**
 * A MutationObserver which watches the `<html>` element for changes to the theme.
 *
 * In React, use the {@link useThemeObserver `useThemeObserver`} hook instead.
 *
 * @param {function} callback - A callback function which fires when the theme changes.
 *
 * @example
 * ```
 * const observer = new ThemeMutationObserver((theme) => {});
 * observer.observe();
 * ```
 */

/**
 * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.
 *
 * @remarks
 * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)
 *
 * @param props - all useForm methods
 *
 * @example
 * ```tsx
 * function App() {
 *   const methods = useForm();
 *   const onSubmit = data => console.log(data);
 *
 *   return (
 *     <FormProvider {...methods} >
 *       <form onSubmit={methods.handleSubmit(onSubmit)}>
 *         <NestedInput />
 *         <input type="submit" />
 *       </form>
 *     </FormProvider>
 *   );
 * }
 *
 *  function NestedInput() {
 *   const { register } = useFormContext(); // retrieve all hook methods
 *   return <input {...register("test")} />;
 * }
 * ```
 */

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */

/**
 * Adds a CSS class to a given element.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * An empty function which does nothing.
 */

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * Attach the keys as a property of the regexp.
 *
 * @param  {!RegExp} re
 * @param  {Array}   keys
 * @return {!RegExp}
 */

/**
 * Automatically updates the position of the floating element when necessary.
 * Should only be called when the floating element is mounted on the DOM or
 * visible on the screen.
 * @returns cleanup function that should be invoked when the floating element is
 * removed from the DOM or hidden from the screen.
 * @see https://floating-ui.com/docs/autoUpdate
 */

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */

/**
 * Checks if `b` partially matches with `a`.
 */

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */

/**
 * Checks if a given element has a CSS class.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if key `b` partially matches with key `a`.
 */

/**
 * Checks if there is a next page.
 * Returns `undefined` if it cannot be determined.
 */

/**
 * Compile a string to a template function for the path.
 *
 * @param  {string}             str
 * @param  {Object=}            options
 * @return {!function(Object=, Object=)}
 */

/**
 * Component based on `useController` hook to work with controlled component.
 *
 * @remarks
 * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)
 *
 * @param props - the path name to the form field value, and validation rules.
 *
 * @returns provide field handler functions, field and form state.
 *
 * @example
 * ```tsx
 * function App() {
 *   const { control } = useForm<FormValues>({
 *     defaultValues: {
 *       test: ""
 *     }
 *   });
 *
 *   return (
 *     <form>
 *       <Controller
 *         control={control}
 *         name="test"
 *         render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (
 *           <>
 *             <input
 *               onChange={onChange} // send value to hook form
 *               onBlur={onBlur} // notify when input is touched
 *               value={value} // return updated value
 *               ref={ref} // set ref for focus management
 *             />
 *             <p>{formState.isSubmitted ? "submitted" : ""}</p>
 *             <p>{fieldState.isTouched ? "touched" : ""}</p>
 *           </>
 *         )}
 *       />
 *     </form>
 *   );
 * }
 * ```
 */

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */

/**
 * Create a path regexp from string input.
 *
 * @param  {string}  path
 * @param  {!Array}  keys
 * @param  {!Object} options
 * @return {!RegExp}
 */

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a history object that stores locations in memory.
 */

/**
 * Creates a history object that uses the HTML5 history API including
 * pushState, replaceState, and the popstate event.
 */

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Custom hook to manage the entire form.
 *
 * @remarks
 * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)
 *
 * @param props - form configuration and validation parameters.
 *
 * @returns methods - individual functions to manage the form state. {@link UseFormReturn}
 *
 * @example
 * ```tsx
 * function App() {
 *   const { register, handleSubmit, watch, formState: { errors } } = useForm();
 *   const onSubmit = data => console.log(data);
 *
 *   console.log(watch("example"));
 *
 *   return (
 *     <form onSubmit={handleSubmit(onSubmit)}>
 *       <input defaultValue="test" {...register("example")} />
 *       <input {...register("exampleRequired", { required: true })} />
 *       {errors.exampleRequired && <span>This field is required</span>}
 *       <button>Submit</button>
 *     </form>
 *   );
 * }
 * ```
 */

/**
 * Custom hook to subscribe to field change and isolate re-rendering at the component level.
 *
 * @remarks
 *
 * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)
 *
 * @example
 * ```tsx
 * const { control } = useForm();
 * const values = useWatch({
 *   name: "fieldName"
 *   control,
 * })
 * ```
 */

/**
 * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.
 *
 * @remarks
 * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)
 *
 * @param props - the path name to the form field value, and validation rules.
 *
 * @returns field properties, field and form state. {@link UseControllerReturn}
 *
 * @example
 * ```tsx
 * function Input(props) {
 *   const { field, fieldState, formState } = useController(props);
 *   return (
 *     <div>
 *       <input {...field} placeholder={props.name} />
 *       <p>{fieldState.isTouched && "Touched"}</p>
 *       <p>{formState.isSubmitted ? "submitted" : ""}</p>
 *     </div>
 *   );
 * }
 * ```
 */

/**
 * Custom positioning reference element.
 * @see https://floating-ui.com/docs/virtual-elements
 */

/**
 * Default query keys hash function.
 */

/**
 * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
 *
 * @param  {string}
 * @return {string}
 */

/**
 * Escape a regular expression string.
 *
 * @param  {string} str
 * @return {string}
 */

/**
 * Escape the capturing group by escaping special characters and meaning.
 *
 * @param  {string} group
 * @return {string}
 */

/**
 * Expose `pathToRegexp`.
 */

/**
 * Expose a function for taking tokens and returning a RegExp.
 *
 * @param  {!Array}          tokens
 * @param  {(Array|Object)=} keys
 * @param  {Object=}         options
 * @return {!RegExp}
 */

/**
 * Expose a method for transforming tokens into the path function.
 */

/**
 * Focusing on the passed element ref after initial mount.
 * Will only focus on initial mount.
 *
 * https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus
 *
 * ```tsx
 * import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
 *
 * const elementRef = useRef();
 * useAutoFocus(elementRef, true);
 *
 * <button ref={elementRef} />;
 * ```
 *
 * @param ref
 * @param autoFocus
 */

/**
 * Font token fallbacks are verbose.
 * This object exists purely to make using fallbacks less cumbersome while we still need to use them.
 * Will be removed once fallbacks are no longer needed.
 *
 * This is referenced by the use-tokens-typography ESLint rule.
 */

/**
 * For windows high contrast mode
 */

/**
 * Get the flags for a regexp from the options.
 *
 * @param  {Object} options
 * @return {string}
 */

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */

/**
 * Hashes the value into a stable hash.
 */

/**
 * Normalize the given path string, returning a regular expression.
 *
 * An empty array can be passed in for the keys, which will hold the
 * placeholder key descriptions. For example, using `/user/:id`, `keys` will
 * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
 *
 * @param  {(string|RegExp|Array)} path
 * @param  {(Array|Object)=}       keys
 * @param  {Object=}               options
 * @return {!RegExp}
 */

/**
 * Parse a string for the raw tokens.
 *
 * @param  {string}  str
 * @param  {Object=} options
 * @return {!Array}
 */

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */

/**
 * Prettier encoding of URI path segments.
 *
 * @param  {string}
 * @return {string}
 */

/**
 * Public API for matching a URL pathname to a path.
 */

/**
 * Pull out keys from a regexp.
 *
 * @param  {!RegExp} path
 * @param  {!Array}  keys
 * @return {!RegExp}
 */

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes a CSS class from a given element.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */

/**
 * Resolves with an object of overflow side offsets that determine how much the
 * element is overflowing a given clipping boundary on each side.
 * - positive = overflowing the boundary by that number of pixels
 * - negative = how many pixels left before it will overflow
 * - 0 = lies flush with the boundary
 * @see https://floating-ui.com/docs/detectOverflow
 */

/**
 * Returns the appropriate circle stroke color.
 */

/**
 * Returns the background color depending on the passed through mode.
 * @param mode
 */

/**
 * Returns true if a given popstate event is an extraneous WebKit event.
 * Accounts for the fact that Chrome on iOS fires real popstate events
 * containing undefined state when pressing the back button.
 */

/**
 * Returns true if the HTML5 history API is supported. Taken from Modernizr.
 *
 * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
 * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
 * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
 */

/**
 * Schedules a microtask.
 * This can be useful to schedule state updates after rendering.
 */

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */

/**
 * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
 * it's created. Arrays are created for missing index properties while objects
 * are created for all other missing properties. Use `_.setWith` to customize
 * `path` creation.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.set(object, 'a[0].b.c', 4);
 * console.log(object.a[0].b.c);
 * // => 4
 *
 * _.set(object, ['x', '0', 'y', 'z'], 5);
 * console.log(object.x[0].y.z);
 * // => 5
 */

/**
 * Shallow compare objects. Only works with objects that always have the same properties.
 */

/**
 * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
 * This should be used to implement design decisions throughout your application.
 *
 * Note: With `@atlaskit/babel-plugin-tokens`, this function can be pre-compiled and a fallback value automatically inserted.
 *
 * @param {string} path - A dot-separated token name (example: `'color.background.brand'` or `'spacing.scale.100'`).
 * @param {string} [fallback] - The fallback value that should render when token CSS is not present in your app.
 *
 * @example
 * ```
 * <div
 *   css={{
 *     backgroundColor: token('elevation.surface.raised', N0),
 *     boxShadow: token('elevation.shadow.raised', `0 20px 32px -8px ${N50A}, 0 0 1px ${N60A}`),
 *     padding: token('spacing.scale.100', '8px'),
 *     fontWeight: token('font.weight.regular', '400'),
 *   }}
 * />
 * ```
 *
 */

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */

/**
 * The main path matching regexp utility.
 *
 * @type {RegExp}
 */

/**
 * The public API for a <Router> that stores location in memory.
 */

/**
 * The public API for a <Router> that uses window.location.hash.
 */

/**
 * The public API for matching a single path and rendering.
 */

/**
 * The public API for prompting the user before navigating away from a screen.
 */

/**
 * The public API for rendering a history-aware <a>.
 */

/**
 * The public API for rendering the first <Route> that matches.
 */

/**
 * The public top-level API for a "static" <Router>, so-called because it
 * can't actually change the current location. Instead, it just records
 * location changes in a context object. Useful mainly in testing and
 * server-rendering scenarios.
 */

/**
 * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.
 *
 * @remarks
 * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)
 *
 * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}
 *
 * @example
 * ```tsx
 * function App() {
 *   const { register, handleSubmit, control } = useForm({
 *     defaultValues: {
 *     firstName: "firstName"
 *   }});
 *   const { dirtyFields } = useFormState({
 *     control
 *   });
 *   const onSubmit = (data) => console.log(data);
 *
 *   return (
 *     <form onSubmit={handleSubmit(onSubmit)}>
 *       <input {...register("firstName")} placeholder="First Name" />
 *       {dirtyFields.firstName && <p>Field is dirty.</p>}
 *       <input type="submit" />
 *     </form>
 *   );
 * }
 * ```
 */

/**
 * This function returns `a` if `b` is deeply equal.
 * If not, it will replace any deeply equal children of `b` with those of `a`.
 * This can be used for structural sharing between JSON values for example.
 */

/**
 * Transform an array into a regexp.
 *
 * @param  {!Array}  path
 * @param  {Array}   keys
 * @param  {!Object} options
 * @return {!RegExp}
 */

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */

/**
 * We are hiding these props from consumers as they're used to
 * hack around icon sizing specifically for icon-file-type.
 */

/**
 * __Field id__
 *
 * A field id uses the context API. It provides the id of the field to message components. This links the message with the field of screenreaders.
 */

/**
 * __Loading button__
 *
 * A small wrapper around Button that allows you to show an @atlaskit/spinner as an overlay on the button when you set an isLoading prop to true.
 *
 * - [Examples](https://atlassian.design/components/button/examples#loading-button)
 */

/**
 * __Progress bar__
 *
 * A progress bar describes the horizontal tracking bar that traverses each individual step.
 *
 */

/**
 * __Progress marker__
 *
 * Similar to `@atlaskit/progress-indicator`, a small visual circle marker
 */

/**
 * __Textfield__
 *
 * A text field is an input that allows a user to write or edit text.
 *
 * - [Examples](https://atlassian.design/components/textfield/examples)
 * - [Code](https://atlassian.design/components/textfield/code)
 * - [Usage](https://atlassian.design/components/textfield/usage)
 */

/**
 * createTheme is used to create a set of Providers and Consumers for theming components.
 * - Takes a default theme function; this theme function gets a set of props, and returns tokens
 *  based on those props. An example of this default theme function is one that produces the standard
 *  appearance of the component
 * - Returns three things - a Provider that allow for additional themes to be applied, a Consumer
 *  that can get the current theme and fetch it, and a custom hook - useTheme which provides an alternate (although functionally the same) API
 *  to the Consumer.
 */

/**
 * generates a UID factory
 * @internal
 * @example
 * const uid = generateUID();
 * uid(object) = 1;
 * uid(object) = 1;
 * uid(anotherObject) = 2;
 */

/**
 * lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="npm" -o ./`
 * Copyright jQuery Foundation and other contributors <https://jquery.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/**
 String representation of component state for styling with class names.

 Expects an array of strings OR a string/object pair:
 - className(['comp', 'comp-arg', 'comp-arg-2'])
   @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
 - className('comp', { some: true, state: false })
   @returns 'react-select__comp react-select__comp--some'
*/

/** @jsx jsx */

/** @license React v0.19.1
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react-dom-test-utils.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @type {!Array} */

/** @type {!Object} */

/** @type {string} */

/** Alias of safeParseAsync */

/** Built-in value references. */

/** Detect free variable `global` from Node.js. */

/** Detect free variable `self`. */

/** Error message constants. */

/** Used as references for various `Number` constants. */

/** Used as the `TypeError` message for "Functions" methods. */

/** Used as the maximum memoize cache size. */

/** Used for built-in method references. */

/** Used to detect methods masquerading as native. */

/** Used to detect overreaching core-js shims. */

/** Used to detect unsigned integer values. */

/** Used to match property names within property paths. */

/** Used to resolve the decompiled source of functions. */

/** Used to stand-in for `undefined` hash values. */

/** `Object#toString` result references. */

/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/******/

/***/

//

//         ...augmentation,

//         ...def.shape(),

//         nextStatus = ENTERING

//         nextStatus = EXITING

//       ...augmentation,

//       ...def,

//       ...this._def.shape(),

//       : k extends keyof Input

//       : k extends keyof Output

//       : never;

//       ? Augmentation[k]["_input"]

//       ? Augmentation[k]["_output"]

//       ? Input[k]

//       ? Output[k]

//       if (status !== ENTERING && status !== ENTERED) {

//       if (status === ENTERING || status === ENTERED) {

//       objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),

//       shape: () => ({

//       }

//       }),

//      if (!b.has(i.value[0])) return false;

//      if (!b.has(i[0])) return false;

//     ...this._def,

//     Def["catchall"]

//     Def["unknownKeys"],

//     [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation

//     [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation

//     augmentation: Augmentation

//     catchall: merging._def.catchall,

//     const { status } = this.state

//     extendShape<ReturnType<Def["shape"]>, Augmentation>,

//     if (this.props.in) {

//     return new ZodObject({

//     shape: () =>

//     shape: () => ({

//     typeName: ZodFirstPartyTypeKind.ZodObject,

//     unknownKeys: merging._def.unknownKeys,

//     }

//     } else {

//     }) as any;

//     }),

//    **Note**: `i` access switches to `i.value`.

//    ... and convert to:

//    Basically, take:

//    ```

//    ```js

//    for (i of a.entries())

//    it = a.entries();

//    to co-exist with es5.

//    while (!(i = it.next()).done)

//   ): ZodObject<

//   //   merging._def.shape()

//   //   this._def.shape(),

//   // );

//   // const mergedShape = objectUtil.mergeShapes(

//   <Augmentation extends ZodRawShape>(

//   <Def extends ZodObjectDef>(def: Def) =>

//   > => {

//   Augmentation extends Incoming["shape"],

//   Augmentation extends ZodRawShape,

//   Catchall,

//   Incoming extends AnyZodObject,

//   Incoming["_def"]["catchall"]

//   Incoming["_def"]["catchall"],

//   Incoming["_def"]["unknownKeys"],

//   NewInput

//   NewInput extends util.flatten<{

//   NewInput extends {

//   NewOutput extends util.flatten<{

//   NewOutput extends {

//   NewOutput,

//   UnknownKeys,

//   augmentation: Augmentation

//   captures = result.slice(1).map(maybeToString)

//   const merged: any = new ZodObject({

//   extendShape<T, Augmentation>,

//   extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,

//   https://github.com/zloirock/core-js/issues/1128

//   https://github.com/zloirock/core-js/issues/1130

//   if (prevProps !== this.props) {

//   let nextStatus = null

//   merging: Incoming

//   return merged;

//   return new ZodObject({

//   return { nextStatus }

//   }

//   }) as any;

//   },

//   };

//   }>

//   }>,

// "/*"            => ["/", undefined, undefined, undefined, undefined, "*"]

// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]

// "/route(\\d+)"  => [undefined, undefined, undefined, "\d+", undefined, undefined]

// $FlowFixMe

// $FlowFixMe we know it's not null

// 'm' and 'r' are mixing constants generated offline.

// (for example, `DOMQuad` and similar in FF41-)

// ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {

// ): ZodObject<

// - https://github.com/FormidableLabs/react-fast-compare/issues/64

// - https://github.com/epoberezkin/fast-deep-equal/issues/49

// ----

// ------------------------------

// .current should be assignable

// 0, NaN, or Infinity should always fallback to 1.

// 0px margin added to css-reset

// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code

// 10px gutter

// 1: the menu will fit, do nothing

// 2 ** 53 - 1 == 9007199254740991

// 2. Replace `for of` with es5 compliant iteration using `for`.

// 25.4.3.1 Promise(executor)

// 2: the menu will fit, if scrolled

// 2px gutter

// 32px

// 3: the menu will fit, if constrained

// 4. Forked beviour when there isn't enough space below

// 4. not enough space, the browser WILL NOT increase scrollable area when

// ==============================

// > {

// >(

// @@replace logic

// @@search logic

// @font-face, @page

// @import

// @import is generally only used for font faces from google fonts and etc.

// @ts-expect-error

// @ts-expect-error FIXME - this is a valid ts error

// @ts-expect-error expected to work in the browser

// @ts-ignore

// @ts-ignore See issue for more info: https://github.com/Microsoft/TypeScript/issues/10727

// A hashchange doesn't always == location change.

// AUTO: flip the menu, render above

// About 1.5x faster than the two-arg version of Array#splice()

// Adapted from https://stackoverflow.com/a/3143231

// Add methods to `Hash`.

// Add methods to `ListCache`.

// Add methods to `MapCache`.

// Allow scroll on provided target

// Allow useErrorBoundary function to override throwing behavior on a per-error basis

// Allow useErrorBoundary to override suspense's throwing behavior

// Allowing tab so that a user can move focus away

// Allows consumers to extend a base Select with additional styles

// Always refetch after error or success:

// Always reset height to auto before calculating new height

// Always set stale time when using suspense to prevent

// Animated Scroll To

// Apply guards for `Object.create(null)` handling. See:

// Argument of type 'Pick<ThemeProps & { children: (tokens: ThemeTokens) => ReactNode; }, Exclude<keyof ThemeProps, "children">>' is not assignable to parameter of type 'ThemeProps'.ts(2345)

// Array#includes uses SameValueZero equality algorithm

// Array#indexOf ignores holes, Array#includes - not

// Array.prototype[@@unscopables]

// Assistive text to describe visual elements. Hidden for sighted users.

// Attributes have the same specificity a pseudo classes so we are overriding :disabled here

// Avoid NodeJS experimental warning

// Avoid failures from read-only properties

// BOTTOM: allow browser to increase scrollable area and immediately set scroll

// Be sure to unsubscribe if a new handler is set

// Block option hover events when the user has just pressed a key

// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`

// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should

// Bun / IE9- setInterval additional parameters fix

// Bun / IE9- setTimeout additional parameters fix

// Button already has React.memo, so just leaning on that

// By explicitly using `prop-types` you are opting into new production behavior.

// CLASS

// CONCATENATED MODULE: ./node_modules/@atlaskit/analytics-next/dist/esm/events/AnalyticsEvent.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/analytics-next/dist/esm/hooks/useAnalyticsEvents.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/button/dist/esm/button.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/button/dist/esm/loading-button.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/button/dist/esm/shared/block-events.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/button/dist/esm/shared/css.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/button/dist/esm/shared/get-is-only-single-icon.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/form/dist/esm/field.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/icon/dist/esm/components/icon.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/icon/dist/esm/constants.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/icon/dist/esm/entry-points/base.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/progress-tracker/dist/esm/internal/bar.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/progress-tracker/dist/esm/internal/marker.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/progress-tracker/dist/esm/internal/stage.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/progress-tracker/dist/esm/internal/utils.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/progress-tracker/dist/esm/progress-tracker.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/select/dist/esm/CreatableSelect.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/select/dist/esm/createSelect.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/select/dist/esm/styles.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/spinner/dist/esm/spinner.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/textarea/dist/esm/styles.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/textfield/dist/esm/styles.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/theme/dist/esm/colors.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/theme/dist/esm/utils/get-theme.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/theme/dist/esm/utils/themed.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/tokens/dist/esm/get-global-theme.js

// CONCATENATED MODULE: ./node_modules/@atlaskit/tokens/dist/esm/theme-mutation-observer.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/get.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/superPropBase.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js

// CONCATENATED MODULE: ./node_modules/@emotion/core/dist/core.browser.esm.js

// CONCATENATED MODULE: ./node_modules/@emotion/css/dist/css.browser.esm.js

// CONCATENATED MODULE: ./node_modules/@emotion/hash/dist/emotion-hash.esm.js

// CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js

// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs

// CONCATENATED MODULE: ./node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs

// CONCATENATED MODULE: ./node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs

// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/addClass.js

// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/hasClass.js

// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/removeClass.js

// CONCATENATED MODULE: ./node_modules/history/esm/history.js

// CONCATENATED MODULE: ./node_modules/react-query/es/core/queryClient.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/QueryErrorResetBoundary.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/index.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/setBatchUpdatesFn.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/setLogger.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/useBaseQuery.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/useMutation.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/useQuery.js

// CONCATENATED MODULE: ./node_modules/react-query/es/react/utils.js

// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/CSSTransition.js

// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js

// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/utils/reflow.js

// CONCATENATED MODULE: ./node_modules/resolve-pathname/esm/resolve-pathname.js

// CONCATENATED MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/App.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/App.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/ChooseIdp.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/StepIndex.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/api/draftApi.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/api/scopeApi.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/api/setupIdpApi.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/api/staticApi.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/Card.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/Card.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/CertificateBox.module.css

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/CertificateBox.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/CopyButton.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/CopyButton.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/MessageBox.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/MessageBox.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/Modal.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/ProgressBar.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/RadioSelect.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/StepContainer.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/StepContainer.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/SummaryRow.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/SummaryRow.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/forms/CopyTextField.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/forms/FileInput.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/forms/FileInputField.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/components/forms/KssoTextField.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/contexts/reducers/CommonWizardReducer.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/contexts/reducers/OidcWizardReducer.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/contexts/reducers/SamlWizardReducer.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/hooks/draftHooks.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/hooks/staticDataHooks.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/index.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/adfs/Steps.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/adfs/saml/Metadata.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/adfs/saml/Prepare.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/adfs/saml/Prepare.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/adfs/saml/Summary.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/azure-ad/Steps.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/azure-ad/oidc/Metadata.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/github/GithubSteps.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/github/oidc/Summary.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/one-login/Steps.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/one-login/saml/Prepare.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/ChooseProtocol.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/ChooseProtocol.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/ChooseRedirectMode.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/DisplayName.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/DisplayName.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/StandardSteps.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/TestStep.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/TestStep.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/Credentials.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/Scope.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/Summary.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/metadata-url-certificate/CertVerifyBox.module.css

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/metadata/Metadata.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/metadata/MetadataHooks.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/metadata/MetadataResolver.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/oidc/metadata/utilities.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/PrepareIdp.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/SSORedirectUrl.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/Summary.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/certificate/CertUploadResolver.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/certificate/CertificateImported.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/certificate/CertificateManualUpload.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/certificate/CertificateStep.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata-url-certificate/CertVerifyBox.module.css

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata-url-certificate/CertVerifyBox.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata/Metadata.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata/Metadata.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata/MetadataResolver.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/saml/metadata/utilities.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/user-provisioning/ProvisioningMethodComponent.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/user-provisioning/ProvisioningOptionComponent.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/user-provisioning/UserProvisioning.module.scss

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/user-provisioning/UserProvisioning.tsx

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/File.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/SummaryHooks.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/draftUtilities.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/oidc/MetadataUrlHint.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/saml/MetadataUrlHint.ts

// CONCATENATED MODULE: ./src/main/frontend/src/idp-setup/src/utilities/urlHook.ts

// CONCATENATED MODULE: ./src/main/frontend/src/shared/components/error-box/ErrorBox.module.scss

// CONTEXT

// Check if the transport layer support cancellation

// Chrome 38 Symbol has incorrect toString conversion

// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances

// Chrome recently changed button so that they use 'arial' as the font family

// Class Name Prefixer

// Clean Common Props

// Clean Value

// Compile all the patterns before compilation.

// Compile all the tokens into regexps.

// Composition Handlers

// Consumer Handlers

// Continue fetch if currently paused

// Convert base64url to base64

// Copied from: https://github.com/jonschlinkert/is-plain-object

// Create callback to cancel this fetch

// Create default global light theme

// Create fetch function

// Cross browser auto focusing is pretty broken, so we are doing it ourselves

// DCE check should happen before ReactDOM bundle executes so that

// DO NOT scroll if position is fixed

// DOM Element detected.

// DSP-6470 we should style like Tag once we have the :has selector

// Default appearance

// Default to 5 minutes if not cache time is set

// Delay

// Deno throws a ReferenceError on `location` access without `--location` flag

// Detect IE8's incomplete defineProperty implementation

// Detect buggy property enumeration order in older V8 versions.

// Detect correctness of subclassing with @@species support

// Determine which callbacks to trigger

// DevTools can report bad minification during injection.

// DevTools shouldn't crash React, no matter what.

// Disabling visited styles (just using the base colors)

// Do a few final mixes of the hash to ensure the last few

// Do not notify on updates because of changes in the options because

// Do nothing

// Do nothing if already resolved

// Do we need to retry the request?

// Don't enum bug & hidden keys

// Dropdown & Clear Icons

// END: Modifications

// END: fast-deep-equal

// END: react-fast-compare

// ES3:

// ESM COMPAT FLAG

// EXPORTS

// EXTERNAL MODULE: ./node_modules/@atlaskit/button/dist/esm/button.js + 5 modules

// EXTERNAL MODULE: ./node_modules/@atlaskit/button/dist/esm/loading-button.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/check-circle.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/check.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/copy.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/error.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/info.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/icon/glyph/question-circle.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/theme/dist/esm/components/theme.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/theme/dist/esm/constants.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/theme/dist/esm/typography.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/tokens/dist/esm/constants.js

// EXTERNAL MODULE: ./node_modules/@atlaskit/tokens/dist/esm/get-token.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js

// EXTERNAL MODULE: ./node_modules/@emotion/cache/dist/cache.browser.esm.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js

// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js + 2 modules

// EXTERNAL MODULE: ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js

// EXTERNAL MODULE: ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.some.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js

// EXTERNAL MODULE: ./node_modules/lodash/set.js

// EXTERNAL MODULE: ./node_modules/react-dom/index.js

// EXTERNAL MODULE: ./node_modules/react-hook-form/dist/index.esm.mjs

// EXTERNAL MODULE: ./node_modules/react-is/cjs/react-is.production.js

// EXTERNAL MODULE: ./node_modules/react-query/es/core/focusManager.js

// EXTERNAL MODULE: ./node_modules/react-query/es/core/logger.js

// EXTERNAL MODULE: ./node_modules/react-query/es/core/notifyManager.js

// EXTERNAL MODULE: ./node_modules/react-query/es/core/retryer.js

// EXTERNAL MODULE: ./node_modules/react-query/es/core/utils.js

// EXTERNAL MODULE: ./node_modules/react/index.js

// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js

// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/esm/tiny-invariant.js

// EXTERNAL MODULE: ./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js

// EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs

// EXTERNAL MODULE: ./src/main/frontend/src/atlaskerb/src/css/switch.css

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/components/Modal.tsx + 1 modules

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/components/forms/forms.module.scss

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/contexts/actions/CommonWizardActions.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/contexts/actions/OidcWizardActions.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/contexts/actions/SamlWizardActions.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/hooks/QueryClient.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/hooks/draftHooks.ts + 1 modules

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/scss-modules/margins.module.scss

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/steps/standard/user-provisioning/ProvisioningMethod.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/utilities/Protocols.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/utilities/StepHooks.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/utilities/UrlParams.ts

// EXTERNAL MODULE: ./src/main/frontend/src/idp-setup/src/utilities/combineClass.ts

// EXTERNAL MODULE: ./src/main/frontend/src/shared/utilities/KSSOError.ts

// EXTERNAL MODULE: ./src/main/frontend/src/shared/utilities/SessionStorage.ts

// Either this is the first call, activity has stopped and we're at the

// Ensure the hash is encoded properly before doing anything else.

// Ensure we always have a properly-encoded hash.

// Event captured by dropdown indicator

// Execute query

// Exit early for strings to avoid a performance hit in some environments.

// Expose `MapCache`.

// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it

// FF44- legacy iterators case

// FUNCTIONS

// Fallback.

// Fetch

// Fetch first page

// Fetch first page?

// Fetch if there are subscribers

// Fetch previous page?

// Fetch remaining pages

// First trigger the configuration callbacks

// First trigger the mutate callbacks

// Fix browsers whose `exec` methods don't consistently return `undefined`

// Flip the menu, render below

// Function instances `.name` property

// Get Scroll Parent

// Get all the valid discriminator values

// Get bounding client object

// Get theme from the user's props

// Getters

// Giving disabled styles preference over active by listing them after.

// HOOK

// Handle <iframe>s

// Handle error boundary

// Handle invocations in a tight loop.

// Handle result property usage tracking

// Handle suspense

// Handle the last few bytes of the input array

// Helper for a popular repeating case of the spec:

// Hide the clear indicator on Edge (Windows only)

// IE 11 sometimes throws when accessing window.history.state

// IE8 returns string on undefined

// IE8- don't enum bug keys

// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix

// If <html> has a CSS width greater than the viewport, then this will be

// If `value` or `defaultValue` props are not empty then announce them

// If constructor does not have an Object-specific method

// If format not supported (or no theme provided), return standard theme

// If has modified constructor

// If has modified prototype

// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).

// If resuming draft, put draftId in session storage and redirect to current step from draft

// If the 'initial-input-focus' action has been set already

// If the mutation fails, use the context returned from onMutate to roll back

// If the path exists, push it onto the end.

// If the reference is clipped, the ratio is 0. Throttle the refresh

// If the theme prop is a function, assume the function

// If the transport layer does not support cancellation

// If these status codes are returned, attempt to handle response further

// If you are going to have child components that require analytics use withAnalytics

// Ignore already escaped sequences.

// Ignore extraneous popstate events in WebKit.

// Ignore this change; we already setState in push/replace.

// Ignoring this warning will mean the analytics context of child components will not

// Important!

// In non-strict mode we allow a slash at the end of match. If the path to

// In testing environments, the `width` and `height` properties are empty

// In the context of a TransitionGroup all enters are really appears

// Include callbacks in batch renders

// Initialize the hash

// Inspired by https://github.com/garycourt/murmurhash-js

// Instead, we just default to 0 for keys we don't know.

// Instead, we just default to 0 for paths we don't know.

// Invoke the leading edge.

// Iterate over the tokens and create our regexp string.

// JSON[@@toStringTag] property

// Just smashing the existing onClick for good measure

// Keep previous data if needed

// Keep previous query key if the user does not supply one

// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.

// Let integer be ? ToInteger(index).

// Lifecycle

// Listen to all scroll events, and filter them out inside of 'onScroll'

// Listen to online

// Listen to visibillitychange and focus

// Log error

// Log the error to an error reporting service

// Lose focus when becoming disabled (standard button behaviour)

// MS Edge converts symbol values to JSON as {}

// Make sure results are optimistically set in fetching state before subscribing or updating options

// Make sure we reference the latest query as the current one might have been removed

// Match Express-style parameters and un-named parameters with a prefix

// Match any characters still remaining.

// Match anything that isn't a dot or bracket.

// Match escaped characters that would otherwise appear in future matches.

// Math[@@toStringTag] property

// Memoize placeholder data

// Memoize select result

// Menu Component

// Merge Utility

// Methods

// Mimic the behavior of DOM histories by

// Misc. Instance Properties

// Mix 4 bytes at a time into the hash

// Mobile Device Detector

// Mobile Safari ignores { overflow: hidden } declaration on the body.

// Mocked nodes in testing environments may not be instances of Node. By

// Mouse Handlers

// NAMESPACE OBJECT: ./node_modules/@atlaskit/select/dist/esm/components/index.js

// NB: This can be resolved if this component, composes base SVG / and/or skeleton

// NOTE: This is equivalent to

// Name the function so it is clearer in the documentation

// Nashorn bug:

// Needed to position overlay

// Needing to add !important to overcome specificity issue caused by deprecated AtlaskitThemeProvider

// Node.js 0.8-

// Node.js 0.9+ & IE10+ has setImmediate, otherwise:

// Normalized Scroll Top

// Normalized scrollTo & scrollTop

// Not using '&:disabled' because :disabled is not a valid state for all element types

// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js

// Note: this new 'context'

// Note: we cannot disable pointer events when there is an overlay.

// Notify cache callback

// Notify on fail

// Number('+0x1') should be NaN, old V8 fix

// Observer only needs to be configured once

// Older browsers don't support a `document` as the root and will throw an

// One-arg form: push(location)

// Only invoke if we have `lastArgs` which means `func` has been

// Only multiselects support value focusing

// Only notify if something has changed

// Optimistically set result in fetching state if needed

// Optimistically update state if needed

// Optimistically update to the new value

// Passive Event Detector

// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86

// Preact uses an empty array as children by

// Prepend partial segment prefixes.

// Prevent retrying failed query if the error boundary has not been reset yet

// Prevent update loops when using the `size` middleware.

// Previously they may have been able to pass in undefined without things blowing up.

// Promise.resolve without an argument throws an error in LG WebOS 2

// Public interface

// Push the current path onto the tokens.

// Putting all children in the center

// React 15 compat

// React v16.11 and below

// React v16.12 and above

// Recursively convert values (susceptible to call stack limits).

// Reds

// Refetch pages

// Refs

// RegExp[@@split] doesn't call the regex's exec method, but first creates

// Remove animation props not meant for HTML elements

// Remove query after fetching if cache time is 0

// Render any custom fallback UI

// Renderers

// Reset any `maxWait` timer.

// Resolve incomplete/relative pathname relative to current location.

// Resolves the different types of theme objects in the current API

// Restart the timer.

// Return a context object with the snapshotted value

// Return corresponding String value for RedirectPolicy

// Return current promise if we are already fetching

// Return false from a transition hook to cancel the transition.

// Return the mutation object so you can access isLoading, isError, etc.

// Runtime labeling is an opt-in feature because:

// START: Modifications:

// START: fast-deep-equal

// START: fast-deep-equal es6/index.js 3.1.3

// START: react-fast-compare

// SVG-related properties

// Safari (WebKit) adds a -webkit-text-fill-color style to disabled inputs

// Safari 12 bug

// Safari 8 has buggy iterators w/o `next`

// Scroll Helpers

// Scroll Into View

// Scroll focusedOption into view if menuIsOpen is set on mount (e.g. defaultMenuIsOpen)

// See https://github.com/ReactTraining/history/pull/289

// See: https://github.com/atlassian/extract-react-types/issues/201

// Select option if option is not disabled

// Set @@toStringTag to native iterators

// Set cache time to 1 if the option has been set to 0

// Set data and mark it as cached

// Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen)

// Set to fetching state if not already in it

// ShadowRoot detected.

// Shouldn't skip holes

// Show placeholder data if needed

// Side effects

// Silently cancel current fetch if the user wants to cancel refetches

// Snapshot the previous value

// Some versions of I.E. have different rules for clearTimeout vs setTimeout

// Start loop

// Start the timer for the trailing edge.

// Step into the shadow DOM of the parent of a slotted node.

// Stop if the fetch is already resolved

// Stop the query from being garbage collected

// Store state in case the current fetch needs to be reverted

// String methods call symbol-named RegExp methods

// Structurally share data between prev and new data if needed

// Support anchored sticky behavior.

// Symbol-named RegExp methods call .exec

// TODO

// TODO: If another transition starts while we're still confirming

// TODO: Internal Option Type here

// TODO: Remove from `core-js@4`

// TODO: Remove from `core-js@4` since it's moved to entry points

// TODO: Remove this module from `core-js@4` since it's replaced to module below

// TODO: Remove this module from `core-js@4` since it's split to modules listed below

// TODO: We could probably make this more reliable by

// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`

// TODO: remove fallback for next major

// TODO: uncomment the next line when cleaning up validationState prop so it has a default value

// TS believes value can be undefined

// TYPES

// Test for A's keys different from B.

// Thanks to IE8 for its funny defineProperty

// That would be easy for styling, but it would start letting events through on disabled buttons

// The Theme Consumer takes a function as its child - this function takes tokens, and the

// The above generic is used to let ERTC know what props to extract.

// The timeout is sometimes triggered 1 ms before the stale time expiration.

// The use of `Object#toString` avoids issues with the `typeof` operator

// Theme is the global Atlaskit theme

// Then the cache listeners

// Then trigger the listeners

// These are strings and won't change

// They're not really 'magic', they just happen to work well.

// This allows the user to escape special characters that won't transform.

// This can happen when the query is hydrated or created with setQueryData.

// This function is memoized in the context

// This implementation is based heavily on node's url.parse

// This is a bit of a hack. We have to start listening for location

// This is a blunder on the part of @types/react

// This is the actual call to server

// This is to force a repaint,

// This shouldn't be necessary, but there are weird race conditions with

// This will cover both props for invalid state while giving priority to isInvalid. When cleaning up validationState, we can just keep the inner condition.

// To avoid wrapping this component in AnalyticsContext we manually

// To make the animation happen,  we have to separate each rendering and avoid being processed as batched.

// To mitigate this issue we always add 1 ms to the timeout.

// Tools including enzyme rely on components having a display name

// Touch Capability Detector

// Touch Handlers

// Trigger behavior hook

// Try to fetch the data

// Turn pointer events off when disabled - this makes it so hover etc don't work.

// Two-arg form: push(path, state)

// Types

// UNUSED EXPORTS: CacheProvider, ClassNames, Global, ThemeContext, createElement, keyframes, withEmotionCache

// UNUSED EXPORTS: CacheProvider, Global, ThemeContext, ThemeProvider, __unsafe_useEmotionCache, createElement, useTheme, withEmotionCache, withTheme

// UNUSED EXPORTS: DN100A, DN10A, DN200A, DN20A, DN300A, DN30A, DN400A, DN40A, DN50, DN500A, DN50A, DN600A, DN60A, DN700, DN700A, DN70A, DN800, DN800A, DN80A, G100, G200, G300, G75, N10A, N200A, N300A, N400A, N40A, N50, N500A, N50A, N60, N600, N600A, N700A, N70A, N800A, N80A, N90A, P100, P200, P300, P400, P75, R200, T100, T200, T300, T400, T50, T500, T75, Y100, Y75, background, backgroundActive, backgroundHover, backgroundOnLayer, blue, codeBlock, green, link, linkActive, linkHover, linkOutline, placeholderText, primary, purple, red, skeleton, subtleText, teal, textActive, textHover, yellow

// UNUSED EXPORTS: Grid, GridColumn

// UNUSED EXPORTS: Hydrate, QueryErrorResetBoundary, useHydrate, useInfiniteQuery, useIsFetching, useIsMutating, useQueries, useQueryClient, useQueryErrorResetBoundary

// UNUSED EXPORTS: L

// UNUSED EXPORTS: MemoryRouter, Prompt, Redirect, StaticRouter, __HistoryContext, generatePath, withRouter

// UNUSED EXPORTS: ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, __PRIVATE__, css, isStyledComponent, keyframes, useTheme, version, withTheme

// UNUSED EXPORTS: a, c, d

// UNUSED EXPORTS: locationsAreEqual, parsePath

// UTILS

// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test

// Unpack custom variants, and get correct value for the current theme

// Update config if passed, otherwise the config from the last execution is used

// Update refetch interval if needed

// Update result

// Update result to make sure we did not miss any query updates

// Update scope after draft has been loaded

// Update stale interval if needed

// Update state so the next render will show the fallback UI.

// Updates dropdown to fit with chosen values

// Use `internal/copy-constructor-properties` helper in `core-js@4`

// Use a negative lookahead to match only capturing groups.

// Use prev data if an isDataEqual function is defined and returns `true`

// Use the default theme if there are no customisations.

// Use the options from the first observer with a query function if no function is found.

// User isn't required to provide both light and dark values

// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables

// V8 ~ Chrome 36-

// V8 ~ Chrome 45- bug

// Verify that the code above has been dead code eliminated (DCE'd).

// WARNING: This hook will only function correctly for leaf node components - as in

// WSH

// We add a fragment to ensure we don't break people upgrading.

// We are done if the query does not need to be retried

// We can remove it whenever the bug is fixed.

// We can't detect it synchronously, so just check versions

// We can't use @@species feature detection in V8 since it causes

// We can't use real regex here since it causes deoptimization

// We can't use this feature detection in V8 since it causes

// We can't use window.location.hash here because it's not

// We cannot tell if a hashchange was caused by a PUSH, so we'd

// We cannot tell if a hashchange was caused by a REPLACE, so we'd

// We could then simplify how common styles are dealt with simply by encapsualting them

// We don't expect any of the above to throw, but better to be safe.

// We need Promise#{ catch, finally } in the pure version for preventing prototype pollution

// We override this and make the inner container turn it off instead.

// We should still report in case we break this code.

// We use React.Children.forEach instead of React.Children.toArray().find()

// We use event bubbling here to listen to any child element mouse down event.

// When mutate is called:

// When there is no prior location and pathname is empty, set it to /

// When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally

// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally

// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.

// Works with __proto__ only. Old v8 can't work with null proto objects.

// Would love a way to avoid disabling this rule, but we need

// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`

// ZodObject<

// \d\d?

// ^(? + rx + ) is needed, in combination with some str slicing, to

// ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export

// _usually_(not always since there could be multiple style tags)

// `%ArrayIteratorPrototype%.next` method

// `%IteratorPrototype%[@@iterator]()` method

// `%StringIteratorPrototype%.next` method

// `AdvanceStringIndex` abstract operation

// `Array.from` method

// `Array.from` method implementation

// `Array.isArray` method

// `Array.prototype.concat` method

// `Array.prototype.entries` method

// `Array.prototype.every` method

// `Array.prototype.filterReject` method

// `Array.prototype.filter` method

// `Array.prototype.findIndex` method

// `Array.prototype.find` method

// `Array.prototype.flatMap` method

// `Array.prototype.forEach` method

// `Array.prototype.forEach` method implementation

// `Array.prototype.includes` method

// `Array.prototype.indexOf` method

// `Array.prototype.join` method

// `Array.prototype.keys` method

// `Array.prototype.map` method

// `Array.prototype.reduceRight` method

// `Array.prototype.reduce` method

// `Array.prototype.reverse` method

// `Array.prototype.slice` method

// `Array.prototype.some` method

// `Array.prototype.splice` method

// `Array.prototype.values` method

// `Array.prototype[@@iterator]` method

// `ArraySpeciesCreate` abstract operation

// `Assert: IsCallable(argument) is true`

// `Assert: IsConstructor(argument) is true`

// `Assert: Type(argument) is Object`

// `CreateArrayIterator` internal method

// `CreateHTML` abstract operation

// `CreateIterResultObject` abstract operation

// `Date.prototype.toJSON` method

// `Date.prototype.toString` method

// `Date.prototype[@@toPrimitive](hint)` method implementation

// `Date.prototype[@@toPrimitive]` method

// `Function#toString` throws on some built-it function in some legacy engines

// `Function.prototype.bind` method

// `Function.prototype.bind` method implementation

// `GetMethod` abstract operation

// `GetSubstitution` abstract operation

// `HasOwnProperty` abstract operation

// `IsArray` abstract operation

// `IsCallable` abstract operation

// `IsConstructor` abstract operation

// `IsRegExp` abstract operation

// `JSON.stringify` method

// `LengthOfArrayLike` abstract operation

// `Math.trunc` method

// `NewPromiseCapability` abstract operation

// `Object.create` method

// `Object.defineProperties` method

// `Object.defineProperty` method

// `Object.entries` method

// `Object.freeze` method

// `Object.getOwnPropertyDescriptor` method

// `Object.getOwnPropertyDescriptors` method

// `Object.getOwnPropertyNames` method

// `Object.getOwnPropertySymbols` method

// `Object.getPrototypeOf` method

// `Object.isExtensible` method

// `Object.keys` method

// `Object.prototype.propertyIsEnumerable` method implementation

// `Object.prototype.toString` method

// `Object.prototype.toString` method implementation

// `Object.setPrototypeOf` method

// `Object.values` method

// `OrdinaryToPrimitive` abstract operation

// `Promise.all` method

// `Promise.prototype.catch` method

// `Promise.prototype.then` method

// `Promise.race` method

// `Promise.reject` method

// `Promise.resolve` method

// `Promise` constructor

// `RegExp.prototype.exec` method

// `RegExp.prototype.flags` getter implementation

// `RegExp.prototype.toString` method

// `RegExp.prototype[@@replace]` method

// `RegExp.prototype[@@search]` method

// `RegExpExec` abstract operation

// `RequireObjectCoercible` abstract operation

// `SameValue` abstract operation

// `SpeciesConstructor` abstract operation

// `String.fromCodePoint` method

// `String.prototype.at` method

// `String.prototype.bold` method

// `String.prototype.codePointAt` method

// `String.prototype.endsWith` method

// `String.prototype.includes` method

// `String.prototype.matchAll` method

// `String.prototype.replace` method

// `String.prototype.search` method

// `String.prototype.small` method

// `String.prototype.trim` method

// `String.prototype.{ trimLeft, trimStart }` methods

// `String.prototype.{ trimRight, trimEnd }` methods

// `String.prototype[@@iterator]` method

// `Symbol.asyncIterator` well-known symbol

// `Symbol.for` method

// `Symbol.iterator` well-known symbol

// `Symbol.keyFor` method

// `Symbol.prototype.description` getter

// `Symbol.prototype[@@toPrimitive]` method

// `Symbol.prototype[@@toStringTag]` property

// `Symbol.toPrimitive` well-known symbol

// `Symbol.toStringTag` well-known symbol

// `Symbol` constructor

// `ToIntegerOrInfinity` abstract operation

// `ToLength` abstract operation

// `ToObject` abstract operation

// `ToPrimitive` abstract operation

// `ToPropertyKey` abstract operation

// `URLSearchParams.prototype.append` method

// `URLSearchParams.prototype.delete` method

// `URLSearchParams.prototype.entries` method

// `URLSearchParams.prototype.forEach` method

// `URLSearchParams.prototype.getAll` method

// `URLSearchParams.prototype.get` method

// `URLSearchParams.prototype.has` method

// `URLSearchParams.prototype.keys` method

// `URLSearchParams.prototype.set` method

// `URLSearchParams.prototype.size` getter

// `URLSearchParams.prototype.sort` method

// `URLSearchParams.prototype.toString` method

// `URLSearchParams.prototype.values` method

// `URLSearchParams.prototype[@@iterator]` method

// `URLSearchParams` constructor

// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances

// `maxTouchPoints` works on IE10/11 and Surface

// `ontouchstart` check works on most browsers

// `thisNumberValue` abstract operation

// `undefined` case is a Chromium 117 bug

// `webpack` dev server bug on IE global methods - use bind(fn, global)

// a new one. We need to return the patched regex when creating the new one.

// a part of `ArraySpeciesCreate` abstract operation

// a string of all valid unicode whitespaces

// absolutely positioned element rendered above the viewport (only below).

// account for possible declaration `width: 100%;` on body

// account for touch devices

// add "__proto__" for Object.getPrototypeOf polyfill

// add a flag to not completely full polyfills

// add a key to Array.prototype[@@unscopables]

// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative

// add issues from dirty option

// add missing metadata

// aliased for consumers

// all object keys, includes non-enumerable and symbols

// all other properties should be traversed as usual

// all use the same **instance** of context, regardless

// allows for nested Transitions

// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898

// an alias (using an arrow function was what caused 2651).

// and optional suffixes. Matches appear as:

// and serious performance degradation in V8

// and there will be very few iterations of this generally

// and we could have a special build just for that

// and you can only have one source map per style tag

// apply the lock styles and padding if this is the first scroll lock

// argumentsList[@@iterator] is %ArrayProto_values%

// as the second character will happen less often than

// at their appropriate level and/or having a singular approach to css variables in the package

// at-rule

// background, box-shadow

// bail early if no element is available to attach to

// bail early if no element is available to detach from

// bail early if required elements aren't present

// base64url encoding is a modification of base64 that can safely be used in URLs and filenames

// be the first ones in prod and generally later in dev

// because this module is primarily intended for the browser and node

// because we have tabIndex = -1 when disabled,

// best way to handle this.

// between creating the observer and subscribing to it.

// bottom limit

// browsers give this different errors name and messages:

// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339

// but ToNumber should return NaN if a string contains unavailable symbols

// but for some reason `nativeSlice.call(result, 1, result.length)` (called in

// but it's also required in react native and similar environments sometimes

// but their correct versions are not interesting for us

// but this is much easier and the native packages

// bytes are well-incorporated.

// cached from whatever global is present so that test runners that stub it

// call something on iterator step with safe closing on error

// can throw

// can't set metadata to uncaught frozen object

// cancel mouse events when disabled

// cancel scroll

// cannot get keys using array notation with DOMRect

// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.

// causing a render after a cancelled POP.

// changes here in the constructor in case there are any <Redirect>s

// charcode for b

// charcode for l

// check on default Array iterator

// check that a method works with the correct list

// check the existence of a method, lowercase

// chrome/safari: "RangeError", "Maximum call stack size exceeded"

// class name could be used further down

// close the menu if the user taps outside

// component at different URLs.

// consistent across browsers - Firefox will pre-decode it!

// const AugmentFactory =

// const instanceOfType = <T extends new (...args: any[]) => any>(

// const m = 0x5bd1e995;

// const r = 24;

// constructor polyfill

// contained in target

// content can grow and shrink

// contextual error map is first priority

// cross-realm fallback

// custom handling for DOM elements

// custom handling for React/Preact

// debounced at least once.

// default, so use null if that's the case.

// define iterator

// deoptimization and performance degradation

// deoptimization and serious performance degradation

// different bundles or microfrontends they will

// disabling browser focus outline

// disabling hover and active color changes when there is an overlay, but the button is not disabled

// document global can be unavailable in react native

// don't break things.  But we need to wrap it in a try catch in case it is

// don't capture the event if the menu opens on focus and the focused

// don't cycle from the start to the end

// don't hoist over string (html) components

// e.g. invalidateQueries({ active: false }), we don't want to refetch active queries

// edge: "Error", "Out of stack space"

// ellipsis for overflow text

// empty string to avoid regexp issues

// end fast-deep-equal

// ensure focus is on the Input when the menu opens

// ensure focus is restored correctly when the control becomes enabled

// ensure select state gets blurred in case Select is programmatically disabled while focused

// ensure select state gets focused in case Select is programatically re-enabled while focused (Firefox)

// error.

// eslint-disable-line no-alert

// eslint-disable-line no-new-wrappers

// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage

// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing

// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage

// eslint-disable-next-line @repo/internal/react/disallow-unstable-values

// eslint-disable-next-line @repo/internal/react/require-jsdoc

// eslint-disable-next-line @repo/internal/react/use-noop

// eslint-disable-next-line @repo/internal/styles/no-exported-styles

// eslint-disable-next-line @repo/internal/styles/no-nested-styles

// eslint-disable-next-line @typescript-eslint/no-this-alias

// eslint-disable-next-line ban/ban

// eslint-disable-next-line es/no-array-from -- required for testing

// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing

// eslint-disable-next-line es/no-array-isarray -- safe

// eslint-disable-next-line es/no-array-prototype-find -- testing

// eslint-disable-next-line es/no-array-prototype-findindex -- testing

// eslint-disable-next-line es/no-array-prototype-foreach -- safe

// eslint-disable-next-line es/no-array-prototype-includes -- detection

// eslint-disable-next-line es/no-function-prototype-bind -- detection

// eslint-disable-next-line es/no-function-prototype-bind -- safe

// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe

// eslint-disable-next-line es/no-global-this -- safe

// eslint-disable-next-line es/no-math-trunc -- safe

// eslint-disable-next-line es/no-object-create -- safe

// eslint-disable-next-line es/no-object-defineproperties -- safe

// eslint-disable-next-line es/no-object-defineproperty -- required for testing

// eslint-disable-next-line es/no-object-defineproperty -- safe

// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe

// eslint-disable-next-line es/no-object-getownpropertynames -- safe

// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing

// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe

// eslint-disable-next-line es/no-object-getprototypeof -- required for testing

// eslint-disable-next-line es/no-object-getprototypeof -- safe

// eslint-disable-next-line es/no-object-hasown -- safe

// eslint-disable-next-line es/no-object-is -- safe

// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe

// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing

// eslint-disable-next-line es/no-object-keys -- safe

// eslint-disable-next-line es/no-object-setprototypeof -- safe

// eslint-disable-next-line jsx-a11y/no-static-element-interactions

// eslint-disable-next-line no-console -- safe

// eslint-disable-next-line no-extend-native -- required

// eslint-disable-next-line no-new-func -- fallback

// eslint-disable-next-line no-prototype-builtins -- safe

// eslint-disable-next-line no-restricted-globals -- safe

// eslint-disable-next-line no-self-assign -- dirty hack

// eslint-disable-next-line no-self-compare -- NaN check

// eslint-disable-next-line no-underscore-dangle

// eslint-disable-next-line no-unused-vars -- required for .length

// eslint-disable-next-line no-unused-vars -- required for `.length`

// eslint-disable-next-line no-useless-assignment -- avoid memory leak

// eslint-disable-next-line no-useless-call -- required for testing

// eslint-disable-next-line prefer-rest-params

// eslint-disable-next-line react/no-did-update-set-state

// eslint-disable-next-line redos/no-vulnerable -- safe

// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive

// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing

// eslint-disable-next-line unicorn/relative-url-style -- required for testing

// event if clicking in the button's own padding

// every

// example message: '[OIDC-MW1EJY4X7F] Failed performing OIDC GET reque…om/{tenant}/v2.0/.well-known/openid-configuration'

// export additional methods

// extend<

// extracted by mini-css-extract-plugin

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window

// fallback for non-array-like ES3 and non-enumerable old V8 strings

// fallback for not array-like ES3 strings and DOM objects

// fast equal of /^0b[01]+$/i

// fast equal of /^0o[0-7]+$/i

// faster, simpler, safer

// fetching again when directly mounting after suspending

// filter

// filter nulls

// filterReject

// finalize string values (regular strings and functions interpolated into css calls)

// find

// findIndex

// fire an event on the atlaskit channel

// firefox: "InternalError", too much recursion"

// fix Array.prototype.{ values, @@iterator }.name in V8 / FF

// fix for Safari 12.0 bug

// fix native

// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods

// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/

// for a tiny bit of correctness that won't matter in the real world

// force css to recompute when value change due to @emotion bug.

// foreground

// function because try/catches deoptimize in certain engines.

// get a new location before the <Router> is mounted.

// get rid of any default styles

// getSnapshotBeforeUpdate(prevProps) {

// getting tag from ES6+ `Object.prototype.toString`

// giving active styles preference by listing them after focus

// handles 'first'

// having "@" as the first character

// here because toArray adds keys to all child elements and we do not want

// http://fb.me/prop-types-in-prod

// https://bugs.chromium.org/p/chromium/issues/detail?id=830565

// https://bugs.chromium.org/p/v8/issues/detail?id=14222

// https://bugs.chromium.org/p/v8/issues/detail?id=3056

// https://bugs.chromium.org/p/v8/issues/detail?id=3334

// https://bugs.chromium.org/p/v8/issues/detail?id=4118

// https://bugs.webkit.org/show_bug.cgi?id=188794

// https://bugzilla.mozilla.org/show_bug.cgi?id=773687

// https://esbench.com/bench/5b809c2cf2949800a0f61fb5

// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31065

// https://github.com/floating-ui/floating-ui/issues/1740

// https://github.com/floating-ui/floating-ui/issues/2317

// https://github.com/mathiasbynens/String.prototype.at

// https://github.com/oven-sh/bun/issues/1633

// https://github.com/rafgraph/detect-it/blob/main/src/index.ts#L19-L36

// https://github.com/reactjs/react-transition-group/pull/749

// https://github.com/tannerlinsley/react-query/issues/652

// https://github.com/tc39/proposal-array-filtering

// https://github.com/whatwg/url/pull/734

// https://github.com/zloirock/core-js/issues/306

// https://github.com/zloirock/core-js/issues/475

// https://github.com/zloirock/core-js/issues/640

// https://github.com/zloirock/core-js/issues/677

// https://github.com/zloirock/core-js/issues/679

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028

// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval

// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout

// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers

// https://samthor.au/2021/observing-dom/

// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034

// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next

// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator

// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next

// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot

// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec

// https://tc39.es/ecma262/#sec-advancestringindex

// https://tc39.es/ecma262/#sec-array.from

// https://tc39.es/ecma262/#sec-array.isarray

// https://tc39.es/ecma262/#sec-array.prototype-@@iterator

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables

// https://tc39.es/ecma262/#sec-array.prototype.concat

// https://tc39.es/ecma262/#sec-array.prototype.entries

// https://tc39.es/ecma262/#sec-array.prototype.every

// https://tc39.es/ecma262/#sec-array.prototype.filter

// https://tc39.es/ecma262/#sec-array.prototype.find

// https://tc39.es/ecma262/#sec-array.prototype.findIndex

// https://tc39.es/ecma262/#sec-array.prototype.findindex

// https://tc39.es/ecma262/#sec-array.prototype.flatmap

// https://tc39.es/ecma262/#sec-array.prototype.foreach

// https://tc39.es/ecma262/#sec-array.prototype.includes

// https://tc39.es/ecma262/#sec-array.prototype.indexof

// https://tc39.es/ecma262/#sec-array.prototype.join

// https://tc39.es/ecma262/#sec-array.prototype.keys

// https://tc39.es/ecma262/#sec-array.prototype.map

// https://tc39.es/ecma262/#sec-array.prototype.reduce

// https://tc39.es/ecma262/#sec-array.prototype.reduceright

// https://tc39.es/ecma262/#sec-array.prototype.reverse

// https://tc39.es/ecma262/#sec-array.prototype.slice

// https://tc39.es/ecma262/#sec-array.prototype.some

// https://tc39.es/ecma262/#sec-array.prototype.splice

// https://tc39.es/ecma262/#sec-array.prototype.values

// https://tc39.es/ecma262/#sec-arrayspeciescreate

// https://tc39.es/ecma262/#sec-createarrayiterator

// https://tc39.es/ecma262/#sec-createhtml

// https://tc39.es/ecma262/#sec-createiterresultobject

// https://tc39.es/ecma262/#sec-createmappedargumentsobject

// https://tc39.es/ecma262/#sec-createunmappedargumentsobject

// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive

// https://tc39.es/ecma262/#sec-date.prototype.tojson

// https://tc39.es/ecma262/#sec-date.prototype.tostring

// https://tc39.es/ecma262/#sec-function-instances-name

// https://tc39.es/ecma262/#sec-function.prototype.bind

// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags

// https://tc39.es/ecma262/#sec-getmethod

// https://tc39.es/ecma262/#sec-getsubstitution

// https://tc39.es/ecma262/#sec-hasownproperty

// https://tc39.es/ecma262/#sec-isarray

// https://tc39.es/ecma262/#sec-iscallable

// https://tc39.es/ecma262/#sec-isconstructor

// https://tc39.es/ecma262/#sec-isregexp

// https://tc39.es/ecma262/#sec-json-@@tostringtag

// https://tc39.es/ecma262/#sec-json.stringify

// https://tc39.es/ecma262/#sec-lengthofarraylike

// https://tc39.es/ecma262/#sec-math-@@tostringtag

// https://tc39.es/ecma262/#sec-math.trunc

// https://tc39.es/ecma262/#sec-newpromisecapability

// https://tc39.es/ecma262/#sec-object.create

// https://tc39.es/ecma262/#sec-object.defineproperties

// https://tc39.es/ecma262/#sec-object.defineproperty

// https://tc39.es/ecma262/#sec-object.entries

// https://tc39.es/ecma262/#sec-object.freeze

// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor

// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors

// https://tc39.es/ecma262/#sec-object.getownpropertynames

// https://tc39.es/ecma262/#sec-object.getownpropertysymbols

// https://tc39.es/ecma262/#sec-object.getprototypeof

// https://tc39.es/ecma262/#sec-object.isextensible

// https://tc39.es/ecma262/#sec-object.keys

// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable

// https://tc39.es/ecma262/#sec-object.prototype.tostring

// https://tc39.es/ecma262/#sec-object.setprototypeof

// https://tc39.es/ecma262/#sec-object.values

// https://tc39.es/ecma262/#sec-ordinarytoprimitive

// https://tc39.es/ecma262/#sec-promise-executor

// https://tc39.es/ecma262/#sec-promise.all

// https://tc39.es/ecma262/#sec-promise.prototype.catch

// https://tc39.es/ecma262/#sec-promise.prototype.then

// https://tc39.es/ecma262/#sec-promise.race

// https://tc39.es/ecma262/#sec-promise.reject

// https://tc39.es/ecma262/#sec-promise.resolve

// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace

// https://tc39.es/ecma262/#sec-regexp.prototype-@@search

// https://tc39.es/ecma262/#sec-regexp.prototype.exec

// https://tc39.es/ecma262/#sec-regexp.prototype.tostring

// https://tc39.es/ecma262/#sec-regexpexec

// https://tc39.es/ecma262/#sec-requireobjectcoercible

// https://tc39.es/ecma262/#sec-samevalue

// https://tc39.es/ecma262/#sec-speciesconstructor

// https://tc39.es/ecma262/#sec-string.fromcodepoint

// https://tc39.es/ecma262/#sec-string.prototype-@@iterator

// https://tc39.es/ecma262/#sec-string.prototype.bold

// https://tc39.es/ecma262/#sec-string.prototype.codepointat

// https://tc39.es/ecma262/#sec-string.prototype.endswith

// https://tc39.es/ecma262/#sec-string.prototype.includes

// https://tc39.es/ecma262/#sec-string.prototype.matchall

// https://tc39.es/ecma262/#sec-string.prototype.replace

// https://tc39.es/ecma262/#sec-string.prototype.search

// https://tc39.es/ecma262/#sec-string.prototype.small

// https://tc39.es/ecma262/#sec-string.prototype.trim

// https://tc39.es/ecma262/#sec-string.prototype.trimend

// https://tc39.es/ecma262/#sec-string.prototype.trimstart

// https://tc39.es/ecma262/#sec-symbol-constructor

// https://tc39.es/ecma262/#sec-symbol.asynciterator

// https://tc39.es/ecma262/#sec-symbol.for

// https://tc39.es/ecma262/#sec-symbol.iterator

// https://tc39.es/ecma262/#sec-symbol.keyfor

// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive

// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag

// https://tc39.es/ecma262/#sec-symbol.prototype.description

// https://tc39.es/ecma262/#sec-symbol.toprimitive

// https://tc39.es/ecma262/#sec-symbol.tostringtag

// https://tc39.es/ecma262/#sec-thisnumbervalue

// https://tc39.es/ecma262/#sec-tointegerorinfinity

// https://tc39.es/ecma262/#sec-tolength

// https://tc39.es/ecma262/#sec-toobject

// https://tc39.es/ecma262/#sec-toprimitive

// https://tc39.es/ecma262/#sec-topropertykey

// https://url.spec.whatwg.org/#dom-urlsearchparams-append

// https://url.spec.whatwg.org/#dom-urlsearchparams-delete

// https://url.spec.whatwg.org/#dom-urlsearchparams-get

// https://url.spec.whatwg.org/#dom-urlsearchparams-getall

// https://url.spec.whatwg.org/#dom-urlsearchparams-has

// https://url.spec.whatwg.org/#dom-urlsearchparams-set

// https://url.spec.whatwg.org/#dom-urlsearchparams-sort

// https://url.spec.whatwg.org/#interface-urlsearchparams

// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior

// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.

// icon size cannot grow and shrink

// if clearTimeout wasn't available but was latter defined

// if contextSharing is on, we share the first and at least one

// if filters.refetchActive is not provided and filters.active is explicitly false,

// if setTimeout wasn't available but was latter defined

// if the primaryColor is the same as the secondaryColor we

// if the target is not iterable or it's an array with the default iterator - use a simple case

// if the token is not found - replacing it with variable name without any value, to avoid it being undefined which would result in invalid css

// if we are mounting and running this it means appear _must_ be set

// ignore everything but left clicks

// ignore mouse events that weren't triggered by the primary button

// ignore the keydown event from an Input Method Editor(IME)

// important! this hides the flashing cursor

// important! without `width` browsers won't allow focus

// in Safari 9 which returns 'object' for typed arrays and other constructors.

// in non-ending mode, where "/test/" shouldn't match "/test//route".

// in old Chrome, versions of V8 isn't V8 = Chrome / 10

// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`

// in popular engines, so it's moved to a separate module

// include the context of this component, .e.g, lost data.

// incorrect for RTL.

// increment active scroll locks

// initialize with source styles

// inline-flex child

// insertion sort

// instance of the context across the window

// is that other hash histories in the page will consider it a POP.

// is valid at the end of a path match, not in the middle. This is important

// isInvalid: false,

// it as the trailing edge, or we've hit the `maxWait` limit.

// it can work only with native `setPrototypeOf`

// it's 1 in dev because we insert source maps that map a single rule to a location

// iterable DOM collections

// its own modifications.

// justifyContent required for shouldFitContainer buttons with an icon inside

// keeping a list of keys we've seen in sessionStorage.

// keeping a list of paths we've seen in sessionStorage.

// key is the value of the data-emotion attribute, it's used to identify different sheets

// keyboard events can only occur when there is an overlay

// knows how to merge the passed-in default theme with

// let regex = `\\d{2}:\\d{2}:\\d{2}`;

// make `.constructor === Promise` work for native promise-based APIs

// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs

// make `instanceof Promise` work for native promise-based APIs

// make certain babel optimisations not possible

// make sure that retries that were potentially cancelled due to unmounts can continue

// makes no sense without proper strict mode support

// makes subclassing work correct for wrapped built-ins

// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`

// map

// margin for button has been applied to css reset

// massage in target styles

// match already ends with a slash, we remove it for consistency. The slash

// may need to be constrained after flipping

// merge sort

// merge<

// merge<Incoming extends AnyZodObject>(

// might use a different theme context in the future anyway

// modern V8 bug

// modern engines have queueMicrotask method

// multi select, by default, IS clearable

// multiSelected items are usually items that have already been selected

// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,

// newCtx is used to not collect issues from inner types in ctx

// next index

// nextStatus will always be ENTERING or EXITING.

// no children inside the component will require analytics themselves.

// no enter animation skip right to ENTERED

// no exit animation skip right to EXITED

// not memoizing themeStyles as `tokens` is an unstable reference

// not necessary to add metadata

// not passing the registered cache to serializeStyles because it would

// not the most efficient thing ever but this is a pretty rare case

// object ID

// of a tag and escaping quotes in arguments

// of course, fail.

// of module scoping.

// of whitespaces and has a correct name

// old engines have not location.origin

// on events on child elements, not the document (which we've attached this handler to).

// on the initial render. If there are, they will replace/push when

// onClick prevented default

// only scroll if the menu isn't already open

// optimisation for array iterators

// option is already selected; it breaks the flow of navigation

// optional / simple context binding

// or AnalyticsContext component instead.

// or set by the user as a default value so we assume they are not disabled

// otherwise there will be an error

// override it with the color we want.

// parseInt parses a string to a first unavailable symbol

// positioning behaviour is almost identical for portalled and fixed,

// prevent exposing of metadata key

// preventDefault prevents regular active styles from applying in Firefox

// property

// props must be spread first to stop `components` being overridden

// provide some affordance on touch devices

// push the parent context's meta data into the context.

// rather setState here and ignore the hashchange. The caveat here

// react-select disables pointer events when isDisabled is true.

// reapply original body styles, if any

// ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode

// reference, so return the new value at the same index

// registration has to happen here as the result of this might get consumed by `cx`

// remove cursor on desktop

// remove cursor on mobile whilst maintaining "scroll into view" behaviour

// remove touch listeners

// required

// required for offset[Height, Top] > keyboard scroll

// reset bottom/top flags

// reset move vars

// return a primitive with prefix

// return first issue-free validation if it exists

// return invalid

// return the existing current (pre render)

// return value is generally a set of nodes with the tokens applied appropriately.

// return value is ignored

// returning `#document` an infinite loop won't occur.

// run catchall validation

// safely decrement active scroll locks

// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error

// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.

// same wrapper element whether fixed or portalled

// scroll the focused option into view if necessary

// scrollbars occur only if the user passes in a custom component with overflow: scroll

// select-option when !isMulti does not return option so we assume selected option is value

// selector

// separator doesn't make sense without the dropdown indicator

// set the --icon-primary-color to Canvas

// set touch start so we can calculate touchmove delta

// setState callbacks and unmounting in testing, so always make sure that

// shim for using process in browser

// simulate the 'y' flag.

// single select, by default, IS NOT clearable

// so check `userAgent` even if `.v8` exists, but 0

// so give them whatever is available below rather than the minHeight.

// so that using `css` from `emotion` and passing the result to the css prop works

// so we are targeting the attribute

// so we don't have to add it to registered cache.

// so we use the same component. the actual portalling logic is forked

// so while this could be technically correct then it would be slower and larger

// some

// some Chrome versions have non-configurable methods on DOMTokenList

// some old implementations (like WebKit) could pass numbers as keys

// some other error. we should definitely know about these

// some updates should toggle the state of the input visibility

// something went wrong, return default state

// space

// store any styles already applied to the body

// stretching to full width / height of button

// strings for SVG elements, returning NaN. Fallback to `0` in this case.

// target

// technically this means that the @import rules will

// the big drawback is that the css won't be editable in devtools

// the cache will never be null in the browser

// the focused value is still in the selectValue, return it

// the focusedValue is not present in the next selectValue array by

// the matched portion of the URL

// the max length is how many rules we have per style tag, it's 65000 in speedy mode

// the menu is rendered

// the path used to match

// the previous one, we may end up in a weird state. Figure out the

// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and

// the tree but if it's a string tag, we know it won't

// then global override map

// then reset the ariaSelection to null

// then schema-bound map if available

// these are a stable ref because of the useTrackedRef hook

// these changes should already be reflected in the optimistic result.

// they mount and since cDM fires in children before parents, we may

// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper

// this ignores label

// this improves memory usage since we can avoid storing the whole style string

// this is a really hot path

// this is important as we need it to still block

// this is the ultrafast version, works across browsers

// this is usually to convey state i.e. Checkbox checked -> not checked

// this method was added to unscopables after implementation

// this shouldn't really matter in the real world though

// this weirdness brought to you by firefox

// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346

// to ensure that if React Query is used across

// to is absolute

// to is relative, drop the filename

// to prevent an infinite loop of updates.

// to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.

// to trigger an unmount/remount for two <Route>s that render the same

// toObject with fallback for non-array-like ES3 strings

// trailing edge, the system time has gone backwards and we're treating

// trigger revalidation after cert confirmed

// try {

// update visited steps with currentStep

// using a global regex with .exec is stateful so lastIndex has to be reset each time

// v8 likes predictible objects

// w/o altered newTarget, lot of arguments case

// w/o altered newTarget, optimization for 0-4 arguments

// warn on circular references, don't crash

// we are 'disabling' input with a button when there is an overlay

// we can cancel any pending setState callbacks after we unmount.

// we can't check .prototype since constructors produced by .bind haven't it

// we can't trust `scrollParent.scrollHeight` --> it may increase when

// we can't use just `it == null` since of `document.all` special case

// we check the second character first because having "i"

// we haven't completely correct pre-ES6 way for getting `new.target`, so use this

// we need to insert @import rules before anything else

// we only need to add the styles to the registered cache if the

// we start at 1 since we've already handled the first arg

// we want to provide as much of the menu as possible to the user,

// we'll let the query continue so the result can be cached

// we're checking on event.target here instead of event.currentTarget, because we want to assert information

// we're doing this to avoid preconstruct's dead code elimination in this one case

// webpackRuntimeModules

// when the Select is initially focused

// when the select value should change, we should reset focusedValue

// when using suspense to prevent infinite loop of fetches

// when when somebody has screwed with setTimeout but no I.E. maddness

// whether or not we matched exactly

// which is necessary in order to transition styles when adding a class name.

// which takes priority over color and makes the text unreadable. Need to

// will be updated on the next render

// with a scroll distance, we perform scroll on the element

// with adding support of @@isConcatSpreadable and @@species

// with adding support of @@species

// with altered newTarget, not support built-in constructors

// within the component based on `menuPosition`

// workaround of WebKit ~ iOS Safari 10.1 bug

// workaround of old WebKit + `eval` bug

// wrap Symbol constructor for correct work with undefined description

// wrapped in strict mode code which doesn't define any globals.  It's inside a

// }

//# sourceMappingURL=context.js.map

//# sourceMappingURL=index.esm.mjs.map

//# sourceMappingURL=index.js.map

//# sourceMappingURL=react-router-dom.js.map

//# sourceMappingURL=react-router.js.map

//# sourceMappingURL=styled-components.browser.esm.js.map

//# sourceMappingURL=zod.module.js.map

/// <reference types="user-agent-data-types" />

//////////                                 //////////

//////////      ZodDiscriminatedUnion      //////////

/////////////////////////////////////////////////////

//@ts-expect-error TODO Fix legit TypeScript 3.9.6 improved inference error

//TODO create interface with structure gotten from backend

//Update discoveryUrl based on firstField and secondField

//className

//normal enviroments in sane situations

//used to find new state
