{"version":3,"file":"vendor-50af2411d8fb43c4ca8e671c01abc161.js","names":["window","EmberENV","extra","key","EXTEND_PROTOTYPES","FEATURES","_APPLICATION_TEMPLATE_WRAPPER","_DEFAULT_ASYNC_OBSERVERS","_JQUERY_INTEGRATION","_NO_IMPLICIT_ROUTE_MODEL","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","loader","define","requireModule","require","requirejs","runningTests","global","dict","obj","Object","create","undefined","oldGlobals","id","pending","mod","findModule","i","length","exports","module","noConflict","aliases","oldName","newName","hasOwnProperty","makeDefaultExport","registry","uuid","defaultDeps","Module","deps","callback","alias","this","hasExportsAsDep","isAlias","reified","Array","state","noop","Alias","referrer","Error","missingModule","findDeps","push","resolve","child","charAt","parts","split","parentBase","slice","l","part","pop","join","has","prototype","isExtensible","wrapModules","reify","result","apply","unsee","_reify","dep","entry","makeRequire","r","moduleId","arguments","unsupportedModule","isArray","name","defaultExport","target","entries","_eak_seen","clear","globalObj","globalThis","self","seen","internalRequire","_name","referrerName","moduleName","Boolean","hasDom","_exports","hasDOM","Window","constructor","document","location","history","navigator","userAgent","isChrome","chrome","opera","isFirefox","test","INIT_FACTORY","fullName","privateNames","type","rawName","intern","privateSuffix","Container","options","owner","cache","dictionary","factoryManagerCache","isDestroyed","isDestroying","lookup","container","normalizedName","singleton","isSingleton","cached","factoryManager","factoryFor","instantiate","isInstantiatable","isSingletonInstance","instance","destroy","isFactoryInstance","isSingletonClass","fullname","isFactoryClass","class","instantiateFactory","normalize","destroyDestroyables","finalizeDestroy","resetCache","reset","member","resetMember","ownerInjection","injection","setOwner","getOption","factory","manager","InternalFactoryManager","keys","value","Symbol","setFactoryFor","madeToString","injections","toString","makeToString","props","VALID_FULL_NAME_REGEXP","Registry","fallback","resolver","registrations","_normalizeCache","_resolveCache","_failSet","Set","_options","_typeOptions","register","delete","unregister","_normalizedName","resolved","add","describe","lookupDescription","normalizeFullName","isValidFullName","optionsForType","getOptionsForType","getOptions","optionName","knownForType","fallbackKnown","resolverKnown","localKnown","registeredNames","assign","Math","random","Date","now","replace","checkGlobal","ENV","context","global$1","nodeType","mainContext","Function","Ember","imports","ENABLE_OPTIONAL_FEATURES","LOG_STACKTRACE_ON_DEPRECATION","LOG_VERSION","RAISE_ON_DEPRECATION","STRUCTURED_PROFILE","_DEBUG_RENDER_TREE","_RERENDER_LOOP_LIMIT","EMBER_LOAD_HOOKS","flag","call","defaultValue","hookName","hooks","filter","hook","feature","onerror","dispatchOverride","handler","onErrorTarget","renderers","string","s","isHTMLSafe","toHTML","String","possible","badChars","escapeChar","TEMPLATES","str","SafeString","renderSettledDeferred","RSVP","defer","_getCurrentRunLoop","_backburner","schedule","NO_OP","promise","setComponentManager$1","template","templates","getOwner","_renderMode","serializeBuilder","bind","rehydrationBuilder","clientBuilder","privatize","RootTemplate","Renderer","OutletView","OutletTemplate","Input","LinkTo","Textarea","Component","_templateFactory","createTemplateFactory","block","isStrictMode","InputTemplate","scope","on","NOOP$2","InternalComponent","args","caller","guidFor","validateArguments","named","isSupportedArgument","onUnsupportedArgument","ref","valueForRef","positional","index","listenerFor","listener","OPAQUE_CONSTRUCTOR_MAP","WeakMap","opaquify","opaque","assert","set","setInternalComponentManager","INTERNAL_COMPONENT_MANAGER","setComponentTemplate","CAPABILITIES$2","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","createCaller","dynamicScope","updateHook","createInstance","wrapped","willDestroy","hasSubOwner","getCapabilities","definition","_env","_dynamicScope","get","capture","untrack","didCreate","didUpdate","didRenderLayout","didUpdateLayout","getDebugName","getSelf","createConstRef","getDestroyable","__decorate$3","decorators","desc","d","c","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","UNINITIALIZED","freeze","valueForEvent","event","elementForEvent","valueFrom","reference","LocalValue","isConstRef","isUpdatableRef","UpstreamValue","ForkedValue","tracked","updateRef","lastUpstreamValue","upstream","upstreamValue","local","AbstractInput","super","_value","valueDidChange","change","input","keyUp","isVirtualEventListener","_listener","indexOf","action$1","__decorate$2","isValidInputType","INPUT_TYPES","INPUT_ELEMENT","createElement","isValid","e","_Input","_checked","isCheckbox","checked","checkedDidChange","element","LinkToTemplate","__decorate$1","EMPTY_ARRAY","EMPTY_QUERY_PARAMS","isMissing","isPresent","isQueryParams","debugFreeze","_LinkTo","currentRouteCache","createCache","consumeTag","tagFor","routing","currentRouteName","classes","isActive","classFor","willBeActive","isLoading","isDisabled","href","route","models","query","generateURL","click","isSimpleClick","currentTarget","preventDefault","payload","routeName","queryParams","transition","flaggedInstrument","transitionTo","namespaceRoute","currentRoute","getValue","isActiveForState","currentState","current","targetState","some","model","isEngine","EngineInstance","getEngineParent","engineMountPoint","mountPoint","className","currentWhen","isActiveForRoute","service","descriptorFor","property","getPrototypeOf","superOnUnsupportedArgument","configurable","enumerable","superModelsDescriptor","superModelsGetter","superQueryDescriptor","superQueryGetter","qp","values","TextareaTemplate","__decorate","_Textarea","isTemplateFactory","referenceForParts","rootRef","shift","childRefFor","childRefFromParts","parseAttributeBinding","microsyntax","colonIndex","prop","substring","attribute","installAttributeBinding","component","parsed","operations","isSimple","elementId","elementIdRef","createPrimitiveRef","setAttribute","isPath","createClassNameBindingRef","truthy","falsy","createSimpleClassNameBindingRef","inner","createComputeRef","createColonClassNameBindingRef","path","dasherizedPath","dasherize","NOOP$1","ComponentStateBucket","argsTag","finalizer","hasWrappedElement","isInteractive","classRef","argsRevision","valueForTag","registerDestructor","beginUntrackFrame","trigger","endUntrackFrame","getViewElement","clearElementView","clearViewElement","renderer","finalize","internalHelper","helper","setInternalHelperManager","ACTIONS","WeakSet","action","fn","restArgs","debugKey","debugLabel","processArgs","valuePathRef","actionArgsRef","mergeArgs","readValue","map","concat","valuePath","NOOP","makeArgsProcessor","isInvokableRef","makeClosureAction","invokeRef","targetRef","actionRef","makeDynamicClosureAction","createUnboundRef","actions","label","processComponentArgs","namedArgs","attrs","ARGS","isAction","MutableCell","REF","MUTABLE_CELL","update","val","enumerableSymbol","HAS_BLOCK","DIRTY_TAG","IS_DISPATCHING_ATTRS","BOUNDS","EMBER_VIEW_REF","CurlyComponentManager","templateFor","layout","layoutName","_factory","unwrapTemplate","asWrappedLayout","getDynamicLayout","bucket","getTagName","tagName","CURLY_CAPABILITIES","ComponentClass","__ARGS__","rest","__args__","positionalParams","captured","reifyPositional","count","min","at","EMPTY_ARRAY$1","callerSelfRef","hasBlock","parentView","view","capturedArgs","beginTrackFrame","endTrackFrame","aliasIdToElementId","_target","_instrumentStart","initialRenderInstrumentDetails","addChildView","_transitionTo","didCreateElement","setViewElement","setElementView","attributeBindings","classNames","classNameBindings","applyAttributeBindings","forEach","binding","bounds","rerenderInstrumentDetails","validateTag","setProperties","instrumentDetails","initialRender","CURLY_COMPONENT_MANAGER","isCurlyManager","lazyEventsProcessed","CoreView","extend","ChildViewsSupport","ViewStateSupport","ClassNamesSupport","TargetActionSupport","ActionSupport","ViewMixin","didReceiveAttrs","didRender","didUpdateAttrs","willRender","willUpdate","isComponent","init","properties","_superRerender","rerender","_rerender","createTag","eventDispatcher","_dispatcher","lazyEventsProcessedForComponentClass","proto","lazyEvents","mappedEventName","setupHandlerForBrowserEvent","__dispatcher","dispatcher","method","setupHandlerForEmberEvent","dirtyTag","PROPERTY_DID_CHANGE","getAttr","readDOMAttr","_element","isSVG","namespaceURI","normalized","normalizeProperty","getAttribute","_a","isComponentFactory","reopenClass","RECOMPUTE_TAG","IS_CLASSIC_HELPER","Helper","FrameworkObject","recompute","isHelperFactory","helper$1","ClassicHelperManager","capabilities","helperCapabilities","hasValue","hasDestroyable","createHelper","ret","compute","setHelperManager","CLASSIC_HELPER_MANAGER","getInternalHelperManager","Wrapper","SIMPLE_CLASSIC_HELPER_MANAGER","helperFn","__string","escape","chr","instrumentationPayload$1","def","object","CAPABILITIES$1","OutletComponentManager","_owner","_args","env","parentStateRef","currentStateRef","controller","debugRenderTree","outletBucket","parentState","parentOwner","render","currentOwner","engine","engineBucket","getDebugCustomRenderTree","nodes","EMPTY_ARGS","OUTLET_MANAGER","OutletComponentDefinition","handle","capabilityFlagsFrom","compilable","asLayout","resolvedName","RootComponentManager","_state","CONSTANT_TAG","ROOT_CAPABILITIES","RootComponentDefinition","getFactoryFor","EachInWrapper","eachIn","iterable","tagForObject","isProxy","_contentFor","BoundedIterator","position","isEmpty","memoFor","next","valueFor","memo","ArrayIterator","from","fromForEachable","array","item","EmberArrayIterator","objectAt","ObjectIterator","fromIndexable","isTracking","isMapLike","NativeIterator","iterator","done","ArrayLikeNativeIterator","_result","MapLikeNativeIterator","hasForEach","isNativeIterable","setGlobalContext","DEFAULT_HELPER_MANAGER","scheduleRevalidate","ensureInstance","toBool","predicate","tagForProperty","isHTMLSafe$1","toIterator","isEmberArray","toEachInIterator","isObject","toEachIterator","getProp","_getProp","setProp","_setProp","getPath","setPath","scheduleDestroy","destroyable","destructor","scheduleDestroyed","finalizeDestructor","warnIfStyleNotTrusted","msg","deprecate","EmberEnvironmentDelegate","enableDebugTooling","onTransactionCommit","disallowDynamicResolution","nameOrValueRef","typeRef","locRef","originalRef","nameOrValue","arg","inElementNullCheckHelper","normalizeClassHelper","classNameArg","valueArg","classNameParts","fullNameRef","trackArray","mut","createInvokableRef","readonly","firstArg","createReadOnlyRef","unbound","uniqueId","uniqueId$1","a","MODIFIERS","POINTER_EVENT_TYPE_REGEX","ActionHelper","registeredActions","ActionManager","registerAction","actionState","actionId","unregisterAction","ActionState","actionArgs","positionalArgs","tag","createUpdatableTag","eventName","getEventName","getActionArgs","getTarget","implicitTarget","actionName","bubbles","allowedKeys","bubblesVal","preventDefaultVal","allowedKeysVal","shouldBubble","isAllowedEvent","stopPropagation","send","ACTION_MODIFIER_MANAGER","install","actionNameRef","ensureEventSetup","getTag","actionModifier","setInternalModifierManager","CAPABILITIES","MOUNT_MANAGER","templateFactory","buildChildEngineInstance","boot","modelRef","controllerFactory","generateControllerFactory","associateDestroyableChild","templateModuleName","MountDefinition","mountHelper","lastName","lastDef","nameRef","createCapturedArgs","EMPTY_POSITIONAL","curry","CurriedType","outletHelper","outletRef","outlets","main","lastState","outletState","outlet","stateFor","validate","instrumentationPayload","BUILTIN_KEYWORD_HELPERS","hash","BUILTIN_HELPERS","get$1","BUILTIN_KEYWORD_MODIFIERS","BUILTIN_MODIFIERS","on$1","ResolverImpl","componentDefinitionCache","Map","lookupPartial","lookupHelper","lookupBuiltInHelper","lookupModifier","builtin","modifier","lookupBuiltInModifier","lookupComponent","pair","componentFor","isFactory","getComponentTemplate","templateFullName","layoutFor","lookupComponentPair","cachedComponentDefinition","templateOnlyComponent","TEMPLATE_ONLY_COMPONENT_MANAGER","getInternalComponentManager","TOP_LEVEL_NAME","environment","_environment","application","namespace","outletStateTag","into","appendTo","selector","querySelector","setOutletState","DynamicScope","RootState","root","runtime","parentElement","builder","getViewId","destroyed","renderMain","nextSibling","sync","alwaysRevalidate","isFor","possibleRoot","inTransaction","deregister","splice","loops","_scheduleRevalidate","_isValid","resolveRenderPromise","_viewRegistry","rootTemplate","viewRegistry","_inRenderTransaction","_lastRevision","_destroyed","_rootTemplate","_roots","_removedRoots","_builder","_isInteractive","_runtimeResolver","sharedArtifacts","artifacts","_context","programCompilationContext","heap","RuntimeOpImpl","runtimeEnvironmentDelegate","_runtime","runtimeContext","appendOperations","DOMTreeConstruction","NodeDOMTreeConstruction","updateOperations","DOMChanges","appendOutletView","outletView","WRAPPED_CAPABILITIES","WRAPPED_OUTLET_MANAGER","createRootOutlet","_appendDefinition","UNDEFINED_REFERENCE","rootState","_renderRoot","remove","cleanupRootFor","roots","_clearAllRoots","getElement","getBounds","firstNode","lastNode","getAppendOperations","_renderRootsTransaction","_renderRoots","initialRootsLength","removedRoots","CURRENT_TAG","rootIndex","completedWithoutError","scheduleOnce","_revalidate","componentCapabilities","componentCapabilities$1","modifierCapabilities","modifierCapabilities$1","objectPrototype","counters","UNDEFINED","symbol","ListenerKind","currentListenerVersion","Meta","_listenersVersion","_inheritedEnd","_flattenedVersion","_parent","_descriptors","_mixins","_lazyChains","_values","_revisions","_isInit","source","_listeners","parent","meta","setInitializing","unsetInitializing","isInitializing","isPrototypeMeta","_getOrCreateOwnMap","_getOrCreateOwnSet","_findInheritedMap","subkey","pointer","_hasInInheritedSet","setValueFor","revisionFor","revisions","setRevisionFor","revision","writableLazyChainsFor","lazyChains","chains","readableLazyChainsFor","addMixin","mixin","hasMixin","forEachMixins","writeDescriptors","peekDescriptors","possibleDesc","removeDescriptors","forEachDescriptors","addToListeners","once","pushListener","ONCE","ADD","removeFromListeners","REMOVE","kind","listeners","writableListeners","indexOfListener","flattenedListeners","parentListeners","unshift","matchingListeners","observerEvents","metaStore","setMeta","peekMeta","maybeMeta","newMeta","opts","arrayObserversHelper","addListener","flags","unprocessedNamespaces","NAMESPACES","altKey","makeComputedDecorator","AliasedProperty","AliasDecoratorImpl","config","AutoComputedProperty","ComputedDecoratorImpl","deprecatedKey","newKey","idx","removedCnt","addedCnt","eachProxy","EACH_PROXIES","arrayDidChange","arrayWillChange","searchDisabled","processAllNamespaces","NAMESPACES_BY_ID","removeListener","targetOrFunction","functionOrName","sendEvent","params","_meta","shouldSchedule","currentRevision","lastKnownRevision","ASYNC_OBSERVERS","activeObservers","observer","lastRevision","sendObserver","getChainTagsForKey","tagMetaFor","propertyNames","matched","elementDescriptor","isElementDescriptor","getInjection","propertyName","decorator","computed","keyName","descriptorForProperty","propertyDesc","setClassicDecorator","func","events","setListeners","getName","SYNC_DEFAULT","changeEvent","deactivateObserver","start","deleteCount","items","replaceInNativeArray","changeProperties","unprocessedMixins","SELF_TAG","AFTER_OBSERVERS","SYNC_OBSERVERS","addObserver","activateObserver","getOrCreateActiveObserversFor","observerMap","size","destroyObservers","lastIndexOf","suspended","DEACTIVATE_SUSPENDED","SCHEDULED_DEACTIVATE","revalidateObservers","flushSyncObservers","setObserverSuspended","propertyKey","addMandatorySetter","customTagFor","getCustomTagFor","markObjectAsDirty","dirtyTagFor","deferred","notifyPropertyChange","beginPropertyChanges","endPropertyChanges","resumeObserverDeactivation","arrayContentWillChange","startIdx","removeAmt","addAmt","arrayContentDidChange","notify","removedAmount","previousLength","normalStartIdx","CHUNK_SIZE","chunk","operation","willChange","didChange","CHAIN_PASS_THROUGH","finishLazyChains","lazyTags","updateTag","getChainTagsForKeys","tagMeta","tags","getChainTags","combine","chainTags","meta$1","segment","descriptor","currentTagMeta","currentMeta","pathLength","segmentEnd","lastSegmentEnd","arrLength","propertyTag","unknownProperty","instanceMeta","placeholderTag","maybeTarget","maybeKey","maybeDesc","ComputedDescriptor","_dependentKeys","setup","_obj","_propertyDesc","teardown","DESCRIPTOR_GETTER_FUNCTION","getter","DESCRIPTOR_SETTER_FUNCTION","COMPUTED_SETTERS","DecoratorClass","isClassicDecorator","setPrototypeOf","DECORATOR_DESCRIPTOR_MAP","descriptorForDecorator","dec","END_WITH_EACH_REGEX","expandProperties","pattern","dive","prefix","newStart","arrayLength","end","tempArr","after","ComputedProperty","_readOnly","_hasConfig","_getter","_setter","maybeConfig","objectConfig","_property","_key","passedArgs","addArg","_throwReadOnlyError","_set","inspect","hadCachedValue","cachedValue","track","readOnly","data","previousDesc","wasDescriptor","defineDecorator","defineValue","writable","firstDotIndexCache","Cache","PROXY_CONTENT","hasUnknownProperty","_getPath","forSet","fakeProxy","tolerant","newRoot","_setPath","currentValue","lookupDescriptor","setUnknownProperty","setProxy","oneWay","_keyName","AliasedProperty_readOnlySet","AliasedProperty_oneWaySet","Libraries","_registry","_coreLibIndex","_getLibraryByName","libs","lib","version","isCoreLibrary","registerCoreLibrary","deRegister","libraries","VERSION","DEBUG_INJECTION_FUNCTIONS","initializer","_desc","descriptorForField","setter","trackedData","newValue","newDesc","isTracked","TrackedDescriptor","_get","caches","_unprocessedNamespaces","v","findNamespaces","code","charCodeAt","tryIsNamespace","setName","processNamespace","_processNamespace","namespaces","paths","isNamespace","glimmerGetOwner","glimmerSetOwner","onerrorDefault","reason","error","withErrorThrown","errorThrown","unwrapErrorThrown","withName","errorFor","overrideDispatch","getDispatchOverride","configure","cb","_rsvpErrorQueue","default","contentFor","proxy","content","customTagForProxy","ProxyMixin","Mixin","_super","setCustomTagFor","isTruthy","m","ActionHandler","mergedProperties","Comparable","compare","ContainerProxyMixin","__container__","RegistryProxyMixin","__registry__","resolveRegistration","registryAlias","hasRegistration","registeredOption","registerOptions","registeredOptions","registerOptionsForType","registeredOptionsForType","actionContext","actionContextObject","triggerAction","CLASSIFY_CACHE","STRING_DASHERIZE_CACHE","STRING_DASHERIZE_REGEXP","decamelize","DECAMELIZE_CACHE","STRING_CLASSIFY_REGEXP_1","STRING_CLASSIFY_REGEXP_2","STRING_CLASSIFY_REGEXP_3","replace1","_match","_separator","toUpperCase","replace2","initialChar","match","STRING_DECAMELIZE_REGEXP","toLowerCase","Opaque","methodName","debugName","GUID_KEY","floor","GUID_PREFIX","guid","OBJECT_GUIDS","NAMES","NON_OBJECT_GUIDS","possibleSymbol","GENERATED_SYMBOLS","PROXIES","OBSERVERS_LISTENERS_MAP","createObserverListenerMetaFor","observers","k","isNone","objectToString","superFunc","hasSuper","IS_WRAPPED_FUNCTION_SET","_wrap","ROOT","_uuid","HAS_SUPER_PATTERN","fnToString","checkHasSuper","HAS_SUPER_MAP","ObserverListenerMeta","superWrapper","orig","limit","store","misses","hits","purge","setupMandatorySetter","teardownMandatorySetter","setWithMandatorySetter","EmberObject","childViews","nativeDescDecorator","getChildViews","appendChild","concatenatedProperties","priorState","_currentState","_states","exit","enter","K","nearestOfType","klass","isOfType","detect","nearestWithProperty","append","body","willInsertElement","didInsertElement","willClearRender","willDestroyElement","didDestroyElement","parentViewDidChange","handleEvent","evt","ROOT_ELEMENT_CLASS","EventDispatcher","touchstart","touchmove","touchend","touchcancel","keydown","keyup","keypress","mousedown","mouseup","contextmenu","dblclick","focusin","focusout","submit","dragstart","drag","dragenter","dragleave","dragover","drop","dragend","rootElement","_eventHandlers","_didSetup","finalEventNameMapping","_sanitizedRootElement","_reverseEventNameMapping","addedEvents","_rootElement","reduce","specifiedRootElement","classList","setupHandler","viewHandler","getElementView","actionHandler","attr","attributes","cancelBubble","hasAttribute","parentNode","Element","addEventListener","removeEventListener","CHILD_VIEW_IDS","initChildViews","ELEMENT_VIEW","VIEW_ELEMENT","affectedStyle","b","contains","collectChildViews","rootViews","getViewRange","getBoundingClientRect","getClientRects","MouseEvent","shiftKey","metaKey","ctrlKey","secondaryClick","which","el","elMatches","views","getViewBounds","range","createRange","setStartBefore","setEndAfter","matches","Evented","isView","_superTrigger","_trigger","_superHas","_has","preRender","_debugContainerKey","isViewFactory","inject","states","DEFAULT","PRE_RENDER","HAS_ELEMENT","IN_DOM","DESTROYING","inDOM","hasElement","destroying","actualGetOwner","actualSetOwner","Application","Engine","_bootPromise","_bootResolver","buildRegistry","Router","Route","HashLocation","HistoryLocation","NoneLocation","P","BucketCache","RouterService","commonSetupRegistry","setupApplicationRegistry","_document","customEvents","autoboot","_globalsMode","_readinessDeferrals","_booted","_applicationInstances","_prepareForGlobalsMode","waitForDOMReady","buildInstance","ApplicationInstance","base","_watchInstance","_unwatchInstance","_buildDeprecatedInstance","__deprecatedInstance__","readyState","domReady","run","_bootSync","deferReadiness","advanceReadiness","didBecomeReady","_","runInitializers","runLoadHooks","reject","ready","startRouting","_loaded","visit","url","then","catch","buildInitializerMethod","instanceInitializer","_BootOptions","setupRegistry","router","runInstanceInitializers","setupEventDispatcher","_router","didCreateRootView","setupRouter","handleURL","applicationCustomEvents","instanceCustomEvents","getURL","bootOptions","handleTransitionResolve","shouldRender","renderSettled","handleTransitionReject","_routerMicrolib","activeTransition","message","setURL","coptions","toEnvironment","isBrowser","loaded","loadHooks","CustomEvent","detail","dispatchEvent","Namespace","addNamespace","existing_name","nameClasses","removeNamespace","processAll","byName","findNamespace","EMBER_ARRAYS","identityFunction","uniqBy","keyOrFunc","A","iter","valueProvided","findIndex","startAt","len","find","any","every","withNaNCheck","removeAt","insertAt","setInterval","EmberArray","typeOf","nonEnumerableComputed","mapBy","Enumerable","setEmberArray","objectsAt","indexes","firstObject","lastObject","beginIndex","endIndex","validatedEndIndex","getEach","setEach","x","filterBy","rejectBy","findBy","isEvery","isAny","initialValue","invoke","toArray","compact","includes","sortBy","sortKeys","sort","propA","propB","compareValue","uniq","without","MutableArray","MutableEnumerable","pushObject","pushObjects","objects","popObject","shiftObject","unshiftObject","unshiftObjects","reverseObjects","reverse","setObjects","removeObject","loc","removeObjects","addObject","addObjects","NativeArray","Observable","ignore","arr","ARRAY_OBSERVER_MAPPING","customTagForArrayProxy","_arrTag","_lengthTag","ArrayProxy","_objectsDirtyIndex","_objects","_lengthDirty","_length","_arrangedContent","_arrangedContentIsUpdating","_arrangedContentTag","_arrangedContentRevision","_removeArrangedContentArrayObserver","objectAtContent","arrangedContent","amt","replaceContent","added","removedCount","_invalidate","_updateArrangedContentArray","oldLength","newLength","_addArrangedContentArrayObserver","addArrayObserver","removeArrayObserver","_arrangedContentArrayWillChange","_arrangedContentArrayDidChange","_proxy","dirtyIndex","arrangedContentTag","reopen","DEFAULT_FEATURES","templateOnly","glimmerTemplateOnlyComponent","metalInject","MODEL","ControllerMixin","isController","_qpDelegate","_qpChanged","_prop","dotIndex","delegate","Controller","ContainerDebugAdapter","canCatalogEntriesByType","catalogEntriesByType","types","typeSuffixRegex","RegExp","classify","iterate","RecordsWatcher","getCacheForItem","record","recordCache","recordCaches","hasBeenAdded","updated","wrapRecord","records","recordsAdded","recordsUpdated","recordsRemoved","release","removed","recordArrayCache","_cache","revalidate","TypeWatcher","onChange","hasBeenAccessed","DataAdapter","releaseMethods","emberA","recordsWatchers","typeWatchers","flushWatchers","attributeLimit","acceptsModelName","containerDebugAdapter","getFilters","watchModelTypes","typesAdded","typesUpdated","typesToSend","modelTypes","getModelTypes","wrapModelType","observeModelType","_nameToClass","Factory","watchRecords","modelName","getRecords","recordsWatcher","updateFlushWatchers","watcher","off","_klass","columnsForType","typeWatcher","columns","_getObjectsOnNamespaces","columnValues","getRecordColumnValues","searchKeywords","getRecordKeywords","filterValues","getRecordFilterValues","color","getRecordColor","_record","info","warn","debug","debugSeal","runInDebug","setDebugFunction","getDebugFunction","deprecateFunc","_warnIfUsingStrippedFeatureFlags","app","expect","registerHandler","missingOptionsDeprecation","missingOptionsIdDeprecation","missingOptionDeprecation","HANDLERS","_type","_callback","inspectValue","functionToString","objectKeys","stringify","JSON","LIST_LIMIT","DEPTH_LIMIT","SAFE_KEY","depth","valueIsArray","inspectArray","inspectKey","inspectObject","testing","ASSIGN","_registerDestructor","_unregisterDestructor","_initializersRan","resolverFor","RoutingService","ComponentLookup","setupEngineRegistry","ensureInitializers","_runInitializer","initialize","bucketName","initializersByName","initializers","graph","DAG","before","topsort","Resolver","humanName","superclass","instanceInitializers","Promise","cloneParentDependencies","ChildEngine","engineInstance","setEngineParent","registration","singletons","ENGINE_PARENT","glimmerSetHelperManager","invokeHelper","glimmerInvokeHelper","glimmerHash","glimmerArray","glimmerConcat","glimmerGet","glimmerFn","glimmerUniqueId","_payload","p1","p2","p3","subscribers","exception","withFinalizer","regexes","regex","subscriber","time","perf","performance","mozNow","webkitNow","msNow","oNow","payloadFunc","payloadArg","populateListeners","timeName","console","beforeValues","timestamp","constListeners","timeEnd","glimmerOn","setModifierManager","glimmerSetModifierManager","wrapGetterSetter","originalGet","dependentKeyCompat","wasApplied","prototypeMixinMap","destroyCalled","ensureDestroyCalled","keyNames","isDescriptor","baseValue","makeArray","CoreObject","OWNER","applyMixin","_properties","extension","toStringExtension","mixins","Class","PrototypeMixin","flattenProps","willReopen","p","detectInstance","metaForProperty","eachComputedProperty","empty","prototypeMixin","ownerConstructor","initProperties","j","isClass","isMethod","one","hasListeners","dependentKeys","funcOrDef","dependentKey","setObservers","BINDINGS_MAP","setupAction","actionFn","parentActions","bindings","generateComputedWithPredicate","additionalDependentKeys","predicateName","expandedProperties","extractProperty","expandPropertiesToArray","lastIdx","regexp","and","or","isNativeOrEmberArray","reduceMacro","arrayMacro","multiArrayMacro","additionalDependentKeysOrCallback","cCallback","res","arrays","firstArray","results","candidate","found","max","Infinity","setAProperty","setBProperty","setA","setB","itemsKey","additionalDependentKeysOrDefinition","sortDefinition","sortDefinitionOrString","comparator","y","customSort","sortPropertiesKey","cp","autoComputed","sortProperties","itemsKeyIsAtThis","normalizedSortProperties","direction","normalizeSortProperties","itemA","itemB","sortByNormalizedSortProperties","propertySort","sum","list","uniqByArray","union","a_concat","concatenatedMixinProperties","concatProp","concats","giveDecoratorSuper","descs","originalGetter","superDesc","superProperty","superGetter","wrap","originalSetter","superSetter","newProperty","giveMethodSuper","superMethod","simpleMakeArray","applyConcatenatedProperties","applyMergedProperties","newBase","hasFunction","propValue","mergeMixins","keysWithSuper","currentMixin","MIXINS","mergeProps","_without","mergings","propKeys","prev","updateObserversAndListeners","isFunction","observerListenerMetaFor","updateObserver","removeObserver","updateListener","_hideKeys","metaFor","extractAccessors","buildMixinsArray","setUnprocessedMixins","applyPartial","_detect","_keys","curMixin","targetMixin","getProperties","hasObserverFor","incrementProperty","increment","parseFloat","decrementProperty","decrement","toggleProperty","cacheFor","PromiseProxyMixin","isPending","isSettled","isRejected","isFulfilled","tap","promiseAlias","finally","ObjectProxy","_ProxyMixin","internalGetOwner","lastSetURL","_location","_hashchangeHandler","getHash","originalPath","outPath","replaceURL","onUpdateURL","_removeEventListener","_event","formatURL","popstateFired","rootURL","baseURL","_popstateHandler","initState","_previousURL","replaceState","pathname","search","pushState","bucketKey","stash","controllerName","lookupOptions","isCallback","DSLImpl","explicitIndex","enableLoadingSubstates","dummyErrorRoute","createRoute","resetNamespace","getFullName","dsl","generate","serialize","engineInfo","localFullName","routeInfo","serializeMethod","addRouteForEngine","dslMatches","to","mount","engineRouteMap","resolveRouteMap","as","instanceId","shouldResetEngineInfo","oldEngineInfo","optionsForChild","childDSL","substateName","canNest","getQuery","getOrigin","origin","protocol","hostname","port","emberRouter","routerJsState","isActiveIntent","visibleQueryParams","_prepareQueryParams","shallowEqual","Service","ROUTER","hasRoute","shouldReplace","_doTransition","normalizeQueryParams","_generateURL","_initialTransitionStarted","_e","contexts","routerState","handlers","recognizer","handlersFor","leafName","maximumContexts","handlerName","handlerInfos","req","names","numberOfContextsAcceptedByHandler","currentPath","suffixes","cacheValuePrefix","_calculateCacheValuePrefix","partRemovedPrefix","ALL_PERIODS_REGEX","possibleOptions","qps","isRouteOptions","routeInfos","STATE_SYMBOL","lastRouteInfo","qpMap","queryParam","accumulateQueryParamDescriptors","routable","resemblesURL","aCount","bCount","kA","kB","dynamicParent","targetRouteName","recogHandlers","_stashNames","prefixParts","currPrefix","currPart","accum","_singleDesc","singleDesc","updateCallback","RENDER_STATE","defaultSerialize","RENDER","bucketCache","_bucketCache","_topLevelViewTemplate","_setRouteName","fullRouteName","getEngineRouteName","_names","namePaths","_activeQPChanged","scopedPropertyName","_updatingQPChanged","urlKey","paramsFor","getQueryParamsFor","serializeQueryParamKey","controllerPropertyName","serializeQueryParam","_urlKey","defaultValueType","_serializeQueryParam","deserializeQueryParam","_deserializeQueryParam","_optionsForQueryParam","resetController","_controller","_isExiting","_transition","deactivate","teardownViews","_internalReset","isExiting","inactive","activate","intermediateTransitionTo","preparedArgs","prefixRouteNameArg","refresh","controllerFor","generateController","propNames","addQueryParamsObservers","allowOverrides","stashParamNames","PARAMS_SYMBOL","aQp","cacheKey","calculateCacheKey","undecoratedDefaultValue","qpValues","setupController","flushAsyncObservers","beforeModel","afterModel","_resolvedModel","redirect","_model","contextDidChange","currentModel","sawParams","resolveIndex","findModel","deserialize","_params","_paramsFor","_skipAssert","modelFor","modelLookupName","resolvedModels","templateName","buildRenderState","buildRouteInfoMetadata","_store","modelClass","_qp","combinedQueryParameterConfiguration","queryParameterConfiguraton","hasRouterDefinedQueryParams","controllerDefinedQueryParameterConfiguration","controllerQP","routeQP","keysAlreadyMergedOrSkippable","cqpName","rqpName","mergeEachQueryParams","normalizeControllerQueryParams","propName","copyDefaultValue","defaultValueSerialized","serializedDefaultValue","serializedValue","active","getFullQueryParams","fullQueryParams","haveAllRouteInfosResolved","fullQueryParamsState","_deserializeQueryParams","queryParamsFor","existing","qpValueWasPassedIn","isRouteFactory","isTesting","queryParamsDidChange","changed","_totalPresent","totalChanged","finalizeQueryParamChange","finalParams","replaceUrl","qpMeta","_queryParamsFor","changes","_qpUpdates","qpUpdated","svalue","presentKey","queryParamsOnly","replaceConfigValue","visible","routeQpMeta","cleanURL","_doURLTransition","extractRouteArgs","replaceWith","urlFor","routerMicrolib","currentQueryParams","recognize","internalURL","recognizeAndLoad","pivotRouteName","pivotRoute","defaultDidTransition","infos","updatePaths","_cancelSlowTransitionTimer","defaultWillTransition","oldInfos","newInfos","EmberRouter","dslCallbacks","_routePath","nameParts","oldNameParts","intersectionMatches","a1","a2","_didSetupRouter","currentURL","_qpCache","_queuedQPChanges","_toplevelView","_handledErrors","_engineInstances","_engineInfoByRoute","_slowTransitionTimer","_resetQueuedQueryParameterChanges","routerService","_routerService","_initRouterJs","PrivateRouter","getRoute","routeOwner","_getEngineInstance","DefaultRoute","hasDefaultSerialize","getSerializer","updateURL","didTransition","willTransition","triggerEvent","ignoreFailure","routeWillChange","isIntermediate","routeDidChange","transitionDidError","wasAborted","isAborted","logAbort","_isErrorHandled","rollback","abort","doReplaceURL","_buildDSL","overrideNameAssertion","_hasModuleBasedResolver","DSL","initialURL","initialTransition","_setupLocation","_setOutlets","currentRouteInfos","getRenderState","_url","routerJsMethod","didBeginTransition","instances","instanceMap","queryParameterName","_fireQueryParamTransition","resolvedLocation","_serializeQueryParams","forEachQueryParam","defaultType","Number","valueOf","parse","_pruneDefaultQueryParamValues","_targetRouteName","_queryParams","_fromRouterService","getActiveTargetName","_processActiveTransitionQueryParams","unchangedQPs","qpUpdates","_fullyScopeQueryParams","calculatePostTransitionState","_hydrateUnsuppliedQueryParams","_getQPMeta","leafRouteName","shouldCache","finalQPMeta","presentProp","appCache","qpLen","_scheduleLoadingEvent","originRoute","_handleSlowTransition","RouterState","cancel","_markErrorAsHandled","_clearHandledError","engineInstances","namedInstances","forEachRouteAbove","defaultActionHandlers","willResolveModel","_routeInfos","routeInfoWithError","errorRouteName","findRouteStateName","errorSubstateName","findRouteSubstateName","_error","initialMessage","errorArgs","stack","logError","targetName","loading","routeInfoWithSlowLoading","loadingRouteName","loadingSubstateName","pivotHandler","substateNameFull","routeHasBeenDefined","stateNameFull","localName","routerHasRoute","ownerHasRoute","eventWasHandled","defaultHandler","applyIntent","isResolved","qpCache","cancelTimers","currentRunLoop","hasTimers","begin","curried","timer","debounce","later","throttle","_queues","Backburner","defaultQueue","onBegin","onEnd","_current","onErrorMethod","flush","queueName","methodOrTarget","methodOrArg","additionalArgs","isServiceFactory","__emberTemplateCompiler","compileTemplate","compile","precompileTemplate","impl","Test","registerAsyncHelper","registerHelper","registerWaiter","unregisterHelper","unregisterWaiter","_impl","testingNotAvailableMessage","w","type1","type2","isComparable","spaceship","TYPE_ORDER","localeCompare","vLen","wLen","getTime","null","boolean","number","function","date","filelist","sign","isEqual","isBlank","TYPE_MAP","DictChecker","InstanceofChecker","checker","MaybeChecker","OptionChecker","left","right","OrChecker","offset","last","enumString","strip","all","out","buildSingleMeta","defaultMessage","expected","op","isMachine","actual","sp","machine","normalizeParsed","syscall","MACHINE_METADATA","METADATA","Op","Size","fill","MachineOp","PushFrame","mnemonic","stackChange","ops","operands","check","PopFrame","InvokeVirtual","InvokeStatic","Jump","Return","ReturnTo","DynamicHelper","SetNamedVariables","SetBlocks","SetVariable","SetBlock","GetVariable","GetProperty","GetBlock","SpreadBlock","HasBlock","HasBlockParams","Concat","IfInline","Not","Constant","ConstantReference","Primitive","PrimitiveReference","ReifyU32","Dup","Pop","Load","Fetch","RootScope","VirtualRootScope","ChildScope","PopScope","Text","Comment","AppendHTML","AppendSafeHTML","AppendDocumentFragment","AppendNode","AppendText","OpenElement","OpenDynamicElement","PushRemoteElement","StaticAttr","DynamicAttr","ComponentAttr","FlushElement","CloseElement","PopRemoteElement","Modifier","BindDynamicScope","PushDynamicScope","PopDynamicScope","CompileBlock","PushBlockScope","PushSymbolTable","InvokeYield","JumpIf","JumpUnless","JumpEq","AssertSame","Enter","Exit","ToBoolean","EnterList","ExitList","Iterate","Main","ContentType","DynamicContentType","Curry","PushComponentDefinition","PushDynamicComponentInstance","ResolveDynamicComponent","PushArgs","PushEmptyArgs","PopArgs","PrepareArgs","CaptureArgs","CreateComponent","RegisterComponentDestructor","PutComponentOperations","GetComponentSelf","GetComponentTagName","GetComponentLayout","BindEvalScope","SetupForEval","PopulateLayout","InvokeComponentLayout","BeginComponentTransaction","CommitComponentTransaction","DidCreateElement","DidRenderLayout","ResolveMaybeLocal","Debugger","OPERAND_TYPES","format","skip","hasRest","strings","exec","MAX_SAFE_INTEGER","line","leading","stripped","META_KIND","o","pad","repeat","TypeofChecker","expectedType","emptyValue","ExactValueChecker","PropertyChecker","checkers","ArrayChecker","CheckInterface","CheckArray","CheckPrimitive","CheckFunction","CheckNumber","CheckBoolean","CheckString","CheckHandle","CheckUnknown","CheckNull","CheckSafeString","CheckObject","CheckValue","CheckBlockSymbolTable","parameters","CheckProgramSymbolTable","hasEval","symbols","CheckElement","CheckDocumentFragment","CheckNode","DESTROYABLE_META","children","parentMeta","getDestroyableMeta","childMeta","parents","DestroyingState","Destroyed","eager","destructorsKey","collection","newItem","eagerDestructors","destructors","Live","Destroying","removeChildFromParent","enableDestroyableTracking","assertDestroyablesDestroyed","InstructionEncoderImpl","buffer","encode","TYPE_SIZE","first","ARG_SHIFT","patch","DEBUG","CI","assertGlobalContextWasSet","testOverrideGlobalContext","EMPTY","capability","managerAPI","buildCapabilities","asyncLifeCycleCallbacks","asyncLifecycleCallbacks","CUSTOM_TAG_FOR","isOptional","getManager","COMPONENT_MANAGERS","HELPER_MANAGERS","DEFAULT_MANAGER","MODIFIER_MANAGERS","hasDefaultHelperManager","hasScheduledEffect","_manager","optionalFeatures","disableAutoTracking","CustomComponentManager","CustomHelperManager","CustomModifierManager","customTagFn","convertToInt","num","isNaN","NamedArgsProxy","ownKeys","PositionalArgsProxy","argsProxyFor","namedHandler","positionalHandler","namedTarget","namedProxy","Proxy","positionalProxy","getNamedTag","tagForNamedArg","getPositionalTag","tagForPositionalArg","InternalComponentCapabilities","Empty","helperManagerDelegates","undefinedDelegate","getDelegateForOwner","getDelegateFor","getHelper","FunctionHelperManager","getPrototypeOf$1","setManager","hasAsyncLifeCycleCallbacks","hasUpdateHook","componentManagerDelegates","vmArgs","createComponent","CustomComponentState","updateComponent","didCreateComponent","hasAsyncUpdateHook","didUpdateComponent","getContext","hasDestructors","destroyComponent","createModifier","destroyModifier","installModifier","castToBrowser","updateModifier","cursor","SerializeBuilder","forInitialRender","doc","createHTMLDocument","setupUselessElement","insertHTMLBefore","html","raw","createRawHTMLSection","insertBefore","ConcreteBounds","NEEDS_EXTRA_CLOSE","NewElementBuilder","serializeBlockDepth","__openBlock","__appendComment","__closeBlock","__appendHTML","openIndex","__appendText","lastChild","previousSibling","currentNode","closeElement","openElement","constructing","flushElement","pushRemoteElement","cursorId","dom","script","createOp","CompileTimeCompilationContextImpl","templateId","parsedBlock","clientId","ownerlessTemplate","templateCache","templateCacheCounters","cacheMiss","TemplateImpl","cacheHit","__id","__meta","debugCompiler","makeResolutionTypeVerifier","typeToVerify","opcode","isGetLikeTuple","SexpOpcodes","GetStrictKeyword","GetLexicalSymbol","isGetFreeComponent","GetFreeAsComponentHead","isGetFreeModifier","GetFreeAsModifierHead","isGetFreeHelper","GetFreeAsHelperHead","isGetFreeComponentOrHelper","GetFreeAsComponentOrHelperHead","isGetFreeOptionalHelper","GetFreeAsHelperHeadOrThisFallback","isGetFreeOptionalComponentOrHelper","GetFreeAsComponentOrHelperHeadOrThisFallback","resolveOptionalHelper","constants","expr","ifHelper","assert$1","GetFreeAsDeprecatedHelperHeadOrThisFallback","upvars","unwrap","HighLevelResolutionOpcodes","OptionalHelper","ComponentOrHelper","OptionalComponentOrHelper","Free","Local","TemplateLocal","HighLevelBuilderOpcodes","Label","StartLabels","StopLabels","Start","End","HighLevelOperands","IsStrictMode","DebugSymbols","Block","StdLib","NonSmallInt","SymbolTable","Layout","labelOperand","stdlibOperand","symbolTableOperand","layoutOperand","Labels","labels","targets","address","getbyaddr","setbyaddr","encodeOp","encoder","isBuilderOpcode","startLabels","stopLabels","scopeValues","resolvedComponent","resolveComponent","resolveModifier","resolveHelper","ifComponent","resolveComponentOrHelper","ifValue","resolveOptionalComponentOrHelper","freeVar","andThen","valueIndex","EncoderImpl","stdlib","labelsStack","Stack","errors","malloc","commit","pushMachine","finishMalloc","isPresentArray","isMachineOp","MACHINE_MASK","pushRaw","operand","encodeHandle","currentLabels","evalSymbols","EMPTY_STRING_ARRAY","containing","CompilableTemplateImpl","trustingGuardedAppend","cautiousGuardedAppend","trustingNonDynamicAppend","cautiousNonDynamicAppend","getAppend","trusting","NamedBlocksImpl","blocks","with","hasAny","EMPTY_BLOCKS","namedBlocks","enumerate","PushPrimitiveReference","PushPrimitive","primitive","isSmallInt","encodeImmediate","Call","SimpleArgs","$v0","CallDynamic","$fp","Compilers","funcs","sexp","EXPRESSIONS","withPath","expression","atNames","CompilePositional","YieldBlock","PushYieldableBlock","PushCompilable","InvokeStaticBlock","InvokeStaticBlockWithStack","callerCount","calleeCount","_block","SwitchCases","bootstrap","matcher","clauses","clause","Replayable","ReplayableIf","ifTrue","ifFalse","GetSymbol","sym","_path","_handle","Undefined","condition","GetDynamicVar","Log","ATTRS_BLOCK","InvokeComponent","_elementBlock","_blocks","elementBlock","symbolTable","bailOut","hasCapability","InvokeNonStaticComponent","$s0","$sp","blockSymbols","argSymbols","argNames","blockNames","InvokeStaticComponent","InvokeDynamicComponent","ResolveCurriedComponent","bindableBlocks","bindableAtNames","CompileArgs","invokePreparedComponent","WrappedComponent","attrsBlockNumber","WithSavedRegister","$s1","populateLayout","StdAppend","nonDynamicAppend","when","InvokeBareComponent","Fragment","Node","compileStd","mainHandle","build","trustingGuardedNonDynamicAppend","cautiousGuardedNonDynamicAppend","trustingGuardedDynamicAppend","cautiousGuardedDynamicAppend","STDLIB_META","program","templateCompilationContext","STATEMENTS","INFLATE_ATTR_TABLE","INFLATE_TAG_TABLE","inflateTagName","inflateAttrName","attrName","hashToArgs","DynamicModifier","StaticComponentAttr","TrustingDynamicAttr","TrustingComponentAttr","OpenElementWithSplat","Yield","AttrSplat","debugInfo","Append","TrustingAppend","InElement","destination","If","inverse","Each","With","Let","WithDynamicVars","expressions","statements","compiled","compileStatements","maybeCompile","syntaxContext","sCompiler","pushOp","statement","DEFAULT_CAPABILITIES","MINIMAL_CAPABILITIES","WrappedBuilder","attrsBlockIndex","syntax","parsedLayout","wrappedLayout","ConstantsImpl","HeapImpl","serializedHeap","RuntimeHeapImpl","DEFAULT_TEMPLATE_BLOCK","DEFAULT_TEMPLATE","WELL_KNOWN_EMPTY_ARRAY","STARTER_CONSTANTS","WELL_KNOWN_EMPTY_ARRAY_POSITION","CompileTimeConstantImpl","indexMap","handles","toPool","RuntimeConstantsImpl","pool","getArray","n","reifiedArrs","defaultTemplate","helperDefinitionCount","modifierDefinitionCount","componentDefinitionCount","helperDefinitionCache","modifierDefinitionCache","definitionState","_resolvedName","managerOrHelper","getInternalModifierManager","managerHasCapability","resolvedDefinition","OPERAND_LEN_MASK","TYPE_MASK","op1","op2","op3","TableSlotState","PAGE_SIZE","table","Int32Array","getaddr","sizeof","handleTable","handleState","sizeCheck","newHeap","free","Freed","compactedSize","Purged","Allocated","Pointer","RuntimeProgramImpl","_opcode","ReferenceImpl","CONSTANT","lastValue","REFERENCE","INVOKABLE","listRef","keyFor","uniqueKeyFor","KEY","INDEX","IDENTITY","keyForPath","makeKeyFor","maybeIterator","IteratorWrapper","_ref","COMPUTE","UNBOUND","INITIAL","NULL_REFERENCE","TRUE_REFERENCE","FALSE_REFERENCE","newTag","_parentRef","parentRef","isDict","createDebugAliasRef","NULL_IDENTITY","WeakMapWithPrimitives","_weakMap","_primitiveMap","weakMap","primitiveMap","IDENTITIES","identities","identity","identityForNthOccurence","nextValue","pos","computeArgs","internalManager","SimpleArgsProxy","node","nodeValue","SERIALIZATION_FIRST_NODE_STRING","WHITESPACE","RehydrateBuilder","treeBuilder","DynamicScopeImpl","vm","VM","argList","CONSTANTS","pushFrame","ARGS$1","layoutHandle","unwrapHandle","invocation","TemplateIteratorImpl","renderInvocation","acc","recordToReference","numSymbols","initial","debugCallback","EnvironmentImpl","TemplateOnlyComponentDefinition","PartialScopeImpl","refs","sized","slots","callerScope","evalScope","partialMap","getSymbol","getBlock","getEvalScope","getPartialMap","bindSelf","bindSymbol","bindBlock","bindEvalScope","bindPartialMap","bindCallerScope","getCallerScope","RangeError","INNER_VM","DESTROYABLE_STACK","STACKS","REGISTERS","HEAP","CursorImpl","move","removeChild","normalizeStringValue","isEmpty$2","isSafeString","isNode","isString","slotName","lower","ATTR_OVERRIDES","preferAttr","INPUT","form","autocorrect","SELECT","OPTION","TEXTAREA","LABEL","FIELDSET","LEGEND","OBJECT","OUTPUT","BUTTON","badProtocols","badTags","badTagsForDataURI","badAttributes","badAttributesForDataURI","checkURI","checkDataURI","requiresSanitization","_protocolForUrlImplementation","protocolForUrl","URL","nodeURL","findProtocolForURL","sanitizeAttributeValue","dynamicAttribute","isTrusting","NS_SVG","buildDynamicAttribute","SafeDynamicProperty","isUserInputValue","InputValueDynamicAttribute","isOptionSelected","OptionSelectedDynamicAttribute","DefaultDynamicProperty","buildDynamicProperty","SafeDynamicAttribute","SimpleDynamicAttribute","DynamicAttribute","normalizedValue","normalizeValue","__setAttribute","removeAttribute","__setProperty","removeAttributeNS","sanitized","option","selected","First","Last","CURSOR_STACK","resume","pushLiveBlock","modifierStack","blockStack","pushElement","getDOM","pushSimpleBlock","debugBlocks","hasBlocks","popElement","SimpleLiveBlock","pushUpdatableBlock","UpdatableBlockImpl","pushBlockList","LiveBlockList","isRemote","didAppendBounds","popBlock","__openElement","modifiers","__flushElement","pushModifiers","didOpenElement","willCloseElement","popModifiers","__pushRemoteElement","_guid","RemoteLiveBlock","popRemoteElement","didAppendNode","appendText","text","createTextNode","__appendNode","__appendFragment","fragment","firstChild","comment","appendDynamicHTML","trustedContent","appendDynamicText","untrustedContent","appendDynamicFragment","appendDynamicNode","appendComment","createComment","setStaticAttribute","setDynamicAttribute","nesting","boundList","_node","_bounds","_stack","APPEND_OPCODES","evaluateOpcode","evaluate","debugBefore","opName","recordStackSize","fetchValue","pc","$pc","debugAfter","pre","TYPE","INNER","RESOLVED","CURRIED_VALUES","isCurriedValue","isCurriedType","CurriedValue","resolveCurriedValue","curriedValue","currentWrapper","curriedArgs","curriedNamed","curriedPositional","spec","hasCustomDebugRenderTreeLifecycle","pushChildScope","popScope","pushDynamicScope","popDynamicScope","other","decodeHandle","isHandle","decodeImmediate","dup","load","fetch","bindDynamicScope","_table","CheckOption","CheckScope","CheckInstanceof","VMArgumentsImpl","pushScope","invokingScope","locals","localsCount","CheckReference","goto","updateWith","Assert","comparison","peek","valueRef","throw","AssertFilter","JumpIfNotModifiedOpcode","didModify","BeginTrackFrameOpcode","EndTrackFrameOpcode","elements","elementRef","insertBeforeRef","guidRef","CheckMaybe","associateDestroyable","$t0","CheckOperations","loadValue","scheduleInstallModifier","CheckArguments","addModifier","UpdateModifierOpcode","initialOwner","instanceRef","hostDefinition","CurriedTypes","curriedOwner","UpdateDynamicModifierOpcode","lastUpdated","scheduleUpdateModifier","newInstance","_namespace","_trusting","UpdateDynamicAttributeOpcode","initialized","_isStrict","CheckOr","CheckCurriedComponentDefinition","$t1","_blockNames","positionalCount","resolvedValue","merge","realloc","prepend","CheckComponentInstance","hasDefaultBlock","UpdateComponentOpcode","beginCacheGroup","ComponentElementOperations","setDeferredAttr","mergeClasses","allStringClasses","symbolName","blockName","selfRef","DebugRenderTreeUpdateOpcode","CheckComponentDefinition","CheckInvocation","CheckFinishedComponentInstance","pushRootScope","callerNames","atName","symbolNames","DebugRenderTreeDidRenderOpcode","DidUpdateLayoutOpcode","commitCacheGroup","_vm","CheckIterator","CheckHelper","CheckUndefinedReference","CheckCapturedArguments","CheckDict","CheckComponentManager","CheckCapabilities","CheckCompilableBlock","CheckCompilableProgram","CheckScopeBlock","PositionalArgumentsImpl","NamedArgumentsImpl","BlockArgumentsImpl","namedCount","namedBase","positionalBase","blocksCount","blocksBase","copy","EMPTY_NAMED","EMPTY_REFERENCES","emptyArray","_references","references","additions","_atNames","toSyntheticName","toAtName","newNames","toSymbolName","EMPTY_BLOCK_VALUES","internalValues","_symbolNames","internalTag","CapturedBlockArgumentsImpl","reifyNamed","reifyArgs","castToString","isUndefinedReference","isStrict","curriedDefinition","createCurryRef","helperRef","helperInstanceRef","resolvedDef","_hasDestroyableChildren","helperValueRef","referenceForSymbol","handleOrCompilable","hasBlockParams","partsRefs","log","DynamicTextContent","toContentType","shouldCoerce","hasInternalComponentManager","hasInternalHelperManager","isFragment","toDynamicContentType","rawValue","ScopeInspector","slot","head","tail","_symbols","_debugInfo","inspector","relativeStart","elseTarget","keyRef","keyValue","iteratorRef","createIteratorRef","enterList","exitList","breaks","registerItem","enterItem","TemplateOnlyComponentManager","TemplateOnlyComponent","SVG_INTEGRATION_POINTS","foreignObject","title","BLACKLIST_TABLE","DOMOperations","uselessElement","isElementInSVGNamespace","isHTMLIntegrationPoint","createElementNS","insertAdjacentHTML","INSERT_BEFORE_END","HTMLElement","INSERT_BEFORE_BEGIN","applySVGInnerHTMLFix","DOMClass","svgNamespace","svg","childNodes","shouldApplyFix$1","div","wrappedHtml","clearElement","INSERT_AFTER_BEGIN","moveNodesBefore","fixSVG","applyTextNodeMergingFix","mergingTextDiv","shouldApplyFix","uselessComment","didSetUselessComment","nextPrevious","doc$1","castToSimple","appliedTreeConstruction","setAttributeNS","DOMChangesImpl","insertAfter","IDOMChanges","GUID","Ref","DebugRenderTreeImpl","internalNode","nodeFor","captureRefs","captureNode","captureTemplate","captureBounds","TRANSACTION","TransactionImpl","scheduledInstallModifiers","scheduledUpdateModifiers","createdComponents","updatedComponents","modifierTag","transaction","normalizeTextValue","isEmpty$1","buildUntouchableThis","callbackRef","assertCallbackIsFn","invocationArgs","sourceRef","pathRef","getArgs","argsCache","OnModifierState","passive","shouldUpdate","updateFromArgs","userProvidedCallbackReference","userProvidedCallback","adds","removes","LowLevelVM","externs","registers","currentOpSize","fetchRegister","loadRegister","setPc","$ra","popFrame","pushSmallFrame","popSmallFrame","returnTo","return","nextStatement","operationSize","evaluateOuter","evaluateInner","evaluateMachine","evaluateSyscall","UpdatingVM","frameStack","execute","opcodes","_execute","try","frame","UpdatingVMFrame","handleException","ResumableVMStateImpl","resumeCallback","BlockOpcode","TryOpcode","destroyChildren","elementStack","updating","pushUpdating","ListItemOpcode","retained","updateReferences","shouldRemove","ListBlockOpcode","iterableRef","opcodeMap","marker","lastIterator","initializeChild","itemMap","currentOpcodeIndex","seenIndex","retainItem","itemOpcode","moveItem","seenUnretained","insertItem","deleteItem","currentSibling","exceptionHandler","RenderResultImpl","EvaluationStackImpl","restore","snapshot","top","Stacks","isLowLevelRegister","s0","s1","t0","t1","v0","initVM","evalStack","vmState","captureState","guard","tryOpcode","didEnter","createIteratorItemRef","memoRef","listBlock","addr","popUpdating","tryUpdating","RehydratingCursor","startingBlockDepth","openBlockDepth","injectedOmittedNode","unmatchedAttributes","blockDepth","startingBlockOffset","currentCursor","isOpenBlock","getBlockDepth","newBlockDepth","newCandidate","closingNode","isCloseBlock","newClosingBlock","disableRehydration","enableRehydration","clearMismatch","getBlockDepthWithOffset","isRehydrating","candidateBounds","markerBounds","newBounds","possibleEmptyMarker","_candidate","isMarker","isSeparator","isElement","isSameNodeType","unmatched","findByName","getMarker","COMMENT_NODE","parseInt","assertPresentArray","LOGGER","sugaryCheck","isDocument","ownerDocument","checkBrowserNode","isSimpleElement","LOCAL_LOGGER","ifPresent","otherwise","u","ELEMENT_NODE","ImmediateConstants","ENCODED_UNDEFINED_HANDLE","MAX_INT","MIN_INT","mapper","lines","getFirst","getLast","problem","span","EMPTY_NUMBER_ARRAY","unreachable","tuple","nth","debugToString","beginTestSteps","endTestSteps","verifySteps","logStep","RAW_NODE","DOCUMENT_NODE","TEXT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NS_HTML","NS_MATHML","NS_XLINK","NS_XML","NS_XMLNS","INSERT_AFTER_END","encodeNegative","SIGN_BIT","decodeNegative","encodePositive","decodePositive","isMatch","stringCheckNode","checkError","SVGElement","$REVISION","debuggingLabel","FN","LAST_VALUE","TAG","SNAPSHOT","MonomorphicTagImpl","DIRYTABLE_TAG_ID","assertCache","assertTag","isConstTag","CURRENT_TRACKER","OPEN_TRACK_FRAMES","hasInitializer","VOLATILE","NaN","UPDATABLE_TAG_ID","ALLOW_CYCLES","subtag","lastChecked","isUpdating","subtagBufferCache","currentTag","subtagValue","_tag","_subtag","disableConsumptionAssertion","UPDATE_TAG","VolatileTag","VOLATILE_TAG","CurrentTag","tag1","tag2","tag3","TRACKED_TAGS","Tracker","debuggingContext","fnName","GLIMMER_VALIDATOR_REGISTRATION","getGlobal","Other","InternalComponentCapability","MAX_SIZE","MachineRegister","SavedRegister","TemporaryRegister","StaticArg","DynamicArg","StrictModifier","StrictBlock","VariableResolutionContext","Strict","AmbiguousAppend","AmbiguousAppendInvoke","AmbiguousInvoke","ResolveAsCallHead","ResolveAsModifierHead","ResolveAsComponentHead","WellKnownAttrNames","style","WellKnownTagNames","is","variant","isFlushElement","isGet","SimpleNodeImpl","doctype","EMPTY_ATTRS","indexOfAttribute","adjustAttrName","specified","ChildNodes","stale","oldLen","cloneNode","deep","clone","nodeName","copyAttrs","nodeFrom","nextChild","newChild","refChild","invalidate","insertFragment","insertBetween","oldChild","removeBetween","_childNodes","getAttributeNS","qualifiedName","parseQualifiedName","documentElement","createDocumentFragment","SET_TIMEOUT","setTimeout","buildNext","autorunPromise","MutationObserver","iterations","observe","characterData","buildPlatform","clearNext","ms","clearTimeout","timerId","NUMBER","isCoercableNumber","suspect","getOnError","onError","findItem","findTimerItem","getQueueItems","queueItemLength","queueItemPositionOffset","queueItems","maybeError","queueItem","binarySearch","timers","middle","Queue","globalOptions","_queueBeingFlushed","targetQueues","_queue","stackFor","errorRecordedForStack","invokeWithOnError","mustYield","hasWork","queue","targetQueueMap","pushUnique","localQueueMap","queueIndex","_getDebugInfo","debugEnabled","DeferredActionQueues","queueNames","queues","queueNameIndex","onceFlag","fromAutorun","numberOfQueues","iteratorDrain","DISABLE_SCHEDULE","parseArgs","argsIndex","methodOrArgs","parseDebounceArgs","isImmediate","wait","UUID","beginCount","endCount","beginEventCount","runCount","joinCount","deferCount","scheduleCount","scheduleIterableCount","deferOnceCount","scheduleOnceCount","setTimeoutCount","laterCount","throttleCount","debounceCount","cancelTimersCount","cancelCount","autorunsCreatedCount","autorunsCompletedCount","deferredActionQueuesCreatedCount","nestedDeferredActionQueuesCreated","currentInstance","instanceStack","_eventCallbacks","_timerTimeoutId","_timers","_autorun","_autorunStack","_defaultQueue","_onBegin","_onEnd","_boundRunExpiredTimers","_runExpiredTimers","_boundAutorunEnd","_end","_buildPlatform","_platform","autoruns","created","completed","scheduleIterable","deferOnce","total","nested","previousInstance","_cancelAutorun","TypeError","callbacks","callbackFound","_run","_join","_ensureInstance","parseTimerArgs","_later","argIndex","executeAt","_reinstallTimerTimeout","_clearTimerTimeout","timerType","_cancelLaterTimer","getDebugInfo","autorun","deferredActionQueue","nextInstance","finallyAlreadyCalled","plannedNextQueue","_scheduleAutorun","_installTimerTimeout","arg1","arg2","_scheduleExpiredTimers","minExpiresAt","_vertices","Vertices","vertices","addEdge","addEdges","each","walk","IntStack","vertex","msg_1","pushIncoming","incomming","indices","Constructor","receiver","privateKey","privateFieldId","protoProps","staticProps","_defineProperties","minLen","arrayLikeToArray","unsupportedIterableToArray","Derived","Super","hasReflectConstruct","NewTarget","construct","possibleConstructorReturn","subClass","superClass","nativeWrapperCache","assertThisInitialized","arr2","InternalContainer","InternalRegistry","_setComponentManager","setComponentManager","_componentManagerCapabilities","_modifierManagerCapabilities","internalMeta","_createCache","metal","_cacheGetValue","_cacheIsConst","isConst","_descriptor","_setClassicDecorator","_tracked","_ContainerProxyMixin","internalProxyMixin","_RegistryProxyMixin","InternalActionHandler","InternalComparable","_RSVP","_Cache","utils","canInvoke","generateGuid","applicationGetOwner","onLoad","applicationOnLoad","applicationRunLoadHooks","applicationSetOwner","EmberApplication","EmberApplicationInstance","EmberNamespace","EmberA","EmberNativeArray","emberIsArray","emberMakeArray","EmberMutableArray","EmberArrayProxy","isEnabled","EmberFEATURES","EmberInput","EmberComponent","EmberHelper","EmberController","EmberControllerMixin","_captureRenderTree","captureRenderTree","EmberDebug","Debug","registerDeprecationHandler","registerWarnHandler","isComputed","EmberContainerDebugAdapter","EmberDataAdapter","_assertDestroyablesDestroyed","_associateDestroyableChild","_enableDestroyableTracking","_isDestroying","_isDestroyed","unregisterDestructor","emberDestroy","EmberEngine","EmberEngineInstance","EmberEnumerable","EmberMutableEnumerable","instrument","instrumentation","subscribe","Instrumentation","unsubscribe","_action","emberComputed","emberDefineProperty","emberGet","emberGetProperties","emberNotifyPropertyChange","emberObserver","emberSet","trySet","emberTrySet","emberSetProperties","emberCacheFor","_dependentKeyCompat","EmberComputedProperty","emberExpandProperties","EmberCoreObject","EmberEvented","emberOn","emberAddListener","emberRemoveListener","emberSendEvent","EmberMixin","emberMixin","EmberObservable","emberAddObserver","emberRemoveObserver","EmberPromiseProxyMixin","EmberObjectProxy","RouterDSL","EmberRouterDSL","emberControllerFor","emberGenerateController","emberGenerateControllerFactory","EmberHashLocation","EmberHistoryLocation","EmberNoneLocation","EmberRoute","emberRun","EmberService","emberCompare","emberIsBlank","emberIsEmpty","emberIsEqual","emberIsNone","emberIsPresent","emberTypeOf","Version","ViewUtils","getRootViews","getViewBoundingClientRect","getViewClientRects","isSerializationFirstNode","_getComponentTemplate","_helperManagerCapabilities","_setComponentTemplate","_setHelperManager","_setModifierManager","_templateOnlyComponent","glimmerRuntime","_invokeHelper","_hash","_array","_concat","_on","_fn","_Backburner","injectController","__loader","g","getENV","getLookup","setLookup","getOnerror","setOnerror","setTesting","isNamespaceSearchDisabled","setNamespaceSearchDisabled","getTemplates","setTemplates","EmberHandlebars","Utils","escapeExpression","EmberHTMLBars","defineEmberTemplateCompilerLazyLoad","templateCompilation","precompile","defineEmberTestingLazyLoad","EmberTestingImpl","Adapter","QUnitAdapter","setupForTesting","createObject","createMap","Target","willAddRoute","addChild","Matcher","routes","generateMatch","startingPath","fullPath","addRoute","routeArray","substr","eachRoute","baseRoute","contextEntered","normalizePath","normalizeSegment","SEGMENT_RESERVED_CHARS","decodeURIComponent","encodeURIComponent","PATH_SEGMENT_ENCODINGS","encodePathSegment","escapeRegex","getParam","eachChar","ch","put","RouteRecognizer","ENCODE_AND_DECODE_PATH_SEGMENTS","EmptyObject","EmptyArray","segments","shouldDecodes","isEqualCharSpec","char","negate","State","nextStates","_regex","recognizeChar","child$1","returned","RecognizeResults","decodeQueryParamPart","allSegments","output","generateQueryString","pairs","arrayPair","parseQueryString","queryString","keyLength","isSlashDropped","hashStart","queryStart","decodeURI","pathLen","solutions","i$1","astatics","adynamics","astars","ref$1","bstatics","bdynamics","bstars","sortSolutions","captures","currentCapture","isDynamic","findHandler","Normalizer","addRouteCallback","buildTransitionAborted","throwIfAborted","maybe","maybeAbortable","extractQueryParams","cast","isQueryParamsContainer","coerceQueryParamsToString","sequence","isParam","getChangelist","oldObject","newObject","oldElement","newElement","promiseLabel","QUERY_PARAMS_SYMBOL","Transition","intent","previousTransition","urlMethod","isTransition","isCausedByAbortingTransition","isCausedByInitialTransition","isCausedByAbortingReplaceTransition","_visibleQueryParams","Promise$1","handlerInfo","currentSequence","onFulfilled","onRejected","onRejection","preTransitionState","newTransition","retry","transitionByIntent","err","followRedirects","InternalTransition","ROUTE_INFOS","toReadOnlyRouteInfo","includeAttributes","paramNames","metadata","attachMetadata","routeInfoWithAttribute","createRouteInfoWithAttributes","thisArg","publicInfo","InternalRouteInfo","_routePromise","_route","_processRoute","getModel","routePromise","runBeforeModelHook","resolvedModel","runAfterModelHook","becomeResolved","resolvedContext","stashResolvedModel","contextsMatch","ResolvedRouteInfo","shouldSupersede","paramsMatch","fetchRoute","updateRoute","_internalName","UnresolvedRouteInfoByParam","fullParams","UnresolvedRouteInfoByObject","serializer","TransitionIntent","handleError","errorHandlerIndex","TransitionError","resolveOneRouteInfo","proceed","resolvedRouteInfo","wasAlreadyResolved","TransitionState","errorHandler","NamedTransitionIntent","applyToState","oldState","applyToHandlers","parsedHandlers","checkingIfActive","newState","invalidateIndex","oldHandlerInfo","newHandlerInfo","createParamHandlerInfo","getHandlerInfoForDynamicSegment","oldContext","handlerToUse","invalidateChildren","objectToUse","preTransitionHandlerInfo","numNames","missingParams","oldParams","paramName","UnrecognizedURLError","captureStackTrace","URLTransitionIntent","statesDiffer","checkHandlerAccessibility","inaccessibleByURL","newRouteInfo","oldRouteInfo","routeInfosEqual","otherRouteInfos","paramsEqual","otherParams","otherKeys","logger","_lastQueryParams","_changedQueryParams","queryParamsTransition","changelist","wasTransitioning","fireQueryParamDidChange","toReadOnlyInfos","_updateURL","toInfos","getTransitionByIntent","generateNewState","readonlyInfos","routeInfosWithAttributes","queryParamChangelist","setupContexts","routeInfosSameExceptQueryParams","finalizeTransition","notifyExistingHandlers","doTransition","modelsArray","lastArg","partition","partitionRoutes","exited","unchanged","updatedContext","routeEnteredOrUpdated","entered","_routeEnteredOrUpdated","routeChanged","oldRouteInfos","newRouteInfos","contextChanged","replaceAndNotAborting","isQueryParamsRefreshTransition","replacingReplace","resolvedHandlers","newQueryParams","finalQueryParamsArray","finalQueryParams","fromInfos","oldRouteInfoLen","oldHandler","partitionedArgs","suppliedParams","targetRouteInfos","targetHandler","recognizerHandlers","testState","routesEqual","activeQPsOnNewHandler","activeQueryParams","callbacksFor","_promiseCallbacks","EventTarget","allCallbacks","queue$1","_guidKey","_id","childId","_label","timeStamp","childGuid","resolve$2","resolve$1","PENDING","FULFILLED","REJECTED","handleMaybeThenable","maybeThenable","then$1","thenable","fulfill","_onError","reject$2","handleOwnThenable","async","sealed","fulfillmentHandler","rejectionHandler","tryThen","handleForeignThenable","objectOrFunction","publishRejection","publish","_subscribers","onFulfillment","settled","invokeCallback","hasCallback","succeeded","Enumerator","abortOnReject","_instanceConstructor","_abortOnReject","_isUsingOwnPromise","Promise$2","_isUsingOwnResolve","_init","_remaining","_enumerate","_eachEntry","_checkFullfillment","_settleMaybeThenable","firstPass","_settledAt","_willSettleAt","_setResultAt","setSettledResult","guidKey","counter","needsResolver","initializePromise","needsNew","race","wrapThenable","onFulFillment","denodeify","nodeFunc","promiseInput","arrayResult","argumentNames","makeObject","handleValueInput","handlePromiseInput","__proto__","AllSettled","allSettled","PromiseHash","HashSettled","hashSettled","rethrow","MapEnumerator","mapFn","bool","_mapFn","promises","EMPTY_OBJECT","FilterEnumerator","filterFn","vertxNext","asap","scheduleFlush","browserWindow","browserGlobal","BrowserMutationObserver","WebKitMutationObserver","process","isWorker","Uint8ClampedArray","importScripts","MessageChannel","useSetTimeout","nextTick","versions","setImmediate","useNextTick","useMutationObserver","channel","port1","onmessage","port2","postMessage","useMessageChannel","vertx","runOnLoop","runOnContext","attemptVertex","_modifier","_esCompat","_defineProperty","t","toPrimitive","_toPrimitive","camelize","CAMELIZE_CACHE","capitalize","CAPITALIZE_CACHE","getString","STRINGS","getStrings","htmlSafe","setStrings","underscore","UNDERSCORE_CACHE","STRING_CAMELIZE_REGEXP_1","STRING_CAMELIZE_REGEXP_2","STRING_UNDERSCORE_REGEXP_1","STRING_UNDERSCORE_REGEXP_2","STRING_CAPITALIZE_REGEXP","_debug","_token","_waiterManager","_resetWaiterNames","WAITER_NAMES","NoopTestWaiter","beginAsync","endAsync","waitUntil","_buildWaiter","_waitForPromise","_waitFor","_reset","getPendingWaiterState","getWaiters","hasPendingWaiters","wrapFunction","_ember","_test","waiter","isRegistered","WAITERS","for","waiters","__esModule","packageRoot","runtimeConfig","packages","getGlobalConfig","macroCondition","updaters","_embroider_macros_runtime_config","methods","setConfig","setGlobalConfig","updater","isCurriedComponentDefinition","lookupCurriedComponentDefinition","startsWith","runtimeResolver","lookupComponentHandle","CurriedComponentDefinition","_application","_emberPrivateApi","_helper","ensureSafeComponent","thingWithOwner","handleString","EnsureSafeComponentHelper","_service","EnsureRegisteredService","nonce","classNonces","nonceCounter","_component","_toPropertyKey","_destroyables","ARGS_SET","_object","_runloop","_baseComponentManager","destroyables","setDestroyed","setDestroying","EmberGlimmerComponentManager","_emberComponentManager","_component2","GlimmerComponent","closest","throwConsoleError","_isElementDescriptor","_throwConsoleError","PropTypes","_emberGetConfig","_utils","_closestString","createGetter","validator","forbidExtraArgs","defaultInitializer","argValue","_decorator","_tracking","_item","_class","_applyDecoratedDescriptor","__COLOCATED_TEMPLATE__","Accordion","itemComponent","isSelected","_isSelected","_prevSelected","_isSelectedNonTracked","doChange","oldValue","_internals","_arg","_descriptor2","_initializerDefineProperty","AccordionItem","collapsed","typeClass","_templateOnly","AccordionItemTitle","handleClick","disabled","onClick","_usesTransition","_dec","_descriptor3","_descriptor4","_descriptor5","_descriptor6","Alert","_visible","showAlert","fade","dismiss","onDismiss","show","hidden","hide","usesTransition","onDismissed","fadeDuration","showOrHide","updateVisibility","ButtonGroup","buttonPressed","pressedValue","_bsButton","ButtonGroupButton","groupValue","buttonGroupType","isBS5ToggleButton","Button","__disabled","_disabled","preventConcurrency","icon","iconActive","iconInactive","resetState","defaultText","bubble","_slide","_emberConcurrency","_dec2","_dec3","_descriptor7","Carousel","task","restartable","canTurnToLeft","currentIndex","canTurnToRight","childSlides","childSlidesObserver","autoPlay","waitIntervalToInitCycle","perform","presentationState","currentSlide","followingSlide","followingIndex","hasInterval","interval","indexObserver","toSlide","indicators","shouldNotDoPresentation","shouldRunAutomatically","keyboard","ltr","nextControlLabel","pauseOnMouseEnter","prevControlLabel","showControls","showIndicators","transitionDuration","carouselFade","cycle","transitioner","timeout","toAppropriateSlide","toIndex","assignClassNameControls","setFollowingIndex","isMouseHovering","onSlideChanged","toNextSlide","toPrevSlide","directionalClassName","orderClassName","handleMouseEnter","cancelAll","handleMouseLeave","handleKeyDown","keyCode","slidesLengthMinusOne","registerChild","unregisterChild","_emberRefBucket","_destroyable","CarouselSlide","isCurrentSlide","isFollowingSlide","presentationStateObserver","currentSlideDidTransition","currentSlideWillTransit","followingSlideDidTransition","followingSlideWillTransit","reflow","offsetHeight","_transitionEnd","_descriptor8","Collapse","collapse","transitioning","showContent","cssStyle","collapseSize","collapseDimension","onShow","collapsedSize","resetSizeWhenNotCollapsing","onShown","getExpandedSize","expandedSize","onHide","onHidden","_onCollapsedChange","_updateCollapsedSize","_updateExpandedSize","_dom","_descriptor9","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","_descriptor16","HOVERSTATE_NONE","HOVERSTATE_IN","HOVERSTATE_OUT","inDom","_inDom","triggerTargetElement","destinationElement","getDestinationElement","viewportElement","viewportSelector","getTriggerTargetElement","triggerElement","_triggerEvents","triggerEvents","_renderInPlace","renderInPlace","shouldShowHelp","hover","focus","showHelp","hoverState","delayShow","leave","delayHide","toggle","_show","skipTransition","tooltipShowComplete","prevHoverState","overlayElement","replaceArrow","delta","dimension","isVertical","arrowElement","tooltipHideComplete","addListeners","_handleToggle","inEvent","outEvent","_handleEnter","_handleLeave","removeListeners","handleTriggerEvent","close","FastBoot","_parentFinder","delay","trackedRef","popperOptions","placement","onFirstUpdate","updatePlacement","strategy","popperElement","arrowClass","padding","enabled","autoPlacement","boundary","viewportPadding","phase","actualPlacementClass","ending","actualPlacement","placementClassPrefix","normalizedState","SUPPORTED_KEYCODES","Dropdown","htmlTag","closeOnMenuClick","containerClass","toggleDropdown","isOpen","closeDropdown","openDropdown","closeHandler","toggleElement","menuElement","handleKeyEvent","querySelectorAll","registerChildElement","unregisterChildElement","DropdownMenu","align","inNav","alignClass","popperPlacement","setFocus","flip","DropdownToggle","onKeyDown","Form","layoutClass","formLayout","isSubmitting","pendingSubmissions","submitButtonState","isSubmitted","showAllValidations","showValidations","_showAllValidations","submitHandler","throwValidationErrors","onBefore","hasValidator","hideValidationsOnSubmit","onSubmit","onInvalid","handleSubmit","handleKeyPress","submitOnEnter","elementChanged","resetSubmissionState","doSubmit","_input","_checkbox","_textarea","_radio","_switch","_trackedToolbox","FormElement","hasErrors","hasWarnings","warnings","hasCustomError","customError","hasCustomWarning","customWarning","validationMessages","showModelValidation","hasValidationMessages","showValidation","showOwnValidation","handleShowAllValidationsChange","showValidationMessages","_showValidationOn","showValidationOn","showValidationOnHandler","doNotShowValidationForEventTargets","validation","shouldShowValidationState","isValidating","formElementId","_elementId","ariaDescribedBy","controlComponent","componentClass","controlType","setupValidations","_onChange","dedupeTracked","_formValidationClass","FormElementControl","formValidationClass","validationType","_control","FormElementControlCheckbox","_sizeClass","FormElementControlInput","handleChange","handleInput","sizeClass","FormElementControlRadio","FormElementControlSwitch","FormElementControlTextarea","FormElementLabel","isHorizontalAndNotCheckbox","isHorizontal","FormElementLegend","LinkComponent","BsListGroupComponent","numbered","horizontalClass","horizontal","horizontalSize","BsListGroupItemComponent","actionable","_isFastboot","_header","_dialog","_body","_footer","_dec4","_descriptor17","_descriptor18","Modal","_fade","isFB","forms","modalElement","createEvent","initEvent","_isOpen","addBodyClass","showBackdrop","checkScrollbar","setScrollbar","scrollTop","adjustDialog","showModal","hideModal","hideBackdrop","removeBodyClass","resetAdjustments","resetScrollbar","backdrop","shouldShowBackdrop","backdropElement","backdropTransitionDuration","modalIsOverflowing","scrollHeight","clientHeight","paddingLeft","bodyIsOverflowing","scrollbarWidth","paddingRight","fullWindowWidth","innerWidth","clientWidth","bodyPad","_originalBodyPad","existingClasses","scrollDiv","modalEl","offsetWidth","dialogComponent","headerComponent","footerComponent","bodyComponent","handleVisibilityChanges","open","ModalDialog","getOrSetTitleId","modalNode","nodeId","titleNode","titleId","setInitialFocus","autofocus","onClose","ignoreBackdropClick","backdropClose","handleMouseDown","mouseDownElement","handleMouseUp","Nav","justified","stacked","NavItem","Navbar","_toggledCollapse","fluid","positionClass","onCollapsed","onExpanded","expand","onExpand","onCollapse","toggleNavbar","toggleBreakpoint","backgroundColor","breakpointClass","backgroundClass","NavbarLinkTo","collapseNavbar","_bsNav","NavbarNav","NavbarToggle","_bsContextualHelp","Popover","PopoverElement","ProgressBar","minValue","maxValue","showLabel","striped","animate","roundDigits","percent","percentRounded","roundFactor","pow","round","percentStyleValue","BsSpinner","spinnerClass","spinnerType","_pane","Tab","customTabs","activeId","selectedId","childPanes","navItems","pane","groupTitle","group","childIds","isGroup","select","previous","listenToActiveId","TabPane","showHide","_setActive","updateActive","updateShowContent","Tooltip","TooltipElement","Config","formValidationSuccessIcon","formValidationErrorIcon","formValidationWarningIcon","formValidationInfoIcon","insertEmberWormholeElementToDom","bsContains","bsDefault","horizontalLabelGridClass","originalClass","sizeClassHelper","typeClassHelper","outline","_emberModifier","fadeProperty","_require","childNodesOfElement","findElementById","getElementById","documentService","findElemementByIdInShadowDom","fastbootService","isFastBoot","_skipTransition","duration","backup","registerLibrary","registered","versionRegExp","versionExtendedRegExp","shaRegExp","_emberArgTypes","_propTypes","_dec5","_dec6","_dec7","_dec8","_class2","CopyButtonComponent","oneOfType","oneOf","_clipboard","IsClipboardSupportedHelper","isSupported","CLIPBOARD_EVENTS","clipboardModifier","delegateClickEvent","dataset","clipboardId","clipboard","_template","stringFunction","_createStringHelper","_uppercase","uppercase","trim","ClosureActionModule","ACTION","useDeepEqual","isArrayable","thing","isPromiseLike","_asArray","maybeArray","gt","gte","lt","lte","_isEqual","needle","firstValue","secondValue","_isObject","_taskFactory","buildTask","contextFn","taskName","bufferPolicyName","optionsWithBufferPolicy","TaskFactory","generator","createTask","_rsvp","_taskInstance","_yieldables","taskAwareVariantOf","getValues","castForPromiseHelper","castable","TaskInstance","executor","asyncErrorsHandled","Yieldable","_toPromise","getItems","awaitable","awaitables","arrOrHash","castAwaitables","hasCancelled","it","cancelableSymbol","EmberEnvironment","EMBER_ENVIRONMENT","Environment","reportUncaughtRejection","globalDebuggingEnabled","DEBUG_TASKS","DEFAULT_ENVIRONMENT","deferable","GeneratorStepResult","GeneratorState","errored","generatorFactory","step","iteratorMethod","getIterator","maxConcurrency","_boundedPolicy","_executionStates","CANCELLED","makeCancelState","DropReducer","remainingSlots","STARTED","DropPolicy","makeReducer","EnqueuedReducer","QUEUED","EnqueuedPolicy","TYPE_STARTED","TYPE_QUEUED","TYPE_CANCELLED","KeepLatestReducer","numToCancel","KeepLatestPolicy","numRunning","numQueued","totalRunning","RestartableReducer","RestartablePolicy","SINGLETON_REDUCER","LAST_APPLIED_TAGS","schedulerPolicy","stateTracker","taskInstances","initialTaskInstances","startingInstances","filterFinishedTaskInstances","reducer","finalTaskInstances","taskInstance","setTaskInstanceExecutionState","computeFinalStates","applyState","taskState","executorState","isFinished","onCompletion","hasStarted","desiredState","counted","onPerformed","onStart","onRunning","onQueued","taskable","onState","numPerformedInc","_refresh","_stateTracker","_nullStateTracker","stateTrackingEnabled","cancelRequest","cancelations","guids","cancelation","onFinalize","scheduleRefresh","_nullState","NULL_STATE","CURRENT_REFRESH_TAGS","computeRecursiveState","forEachState","recurseTaskGroups","taskGroup","applyStateFrom","_completionStates","completionState","lastRunning","lastComplete","COMPLETION_SUCCESS","lastSuccessful","COMPLETION_ERROR","lastErrored","COMPLETION_CANCEL","lastCanceled","lastIncomplete","lastPerformed","taskFromPropertyDescriptor","factoryClass","taskFn","displayName","tasks","_setupEmberKVO","taskGroupPropertyDescriptor","taskGroups","createTaskGroup","decoratorWithParams","descriptorFn","isFieldDescriptor","createDecorator","baseOptions","userOptions","mergedOptions","createTaskDecorator","createTaskGroupDecorator","lastInstance","_scheduler","_unboundedPolicy","_enqueuedPolicy","_dropPolicy","_keepLatestPolicy","_restartablePolicy","_task","_taskGroup","getModifier","MODIFIER_REGISTRY","hasModifier","registerModifier","enqueue","setBufferPolicy","evented","setEvented","setDebug","groupName","setGroup","keepLatest","setMaxConcurrency","onStateCallback","setOnState","taskDefinition","setState","_processModifierOptions","getTaskOptions","Task","TaskGroup","getScheduler","scheduler","_onStateCallback","_taskGroupPath","_schedulerPolicyClass","_maxConcurrency","hasEnabledEvents","_hasEnabledEvents","enabledModifiers","_enabledModifiers","modifierOptions","policy","_hasSetBufferPolicy","assertUnsetBufferPolicy","_hasSetConcurrencyConstraint","assertModifiersNotMixedWithGroup","setTaskDefinition","_initialState","_cancelation","BaseTaskInstance","performType","onStarted","onSuccess","onCancel","formatCancelReason","selfCancelLoopWarning","yieldResumeType","proceedChecked","yieldableSymbol","parentTaskInstance","resumeIndex","onYielded","cancelReason","CancelRequest","CANCEL_KIND_EXPLICIT","INITIAL_STATE","isDropped","isRunning","TASK_CANCELATION_NAME","CANCEL_KIND_YIELDABLE_CANCEL","CANCEL_KIND_PARENT_CANCEL","CANCEL_KIND_LIFESPAN_END","didCancel","COMPLETION_PENDING","_generatorState","TaskInstanceExecutor","PERFORM_TYPE_UNLINKED","PERFORM_TYPE_LINKED","PERFORM_TYPE_DEFAULT","getRunningInstance","TASK_INSTANCE_STACK","CANCEL_RETURN_VALUE_SENTINEL","generatorState","disposers","finalizeCallbacks","proceedSync","YIELDABLE_CONTINUE","requestCancel","proceedWithCancelAsync","finalizeWithCancel","advanceIndex","YIELDABLE_CANCEL","proceedAsync","YIELDABLE_RETURN","dispose","handleResolvedReturnedValue","handleResolvedContinueValue","resumeValue","beforeIndex","stepResult","generatorStep","handleYieldedValue","YIELDABLE_THROW","handleYieldedUnknownThenable","yieldedValue","addDisposer","invokeYieldable","proceedWithSimpleValue","maybeDisposer","disposer","_expectsLinkedYield","maybeResolveDefer","runFinalizeCallbacks","maybeThrowUnhandledTaskErrorLater","request","isSuccessful","isError","finalizeShared","isCanceled","dispatchFinalizeEvents","getPerformType","detectSelfCancelLoop","parentCancelRequest","DEFAULT_STATE","performCount","_taskable","Taskable","_executor","TaskLinkProxy","linkedObject","_performShared","_perform","linked","unlinked","_clone","_curry","_curryArgs","fullArgs","_taskInstanceFactory","_isAlive","_taskInstanceOptions","_linkedObject","_defaultState","guidId","cancelRequestKind","_resetState","isQueued","isIdle","animationFrame","AnimationFrameYieldable","forever","rawTimeout","RawTimeoutYieldable","YieldableState","_resumeIndex","getTaskInstance","onYield","_deferable","thinInstance","_index","resumeType","requestAnimationFrame","cancelAnimationFrame","taskHelperClosure","helperName","taskMethod","outerArgs","innerArgs","EmberScheduler","_taskDecorators","restartableTaskGroup","restartableTask","keepLatestTaskGroup","keepLatestTask","enqueueTaskGroup","enqueueTask","dropTaskGroup","dropTask","computedLastValue","USE_TRACKED","_events","_observers","_taskProperties","_emberScheduler","_emberEnvironment","handlerCounter","registerOnPrototype","addListenerOrObserver","makeTaskCallback","ensureArray","possibleArr","eventNames","addCancelEvents","propertyPaths","addObserverKeys","addPerformEvents","EncapsulatedTask","taskObj","cancelEventNames","_cancelEventNames","_observes","_eventNames","TaskProperty","_taskableMixin","_trackedState","TRACKED_INITIAL_TASK_STATE","defineProperties","TASKABLE_MIXIN","_base","_recomputeState","assignProperties","parentName","childName","allArgs","host","eventNamespace","eventType","TRACKED_INITIAL_INSTANCE_STATE","_computed","propertyModifiers","TaskGroupProperty","taskComputed","setDecorator","taskFactorySymbol","taskGroupPath","callSuperSetup","cancelOn","observes","_setComputedDecorator","isDecoratorOptions","taskFnOrProtoOrDecoratorOptions","taskProperty","buildClassicTaskProperty","possibleDecoratorOptions","tp","currentTaskInstanceSymbol","_encapsulatedTaskStates","_encapsulatedTaskInstanceProxies","_getEncapsulatedTaskClass","encapsulatedTaskImplClass","_encapsulatedTaskImplClass","taskInstanceProxy","encapsulatedTaskImpl","_wrappedEncapsulatedTaskInstance","_performCount","derivedState","applyTracked","propDesc","trackMixin","EmberYieldable","deprecatePrivateModule","isEventedObject","TimeoutYieldable","waitForEvent","WaitForEventYieldable","waitForProperty","predicateCallback","WaitForPropertyYieldable","waitForQueue","WaitForQueueYieldable","usesDOMEvents","observerBound","observerFn","_helpers","cancelHelper","CANCEL_REASON","cancelable","maybeReportError","performHelper","_taskPublicApi","_cancelablePromiseHelpers","ContentLoader","ariaLabel","baseUrl","speed","width","height","gradientRatio","rtl","preserveAspectRatio","primaryColor","secondaryColor","primaryOpacity","secondaryOpacity","viewBox","rectClipPath","idClip","rectStyle","idGradient","animateValues1","animateValues2","div2","animateValues3","keyTimes","dur","formatDateRange","intlShape","formatOptions","formatDateTimeRange","formatDate","formatList","formatMessage","ignoreTag","formatNumber","formatRelative","unit","formatRelativeTime","formatTime","_formatDate","_formatDateRange","_formatList","_formatMessage","_formatNumber","_formatRelative","_formatTime","_intl","_exportNames","createIntl","createIntlCache","escapeFormatMessageOptions","escapedOptions","escaped","needToEscape","badCharacters","character","convertToArray","locale","convertToString","hasLocaleChanged","locale1","locale2","normalizeLocale","flattenKeys","suffix","translation","intl","positionalOptions","namedOptions","_t","_escapeFormatMessageOptions","_getDom","_locale","_translations","_translations2","locales","_intls","primaryLocale","getDefaultFormats","translations","addTranslations","messages","updateIntl","resolvedLocale","formats","_formats","defaultFormats","defaultLocale","_onFormatjsError","exists","getTranslation","getIntlShape","description","getIntl","setLocale","proposedLocale","_timer","updateDocumentLanguage","setOnFormatjsError","onFormatjsError","setOnMissingTranslation","onMissingTranslation","_onMissingTranslation","newIntl","AirDrop","CashIn","CashOut","Don","Echange","Fork","Frais","ICO","Minage","Parrainage","Retrait","Transfert","resolveInitializer","_endsWith","initializerPrefix","instanceInitializerPrefix","moduleNames","registerInitializers","registerInstanceInitializers","_eventListener","__counts","destroyListener","eventTarget","eventOptions","setupListener","SUPPORTS_EVENT_OPTIONS","addEventListenerOnce","Event","useCapture","_core","_inRunloopModifier","PopperModifier","modify","primaryElement","secondaryElement","positionalArguments","allPositionalOptions","isModifier","allPositionalModifiers","customOptions","curr","beginRunLoopModifier","endRunLoopModifier","getPopperOptions","popper","referenceElement","tooltipElement","createPopper","setPopperForElement","setOptions","cleanup","buildPopperModifier","optionsHash","POPPER_IN_RUN_LOOP","configuration","IS_POPPER_MODIFIER","getPopperForElement","popperInstance","ELEMENT_TO_POPPER","_basePopperModifier","RefToHelper","bucketRef","_watcher","watchFor","bucketFor","getTracked","_prototypeReference","maybeReturnCreated","createdValues","ctx","globalRef","objectKey","addPrototypeReference","resolveGlobalRef","registerNodeDestructor","trackedGlobalRef","unregisterNodeDestructor","appInstance","cleanGlobalRef","childList","subtree","setGlobalRef","cleanMutationObservers","cleanResizeObservers","getNodeDestructors","_ctx","markDirty","dirtyTrackedCell","_mutationsObserver","disconnect","_resizeObserver","unobserve","installMutationObservers","getObserverOptions","resize","validateTrackedOptions","defaultMutationObserverOptions","installResizeObservers","ResizeObserver","getReferencedKeys","referenceName","PrototypeReferences","klassInstance","maybeData","lastGlobalRef","nodeDestructors","addNotificationFor","buckets","hasWeakRef","WeakRef","fromWeakRefIfSupported","deref","toWeakRefIfSupported","FieldCell","rawCtx","createTrackedCell","notificationsFor","_containerDebugAdapter","getPod","_moduleRegistry","ModuleRegistry","modulePrefix","podModulePrefix","_string","_classFactory","_entries","podBasedModuleName","podBasedComponentsInSubdir","mainModuleName","defaultModuleName","nestedColocationComponentModuleName","pluralizedTypes","shouldWrapInClassFactory","parseName","parsedName","fullNameParts","fullNameWithoutType","resolveMethodName","resolveOther","normalizedModuleName","findModuleName","_extractDefaultExport","_normalize","pluralize","podBasedLookupWithPrefix","podPrefix","resolveEngine","engineModule","engineName","engineRoutesModule","routeMap","resolveTemplate","tmpPrefix","loggingDisabled","moduleNameLookupPatterns","tmpModuleName","chooseModuleName","_logLookup","underscoredModuleName","partializedModuleName","LOG_MODULE_RESOLVER","LOG_RESOLVER","moduleKeys","translateToContainerFullname","podSuffix","nonPodPrefix","_testWaiters","createStorage","tripleEq","TrackedStorageImpl","storage","setValue","_lastValue"],"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","loader.js","@ember/-internals/browser-environment/index.js","@ember/-internals/container/index.js","@ember/-internals/environment/index.js","@ember/-internals/error-handling/index.js","@ember/-internals/glimmer/index.js","@ember/-internals/meta/lib/meta.js","@ember/-internals/metal/index.js","@ember/-internals/owner/index.js","@ember/-internals/runtime/lib/ext/rsvp.js","@ember/-internals/runtime/lib/mixins/-proxy.js","@ember/-internals/runtime/lib/mixins/action_handler.js","@ember/-internals/runtime/lib/mixins/comparable.js","@ember/-internals/runtime/lib/mixins/container_proxy.js","@ember/-internals/runtime/lib/mixins/registry_proxy.js","@ember/-internals/runtime/lib/mixins/target_action_support.js","@ember/-internals/string/index.js","@ember/-internals/utility-types/index.js","@ember/-internals/utils/index.js","@ember/-internals/views/lib/compat/attrs.js","@ember/-internals/views/lib/compat/fallback-view-registry.js","@ember/-internals/views/lib/component_lookup.js","@ember/-internals/views/lib/mixins/action_support.js","@ember/-internals/views/lib/mixins/child_views_support.js","@ember/-internals/views/lib/mixins/class_names_support.js","@ember/-internals/views/lib/mixins/view_state_support.js","@ember/-internals/views/lib/mixins/view_support.js","@ember/-internals/views/lib/system/action_manager.js","@ember/-internals/views/lib/system/event_dispatcher.js","@ember/-internals/views/lib/system/utils.js","@ember/-internals/views/lib/views/core_view.js","@ember/-internals/views/lib/views/states.js","@ember/application/index.js","@ember/application/instance.js","@ember/application/lib/lazy_load.js","@ember/application/namespace.js","@ember/array/-internals.js","@ember/array/index.js","@ember/array/lib/make-array.js","@ember/array/proxy.js","@ember/canary-features/index.js","@ember/component/template-only.js","@ember/controller/index.js","@ember/debug/container-debug-adapter.js","@ember/debug/data-adapter.js","@ember/debug/index.js","@ember/debug/lib/capture-render-tree.js","@ember/debug/lib/deprecate.js","@ember/debug/lib/handlers.js","@ember/debug/lib/inspect.js","@ember/debug/lib/testing.js","@ember/debug/lib/warn.js","@ember/deprecated-features/index.js","@ember/destroyable/index.js","@ember/engine/index.js","@ember/engine/instance.js","@ember/engine/lib/engine-parent.js","@ember/enumerable/index.js","@ember/enumerable/mutable.js","@ember/helper/index.js","@ember/instrumentation/index.js","@ember/modifier/index.js","@ember/object/-internals.js","@ember/object/compat.js","@ember/object/core.js","@ember/object/evented.js","@ember/object/index.js","@ember/object/lib/computed/computed_macros.js","@ember/object/lib/computed/reduce_computed_macros.js","@ember/object/mixin.js","@ember/object/observable.js","@ember/object/promise-proxy-mixin.js","@ember/object/proxy.js","@ember/owner/index.js","@ember/routing/hash-location.js","@ember/routing/history-location.js","@ember/routing/lib/cache.js","@ember/routing/lib/controller_for.js","@ember/routing/lib/dsl.js","@ember/routing/lib/generate_controller.js","@ember/routing/lib/location-utils.js","@ember/routing/lib/query_params.js","@ember/routing/lib/router_state.js","@ember/routing/lib/routing-service.js","@ember/routing/lib/utils.js","@ember/routing/none-location.js","@ember/routing/route.js","@ember/routing/router-service.js","@ember/routing/router.js","@ember/runloop/index.js","@ember/service/index.js","@ember/template-compilation/index.js","@ember/test/index.js","@ember/utils/lib/compare.js","@ember/utils/lib/is-equal.js","@ember/utils/lib/is_blank.js","@ember/utils/lib/is_empty.js","@ember/utils/lib/is_none.js","@ember/utils/lib/is_present.js","@ember/utils/lib/type-of.js","@glimmer/debug.js","@glimmer/destroyable.js","@glimmer/encoder.js","@glimmer/env.js","@glimmer/global-context.js","@glimmer/manager.js","@glimmer/node.js","@glimmer/opcode-compiler.js","@glimmer/owner.js","@glimmer/program.js","@glimmer/reference.js","@glimmer/runtime.js","@glimmer/util.js","@glimmer/validator.js","@glimmer/vm.js","@glimmer/wire-format.js","@simple-dom/document.js","backburner.js.js","dag-map.js","ember-babel.js","ember/index.js","ember/version.js","route-recognizer.js","router_js.js","rsvp.js","addon-tree-output/@ember/render-modifiers/modifiers/did-insert.js","addon-tree-output/@ember/render-modifiers/modifiers/did-update.js","addon-tree-output/@ember/render-modifiers/modifiers/will-destroy.js","addon-tree-output/@ember/string/cache.js","addon-tree-output/@ember/string/index.js","addon-tree-output/@ember/test-waiters/build-waiter.js","addon-tree-output/@ember/test-waiters/index.js","addon-tree-output/@ember/test-waiters/token.js","addon-tree-output/@ember/test-waiters/types/index.js","addon-tree-output/@ember/test-waiters/wait-for-promise.js","addon-tree-output/@ember/test-waiters/wait-for.js","addon-tree-output/@ember/test-waiters/waiter-manager.js","addon-tree-output/@embroider/macros/es-compat2.js","addon-tree-output/@embroider/macros/runtime.js","addon-tree-output/@embroider/util/ember-private-api.js","addon-tree-output/@embroider/util/index.js","addon-tree-output/@embroider/util/services/ensure-registered.js","addon-tree-output/@glimmer/component/-private/base-component-manager.js","addon-tree-output/@glimmer/component/-private/component.js","addon-tree-output/@glimmer/component/-private/destroyables.js","addon-tree-output/@glimmer/component/-private/ember-component-manager.js","addon-tree-output/@glimmer/component/-private/owner.js","addon-tree-output/@glimmer/component/index.js","addon-tree-output/ember-arg-types/-private/closest-string.js","addon-tree-output/ember-arg-types/-private/is-element-descriptor.js","addon-tree-output/ember-arg-types/-private/throw-console-error.js","addon-tree-output/ember-arg-types/decorator.js","addon-tree-output/ember-arg-types/index.js","addon-tree-output/ember-bootstrap/components/bs-accordion.js","addon-tree-output/ember-bootstrap/components/bs-accordion/item.js","addon-tree-output/ember-bootstrap/components/bs-accordion/item/body.js","addon-tree-output/ember-bootstrap/components/bs-accordion/item/title.js","addon-tree-output/ember-bootstrap/components/bs-alert.js","addon-tree-output/ember-bootstrap/components/bs-button-group.js","addon-tree-output/ember-bootstrap/components/bs-button-group/button.js","addon-tree-output/ember-bootstrap/components/bs-button.js","addon-tree-output/ember-bootstrap/components/bs-carousel.js","addon-tree-output/ember-bootstrap/components/bs-carousel/slide.js","addon-tree-output/ember-bootstrap/components/bs-collapse.js","addon-tree-output/ember-bootstrap/components/bs-contextual-help.js","addon-tree-output/ember-bootstrap/components/bs-contextual-help/element.js","addon-tree-output/ember-bootstrap/components/bs-dropdown.js","addon-tree-output/ember-bootstrap/components/bs-dropdown/button.js","addon-tree-output/ember-bootstrap/components/bs-dropdown/menu.js","addon-tree-output/ember-bootstrap/components/bs-dropdown/menu/divider.js","addon-tree-output/ember-bootstrap/components/bs-dropdown/menu/item.js","addon-tree-output/ember-bootstrap/components/bs-dropdown/toggle.js","addon-tree-output/ember-bootstrap/components/bs-form.js","addon-tree-output/ember-bootstrap/components/bs-form/element.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control/checkbox.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control/input.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control/radio.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control/switch.js","addon-tree-output/ember-bootstrap/components/bs-form/element/control/textarea.js","addon-tree-output/ember-bootstrap/components/bs-form/element/errors.js","addon-tree-output/ember-bootstrap/components/bs-form/element/feedback-icon.js","addon-tree-output/ember-bootstrap/components/bs-form/element/help-text.js","addon-tree-output/ember-bootstrap/components/bs-form/element/label.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/horizontal.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/horizontal/checkbox.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/inline.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/inline/checkbox.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/vertical.js","addon-tree-output/ember-bootstrap/components/bs-form/element/layout/vertical/checkbox.js","addon-tree-output/ember-bootstrap/components/bs-form/element/legend.js","addon-tree-output/ember-bootstrap/components/bs-link-to.js","addon-tree-output/ember-bootstrap/components/bs-list-group.js","addon-tree-output/ember-bootstrap/components/bs-list-group/item.js","addon-tree-output/ember-bootstrap/components/bs-modal-simple.js","addon-tree-output/ember-bootstrap/components/bs-modal.js","addon-tree-output/ember-bootstrap/components/bs-modal/body.js","addon-tree-output/ember-bootstrap/components/bs-modal/dialog.js","addon-tree-output/ember-bootstrap/components/bs-modal/footer.js","addon-tree-output/ember-bootstrap/components/bs-modal/header.js","addon-tree-output/ember-bootstrap/components/bs-modal/header/close.js","addon-tree-output/ember-bootstrap/components/bs-modal/header/title.js","addon-tree-output/ember-bootstrap/components/bs-nav.js","addon-tree-output/ember-bootstrap/components/bs-nav/item.js","addon-tree-output/ember-bootstrap/components/bs-navbar.js","addon-tree-output/ember-bootstrap/components/bs-navbar/content.js","addon-tree-output/ember-bootstrap/components/bs-navbar/link-to.js","addon-tree-output/ember-bootstrap/components/bs-navbar/nav.js","addon-tree-output/ember-bootstrap/components/bs-navbar/toggle.js","addon-tree-output/ember-bootstrap/components/bs-popover.js","addon-tree-output/ember-bootstrap/components/bs-popover/element.js","addon-tree-output/ember-bootstrap/components/bs-progress.js","addon-tree-output/ember-bootstrap/components/bs-progress/bar.js","addon-tree-output/ember-bootstrap/components/bs-spinner.js","addon-tree-output/ember-bootstrap/components/bs-tab.js","addon-tree-output/ember-bootstrap/components/bs-tab/pane.js","addon-tree-output/ember-bootstrap/components/bs-tooltip.js","addon-tree-output/ember-bootstrap/components/bs-tooltip/element.js","addon-tree-output/ember-bootstrap/config.js","addon-tree-output/ember-bootstrap/helpers/bs-contains.js","addon-tree-output/ember-bootstrap/helpers/bs-default.js","addon-tree-output/ember-bootstrap/helpers/bs-eq.js","addon-tree-output/ember-bootstrap/helpers/bs-form-horiz-input-class.js","addon-tree-output/ember-bootstrap/helpers/bs-form-horiz-offset-class.js","addon-tree-output/ember-bootstrap/helpers/bs-noop.js","addon-tree-output/ember-bootstrap/helpers/bs-size-class.js","addon-tree-output/ember-bootstrap/helpers/bs-type-class.js","addon-tree-output/ember-bootstrap/modifiers/bs-conditional-attribute.js","addon-tree-output/ember-bootstrap/template-registry.js","addon-tree-output/ember-bootstrap/utils/decorators/arg.js","addon-tree-output/ember-bootstrap/utils/decorators/uses-transition.js","addon-tree-output/ember-bootstrap/utils/dom.js","addon-tree-output/ember-bootstrap/utils/form-validation-class.js","addon-tree-output/ember-bootstrap/utils/is-fastboot.js","addon-tree-output/ember-bootstrap/utils/size-class.js","addon-tree-output/ember-bootstrap/utils/transition-end.js","addon-tree-output/ember-bootstrap/version.js","addon-tree-output/ember-cli-app-version/initializer-factory.js","addon-tree-output/ember-cli-app-version/utils/regexp.js","addon-tree-output/ember-cli-clipboard/components/copy-button.js","addon-tree-output/ember-cli-clipboard/helpers/is-clipboard-supported.js","addon-tree-output/ember-cli-clipboard/modifiers/clipboard.js","addon-tree-output/ember-cli-string-helpers/-private/create-string-helper.js","addon-tree-output/ember-cli-string-helpers/helpers/html-safe.js","addon-tree-output/ember-cli-string-helpers/helpers/uppercase.js","addon-tree-output/ember-cli-string-helpers/utils/lowercase.js","addon-tree-output/ember-cli-string-helpers/utils/titleize.js","addon-tree-output/ember-cli-string-helpers/utils/trim.js","addon-tree-output/ember-cli-string-helpers/utils/uppercase.js","addon-tree-output/ember-composable-helpers/-private/closure-action.js","addon-tree-output/ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params.js","addon-tree-output/ember-composable-helpers/helpers/call.js","addon-tree-output/ember-composable-helpers/index.js","addon-tree-output/ember-composable-helpers/utils/as-array.js","addon-tree-output/ember-composable-helpers/utils/comparison.js","addon-tree-output/ember-composable-helpers/utils/get-index.js","addon-tree-output/ember-composable-helpers/utils/is-equal.js","addon-tree-output/ember-composable-helpers/utils/is-object.js","addon-tree-output/ember-composable-helpers/utils/is-promise.js","addon-tree-output/ember-concurrency/-private/async-arrow-runtime.js","addon-tree-output/ember-concurrency/-private/cancelable-promise-helpers.js","addon-tree-output/ember-concurrency/-private/ember-environment.js","addon-tree-output/ember-concurrency/-private/external/environment.js","addon-tree-output/ember-concurrency/-private/external/generator-state.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/bounded-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/drop-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/enqueued-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/execution-states.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/keep-latest-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/restartable-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/unbounded-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/refresh.js","addon-tree-output/ember-concurrency/-private/external/scheduler/scheduler.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/null-state.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/state-tracker.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/state.js","addon-tree-output/ember-concurrency/-private/external/task-decorators.js","addon-tree-output/ember-concurrency/-private/external/task-factory.js","addon-tree-output/ember-concurrency/-private/external/task-instance/base.js","addon-tree-output/ember-concurrency/-private/external/task-instance/cancelation.js","addon-tree-output/ember-concurrency/-private/external/task-instance/completion-states.js","addon-tree-output/ember-concurrency/-private/external/task-instance/executor.js","addon-tree-output/ember-concurrency/-private/external/task-instance/initial-state.js","addon-tree-output/ember-concurrency/-private/external/task/default-state.js","addon-tree-output/ember-concurrency/-private/external/task/task-group.js","addon-tree-output/ember-concurrency/-private/external/task/task.js","addon-tree-output/ember-concurrency/-private/external/task/taskable.js","addon-tree-output/ember-concurrency/-private/external/yieldables.js","addon-tree-output/ember-concurrency/-private/helpers.js","addon-tree-output/ember-concurrency/-private/scheduler/ember-scheduler.js","addon-tree-output/ember-concurrency/-private/task-decorators.js","addon-tree-output/ember-concurrency/-private/task-factory.js","addon-tree-output/ember-concurrency/-private/task-group.js","addon-tree-output/ember-concurrency/-private/task-instance.js","addon-tree-output/ember-concurrency/-private/task-properties.js","addon-tree-output/ember-concurrency/-private/task-public-api.js","addon-tree-output/ember-concurrency/-private/task.js","addon-tree-output/ember-concurrency/-private/taskable-mixin.js","addon-tree-output/ember-concurrency/-private/tracked-state.js","addon-tree-output/ember-concurrency/-private/utils.js","addon-tree-output/ember-concurrency/-private/wait-for.js","addon-tree-output/ember-concurrency/-task-instance.js","addon-tree-output/ember-concurrency/-task-property.js","addon-tree-output/ember-concurrency/helpers/cancel-all.js","addon-tree-output/ember-concurrency/helpers/perform.js","addon-tree-output/ember-concurrency/helpers/task.js","addon-tree-output/ember-concurrency/index.js","addon-tree-output/ember-content-loader/components/content-loader.js","addon-tree-output/ember-get-config/index.js","addon-tree-output/ember-intl/-private/formatjs/format-date-range.js","addon-tree-output/ember-intl/-private/formatjs/format-date.js","addon-tree-output/ember-intl/-private/formatjs/format-list.js","addon-tree-output/ember-intl/-private/formatjs/format-message.js","addon-tree-output/ember-intl/-private/formatjs/format-number.js","addon-tree-output/ember-intl/-private/formatjs/format-relative.js","addon-tree-output/ember-intl/-private/formatjs/format-time.js","addon-tree-output/ember-intl/-private/formatjs/index.js","addon-tree-output/ember-intl/-private/utils/escape-format-message-options.js","addon-tree-output/ember-intl/-private/utils/get-dom.js","addon-tree-output/ember-intl/-private/utils/locale.js","addon-tree-output/ember-intl/-private/utils/service.js","addon-tree-output/ember-intl/-private/utils/translations.js","addon-tree-output/ember-intl/helpers/format-date-range.js","addon-tree-output/ember-intl/helpers/format-date.js","addon-tree-output/ember-intl/helpers/format-list.js","addon-tree-output/ember-intl/helpers/format-message.js","addon-tree-output/ember-intl/helpers/format-number.js","addon-tree-output/ember-intl/helpers/format-relative.js","addon-tree-output/ember-intl/helpers/format-time.js","addon-tree-output/ember-intl/helpers/t.js","addon-tree-output/ember-intl/index.js","addon-tree-output/ember-intl/services/intl.js","addon-tree-output/ember-intl/template-registry.js","addon-tree-output/ember-intl/translations.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-on-helper/helpers/on-document.js","addon-tree-output/ember-on-helper/helpers/on-window.js","addon-tree-output/ember-on-helper/helpers/on.js","addon-tree-output/ember-on-helper/utils/event-listener.js","addon-tree-output/ember-popper-modifier/-base-popper-modifier.js","addon-tree-output/ember-popper-modifier/helpers/popper-modifier.js","addon-tree-output/ember-popper-modifier/in-runloop-modifier.js","addon-tree-output/ember-popper-modifier/index.js","addon-tree-output/ember-popper-modifier/modifiers/popper-tooltip.js","addon-tree-output/ember-popper-modifier/modifiers/popper.js","addon-tree-output/ember-popper-modifier/template-registry.js","addon-tree-output/ember-ref-bucket/helpers/ref-to.js","addon-tree-output/ember-ref-bucket/index.js","addon-tree-output/ember-ref-bucket/instance-initializers/global-ref-cleanup.js","addon-tree-output/ember-ref-bucket/modifiers/create-ref.js","addon-tree-output/ember-ref-bucket/utils/prototype-reference.js","addon-tree-output/ember-ref-bucket/utils/ref.js","addon-tree-output/ember-resolver/container-debug-adapter.js","addon-tree-output/ember-resolver/features.js","addon-tree-output/ember-resolver/index.js","addon-tree-output/ember-resolver/string/cache.js","addon-tree-output/ember-resolver/string/index.js","addon-tree-output/ember-resolver/utils/class-factory.js","addon-tree-output/ember-test-waiters/index.js","addon-tree-output/ember-tracked-storage-polyfill/index.js"],"sourcesContent":["window.EmberENV = (function(EmberENV, extra) {\n  for (var key in extra) {\n    EmberENV[key] = extra[key];\n  }\n\n  return EmberENV;\n})(window.EmberENV || {}, {\"EXTEND_PROTOTYPES\":false,\"FEATURES\":{},\"_APPLICATION_TEMPLATE_WRAPPER\":false,\"_DEFAULT_ASYNC_OBSERVERS\":true,\"_JQUERY_INTEGRATION\":false,\"_NO_IMPLICIT_ROUTE_MODEL\":true,\"_TEMPLATE_ONLY_GLIMMER_COMPONENTS\":true});\n\n// used to determine if the application should be booted immediately when `app-name.js` is evaluated\n// when `runningTests` the `app-name.js` file will **not** import the applications `app/app.js` and\n// call `Application.create(...)` on it. Additionally, applications can opt-out of this behavior by\n// setting `autoRun` to `false` in their `ember-cli-build.js`\n//\n// The default `test-support.js` file will set this to `true` when it runs (so that Application.create()\n// is not ran when running tests).\nvar runningTests = false;\n\n\n","var loader, define, requireModule, require, requirejs;\n\n(function (global) {\n  'use strict';\n\n  function dict() {\n    var obj = Object.create(null);\n    obj['__'] = undefined;\n    delete obj['__'];\n    return obj;\n  }\n\n  // Save off the original values of these globals, so we can restore them if someone asks us to\n  var oldGlobals = {\n    loader: loader,\n    define: define,\n    requireModule: requireModule,\n    require: require,\n    requirejs: requirejs\n  };\n\n  requirejs = require = requireModule = function (id) {\n    var pending = [];\n    var mod = findModule(id, '(require)', pending);\n\n    for (var i = pending.length - 1; i >= 0; i--) {\n      pending[i].exports();\n    }\n\n    return mod.module.exports;\n  };\n\n  loader = {\n    noConflict: function (aliases) {\n      var oldName, newName;\n\n      for (oldName in aliases) {\n        if (aliases.hasOwnProperty(oldName)) {\n          if (oldGlobals.hasOwnProperty(oldName)) {\n            newName = aliases[oldName];\n\n            global[newName] = global[oldName];\n            global[oldName] = oldGlobals[oldName];\n          }\n        }\n      }\n    },\n    // Option to enable or disable the generation of default exports\n    makeDefaultExport: true\n  };\n\n  var registry = dict();\n  var seen = dict();\n\n  var uuid = 0;\n\n  function unsupportedModule(length) {\n    throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`');\n  }\n\n  var defaultDeps = ['require', 'exports', 'module'];\n\n  function Module(id, deps, callback, alias) {\n    this.uuid = uuid++;\n    this.id = id;\n    this.deps = !deps.length && callback.length ? defaultDeps : deps;\n    this.module = { exports: {} };\n    this.callback = callback;\n    this.hasExportsAsDep = false;\n    this.isAlias = alias;\n    this.reified = new Array(deps.length);\n\n    /*\n       Each module normally passes through these states, in order:\n         new       : initial state\n         pending   : this module is scheduled to be executed\n         reifying  : this module's dependencies are being executed\n         reified   : this module's dependencies finished executing successfully\n         errored   : this module's dependencies failed to execute\n         finalized : this module executed successfully\n     */\n    this.state = 'new';\n  }\n\n  Module.prototype.makeDefaultExport = function () {\n    var exports = this.module.exports;\n    if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) {\n      exports['default'] = exports;\n    }\n  };\n\n  Module.prototype.exports = function () {\n    // if finalized, there is no work to do. If reifying, there is a\n    // circular dependency so we must return our (partial) exports.\n    if (this.state === 'finalized' || this.state === 'reifying') {\n      return this.module.exports;\n    }\n\n\n    if (loader.wrapModules) {\n      this.callback = loader.wrapModules(this.id, this.callback);\n    }\n\n    this.reify();\n\n    var result = this.callback.apply(this, this.reified);\n    this.reified.length = 0;\n    this.state = 'finalized';\n\n    if (!(this.hasExportsAsDep && result === undefined)) {\n      this.module.exports = result;\n    }\n    if (loader.makeDefaultExport) {\n      this.makeDefaultExport();\n    }\n    return this.module.exports;\n  };\n\n  Module.prototype.unsee = function () {\n    this.state = 'new';\n    this.module = { exports: {} };\n  };\n\n  Module.prototype.reify = function () {\n    if (this.state === 'reified') {\n      return;\n    }\n    this.state = 'reifying';\n    try {\n      this.reified = this._reify();\n      this.state = 'reified';\n    } finally {\n      if (this.state === 'reifying') {\n        this.state = 'errored';\n      }\n    }\n  };\n\n  Module.prototype._reify = function () {\n    var reified = this.reified.slice();\n    for (var i = 0; i < reified.length; i++) {\n      var mod = reified[i];\n      reified[i] = mod.exports ? mod.exports : mod.module.exports();\n    }\n    return reified;\n  };\n\n  Module.prototype.findDeps = function (pending) {\n    if (this.state !== 'new') {\n      return;\n    }\n\n    this.state = 'pending';\n\n    var deps = this.deps;\n\n    for (var i = 0; i < deps.length; i++) {\n      var dep = deps[i];\n      var entry = this.reified[i] = { exports: undefined, module: undefined };\n      if (dep === 'exports') {\n        this.hasExportsAsDep = true;\n        entry.exports = this.module.exports;\n      } else if (dep === 'require') {\n        entry.exports = this.makeRequire();\n      } else if (dep === 'module') {\n        entry.exports = this.module;\n      } else {\n        entry.module = findModule(resolve(dep, this.id), this.id, pending);\n      }\n    }\n  };\n\n  Module.prototype.makeRequire = function () {\n    var id = this.id;\n    var r = function (dep) {\n      return require(resolve(dep, id));\n    };\n    r['default'] = r;\n    r.moduleId = id;\n    r.has = function (dep) {\n      return has(resolve(dep, id));\n    };\n    return r;\n  };\n\n  define = function (id, deps, callback) {\n    var module = registry[id];\n\n    // If a module for this id has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    if (arguments.length < 2) {\n      unsupportedModule(arguments.length);\n    }\n\n    if (!Array.isArray(deps)) {\n      callback = deps;\n      deps = [];\n    }\n\n    if (callback instanceof Alias) {\n      registry[id] = new Module(callback.id, deps, callback, true);\n    } else {\n      registry[id] = new Module(id, deps, callback, false);\n    }\n  };\n\n  define.exports = function (name, defaultExport) {\n    var module = registry[name];\n\n    // If a module for this name has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    module = new Module(name, [], noop, null);\n    module.module.exports = defaultExport;\n    module.state = 'finalized';\n    registry[name] = module;\n\n    return module;\n  };\n\n  function noop() {}\n  // we don't support all of AMD\n  // define.amd = {};\n\n  function Alias(id) {\n    this.id = id;\n  }\n\n  define.alias = function (id, target) {\n    if (arguments.length === 2) {\n      return define(target, new Alias(id));\n    }\n\n    return new Alias(id);\n  };\n\n  function missingModule(id, referrer) {\n    throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`');\n  }\n\n  function findModule(id, referrer, pending) {\n    var mod = registry[id] || registry[id + '/index'];\n\n    while (mod && mod.isAlias) {\n      mod = registry[mod.id] || registry[mod.id + '/index'];\n    }\n\n    if (!mod) {\n      missingModule(id, referrer);\n    }\n\n    if (pending && mod.state !== 'pending' && mod.state !== 'finalized') {\n      mod.findDeps(pending);\n      pending.push(mod);\n    }\n    return mod;\n  }\n\n  function resolve(child, id) {\n    if (child.charAt(0) !== '.') {\n      return child;\n    }\n\n\n    var parts = child.split('/');\n    var nameParts = id.split('/');\n    var parentBase = nameParts.slice(0, -1);\n\n    for (var i = 0, l = parts.length; i < l; i++) {\n      var part = parts[i];\n\n      if (part === '..') {\n        if (parentBase.length === 0) {\n          throw new Error('Cannot access parent module of root');\n        }\n        parentBase.pop();\n      } else if (part === '.') {\n        continue;\n      } else {\n        parentBase.push(part);\n      }\n    }\n\n    return parentBase.join('/');\n  }\n\n  function has(id) {\n    return !!(registry[id] || registry[id + '/index']);\n  }\n\n  requirejs.entries = requirejs._eak_seen = registry;\n  requirejs.has = has;\n  requirejs.unsee = function (id) {\n    findModule(id, '(unsee)', false).unsee();\n  };\n\n  requirejs.clear = function () {\n    requirejs.entries = requirejs._eak_seen = registry = dict();\n    seen = dict();\n  };\n\n  // This code primes the JS engine for good performance by warming the\n  // JIT compiler for these functions.\n  define('foo', function () {});\n  define('foo/bar', [], function () {});\n  define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) {\n    if (require.has('foo/bar')) {\n      require('foo/bar');\n    }\n  });\n  define('foo/baz', [], define.alias('foo'));\n  define('foo/quz', define.alias('foo'));\n  define.alias('foo', 'foo/qux');\n  define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {});\n  define('foo/main', ['foo/bar'], function () {});\n  define.exports('foo/exports', {});\n\n  require('foo/exports');\n  require('foo/main');\n  require.unsee('foo/bar');\n\n  requirejs.clear();\n\n  if (typeof exports === 'object' && typeof module === 'object' && module.exports) {\n    module.exports = { require: require, define: define };\n  }\n})(this);","/* eslint-disable no-var */\n/* globals global globalThis self */\n/* eslint-disable-next-line no-unused-vars */\nvar define, require;\n\n(function () {\n  var globalObj =\n    typeof globalThis !== 'undefined'\n      ? globalThis\n      : typeof self !== 'undefined'\n      ? self\n      : typeof window !== 'undefined'\n      ? window\n      : typeof global !== 'undefined'\n      ? global\n      : null;\n\n  if (globalObj === null) {\n    throw new Error('unable to locate global object');\n  }\n\n  if (typeof globalObj.define === 'function' && typeof globalObj.require === 'function') {\n    define = globalObj.define;\n    require = globalObj.require;\n\n    return;\n  }\n\n  var registry = Object.create(null);\n  var seen = Object.create(null);\n\n  function missingModule(name, referrerName) {\n    if (referrerName) {\n      throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n    } else {\n      throw new Error('Could not find module ' + name);\n    }\n  }\n\n  function internalRequire(_name, referrerName) {\n    var name = _name;\n    var mod = registry[name];\n\n    if (!mod) {\n      name = name + '/index';\n      mod = registry[name];\n    }\n\n    var exports = seen[name];\n\n    if (exports !== undefined) {\n      return exports;\n    }\n\n    exports = seen[name] = {};\n\n    if (!mod) {\n      missingModule(_name, referrerName);\n    }\n\n    var deps = mod.deps;\n    var callback = mod.callback;\n    var reified = new Array(deps.length);\n\n    for (var i = 0; i < deps.length; i++) {\n      if (deps[i] === 'exports') {\n        reified[i] = exports;\n      } else if (deps[i] === 'require') {\n        reified[i] = require;\n      } else {\n        reified[i] = require(deps[i], name);\n      }\n    }\n\n    callback.apply(this, reified);\n\n    return exports;\n  }\n\n  require = function (name) {\n    return internalRequire(name, null);\n  };\n\n  define = function (name, deps, callback) {\n    registry[name] = { deps: deps, callback: callback };\n  };\n\n  // setup `require` module\n  require['default'] = require;\n\n  require.has = function registryHas(moduleName) {\n    return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']);\n  };\n\n  require._eak_seen = require.entries = registry;\n})();\n","// check if window exists and actually is the global\nvar hasDom = typeof self === 'object' && self !== null && self.Object === Object && typeof Window !== 'undefined' && self.constructor === Window && typeof document === 'object' && document !== null && self.document === document && typeof location === 'object' && location !== null && self.location === location && typeof history === 'object' && history !== null && self.history === history && typeof navigator === 'object' && navigator !== null && self.navigator === navigator && typeof navigator.userAgent === 'string';\n\nconst window = hasDom ? self : null;\nconst location$1 = hasDom ? self.location : null;\nconst history$1 = hasDom ? self.history : null;\nconst userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)';\nconst isChrome = hasDom ? typeof chrome === 'object' && !(typeof opera === 'object') : false;\nconst isFirefox = hasDom ? /Firefox|FxiOS/.test(userAgent) : false;\n\nexport { hasDom as hasDOM, history$1 as history, isChrome, isFirefox, location$1 as location, userAgent, window };\n","import { dictionary, intern } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { setOwner } from '@ember/-internals/owner';\n\nlet leakTracking;\nlet containers;\nif (DEBUG) {\n  // requires v8\n  // chrome --js-flags=\"--allow-natives-syntax --expose-gc\"\n  // node --allow-natives-syntax --expose-gc\n  try {\n    if (typeof gc === 'function') {\n      leakTracking = (() => {\n        // avoid syntax errors when --allow-natives-syntax not present\n        let GetWeakSetValues = new Function('weakSet', 'return %GetWeakSetValues(weakSet, 0)');\n        containers = new WeakSet();\n        return {\n          hasContainers() {\n            gc();\n            return GetWeakSetValues(containers).length > 0;\n          },\n          reset() {\n            let values = GetWeakSetValues(containers);\n            for (let i = 0; i < values.length; i++) {\n              containers.delete(values[i]);\n            }\n          }\n        };\n      })();\n    }\n  } catch (e) {\n    // ignore\n  }\n}\n/**\n A container used to instantiate and cache objects.\n\n Every `Container` must be associated with a `Registry`, which is referenced\n to determine the factory and options that should be used to instantiate\n objects.\n\n The public API for `Container` is still in flux and should not be considered\n stable.\n\n @private\n @class Container\n */\nclass Container {\n  constructor(registry, options = {}) {\n    this.registry = registry;\n    this.owner = options.owner || null;\n    this.cache = dictionary(options.cache || null);\n    this.factoryManagerCache = dictionary(options.factoryManagerCache || null);\n    this.isDestroyed = false;\n    this.isDestroying = false;\n    if (DEBUG) {\n      this.validationCache = dictionary(options.validationCache || null);\n      if (containers !== undefined) {\n        containers.add(this);\n      }\n    }\n  }\n  /**\n   @private\n   @property registry\n   @type Registry\n   @since 1.11.0\n   */\n  /**\n   @private\n   @property cache\n   @type InheritingDict\n   */\n  /**\n   @private\n   @property validationCache\n   @type InheritingDict\n   */\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted, an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @private\n   @method lookup\n   @param {String} fullName\n   @param {RegisterOptions} [options]\n   @return {any}\n   */\n  lookup(fullName, options) {\n    if (this.isDestroyed) {\n      throw new Error(`Cannot call \\`.lookup('${fullName}')\\` after the owner has been destroyed`);\n    }\n    assert('fullName must be a proper full name', this.registry.isValidFullName(fullName));\n    return lookup(this, this.registry.normalize(fullName), options);\n  }\n  /**\n   A depth first traversal, destroying the container, its descendant containers and all\n   their managed objects.\n    @private\n   @method destroy\n   */\n  destroy() {\n    this.isDestroying = true;\n    destroyDestroyables(this);\n  }\n  finalizeDestroy() {\n    resetCache(this);\n    this.isDestroyed = true;\n  }\n  /**\n   Clear either the entire cache or just the cache for a particular key.\n      @private\n   @method reset\n   @param {String} fullName optional key to reset; if missing, resets everything\n  */\n  reset(fullName) {\n    if (this.isDestroyed) return;\n    if (fullName === undefined) {\n      destroyDestroyables(this);\n      resetCache(this);\n    } else {\n      resetMember(this, this.registry.normalize(fullName));\n    }\n  }\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    @private\n   @method ownerInjection\n   @returns { Object }\n  */\n  ownerInjection() {\n    let injection = {};\n    setOwner(injection, this.owner);\n    return injection;\n  }\n  /**\n   Given a fullName, return the corresponding factory. The consumer of the factory\n   is responsible for the destruction of any factory instances, as there is no\n   way for the container to ensure instances are destroyed when it itself is\n   destroyed.\n    @public\n   @method factoryFor\n   @param {String} fullName\n   @return {any}\n   */\n  factoryFor(fullName) {\n    if (this.isDestroyed) {\n      throw new Error(`Cannot call \\`.factoryFor('${fullName}')\\` after the owner has been destroyed`);\n    }\n    let normalizedName = this.registry.normalize(fullName);\n    assert('fullName must be a proper full name', this.registry.isValidFullName(normalizedName));\n    return factoryFor(this, normalizedName, fullName);\n  }\n}\nif (DEBUG) {\n  Container._leakTracking = leakTracking;\n}\n/*\n * Wrap a factory manager in a proxy which will not permit properties to be\n * set on the manager.\n */\nfunction wrapManagerInDeprecationProxy(manager) {\n  let validator = {\n    set(_obj, prop) {\n      throw new Error(`You attempted to set \"${String(prop)}\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.`);\n    }\n  };\n  // Note:\n  // We have to proxy access to the manager here so that private property\n  // access doesn't cause the above errors to occur.\n  let m = manager;\n  let proxiedManager = {\n    class: m.class,\n    create(props) {\n      return m.create(props);\n    }\n  };\n  return new Proxy(proxiedManager, validator);\n}\nfunction isSingleton(container, fullName) {\n  return container.registry.getOption(fullName, 'singleton') !== false;\n}\nfunction isInstantiatable(container, fullName) {\n  return container.registry.getOption(fullName, 'instantiate') !== false;\n}\nfunction lookup(container, fullName, options = {}) {\n  let normalizedName = fullName;\n  if (options.singleton === true || options.singleton === undefined && isSingleton(container, fullName)) {\n    let cached = container.cache[normalizedName];\n    if (cached !== undefined) {\n      return cached;\n    }\n  }\n  return instantiateFactory(container, normalizedName, fullName, options);\n}\nfunction factoryFor(container, normalizedName, fullName) {\n  let cached = container.factoryManagerCache[normalizedName];\n  if (cached !== undefined) {\n    return cached;\n  }\n  let factory = container.registry.resolve(normalizedName);\n  if (factory === undefined) {\n    return;\n  }\n  if (DEBUG && factory && typeof factory._onLookup === 'function') {\n    factory._onLookup(fullName);\n  }\n  let manager = new InternalFactoryManager(container, factory, fullName, normalizedName);\n  if (DEBUG) {\n    manager = wrapManagerInDeprecationProxy(manager);\n  }\n  container.factoryManagerCache[normalizedName] = manager;\n  return manager;\n}\nfunction isSingletonClass(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName);\n}\nfunction isSingletonInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && instantiate !== false && (singleton === true || isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\nfunction isFactoryClass(container, fullname, {\n  instantiate,\n  singleton\n}) {\n  return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname);\n}\nfunction isFactoryInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return instantiate !== false && (singleton === false || !isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\nfunction instantiateFactory(container, normalizedName, fullName, options) {\n  let factoryManager = factoryFor(container, normalizedName, fullName);\n  if (factoryManager === undefined) {\n    return;\n  }\n  // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n  // By default majority of objects fall into this case\n  if (isSingletonInstance(container, fullName, options)) {\n    let instance = container.cache[normalizedName] = factoryManager.create();\n    // if this lookup happened _during_ destruction (emits a deprecation, but\n    // is still possible) ensure that it gets destroyed\n    if (container.isDestroying) {\n      if (typeof instance.destroy === 'function') {\n        instance.destroy();\n      }\n    }\n    return instance;\n  }\n  // SomeClass { singleton: false, instantiate: true }\n  if (isFactoryInstance(container, fullName, options)) {\n    return factoryManager.create();\n  }\n  // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n  if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n    return factoryManager.class;\n  }\n  throw new Error('Could not create factory');\n}\nfunction destroyDestroyables(container) {\n  let cache = container.cache;\n  let keys = Object.keys(cache);\n  for (let key of keys) {\n    let value = cache[key];\n    assert('has cached value', value);\n    if (value.destroy) {\n      value.destroy();\n    }\n  }\n}\nfunction resetCache(container) {\n  container.cache = dictionary(null);\n  container.factoryManagerCache = dictionary(null);\n}\nfunction resetMember(container, fullName) {\n  let member = container.cache[fullName];\n  delete container.factoryManagerCache[fullName];\n  if (member) {\n    delete container.cache[fullName];\n    if (member.destroy) {\n      member.destroy();\n    }\n  }\n}\nconst INIT_FACTORY = Symbol('INIT_FACTORY');\nfunction getFactoryFor(obj) {\n  // SAFETY: since we know `obj` is an `object`, we also know we can safely ask\n  // whether a key is set on it.\n  return obj[INIT_FACTORY];\n}\nfunction setFactoryFor(obj, factory) {\n  // SAFETY: since we know `obj` is an `object`, we also know we can safely set\n  // a key it safely at this location. (The only way this could be blocked is if\n  // someone has gone out of their way to use `Object.defineProperty()` with our\n  // internal-only symbol and made it `writable: false`.)\n  obj[INIT_FACTORY] = factory;\n}\nclass InternalFactoryManager {\n  constructor(container, factory, fullName, normalizedName) {\n    this.container = container;\n    this.owner = container.owner;\n    this.class = factory;\n    this.fullName = fullName;\n    this.normalizedName = normalizedName;\n    this.madeToString = undefined;\n    this.injections = undefined;\n  }\n  toString() {\n    if (this.madeToString === undefined) {\n      this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n    }\n    return this.madeToString;\n  }\n  create(options) {\n    let {\n      container\n    } = this;\n    if (container.isDestroyed) {\n      throw new Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);\n    }\n    let props = options ? {\n      ...options\n    } : {};\n    setOwner(props, container.owner);\n    setFactoryFor(props, this);\n    if (DEBUG) {\n      let lazyInjections;\n      let validationCache = this.container.validationCache;\n      // Ensure that all lazy injections are valid at instantiation time\n      if (!validationCache[this.fullName] && this.class && typeof this.class._lazyInjections === 'function') {\n        lazyInjections = this.class._lazyInjections();\n        lazyInjections = this.container.registry.normalizeInjectionsHash(lazyInjections);\n        this.container.registry.validateInjections(lazyInjections);\n      }\n      validationCache[this.fullName] = true;\n      assert(`Failed to create an instance of '${this.normalizedName}'. Most likely an improperly defined class or an invalid module export.`, typeof this.class.create === 'function');\n    }\n    return this.class.create(props);\n  }\n}\n\nconst VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n/**\n A registry used to store factory and option information keyed\n by type.\n\n A `Registry` stores the factory and option information needed by a\n `Container` to instantiate and cache objects.\n\n The API for `Registry` is still in flux and should not be considered stable.\n\n @private\n @class Registry\n @since 1.11.0\n*/\nclass Registry {\n  constructor(options = {}) {\n    this.fallback = options.fallback || null;\n    this.resolver = options.resolver || null;\n    this.registrations = dictionary(options.registrations || null);\n    this._normalizeCache = dictionary(null);\n    this._resolveCache = dictionary(null);\n    this._failSet = new Set();\n    this._options = dictionary(null);\n    this._typeOptions = dictionary(null);\n  }\n  /**\n   A backup registry for resolving registrations when no matches can be found.\n      @private\n   @property fallback\n   @type Registry\n   */\n  /**\n   An object that has a `resolve` method that resolves a name.\n      @private\n   @property resolver\n   @type Resolver\n   */\n  /**\n   @private\n   @property registrations\n   @type InheritingDict\n   */\n  /**\n   @private\n      @property _normalizeCache\n   @type InheritingDict\n   */\n  /**\n   @private\n      @property _resolveCache\n   @type InheritingDict\n   */\n  /**\n   @private\n      @property _options\n   @type InheritingDict\n   */\n  /**\n   @private\n      @property _typeOptions\n   @type InheritingDict\n   */\n  /**\n   Creates a container based on this registry.\n      @private\n   @method container\n   @param {Object} options\n   @return {Container} created container\n   */\n  container(options) {\n    return new Container(this, options);\n  }\n  register(fullName, factory, options = {}) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    assert(`Attempting to register an unknown factory: '${fullName}'`, factory !== undefined);\n    let normalizedName = this.normalize(fullName);\n    assert(`Cannot re-register: '${fullName}', as it has already been resolved.`, !this._resolveCache[normalizedName]);\n    this._failSet.delete(normalizedName);\n    this.registrations[normalizedName] = factory;\n    this._options[normalizedName] = options;\n  }\n  /**\n   Unregister a fullName\n      ```javascript\n   let registry = new Registry();\n   registry.register('model:user', User);\n      registry.resolve('model:user').create() instanceof User //=> true\n      registry.unregister('model:user')\n   registry.resolve('model:user') === undefined //=> true\n   ```\n      @private\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let normalizedName = this.normalize(fullName);\n    delete this.registrations[normalizedName];\n    delete this._resolveCache[normalizedName];\n    delete this._options[normalizedName];\n    this._failSet.delete(normalizedName);\n  }\n  /**\n   Given a fullName return the corresponding factory.\n      By default `resolve` will retrieve the factory from\n   the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.register('api:twitter', Twitter);\n      registry.resolve('api:twitter') // => Twitter\n   ```\n      Optionally the registry can be provided with a custom resolver.\n   If provided, `resolve` will first provide the custom resolver\n   the opportunity to resolve the fullName, otherwise it will fallback\n   to the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.resolver = function(fullName) {\n      // lookup via the module system of choice\n    };\n      // the twitter factory is added to the module system\n   registry.resolve('api:twitter') // => Twitter\n   ```\n      @private\n   @method resolve\n   @param {String} fullName\n   @return {Function} fullName's factory\n   */\n  resolve(fullName) {\n    let factory = resolve(this, this.normalize(fullName));\n    if (factory === undefined && this.fallback !== null) {\n      factory = this.fallback.resolve(fullName);\n    }\n    return factory;\n  }\n  /**\n   A hook that can be used to describe how the resolver will\n   attempt to find the factory.\n      For example, the default Ember `.describe` returns the full\n   class name (including namespace) where Ember's resolver expects\n   to find the `fullName`.\n      @private\n   @method describe\n   @param {String} fullName\n   @return {string} described fullName\n   */\n  describe(fullName) {\n    if (this.resolver !== null && this.resolver.lookupDescription) {\n      return this.resolver.lookupDescription(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.describe(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   A hook to enable custom fullName normalization behavior\n      @private\n   @method normalizeFullName\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n  normalizeFullName(fullName) {\n    if (this.resolver !== null && this.resolver.normalize) {\n      return this.resolver.normalize(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.normalizeFullName(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   Normalize a fullName based on the application's conventions\n      @private\n   @method normalize\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n  normalize(fullName) {\n    return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n  }\n  /**\n   @method makeToString\n      @private\n   @param {any} factory\n   @param {string} fullName\n   @return {function} toString function\n   */\n  makeToString(factory, fullName) {\n    if (this.resolver !== null && this.resolver.makeToString) {\n      return this.resolver.makeToString(factory, fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.makeToString(factory, fullName);\n    } else {\n      return typeof factory === 'string' ? factory : factory.name ?? '(unknown class)';\n    }\n  }\n  /**\n   Given a fullName check if the container is aware of its factory\n   or singleton instance.\n      @private\n   @method has\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Boolean}\n   */\n  has(fullName) {\n    if (!this.isValidFullName(fullName)) {\n      return false;\n    }\n    return has(this, this.normalize(fullName));\n  }\n  /**\n   Allow registering options for all factories of a type.\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      // if all of type `connection` must not be singletons\n   registry.optionsForType('connection', { singleton: false });\n      registry.register('connection:twitter', TwitterConnection);\n   registry.register('connection:facebook', FacebookConnection);\n      let twitter = container.lookup('connection:twitter');\n   let twitter2 = container.lookup('connection:twitter');\n      twitter === twitter2; // => false\n      let facebook = container.lookup('connection:facebook');\n   let facebook2 = container.lookup('connection:facebook');\n      facebook === facebook2; // => false\n   ```\n      @private\n   @method optionsForType\n   @param {String} type\n   @param {Object} options\n   */\n  optionsForType(type, options) {\n    this._typeOptions[type] = options;\n  }\n  getOptionsForType(type) {\n    let optionsForType = this._typeOptions[type];\n    if (optionsForType === undefined && this.fallback !== null) {\n      optionsForType = this.fallback.getOptionsForType(type);\n    }\n    return optionsForType;\n  }\n  /**\n   @private\n   @method options\n   @param {String} fullName\n   @param {Object} options\n   */\n  options(fullName, options) {\n    let normalizedName = this.normalize(fullName);\n    this._options[normalizedName] = options;\n  }\n  getOptions(fullName) {\n    let normalizedName = this.normalize(fullName);\n    let options = this._options[normalizedName];\n    if (options === undefined && this.fallback !== null) {\n      options = this.fallback.getOptions(fullName);\n    }\n    return options;\n  }\n  getOption(fullName, optionName) {\n    let options = this._options[fullName];\n    if (options !== undefined && options[optionName] !== undefined) {\n      return options[optionName];\n    }\n    let type = fullName.split(':')[0];\n    assert('has type', type); // split always will have at least one value\n    options = this._typeOptions[type];\n    if (options && options[optionName] !== undefined) {\n      return options[optionName];\n    } else if (this.fallback !== null) {\n      return this.fallback.getOption(fullName, optionName);\n    }\n    return undefined;\n  }\n  /**\n   @private\n   @method knownForType\n   @param {String} type the type to iterate over\n  */\n  knownForType(type) {\n    let localKnown = dictionary(null);\n    let registeredNames = Object.keys(this.registrations);\n    for (let fullName of registeredNames) {\n      let itemType = fullName.split(':')[0];\n      if (itemType === type) {\n        localKnown[fullName] = true;\n      }\n    }\n    let fallbackKnown, resolverKnown;\n    if (this.fallback !== null) {\n      fallbackKnown = this.fallback.knownForType(type);\n    }\n    if (this.resolver !== null && this.resolver.knownForType) {\n      resolverKnown = this.resolver.knownForType(type);\n    }\n    return Object.assign({}, fallbackKnown, localKnown, resolverKnown);\n  }\n  isValidFullName(fullName) {\n    return VALID_FULL_NAME_REGEXP.test(fullName);\n  }\n}\nif (DEBUG) {\n  const proto = Registry.prototype;\n  proto.normalizeInjectionsHash = function (hash) {\n    let injections = [];\n    for (let key in hash) {\n      if (Object.prototype.hasOwnProperty.call(hash, key)) {\n        let value = hash[key];\n        assert('has value', value);\n        let {\n          specifier\n        } = value;\n        assert(`Expected a proper full name, given '${specifier}'`, this.isValidFullName(specifier));\n        injections.push({\n          property: key,\n          specifier\n        });\n      }\n    }\n    return injections;\n  };\n  proto.validateInjections = function (injections) {\n    if (!injections) {\n      return;\n    }\n    for (let injection of injections) {\n      let {\n        specifier\n      } = injection;\n      assert(`Attempting to inject an unknown injection: '${specifier}'`, this.has(specifier));\n    }\n  };\n}\nfunction resolve(registry, _normalizedName) {\n  let normalizedName = _normalizedName;\n  let cached = registry._resolveCache[normalizedName];\n  if (cached !== undefined) {\n    return cached;\n  }\n  if (registry._failSet.has(normalizedName)) {\n    return;\n  }\n  let resolved;\n  if (registry.resolver) {\n    resolved = registry.resolver.resolve(normalizedName);\n  }\n  if (resolved === undefined) {\n    resolved = registry.registrations[normalizedName];\n  }\n  if (resolved === undefined) {\n    registry._failSet.add(normalizedName);\n  } else {\n    registry._resolveCache[normalizedName] = resolved;\n  }\n  return resolved;\n}\nfunction has(registry, fullName) {\n  return registry.resolve(fullName) !== undefined;\n}\nconst privateNames = dictionary(null);\nconst privateSuffix = `${Math.random()}${Date.now()}`.replace('.', '');\nfunction privatize([fullName]) {\n  assert('has a single string argument', arguments.length === 1 && fullName);\n  let name = privateNames[fullName];\n  if (name) {\n    return name;\n  }\n  let [type, rawName] = fullName.split(':');\n  return privateNames[fullName] = intern(`${type}:${rawName}-${privateSuffix}`);\n}\n\nexport { Container, INIT_FACTORY, Registry, getFactoryFor, privatize, setFactoryFor };\n","import { DEBUG } from '@glimmer/env';\n\n// from lodash to catch fake globals\nfunction checkGlobal(value) {\n  return value && value.Object === Object ? value : undefined;\n}\n// element ids can ruin global miss checks\nfunction checkElementIdShadowing(value) {\n  return value && value.nodeType === undefined ? value : undefined;\n}\n// export real global\nvar global$1 = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || typeof mainContext !== 'undefined' && mainContext ||\n// set before strict mode in Ember loader/wrapper\nnew Function('return this')(); // eval outside of strict mode\n\n// legacy imports/exports/lookup stuff (should we keep this??)\nconst context = function (global, Ember) {\n  return Ember === undefined ? {\n    imports: global,\n    exports: global,\n    lookup: global\n  } : {\n    // import jQuery\n    imports: Ember.imports || global,\n    // export Ember\n    exports: Ember.exports || global,\n    // search for Namespaces\n    lookup: Ember.lookup || global\n  };\n}(global$1, global$1.Ember);\nfunction getLookup() {\n  return context.lookup;\n}\nfunction setLookup(value) {\n  context.lookup = value;\n}\n\n/**\n  The hash of environment variables used to control various configuration\n  settings. To specify your own or override default settings, add the\n  desired properties to a global hash named `EmberENV` (or `ENV` for\n  backwards compatibility with earlier versions of Ember). The `EmberENV`\n  hash must be created before loading Ember.\n\n  @class EmberENV\n  @type Object\n  @public\n*/\nconst ENV = {\n  ENABLE_OPTIONAL_FEATURES: false,\n  /**\n    Determines whether Ember should add to `Array`\n    native object prototypes, a few extra methods in order to provide a more\n    friendly API.\n       We generally recommend leaving this option set to true however, if you need\n    to turn it off, you can add the configuration property\n    `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`.\n       Note, when disabled (the default configuration for Ember Addons), you will\n    instead have to access all methods and functions from the Ember\n    namespace.\n       @property EXTEND_PROTOTYPES\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  EXTEND_PROTOTYPES: {\n    Array: true\n  },\n  /**\n    The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n    a full stack trace during deprecation warnings.\n       @property LOG_STACKTRACE_ON_DEPRECATION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_STACKTRACE_ON_DEPRECATION: true,\n  /**\n    The `LOG_VERSION` property, when true, tells Ember to log versions of all\n    dependent libraries in use.\n       @property LOG_VERSION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_VERSION: true,\n  RAISE_ON_DEPRECATION: false,\n  STRUCTURED_PROFILE: false,\n  /**\n    Whether to insert a `<div class=\"ember-view\" />` wrapper around the\n    application template. See RFC #280.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _APPLICATION_TEMPLATE_WRAPPER\n    @for EmberENV\n    @type Boolean\n    @default true\n    @private\n  */\n  _APPLICATION_TEMPLATE_WRAPPER: true,\n  /**\n    Whether to use Glimmer Component semantics (as opposed to the classic \"Curly\"\n    components semantics) for template-only components. See RFC #278.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _TEMPLATE_ONLY_GLIMMER_COMPONENTS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _TEMPLATE_ONLY_GLIMMER_COMPONENTS: false,\n  /**\n    Whether to perform extra bookkeeping needed to make the `captureRenderTree`\n    API work.\n       This has to be set before the ember JavaScript code is evaluated. This is\n    usually done by setting `window.EmberENV = { _DEBUG_RENDER_TREE: true };`\n    before the \"vendor\" `<script>` tag in `index.html`.\n       Setting the flag after Ember is already loaded will not work correctly. It\n    may appear to work somewhat, but fundamentally broken.\n       This is not intended to be set directly. Ember Inspector will enable the\n    flag on behalf of the user as needed.\n       This flag is always on in development mode.\n       The flag is off by default in production mode, due to the cost associated\n    with the the bookkeeping work.\n       The expected flow is that Ember Inspector will ask the user to refresh the\n    page after enabling the feature. It could also offer a feature where the\n    user add some domains to the \"always on\" list. In either case, Ember\n    Inspector will inject the code on the page to set the flag if needed.\n       @property _DEBUG_RENDER_TREE\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEBUG_RENDER_TREE: DEBUG,\n  /**\n    Whether the app defaults to using async observers.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _DEFAULT_ASYNC_OBSERVERS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEFAULT_ASYNC_OBSERVERS: false,\n  /**\n   Whether the app still has default record-loading behavior in the model\n   hook from RFC https://rfcs.emberjs.com/id/0774-implicit-record-route-loading\n   This will also remove the default store property from the route.\n      This is not intended to be set directly, as the implementation may change in\n   the future. Use `@ember/optional-features` instead.\n      @property _NO_IMPLICIT_ROUTE_MODEL\n   @for EmberENV\n   @type Boolean\n   @default false\n   @private\n   */\n  _NO_IMPLICIT_ROUTE_MODEL: false,\n  /**\n    Controls the maximum number of scheduled rerenders without \"settling\". In general,\n    applications should not need to modify this environment variable, but please\n    open an issue so that we can determine if a better default value is needed.\n       @property _RERENDER_LOOP_LIMIT\n    @for EmberENV\n    @type number\n    @default 1000\n    @private\n   */\n  _RERENDER_LOOP_LIMIT: 1000,\n  EMBER_LOAD_HOOKS: {},\n  FEATURES: {}\n};\n(EmberENV => {\n  if (typeof EmberENV !== 'object' || EmberENV === null) return;\n  for (let flag in EmberENV) {\n    if (!Object.prototype.hasOwnProperty.call(EmberENV, flag) || flag === 'EXTEND_PROTOTYPES' || flag === 'EMBER_LOAD_HOOKS') continue;\n    let defaultValue = ENV[flag];\n    if (defaultValue === true) {\n      ENV[flag] = EmberENV[flag] !== false;\n    } else if (defaultValue === false) {\n      ENV[flag] = EmberENV[flag] === true;\n    }\n  }\n  let {\n    EXTEND_PROTOTYPES\n  } = EmberENV;\n  if (EXTEND_PROTOTYPES !== undefined) {\n    if (typeof EXTEND_PROTOTYPES === 'object' && EXTEND_PROTOTYPES !== null) {\n      ENV.EXTEND_PROTOTYPES.Array = EXTEND_PROTOTYPES.Array !== false;\n    } else {\n      ENV.EXTEND_PROTOTYPES.Array = EXTEND_PROTOTYPES !== false;\n    }\n  }\n  // TODO this does not seem to be used by anything,\n  //      can we remove it? do we need to deprecate it?\n  let {\n    EMBER_LOAD_HOOKS\n  } = EmberENV;\n  if (typeof EMBER_LOAD_HOOKS === 'object' && EMBER_LOAD_HOOKS !== null) {\n    for (let hookName in EMBER_LOAD_HOOKS) {\n      if (!Object.prototype.hasOwnProperty.call(EMBER_LOAD_HOOKS, hookName)) continue;\n      let hooks = EMBER_LOAD_HOOKS[hookName];\n      if (Array.isArray(hooks)) {\n        ENV.EMBER_LOAD_HOOKS[hookName] = hooks.filter(hook => typeof hook === 'function');\n      }\n    }\n  }\n  let {\n    FEATURES\n  } = EmberENV;\n  if (typeof FEATURES === 'object' && FEATURES !== null) {\n    for (let feature in FEATURES) {\n      if (!Object.prototype.hasOwnProperty.call(FEATURES, feature)) continue;\n      ENV.FEATURES[feature] = FEATURES[feature] === true;\n    }\n  }\n  if (DEBUG) {\n    ENV._DEBUG_RENDER_TREE = true;\n  }\n})(global$1.EmberENV);\nfunction getENV() {\n  return ENV;\n}\n\nexport { ENV, context, getENV, getLookup, global$1 as global, setLookup };\n","let onerror;\nexport const onErrorTarget = {\n  get onerror() {\n    return onerror;\n  }\n};\n// Ember.onerror getter\nexport function getOnerror() {\n  return onerror;\n}\n// Ember.onerror setter\nexport function setOnerror(handler) {\n  onerror = handler;\n}\nlet dispatchOverride = null;\n// allows testing adapter to override dispatch\nexport function getDispatchOverride() {\n  return dispatchOverride;\n}\nexport function setDispatchOverride(handler) {\n  dispatchOverride = handler;\n}","import { programCompilationContext } from '@glimmer/opcode-compiler';\nexport { templateFactory as template, templateCacheCounters } from '@glimmer/opcode-compiler';\nimport { precompileTemplate } from '@ember/template-compilation';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { assert, warn, debugFreeze, inspect, deprecate } from '@ember/debug';\nimport { action as action$1 } from '@ember/object';\nimport { valueForRef, isConstRef, createConstRef, isUpdatableRef, updateRef, createPrimitiveRef, childRefFor, createComputeRef, childRefFromParts, isInvokableRef, createUnboundRef, createInvokableRef, createReadOnlyRef, createDebugAliasRef, UNDEFINED_REFERENCE } from '@glimmer/reference';\nimport { untrack, createCache, consumeTag, tagFor, getValue, valueForTag, beginUntrackFrame, endUntrackFrame, beginTrackFrame, endTrackFrame, validateTag, createTag, dirtyTag, CONSTANT_TAG, isTracking, debug, createUpdatableTag, CURRENT_TAG } from '@glimmer/validator';\nimport { on } from '@ember/modifier';\nimport { tracked, get, PROPERTY_DID_CHANGE, tagForObject, objectAt, tagForProperty, _getProp, _setProp, set } from '@ember/-internals/metal';\nimport { setOwner, getOwner, isFactory } from '@ember/-internals/owner';\nimport { guidFor, enumerableSymbol, getDebugName, isProxy, isObject, uuid } from '@ember/-internals/utils';\nimport { setInternalComponentManager, setComponentTemplate, setInternalHelperManager, setHelperManager, getInternalHelperManager, helperCapabilities, capabilityFlagsFrom, setInternalModifierManager, getInternalComponentManager, getComponentTemplate, setComponentManager as setComponentManager$1, componentCapabilities as componentCapabilities$1, modifierCapabilities as modifierCapabilities$1 } from '@glimmer/manager';\nimport { isSimpleClick, getViewElement, clearElementView, clearViewElement, MUTABLE_CELL, addChildView, setViewElement, setElementView, CoreView, ChildViewsSupport, ViewStateSupport, ClassNamesSupport, ActionSupport, ViewMixin, EventDispatcher, constructStyleDeprecationMessage, ActionManager, getViewId } from '@ember/-internals/views';\nimport { getEngineParent } from '@ember/engine';\nimport EngineInstance from '@ember/engine/instance';\nimport { flaggedInstrument, _instrumentStart } from '@ember/instrumentation';\nimport { service } from '@ember/service';\nimport { DEBUG } from '@glimmer/env';\nimport { TargetActionSupport, _contentFor } from '@ember/-internals/runtime';\nimport { reifyPositional, normalizeProperty, EMPTY_ARGS, createCapturedArgs, EMPTY_POSITIONAL, curry, templateOnlyComponent, TEMPLATE_ONLY_COMPONENT_MANAGER, hash, array, concat, fn, get as get$1, on as on$1, runtimeContext, DOMTreeConstruction, DOMChanges, clientBuilder, inTransaction, renderMain, rehydrationBuilder } from '@glimmer/runtime';\nexport { DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '@glimmer/runtime';\nimport { unwrapTemplate, EMPTY_ARRAY as EMPTY_ARRAY$1, dict } from '@glimmer/util';\nimport { dasherize } from '@ember/-internals/string';\nimport { registerDestructor, associateDestroyableChild, destroy } from '@glimmer/destroyable';\nimport { join, _backburner, schedule, _getCurrentRunLoop } from '@ember/runloop';\nimport { FrameworkObject } from '@ember/object/-internals';\nimport { getFactoryFor, privatize } from '@ember/-internals/container';\nimport { ENV } from '@ember/-internals/environment';\nimport { CurriedType } from '@glimmer/vm';\nimport { artifacts, RuntimeOpImpl } from '@glimmer/program';\nimport RSVP from 'rsvp';\nimport { NodeDOMTreeConstruction, serializeBuilder } from '@glimmer/node';\nexport { NodeDOMTreeConstruction } from '@glimmer/node';\nimport setGlobalContext from '@glimmer/global-context';\nimport { isEmberArray } from '@ember/array/-internals';\nimport { isHTMLSafe as isHTMLSafe$1 } from '@ember/-internals/glimmer';\nimport { isArray } from '@ember/array';\nimport { generateControllerFactory } from '@ember/routing/-internals';\n\nvar RootTemplate = precompileTemplate(`{{component this}}`, {\n  moduleName: 'packages/@ember/-internals/glimmer/lib/templates/root.hbs',\n  strictMode: true\n});\n\nvar InputTemplate = precompileTemplate(`<input\n  {{!-- for compatibility --}}\n  id={{this.id}}\n  class={{this.class}}\n\n  ...attributes\n\n  type={{this.type}}\n  checked={{this.checked}}\n  value={{this.value}}\n\n  {{on \"change\" this.change}}\n  {{on \"input\" this.input}}\n  {{on \"keyup\" this.keyUp}}\n  {{on \"paste\" this.valueDidChange}}\n  {{on \"cut\" this.valueDidChange}}\n/>`, {\n  moduleName: 'packages/@ember/-internals/glimmer/lib/templates/input.hbs',\n  strictMode: true,\n  scope() {\n    return {\n      on\n    };\n  }\n});\n\nfunction NOOP$2() {}\nclass InternalComponent {\n  // Override this\n  static toString() {\n    return 'internal component';\n  }\n  constructor(owner, args, caller) {\n    this.owner = owner;\n    this.args = args;\n    this.caller = caller;\n    setOwner(this, owner);\n  }\n  /**\n   * The default HTML id attribute. We don't really _need_ one, this is just\n   * added for compatibility as it's hard to tell if people rely on it being\n   * present, and it doens't really hurt.\n   *\n   * However, don't rely on this internally, like passing it to `getElementId`.\n   * This can be (and often is) overriden by passing an `id` attribute on the\n   * invocation, which shadows this default id via `...attributes`.\n   */\n  get id() {\n    return guidFor(this);\n  }\n  /**\n   * The default HTML class attribute. Similar to the above, we don't _need_\n   * them, they are just added for compatibility as it's similarly hard to tell\n   * if people rely on it in their CSS etc, and it doens't really hurt.\n   */\n  get class() {\n    return 'ember-view';\n  }\n  validateArguments() {\n    for (let name of Object.keys(this.args.named)) {\n      if (!this.isSupportedArgument(name)) {\n        this.onUnsupportedArgument(name);\n      }\n    }\n  }\n  named(name) {\n    let ref = this.args.named[name];\n    return ref ? valueForRef(ref) : undefined;\n  }\n  positional(index) {\n    let ref = this.args.positional[index];\n    return ref ? valueForRef(ref) : undefined;\n  }\n  listenerFor(name) {\n    let listener = this.named(name);\n    if (listener) {\n      assert(`The \\`@${name}\\` argument to the <${this.constructor}> component must be a function`, typeof listener === 'function');\n      return listener;\n    } else {\n      return NOOP$2;\n    }\n  }\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  isSupportedArgument(_name) {\n    return false;\n  }\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  onUnsupportedArgument(_name) {}\n  toString() {\n    return `<${this.constructor}:${guidFor(this)}>`;\n  }\n}\nconst OPAQUE_CONSTRUCTOR_MAP = new WeakMap();\nfunction opaquify(constructor, template) {\n  let _opaque = {\n    // Factory interface\n    create() {\n      throw assert('Use constructor instead of create');\n    },\n    toString() {\n      return constructor.toString();\n    }\n  };\n  let opaque = _opaque;\n  OPAQUE_CONSTRUCTOR_MAP.set(opaque, constructor);\n  setInternalComponentManager(INTERNAL_COMPONENT_MANAGER, opaque);\n  setComponentTemplate(template, opaque);\n  return opaque;\n}\nfunction deopaquify(opaque) {\n  let constructor = OPAQUE_CONSTRUCTOR_MAP.get(opaque);\n  assert(`[BUG] Invalid internal component constructor: ${opaque}`, constructor);\n  return constructor;\n}\nconst CAPABILITIES$2 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass InternalManager {\n  getCapabilities() {\n    return CAPABILITIES$2;\n  }\n  create(owner, definition, args, _env, _dynamicScope, caller) {\n    assert('caller must be const', isConstRef(caller));\n    let ComponentClass = deopaquify(definition);\n    let instance = new ComponentClass(owner, args.capture(), valueForRef(caller));\n    untrack(instance['validateArguments'].bind(instance));\n    return instance;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  getDebugName(definition) {\n    return definition.toString();\n  }\n  getSelf(instance) {\n    return createConstRef(instance, 'this');\n  }\n  getDestroyable(instance) {\n    return instance;\n  }\n}\nconst INTERNAL_COMPONENT_MANAGER = new InternalManager();\n\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nconst UNINITIALIZED = Object.freeze({});\nfunction elementForEvent(event) {\n  assert('[BUG] event target must be an <input> or <textarea> element', event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement);\n  return event.target;\n}\nfunction valueForEvent(event) {\n  return elementForEvent(event).value;\n}\nfunction devirtualize(callback) {\n  return event => callback(valueForEvent(event), event);\n}\nfunction valueFrom(reference) {\n  if (reference === undefined) {\n    return new LocalValue(undefined);\n  } else if (isConstRef(reference)) {\n    return new LocalValue(valueForRef(reference));\n  } else if (isUpdatableRef(reference)) {\n    return new UpstreamValue(reference);\n  } else {\n    return new ForkedValue(reference);\n  }\n}\nclass LocalValue {\n  constructor(value) {\n    this.value = value;\n  }\n  get() {\n    return this.value;\n  }\n  set(value) {\n    this.value = value;\n  }\n}\n__decorate$3([tracked], LocalValue.prototype, \"value\", void 0);\nclass UpstreamValue {\n  constructor(reference) {\n    this.reference = reference;\n  }\n  get() {\n    return valueForRef(this.reference);\n  }\n  set(value) {\n    updateRef(this.reference, value);\n  }\n}\nclass ForkedValue {\n  constructor(reference) {\n    this.lastUpstreamValue = UNINITIALIZED;\n    this.upstream = new UpstreamValue(reference);\n  }\n  get() {\n    let upstreamValue = this.upstream.get();\n    if (upstreamValue !== this.lastUpstreamValue) {\n      this.lastUpstreamValue = upstreamValue;\n      this.local = new LocalValue(upstreamValue);\n    }\n    assert('[BUG] this.local must have been initialized at this point', this.local);\n    return this.local.get();\n  }\n  set(value) {\n    assert('[BUG] this.local must have been initialized at this point', this.local);\n    this.local.set(value);\n  }\n}\nclass AbstractInput extends InternalComponent {\n  constructor() {\n    super(...arguments);\n    this._value = valueFrom(this.args.named['value']);\n  }\n  validateArguments() {\n    assert(`The ${this.constructor} component does not take any positional arguments`, this.args.positional.length === 0);\n    super.validateArguments();\n  }\n  get value() {\n    return this._value.get();\n  }\n  set value(value) {\n    this._value.set(value);\n  }\n  valueDidChange(event) {\n    this.value = valueForEvent(event);\n  }\n  /**\n   * The `change` and `input` actions need to be overridden in the `Input`\n   * subclass. Unfortunately, some ember-source builds currently uses babel\n   * loose mode to transpile its classes. Having the `@action` decorator on the\n   * super class creates a getter on the prototype, and when the subclass\n   * overrides the method, the loose mode transpilation would emit something\n   * like `Subclass.prototype['change'] = function change() { ... }`, which\n   * fails because `prototype['change']` is getter-only/readonly. The correct\n   * solution is to use `Object.defineProperty(prototype, 'change', ...)` but\n   * that requires disabling loose mode. For now, the workaround is to add the\n   * decorator only on the subclass. This is more of a configuration issue on\n   * our own builds and doesn't really affect apps.\n   */\n  /* @action */\n  change(event) {\n    this.valueDidChange(event);\n  }\n  /* @action */\n  input(event) {\n    this.valueDidChange(event);\n  }\n  keyUp(event) {\n    switch (event.key) {\n      case 'Enter':\n        this.listenerFor('enter')(event);\n        this.listenerFor('insert-newline')(event);\n        break;\n      case 'Escape':\n        this.listenerFor('escape-press')(event);\n        break;\n    }\n  }\n  listenerFor(name) {\n    let listener = super.listenerFor(name);\n    if (this.isVirtualEventListener(name, listener)) {\n      return devirtualize(listener);\n    } else {\n      return listener;\n    }\n  }\n  isVirtualEventListener(name, _listener) {\n    let virtualEvents = ['enter', 'insert-newline', 'escape-press'];\n    return virtualEvents.indexOf(name) !== -1;\n  }\n}\n__decorate$3([action$1], AbstractInput.prototype, \"valueDidChange\", null);\n__decorate$3([action$1], AbstractInput.prototype, \"keyUp\", null);\n\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nlet isValidInputType;\nif (hasDOM) {\n  const INPUT_TYPES = Object.create(null);\n  const INPUT_ELEMENT = document.createElement('input');\n  INPUT_TYPES[''] = false;\n  INPUT_TYPES['text'] = true;\n  INPUT_TYPES['checkbox'] = true;\n  isValidInputType = type => {\n    let isValid = INPUT_TYPES[type];\n    if (isValid === undefined) {\n      try {\n        INPUT_ELEMENT.type = type;\n        isValid = INPUT_ELEMENT.type === type;\n      } catch (e) {\n        isValid = false;\n      } finally {\n        INPUT_ELEMENT.type = 'text';\n      }\n      INPUT_TYPES[type] = isValid;\n    }\n    return isValid;\n  };\n} else {\n  isValidInputType = type => type !== '';\n}\n/**\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input).\n\n  @method input\n  @for Ember.Templates.helpers\n  @param {Hash} options\n  @public\n  */\n/**\n  An opaque interface which can be imported and used in strict-mode\n  templates to call <Input>.\n\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input).\n\n  @for @ember/component\n  @method Input\n  @see {Ember.Templates.components.Input}\n  @public\n**/\n/**\n  The `Input` component lets you create an HTML `<input>` element.\n\n  ```handlebars\n  <Input @value=\"987\" />\n  ```\n\n  creates an `<input>` element with `type=\"text\"` and value set to 987.\n\n  ### Text field\n\n  If no `type` argument is specified, a default of type 'text' is used.\n\n  ```handlebars\n  Search:\n  <Input @value={{this.searchWord}} />\n  ```\n\n  In this example, the initial value in the `<input>` will be set to the value of\n  `this.searchWord`. If the user changes the text, the value of `this.searchWord` will also be\n  updated.\n\n  ### Actions\n\n  The `Input` component takes a number of arguments with callbacks that are invoked in response to\n  user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-down`\n  * `key-press`\n  * `key-up`\n\n  These callbacks are passed to `Input` like this:\n\n  ```handlebars\n  <Input @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  Starting with Ember Octane, we recommend using the `{{on}}` modifier to call actions\n  on specific events, such as the input event.\n\n  ```handlebars\n  <label for=\"input-name\">Name:</label>\n  <Input\n    @id=\"input-name\"\n    @value={{this.name}}\n    {{on \"input\" this.validateName}}\n  />\n  ```\n\n  The event name (e.g. `focusout`, `input`, `keydown`) always follows the casing\n  that the HTML standard uses.\n\n  ### `<input>` HTML Attributes to Avoid\n\n  In most cases, if you want to pass an attribute to the underlying HTML `<input>` element, you\n  can pass the attribute directly, just like any other Ember component.\n\n  ```handlebars\n  <Input @type=\"text\" size=\"10\" />\n  ```\n\n  In this example, the `size` attribute will be applied to the underlying `<input>` element in the\n  outputted HTML.\n\n  However, there are a few attributes where you **must** use the `@` version.\n\n  * `@type`: This argument is used to control which Ember component is used under the hood\n  * `@value`: The `@value` argument installs a two-way binding onto the element. If you wanted a\n    one-way binding, use `<input>` with the `value` property and the `input` event instead.\n  * `@checked` (for checkboxes): like `@value`, the `@checked` argument installs a two-way binding\n    onto the element. If you wanted a one-way binding, use `<input type=\"checkbox\">` with\n    `checked` and the `input` event instead.\n\n  ### Checkbox\n\n  To create an `<input type=\"checkbox\">`:\n\n  ```handlebars\n  Emberize Everything:\n  <Input @type=\"checkbox\" @checked={{this.isEmberized}} name=\"isEmberized\" />\n  ```\n\n  This will bind the checked state of this checkbox to the value of `isEmberized` -- if either one\n  changes, it will be reflected in the other.\n\n  @method Input\n  @for Ember.Templates.components\n  @param {Hash} options\n  @public\n*/\nclass _Input extends AbstractInput {\n  constructor() {\n    super(...arguments);\n    this._checked = valueFrom(this.args.named['checked']);\n  }\n  static toString() {\n    return 'Input';\n  }\n  /**\n   * The HTML class attribute.\n   */\n  get class() {\n    if (this.isCheckbox) {\n      return 'ember-checkbox ember-view';\n    } else {\n      return 'ember-text-field ember-view';\n    }\n  }\n  /**\n   * The HTML type attribute.\n   */\n  get type() {\n    let type = this.named('type');\n    if (type === null || type === undefined) {\n      return 'text';\n    }\n    assert('The `@type` argument to the <Input> component must be a string', typeof type === 'string');\n    return isValidInputType(type) ? type : 'text';\n  }\n  get isCheckbox() {\n    return this.named('type') === 'checkbox';\n  }\n  get checked() {\n    if (this.isCheckbox) {\n      warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. ' + 'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. ' + 'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?', untrack(() => this.args.named['checked'] !== undefined || this.args.named['value'] === undefined || typeof valueForRef(this.args.named['value']) === 'string'), {\n        id: 'ember.built-in-components.input-checkbox-value'\n      });\n      return this._checked.get();\n    } else {\n      return undefined;\n    }\n  }\n  set checked(checked) {\n    warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. ' + 'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. ' + 'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?', untrack(() => this.args.named['checked'] !== undefined || this.args.named['value'] === undefined || typeof valueForRef(this.args.named['value']) === 'string'), {\n      id: 'ember.built-in-components.input-checkbox-value'\n    });\n    this._checked.set(checked);\n  }\n  change(event) {\n    if (this.isCheckbox) {\n      this.checkedDidChange(event);\n    } else {\n      super.change(event);\n    }\n  }\n  input(event) {\n    if (!this.isCheckbox) {\n      super.input(event);\n    }\n  }\n  checkedDidChange(event) {\n    let element = event.target;\n    assert('[BUG] element must be an <input>', element instanceof HTMLInputElement);\n    this.checked = element.checked;\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'checked', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\n__decorate$2([action$1], _Input.prototype, \"change\", null);\n__decorate$2([action$1], _Input.prototype, \"input\", null);\n__decorate$2([action$1], _Input.prototype, \"checkedDidChange\", null);\nconst Input = opaquify(_Input, InputTemplate);\n\nvar LinkToTemplate = precompileTemplate(`<a\n  {{!-- for compatibility --}}\n  id={{this.id}}\n  class={{this.class}}\n\n  {{!-- deprecated attribute bindings --}}\n  role={{this.role}}\n  title={{this.title}}\n  rel={{this.rel}}\n  tabindex={{this.tabindex}}\n  target={{this.target}}\n\n  ...attributes\n\n  href={{this.href}}\n\n  {{on 'click' this.click}}\n>{{yield}}</a>`, {\n  moduleName: 'packages/@ember/-internals/glimmer/lib/templates/link-to.hbs',\n  strictMode: true,\n  scope() {\n    return {\n      on\n    };\n  }\n});\n\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nconst EMPTY_ARRAY = [];\nconst EMPTY_QUERY_PARAMS = {};\ndebugFreeze(EMPTY_ARRAY);\ndebugFreeze(EMPTY_QUERY_PARAMS);\nfunction isMissing(value) {\n  return value === null || value === undefined;\n}\nfunction isPresent(value) {\n  return !isMissing(value);\n}\nfunction isQueryParams(value) {\n  return typeof value === 'object' && value !== null && value['isQueryParams'] === true;\n}\n/**\n  The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\n  supplied model to the route as its `model` context of the route. The block for `LinkTo`\n  becomes the contents of the rendered element:\n\n  ```handlebars\n  <LinkTo @route='photoGallery'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Disabling the `LinkTo` component\n\n  The `LinkTo` component can be disabled by using the `disabled` argument. A disabled link\n  doesn't result in a transition when activated, and adds the `disabled` class to the `<a>`\n  element.\n\n  (The class name to apply to the element can be overridden by using the `disabledClass`\n  argument)\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @disabled={{true}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ### Handling `href`\n\n  `<LinkTo>` will use your application's Router to fill the element's `href` property with a URL\n  that matches the path to the supplied `routeName`.\n\n  ### Handling current route\n\n  The `LinkTo` component will apply a CSS class name of 'active' when the application's current\n  route matches the supplied routeName. For example, if the application's current route is\n  'photoGallery.recent', then the following invocation of `LinkTo`:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  will result in\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"active\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  The CSS class used for active classes can be customized by passing an `activeClass` argument:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent' @activeClass=\"current-url\">\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Keeping a link active for other routes\n\n  If you need a link to be 'active' even when it doesn't match the current route, you can use the\n  `current-when` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @current-when='photos'>\n    Photo Gallery\n  </LinkTo>\n  ```\n\n  This may be helpful for keeping links active for:\n\n  * non-nested routes that are logically related\n  * some secondary menu approaches\n  * 'top navigation' with 'sub navigation' scenarios\n\n  A link will be active if `current-when` is `true` or the current\n  route is the route this link would transition to.\n\n  To match multiple routes 'space-separate' the routes:\n\n  ```handlebars\n  <LinkTo @route='gallery' @current-when='photos drawings paintings'>\n    Art Gallery\n  </LinkTo>\n  ```\n\n  ### Supplying a model\n\n  An optional `model` argument can be used for routes whose\n  paths contain dynamic segments. This argument will become\n  the model context of the linked route:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{this.aPhoto}}>\n    {{aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  ### Supplying multiple models\n\n  For deep-linking to route paths that contain multiple\n  dynamic segments, the `models` argument can be used.\n\n  As the router transitions through the route path, each\n  supplied model argument will become the context for the\n  route with the dynamic segments:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n      this.route(\"comment\", {path: \"comments/:comment_id\"});\n    });\n  });\n  ```\n\n  This argument will become the model context of the linked route:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.comment' @models={{array this.aPhoto this.comment}}>\n    {{comment.body}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42/comments/718\">\n    A+++ would snuggle again.\n  </a>\n  ```\n\n  ### Supplying an explicit dynamic segment value\n\n  If you don't have a model object available to pass to `LinkTo`,\n  an optional string or integer argument can be passed for routes whose\n  paths contain dynamic segments. This argument will become the value\n  of the dynamic segment:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{aPhotoId}}>\n    {{this.aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  When transitioning into the linked route, the `model` hook will\n  be triggered with parameters including this passed identifier.\n\n  ### Supplying query parameters\n\n  If you need to add optional key-value pairs that appear to the right of the ? in a URL,\n  you can use the `query` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @query={{hash page=1 per_page=20}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos?page=1&per_page=20\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  @for Ember.Templates.components\n  @method LinkTo\n  @public\n*/\n/**\n  @module @ember/routing\n*/\n/**\n  See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).\n\n  @for Ember.Templates.helpers\n  @method link-to\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\n/**\n  An opaque interface which can be imported and used in strict-mode\n  templates to call <LinkTo>.\n\n  See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).\n\n  @for @ember/routing\n  @method LinkTo\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\nclass _LinkTo extends InternalComponent {\n  constructor() {\n    super(...arguments);\n    // GH #17963\n    this.currentRouteCache = createCache(() => {\n      consumeTag(tagFor(this.routing, 'currentState'));\n      return untrack(() => this.routing.currentRouteName);\n    });\n  }\n  static toString() {\n    return 'LinkTo';\n  }\n  validateArguments() {\n    assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this.isEngine || this.engineMountPoint !== undefined);\n    assert('You must provide at least one of the `@route`, `@model`, `@models` or `@query` arguments to `<LinkTo>`.', 'route' in this.args.named || 'model' in this.args.named || 'models' in this.args.named || 'query' in this.args.named);\n    assert('You cannot provide both the `@model` and `@models` arguments to the <LinkTo> component.', !('model' in this.args.named && 'models' in this.args.named));\n    super.validateArguments();\n  }\n  get class() {\n    let classes = 'ember-view';\n    if (this.isActive) {\n      classes += this.classFor('active');\n      if (this.willBeActive === false) {\n        classes += ' ember-transitioning-out';\n      }\n    } else if (this.willBeActive) {\n      classes += ' ember-transitioning-in';\n    }\n    if (this.isLoading) {\n      classes += this.classFor('loading');\n    }\n    if (this.isDisabled) {\n      classes += this.classFor('disabled');\n    }\n    return classes;\n  }\n  get href() {\n    if (this.isLoading) {\n      return '#';\n    }\n    let {\n      routing,\n      route,\n      models,\n      query\n    } = this;\n    assert('[BUG] route can only be missing if isLoading is true', isPresent(route));\n    // consume the current router state so we invalidate when QP changes\n    // TODO: can we narrow this down to QP changes only?\n    consumeTag(tagFor(routing, 'currentState'));\n    if (DEBUG) {\n      try {\n        return routing.generateURL(route, models, query);\n      } catch (e) {\n        let details = e instanceof Error ? e.message : inspect(e);\n        let message = `While generating link to route \"${route}\": ${details}`;\n        if (e instanceof Error) {\n          e.message = message;\n          throw e;\n        } else {\n          throw message;\n        }\n      }\n    } else {\n      return routing.generateURL(route, models, query);\n    }\n  }\n  click(event) {\n    if (!isSimpleClick(event)) {\n      return;\n    }\n    let element = event.currentTarget;\n    assert('[BUG] must be an <a> element', element instanceof HTMLAnchorElement);\n    let isSelf = element.target === '' || element.target === '_self';\n    if (isSelf) {\n      this.preventDefault(event);\n    } else {\n      return;\n    }\n    if (this.isDisabled) {\n      return;\n    }\n    if (this.isLoading) {\n      warn('This link is in an inactive loading state because at least one of its models ' + 'currently has a null/undefined value, or the provided route name is invalid.', false, {\n        id: 'ember-glimmer.link-to.inactive-loading-state'\n      });\n      return;\n    }\n    let {\n      routing,\n      route,\n      models,\n      query,\n      replace\n    } = this;\n    let payload = {\n      routeName: route,\n      queryParams: query,\n      transition: undefined\n    };\n    flaggedInstrument('interaction.link-to', payload, () => {\n      assert('[BUG] route can only be missing if isLoading is true', isPresent(route));\n      payload.transition = routing.transitionTo(route, models, query, replace);\n    });\n  }\n  get route() {\n    if ('route' in this.args.named) {\n      let route = this.named('route');\n      assert('The `@route` argument to the <LinkTo> component must be a string', isMissing(route) || typeof route === 'string');\n      return route && this.namespaceRoute(route);\n    } else {\n      return this.currentRoute;\n    }\n  }\n  get currentRoute() {\n    return getValue(this.currentRouteCache);\n  }\n  // TODO: not sure why generateURL takes {}[] instead of unknown[]\n  get models() {\n    if ('models' in this.args.named) {\n      let models = this.named('models');\n      assert('The `@models` argument to the <LinkTo> component must be an array.', Array.isArray(models));\n      return models;\n    } else if ('model' in this.args.named) {\n      return [this.named('model')];\n    } else {\n      return EMPTY_ARRAY;\n    }\n  }\n  get query() {\n    if ('query' in this.args.named) {\n      let query = this.named('query');\n      assert('The `@query` argument to the <LinkTo> component must be an object.', query !== null && typeof query === 'object');\n      return {\n        ...query\n      };\n    } else {\n      return EMPTY_QUERY_PARAMS;\n    }\n  }\n  get replace() {\n    return this.named('replace') === true;\n  }\n  get isActive() {\n    return this.isActiveForState(this.routing.currentState);\n  }\n  get willBeActive() {\n    let current = this.routing.currentState;\n    let target = this.routing.targetState;\n    if (current === target) {\n      return null;\n    } else {\n      return this.isActiveForState(target);\n    }\n  }\n  get isLoading() {\n    return isMissing(this.route) || this.models.some(model => isMissing(model));\n  }\n  get isDisabled() {\n    return Boolean(this.named('disabled'));\n  }\n  get isEngine() {\n    let owner = this.owner;\n    return owner instanceof EngineInstance && getEngineParent(owner) !== undefined;\n  }\n  get engineMountPoint() {\n    let owner = this.owner;\n    return owner instanceof EngineInstance ? owner.mountPoint : undefined;\n  }\n  classFor(state) {\n    let className = this.named(`${state}Class`);\n    assert(`The \\`@${state}Class\\` argument to the <LinkTo> component must be a string or boolean`, isMissing(className) || typeof className === 'string' || typeof className === 'boolean');\n    if (className === true || isMissing(className)) {\n      return ` ${state}`;\n    } else if (className) {\n      return ` ${className}`;\n    } else {\n      return '';\n    }\n  }\n  namespaceRoute(route) {\n    let {\n      engineMountPoint\n    } = this;\n    if (engineMountPoint === undefined) {\n      return route;\n    } else if (route === 'application') {\n      return engineMountPoint;\n    } else {\n      return `${engineMountPoint}.${route}`;\n    }\n  }\n  isActiveForState(state) {\n    if (!isPresent(state)) {\n      return false;\n    }\n    if (this.isLoading) {\n      return false;\n    }\n    let currentWhen = this.named('current-when');\n    if (typeof currentWhen === 'boolean') {\n      return currentWhen;\n    } else if (typeof currentWhen === 'string') {\n      let {\n        models,\n        routing\n      } = this;\n      return currentWhen.split(' ').some(route => routing.isActiveForRoute(models, undefined, this.namespaceRoute(route), state));\n    } else {\n      let {\n        route,\n        models,\n        query,\n        routing\n      } = this;\n      assert('[BUG] route can only be missing if isLoading is true', isPresent(route));\n      return routing.isActiveForRoute(models, query, route, state);\n    }\n  }\n  preventDefault(event) {\n    event.preventDefault();\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['route', 'model', 'models', 'query', 'replace', 'disabled', 'current-when', 'activeClass', 'loadingClass', 'disabledClass'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\n__decorate$1([service('-routing')], _LinkTo.prototype, \"routing\", void 0);\n__decorate$1([action$1], _LinkTo.prototype, \"click\", null);\nlet {\n  prototype\n} = _LinkTo;\nlet descriptorFor = (target, property) => {\n  if (target) {\n    return Object.getOwnPropertyDescriptor(target, property) || descriptorFor(Object.getPrototypeOf(target), property);\n  } else {\n    return null;\n  }\n};\n// @href\n{\n  let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n  Object.defineProperty(prototype, 'onUnsupportedArgument', {\n    configurable: true,\n    enumerable: false,\n    value: function onUnsupportedArgument(name) {\n      if (name === 'href') {\n        assert(`Passing the \\`@href\\` argument to <LinkTo> is not supported.`);\n      } else {\n        superOnUnsupportedArgument.call(this, name);\n      }\n    }\n  });\n}\n// QP\n{\n  let superModelsDescriptor = descriptorFor(prototype, 'models');\n  assert(`[BUG] expecting models to be a getter on <LinkTo>`, superModelsDescriptor && typeof superModelsDescriptor.get === 'function');\n  let superModelsGetter = superModelsDescriptor.get;\n  Object.defineProperty(prototype, 'models', {\n    configurable: true,\n    enumerable: false,\n    get: function models() {\n      let models = superModelsGetter.call(this);\n      if (models.length > 0 && !('query' in this.args.named)) {\n        if (isQueryParams(models[models.length - 1])) {\n          models = models.slice(0, -1);\n        }\n      }\n      return models;\n    }\n  });\n  let superQueryDescriptor = descriptorFor(prototype, 'query');\n  assert(`[BUG] expecting query to be a getter on <LinkTo>`, superQueryDescriptor && typeof superQueryDescriptor.get === 'function');\n  let superQueryGetter = superQueryDescriptor.get;\n  Object.defineProperty(prototype, 'query', {\n    configurable: true,\n    enumerable: false,\n    get: function query() {\n      if ('query' in this.args.named) {\n        let qp = superQueryGetter.call(this);\n        if (isQueryParams(qp)) {\n          return qp.values ?? EMPTY_QUERY_PARAMS;\n        } else {\n          return qp;\n        }\n      } else {\n        let models = superModelsGetter.call(this);\n        if (models.length > 0) {\n          let qp = models[models.length - 1];\n          if (isQueryParams(qp) && qp.values !== null) {\n            return qp.values;\n          }\n        }\n        return EMPTY_QUERY_PARAMS;\n      }\n    }\n  });\n}\n// Positional Arguments\n{\n  let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n  Object.defineProperty(prototype, 'onUnsupportedArgument', {\n    configurable: true,\n    enumerable: false,\n    value: function onUnsupportedArgument(name) {\n      if (name !== 'params') {\n        superOnUnsupportedArgument.call(this, name);\n      }\n    }\n  });\n}\nconst LinkTo = opaquify(_LinkTo, LinkToTemplate);\n\nvar TextareaTemplate = precompileTemplate(`<textarea\n  {{!-- for compatibility --}}\n  id={{this.id}}\n  class={{this.class}}\n\n  ...attributes\n\n  value={{this.value}}\n\n  {{on \"change\" this.change}}\n  {{on \"input\" this.input}}\n  {{on \"keyup\" this.keyUp}}\n  {{on \"paste\" this.valueDidChange}}\n  {{on \"cut\" this.valueDidChange}}\n/>`, {\n  moduleName: 'packages/@ember/-internals/glimmer/lib/templates/textarea.hbs',\n  strictMode: true,\n  scope() {\n    return {\n      on\n    };\n  }\n});\n\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n  The `Textarea` component inserts a new instance of `<textarea>` tag into the template.\n\n  The `@value` argument provides the content of the `<textarea>`.\n\n  This template:\n\n  ```handlebars\n  <Textarea @value=\"A bunch of text\" />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    A bunch of text\n  </textarea>\n  ```\n\n  The `@value` argument is two-way bound. If the user types text into the textarea, the `@value`\n  argument is updated. If the `@value` argument is updated, the text in the textarea is updated.\n\n  In the following example, the `writtenWords` property on the component will be updated as the user\n  types 'Lots of text' into the text area of their browser's window.\n\n  ```app/components/word-editor.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class WordEditorComponent extends Component {\n    @tracked writtenWords = \"Lots of text that IS bound\";\n  }\n  ```\n\n  ```handlebars\n  <Textarea @value={{writtenWords}} />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    Lots of text that IS bound\n  </textarea>\n  ```\n\n  If you wanted a one way binding, you could use the `<textarea>` element directly, and use the\n  `value` DOM property and the `input` event.\n\n  ### Actions\n\n  The `Textarea` component takes a number of arguments with callbacks that are invoked in\n  response to user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-press`\n\n  These callbacks are passed to `Textarea` like this:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  ## Classic Invocation Syntax\n\n  The `Textarea` component can also be invoked using curly braces, just like any other Ember\n  component.\n\n  For example, this is an invocation using angle-bracket notation:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  You could accomplish the same thing using classic invocation:\n\n  ```handlebars\n  {{textarea value=this.searchWord enter=this.query}}\n  ```\n\n  The main difference is that angle-bracket invocation supports any HTML attribute using HTML\n  attribute syntax, because attributes and arguments have different syntax when using angle-bracket\n  invocation. Curly brace invocation, on the other hand, only has a single syntax for arguments,\n  and components must manually map attributes onto component arguments.\n\n  When using classic invocation with `{{textarea}}`, only the following attributes are mapped onto\n  arguments:\n\n  * rows\n  * cols\n  * name\n  * selectionEnd\n  * selectionStart\n  * autocomplete\n  * wrap\n  * lang\n  * dir\n  * value\n\n  ## Classic `layout` and `layoutName` properties\n\n  Because HTML `textarea` elements do not contain inner HTML the `layout` and\n  `layoutName` properties will not be applied.\n\n  @method Textarea\n  @for Ember.Templates.components\n  @public\n*/\n/**\n  See [Ember.Templates.components.Textarea](/ember/release/classes/Ember.Templates.components/methods/Textarea?anchor=Textarea)\n\n  @method textarea\n  @for Ember.Templates.helpers\n  @see {Ember.Templates.components.Textarea}\n  @public\n*/\n/**\n  An opaque interface which can be imported and used in strict-mode\n  templates to call <Textarea>.\n\n  See [Ember.Templates.components.Textarea](/ember/release/classes/Ember.Templates.components/methods/Textarea?anchor=Textarea).\n\n  @for @ember/component\n  @method Textarea\n  @see {Ember.Templates.components.Textarea}\n  @public\n**/\nclass _Textarea extends AbstractInput {\n  static toString() {\n    return 'Textarea';\n  }\n  get class() {\n    return 'ember-text-area ember-view';\n  }\n  // See abstract-input.ts for why these are needed\n  change(event) {\n    super.change(event);\n  }\n  input(event) {\n    super.input(event);\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\n__decorate([action$1], _Textarea.prototype, \"change\", null);\n__decorate([action$1], _Textarea.prototype, \"input\", null);\nconst Textarea = opaquify(_Textarea, TextareaTemplate);\n\nfunction isTemplateFactory(template) {\n  return typeof template === 'function';\n}\n\nfunction referenceForParts(rootRef, parts) {\n  let isAttrs = parts[0] === 'attrs';\n  // TODO deprecate this\n  if (isAttrs) {\n    parts.shift();\n    if (parts.length === 1) {\n      return childRefFor(rootRef, parts[0]);\n    }\n  }\n  return childRefFromParts(rootRef, parts);\n}\nfunction parseAttributeBinding(microsyntax) {\n  let colonIndex = microsyntax.indexOf(':');\n  if (colonIndex === -1) {\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');\n    return [microsyntax, microsyntax, true];\n  } else {\n    let prop = microsyntax.substring(0, colonIndex);\n    let attribute = microsyntax.substring(colonIndex + 1);\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');\n    return [prop, attribute, false];\n  }\n}\nfunction installAttributeBinding(component, rootRef, parsed, operations) {\n  let [prop, attribute, isSimple] = parsed;\n  if (attribute === 'id') {\n    // SAFETY: `get` could not infer the type of `prop` and just gave us `unknown`.\n    //         we may want to throw an error in the future if the value isn't string or null/undefined.\n    let elementId = get(component, prop);\n    if (elementId === undefined || elementId === null) {\n      elementId = component.elementId;\n    }\n    let elementIdRef = createPrimitiveRef(elementId);\n    operations.setAttribute('id', elementIdRef, true, null);\n    return;\n  }\n  let isPath = prop.indexOf('.') > -1;\n  let reference = isPath ? referenceForParts(rootRef, prop.split('.')) : childRefFor(rootRef, prop);\n  assert(`Illegal attributeBinding: '${prop}' is not a valid attribute name.`, !(isSimple && isPath));\n  operations.setAttribute(attribute, reference, false, null);\n}\nfunction createClassNameBindingRef(rootRef, microsyntax, operations) {\n  let parts = microsyntax.split(':');\n  let [prop, truthy, falsy] = parts;\n  // NOTE: This could be an empty string\n  assert('has prop', prop !== undefined); // Will always have at least one part\n  let isStatic = prop === '';\n  if (isStatic) {\n    operations.setAttribute('class', createPrimitiveRef(truthy), true, null);\n  } else {\n    let isPath = prop.indexOf('.') > -1;\n    let parts = isPath ? prop.split('.') : [];\n    let value = isPath ? referenceForParts(rootRef, parts) : childRefFor(rootRef, prop);\n    let ref;\n    if (truthy === undefined) {\n      ref = createSimpleClassNameBindingRef(value, isPath ? parts[parts.length - 1] : prop);\n    } else {\n      ref = createColonClassNameBindingRef(value, truthy, falsy);\n    }\n    operations.setAttribute('class', ref, false, null);\n  }\n}\nfunction createSimpleClassNameBindingRef(inner, path) {\n  let dasherizedPath;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n    if (value === true) {\n      assert('You must pass a path when binding a to a class name using classNameBindings', path !== undefined);\n      return dasherizedPath || (dasherizedPath = dasherize(path));\n    } else if (value || value === 0) {\n      return String(value);\n    } else {\n      return null;\n    }\n  });\n}\nfunction createColonClassNameBindingRef(inner, truthy, falsy) {\n  return createComputeRef(() => {\n    return valueForRef(inner) ? truthy : falsy;\n  });\n}\n\nfunction NOOP$1() {}\n/**\n  @module ember\n*/\n/**\n  Represents the internal state of the component.\n\n  @class ComponentStateBucket\n  @private\n*/\nclass ComponentStateBucket {\n  constructor(component, args, argsTag, finalizer, hasWrappedElement, isInteractive) {\n    this.component = component;\n    this.args = args;\n    this.argsTag = argsTag;\n    this.finalizer = finalizer;\n    this.hasWrappedElement = hasWrappedElement;\n    this.isInteractive = isInteractive;\n    this.classRef = null;\n    this.classRef = null;\n    this.argsRevision = args === null ? 0 : valueForTag(argsTag);\n    this.rootRef = createConstRef(component, 'this');\n    registerDestructor(this, () => this.willDestroy(), true);\n    registerDestructor(this, () => this.component.destroy());\n  }\n  willDestroy() {\n    let {\n      component,\n      isInteractive\n    } = this;\n    if (isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willDestroyElement');\n      component.trigger('willClearRender');\n      endUntrackFrame();\n      let element = getViewElement(component);\n      if (element) {\n        clearElementView(element);\n        clearViewElement(component);\n      }\n    }\n    component.renderer.unregister(component);\n  }\n  finalize() {\n    let {\n      finalizer\n    } = this;\n    finalizer();\n    this.finalizer = NOOP$1;\n  }\n}\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\n/**\n@module ember\n*/\nconst ACTIONS = new WeakSet();\n/**\n  The `{{action}}` helper provides a way to pass triggers for behavior (usually\n  just a function) between components, and into components from controllers.\n\n  ### Passing functions with the action helper\n\n  There are three contexts an action helper can be used in. The first two\n  contexts to discuss are attribute context, and Handlebars value context.\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  {{! Examples of Handlebars value context }}\n  {{input on-input=(action \"save\")}}\n  {{yield (action \"refreshData\") andAnotherParam}}\n  ```\n\n  In these contexts,\n  the helper is called a \"closure action\" helper. Its behavior is simple:\n  If passed a function name, read that function off the `actions` property\n  of the current context. Once that function is read, or immediately if a function was\n  passed, create a closure over that function and any arguments.\n  The resulting value of an action helper used this way is simply a function.\n\n  For example, in the attribute context:\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  ```\n\n  The resulting template render logic would be:\n\n  ```js\n  var div = document.createElement('div');\n  var actionFunction = (function(context){\n    return function() {\n      return context.actions.save.apply(context, arguments);\n    };\n  })(context);\n  div.onclick = actionFunction;\n  ```\n\n  Thus when the div is clicked, the action on that context is called.\n  Because the `actionFunction` is just a function, closure actions can be\n  passed between components and still execute in the correct context.\n\n  Here is an example action handler on a component:\n\n  ```app/components/my-component.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    save() {\n      this.model.save();\n    }\n  }\n  ```\n\n  Actions are always looked up on the `actions` property of the current context.\n  This avoids collisions in the naming of common actions, such as `destroy`.\n  Two options can be passed to the `action` helper when it is used in this way.\n\n  * `target=someProperty` will look to `someProperty` instead of the current\n    context for the `actions` hash. This can be useful when targeting a\n    service for actions.\n  * `value=\"target.value\"` will read the path `target.value` off the first\n    argument to the action when it is called and rewrite the first argument\n    to be that value. This is useful when attaching actions to event listeners.\n\n  ### Invoking an action\n\n  Closure actions curry both their scope and any arguments. When invoked, any\n  additional arguments are added to the already curried list.\n  Actions are presented in JavaScript as callbacks, and are\n  invoked like any other JavaScript function.\n\n  For example\n\n  ```app/components/update-name.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```app/components/update-name.hbs\n  {{input on-input=(action (action 'setName' @model) value=\"target.value\")}}\n  ```\n\n  The first argument (`@model`) was curried over, and the run-time argument (`event`)\n  becomes a second argument. Action calls can be nested this way because each simply\n  returns a function. Any function can be passed to the `{{action}}` helper, including\n  other actions.\n\n  Actions invoked with `sendAction` have the same currying behavior as demonstrated\n  with `on-input` above. For example:\n\n  ```app/components/my-input.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```handlebars\n  <MyInput @submit={{action 'setName' @model}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-input submit=(action 'setName' @model)}}\n  ```\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      // Note that model is not passed, it was curried in the template\n      this.submit('bob');\n    }\n  });\n  ```\n\n  ### Attaching actions to DOM elements\n\n  The third context of the `{{action}}` helper can be called \"element space\".\n  For example:\n\n  ```handlebars\n  {{! An example of element space }}\n  <div {{action \"save\"}}></div>\n  ```\n\n  Used this way, the `{{action}}` helper provides a useful shortcut for\n  registering an HTML element in a template for a single DOM event and\n  forwarding that interaction to the template's context (controller or component).\n  If the context of a template is a controller, actions used this way will\n  bubble to routes when the controller does not implement the specified action.\n  Once an action hits a route, it will bubble through the route hierarchy.\n\n  ### Event Propagation\n\n  `{{action}}` helpers called in element space can control event bubbling. Note\n  that the closure style actions cannot.\n\n  Events triggered through the action helper will automatically have\n  `.preventDefault()` called on them. You do not need to do so in your event\n  handlers. If you need to allow event propagation (to handle file inputs for\n  example) you can supply the `preventDefault=false` option to the `{{action}}` helper:\n\n  ```handlebars\n  <div {{action \"sayHello\" preventDefault=false}}>\n    <input type=\"file\" />\n    <input type=\"checkbox\" />\n  </div>\n  ```\n\n  To disable bubbling, pass `bubbles=false` to the helper:\n\n  ```handlebars\n  <button {{action 'edit' post bubbles=false}}>Edit</button>\n  ```\n\n  To disable bubbling with closure style actions you must create your own\n  wrapper helper that makes use of `event.stopPropagation()`:\n\n  ```handlebars\n  <div onclick={{disable-bubbling (action \"sayHello\")}}>Hello</div>\n  ```\n\n  ```app/helpers/disable-bubbling.js\n  import { helper } from '@ember/component/helper';\n\n  export function disableBubbling([action]) {\n    return function(event) {\n      event.stopPropagation();\n      return action(event);\n    };\n  }\n  export default helper(disableBubbling);\n  ```\n\n  If you need the default handler to trigger you should either register your\n  own event handler, or use event methods on your view class. See\n  [\"Responding to Browser Events\"](/ember/release/classes/Component)\n  in the documentation for `Component` for more information.\n\n  ### Specifying DOM event type\n\n  `{{action}}` helpers called in element space can specify an event type.\n  By default the `{{action}}` helper registers for DOM `click` events. You can\n  supply an `on` option to the helper to specify a different DOM event name:\n\n  ```handlebars\n  <div {{action \"anActionName\" on=\"doubleClick\"}}>\n    click me\n  </div>\n  ```\n\n  See [\"Event Names\"](/ember/release/classes/Component) for a list of\n  acceptable DOM event names.\n\n  ### Specifying whitelisted modifier keys\n\n  `{{action}}` helpers called in element space can specify modifier keys.\n  By default the `{{action}}` helper will ignore click events with pressed modifier\n  keys. You can supply an `allowedKeys` option to specify which keys should not be ignored.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"alt\"}}>\n    click me\n  </div>\n  ```\n\n  This way the action will fire when clicking with the alt key pressed down.\n  Alternatively, supply \"any\" to the `allowedKeys` option to accept any combination of modifier keys.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"any\"}}>\n    click me with any key pressed\n  </div>\n  ```\n\n  ### Specifying a Target\n\n  A `target` option can be provided to the helper to change\n  which object will receive the method call. This option must be a path\n  to an object, accessible in the current context:\n\n  ```app/templates/application.hbs\n  <div {{action \"anActionName\" target=someService}}>\n    click me\n  </div>\n  ```\n\n  ```app/controllers/application.js\n  import Controller from '@ember/controller';\n  import { service } from '@ember/service';\n\n  export default class extends Controller {\n    @service someService;\n  }\n  ```\n\n  @method action\n  @for Ember.Templates.helpers\n  @public\n*/\nvar action = internalHelper(args => {\n  let {\n    named,\n    positional\n  } = args;\n  // The first two argument slots are reserved.\n  // pos[0] is the context (or `this`)\n  // pos[1] is the action name or function\n  // Anything else is an action argument.\n  let [context, action, ...restArgs] = positional;\n  assert('hash position arguments', context && action);\n  let debugKey = action.debugLabel;\n  let target = 'target' in named ? named['target'] : context;\n  let processArgs = makeArgsProcessor('value' in named && named['value'] || false, restArgs);\n  let fn;\n  if (isInvokableRef(action)) {\n    fn = makeClosureAction(action, action, invokeRef, processArgs, debugKey);\n  } else {\n    fn = makeDynamicClosureAction(valueForRef(context),\n    // SAFETY: glimmer-vm should expose narrowing utilities for references\n    //         as is, `target` is still `Reference<unknown>`.\n    //         however, we never even tried to narrow `target`, so this is potentially risky code.\n    target,\n    // SAFETY: glimmer-vm should expose narrowing utilities for references\n    //         as is, `action` is still `Reference<unknown>`\n    action, processArgs, debugKey);\n  }\n  ACTIONS.add(fn);\n  return createUnboundRef(fn, '(result of an `action` helper)');\n});\nfunction NOOP(args) {\n  return args;\n}\nfunction makeArgsProcessor(valuePathRef, actionArgsRef) {\n  let mergeArgs;\n  if (actionArgsRef.length > 0) {\n    mergeArgs = args => {\n      return actionArgsRef.map(valueForRef).concat(args);\n    };\n  }\n  let readValue;\n  if (valuePathRef) {\n    readValue = args => {\n      let valuePath = valueForRef(valuePathRef);\n      if (valuePath && args.length > 0) {\n        args[0] = get(args[0], valuePath);\n      }\n      return args;\n    };\n  }\n  if (mergeArgs && readValue) {\n    return args => {\n      return readValue(mergeArgs(args));\n    };\n  } else {\n    return mergeArgs || readValue || NOOP;\n  }\n}\nfunction makeDynamicClosureAction(context, targetRef, actionRef, processArgs, debugKey) {\n  const action = valueForRef(actionRef);\n  // We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n  if (DEBUG) {\n    makeClosureAction(context, valueForRef(targetRef), action, processArgs, debugKey);\n  }\n  return (...args) => {\n    return makeClosureAction(context, valueForRef(targetRef), action, processArgs, debugKey)(...args);\n  };\n}\nfunction makeClosureAction(context, target, action, processArgs, debugKey) {\n  let self;\n  let fn;\n  assert(`Action passed is null or undefined in (action) from ${target}.`, action !== undefined && action !== null);\n  if (typeof action === 'string') {\n    assert('target must be an object', target !== null && typeof target === 'object');\n    self = target;\n    let value = target.actions?.[action];\n    assert(`An action named '${action}' was not found in ${target}`, Boolean(value));\n    assert(`An action named '${action}' was found in ${target}, but is not a function`, typeof value === 'function');\n    fn = value;\n  } else if (typeof action === 'function') {\n    self = context;\n    fn = action;\n  } else {\n    assert(`An action could not be made for \\`${debugKey || action}\\` in ${target}. Please confirm that you are using either a quoted action name (i.e. \\`(action '${debugKey || 'myAction'}')\\`) or a function available in ${target}.`, false);\n  }\n  return (...args) => {\n    let payload = {\n      target: self,\n      args,\n      label: '@glimmer/closure-action'\n    };\n    return flaggedInstrument('interaction.ember-action', payload, () => {\n      return join(self, fn, ...processArgs(args));\n    });\n  };\n}\n// The code above:\n// 1. Finds an action function, usually on the `actions` hash\n// 2. Calls it with the target as the correct `this` context\n// Previously, `UPDATE_REFERENCED_VALUE` was a method on the reference itself,\n// so this made a bit more sense. Now, it isn't, and so we need to create a\n// function that can have `this` bound to it when called. This allows us to use\n// the same codepath to call `updateRef` on the reference.\nfunction invokeRef(value) {\n  updateRef(this, value);\n}\n\n// ComponentArgs takes EvaluatedNamedArgs and converts them into the\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\nfunction processComponentArgs(namedArgs) {\n  let attrs = Object.create(null);\n  let props = Object.create(null);\n  props[ARGS] = namedArgs;\n  for (let name in namedArgs) {\n    let ref = namedArgs[name];\n    assert('expected ref', ref);\n    let value = valueForRef(ref);\n    let isAction = typeof value === 'function' && ACTIONS.has(value);\n    if (isUpdatableRef(ref) && !isAction) {\n      attrs[name] = new MutableCell(ref, value);\n    } else {\n      attrs[name] = value;\n    }\n    props[name] = value;\n  }\n  props.attrs = attrs;\n  return props;\n}\nconst REF = Symbol('REF');\nclass MutableCell {\n  constructor(ref, value) {\n    this[MUTABLE_CELL] = true;\n    this[REF] = ref;\n    this.value = value;\n  }\n  update(val) {\n    updateRef(this[REF], val);\n  }\n}\n\nconst ARGS = enumerableSymbol('ARGS');\nconst HAS_BLOCK = enumerableSymbol('HAS_BLOCK');\nconst DIRTY_TAG = Symbol('DIRTY_TAG');\nconst IS_DISPATCHING_ATTRS = Symbol('IS_DISPATCHING_ATTRS');\nconst BOUNDS = Symbol('BOUNDS');\nconst EMBER_VIEW_REF = createPrimitiveRef('ember-view');\nfunction aliasIdToElementId(args, props) {\n  if (args.named.has('id')) {\n    assert(`You cannot invoke a component with both 'id' and 'elementId' at the same time.`, !args.named.has('elementId'));\n    props.elementId = props.id;\n  }\n}\n// We must traverse the attributeBindings in reverse keeping track of\n// what has already been applied. This is essentially refining the concatenated\n// properties applying right to left.\nfunction applyAttributeBindings(attributeBindings, component, rootRef, operations) {\n  let seen = [];\n  let i = attributeBindings.length - 1;\n  while (i !== -1) {\n    let binding = attributeBindings[i];\n    assert('has binding', binding);\n    let parsed = parseAttributeBinding(binding);\n    let attribute = parsed[1];\n    if (seen.indexOf(attribute) === -1) {\n      seen.push(attribute);\n      installAttributeBinding(component, rootRef, parsed, operations);\n    }\n    i--;\n  }\n  if (seen.indexOf('id') === -1) {\n    let id = component.elementId ? component.elementId : guidFor(component);\n    operations.setAttribute('id', createPrimitiveRef(id), false, null);\n  }\n}\nconst EMPTY_POSITIONAL_ARGS = [];\ndebugFreeze(EMPTY_POSITIONAL_ARGS);\nclass CurlyComponentManager {\n  templateFor(component) {\n    let {\n      layout,\n      layoutName\n    } = component;\n    let owner = getOwner(component);\n    assert('Component is unexpectedly missing an owner', owner);\n    let factory;\n    if (layout === undefined) {\n      if (layoutName !== undefined) {\n        let _factory = owner.lookup(`template:${layoutName}`);\n        assert(`Layout \\`${layoutName}\\` not found!`, _factory !== undefined);\n        factory = _factory;\n      } else {\n        return null;\n      }\n    } else if (isTemplateFactory(layout)) {\n      factory = layout;\n    } else {\n      // no layout was found, use the default layout\n      return null;\n    }\n    return unwrapTemplate(factory(owner)).asWrappedLayout();\n  }\n  getDynamicLayout(bucket) {\n    return this.templateFor(bucket.component);\n  }\n  getTagName(state) {\n    let {\n      component,\n      hasWrappedElement\n    } = state;\n    if (!hasWrappedElement) {\n      return null;\n    }\n    return component && component.tagName || 'div';\n  }\n  getCapabilities() {\n    return CURLY_CAPABILITIES;\n  }\n  prepareArgs(ComponentClass, args) {\n    if (args.named.has('__ARGS__')) {\n      assert('[BUG] cannot pass both __ARGS__ and positional arguments', args.positional.length === 0);\n      let {\n        __ARGS__,\n        ...rest\n      } = args.named.capture();\n      assert('[BUG] unexpectedly missing __ARGS__ after check', __ARGS__);\n      // does this need to be untracked?\n      let __args__ = valueForRef(__ARGS__);\n      let prepared = {\n        positional: __args__.positional,\n        named: {\n          ...rest,\n          ...__args__.named\n        }\n      };\n      return prepared;\n    }\n    const {\n      positionalParams\n    } = ComponentClass.class ?? ComponentClass;\n    // early exits\n    if (positionalParams === undefined || positionalParams === null || args.positional.length === 0) {\n      return null;\n    }\n    let named;\n    if (typeof positionalParams === 'string') {\n      assert(`You cannot specify positional parameters and the hash argument \\`${positionalParams}\\`.`, !args.named.has(positionalParams));\n      let captured = args.positional.capture();\n      named = {\n        [positionalParams]: createComputeRef(() => reifyPositional(captured))\n      };\n      Object.assign(named, args.named.capture());\n    } else if (Array.isArray(positionalParams) && positionalParams.length > 0) {\n      const count = Math.min(positionalParams.length, args.positional.length);\n      named = {};\n      Object.assign(named, args.named.capture());\n      for (let i = 0; i < count; i++) {\n        let name = positionalParams[i];\n        assert('Expected at least one positional param', name);\n        assert(`You cannot specify both a positional param (at position ${i}) and the hash argument \\`${name}\\`.`, !args.named.has(name));\n        named[name] = args.positional.at(i);\n      }\n    } else {\n      return null;\n    }\n    return {\n      positional: EMPTY_ARRAY$1,\n      named\n    };\n  }\n  /*\n   * This hook is responsible for actually instantiating the component instance.\n   * It also is where we perform additional bookkeeping to support legacy\n   * features like exposed by view mixins like ChildViewSupport, ActionSupport,\n   * etc.\n   */\n  create(owner, ComponentClass, args, {\n    isInteractive\n  }, dynamicScope, callerSelfRef, hasBlock) {\n    // Get the nearest concrete component instance from the scope. \"Virtual\"\n    // components will be skipped.\n    let parentView = dynamicScope.view;\n    // Capture the arguments, which tells Glimmer to give us our own, stable\n    // copy of the Arguments object that is safe to hold on to between renders.\n    let capturedArgs = args.named.capture();\n    beginTrackFrame();\n    let props = processComponentArgs(capturedArgs);\n    let argsTag = endTrackFrame();\n    // Alias `id` argument to `elementId` property on the component instance.\n    aliasIdToElementId(args, props);\n    // Set component instance's parentView property to point to nearest concrete\n    // component.\n    props.parentView = parentView;\n    // Set whether this component was invoked with a block\n    // (`{{#my-component}}{{/my-component}}`) or without one\n    // (`{{my-component}}`).\n    props[HAS_BLOCK] = hasBlock;\n    // Save the current `this` context of the template as the component's\n    // `_target`, so bubbled actions are routed to the right place.\n    props._target = valueForRef(callerSelfRef);\n    setOwner(props, owner);\n    // caller:\n    // <FaIcon @name=\"bug\" />\n    //\n    // callee:\n    // <i class=\"fa-{{@name}}\"></i>\n    // Now that we've built up all of the properties to set on the component instance,\n    // actually create it.\n    beginUntrackFrame();\n    let component = ComponentClass.create(props);\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n    // We become the new parentView for downstream components, so save our\n    // component off on the dynamic scope.\n    dynamicScope.view = component;\n    // Unless we're the root component, we need to add ourselves to our parent\n    // component's childViews array.\n    if (parentView !== null && parentView !== undefined) {\n      addChildView(parentView, component);\n    }\n    component.trigger('didReceiveAttrs');\n    let hasWrappedElement = component.tagName !== '';\n    // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        component.trigger('willRender');\n      }\n      component._transitionTo('hasElement');\n      if (isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    }\n    // Track additional lifecycle metadata about this component in a state bucket.\n    // Essentially we're saving off all the state we'll need in the future.\n    let bucket = new ComponentStateBucket(component, capturedArgs, argsTag, finalizer, hasWrappedElement, isInteractive);\n    if (args.named.has('class')) {\n      bucket.classRef = args.named.get('class');\n    }\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, props);\n    }\n    if (isInteractive && hasWrappedElement) {\n      component.trigger('willRender');\n    }\n    endUntrackFrame();\n    // consume every argument so we always run again\n    consumeTag(bucket.argsTag);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n  getDebugName(definition) {\n    return definition.fullName || definition.normalizedName || definition.class?.name || definition.name;\n  }\n  getSelf({\n    rootRef\n  }) {\n    return rootRef;\n  }\n  didCreateElement({\n    component,\n    classRef,\n    isInteractive,\n    rootRef\n  }, element, operations) {\n    setViewElement(component, element);\n    setElementView(element, component);\n    let {\n      attributeBindings,\n      classNames,\n      classNameBindings\n    } = component;\n    if (attributeBindings && attributeBindings.length) {\n      applyAttributeBindings(attributeBindings, component, rootRef, operations);\n    } else {\n      let id = component.elementId ? component.elementId : guidFor(component);\n      operations.setAttribute('id', createPrimitiveRef(id), false, null);\n    }\n    if (classRef) {\n      const ref = createSimpleClassNameBindingRef(classRef);\n      operations.setAttribute('class', ref, false, null);\n    }\n    if (classNames && classNames.length) {\n      classNames.forEach(name => {\n        operations.setAttribute('class', createPrimitiveRef(name), false, null);\n      });\n    }\n    if (classNameBindings && classNameBindings.length) {\n      classNameBindings.forEach(binding => {\n        createClassNameBindingRef(rootRef, binding, operations);\n      });\n    }\n    operations.setAttribute('class', EMBER_VIEW_REF, false, null);\n    if ('ariaRole' in component) {\n      operations.setAttribute('role', childRefFor(rootRef, 'ariaRole'), false, null);\n    }\n    component._transitionTo('hasElement');\n    if (isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willInsertElement');\n      endUntrackFrame();\n    }\n  }\n  didRenderLayout(bucket, bounds) {\n    bucket.component[BOUNDS] = bounds;\n    bucket.finalize();\n  }\n  didCreate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      component._transitionTo('inDOM');\n      component.trigger('didInsertElement');\n      component.trigger('didRender');\n    }\n  }\n  update(bucket) {\n    let {\n      component,\n      args,\n      argsTag,\n      argsRevision,\n      isInteractive\n    } = bucket;\n    bucket.finalizer = _instrumentStart('render.component', rerenderInstrumentDetails, component);\n    beginUntrackFrame();\n    if (args !== null && !validateTag(argsTag, argsRevision)) {\n      beginTrackFrame();\n      let props = processComponentArgs(args);\n      argsTag = bucket.argsTag = endTrackFrame();\n      bucket.argsRevision = valueForTag(argsTag);\n      component[IS_DISPATCHING_ATTRS] = true;\n      component.setProperties(props);\n      component[IS_DISPATCHING_ATTRS] = false;\n      component.trigger('didUpdateAttrs');\n      component.trigger('didReceiveAttrs');\n    }\n    if (isInteractive) {\n      component.trigger('willUpdate');\n      component.trigger('willRender');\n    }\n    endUntrackFrame();\n    consumeTag(argsTag);\n    consumeTag(component[DIRTY_TAG]);\n  }\n  didUpdateLayout(bucket) {\n    bucket.finalize();\n  }\n  didUpdate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      component.trigger('didUpdate');\n      component.trigger('didRender');\n    }\n  }\n  getDestroyable(bucket) {\n    return bucket;\n  }\n}\nfunction processComponentInitializationAssertions(component, props) {\n  assert(`classNameBindings must be non-empty strings: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n    for (let i = 0; i < classNameBindings.length; i++) {\n      let binding = classNameBindings[i];\n      if (typeof binding !== 'string' || binding.length === 0) {\n        return false;\n      }\n    }\n    return true;\n  })());\n  assert(`classNameBindings must not have spaces in them: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n    for (let binding of classNameBindings) {\n      if (binding.split(' ').length > 1) {\n        return false;\n      }\n    }\n    return true;\n  })());\n  assert(`You cannot use \\`classNameBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.classNameBindings || component.classNameBindings.length === 0);\n  assert(`You cannot use \\`elementId\\` on a tag-less component: ${component}`, component.tagName !== '' || props.id === component.elementId || !component.elementId && component.elementId !== '');\n  assert(`You cannot use \\`attributeBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.attributeBindings || component.attributeBindings.length === 0);\n}\nfunction initialRenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: true\n  });\n}\nfunction rerenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: false\n  });\n}\nconst CURLY_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: true,\n  hasSubOwner: false\n};\nconst CURLY_COMPONENT_MANAGER = new CurlyComponentManager();\nfunction isCurlyManager(manager) {\n  return manager === CURLY_COMPONENT_MANAGER;\n}\n\n// Keep track of which component classes have already been processed for lazy event setup.\nlet lazyEventsProcessed = new WeakMap();\nclass Component extends CoreView.extend(ChildViewsSupport, ViewStateSupport, ClassNamesSupport, TargetActionSupport, ActionSupport, ViewMixin, {\n  // These need to be overridable via extend/create but should still\n  // have a default. Defining them here is the best way to achieve that.\n  didReceiveAttrs() {},\n  didRender() {},\n  didUpdate() {},\n  didUpdateAttrs() {},\n  willRender() {},\n  willUpdate() {}\n}) {\n  constructor() {\n    super(...arguments);\n    this.isComponent = true;\n  }\n  init(properties) {\n    super.init(properties);\n    // Handle methods from ViewMixin.\n    // The native class inheritance will not work for mixins. To work around this,\n    // we copy the existing rerender method provided by the mixin and swap in the\n    // new rerender method from our class.\n    this._superRerender = this.rerender;\n    this.rerender = this._rerender;\n    this[IS_DISPATCHING_ATTRS] = false;\n    this[DIRTY_TAG] = createTag();\n    this[BOUNDS] = null;\n    const eventDispatcher = this._dispatcher;\n    if (eventDispatcher) {\n      let lazyEventsProcessedForComponentClass = lazyEventsProcessed.get(eventDispatcher);\n      if (!lazyEventsProcessedForComponentClass) {\n        lazyEventsProcessedForComponentClass = new WeakSet();\n        lazyEventsProcessed.set(eventDispatcher, lazyEventsProcessedForComponentClass);\n      }\n      let proto = Object.getPrototypeOf(this);\n      if (!lazyEventsProcessedForComponentClass.has(proto)) {\n        let lazyEvents = eventDispatcher.lazyEvents;\n        lazyEvents.forEach((mappedEventName, event) => {\n          if (mappedEventName !== null && typeof this[mappedEventName] === 'function') {\n            eventDispatcher.setupHandlerForBrowserEvent(event);\n          }\n        });\n        lazyEventsProcessedForComponentClass.add(proto);\n      }\n    }\n    if (DEBUG && eventDispatcher && this.renderer._isInteractive && this.tagName === '') {\n      let eventNames = [];\n      let events = eventDispatcher.finalEventNameMapping;\n      for (let key in events) {\n        let methodName = events[key];\n        if (methodName && typeof this[methodName] === 'function') {\n          eventNames.push(methodName);\n        }\n      }\n      // If in a tagless component, assert that no event handlers are defined\n      assert(`You can not define \\`${eventNames}\\` function(s) to handle DOM event in the \\`${this}\\` tagless component since it doesn't have any DOM element.`, !eventNames.length);\n    }\n  }\n  get _dispatcher() {\n    if (this.__dispatcher === undefined) {\n      let owner = getOwner(this);\n      assert('Component is unexpectedly missing an owner', owner);\n      if (owner.lookup('-environment:main').isInteractive) {\n        let dispatcher = owner.lookup('event_dispatcher:main');\n        assert('Expected dispatcher to be an EventDispatcher', dispatcher instanceof EventDispatcher);\n        this.__dispatcher = dispatcher;\n      } else {\n        // In FastBoot we have no EventDispatcher. Set to null to not try again to look it up.\n        this.__dispatcher = null;\n      }\n    }\n    return this.__dispatcher;\n  }\n  on(name, target, method) {\n    this._dispatcher?.setupHandlerForEmberEvent(name);\n    // The `on` method here comes from the Evented mixin. Since this mixin\n    // is applied to the parent of this class, however, we are still able\n    // to use `super`.\n    return super.on(name, target, method);\n  }\n  // Changed to `rerender` on init\n  _rerender() {\n    dirtyTag(this[DIRTY_TAG]);\n    this._superRerender();\n  }\n  [PROPERTY_DID_CHANGE](key, value) {\n    if (this[IS_DISPATCHING_ATTRS]) {\n      return;\n    }\n    let args = this[ARGS];\n    let reference = args !== undefined ? args[key] : undefined;\n    if (reference !== undefined && isUpdatableRef(reference)) {\n      updateRef(reference, arguments.length === 2 ? value : get(this, key));\n    }\n  }\n  getAttr(key) {\n    // TODO Intimate API should be deprecated\n    return this.get(key);\n  }\n  /**\n    Normally, Ember's component model is \"write-only\". The component takes a\n    bunch of attributes that it got passed in, and uses them to render its\n    template.\n       One nice thing about this model is that if you try to set a value to the\n    same thing as last time, Ember (through HTMLBars) will avoid doing any\n    work on the DOM.\n       This is not just a performance optimization. If an attribute has not\n    changed, it is important not to clobber the element's \"hidden state\".\n    For example, if you set an input's `value` to the same value as before,\n    it will clobber selection state and cursor position. In other words,\n    setting an attribute is not **always** idempotent.\n       This method provides a way to read an element's attribute and also\n    update the last value Ember knows about at the same time. This makes\n    setting an attribute idempotent.\n       In particular, what this means is that if you get an `<input>` element's\n    `value` attribute and then re-render the template with the same value,\n    it will avoid clobbering the cursor and selection position.\n    Since most attribute sets are idempotent in the browser, you typically\n    can get away with reading attributes using jQuery, but the most reliable\n    way to do so is through this method.\n    @method readDOMAttr\n       @param {String} name the name of the attribute\n    @return String\n    @public\n    */\n  readDOMAttr(name) {\n    // TODO revisit this\n    let _element = getViewElement(this);\n    assert(`Cannot call \\`readDOMAttr\\` on ${this} which does not have an element`, _element !== null);\n    let element = _element;\n    let isSVG = element.namespaceURI === 'http://www.w3.org/2000/svg';\n    let {\n      type,\n      normalized\n    } = normalizeProperty(element, name);\n    if (isSVG || type === 'attr') {\n      return element.getAttribute(normalized);\n    }\n    return element[normalized];\n  }\n  static toString() {\n    return '@ember/component';\n  }\n}\nComponent.isComponentFactory = true;\n// We continue to use reopenClass here so that positionalParams can be overridden with reopenClass in subclasses.\nComponent.reopenClass({\n  positionalParams: []\n});\nsetInternalComponentManager(CURLY_COMPONENT_MANAGER, Component);\n\n/**\n@module @ember/component\n*/\nvar _a;\nconst RECOMPUTE_TAG = Symbol('RECOMPUTE_TAG');\nconst IS_CLASSIC_HELPER = Symbol('IS_CLASSIC_HELPER');\nclass Helper extends FrameworkObject {\n  init(properties) {\n    super.init(properties);\n    this[RECOMPUTE_TAG] = createTag();\n    assert('expected compute to be defined', this.compute);\n  }\n  /**\n    On a class-based helper, it may be useful to force a recomputation of that\n    helpers value. This is akin to `rerender` on a component.\n       For example, this component will rerender when the `currentUser` on a\n    session service changes:\n       ```app/helpers/current-user-email.js\n    import Helper from '@ember/component/helper'\n    import { service } from '@ember/service'\n    import { observer } from '@ember/object'\n       export default Helper.extend({\n      session: service(),\n         onNewUser: observer('session.currentUser', function() {\n        this.recompute();\n      }),\n         compute() {\n        return this.get('session.currentUser.email');\n      }\n    });\n    ```\n       @method recompute\n    @public\n    @since 1.13.0\n  */\n  recompute() {\n    join(() => dirtyTag(this[RECOMPUTE_TAG]));\n  }\n}\n_a = IS_CLASSIC_HELPER;\nHelper.isHelperFactory = true;\nHelper[_a] = true;\n// `packages/ember/index.js` was setting `Helper.helper`. This seems like\n// a bad idea and probably not something we want. We've moved that definition\n// here, but it should definitely be reviewed and probably removed.\n/** @deprecated */\nHelper.helper = helper$1;\n/* eslint-enable import/export */\nfunction isClassicHelper(obj) {\n  return obj[IS_CLASSIC_HELPER] === true;\n}\nclass ClassicHelperManager {\n  constructor(owner) {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true,\n      hasDestroyable: true\n    });\n    let ownerInjection = {};\n    setOwner(ownerInjection, owner);\n    this.ownerInjection = ownerInjection;\n  }\n  createHelper(definition, args) {\n    let instance = isFactoryManager(definition) ? definition.create() : definition.create(this.ownerInjection);\n    assert('expected HelperInstance', function (instance) {\n      if (instance !== null && typeof instance === 'object') {\n        let cast = instance;\n        return typeof cast.compute === 'function' && typeof cast.destroy === 'function';\n      }\n      return false;\n    }(instance));\n    return {\n      instance,\n      args\n    };\n  }\n  getDestroyable({\n    instance\n  }) {\n    return instance;\n  }\n  getValue({\n    instance,\n    args\n  }) {\n    let {\n      positional,\n      named\n    } = args;\n    let ret = instance.compute(positional, named);\n    consumeTag(instance[RECOMPUTE_TAG]);\n    return ret;\n  }\n  getDebugName(definition) {\n    return getDebugName((definition.class || definition)['prototype']);\n  }\n}\nfunction isFactoryManager(obj) {\n  return obj != null && 'class' in obj;\n}\nsetHelperManager(owner => {\n  return new ClassicHelperManager(owner);\n}, Helper);\nconst CLASSIC_HELPER_MANAGER = getInternalHelperManager(Helper);\n///////////\nclass Wrapper {\n  constructor(compute) {\n    this.compute = compute;\n    this.isHelperFactory = true;\n  }\n  create() {\n    // needs new instance or will leak containers\n    return {\n      compute: this.compute\n    };\n  }\n}\nclass SimpleClassicHelperManager {\n  constructor() {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true\n    });\n  }\n  createHelper(definition, args) {\n    return () => definition.compute.call(null, args.positional, args.named);\n  }\n  getValue(fn) {\n    return fn();\n  }\n  getDebugName(definition) {\n    return getDebugName(definition.compute);\n  }\n}\nconst SIMPLE_CLASSIC_HELPER_MANAGER = new SimpleClassicHelperManager();\nsetHelperManager(() => SIMPLE_CLASSIC_HELPER_MANAGER, Wrapper.prototype);\nfunction helper$1(helperFn\n// At the implementation site, we don't care about the actual underlying type\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n) {\n  // SAFETY: this is completely lies, in two ways:\n  //\n  // 1. `Wrapper` is a `Factory<SimpleHelper<S>>`, but from the perspective of\n  //    any external callers (i.e. Ember *users*), it is quite important that\n  //    the `Factory` relationship be hidden, because it is not public API for\n  //    an end user to call `.create()` on a helper created this way. Instead,\n  //    we provide them an `abstract new` signature (which means it cannot be\n  //    directly constructed by calling `new` on it) and which does not have the\n  //    `.create()` signature on it anymore.\n  //\n  // 2. The produced type here ends up being a subtype of `Helper`, which is not\n  //    strictly true. This is necessary for the sake of Glint, which provides\n  //    its information by way of a \"declaration merge\" with `Helper<S>` in the\n  //    case of items produced by `helper()`.\n  //\n  // Long-term, this entire construct can go away in favor of deprecating the\n  // `helper()` invocation in favor of using plain functions.\n  return new Wrapper(helperFn);\n}\n\n/**\n@module @ember/template\n*/\n/**\n  A wrapper around a string that has been marked as safe (\"trusted\"). **When\n  rendered in HTML, Ember will not perform any escaping.**\n\n  Note:\n\n  1. This does not *make* the string safe; it means that some code in your\n     application has *marked* it as safe using the `htmlSafe()` function.\n\n  2. The only public API for getting a `SafeString` is calling `htmlSafe()`. It\n     is *not* user-constructible.\n\n  If a string contains user inputs or other untrusted data, you must sanitize\n  the string before using the `htmlSafe` method. Otherwise your code is\n  vulnerable to [Cross-Site Scripting][xss]. There are many open source\n  sanitization libraries to choose from, both for front end and server-side\n  sanitization.\n\n  [xss]: https://owasp.org/www-community/attacks/DOM_Based_XSS\n\n  ```javascript\n  import { htmlSafe } from '@ember/template';\n\n  let someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n  htmlSafe(someTrustedorSanitizedString);\n  ```\n\n  @for @ember/template\n  @class SafeString\n  @since 4.12.0\n  @public\n */\nclass SafeString {\n  constructor(string) {\n    this.__string = string;\n  }\n  /**\n    Get the string back to use as a string.\n       @public\n    @method toString\n    @returns {String} The string marked as trusted\n   */\n  toString() {\n    return `${this.__string}`;\n  }\n  /**\n    Get the wrapped string as HTML to use without escaping.\n       @public\n    @method toHTML\n    @returns {String} the trusted string, without any escaping applied\n   */\n  toHTML() {\n    return this.toString();\n  }\n}\nconst escape = {\n  '&': '&amp;',\n  '<': '&lt;',\n  '>': '&gt;',\n  '\"': '&quot;',\n  \"'\": '&#x27;',\n  '`': '&#x60;',\n  '=': '&#x3D;'\n};\nconst possible = /[&<>\"'`=]/;\nconst badChars = /[&<>\"'`=]/g;\nfunction escapeChar(chr) {\n  return escape[chr];\n}\nfunction escapeExpression(string) {\n  let s;\n  if (typeof string !== 'string') {\n    // don't escape SafeStrings, since they're already safe\n    if (isHTMLSafe(string)) {\n      return string.toHTML();\n    } else if (string === null || string === undefined) {\n      return '';\n    } else if (!string) {\n      return String(string);\n    }\n    // Force a string conversion as this will be done by the append regardless and\n    // the regex test will do this transparently behind the scenes, causing issues if\n    // an object's to string has escaped characters in it.\n    s = String(string);\n  } else {\n    s = string;\n  }\n  if (!possible.test(s)) {\n    return s;\n  }\n  // SAFETY: this is technically a lie, but it's a true lie as long as the\n  // invariant it depends on is upheld: `escapeChar` will always return a string\n  // as long as its input is one of the characters in `escape`, and it will only\n  // be called if it matches one of the characters in the `badChar` regex, which\n  // is hand-maintained to match the set escaped. (It would be nice if TS could\n  // \"see\" into the regex to see how this works, but that'd be quite a lot of\n  // extra fanciness.)\n  return s.replace(badChars, escapeChar);\n}\n/**\n  Use this method to indicate that a string should be rendered as HTML\n  when the string is used in a template. To say this another way,\n  strings marked with `htmlSafe` will not be HTML escaped.\n\n  A word of warning -   The `htmlSafe` method does not make the string safe;\n  it only tells the framework to treat the string as if it is safe to render\n  as HTML. If a string contains user inputs or other untrusted\n  data, you must sanitize the string before using the `htmlSafe` method.\n  Otherwise your code is vulnerable to\n  [Cross-Site Scripting](https://owasp.org/www-community/attacks/DOM_Based_XSS).\n  There are many open source sanitization libraries to choose from,\n  both for front end and server-side sanitization.\n\n  ```javascript\n  import { htmlSafe } from '@ember/template';\n\n  const someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n  htmlSafe(someTrustedorSanitizedString)\n  ```\n\n  @method htmlSafe\n  @for @ember/template\n  @param str {String} The string to treat as trusted.\n  @static\n  @return {SafeString} A string that will not be HTML escaped by Handlebars.\n  @public\n*/\nfunction htmlSafe(str) {\n  if (str === null || str === undefined) {\n    str = '';\n  } else if (typeof str !== 'string') {\n    str = String(str);\n  }\n  return new SafeString(str);\n}\n/**\n  Detects if a string was decorated using `htmlSafe`.\n\n  ```javascript\n  import { htmlSafe, isHTMLSafe } from '@ember/template';\n\n  let plainString = 'plain string';\n  let safeString = htmlSafe('<div>someValue</div>');\n\n  isHTMLSafe(plainString); // false\n  isHTMLSafe(safeString);  // true\n  ```\n\n  @method isHTMLSafe\n  @for @ember/template\n  @static\n  @return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.\n  @public\n*/\nfunction isHTMLSafe(str) {\n  return str !== null && typeof str === 'object' && 'toHTML' in str && typeof str.toHTML === 'function';\n}\n\nfunction instrumentationPayload$1(def) {\n  // \"main\" used to be the outlet name, keeping it around for compatibility\n  return {\n    object: `${def.name}:main`\n  };\n}\nconst CAPABILITIES$1 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass OutletComponentManager {\n  create(_owner, definition, _args, env, dynamicScope) {\n    let parentStateRef = dynamicScope.get('outletState');\n    let currentStateRef = definition.ref;\n    dynamicScope.set('outletState', currentStateRef);\n    let state = {\n      self: createConstRef(definition.controller, 'this'),\n      finalize: _instrumentStart('render.outlet', instrumentationPayload$1, definition)\n    };\n    if (env.debugRenderTree !== undefined) {\n      state.outletBucket = {};\n      let parentState = valueForRef(parentStateRef);\n      let parentOwner = parentState && parentState.render && parentState.render.owner;\n      let currentOwner = valueForRef(currentStateRef).render.owner;\n      if (parentOwner && parentOwner !== currentOwner) {\n        assert('Expected currentOwner to be an EngineInstance', currentOwner instanceof EngineInstance);\n        let mountPoint = currentOwner.mountPoint;\n        state.engine = currentOwner;\n        if (mountPoint) {\n          state.engineBucket = {\n            mountPoint\n          };\n        }\n      }\n    }\n    return state;\n  }\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n  getDebugCustomRenderTree(definition, state, args) {\n    let nodes = [];\n    assert('[BUG] outletBucket must be set', state.outletBucket);\n    nodes.push({\n      bucket: state.outletBucket,\n      type: 'outlet',\n      // \"main\" used to be the outlet name, keeping it around for compatibility\n      name: 'main',\n      args: EMPTY_ARGS,\n      instance: undefined,\n      template: undefined\n    });\n    if (state.engineBucket) {\n      nodes.push({\n        bucket: state.engineBucket,\n        type: 'engine',\n        name: state.engineBucket.mountPoint,\n        args: EMPTY_ARGS,\n        instance: state.engine,\n        template: undefined\n      });\n    }\n    nodes.push({\n      bucket: state,\n      type: 'route-template',\n      name: definition.name,\n      args: args,\n      instance: definition.controller,\n      template: unwrapTemplate(definition.template).moduleName\n    });\n    return nodes;\n  }\n  getCapabilities() {\n    return CAPABILITIES$1;\n  }\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout(state) {\n    state.finalize();\n  }\n  didUpdateLayout() {}\n  getDestroyable() {\n    return null;\n  }\n}\nconst OUTLET_MANAGER = new OutletComponentManager();\nclass OutletComponentDefinition {\n  constructor(state, manager = OUTLET_MANAGER) {\n    this.state = state;\n    this.manager = manager;\n    // handle is not used by this custom definition\n    this.handle = -1;\n    let capabilities = manager.getCapabilities();\n    this.capabilities = capabilityFlagsFrom(capabilities);\n    this.compilable = capabilities.wrapped ? unwrapTemplate(state.template).asWrappedLayout() : unwrapTemplate(state.template).asLayout();\n    this.resolvedName = state.name;\n  }\n}\nfunction createRootOutlet(outletView) {\n  if (ENV._APPLICATION_TEMPLATE_WRAPPER) {\n    const WRAPPED_CAPABILITIES = Object.assign({}, CAPABILITIES$1, {\n      dynamicTag: true,\n      elementHook: true,\n      wrapped: true\n    });\n    const WrappedOutletComponentManager = class extends OutletComponentManager {\n      getTagName() {\n        return 'div';\n      }\n      getCapabilities() {\n        return WRAPPED_CAPABILITIES;\n      }\n      didCreateElement(component, element) {\n        // to add GUID id and class\n        element.setAttribute('class', 'ember-view');\n        element.setAttribute('id', guidFor(component));\n      }\n    };\n    const WRAPPED_OUTLET_MANAGER = new WrappedOutletComponentManager();\n    return new OutletComponentDefinition(outletView.state, WRAPPED_OUTLET_MANAGER);\n  } else {\n    return new OutletComponentDefinition(outletView.state);\n  }\n}\n\nclass RootComponentManager extends CurlyComponentManager {\n  constructor(component) {\n    super();\n    this.component = component;\n  }\n  create(_owner, _state, _args, {\n    isInteractive\n  }, dynamicScope) {\n    let component = this.component;\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n    dynamicScope.view = component;\n    let hasWrappedElement = component.tagName !== '';\n    // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        component.trigger('willRender');\n      }\n      component._transitionTo('hasElement');\n      if (isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    }\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, {});\n    }\n    let bucket = new ComponentStateBucket(component, null, CONSTANT_TAG, finalizer, hasWrappedElement, isInteractive);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n}\n// ROOT is the top-level template it has nothing but one yield.\n// it is supposed to have a dummy element\nconst ROOT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass RootComponentDefinition {\n  constructor(component) {\n    // handle is not used by this custom definition\n    this.handle = -1;\n    this.resolvedName = '-top-level';\n    this.capabilities = capabilityFlagsFrom(ROOT_CAPABILITIES);\n    this.compilable = null;\n    this.manager = new RootComponentManager(component);\n    let factory = getFactoryFor(component);\n    assert('missing factory for component', factory !== undefined);\n    this.state = factory;\n  }\n}\n\n/**\n@module ember\n*/\n/**\n  The `{{#each}}` helper loops over elements in a collection. It is an extension\n  of the base Handlebars `{{#each}}` helper.\n\n  The default behavior of `{{#each}}` is to yield its inner block once for every\n  item in an array passing the item as the first block parameter.\n\n  Assuming the `@developers` argument contains this array:\n\n  ```javascript\n  [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  The same rules apply to arrays of primitives.\n\n  ```javascript\n  ['Yehuda', 'Tom', 'Paul']\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developerNames as |name|}}\n      <li>Hello, {{name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  During iteration, the index of each item in the array is provided as a second block\n  parameter.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person index|}}\n      <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n    {{/each}}\n  </ul>\n  ```\n\n  ### Specifying Keys\n\n  In order to improve rendering speed, Ember will try to reuse the DOM elements\n  where possible. Specifically, if the same item is present in the array both\n  before and after the change, its DOM output will be reused.\n\n  The `key` option is used to tell Ember how to determine if the items in the\n  array being iterated over with `{{#each}}` has changed between renders. By\n  default the item's object identity is used.\n\n  This is usually sufficient, so in most cases, the `key` option is simply not\n  needed. However, in some rare cases, the objects' identities may change even\n  though they represent the same underlying data.\n\n  For example:\n\n  ```javascript\n  people.map(person => {\n    return { ...person, type: 'developer' };\n  });\n  ```\n\n  In this case, each time the `people` array is `map`-ed over, it will produce\n  an new array with completely different objects between renders. In these cases,\n  you can help Ember determine how these objects related to each other with the\n  `key` option:\n\n  ```handlebars\n  <ul>\n    {{#each @developers key=\"name\" as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  By doing so, Ember will use the value of the property specified (`person.name`\n  in the example) to find a \"match\" from the previous render. That is, if Ember\n  has previously seen an object from the `@developers` array with a matching\n  name, its DOM elements will be re-used.\n\n  There are two special values for `key`:\n\n    * `@index` - The index of the item in the array.\n    * `@identity` - The item in the array itself.\n\n  ### {{else}} condition\n\n  `{{#each}}` can have a matching `{{else}}`. The contents of this block will render\n  if the collection is empty.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>{{person.name}} is available!</li>\n    {{else}}\n      <li>Sorry, nobody is available for this task.</li>\n    {{/each}}\n  </ul>\n  ```\n\n  @method each\n  @for Ember.Templates.helpers\n  @public\n */\n/**\n  The `{{each-in}}` helper loops over properties on an object.\n\n  For example, given this component definition:\n\n  ```app/components/developer-details.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      \"name\": \"Shelly Sails\",\n      \"age\": 42\n    };\n  }\n  ```\n\n  This template would display all properties on the `developer`\n  object in a list:\n\n  ```app/components/developer-details.hbs\n  <ul>\n    {{#each-in this.developer as |key value|}}\n      <li>{{key}}: {{value}}</li>\n    {{/each-in}}\n  </ul>\n  ```\n\n  Outputting their name and age:\n\n  ```html\n  <ul>\n    <li>name: Shelly Sails</li>\n    <li>age: 42</li>\n  </ul>\n  ```\n\n  @method each-in\n  @for Ember.Templates.helpers\n  @public\n  @since 2.1.0\n*/\nclass EachInWrapper {\n  constructor(inner) {\n    this.inner = inner;\n  }\n}\nvar eachIn = internalHelper(({\n  positional\n}) => {\n  const inner = positional[0];\n  assert('expected at least one positional arg', inner);\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    consumeTag(tagForObject(iterable));\n    if (isProxy(iterable)) {\n      // this is because the each-in doesn't actually get(proxy, 'key') but bypasses it\n      // and the proxy's tag is lazy updated on access\n      iterable = _contentFor(iterable);\n    }\n    return new EachInWrapper(iterable);\n  });\n});\n\nfunction toIterator(iterable) {\n  if (iterable instanceof EachInWrapper) {\n    return toEachInIterator(iterable.inner);\n  } else {\n    return toEachIterator(iterable);\n  }\n}\nfunction toEachInIterator(iterable) {\n  if (!isIndexable(iterable)) {\n    return null;\n  }\n  if (Array.isArray(iterable) || isEmberArray(iterable)) {\n    return ObjectIterator.fromIndexable(iterable);\n  } else if (isNativeIterable(iterable)) {\n    return MapLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ObjectIterator.fromForEachable(iterable);\n  } else {\n    return ObjectIterator.fromIndexable(iterable);\n  }\n}\nfunction toEachIterator(iterable) {\n  if (!isObject(iterable)) {\n    return null;\n  }\n  if (Array.isArray(iterable)) {\n    return ArrayIterator.from(iterable);\n  } else if (isEmberArray(iterable)) {\n    return EmberArrayIterator.from(iterable);\n  } else if (isNativeIterable(iterable)) {\n    return ArrayLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ArrayIterator.fromForEachable(iterable);\n  } else {\n    return null;\n  }\n}\nclass BoundedIterator {\n  constructor(length) {\n    this.length = length;\n    this.position = 0;\n  }\n  isEmpty() {\n    return false;\n  }\n  memoFor(position) {\n    return position;\n  }\n  next() {\n    let {\n      length,\n      position\n    } = this;\n    if (position >= length) {\n      return null;\n    }\n    let value = this.valueFor(position);\n    let memo = this.memoFor(position);\n    this.position++;\n    return {\n      value,\n      memo\n    };\n  }\n}\nclass ArrayIterator extends BoundedIterator {\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n  static fromForEachable(object) {\n    let array = [];\n    object.forEach(item => array.push(item));\n    return this.from(array);\n  }\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n  valueFor(position) {\n    return this.array[position];\n  }\n}\nclass EmberArrayIterator extends BoundedIterator {\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n  valueFor(position) {\n    return objectAt(this.array, position);\n  }\n}\nclass ObjectIterator extends BoundedIterator {\n  static fromIndexable(obj) {\n    let keys = Object.keys(obj);\n    if (keys.length === 0) {\n      return null;\n    } else {\n      let values = [];\n      for (let key of keys) {\n        let value;\n        value = obj[key];\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        if (isTracking()) {\n          consumeTag(tagFor(obj, key));\n          if (Array.isArray(value)) {\n            consumeTag(tagFor(value, '[]'));\n          }\n        }\n        values.push(value);\n      }\n      return new this(keys, values);\n    }\n  }\n  static fromForEachable(obj) {\n    let keys = [];\n    let values = [];\n    let length = 0;\n    let isMapLike = false;\n    // Not using an arrow function here so we can get an accurate `arguments`\n    obj.forEach(function (value, key) {\n      isMapLike = isMapLike || arguments.length >= 2;\n      if (isMapLike) {\n        keys.push(key);\n      }\n      values.push(value);\n      length++;\n    });\n    if (length === 0) {\n      return null;\n    } else if (isMapLike) {\n      return new this(keys, values);\n    } else {\n      return new ArrayIterator(values);\n    }\n  }\n  constructor(keys, values) {\n    super(values.length);\n    this.keys = keys;\n    this.values = values;\n  }\n  valueFor(position) {\n    return this.values[position];\n  }\n  memoFor(position) {\n    return this.keys[position];\n  }\n}\nclass NativeIterator {\n  static from(iterable) {\n    let iterator = iterable[Symbol.iterator]();\n    let result = iterator.next();\n    let {\n      done\n    } = result;\n    if (done) {\n      return null;\n    } else {\n      return new this(iterator, result);\n    }\n  }\n  constructor(iterable, result) {\n    this.iterable = iterable;\n    this.result = result;\n    this.position = 0;\n  }\n  isEmpty() {\n    return false;\n  }\n  next() {\n    let {\n      iterable,\n      result,\n      position\n    } = this;\n    if (result.done) {\n      return null;\n    }\n    let value = this.valueFor(result, position);\n    let memo = this.memoFor(result, position);\n    this.position++;\n    this.result = iterable.next();\n    return {\n      value,\n      memo\n    };\n  }\n}\nclass ArrayLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value;\n  }\n  memoFor(_result, position) {\n    return position;\n  }\n}\nclass MapLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value[1];\n  }\n  memoFor(result) {\n    return result.value[0];\n  }\n}\nfunction hasForEach(value) {\n  return value != null && typeof value['forEach'] === 'function';\n}\nfunction isNativeIterable(value) {\n  return value != null && typeof value[Symbol.iterator] === 'function';\n}\nfunction isIndexable(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nfunction toBool(predicate) {\n  if (isProxy(predicate)) {\n    consumeTag(tagForProperty(predicate, 'content'));\n    return Boolean(get(predicate, 'isTruthy'));\n  } else if (isArray(predicate)) {\n    consumeTag(tagForProperty(predicate, '[]'));\n    return predicate.length !== 0;\n  } else if (isHTMLSafe$1(predicate)) {\n    return Boolean(predicate.toString());\n  } else {\n    return Boolean(predicate);\n  }\n}\n\n///////////\n// Setup global context\nsetGlobalContext({\n  FEATURES: {\n    DEFAULT_HELPER_MANAGER: true\n  },\n  scheduleRevalidate() {\n    _backburner.ensureInstance();\n  },\n  toBool,\n  toIterator,\n  getProp: _getProp,\n  setProp: _setProp,\n  getPath: get,\n  setPath: set,\n  scheduleDestroy(destroyable, destructor) {\n    schedule('actions', null, destructor, destroyable);\n  },\n  scheduleDestroyed(finalizeDestructor) {\n    schedule('destroy', null, finalizeDestructor);\n  },\n  warnIfStyleNotTrusted(value) {\n    warn(constructStyleDeprecationMessage(String(value)), (() => {\n      if (value === null || value === undefined || isHTMLSafe(value)) {\n        return true;\n      }\n      return false;\n    })(), {\n      id: 'ember-htmlbars.style-xss-warning'\n    });\n  },\n  assert(test, msg, options) {\n    if (DEBUG) {\n      let id = options?.id;\n      let override = VM_ASSERTION_OVERRIDES.filter(o => o.id === id)[0];\n      assert(override?.message ?? msg, test);\n    }\n  },\n  deprecate(msg, test, options) {\n    if (DEBUG) {\n      let {\n        id\n      } = options;\n      if (id === 'argument-less-helper-paren-less-invocation') {\n        throw new Error(`A resolved helper cannot be passed as a named argument as the syntax is ` + `ambiguously a pass-by-reference or invocation. Use the ` + `\\`{{helper 'foo-helper}}\\` helper to pass by reference or explicitly ` + `invoke the helper with parens: \\`{{(fooHelper)}}\\`.`);\n      }\n      let override = VM_DEPRECATION_OVERRIDES.filter(o => o.id === id)[0];\n      if (!override) throw new Error(`deprecation override for ${id} not found`);\n      // allow deprecations to be disabled in the VM_DEPRECATION_OVERRIDES array below\n      if (!override.disabled) {\n        deprecate(override.message ?? msg, Boolean(test), override);\n      }\n    }\n  }\n});\nif (DEBUG) {\n  debug?.setTrackingTransactionEnv?.({\n    debugMessage(obj, keyName) {\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${getDebugName?.(obj)}\\`` : `\\`${getDebugName?.(obj)}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n  });\n}\n///////////\n// VM Assertion/Deprecation overrides\nconst VM_DEPRECATION_OVERRIDES = [{\n  id: 'setting-on-hash',\n  until: '4.4.0',\n  for: 'ember-source',\n  since: {\n    available: '3.28.0',\n    enabled: '3.28.0'\n  }\n}];\nconst VM_ASSERTION_OVERRIDES = [];\n///////////\n// Define environment delegate\nclass EmberEnvironmentDelegate {\n  constructor(owner, isInteractive) {\n    this.owner = owner;\n    this.isInteractive = isInteractive;\n    this.enableDebugTooling = ENV._DEBUG_RENDER_TREE;\n  }\n  onTransactionCommit() {}\n}\n\n/**\n@module ember\n*/\nvar disallowDynamicResolution = internalHelper(({\n  positional,\n  named\n}) => {\n  const nameOrValueRef = positional[0];\n  assert(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`, positional.length === 1 && nameOrValueRef);\n  let typeRef = named['type'];\n  let locRef = named['loc'];\n  let originalRef = named['original'];\n  assert(`[BUG] expecting \\`type\\` named argument`, typeRef);\n  assert(`[BUG] expecting \\`loc\\` named argument`, locRef);\n  assert(`[BUG] expecting \\`original\\` named argument`, originalRef);\n  // Bug: why do these fail?\n  // assert('[BUG] expecting a string literal for the `type` argument', isConstRef(typeRef));\n  // assert('[BUG] expecting a string literal for the `loc` argument', isConstRef(locRef));\n  // assert('[BUG] expecting a string literal for the `original` argument', isConstRef(originalRef));\n  const type = valueForRef(typeRef);\n  const loc = valueForRef(locRef);\n  const original = valueForRef(originalRef);\n  assert('[BUG] expecting a string literal for the `type` argument', typeof type === 'string');\n  assert('[BUG] expecting a string literal for the `loc` argument', typeof loc === 'string');\n  assert('[BUG] expecting a string literal for the `original` argument', typeof original === 'string');\n  return createComputeRef(() => {\n    let nameOrValue = valueForRef(nameOrValueRef);\n    assert(`Passing a dynamic string to the \\`(${type})\\` keyword is disallowed. ` + `(You specified \\`(${type} ${original})\\` and \\`${original}\\` evaluated into \"${nameOrValue}\".) ` + `This ensures we can statically analyze the template and determine which ${type}s are used. ` + `If the ${type} name is always the same, use a string literal instead, i.e. \\`(${type} \"${nameOrValue}\")\\`. ` + `Otherwise, import the ${type}s into JavaScript and pass them directly. ` + 'See https://github.com/emberjs/rfcs/blob/master/text/0496-handlebars-strict-mode.md#4-no-dynamic-resolution for details. ' + loc, typeof nameOrValue !== 'string');\n    return nameOrValue;\n  });\n});\n\nlet helper;\nif (DEBUG) {\n  helper = args => {\n    const inner = args.positional[0];\n    assert('expected at least one positional arg', inner);\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      assert('You cannot pass a null or undefined destination element to in-element', value !== null && value !== undefined);\n      return value;\n    });\n  };\n} else {\n  helper = args => {\n    let arg = args.positional[0];\n    assert('expected at least one positional arg', arg);\n    return arg;\n  };\n}\nvar inElementNullCheckHelper = internalHelper(helper);\n\nvar normalizeClassHelper = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => {\n    let classNameArg = positional[0];\n    let valueArg = positional[1];\n    assert('expected at least two positional args', classNameArg && valueArg);\n    let classNameParts = valueForRef(classNameArg).split('.');\n    let className = classNameParts[classNameParts.length - 1];\n    assert('has className', className); // Always at least one split result\n    let value = valueForRef(valueArg);\n    if (value === true) {\n      return dasherize(className);\n    } else if (!value && value !== 0) {\n      return '';\n    } else {\n      return String(value);\n    }\n  });\n});\n\nvar resolve = internalHelper(({\n  positional\n}, owner) => {\n  // why is this allowed to be undefined in the first place?\n  assert('[BUG] missing owner', owner);\n  assert(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`, positional.length === 1);\n  let fullNameRef = positional[0];\n  assert('[BUG] expecting a string literal as argument', fullNameRef && isConstRef(fullNameRef));\n  let fullName = valueForRef(fullNameRef);\n  assert('[BUG] expecting a string literal as argument', typeof fullName === 'string');\n  assert('[BUG] expecting a valid full name', (s => s.split(':').length === 2)(fullName));\n  if (DEBUG) {\n    let [type, name] = fullName.split(':');\n    assert(`Attempted to invoke \\`(-resolve \"${fullName}\")\\`, but ${name} was not a valid ${type} name.`, owner.hasRegistration(fullName));\n  }\n  return createConstRef(owner.factoryFor(fullName)?.class, `(-resolve \"${fullName}\")`);\n});\n\n/**\n@module ember\n*/\n/**\n  This reference is used to get the `[]` tag of iterables, so we can trigger\n  updates to `{{each}}` when it changes. It is put into place by a template\n  transform at build time, similar to the (-each-in) helper\n*/\nvar trackArray = internalHelper(({\n  positional\n}) => {\n  const inner = positional[0];\n  assert('expected at least one positional arg', inner);\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    if (isObject(iterable)) {\n      consumeTag(tagForProperty(iterable, '[]'));\n    }\n    return iterable;\n  });\n});\n\n/**\n@module ember\n*/\n/**\n  The `mut` helper lets you __clearly specify__ that a child `Component` can update the\n  (mutable) value passed to it, which will __change the value of the parent component__.\n\n  To specify that a parameter is mutable, when invoking the child `Component`:\n\n  ```handlebars\n  <MyChild @childClickCount={{fn (mut totalClicks)}} />\n  ```\n\n   or\n\n  ```handlebars\n  {{my-child childClickCount=(mut totalClicks)}}\n  ```\n\n  The child `Component` can then modify the parent's value just by modifying its own\n  property:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  Note that for curly components (`{{my-component}}`) the bindings are already mutable,\n  making the `mut` unnecessary.\n\n  Additionally, the `mut` helper can be combined with the `fn` helper to\n  mutate a value. For example:\n\n  ```handlebars\n  <MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}\n  ```\n\n  The child `Component` would invoke the function with the new click value:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.get('click-count-change')(this.get('childClickCount') + 1);\n    }\n  });\n  ```\n\n  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.\n\n  The `mut` helper, when used with `fn`, will return a function that\n  sets the value passed to `mut` to its first argument. As an example, we can create a\n  button that increments a value passing the value directly to the `fn`:\n\n  ```handlebars\n  {{! inc helper is not provided by Ember }}\n  <button onclick={{fn (mut count) (inc count)}}>\n    Increment count\n  </button>\n  ```\n\n  @method mut\n  @param {Object} [attr] the \"two-way\" attribute that can be modified.\n  @for Ember.Templates.helpers\n  @public\n*/\nvar mut = internalHelper(({\n  positional\n}) => {\n  let ref = positional[0];\n  assert('expected at least one positional arg', ref);\n  // TODO: Improve this error message. This covers at least two distinct\n  // cases:\n  //\n  // 1. (mut \"not a path\") – passing a literal, result from a helper\n  //    invocation, etc\n  //\n  // 2. (mut receivedValue) – passing a value received from the caller\n  //    that was originally derived from a literal, result from a helper\n  //    invocation, etc\n  //\n  // This message is alright for the first case, but could be quite\n  // confusing for the second case.\n  assert('You can only pass a path to mut', isUpdatableRef(ref));\n  return createInvokableRef(ref);\n});\n\n/**\n  The `readonly` helper let's you specify that a binding is one-way only,\n  instead of two-way.\n  When you pass a `readonly` binding from an outer context (e.g. parent component),\n  to to an inner context (e.g. child component), you are saying that changing that\n  property in the inner context does not change the value in the outer context.\n\n  To specify that a binding is read-only, when invoking the child `Component`:\n\n  ```app/components/my-parent.js\n  export default Component.extend({\n    totalClicks: 3\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} // -> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  ```\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  Now, when you update `childClickCount`:\n\n  ```app/components/my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  The value updates in the child component, but not the parent component:\n\n  ```app/templates/components/my-child.hbs\n  {{log childClickCount}} //-> 4\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  ### Objects and Arrays\n\n  When passing a property that is a complex object (e.g. object, array) instead of a primitive object (e.g. number, string),\n  only the reference to the object is protected using the readonly helper.\n  This means that you can change properties of the object both on the parent component, as well as the child component.\n  The `readonly` binding behaves similar to the `const` keyword in JavaScript.\n\n  Let's look at an example:\n\n  First let's set up the parent component:\n\n  ```app/components/my-parent.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    clicks: null,\n\n    init() {\n      this._super(...arguments);\n      this.set('clicks', { total: 3 });\n    }\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  Now, if you update the `total` property of `childClicks`:\n\n  ```app/components/my-child.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      this.get('clicks').incrementProperty('total');\n    }\n  });\n  ```\n\n  You will see the following happen:\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  ```app/templates/components/my-child.hbs\n  {{log childClicks.total}} //-> 4\n  ```\n\n  @method readonly\n  @param {Object} [attr] the read-only attribute.\n  @for Ember.Templates.helpers\n  @private\n*/\nvar readonly = internalHelper(({\n  positional\n}) => {\n  let firstArg = positional[0];\n  assert('has first arg', firstArg);\n  return createReadOnlyRef(firstArg);\n});\n\n/**\n@module ember\n*/\n/**\n  The `{{unbound}}` helper disconnects the one-way binding of a property,\n  essentially freezing its value at the moment of rendering. For example,\n  in this example the display of the variable `name` will not change even\n  if it is set with a new value:\n\n  ```handlebars\n  {{unbound this.name}}\n  ```\n\n  Like any helper, the `unbound` helper can accept a nested helper expression.\n  This allows for custom helpers to be rendered unbound:\n\n  ```handlebars\n  {{unbound (some-custom-helper)}}\n  {{unbound (capitalize this.name)}}\n  {{! You can use any helper, including unbound, in a nested expression }}\n  {{capitalize (unbound this.name)}}\n  ```\n\n  The `unbound` helper only accepts a single argument, and it return an\n  unbound value.\n\n  @method unbound\n  @for Ember.Templates.helpers\n  @public\n*/\nvar unbound = internalHelper(({\n  positional,\n  named\n}) => {\n  assert('unbound helper cannot be called with multiple params or hash params', positional.length === 1 && Object.keys(named).length === 0);\n  return createUnboundRef(valueForRef(positional[0]), '(result of an `unbound` helper)');\n});\n\n/**\n@module ember\n*/\nvar uniqueId = internalHelper(() => {\n  // SAFETY: glimmer-vm should change the signature of createUnboundRef to use a generic\n  //         so that the type param to `Reference<?>` can infer from the first argument.\n  //\n  // NOTE: constRef is an optimization so we don't let the VM create extra wrappers,\n  //       tracking frames, etc.\n  return createConstRef(uniqueId$1(), 'unique-id');\n});\n// From https://gist.github.com/selfish/fef2c0ba6cdfe07af76e64cecd74888b\n//\n// This code should be reasonably fast, and provide a unique value every time\n// it's called, which is what we need here. It produces a string formatted as a\n// standard UUID, which avoids accidentally turning Ember-specific\n// implementation details into an intimate API. It also ensures that the UUID\n// always starts with a letter, to avoid creating invalid IDs with a numeric\n// digit at the start.\nfunction uniqueId$1() {\n  // @ts-expect-error this one-liner abuses weird JavaScript semantics that\n  // TypeScript (legitimately) doesn't like, but they're nonetheless valid and\n  // specced.\n  return ([3e7] + -1e3 + -4e3 + -2e3 + -1e11).replace(/[0-3]/g, a => (a * 4 ^ Math.random() * 16 >> (a & 2)).toString(16));\n}\n\nconst MODIFIERS = ['alt', 'shift', 'meta', 'ctrl'];\nconst POINTER_EVENT_TYPE_REGEX = /^click|mouse|touch/;\nfunction isAllowedEvent(event, allowedKeys) {\n  if (allowedKeys === null || allowedKeys === undefined) {\n    if (POINTER_EVENT_TYPE_REGEX.test(event.type)) {\n      return isSimpleClick(event);\n    } else {\n      allowedKeys = '';\n    }\n  }\n  if (allowedKeys.indexOf('any') >= 0) {\n    return true;\n  }\n  for (let i = 0; i < MODIFIERS.length; i++) {\n    if (event[MODIFIERS[i] + 'Key'] && allowedKeys.indexOf(MODIFIERS[i]) === -1) {\n      return false;\n    }\n  }\n  return true;\n}\nlet ActionHelper = {\n  // registeredActions is re-exported for compatibility with older plugins\n  // that were using this undocumented API.\n  registeredActions: ActionManager.registeredActions,\n  registerAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    ActionManager.registeredActions[actionId] = actionState;\n    return actionId;\n  },\n  unregisterAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    delete ActionManager.registeredActions[actionId];\n  }\n};\nclass ActionState {\n  constructor(element, owner, actionId, actionArgs, namedArgs, positionalArgs) {\n    this.tag = createUpdatableTag();\n    this.element = element;\n    this.owner = owner;\n    this.actionId = actionId;\n    this.actionArgs = actionArgs;\n    this.namedArgs = namedArgs;\n    this.positional = positionalArgs;\n    this.eventName = this.getEventName();\n    registerDestructor(this, () => ActionHelper.unregisterAction(this));\n  }\n  getEventName() {\n    let {\n      on\n    } = this.namedArgs;\n    return on !== undefined ? valueForRef(on) : 'click';\n  }\n  getActionArgs() {\n    let result = new Array(this.actionArgs.length);\n    for (let i = 0; i < this.actionArgs.length; i++) {\n      result[i] = valueForRef(this.actionArgs[i]);\n    }\n    return result;\n  }\n  getTarget() {\n    let {\n      implicitTarget,\n      namedArgs\n    } = this;\n    let {\n      target\n    } = namedArgs;\n    return target !== undefined ? valueForRef(target) : valueForRef(implicitTarget);\n  }\n  handler(event) {\n    let {\n      actionName,\n      namedArgs\n    } = this;\n    let {\n      bubbles,\n      preventDefault,\n      allowedKeys\n    } = namedArgs;\n    let bubblesVal = bubbles !== undefined ? valueForRef(bubbles) : undefined;\n    let preventDefaultVal = preventDefault !== undefined ? valueForRef(preventDefault) : undefined;\n    let allowedKeysVal = allowedKeys !== undefined ? valueForRef(allowedKeys) : undefined;\n    let target = this.getTarget();\n    let shouldBubble = bubblesVal !== false;\n    if (!isAllowedEvent(event, allowedKeysVal)) {\n      return true;\n    }\n    if (preventDefaultVal !== false) {\n      event.preventDefault();\n    }\n    if (!shouldBubble) {\n      event.stopPropagation();\n    }\n    join(() => {\n      let args = this.getActionArgs();\n      let payload = {\n        args,\n        target,\n        name: null\n      };\n      if (isInvokableRef(actionName)) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          updateRef(actionName, args[0]);\n        });\n        return;\n      }\n      if (typeof actionName === 'function') {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName.apply(target, args);\n        });\n        return;\n      }\n      payload.name = actionName;\n      if (target.send) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target.send.apply(target, [actionName, ...args]);\n        });\n      } else {\n        assert(`The action '${actionName}' did not exist on ${target}`, typeof target[actionName] === 'function');\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target[actionName].apply(target, args);\n        });\n      }\n    });\n    return shouldBubble;\n  }\n}\nclass ActionModifierManager {\n  create(owner, element, _state, {\n    named,\n    positional\n  }) {\n    let actionArgs = [];\n    // The first two arguments are (1) `this` and (2) the action name.\n    // Everything else is a param.\n    for (let i = 2; i < positional.length; i++) {\n      actionArgs.push(positional[i]);\n    }\n    let actionId = uuid();\n    return new ActionState(element, owner, actionId, actionArgs, named, positional);\n  }\n  getDebugName() {\n    return 'action';\n  }\n  install(actionState) {\n    let {\n      element,\n      actionId,\n      positional\n    } = actionState;\n    let actionName;\n    let actionNameRef;\n    let implicitTarget;\n    if (positional.length > 1) {\n      implicitTarget = positional[0];\n      actionNameRef = positional[1];\n      if (isInvokableRef(actionNameRef)) {\n        actionName = actionNameRef;\n      } else {\n        actionName = valueForRef(actionNameRef);\n        if (DEBUG) {\n          let actionPath = actionNameRef.debugLabel;\n          let actionPathParts = actionPath.split('.');\n          let actionLabel = actionPathParts[actionPathParts.length - 1];\n          assert('You specified a quoteless path, `' + actionPath + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action \"' + actionLabel + '\"}}).', typeof actionName === 'string' || typeof actionName === 'function');\n        }\n      }\n    }\n    actionState.actionName = actionName;\n    actionState.implicitTarget = implicitTarget;\n    this.ensureEventSetup(actionState);\n    ActionHelper.registerAction(actionState);\n    element.setAttribute('data-ember-action', '');\n    element.setAttribute(`data-ember-action-${actionId}`, String(actionId));\n  }\n  update(actionState) {\n    let {\n      positional\n    } = actionState;\n    let actionNameRef = positional[1];\n    assert('Expected at least one positional arg', actionNameRef);\n    if (!isInvokableRef(actionNameRef)) {\n      actionState.actionName = valueForRef(actionNameRef);\n    }\n    let newEventName = actionState.getEventName();\n    if (newEventName !== actionState.eventName) {\n      this.ensureEventSetup(actionState);\n      actionState.eventName = actionState.getEventName();\n    }\n  }\n  ensureEventSetup(actionState) {\n    let dispatcher = actionState.owner.lookup('event_dispatcher:main');\n    assert('Expected dispatcher to be an EventDispatcher', dispatcher instanceof EventDispatcher);\n    dispatcher?.setupHandlerForEmberEvent(actionState.eventName);\n  }\n  getTag(actionState) {\n    return actionState.tag;\n  }\n  getDestroyable(actionState) {\n    return actionState;\n  }\n}\nconst ACTION_MODIFIER_MANAGER = new ActionModifierManager();\nvar actionModifier = setInternalModifierManager(ACTION_MODIFIER_MANAGER, {});\n\nconst CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: true\n};\nclass MountManager {\n  getDynamicLayout(state) {\n    let templateFactory = state.engine.lookup('template:application');\n    return unwrapTemplate(templateFactory(state.engine)).asLayout();\n  }\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  getOwner(state) {\n    return state.engine;\n  }\n  create(owner, {\n    name\n  }, args, env) {\n    // TODO\n    // mount is a runtime helper, this shouldn't use dynamic layout\n    // we should resolve the engine app template in the helper\n    // it also should use the owner that looked up the mount helper.\n    assert('Expected owner to be an EngineInstance', owner instanceof EngineInstance);\n    let engine = owner.buildChildEngineInstance(name);\n    engine.boot();\n    let applicationFactory = engine.factoryFor(`controller:application`);\n    let controllerFactory = applicationFactory || generateControllerFactory(engine, 'application');\n    let controller;\n    let self;\n    let bucket;\n    let modelRef;\n    if (args.named.has('model')) {\n      modelRef = args.named.get('model');\n    }\n    if (modelRef === undefined) {\n      controller = controllerFactory.create();\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    } else {\n      let model = valueForRef(modelRef);\n      controller = controllerFactory.create({\n        model\n      });\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    }\n    if (env.debugRenderTree) {\n      associateDestroyableChild(engine, controller);\n    }\n    return bucket;\n  }\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n  getDebugCustomRenderTree(definition, state, args, templateModuleName) {\n    return [{\n      bucket: state.engine,\n      instance: state.engine,\n      type: 'engine',\n      name: definition.name,\n      args\n    }, {\n      bucket: state.controller,\n      instance: state.controller,\n      type: 'route-template',\n      name: 'application',\n      args,\n      template: templateModuleName\n    }];\n  }\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n  getDestroyable(bucket) {\n    return bucket.engine;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  update(bucket) {\n    let {\n      controller,\n      modelRef\n    } = bucket;\n    if (modelRef !== undefined) {\n      controller.set('model', valueForRef(modelRef));\n    }\n  }\n}\nconst MOUNT_MANAGER = new MountManager();\nclass MountDefinition {\n  constructor(resolvedName) {\n    this.resolvedName = resolvedName;\n    // handle is not used by this custom definition\n    this.handle = -1;\n    this.manager = MOUNT_MANAGER;\n    this.compilable = null;\n    this.capabilities = capabilityFlagsFrom(CAPABILITIES);\n    this.state = {\n      name: resolvedName\n    };\n  }\n}\n\n/**\n  The `{{mount}}` helper lets you embed a routeless engine in a template.\n  Mounting an engine will cause an instance to be booted and its `application`\n  template to be rendered.\n\n  For example, the following template mounts the `ember-chat` engine:\n\n  ```handlebars\n  {{! application.hbs }}\n  {{mount \"ember-chat\"}}\n  ```\n\n  Additionally, you can also pass in a `model` argument that will be\n  set as the engines model. This can be an existing object:\n\n  ```\n  <div>\n    {{mount 'admin' model=userSettings}}\n  </div>\n  ```\n\n  Or an inline `hash`, and you can even pass components:\n\n  ```\n  <div>\n    <h1>Application template!</h1>\n    {{mount 'admin' model=(hash\n        title='Secret Admin'\n        signInButton=(component 'sign-in-button')\n    )}}\n  </div>\n  ```\n\n  @method mount\n  @param {String} name Name of the engine to mount.\n  @param {Object} [model] Object that will be set as\n                          the model of the engine.\n  @for Ember.Templates.helpers\n  @public\n*/\nconst mountHelper = internalHelper((args, owner) => {\n  assert('{{mount}} must be used within a component that has an owner', owner);\n  let nameRef = args.positional[0];\n  let captured;\n  assert('You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}.', args.positional.length === 1);\n  if (DEBUG && args.named) {\n    let keys = Object.keys(args.named);\n    let extra = keys.filter(k => k !== 'model');\n    assert('You can only pass a `model` argument to the {{mount}} helper, ' + 'e.g. {{mount \"profile-engine\" model=this.profile}}. ' + `You passed ${extra.join(',')}.`, extra.length === 0);\n  }\n  captured = createCapturedArgs(args.named, EMPTY_POSITIONAL);\n  let lastName, lastDef;\n  return createComputeRef(() => {\n    let name = valueForRef(nameRef);\n    if (typeof name === 'string') {\n      if (lastName === name) {\n        return lastDef;\n      }\n      assert(`You used \\`{{mount '${name}'}}\\`, but the engine '${name}' can not be found.`, owner.hasRegistration(`engine:${name}`));\n      lastName = name;\n      lastDef = curry(CurriedType.Component, new MountDefinition(name), owner, captured, true);\n      return lastDef;\n    } else {\n      assert(`Invalid engine name '${name}' specified, engine name must be either a string, null or undefined.`, name === null || name === undefined);\n      lastDef = null;\n      lastName = null;\n      return null;\n    }\n  });\n});\n\n/**\n  The `{{outlet}}` helper lets you specify where a child route will render in\n  your template. An important use of the `{{outlet}}` helper is in your\n  application's `application.hbs` file:\n\n  ```app/templates/application.hbs\n  <MyHeader />\n\n  <div class=\"my-dynamic-content\">\n    <!-- this content will change based on the current route, which depends on the current URL -->\n    {{outlet}}\n  </div>\n\n  <MyFooter />\n  ```\n\n  See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more\n  information on how your `route` interacts with the `{{outlet}}` helper.\n  Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.\n\n  @method outlet\n  @for Ember.Templates.helpers\n  @public\n*/\nconst outletHelper = internalHelper((_args, owner, scope) => {\n  assert('Expected owner to be present, {{outlet}} requires an owner', owner);\n  assert('Expected dynamic scope to be present. You may have attempted to use the {{outlet}} keyword dynamically. This keyword cannot be used dynamically.', scope);\n  let outletRef = createComputeRef(() => {\n    let state = valueForRef(scope.get('outletState'));\n    return state?.outlets?.main;\n  });\n  let lastState = null;\n  let definition = null;\n  return createComputeRef(() => {\n    let outletState = valueForRef(outletRef);\n    let state = stateFor(outletRef, outletState);\n    if (!validate(state, lastState)) {\n      lastState = state;\n      if (state !== null) {\n        let named = dict();\n        // Create a ref for the model\n        let modelRef = childRefFromParts(outletRef, ['render', 'model']);\n        // Store the value of the model\n        let model = valueForRef(modelRef);\n        // Create a compute ref which we pass in as the `{{@model}}` reference\n        // for the outlet. This ref will update and return the value of the\n        // model _until_ the outlet itself changes. Once the outlet changes,\n        // dynamic scope also changes, and so the original model ref would not\n        // provide the correct updated value. So we stop updating and return\n        // the _last_ model value for that outlet.\n        named['model'] = createComputeRef(() => {\n          if (lastState === state) {\n            model = valueForRef(modelRef);\n          }\n          return model;\n        });\n        if (DEBUG) {\n          named['model'] = createDebugAliasRef('@model', named['model']);\n        }\n        let args = createCapturedArgs(named, EMPTY_POSITIONAL);\n        definition = curry(CurriedType.Component, new OutletComponentDefinition(state), outletState?.render?.owner ?? owner, args, true);\n      } else {\n        definition = null;\n      }\n    }\n    return definition;\n  });\n});\nfunction stateFor(ref, outlet) {\n  if (outlet === undefined) return null;\n  let render = outlet.render;\n  if (render === undefined) return null;\n  let template = render.template;\n  if (template === undefined) return null;\n  if (isTemplateFactory(template)) {\n    template = template(render.owner);\n    if (DEBUG) {\n      let message = 'The `template` property of `OutletState` should be a ' + '`Template` rather than a `TemplateFactory`. This is known to be a ' + \"problem in older versions of `@ember/test-helpers`. If you haven't \" + 'done so already, try upgrading to the latest version.\\n\\n';\n      if (template.result === 'ok' && typeof template.moduleName === 'string') {\n        message += 'The offending template has a moduleName `' + template.moduleName + '`, which might be helpful for identifying ' + 'source of this issue.\\n\\n';\n      }\n      message += 'Please note that `OutletState` is a private API in Ember.js ' + \"and not meant to be used outside of the framework's internal code.\";\n      deprecate(message, false, {\n        id: 'outlet-state-template-factory',\n        until: '5.9.0',\n        for: 'ember-source',\n        since: {\n          available: '5.6.0',\n          enabled: '5.6.0'\n        }\n      });\n    }\n  }\n  return {\n    ref,\n    name: render.name,\n    template,\n    controller: render.controller,\n    model: render.model\n  };\n}\nfunction validate(state, lastState) {\n  if (state === null) {\n    return lastState === null;\n  }\n  if (lastState === null) {\n    return false;\n  }\n  return state.template === lastState.template && state.controller === lastState.controller;\n}\n\nfunction instrumentationPayload(name) {\n  return {\n    object: `component:${name}`\n  };\n}\nfunction componentFor(name, owner) {\n  let fullName = `component:${name}`;\n  return owner.factoryFor(fullName) || null;\n}\nfunction layoutFor(name, owner, options) {\n  let templateFullName = `template:components/${name}`;\n  return owner.lookup(templateFullName, options) || null;\n}\nfunction lookupComponentPair(owner, name, options) {\n  let component = componentFor(name, owner);\n  if (isFactory(component) && component.class) {\n    let layout = getComponentTemplate(component.class);\n    if (layout !== undefined) {\n      return {\n        component,\n        layout\n      };\n    }\n  }\n  let layout = layoutFor(name, owner, options);\n  if (component === null && layout === null) {\n    return null;\n  } else {\n    return {\n      component,\n      layout\n    };\n  }\n}\nconst BUILTIN_KEYWORD_HELPERS = {\n  action,\n  mut,\n  readonly,\n  unbound,\n  '-hash': hash,\n  '-each-in': eachIn,\n  '-normalize-class': normalizeClassHelper,\n  '-resolve': resolve,\n  '-track-array': trackArray,\n  '-mount': mountHelper,\n  '-outlet': outletHelper,\n  '-in-el-null': inElementNullCheckHelper\n};\nconst BUILTIN_HELPERS = {\n  ...BUILTIN_KEYWORD_HELPERS,\n  array,\n  concat,\n  fn,\n  get: get$1,\n  hash,\n  'unique-id': uniqueId\n};\nif (DEBUG) {\n  BUILTIN_HELPERS['-disallow-dynamic-resolution'] = disallowDynamicResolution;\n} else {\n  // Bug: this may be a quirk of our test setup?\n  // In prod builds, this is a no-op helper and is unused in practice. We shouldn't need\n  // to add it at all, but the current test build doesn't produce a \"prod compiler\", so\n  // we ended up running the debug-build for the template compliler in prod tests. Once\n  // that is fixed, this can be removed. For now, this allows the test to work and does\n  // not really harm anything, since it's just a no-op pass-through helper and the bytes\n  // has to be included anyway. In the future, perhaps we can avoid the latter by using\n  // `import(...)`?\n  BUILTIN_HELPERS['-disallow-dynamic-resolution'] = disallowDynamicResolution;\n}\nconst BUILTIN_KEYWORD_MODIFIERS = {\n  action: actionModifier\n};\nconst BUILTIN_MODIFIERS = {\n  ...BUILTIN_KEYWORD_MODIFIERS,\n  on: on$1\n};\nconst CLASSIC_HELPER_MANAGER_ASSOCIATED = new WeakSet();\nclass ResolverImpl {\n  constructor() {\n    this.componentDefinitionCache = new Map();\n  }\n  lookupPartial() {\n    return null;\n  }\n  lookupHelper(name, owner) {\n    assert(`You attempted to overwrite the built-in helper \"${name}\" which is not allowed. Please rename the helper.`, !(BUILTIN_HELPERS[name] && owner.hasRegistration(`helper:${name}`)));\n    let helper = BUILTIN_HELPERS[name];\n    if (helper !== undefined) {\n      return helper;\n    }\n    let factory = owner.factoryFor(`helper:${name}`);\n    if (factory === undefined) {\n      return null;\n    }\n    let definition = factory.class;\n    if (definition === undefined) {\n      return null;\n    }\n    if (typeof definition === 'function' && isClassicHelper(definition)) {\n      // For classic class based helpers, we need to pass the factoryFor result itself rather\n      // than the raw value (`factoryFor(...).class`). This is because injections are already\n      // bound in the factoryFor result, including type-based injections\n      if (DEBUG) {\n        // In DEBUG we need to only set the associated value once, otherwise\n        // we'll trigger an assertion\n        if (!CLASSIC_HELPER_MANAGER_ASSOCIATED.has(factory)) {\n          CLASSIC_HELPER_MANAGER_ASSOCIATED.add(factory);\n          setInternalHelperManager(CLASSIC_HELPER_MANAGER, factory);\n        }\n      } else {\n        setInternalHelperManager(CLASSIC_HELPER_MANAGER, factory);\n      }\n      return factory;\n    }\n    return definition;\n  }\n  lookupBuiltInHelper(name) {\n    return BUILTIN_KEYWORD_HELPERS[name] ?? null;\n  }\n  lookupModifier(name, owner) {\n    let builtin = BUILTIN_MODIFIERS[name];\n    if (builtin !== undefined) {\n      return builtin;\n    }\n    let modifier = owner.factoryFor(`modifier:${name}`);\n    if (modifier === undefined) {\n      return null;\n    }\n    return modifier.class || null;\n  }\n  lookupBuiltInModifier(name) {\n    return BUILTIN_KEYWORD_MODIFIERS[name] ?? null;\n  }\n  lookupComponent(name, owner) {\n    let pair = lookupComponentPair(owner, name);\n    if (pair === null) {\n      assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', name !== 'text-area');\n      return null;\n    }\n    let template = null;\n    let key;\n    if (pair.component === null) {\n      key = template = pair.layout(owner);\n    } else {\n      key = pair.component;\n    }\n    let cachedComponentDefinition = this.componentDefinitionCache.get(key);\n    if (cachedComponentDefinition !== undefined) {\n      return cachedComponentDefinition;\n    }\n    if (template === null && pair.layout !== null) {\n      template = pair.layout(owner);\n    }\n    let finalizer = _instrumentStart('render.getComponentDefinition', instrumentationPayload, name);\n    let definition = null;\n    if (pair.component === null) {\n      if (ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n        definition = {\n          state: templateOnlyComponent(undefined, name),\n          manager: TEMPLATE_ONLY_COMPONENT_MANAGER,\n          template\n        };\n      } else {\n        let factory = owner.factoryFor(privatize`component:-default`);\n        let manager = getInternalComponentManager(factory.class);\n        definition = {\n          state: factory,\n          manager,\n          template\n        };\n      }\n    } else {\n      let factory = pair.component;\n      assert(`missing component class ${name}`, factory.class !== undefined);\n      let ComponentClass = factory.class;\n      let manager = getInternalComponentManager(ComponentClass);\n      definition = {\n        state: isCurlyManager(manager) ? factory : ComponentClass,\n        manager,\n        template\n      };\n    }\n    finalizer();\n    this.componentDefinitionCache.set(key, definition);\n    assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', !(definition === null && name === 'text-area'));\n    return definition;\n  }\n}\n\n// We use the `InternalOwner` notion here because we actually need all of its\n// API for using with renderers (normally, it will be `EngineInstance`).\n// We use `getOwner` from our internal home for it rather than the narrower\n// public API for the same reason.\nconst TOP_LEVEL_NAME = '-top-level';\nclass OutletView {\n  static extend(injections) {\n    return class extends OutletView {\n      static create(options) {\n        if (options) {\n          return super.create(Object.assign({}, injections, options));\n        } else {\n          return super.create(injections);\n        }\n      }\n    };\n  }\n  static reopenClass(injections) {\n    Object.assign(this, injections);\n  }\n  static create(options) {\n    let {\n      environment: _environment,\n      application: namespace,\n      template: templateFactory\n    } = options;\n    let owner = getOwner(options);\n    assert('OutletView is unexpectedly missing an owner', owner);\n    let template = templateFactory(owner);\n    return new OutletView(_environment, owner, template, namespace);\n  }\n  constructor(_environment, owner, template, namespace) {\n    this._environment = _environment;\n    this.owner = owner;\n    this.template = template;\n    this.namespace = namespace;\n    let outletStateTag = createTag();\n    let outletState = {\n      outlets: {\n        main: undefined\n      },\n      render: {\n        owner: owner,\n        into: undefined,\n        outlet: 'main',\n        name: TOP_LEVEL_NAME,\n        controller: undefined,\n        model: undefined,\n        template\n      }\n    };\n    let ref = this.ref = createComputeRef(() => {\n      consumeTag(outletStateTag);\n      return outletState;\n    }, state => {\n      dirtyTag(outletStateTag);\n      outletState.outlets['main'] = state;\n    });\n    this.state = {\n      ref,\n      name: TOP_LEVEL_NAME,\n      template,\n      controller: undefined,\n      model: undefined\n    };\n  }\n  appendTo(selector) {\n    let target;\n    if (this._environment.hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n    } else {\n      target = selector;\n    }\n    let renderer = this.owner.lookup('renderer:-dom');\n    // SAFETY: It's not clear that this cast is safe.\n    // The types for appendOutletView may be incorrect or this is a potential bug.\n    schedule('render', renderer, 'appendOutletView', this, target);\n  }\n  rerender() {\n    /**/\n  }\n  setOutletState(state) {\n    updateRef(this.ref, state);\n  }\n  destroy() {\n    /**/\n  }\n}\n\nclass DynamicScope {\n  constructor(view, outletState) {\n    this.view = view;\n    this.outletState = outletState;\n  }\n  child() {\n    return new DynamicScope(this.view, this.outletState);\n  }\n  get(key) {\n    assert(`Using \\`-get-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    return this.outletState;\n  }\n  set(key, value) {\n    assert(`Using \\`-with-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    this.outletState = value;\n    return value;\n  }\n}\nconst NO_OP = () => {};\n// This wrapper logic prevents us from rerendering in case of a hard failure\n// during render. This prevents infinite revalidation type loops from occuring,\n// and ensures that errors are not swallowed by subsequent follow on failures.\nfunction errorLoopTransaction(fn) {\n  if (DEBUG) {\n    return () => {\n      let didError = true;\n      try {\n        fn();\n        didError = false;\n      } finally {\n        if (didError) {\n          // Noop the function so that we won't keep calling it and causing\n          // infinite looping failures;\n          fn = () => {\n            // eslint-disable-next-line no-console\n            console.warn('Attempted to rerender, but the Ember application has had an unrecoverable error occur during render. You should reload the application after fixing the cause of the error.');\n          };\n        }\n      }\n    };\n  } else {\n    return fn;\n  }\n}\nclass RootState {\n  constructor(root, runtime, context, owner, template, self, parentElement, dynamicScope, builder) {\n    this.root = root;\n    this.runtime = runtime;\n    assert(`You cannot render \\`${valueForRef(self)}\\` without a template.`, template !== undefined);\n    this.id = root instanceof OutletView ? guidFor(root) : getViewId(root);\n    this.result = undefined;\n    this.destroyed = false;\n    this.render = errorLoopTransaction(() => {\n      let layout = unwrapTemplate(template).asLayout();\n      let iterator = renderMain(runtime, context, owner, self, builder(runtime.env, {\n        element: parentElement,\n        nextSibling: null\n      }), layout, dynamicScope);\n      let result = this.result = iterator.sync();\n      // override .render function after initial render\n      this.render = errorLoopTransaction(() => result.rerender({\n        alwaysRevalidate: false\n      }));\n    });\n  }\n  isFor(possibleRoot) {\n    return this.root === possibleRoot;\n  }\n  destroy() {\n    let {\n      result,\n      runtime: {\n        env\n      }\n    } = this;\n    this.destroyed = true;\n    this.runtime = undefined;\n    this.root = null;\n    this.result = undefined;\n    this.render = undefined;\n    if (result !== undefined) {\n      /*\n       Handles these scenarios:\n              * When roots are removed during standard rendering process, a transaction exists already\n         `.begin()` / `.commit()` are not needed.\n       * When roots are being destroyed manually (`component.append(); component.destroy() case), no\n         transaction exists already.\n       * When roots are being destroyed during `Renderer#destroy`, no transaction exists\n              */\n      inTransaction(env, () => destroy(result));\n    }\n  }\n}\nconst renderers = [];\nfunction _resetRenderers() {\n  renderers.length = 0;\n}\nfunction register(renderer) {\n  assert('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);\n  renderers.push(renderer);\n}\nfunction deregister(renderer) {\n  let index = renderers.indexOf(renderer);\n  assert('Cannot deregister unknown unregistered renderer', index !== -1);\n  renderers.splice(index, 1);\n}\nfunction loopBegin() {\n  for (let renderer of renderers) {\n    renderer._scheduleRevalidate();\n  }\n}\nlet renderSettledDeferred = null;\n/*\n  Returns a promise which will resolve when rendering has settled. Settled in\n  this context is defined as when all of the tags in use are \"current\" (e.g.\n  `renderers.every(r => r._isValid())`). When this is checked at the _end_ of\n  the run loop, this essentially guarantees that all rendering is completed.\n\n  @method renderSettled\n  @returns {Promise<void>} a promise which fulfills when rendering has settled\n*/\nfunction renderSettled() {\n  if (renderSettledDeferred === null) {\n    renderSettledDeferred = RSVP.defer();\n    // if there is no current runloop, the promise created above will not have\n    // a chance to resolve (because its resolved in backburner's \"end\" event)\n    if (!_getCurrentRunLoop()) {\n      // ensure a runloop has been kicked off\n      _backburner.schedule('actions', null, NO_OP);\n    }\n  }\n  return renderSettledDeferred.promise;\n}\nfunction resolveRenderPromise() {\n  if (renderSettledDeferred !== null) {\n    let resolve = renderSettledDeferred.resolve;\n    renderSettledDeferred = null;\n    _backburner.join(null, resolve);\n  }\n}\nlet loops = 0;\nfunction loopEnd() {\n  for (let renderer of renderers) {\n    if (!renderer._isValid()) {\n      if (loops > ENV._RERENDER_LOOP_LIMIT) {\n        loops = 0;\n        // TODO: do something better\n        renderer.destroy();\n        throw new Error('infinite rendering invalidation detected');\n      }\n      loops++;\n      return _backburner.join(null, NO_OP);\n    }\n  }\n  loops = 0;\n  resolveRenderPromise();\n}\n_backburner.on('begin', loopBegin);\n_backburner.on('end', loopEnd);\nclass Renderer {\n  static create(props) {\n    let {\n      _viewRegistry\n    } = props;\n    let owner = getOwner(props);\n    assert('Renderer is unexpectedly missing an owner', owner);\n    let document = owner.lookup('service:-document');\n    let env = owner.lookup('-environment:main');\n    let rootTemplate = owner.lookup(privatize`template:-root`);\n    let builder = owner.lookup('service:-dom-builder');\n    return new this(owner, document, env, rootTemplate, _viewRegistry, builder);\n  }\n  constructor(owner, document, env, rootTemplate, viewRegistry, builder = clientBuilder) {\n    this._inRenderTransaction = false;\n    this._lastRevision = -1;\n    this._destroyed = false;\n    this._owner = owner;\n    this._rootTemplate = rootTemplate(owner);\n    this._viewRegistry = viewRegistry || owner.lookup('-view-registry:main');\n    this._roots = [];\n    this._removedRoots = [];\n    this._builder = builder;\n    this._isInteractive = env.isInteractive;\n    // resolver is exposed for tests\n    let resolver = this._runtimeResolver = new ResolverImpl();\n    let sharedArtifacts = artifacts();\n    this._context = programCompilationContext(sharedArtifacts, resolver, heap => new RuntimeOpImpl(heap));\n    let runtimeEnvironmentDelegate = new EmberEnvironmentDelegate(owner, env.isInteractive);\n    this._runtime = runtimeContext({\n      appendOperations: env.hasDOM ? new DOMTreeConstruction(document) : new NodeDOMTreeConstruction(document),\n      updateOperations: new DOMChanges(document)\n    }, runtimeEnvironmentDelegate, sharedArtifacts, resolver);\n  }\n  get debugRenderTree() {\n    let {\n      debugRenderTree\n    } = this._runtime.env;\n    assert('Attempted to access the DebugRenderTree, but it did not exist. Is the Ember Inspector open?', debugRenderTree);\n    return debugRenderTree;\n  }\n  // renderer HOOKS\n  appendOutletView(view, target) {\n    let definition = createRootOutlet(view);\n    this._appendDefinition(view, curry(CurriedType.Component, definition, view.owner, null, true), target);\n  }\n  appendTo(view, target) {\n    let definition = new RootComponentDefinition(view);\n    this._appendDefinition(view, curry(CurriedType.Component, definition, this._owner, null, true), target);\n  }\n  _appendDefinition(root, definition, target) {\n    let self = createConstRef(definition, 'this');\n    let dynamicScope = new DynamicScope(null, UNDEFINED_REFERENCE);\n    let rootState = new RootState(root, this._runtime, this._context, this._owner, this._rootTemplate, self, target, dynamicScope, this._builder);\n    this._renderRoot(rootState);\n  }\n  rerender() {\n    this._scheduleRevalidate();\n  }\n  register(view) {\n    let id = getViewId(view);\n    assert('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);\n    this._viewRegistry[id] = view;\n  }\n  unregister(view) {\n    delete this._viewRegistry[getViewId(view)];\n  }\n  remove(view) {\n    view._transitionTo('destroying');\n    this.cleanupRootFor(view);\n    if (this._isInteractive) {\n      view.trigger('didDestroyElement');\n    }\n  }\n  cleanupRootFor(view) {\n    // no need to cleanup roots if we have already been destroyed\n    if (this._destroyed) {\n      return;\n    }\n    let roots = this._roots;\n    // traverse in reverse so we can remove items\n    // without mucking up the index\n    let i = this._roots.length;\n    while (i--) {\n      let root = roots[i];\n      assert('has root', root);\n      if (root.isFor(view)) {\n        root.destroy();\n        roots.splice(i, 1);\n      }\n    }\n  }\n  destroy() {\n    if (this._destroyed) {\n      return;\n    }\n    this._destroyed = true;\n    this._clearAllRoots();\n  }\n  getElement(view) {\n    if (this._isInteractive) {\n      return getViewElement(view);\n    } else {\n      throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n    }\n  }\n  getBounds(view) {\n    let bounds = view[BOUNDS];\n    assert('object passed to getBounds must have the BOUNDS symbol as a property', bounds);\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n  createElement(tagName) {\n    return this._runtime.env.getAppendOperations().createElement(tagName);\n  }\n  _renderRoot(root) {\n    let {\n      _roots: roots\n    } = this;\n    roots.push(root);\n    if (roots.length === 1) {\n      register(this);\n    }\n    this._renderRootsTransaction();\n  }\n  _renderRoots() {\n    let {\n      _roots: roots,\n      _runtime: runtime,\n      _removedRoots: removedRoots\n    } = this;\n    let initialRootsLength;\n    do {\n      initialRootsLength = roots.length;\n      inTransaction(runtime.env, () => {\n        // ensure that for the first iteration of the loop\n        // each root is processed\n        for (let i = 0; i < roots.length; i++) {\n          let root = roots[i];\n          assert('has root', root);\n          if (root.destroyed) {\n            // add to the list of roots to be removed\n            // they will be removed from `this._roots` later\n            removedRoots.push(root);\n            // skip over roots that have been marked as destroyed\n            continue;\n          }\n          // when processing non-initial reflush loops,\n          // do not process more roots than needed\n          if (i >= initialRootsLength) {\n            continue;\n          }\n          root.render();\n        }\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      });\n    } while (roots.length > initialRootsLength);\n    // remove any roots that were destroyed during this transaction\n    while (removedRoots.length) {\n      let root = removedRoots.pop();\n      let rootIndex = roots.indexOf(root);\n      roots.splice(rootIndex, 1);\n    }\n    if (this._roots.length === 0) {\n      deregister(this);\n    }\n  }\n  _renderRootsTransaction() {\n    if (this._inRenderTransaction) {\n      // currently rendering roots, a new root was added and will\n      // be processed by the existing _renderRoots invocation\n      return;\n    }\n    // used to prevent calling _renderRoots again (see above)\n    // while we are actively rendering roots\n    this._inRenderTransaction = true;\n    let completedWithoutError = false;\n    try {\n      this._renderRoots();\n      completedWithoutError = true;\n    } finally {\n      if (!completedWithoutError) {\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      }\n      this._inRenderTransaction = false;\n    }\n  }\n  _clearAllRoots() {\n    let roots = this._roots;\n    for (let root of roots) {\n      root.destroy();\n    }\n    this._removedRoots.length = 0;\n    this._roots = [];\n    // if roots were present before destroying\n    // deregister this renderer instance\n    if (roots.length) {\n      deregister(this);\n    }\n  }\n  _scheduleRevalidate() {\n    _backburner.scheduleOnce('render', this, this._revalidate);\n  }\n  _isValid() {\n    return this._destroyed || this._roots.length === 0 || validateTag(CURRENT_TAG, this._lastRevision);\n  }\n  _revalidate() {\n    if (this._isValid()) {\n      return;\n    }\n    this._renderRootsTransaction();\n  }\n}\n\nlet TEMPLATES = {};\nfunction setTemplates(templates) {\n  TEMPLATES = templates;\n}\nfunction getTemplates() {\n  return TEMPLATES;\n}\nfunction getTemplate(name) {\n  if (Object.prototype.hasOwnProperty.call(TEMPLATES, name)) {\n    return TEMPLATES[name];\n  }\n}\nfunction hasTemplate(name) {\n  return Object.prototype.hasOwnProperty.call(TEMPLATES, name);\n}\nfunction setTemplate(name, template) {\n  return TEMPLATES[name] = template;\n}\n\nvar OutletTemplate = precompileTemplate(`{{component (outletHelper)}}`, {\n  moduleName: 'packages/@ember/-internals/glimmer/lib/templates/outlet.hbs',\n  strictMode: true,\n  scope() {\n    return {\n      outletHelper\n    };\n  }\n});\n\nfunction setupApplicationRegistry(registry) {\n  // because we are using injections we can't use instantiate false\n  // we need to use bind() to copy the function so factory for\n  // association won't leak\n  registry.register('service:-dom-builder', {\n    // Additionally, we *must* constrain this to require `props` on create, else\n    // we *know* it cannot have an owner.\n    create(props) {\n      let owner = getOwner(props);\n      assert('DomBuilderService is unexpectedly missing an owner', owner);\n      let env = owner.lookup('-environment:main');\n      switch (env._renderMode) {\n        case 'serialize':\n          return serializeBuilder.bind(null);\n        case 'rehydrate':\n          return rehydrationBuilder.bind(null);\n        default:\n          return clientBuilder.bind(null);\n      }\n    }\n  });\n  registry.register(privatize`template:-root`, RootTemplate);\n  registry.register('renderer:-dom', Renderer);\n}\nfunction setupEngineRegistry(registry) {\n  registry.optionsForType('template', {\n    instantiate: false\n  });\n  registry.register('view:-outlet', OutletView);\n  registry.register('template:-outlet', OutletTemplate);\n  registry.optionsForType('helper', {\n    instantiate: false\n  });\n  registry.register('component:input', Input);\n  registry.register('component:link-to', LinkTo);\n  registry.register('component:textarea', Textarea);\n  if (!ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n    registry.register(privatize`component:-default`, Component);\n  }\n}\n\n/**\n   Associate a class with a component manager (an object that is responsible for\n   coordinating the lifecycle events that occurs when invoking, rendering and\n   re-rendering a component).\n\n   @method setComponentManager\n   @param {Function} factory a function to create the owner for an object\n   @param {Object} obj the object to associate with the componetn manager\n   @return {Object} the same object passed in\n   @public\n  */\nfunction setComponentManager(manager, obj) {\n  return setComponentManager$1(manager, obj);\n}\nlet componentCapabilities = componentCapabilities$1;\nlet modifierCapabilities = modifierCapabilities$1;\n\nexport { Component, Helper, Input, LinkTo, OutletView, Renderer, RootTemplate, SafeString, Textarea, _resetRenderers, componentCapabilities, escapeExpression, getTemplate, getTemplates, hasTemplate, helper$1 as helper, htmlSafe, isHTMLSafe, modifierCapabilities, renderSettled, setComponentManager, setTemplate, setTemplates, setupApplicationRegistry, setupEngineRegistry, uniqueId$1 as uniqueId };\n","import { symbol, toString } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { isDestroyed } from '@glimmer/destroyable';\nimport { DEBUG } from '@glimmer/env';\nconst objectPrototype = Object.prototype;\nlet counters;\nif (DEBUG) {\n  counters = {\n    peekCalls: 0,\n    peekPrototypeWalks: 0,\n    setCalls: 0,\n    deleteCalls: 0,\n    metaCalls: 0,\n    metaInstantiated: 0,\n    matchingListenersCalls: 0,\n    observerEventsCalls: 0,\n    addToListenersCalls: 0,\n    removeFromListenersCalls: 0,\n    removeAllListenersCalls: 0,\n    listenersInherited: 0,\n    listenersFlattened: 0,\n    parentListenersUsed: 0,\n    flattenedListenersCalls: 0,\n    reopensAfterFlatten: 0,\n    readableLazyChainsCalls: 0,\n    writableLazyChainsCalls: 0\n  };\n}\n/**\n@module ember\n*/\nexport const UNDEFINED = symbol('undefined');\nvar ListenerKind;\n(function (ListenerKind) {\n  ListenerKind[ListenerKind[\"ADD\"] = 0] = \"ADD\";\n  ListenerKind[ListenerKind[\"ONCE\"] = 1] = \"ONCE\";\n  ListenerKind[ListenerKind[\"REMOVE\"] = 2] = \"REMOVE\";\n})(ListenerKind || (ListenerKind = {}));\nlet currentListenerVersion = 1;\nexport class Meta {\n  // DEBUG\n  /** @internal */\n  constructor(obj) {\n    /** @internal */\n    this._listenersVersion = 1;\n    /** @internal */\n    this._inheritedEnd = -1;\n    /** @internal */\n    this._flattenedVersion = 0;\n    if (DEBUG) {\n      counters.metaInstantiated++;\n    }\n    this._parent = undefined;\n    this._descriptors = undefined;\n    this._mixins = undefined;\n    this._lazyChains = undefined;\n    this._values = undefined;\n    this._revisions = undefined;\n    // initial value for all flags right now is false\n    // see FLAGS const for detailed list of flags used\n    this._isInit = false;\n    // used only internally\n    this.source = obj;\n    this.proto = obj.constructor === undefined ? undefined : obj.constructor.prototype;\n    this._listeners = undefined;\n  }\n  /** @internal */\n  get parent() {\n    let parent = this._parent;\n    if (parent === undefined) {\n      let proto = getPrototypeOf(this.source);\n      this._parent = parent = proto === null || proto === objectPrototype ? null : meta(proto);\n    }\n    return parent;\n  }\n  setInitializing() {\n    this._isInit = true;\n  }\n  /** @internal */\n  unsetInitializing() {\n    this._isInit = false;\n  }\n  /** @internal */\n  isInitializing() {\n    return this._isInit;\n  }\n  /** @internal */\n  isPrototypeMeta(obj) {\n    return this.proto === this.source && this.source === obj;\n  }\n  /** @internal */\n  _getOrCreateOwnMap(key) {\n    return this[key] || (this[key] = Object.create(null));\n  }\n  /** @internal */\n  _getOrCreateOwnSet(key) {\n    return this[key] || (this[key] = new Set());\n  }\n  /** @internal */\n  _findInheritedMap(key, subkey) {\n    let pointer = this;\n    while (pointer !== null) {\n      let map = pointer[key];\n      if (map !== undefined) {\n        let value = map.get(subkey);\n        if (value !== undefined) {\n          return value;\n        }\n      }\n      pointer = pointer.parent;\n    }\n  }\n  /** @internal */\n  _hasInInheritedSet(key, value) {\n    let pointer = this;\n    while (pointer !== null) {\n      let set = pointer[key];\n      if (set !== undefined && set.has(value)) {\n        return true;\n      }\n      pointer = pointer.parent;\n    }\n    return false;\n  }\n  /** @internal */\n  valueFor(key) {\n    let values = this._values;\n    return values !== undefined ? values[key] : undefined;\n  }\n  /** @internal */\n  setValueFor(key, value) {\n    let values = this._getOrCreateOwnMap('_values');\n    values[key] = value;\n  }\n  /** @internal */\n  revisionFor(key) {\n    let revisions = this._revisions;\n    return revisions !== undefined ? revisions[key] : undefined;\n  }\n  /** @internal */\n  setRevisionFor(key, revision) {\n    let revisions = this._getOrCreateOwnMap('_revisions');\n    revisions[key] = revision;\n  }\n  /** @internal */\n  writableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.writableLazyChainsCalls++;\n    }\n    let lazyChains = this._getOrCreateOwnMap('_lazyChains');\n    let chains = lazyChains[key];\n    if (chains === undefined) {\n      chains = lazyChains[key] = [];\n    }\n    return chains;\n  }\n  /** @internal */\n  readableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.readableLazyChainsCalls++;\n    }\n    let lazyChains = this._lazyChains;\n    if (lazyChains !== undefined) {\n      return lazyChains[key];\n    }\n    return undefined;\n  }\n  /** @internal */\n  addMixin(mixin) {\n    assert(isDestroyed(this.source) ? `Cannot add mixins of \\`${toString(mixin)}\\` on \\`${toString(this.source)}\\` call addMixin after it has been destroyed.` : '', !isDestroyed(this.source));\n    let set = this._getOrCreateOwnSet('_mixins');\n    set.add(mixin);\n  }\n  /** @internal */\n  hasMixin(mixin) {\n    return this._hasInInheritedSet('_mixins', mixin);\n  }\n  /** @internal */\n  forEachMixins(fn) {\n    let pointer = this;\n    let seen;\n    while (pointer !== null) {\n      let set = pointer._mixins;\n      if (set !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        // TODO cleanup typing here\n        set.forEach(mixin => {\n          if (!seen.has(mixin)) {\n            seen.add(mixin);\n            fn(mixin);\n          }\n        });\n      }\n      pointer = pointer.parent;\n    }\n  }\n  /** @internal */\n  writeDescriptors(subkey, value) {\n    assert(isDestroyed(this.source) ? `Cannot update descriptors for \\`${subkey}\\` on \\`${toString(this.source)}\\` after it has been destroyed.` : '', !isDestroyed(this.source));\n    let map = this._descriptors || (this._descriptors = new Map());\n    map.set(subkey, value);\n  }\n  /** @internal */\n  peekDescriptors(subkey) {\n    let possibleDesc = this._findInheritedMap('_descriptors', subkey);\n    return possibleDesc === UNDEFINED ? undefined : possibleDesc;\n  }\n  /** @internal */\n  removeDescriptors(subkey) {\n    this.writeDescriptors(subkey, UNDEFINED);\n  }\n  /** @internal */\n  forEachDescriptors(fn) {\n    let pointer = this;\n    let seen;\n    while (pointer !== null) {\n      let map = pointer._descriptors;\n      if (map !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        map.forEach((value, key) => {\n          if (!seen.has(key)) {\n            seen.add(key);\n            if (value !== UNDEFINED) {\n              fn(key, value);\n            }\n          }\n        });\n      }\n      pointer = pointer.parent;\n    }\n  }\n  /** @internal */\n  addToListeners(eventName, target, method, once, sync) {\n    if (DEBUG) {\n      counters.addToListenersCalls++;\n    }\n    this.pushListener(eventName, target, method, once ? ListenerKind.ONCE : ListenerKind.ADD, sync);\n  }\n  /** @internal */\n  removeFromListeners(eventName, target, method) {\n    if (DEBUG) {\n      counters.removeFromListenersCalls++;\n    }\n    this.pushListener(eventName, target, method, ListenerKind.REMOVE);\n  }\n  pushListener(event, target, method, kind, sync = false) {\n    let listeners = this.writableListeners();\n    let i = indexOfListener(listeners, event, target, method);\n    // remove if found listener was inherited\n    if (i !== -1 && i < this._inheritedEnd) {\n      listeners.splice(i, 1);\n      this._inheritedEnd--;\n      i = -1;\n    }\n    // if not found, push. Note that we must always push if a listener is not\n    // found, even in the case of a function listener remove, because we may be\n    // attempting to add or remove listeners _before_ flattening has occurred.\n    if (i === -1) {\n      assert('You cannot add function listeners to prototypes. Convert the listener to a string listener, or add it to the instance instead.', !(this.isPrototypeMeta(this.source) && typeof method === 'function'));\n      assert('You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.', !(!this.isPrototypeMeta(this.source) && typeof method === 'function' && kind === ListenerKind.REMOVE));\n      listeners.push({\n        event,\n        target,\n        method,\n        kind,\n        sync\n      });\n    } else {\n      let listener = listeners[i];\n      assert('has listener', listener);\n      // If the listener is our own listener and we are trying to remove it, we\n      // want to splice it out entirely so we don't hold onto a reference.\n      if (kind === ListenerKind.REMOVE && listener.kind !== ListenerKind.REMOVE) {\n        listeners.splice(i, 1);\n      } else {\n        assert(`You attempted to add an observer for the same method on '${event.split(':')[0]}' twice to ${target} as both sync and async. Observers must be either sync or async, they cannot be both. This is likely a mistake, you should either remove the code that added the observer a second time, or update it to always be sync or async. The method was ${String(method)}.`, !(listener.kind === ListenerKind.ADD && kind === ListenerKind.ADD && listener.sync !== sync));\n        // update own listener\n        listener.kind = kind;\n        listener.sync = sync;\n      }\n    }\n  }\n  writableListeners() {\n    // Check if we need to invalidate and reflatten. We need to do this if we\n    // have already flattened (flattened version is the current version) and\n    // we are either writing to a prototype meta OR we have never inherited, and\n    // may have cached the parent's listeners.\n    if (this._flattenedVersion === currentListenerVersion && (this.source === this.proto || this._inheritedEnd === -1)) {\n      if (DEBUG) {\n        counters.reopensAfterFlatten++;\n      }\n      currentListenerVersion++;\n    }\n    // Inherited end has not been set, then we have never created our own\n    // listeners, but may have cached the parent's\n    if (this._inheritedEnd === -1) {\n      this._inheritedEnd = 0;\n      this._listeners = [];\n    }\n    return this._listeners;\n  }\n  /**\n    Flattening is based on a global revision counter. If the revision has\n    bumped it means that somewhere in a class inheritance chain something has\n    changed, so we need to reflatten everything. This can only happen if:\n       1. A meta has been flattened (listener has been called)\n    2. The meta is a prototype meta with children who have inherited its\n       listeners\n    3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n       This is a very rare occurrence, so while the counter is global it shouldn't\n    be updated very often in practice.\n  */\n  flattenedListeners() {\n    if (DEBUG) {\n      counters.flattenedListenersCalls++;\n    }\n    if (this._flattenedVersion < currentListenerVersion) {\n      if (DEBUG) {\n        counters.listenersFlattened++;\n      }\n      let parent = this.parent;\n      if (parent !== null) {\n        // compute\n        let parentListeners = parent.flattenedListeners();\n        if (parentListeners !== undefined) {\n          if (this._listeners === undefined) {\n            // If this instance doesn't have any of its own listeners (writableListeners\n            // has never been called) then we don't need to do any flattening, return\n            // the parent's listeners instead.\n            if (DEBUG) {\n              counters.parentListenersUsed++;\n            }\n            this._listeners = parentListeners;\n          } else {\n            let listeners = this._listeners;\n            if (this._inheritedEnd > 0) {\n              listeners.splice(0, this._inheritedEnd);\n              this._inheritedEnd = 0;\n            }\n            for (let listener of parentListeners) {\n              let index = indexOfListener(listeners, listener.event, listener.target, listener.method);\n              if (index === -1) {\n                if (DEBUG) {\n                  counters.listenersInherited++;\n                }\n                listeners.unshift(listener);\n                this._inheritedEnd++;\n              }\n            }\n          }\n        }\n      }\n      this._flattenedVersion = currentListenerVersion;\n    }\n    return this._listeners;\n  }\n  /** @internal */\n  matchingListeners(eventName) {\n    let listeners = this.flattenedListeners();\n    let result;\n    if (DEBUG) {\n      counters.matchingListenersCalls++;\n    }\n    if (listeners !== undefined) {\n      for (let listener of listeners) {\n        // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n        if (listener.event === eventName && (listener.kind === ListenerKind.ADD || listener.kind === ListenerKind.ONCE)) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n          result.push(listener.target, listener.method, listener.kind === ListenerKind.ONCE);\n        }\n      }\n    }\n    return result;\n  }\n  /** @internal */\n  observerEvents() {\n    let listeners = this.flattenedListeners();\n    let result;\n    if (DEBUG) {\n      counters.observerEventsCalls++;\n    }\n    if (listeners !== undefined) {\n      for (let listener of listeners) {\n        // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n        if ((listener.kind === ListenerKind.ADD || listener.kind === ListenerKind.ONCE) && listener.event.indexOf(':change') !== -1) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n          result.push(listener);\n        }\n      }\n    }\n    return result;\n  }\n}\nconst getPrototypeOf = Object.getPrototypeOf;\nconst metaStore = new WeakMap();\nexport function setMeta(obj, meta) {\n  assert('Cannot call `setMeta` on null', obj !== null);\n  assert('Cannot call `setMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`setMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  if (DEBUG) {\n    counters.setCalls++;\n  }\n  metaStore.set(obj, meta);\n}\nexport function peekMeta(obj) {\n  assert('Cannot call `peekMeta` on null', obj !== null);\n  assert('Cannot call `peekMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`peekMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  if (DEBUG) {\n    counters.peekCalls++;\n  }\n  let meta = metaStore.get(obj);\n  if (meta !== undefined) {\n    return meta;\n  }\n  let pointer = getPrototypeOf(obj);\n  while (pointer !== null) {\n    if (DEBUG) {\n      counters.peekPrototypeWalks++;\n    }\n    meta = metaStore.get(pointer);\n    if (meta !== undefined) {\n      if (meta.proto !== pointer) {\n        // The meta was a prototype meta which was not marked as initializing.\n        // This can happen when a prototype chain was created manually via\n        // Object.create() and the source object does not have a constructor.\n        meta.proto = pointer;\n      }\n      return meta;\n    }\n    pointer = getPrototypeOf(pointer);\n  }\n  return null;\n}\n/**\n  Retrieves the meta hash for an object. If `writable` is true ensures the\n  hash is writable for this object as well.\n\n  The meta object contains information about computed property descriptors as\n  well as any watched properties and other information. You generally will\n  not access this information directly but instead work with higher level\n  methods that manipulate this hash indirectly.\n\n  @method meta\n  @for Ember\n  @private\n\n  @param {Object} obj The object to retrieve meta for\n  @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n    the meta hash, allowing the method to avoid making an unnecessary copy.\n  @return {Object} the meta hash for an object\n*/\nexport const meta = function meta(obj) {\n  assert('Cannot call `meta` on null', obj !== null);\n  assert('Cannot call `meta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`meta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  if (DEBUG) {\n    counters.metaCalls++;\n  }\n  let maybeMeta = peekMeta(obj);\n  // remove this code, in-favor of explicit parent\n  if (maybeMeta !== null && maybeMeta.source === obj) {\n    return maybeMeta;\n  }\n  let newMeta = new Meta(obj);\n  setMeta(obj, newMeta);\n  return newMeta;\n};\nif (DEBUG) {\n  meta._counters = counters;\n}\nexport { counters };\nfunction indexOfListener(listeners, event, target, method) {\n  for (let i = listeners.length - 1; i >= 0; i--) {\n    let listener = listeners[i];\n    assert('has listener', listener);\n    if (listener.event === event && listener.target === target && listener.method === method) {\n      return i;\n    }\n  }\n  return -1;\n}","import { meta, peekMeta } from '@ember/-internals/meta';\nimport { setListeners, symbol, setupMandatorySetter, isObject, toString, setWithMandatorySetter, Cache, setProxy, lookupDescriptor, getName, setName } from '@ember/-internals/utils';\nimport { assert, inspect, deprecate, warn, debug } from '@ember/debug';\nimport { registerDestructor, isDestroyed } from '@glimmer/destroyable';\nimport { DEBUG } from '@glimmer/env';\nimport { tagMetaFor, valueForTag, CURRENT_TAG, validateTag, tagFor, CONSTANT_TAG, dirtyTagFor, combine, createUpdatableTag, updateTag, untrack, ALLOW_CYCLES, consumeTag, track, isTracking, trackedData, createCache, getValue } from '@glimmer/validator';\nexport { createCache, getValue, isConst } from '@glimmer/validator';\nimport { ENV, context } from '@ember/-internals/environment';\nimport { schedule } from '@ember/runloop';\nimport { getCustomTagFor } from '@glimmer/manager';\nimport { isEmberArray } from '@ember/array/-internals';\nimport VERSION from 'ember/version';\nimport { getOwner } from '@ember/-internals/owner';\n\n/*\n  The event system uses a series of nested hashes to store listeners on an\n  object. When a listener is registered, or when an event arrives, these\n  hashes are consulted to determine which target and action pair to invoke.\n\n  The hashes are stored in the object's meta hash, and look like this:\n\n      // Object's meta hash\n      {\n        listeners: {       // variable name: `listenerSet`\n          \"foo:change\": [ // variable name: `actions`\n            target, method, once\n          ]\n        }\n      }\n\n*/\n/**\n  Add an event listener\n\n  @method addListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @param {Boolean} once A flag whether a function should only be called once\n  @public\n*/\nfunction addListener(obj, eventName, target, method, once, sync = true) {\n  assert('You must pass at least an object and event name to addListener', Boolean(obj) && Boolean(eventName));\n  if (!method && 'function' === typeof target) {\n    method = target;\n    target = null;\n  }\n  meta(obj).addToListeners(eventName, target, method, once === true, sync);\n}\n/**\n  Remove an event listener\n\n  Arguments should match those passed to `addListener`.\n\n  @method removeListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @public\n*/\nfunction removeListener(obj, eventName, targetOrFunction, functionOrName) {\n  assert('You must pass at least an object, event name, and method or target and method/method name to removeListener', Boolean(obj) && Boolean(eventName) && (typeof targetOrFunction === 'function' || typeof targetOrFunction === 'object' && Boolean(functionOrName)));\n  let target, method;\n  if (typeof targetOrFunction === 'object') {\n    target = targetOrFunction;\n    method = functionOrName;\n  } else {\n    target = null;\n    method = targetOrFunction;\n  }\n  let m = meta(obj);\n  m.removeFromListeners(eventName, target, method);\n}\n/**\n  Send an event. The execution of suspended listeners\n  is skipped, and once listeners are removed. A listener without\n  a target is executed on the passed object. If an array of actions\n  is not passed, the actions stored on the passed object are invoked.\n\n  @method sendEvent\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Array} params Optional parameters for each listener.\n  @return {Boolean} if the event was delivered to one or more actions\n  @public\n*/\nfunction sendEvent(obj, eventName, params, actions, _meta) {\n  if (actions === undefined) {\n    let meta = _meta === undefined ? peekMeta(obj) : _meta;\n    actions = meta !== null ? meta.matchingListeners(eventName) : undefined;\n  }\n  if (actions === undefined || actions.length === 0) {\n    return false;\n  }\n  for (let i = actions.length - 3; i >= 0; i -= 3) {\n    // looping in reverse for once listeners\n    let target = actions[i];\n    let method = actions[i + 1];\n    let once = actions[i + 2];\n    if (!method) {\n      continue;\n    }\n    if (once) {\n      removeListener(obj, eventName, target, method);\n    }\n    if (!target) {\n      target = obj;\n    }\n    let type = typeof method;\n    if (type === 'string' || type === 'symbol') {\n      method = target[method];\n    }\n    method.apply(target, params);\n  }\n  return true;\n}\n/**\n  @public\n  @method hasListeners\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @return {Boolean} if `obj` has listeners for event `eventName`\n*/\nfunction hasListeners(obj, eventName) {\n  let meta = peekMeta(obj);\n  if (meta === null) {\n    return false;\n  }\n  let matched = meta.matchingListeners(eventName);\n  return matched !== undefined && matched.length > 0;\n}\n/**\n  Define a property as a function that should be executed when\n  a specified event or events are triggered.\n\n  ``` javascript\n  import EmberObject from '@ember/object';\n  import { on } from '@ember/object/evented';\n  import { sendEvent } from '@ember/object/events';\n\n  let Job = EmberObject.extend({\n    logCompleted: on('completed', function() {\n      console.log('Job completed!');\n    })\n  });\n\n  let job = Job.create();\n\n  sendEvent(job, 'completed'); // Logs 'Job completed!'\n ```\n\n  @method on\n  @static\n  @for @ember/object/evented\n  @param {String} eventNames*\n  @param {Function} func\n  @return {Function} the listener function, passed as last argument to on(...)\n  @public\n*/\nfunction on(...args) {\n  let func = args.pop();\n  let events = args;\n  assert('on expects function as last argument', typeof func === 'function');\n  assert('on called without valid event names', events.length > 0 && events.every(p => typeof p === 'string' && p.length > 0));\n  setListeners(func, events);\n  return func;\n}\n\nconst AFTER_OBSERVERS = ':change';\nfunction changeEvent(keyName) {\n  return keyName + AFTER_OBSERVERS;\n}\n\nconst SYNC_DEFAULT = !ENV._DEFAULT_ASYNC_OBSERVERS;\nconst SYNC_OBSERVERS = new Map();\nconst ASYNC_OBSERVERS = new Map();\n/**\n@module @ember/object\n*/\n/**\n  @method addObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\nfunction addObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  addListener(obj, eventName, target, method, false, sync);\n  let meta = peekMeta(obj);\n  if (meta === null || !(meta.isPrototypeMeta(obj) || meta.isInitializing())) {\n    activateObserver(obj, eventName, sync);\n  }\n}\n/**\n  @method removeObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\nfunction removeObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  let meta = peekMeta(obj);\n  if (meta === null || !(meta.isPrototypeMeta(obj) || meta.isInitializing())) {\n    deactivateObserver(obj, eventName, sync);\n  }\n  removeListener(obj, eventName, target, method);\n}\nfunction getOrCreateActiveObserversFor(target, sync) {\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  if (!observerMap.has(target)) {\n    observerMap.set(target, new Map());\n    registerDestructor(target, () => destroyObservers(target), true);\n  }\n  return observerMap.get(target);\n}\nfunction activateObserver(target, eventName, sync = false) {\n  let activeObservers = getOrCreateActiveObserversFor(target, sync);\n  if (activeObservers.has(eventName)) {\n    activeObservers.get(eventName).count++;\n  } else {\n    let path = eventName.substring(0, eventName.lastIndexOf(':'));\n    let tag = getChainTagsForKey(target, path, tagMetaFor(target), peekMeta(target));\n    activeObservers.set(eventName, {\n      count: 1,\n      path,\n      tag,\n      lastRevision: valueForTag(tag),\n      suspended: false\n    });\n  }\n}\nlet DEACTIVATE_SUSPENDED = false;\nlet SCHEDULED_DEACTIVATE = [];\nfunction deactivateObserver(target, eventName, sync = false) {\n  if (DEACTIVATE_SUSPENDED === true) {\n    SCHEDULED_DEACTIVATE.push([target, eventName, sync]);\n    return;\n  }\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  let activeObservers = observerMap.get(target);\n  if (activeObservers !== undefined) {\n    let observer = activeObservers.get(eventName);\n    observer.count--;\n    if (observer.count === 0) {\n      activeObservers.delete(eventName);\n      if (activeObservers.size === 0) {\n        observerMap.delete(target);\n      }\n    }\n  }\n}\nfunction suspendedObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = true;\n}\nfunction resumeObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = false;\n  for (let [target, eventName, sync] of SCHEDULED_DEACTIVATE) {\n    deactivateObserver(target, eventName, sync);\n  }\n  SCHEDULED_DEACTIVATE = [];\n}\n/**\n * Primarily used for cases where we are redefining a class, e.g. mixins/reopen\n * being applied later. Revalidates all the observers, resetting their tags.\n *\n * @private\n * @param target\n */\nfunction revalidateObservers(target) {\n  if (ASYNC_OBSERVERS.has(target)) {\n    ASYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n  if (SYNC_OBSERVERS.has(target)) {\n    SYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n}\nlet lastKnownRevision = 0;\nfunction flushAsyncObservers(shouldSchedule = true) {\n  let currentRevision = valueForTag(CURRENT_TAG);\n  if (lastKnownRevision === currentRevision) {\n    return;\n  }\n  lastKnownRevision = currentRevision;\n  ASYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!validateTag(observer.tag, observer.lastRevision)) {\n        let sendObserver = () => {\n          try {\n            sendEvent(target, eventName, [target, observer.path], undefined, meta);\n          } finally {\n            observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n            observer.lastRevision = valueForTag(observer.tag);\n          }\n        };\n        if (shouldSchedule) {\n          schedule('actions', sendObserver);\n        } else {\n          sendObserver();\n        }\n      }\n    });\n  });\n}\nfunction flushSyncObservers() {\n  // When flushing synchronous observers, we know that something has changed (we\n  // only do this during a notifyPropertyChange), so there's no reason to check\n  // a global revision.\n  SYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!observer.suspended && !validateTag(observer.tag, observer.lastRevision)) {\n        try {\n          observer.suspended = true;\n          sendEvent(target, eventName, [target, observer.path], undefined, meta);\n        } finally {\n          observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n          observer.lastRevision = valueForTag(observer.tag);\n          observer.suspended = false;\n        }\n      }\n    });\n  });\n}\nfunction setObserverSuspended(target, property, suspended) {\n  let activeObservers = SYNC_OBSERVERS.get(target);\n  if (!activeObservers) {\n    return;\n  }\n  let observer = activeObservers.get(changeEvent(property));\n  if (observer) {\n    observer.suspended = suspended;\n  }\n}\nfunction destroyObservers(target) {\n  if (SYNC_OBSERVERS.size > 0) SYNC_OBSERVERS.delete(target);\n  if (ASYNC_OBSERVERS.size > 0) ASYNC_OBSERVERS.delete(target);\n}\n\n// This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.\nconst SELF_TAG = symbol('SELF_TAG');\nfunction tagForProperty(obj, propertyKey, addMandatorySetter = false, meta) {\n  let customTagFor = getCustomTagFor(obj);\n  if (customTagFor !== undefined) {\n    return customTagFor(obj, propertyKey, addMandatorySetter);\n  }\n  let tag = tagFor(obj, propertyKey, meta);\n  if (DEBUG && addMandatorySetter) {\n    setupMandatorySetter(tag, obj, propertyKey);\n  }\n  return tag;\n}\nfunction tagForObject(obj) {\n  if (isObject(obj)) {\n    if (DEBUG) {\n      assert(isDestroyed(obj) ? `Cannot create a new tag for \\`${toString(obj)}\\` after it has been destroyed.` : '', !isDestroyed(obj));\n    }\n    return tagFor(obj, SELF_TAG);\n  }\n  return CONSTANT_TAG;\n}\nfunction markObjectAsDirty(obj, propertyKey) {\n  dirtyTagFor(obj, propertyKey);\n  dirtyTagFor(obj, SELF_TAG);\n}\n\n/**\n @module ember\n @private\n */\nconst PROPERTY_DID_CHANGE = Symbol('PROPERTY_DID_CHANGE');\nfunction hasPropertyDidChange(obj) {\n  return obj != null && typeof obj === 'object' && typeof obj[PROPERTY_DID_CHANGE] === 'function';\n}\nlet deferred = 0;\n/**\n  This function is called just after an object property has changed.\n  It will notify any observers and clear caches among other things.\n\n  Normally you will not need to call this method directly but if for some\n  reason you can't directly watch a property you can invoke this method\n  manually.\n\n  @method notifyPropertyChange\n  @for @ember/object\n  @param {Object} obj The object with the property that will change\n  @param {String} keyName The property key (or path) that will change.\n  @param {Meta} [_meta] The objects meta.\n  @param {unknown} [value] The new value to set for the property\n  @return {void}\n  @since 3.1.0\n  @public\n*/\nfunction notifyPropertyChange(obj, keyName, _meta, value) {\n  let meta = _meta === undefined ? peekMeta(obj) : _meta;\n  if (meta !== null && (meta.isInitializing() || meta.isPrototypeMeta(obj))) {\n    return;\n  }\n  markObjectAsDirty(obj, keyName);\n  if (deferred <= 0) {\n    flushSyncObservers();\n  }\n  if (PROPERTY_DID_CHANGE in obj) {\n    // It's redundant to do this here, but we don't want to check above so we can avoid an extra function call in prod.\n    assert('property did change hook is invalid', hasPropertyDidChange(obj));\n    // we need to check the arguments length here; there's a check in Component's `PROPERTY_DID_CHANGE`\n    // that checks its arguments length, so we have to explicitly not call this with `value`\n    // if it is not passed to `notifyPropertyChange`\n    if (arguments.length === 4) {\n      obj[PROPERTY_DID_CHANGE](keyName, value);\n    } else {\n      obj[PROPERTY_DID_CHANGE](keyName);\n    }\n  }\n}\n/**\n  @method beginPropertyChanges\n  @chainable\n  @private\n*/\nfunction beginPropertyChanges() {\n  deferred++;\n  suspendedObserverDeactivation();\n}\n/**\n  @method endPropertyChanges\n  @private\n*/\nfunction endPropertyChanges() {\n  deferred--;\n  if (deferred <= 0) {\n    flushSyncObservers();\n    resumeObserverDeactivation();\n  }\n}\n/**\n  Make a series of property changes together in an\n  exception-safe way.\n\n  ```javascript\n  Ember.changeProperties(function() {\n    obj1.set('foo', mayBlowUpWhenSet);\n    obj2.set('bar', baz);\n  });\n  ```\n\n  @method changeProperties\n  @param {Function} callback\n  @private\n*/\nfunction changeProperties(callback) {\n  beginPropertyChanges();\n  try {\n    callback();\n  } finally {\n    endPropertyChanges();\n  }\n}\n\nfunction arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n  sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n  return array;\n}\nfunction arrayContentDidChange(array, startIdx, removeAmt, addAmt, notify = true) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n  let meta = peekMeta(array);\n  if (notify) {\n    if (addAmt < 0 || removeAmt < 0 || addAmt - removeAmt !== 0) {\n      notifyPropertyChange(array, 'length', meta);\n    }\n    notifyPropertyChange(array, '[]', meta);\n  }\n  sendEvent(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n  if (meta !== null) {\n    let length = array.length;\n    let addedAmount = addAmt === -1 ? 0 : addAmt;\n    let removedAmount = removeAmt === -1 ? 0 : removeAmt;\n    let delta = addedAmount - removedAmount;\n    let previousLength = length - delta;\n    let normalStartIdx = startIdx < 0 ? previousLength + startIdx : startIdx;\n    if (meta.revisionFor('firstObject') !== undefined && normalStartIdx === 0) {\n      notifyPropertyChange(array, 'firstObject', meta);\n    }\n    if (meta.revisionFor('lastObject') !== undefined) {\n      let previousLastIndex = previousLength - 1;\n      let lastAffectedIndex = normalStartIdx + removedAmount;\n      if (previousLastIndex < lastAffectedIndex) {\n        notifyPropertyChange(array, 'lastObject', meta);\n      }\n    }\n  }\n  return array;\n}\n\nconst EMPTY_ARRAY = Object.freeze([]);\nfunction objectAt(array, index) {\n  if (Array.isArray(array)) {\n    return array[index];\n  } else {\n    return array.objectAt(index);\n  }\n}\n// Ideally, we'd use MutableArray.detect but for unknown reasons this causes\n// the node tests to fail strangely.\nfunction isMutableArray(obj) {\n  return obj != null && typeof obj.replace === 'function';\n}\nfunction replace(array, start, deleteCount, items = EMPTY_ARRAY) {\n  if (isMutableArray(array)) {\n    array.replace(start, deleteCount, items);\n  } else {\n    assert('Can only replace content of a native array or MutableArray', Array.isArray(array));\n    replaceInNativeArray(array, start, deleteCount, items);\n  }\n}\nconst CHUNK_SIZE = 60000;\n// To avoid overflowing the stack, we splice up to CHUNK_SIZE items at a time.\n// See https://code.google.com/p/chromium/issues/detail?id=56588 for more details.\nfunction replaceInNativeArray(array, start, deleteCount, items) {\n  arrayContentWillChange(array, start, deleteCount, items.length);\n  if (items.length <= CHUNK_SIZE) {\n    array.splice(start, deleteCount, ...items);\n  } else {\n    array.splice(start, deleteCount);\n    for (let i = 0; i < items.length; i += CHUNK_SIZE) {\n      let chunk = items.slice(i, i + CHUNK_SIZE);\n      array.splice(start + i, 0, ...chunk);\n    }\n  }\n  arrayContentDidChange(array, start, deleteCount, items.length);\n}\nfunction arrayObserversHelper(obj, target, opts, operation) {\n  let {\n    willChange,\n    didChange\n  } = opts;\n  operation(obj, '@array:before', target, willChange);\n  operation(obj, '@array:change', target, didChange);\n  /*\n   * Array proxies have a `_revalidate` method which must be called to set\n   * up their internal array observation systems.\n   */\n  obj._revalidate?.();\n  return obj;\n}\nfunction addArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, addListener);\n}\nfunction removeArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, removeListener);\n}\n\nconst CHAIN_PASS_THROUGH = new WeakSet();\nfunction finishLazyChains(meta, key, value) {\n  let lazyTags = meta.readableLazyChainsFor(key);\n  if (lazyTags === undefined) {\n    return;\n  }\n  if (isObject(value)) {\n    for (let [tag, deps] of lazyTags) {\n      updateTag(tag, getChainTagsForKey(value, deps, tagMetaFor(value), peekMeta(value)));\n    }\n  }\n  lazyTags.length = 0;\n}\nfunction getChainTagsForKeys(obj, keys, tagMeta, meta) {\n  let tags = [];\n  for (let key of keys) {\n    getChainTags(tags, obj, key, tagMeta, meta);\n  }\n  return combine(tags);\n}\nfunction getChainTagsForKey(obj, key, tagMeta, meta) {\n  return combine(getChainTags([], obj, key, tagMeta, meta));\n}\nfunction getChainTags(chainTags, obj, path, tagMeta, meta$1) {\n  let current = obj;\n  let currentTagMeta = tagMeta;\n  let currentMeta = meta$1;\n  let pathLength = path.length;\n  let segmentEnd = -1;\n  // prevent closures\n  let segment, descriptor;\n  // eslint-disable-next-line no-constant-condition\n  while (true) {\n    let lastSegmentEnd = segmentEnd + 1;\n    segmentEnd = path.indexOf('.', lastSegmentEnd);\n    if (segmentEnd === -1) {\n      segmentEnd = pathLength;\n    }\n    segment = path.slice(lastSegmentEnd, segmentEnd);\n    // If the segment is an @each, we can process it and then break\n    if (segment === '@each' && segmentEnd !== pathLength) {\n      lastSegmentEnd = segmentEnd + 1;\n      segmentEnd = path.indexOf('.', lastSegmentEnd);\n      let arrLength = current.length;\n      if (typeof arrLength !== 'number' ||\n      // TODO: should the second test be `isEmberArray` instead?\n      !(Array.isArray(current) || 'objectAt' in current)) {\n        // If the current object isn't an array, there's nothing else to do,\n        // we don't watch individual properties. Break out of the loop.\n        break;\n      } else if (arrLength === 0) {\n        // Fast path for empty arrays\n        chainTags.push(tagForProperty(current, '[]'));\n        break;\n      }\n      if (segmentEnd === -1) {\n        segment = path.slice(lastSegmentEnd);\n      } else {\n        // Deprecated, remove once we turn the deprecation into an assertion\n        segment = path.slice(lastSegmentEnd, segmentEnd);\n      }\n      // Push the tags for each item's property\n      for (let i = 0; i < arrLength; i++) {\n        let item = objectAt(current, i);\n        if (item) {\n          assert(`When using @each to observe the array \\`${current.toString()}\\`, the items in the array must be objects`, typeof item === 'object');\n          chainTags.push(tagForProperty(item, segment, true));\n          currentMeta = peekMeta(item);\n          descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n          // If the key is an alias, we need to bootstrap it\n          if (descriptor !== undefined && typeof descriptor.altKey === 'string') {\n            item[segment];\n          }\n        }\n      }\n      // Push the tag for the array length itself\n      chainTags.push(tagForProperty(current, '[]', true, currentTagMeta));\n      break;\n    }\n    let propertyTag = tagForProperty(current, segment, true, currentTagMeta);\n    descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n    chainTags.push(propertyTag);\n    // If we're at the end of the path, processing the last segment, and it's\n    // not an alias, we should _not_ get the last value, since we already have\n    // its tag. There's no reason to access it and do more work.\n    if (segmentEnd === pathLength) {\n      // If the key was an alias, we should always get the next value in order to\n      // bootstrap the alias. This is because aliases, unlike other CPs, should\n      // always be in sync with the aliased value.\n      if (CHAIN_PASS_THROUGH.has(descriptor)) {\n        current[segment];\n      }\n      break;\n    }\n    if (descriptor === undefined) {\n      // If the descriptor is undefined, then its a normal property, so we should\n      // lookup the value to chain off of like normal.\n      if (!(segment in current) && typeof current.unknownProperty === 'function') {\n        current = current.unknownProperty(segment);\n      } else {\n        current = current[segment];\n      }\n    } else if (CHAIN_PASS_THROUGH.has(descriptor)) {\n      current = current[segment];\n    } else {\n      // If the descriptor is defined, then its a normal CP (not an alias, which\n      // would have been handled earlier). We get the last revision to check if\n      // the CP is still valid, and if so we use the cached value. If not, then\n      // we create a lazy chain lookup, and the next time the CP is calculated,\n      // it will update that lazy chain.\n      let instanceMeta = currentMeta.source === current ? currentMeta : meta(current);\n      let lastRevision = instanceMeta.revisionFor(segment);\n      if (lastRevision !== undefined && validateTag(propertyTag, lastRevision)) {\n        current = instanceMeta.valueFor(segment);\n      } else {\n        // use metaFor here to ensure we have the meta for the instance\n        let lazyChains = instanceMeta.writableLazyChainsFor(segment);\n        let rest = path.substring(segmentEnd + 1);\n        let placeholderTag = createUpdatableTag();\n        lazyChains.push([placeholderTag, rest]);\n        chainTags.push(placeholderTag);\n        break;\n      }\n    }\n    if (!isObject(current)) {\n      // we've hit the end of the chain for now, break out\n      break;\n    }\n    currentTagMeta = tagMetaFor(current);\n    currentMeta = peekMeta(current);\n  }\n  return chainTags;\n}\n\nfunction isElementDescriptor(args) {\n  let [maybeTarget, maybeKey, maybeDesc] = args;\n  return (\n    // Ensure we have the right number of args\n    args.length === 3 && (\n    // Make sure the target is a class or object (prototype)\n    typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) &&\n    // Make sure the key is a string\n    typeof maybeKey === 'string' && (\n    // Make sure the descriptor is the right shape\n    typeof maybeDesc === 'object' && maybeDesc !== null || maybeDesc === undefined)\n  );\n}\nfunction nativeDescDecorator(propertyDesc) {\n  let decorator = function () {\n    return propertyDesc;\n  };\n  setClassicDecorator(decorator);\n  return decorator;\n}\n/**\n  Objects of this type can implement an interface to respond to requests to\n  get and set. The default implementation handles simple properties.\n\n  @class Descriptor\n  @private\n*/\nclass ComputedDescriptor {\n  constructor() {\n    this.enumerable = true;\n    this.configurable = true;\n    this._dependentKeys = undefined;\n    this._meta = undefined;\n  }\n  setup(_obj, keyName, _propertyDesc, meta) {\n    meta.writeDescriptors(keyName, this);\n  }\n  teardown(_obj, keyName, meta) {\n    meta.removeDescriptors(keyName);\n  }\n}\nlet COMPUTED_GETTERS;\nif (DEBUG) {\n  COMPUTED_GETTERS = new WeakSet();\n}\nfunction DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n  function getter() {\n    return descriptor.get(this, name);\n  }\n  if (DEBUG) {\n    COMPUTED_GETTERS.add(getter);\n  }\n  return getter;\n}\nfunction DESCRIPTOR_SETTER_FUNCTION(name, descriptor) {\n  let set = function CPSETTER_FUNCTION(value) {\n    return descriptor.set(this, name, value);\n  };\n  COMPUTED_SETTERS.add(set);\n  return set;\n}\nconst COMPUTED_SETTERS = new WeakSet();\nfunction makeComputedDecorator(desc, DecoratorClass) {\n  let decorator = function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator) {\n    assert(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unnecessary.`, isClassicDecorator || !propertyDesc || !propertyDesc.get || !COMPUTED_GETTERS.has(propertyDesc.get));\n    let meta$1 = arguments.length === 3 ? meta(target) : maybeMeta;\n    desc.setup(target, key, propertyDesc, meta$1);\n    let computedDesc = {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      get: DESCRIPTOR_GETTER_FUNCTION(key, desc),\n      set: DESCRIPTOR_SETTER_FUNCTION(key, desc)\n    };\n    return computedDesc;\n  };\n  setClassicDecorator(decorator, desc);\n  Object.setPrototypeOf(decorator, DecoratorClass.prototype);\n  return decorator;\n}\n/////////////\nconst DECORATOR_DESCRIPTOR_MAP = new WeakMap();\n/**\n  Returns the CP descriptor associated with `obj` and `keyName`, if any.\n\n  @method descriptorForProperty\n  @param {Object} obj the object to check\n  @param {String} keyName the key to check\n  @return {Descriptor}\n  @private\n*/\nfunction descriptorForProperty(obj, keyName, _meta) {\n  assert('Cannot call `descriptorForProperty` on null', obj !== null);\n  assert('Cannot call `descriptorForProperty` on undefined', obj !== undefined);\n  assert(`Cannot call \\`descriptorForProperty\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  let meta = _meta === undefined ? peekMeta(obj) : _meta;\n  if (meta !== null) {\n    return meta.peekDescriptors(keyName);\n  }\n}\nfunction descriptorForDecorator(dec) {\n  return DECORATOR_DESCRIPTOR_MAP.get(dec);\n}\n/**\n  Check whether a value is a decorator\n\n  @method isClassicDecorator\n  @param {any} possibleDesc the value to check\n  @return {boolean}\n  @private\n*/\nfunction isClassicDecorator(dec) {\n  return typeof dec === 'function' && DECORATOR_DESCRIPTOR_MAP.has(dec);\n}\n/**\n  Set a value as a decorator\n\n  @method setClassicDecorator\n  @param {function} decorator the value to mark as a decorator\n  @private\n*/\nfunction setClassicDecorator(dec, value = true) {\n  DECORATOR_DESCRIPTOR_MAP.set(dec, value);\n}\n\n/**\n@module @ember/object\n*/\nconst END_WITH_EACH_REGEX = /\\.@each$/;\n/**\n  Expands `pattern`, invoking `callback` for each expansion.\n\n  The only pattern supported is brace-expansion, anything else will be passed\n  once to `callback` directly.\n\n  Example\n\n  ```js\n  import { expandProperties } from '@ember/object/computed';\n\n  function echo(arg){ console.log(arg); }\n\n  expandProperties('foo.bar', echo);              //=> 'foo.bar'\n  expandProperties('{foo,bar}', echo);            //=> 'foo', 'bar'\n  expandProperties('foo.{bar,baz}', echo);        //=> 'foo.bar', 'foo.baz'\n  expandProperties('{foo,bar}.baz', echo);        //=> 'foo.baz', 'bar.baz'\n  expandProperties('foo.{bar,baz}.[]', echo)      //=> 'foo.bar.[]', 'foo.baz.[]'\n  expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n  expandProperties('{foo}.bar.{baz}')             //=> 'foo.bar.baz'\n  ```\n\n  @method expandProperties\n  @static\n  @for @ember/object/computed\n  @public\n  @param {String} pattern The property pattern to expand.\n  @param {Function} callback The callback to invoke.  It is invoked once per\n  expansion, and is passed the expansion.\n*/\nfunction expandProperties(pattern, callback) {\n  assert(`A computed property key must be a string, you passed ${typeof pattern} ${pattern}`, typeof pattern === 'string');\n  assert('Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"', pattern.indexOf(' ') === -1);\n  // regex to look for double open, double close, or unclosed braces\n  assert(`Brace expanded properties have to be balanced and cannot be nested, pattern: ${pattern}`, pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g) === null);\n  let start = pattern.indexOf('{');\n  if (start < 0) {\n    callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));\n  } else {\n    dive('', pattern, start, callback);\n  }\n}\nfunction dive(prefix, pattern, start, callback) {\n  let end = pattern.indexOf('}'),\n    i = 0,\n    newStart,\n    arrayLength;\n  let tempArr = pattern.substring(start + 1, end).split(',');\n  let after = pattern.substring(end + 1);\n  prefix = prefix + pattern.substring(0, start);\n  arrayLength = tempArr.length;\n  while (i < arrayLength) {\n    newStart = after.indexOf('{');\n    if (newStart < 0) {\n      callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));\n    } else {\n      dive(prefix + tempArr[i++], after, newStart, callback);\n    }\n  }\n}\n\n/**\n@module @ember/object\n*/\nconst DEEP_EACH_REGEX = /\\.@each\\.[^.]+\\./;\nfunction noop() {}\n/**\n  `@computed` is a decorator that turns a JavaScript getter and setter into a\n  computed property, which is a _cached, trackable value_. By default the getter\n  will only be called once and the result will be cached. You can specify\n  various properties that your computed property depends on. This will force the\n  cached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\n  In the following example we decorate a getter - `fullName` -  by calling\n  `computed` with the property dependencies (`firstName` and `lastName`) as\n  arguments. The `fullName` getter will be called once (regardless of how many\n  times it is accessed) as long as its dependencies do not change. Once\n  `firstName` or `lastName` are updated any future calls to `fullName` will\n  incorporate the new values, and any watchers of the value such as templates\n  will be updated:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let tom = new Person('Tom', 'Dale');\n\n  tom.fullName; // 'Tom Dale'\n  ```\n\n  You can also provide a setter, which will be used when updating the computed\n  property. Ember's `set` function must be used to update the property\n  since it will also notify observers of the property:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n\n    set fullName(value) {\n      let [firstName, lastName] = value.split(' ');\n\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  You can also pass a getter function or object with `get` and `set` functions\n  as the last argument to the computed decorator. This allows you to define\n  computed property _macros_:\n\n  ```js\n  import { computed } from '@ember/object';\n\n  function join(...keys) {\n    return computed(...keys, function() {\n      return keys.map(key => this[key]).join(' ');\n    });\n  }\n\n  class Person {\n    @join('firstName', 'lastName')\n    fullName;\n  }\n  ```\n\n  Note that when defined this way, getters and setters receive the _key_ of the\n  property they are decorating as the first argument. Setters receive the value\n  they are setting to as the second argument instead. Additionally, setters must\n  _return_ the value that should be cached:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  function fullNameMacro(firstNameKey, lastNameKey) {\n    return computed(firstNameKey, lastNameKey, {\n      get() {\n        return `${this[firstNameKey]} ${this[lastNameKey]}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, firstNameKey, firstName);\n        set(this, lastNameKey, lastName);\n\n        return value;\n      }\n    });\n  }\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @fullNameMacro('firstName', 'lastName') fullName;\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  Computed properties can also be used in classic classes. To do this, we\n  provide the getter and setter as the last argument like we would for a macro,\n  and we assign it to a property on the class definition. This is an _anonymous_\n  computed macro:\n\n  ```javascript\n  import EmberObject, { computed, set } from '@ember/object';\n\n  let Person = EmberObject.extend({\n    // these will be supplied by `create`\n    firstName: null,\n    lastName: null,\n\n    fullName: computed('firstName', 'lastName', {\n      get() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n\n        return value;\n      }\n    })\n  });\n\n  let tom = Person.create({\n    firstName: 'Tom',\n    lastName: 'Dale'\n  });\n\n  tom.get('fullName') // 'Tom Dale'\n  ```\n\n  You can overwrite computed property without setters with a normal property (no\n  longer computed) that won't change if dependencies change. You can also mark\n  computed property as `.readOnly()` and block all attempts to set it.\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName').readOnly()\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let person = new Person();\n  person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n  ```\n\n  Additional resources:\n  - [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n  - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n  - [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n\n  @class ComputedProperty\n  @public\n*/\nclass ComputedProperty extends ComputedDescriptor {\n  constructor(args) {\n    super();\n    this._readOnly = false;\n    this._hasConfig = false;\n    this._getter = undefined;\n    this._setter = undefined;\n    let maybeConfig = args[args.length - 1];\n    if (typeof maybeConfig === 'function' || maybeConfig !== null && typeof maybeConfig === 'object') {\n      this._hasConfig = true;\n      let config = args.pop();\n      if (typeof config === 'function') {\n        assert(`You attempted to pass a computed property instance to computed(). Computed property instances are decorator functions, and cannot be passed to computed() because they cannot be turned into decorators twice`, !isClassicDecorator(config));\n        this._getter = config;\n      } else {\n        const objectConfig = config;\n        assert('computed expects a function or an object as last argument.', typeof objectConfig === 'object' && !Array.isArray(objectConfig));\n        assert('Config object passed to computed can only contain `get` and `set` keys.', Object.keys(objectConfig).every(key => key === 'get' || key === 'set'));\n        assert('Computed properties must receive a getter or a setter, you passed none.', Boolean(objectConfig.get) || Boolean(objectConfig.set));\n        this._getter = objectConfig.get || noop;\n        this._setter = objectConfig.set;\n      }\n    }\n    if (args.length > 0) {\n      this._property(...args);\n    }\n  }\n  setup(obj, keyName, propertyDesc, meta) {\n    super.setup(obj, keyName, propertyDesc, meta);\n    assert(`@computed can only be used on accessors or fields, attempted to use it with ${keyName} but that was a method. Try converting it to a getter (e.g. \\`get ${keyName}() {}\\`)`, !(propertyDesc && typeof propertyDesc.value === 'function'));\n    assert(`@computed can only be used on empty fields. ${keyName} has an initial value (e.g. \\`${keyName} = someValue\\`)`, !propertyDesc || !propertyDesc.initializer);\n    assert(`Attempted to apply a computed property that already has a getter/setter to a ${keyName}, but it is a method or an accessor. If you passed @computed a function or getter/setter (e.g. \\`@computed({ get() { ... } })\\`), then it must be applied to a field`, !(this._hasConfig && propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function')));\n    if (this._hasConfig === false) {\n      assert(`Attempted to use @computed on ${keyName}, but it did not have a getter or a setter. You must either pass a get a function or getter/setter to @computed directly (e.g. \\`@computed({ get() { ... } })\\`) or apply @computed directly to a getter/setter`, propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function'));\n      let {\n        get,\n        set\n      } = propertyDesc;\n      if (get !== undefined) {\n        this._getter = get;\n      }\n      if (set !== undefined) {\n        this._setter = function setterWrapper(_key, value) {\n          let ret = set.call(this, value);\n          if (get !== undefined) {\n            return typeof ret === 'undefined' ? get.call(this) : ret;\n          }\n          return ret;\n        };\n      }\n    }\n  }\n  _property(...passedArgs) {\n    let args = [];\n    function addArg(property) {\n      assert(`Dependent keys containing @each only work one level deep. ` + `You used the key \"${property}\" which is invalid. ` + `Please create an intermediary computed property or ` + `switch to using tracked properties.`, DEEP_EACH_REGEX.test(property) === false);\n      args.push(property);\n    }\n    for (let arg of passedArgs) {\n      expandProperties(arg, addArg);\n    }\n    this._dependentKeys = args;\n  }\n  get(obj, keyName) {\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$1.revisionFor(keyName);\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$1.valueFor(keyName);\n    } else {\n      // For backwards compatibility, we only throw if the CP has any dependencies. CPs without dependencies\n      // should be allowed, even after the object has been destroyed, which is why we check _dependentKeys.\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, this._dependentKeys === undefined || !isDestroyed(obj));\n      let {\n        _getter,\n        _dependentKeys\n      } = this;\n      // Create a tracker that absorbs any trackable actions inside the CP\n      untrack(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$1));\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n      meta$1.setValueFor(keyName, ret);\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]'));\n    }\n    return ret;\n  }\n  set(obj, keyName, value) {\n    if (this._readOnly) {\n      this._throwReadOnlyError(obj, keyName);\n    }\n    assert(`Cannot override the computed property \\`${keyName}\\` on ${toString(obj)}.`, this._setter !== undefined);\n    let meta$1 = meta(obj);\n    // ensure two way binding works when the component has defined a computed\n    // property with both a setter and dependent keys, in that scenario without\n    // the sync observer added below the caller's value will never be updated\n    //\n    // See GH#18147 / GH#19028 for details.\n    if (\n    // ensure that we only run this once, while the component is being instantiated\n    meta$1.isInitializing() && this._dependentKeys !== undefined && this._dependentKeys.length > 0 && typeof obj[PROPERTY_DID_CHANGE] === 'function' && obj.isComponent) {\n      // It's redundant to do this here, but we don't want to check above so we can avoid an extra function call in prod.\n      assert('property did change hook is invalid', hasPropertyDidChange(obj));\n      addObserver(obj, keyName, () => {\n        obj[PROPERTY_DID_CHANGE](keyName);\n      }, undefined, true);\n    }\n    let ret;\n    try {\n      beginPropertyChanges();\n      ret = this._set(obj, keyName, value, meta$1);\n      finishLazyChains(meta$1, keyName, ret);\n      let tagMeta = tagMetaFor(obj);\n      let propertyTag = tagFor(obj, keyName, tagMeta);\n      let {\n        _dependentKeys\n      } = this;\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$1));\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n    } finally {\n      endPropertyChanges();\n    }\n    return ret;\n  }\n  _throwReadOnlyError(obj, keyName) {\n    throw new Error(`Cannot set read-only property \"${keyName}\" on object: ${inspect(obj)}`);\n  }\n  _set(obj, keyName, value, meta) {\n    let hadCachedValue = meta.revisionFor(keyName) !== undefined;\n    let cachedValue = meta.valueFor(keyName);\n    let ret;\n    let {\n      _setter\n    } = this;\n    setObserverSuspended(obj, keyName, true);\n    try {\n      ret = _setter.call(obj, keyName, value, cachedValue);\n    } finally {\n      setObserverSuspended(obj, keyName, false);\n    }\n    // allows setter to return the same value that is cached already\n    if (hadCachedValue && cachedValue === ret) {\n      return ret;\n    }\n    meta.setValueFor(keyName, ret);\n    notifyPropertyChange(obj, keyName, meta, value);\n    return ret;\n  }\n  /* called before property is overridden */\n  teardown(obj, keyName, meta) {\n    if (meta.revisionFor(keyName) !== undefined) {\n      meta.setRevisionFor(keyName, undefined);\n      meta.setValueFor(keyName, undefined);\n    }\n    super.teardown(obj, keyName, meta);\n  }\n}\nclass AutoComputedProperty extends ComputedProperty {\n  get(obj, keyName) {\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$1.revisionFor(keyName);\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$1.valueFor(keyName);\n    } else {\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, !isDestroyed(obj));\n      let {\n        _getter\n      } = this;\n      // Create a tracker that absorbs any trackable actions inside the CP\n      let tag = track(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      updateTag(propertyTag, tag);\n      meta$1.setValueFor(keyName, ret);\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]', tagMeta));\n    }\n    return ret;\n  }\n}\n// TODO: This class can be svelted once `meta` has been deprecated\nclass ComputedDecoratorImpl extends Function {\n  /**\n    Call on a computed property to set it into read-only mode. When in this\n    mode the computed property will throw an error when set.\n       Example:\n       ```javascript\n    import { computed, set } from '@ember/object';\n       class Person {\n      @computed().readOnly()\n      get guid() {\n        return 'guid-guid-guid';\n      }\n    }\n       let person = new Person();\n    set(person, 'guid', 'new-guid'); // will throw an exception\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let Person = EmberObject.extend({\n      guid: computed(function() {\n        return 'guid-guid-guid';\n      }).readOnly()\n    });\n       let person = Person.create();\n    person.set('guid', 'new-guid'); // will throw an exception\n    ```\n       @method readOnly\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n  readOnly() {\n    let desc = descriptorForDecorator(this);\n    assert('Computed properties that define a setter using the new syntax cannot be read-only', !(desc._setter && desc._setter !== desc._getter));\n    desc._readOnly = true;\n    return this;\n  }\n  meta(meta) {\n    let prop = descriptorForDecorator(this);\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta;\n      return this;\n    }\n  }\n  // TODO: Remove this when we can provide alternatives in the ecosystem to\n  // addons such as ember-macro-helpers that use it.\n  /** @internal */\n  get _getter() {\n    return descriptorForDecorator(this)._getter;\n  }\n  // TODO: Refactor this, this is an internal API only\n  /** @internal */\n  set enumerable(value) {\n    descriptorForDecorator(this).enumerable = value;\n  }\n}\nfunction computed(...args) {\n  assert(`@computed can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: computed()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n  if (isElementDescriptor(args)) {\n    // SAFETY: We passed in the impl for this class\n    let decorator = makeComputedDecorator(new ComputedProperty([]), ComputedDecoratorImpl);\n    return decorator(args[0], args[1], args[2]);\n  }\n  // SAFETY: We passed in the impl for this class\n  return makeComputedDecorator(new ComputedProperty(args), ComputedDecoratorImpl);\n}\nfunction autoComputed(...config) {\n  // SAFETY: We passed in the impl for this class\n  return makeComputedDecorator(new AutoComputedProperty(config), ComputedDecoratorImpl);\n}\n/**\n  Allows checking if a given property on an object is a computed property. For the most part,\n  this doesn't matter (you would normally just access the property directly and use its value),\n  but for some tooling specific scenarios (e.g. the ember-inspector) it is important to\n  differentiate if a property is a computed property or a \"normal\" property.\n\n  This will work on either a class's prototype or an instance itself.\n\n  @static\n  @method isComputed\n  @for @ember/debug\n  @private\n */\nfunction isComputed(obj, key) {\n  return Boolean(descriptorForProperty(obj, key));\n}\n\nfunction getCachedValueFor(obj, key) {\n  let meta = peekMeta(obj);\n  if (meta) {\n    return meta.valueFor(key);\n  } else {\n    return undefined;\n  }\n}\n\n/**\n@module @ember/object\n*/\n/**\n  NOTE: This is a low-level method used by other parts of the API. You almost\n  never want to call this method directly. Instead you should use\n  `mixin()` to define new properties.\n\n  Defines a property on an object. This method works much like the ES5\n  `Object.defineProperty()` method except that it can also accept computed\n  properties and other special descriptors.\n\n  Normally this method takes only three parameters. However if you pass an\n  instance of `Descriptor` as the third param then you can pass an\n  optional value as the fourth parameter. This is often more efficient than\n  creating new descriptor hashes for each property.\n\n  ## Examples\n\n  ```javascript\n  import { defineProperty, computed } from '@ember/object';\n\n  // ES5 compatible mode\n  defineProperty(contact, 'firstName', {\n    writable: true,\n    configurable: false,\n    enumerable: true,\n    value: 'Charles'\n  });\n\n  // define a simple property\n  defineProperty(contact, 'lastName', undefined, 'Jolley');\n\n  // define a computed property\n  defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {\n    return this.firstName+' '+this.lastName;\n  }));\n  ```\n\n  @public\n  @method defineProperty\n  @static\n  @for @ember/object\n  @param {Object} obj the object to define this property on. This may be a prototype.\n  @param {String} keyName the name of the property\n  @param {Descriptor} [desc] an instance of `Descriptor` (typically a\n    computed property) or an ES5 descriptor.\n    You must provide this or `data` but not both.\n  @param {*} [data] something other than a descriptor, that will\n    become the explicit value of this property.\n*/\nfunction defineProperty(obj, keyName, desc, data, _meta) {\n  let meta$1 = _meta === undefined ? meta(obj) : _meta;\n  let previousDesc = descriptorForProperty(obj, keyName, meta$1);\n  let wasDescriptor = previousDesc !== undefined;\n  if (wasDescriptor) {\n    previousDesc.teardown(obj, keyName, meta$1);\n  }\n  if (isClassicDecorator(desc)) {\n    defineDecorator(obj, keyName, desc, meta$1);\n  } else if (desc === null || desc === undefined) {\n    defineValue(obj, keyName, data, wasDescriptor, true);\n  } else {\n    // fallback to ES5\n    Object.defineProperty(obj, keyName, desc);\n  }\n  // if key is being watched, override chains that\n  // were initialized with the prototype\n  if (!meta$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n}\nfunction defineDecorator(obj, keyName, desc, meta) {\n  let propertyDesc;\n  if (DEBUG) {\n    propertyDesc = desc(obj, keyName, undefined, meta, true);\n  } else {\n    propertyDesc = desc(obj, keyName, undefined, meta);\n  }\n  Object.defineProperty(obj, keyName, propertyDesc);\n  // pass the decorator function forward for backwards compat\n  return desc;\n}\nfunction defineValue(obj, keyName, value, wasDescriptor, enumerable = true) {\n  if (wasDescriptor === true || enumerable === false) {\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable,\n      writable: true,\n      value\n    });\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n  }\n  return value;\n}\n\nconst firstDotIndexCache = new Cache(1000, key => key.indexOf('.'));\nfunction isPath(path) {\n  return typeof path === 'string' && firstDotIndexCache.get(path) !== -1;\n}\n\nconst PROXY_CONTENT = symbol('PROXY_CONTENT');\nlet getPossibleMandatoryProxyValue;\nif (DEBUG) {\n  getPossibleMandatoryProxyValue = function getPossibleMandatoryProxyValue(obj, keyName) {\n    let content = obj[PROXY_CONTENT];\n    if (content === undefined) {\n      return obj[keyName];\n    } else {\n      /* global Reflect */\n      return Reflect.get(content, keyName, obj);\n    }\n  };\n}\nfunction hasUnknownProperty(val) {\n  return typeof val === 'object' && val !== null && typeof val.unknownProperty === 'function';\n}\nfunction get(obj, keyName) {\n  assert(`Get must be called with two arguments; an object and a property key`, arguments.length === 2);\n  assert(`Cannot call get with '${keyName}' on an undefined object.`, obj !== undefined && obj !== null);\n  assert(`The key provided to get must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n  return isPath(keyName) ? _getPath(obj, keyName) : _getProp(obj, keyName);\n}\nfunction _getProp(obj, keyName) {\n  if (obj == null) {\n    return;\n  }\n  let value;\n  if (typeof obj === 'object' || typeof obj === 'function') {\n    if (DEBUG) {\n      value = getPossibleMandatoryProxyValue(obj, keyName);\n    } else {\n      value = obj[keyName];\n    }\n    if (value === undefined && typeof obj === 'object' && !(keyName in obj) && hasUnknownProperty(obj)) {\n      value = obj.unknownProperty(keyName);\n    }\n    if (isTracking()) {\n      consumeTag(tagFor(obj, keyName));\n      if (Array.isArray(value) || isEmberArray(value)) {\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        consumeTag(tagFor(value, '[]'));\n      }\n    }\n  } else {\n    // SAFETY: It should be ok to access properties on any non-nullish value\n    value = obj[keyName];\n  }\n  return value;\n}\nfunction _getPath(obj, path, forSet) {\n  let parts = typeof path === 'string' ? path.split('.') : path;\n  for (let part of parts) {\n    if (obj === undefined || obj === null || obj.isDestroyed) {\n      return undefined;\n    }\n    if (forSet && (part === '__proto__' || part === 'constructor')) {\n      return;\n    }\n    obj = _getProp(obj, part);\n  }\n  return obj;\n}\n// Warm it up\n_getProp('foo', 'a');\n_getProp('foo', 1);\n_getProp({}, 'a');\n_getProp({}, 1);\n_getProp({\n  unknownProperty() {}\n}, 'a');\n_getProp({\n  unknownProperty() {}\n}, 1);\nget({}, 'foo');\nget({}, 'foo.bar');\nlet fakeProxy = {};\nsetProxy(fakeProxy);\ntrack(() => _getProp({}, 'a'));\ntrack(() => _getProp({}, 1));\ntrack(() => _getProp({\n  a: []\n}, 'a'));\ntrack(() => _getProp({\n  a: fakeProxy\n}, 'a'));\n\n/**\n @module @ember/object\n*/\n/**\n  Sets the value of a property on an object, respecting computed properties\n  and notifying observers and other listeners of the change.\n  If the specified property is not defined on the object and the object\n  implements the `setUnknownProperty` method, then instead of setting the\n  value of the property on the object, its `setUnknownProperty` handler\n  will be invoked with the two parameters `keyName` and `value`.\n\n  ```javascript\n  import { set } from '@ember/object';\n  set(obj, \"name\", value);\n  ```\n\n  @method set\n  @static\n  @for @ember/object\n  @param {Object} obj The object to modify.\n  @param {String} keyName The property key to set\n  @param {Object} value The value to set\n  @return {Object} the passed value.\n  @public\n*/\nfunction set(obj, keyName, value, tolerant) {\n  assert(`Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false`, arguments.length === 3 || arguments.length === 4);\n  assert(`Cannot call set with '${keyName}' on an undefined object.`, obj && typeof obj === 'object' || typeof obj === 'function');\n  assert(`The key provided to set must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n  if (obj.isDestroyed) {\n    assert(`calling set on destroyed object: ${toString(obj)}.${keyName} = ${toString(value)}`, tolerant);\n    return value;\n  }\n  return isPath(keyName) ? _setPath(obj, keyName, value, tolerant) : _setProp(obj, keyName, value);\n}\nfunction _setProp(obj, keyName, value) {\n  let descriptor = lookupDescriptor(obj, keyName);\n  if (descriptor !== null && COMPUTED_SETTERS.has(descriptor.set)) {\n    obj[keyName] = value;\n    return value;\n  }\n  let currentValue;\n  if (DEBUG) {\n    currentValue = getPossibleMandatoryProxyValue(obj, keyName);\n  } else {\n    currentValue = obj[keyName];\n  }\n  if (currentValue === undefined && 'object' === typeof obj && !(keyName in obj) && typeof obj.setUnknownProperty === 'function') {\n    /* unknown property */\n    obj.setUnknownProperty(keyName, value);\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n    if (currentValue !== value) {\n      notifyPropertyChange(obj, keyName);\n    }\n  }\n  return value;\n}\nfunction _setPath(root, path, value, tolerant) {\n  let parts = path.split('.');\n  let keyName = parts.pop();\n  assert('Property set failed: You passed an empty path', keyName.trim().length > 0);\n  let newRoot = _getPath(root, parts, true);\n  if (newRoot !== null && newRoot !== undefined) {\n    return set(newRoot, keyName, value);\n  } else if (!tolerant) {\n    throw new Error(`Property set failed: object in path \"${parts.join('.')}\" could not be found.`);\n  }\n}\n/**\n  Error-tolerant form of `set`. Will not blow up if any part of the\n  chain is `undefined`, `null`, or destroyed.\n\n  This is primarily used when syncing bindings, which may try to update after\n  an object has been destroyed.\n\n  ```javascript\n  import { trySet } from '@ember/object';\n\n  let obj = { name: \"Zoey\" };\n  trySet(obj, \"contacts.twitter\", \"@emberjs\");\n  ```\n\n  @method trySet\n  @static\n  @for @ember/object\n  @param {Object} root The object to modify.\n  @param {String} path The property path to set\n  @param {Object} value The value to set\n  @public\n*/\nfunction trySet(root, path, value) {\n  return set(root, path, value, true);\n}\n\nfunction alias(altKey) {\n  assert('You attempted to use @alias as a decorator directly, but it requires a `altKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  // SAFETY: We passed in the impl for this class\n  return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);\n}\n// TODO: This class can be svelted once `meta` has been deprecated\nclass AliasDecoratorImpl extends Function {\n  readOnly() {\n    descriptorForDecorator(this).readOnly();\n    return this;\n  }\n  oneWay() {\n    descriptorForDecorator(this).oneWay();\n    return this;\n  }\n  meta(meta) {\n    let prop = descriptorForDecorator(this);\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta;\n    }\n  }\n}\nclass AliasedProperty extends ComputedDescriptor {\n  constructor(altKey) {\n    super();\n    this.altKey = altKey;\n  }\n  setup(obj, keyName, propertyDesc, meta) {\n    assert(`Setting alias '${keyName}' on self`, this.altKey !== keyName);\n    super.setup(obj, keyName, propertyDesc, meta);\n    CHAIN_PASS_THROUGH.add(this);\n  }\n  get(obj, keyName) {\n    let ret;\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    // We don't use the tag since CPs are not automatic, we just want to avoid\n    // anything tracking while we get the altKey\n    untrack(() => {\n      ret = get(obj, this.altKey);\n    });\n    let lastRevision = meta$1.revisionFor(keyName);\n    if (lastRevision === undefined || !validateTag(propertyTag, lastRevision)) {\n      updateTag(propertyTag, getChainTagsForKey(obj, this.altKey, tagMeta, meta$1));\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n    return ret;\n  }\n  set(obj, _keyName, value) {\n    return set(obj, this.altKey, value);\n  }\n  readOnly() {\n    this.set = AliasedProperty_readOnlySet;\n  }\n  oneWay() {\n    this.set = AliasedProperty_oneWaySet;\n  }\n}\nfunction AliasedProperty_readOnlySet(obj, keyName) {\n  throw new Error(`Cannot set read-only property '${keyName}' on object: ${inspect(obj)}`);\n}\nfunction AliasedProperty_oneWaySet(obj, keyName, value) {\n  defineProperty(obj, keyName, null);\n  return set(obj, keyName, value);\n}\n\n/**\n@module ember\n*/\n/**\n  Used internally to allow changing properties in a backwards compatible way, and print a helpful\n  deprecation warning.\n\n  @method deprecateProperty\n  @param {Object} object The object to add the deprecated property to.\n  @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n  @param {String} newKey The property that will be aliased.\n  @private\n  @since 1.7.0\n*/\nfunction deprecateProperty(object, deprecatedKey, newKey, options) {\n  function _deprecate() {\n    deprecate(`Usage of \\`${deprecatedKey}\\` is deprecated, use \\`${newKey}\\` instead.`, false, options);\n  }\n  Object.defineProperty(object, deprecatedKey, {\n    configurable: true,\n    enumerable: false,\n    set(value) {\n      _deprecate();\n      set(this, newKey, value);\n    },\n    get() {\n      _deprecate();\n      return get(this, newKey);\n    }\n  });\n}\n\nconst EACH_PROXIES = new WeakMap();\nfunction eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n  if (eachProxy !== undefined) {\n    eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);\n  }\n}\nfunction eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n  if (eachProxy !== undefined) {\n    eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);\n  }\n}\n\n/**\n @module ember\n*/\n/**\n  Helper class that allows you to register your library with Ember.\n\n  Singleton created at `Ember.libraries`.\n\n  @class Libraries\n  @constructor\n  @private\n*/\nclass Libraries {\n  constructor() {\n    this._registry = [];\n    this._coreLibIndex = 0;\n  }\n  _getLibraryByName(name) {\n    let libs = this._registry;\n    for (let lib of libs) {\n      if (lib.name === name) {\n        return lib;\n      }\n    }\n    return undefined;\n  }\n  register(name, version, isCoreLibrary) {\n    let index = this._registry.length;\n    if (!this._getLibraryByName(name)) {\n      if (isCoreLibrary) {\n        index = this._coreLibIndex++;\n      }\n      this._registry.splice(index, 0, {\n        name,\n        version\n      });\n    } else {\n      warn(`Library \"${name}\" is already registered with Ember.`, false, {\n        id: 'ember-metal.libraries-register'\n      });\n    }\n  }\n  registerCoreLibrary(name, version) {\n    this.register(name, version, true);\n  }\n  deRegister(name) {\n    let lib = this._getLibraryByName(name);\n    let index;\n    if (lib) {\n      index = this._registry.indexOf(lib);\n      this._registry.splice(index, 1);\n    }\n  }\n}\nif (DEBUG) {\n  Libraries.prototype.logVersions = function () {\n    let libs = this._registry;\n    let nameLengths = libs.map(item => get(item, 'name.length'));\n    assert('nameLengths is number array', nameLengths instanceof Array && nameLengths.every(n => typeof n === 'number'));\n    let maxNameLength = Math.max.apply(null, nameLengths);\n    debug('-------------------------------');\n    for (let lib of libs) {\n      let spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n      debug([lib.name, spaces, ' : ', lib.version].join(''));\n    }\n    debug('-------------------------------');\n  };\n}\nconst LIBRARIES = new Libraries();\nLIBRARIES.registerCoreLibrary('Ember', VERSION);\n\nfunction getProperties(obj, keys) {\n  let ret = {};\n  let propertyNames;\n  let i = 1;\n  if (arguments.length === 2 && Array.isArray(keys)) {\n    i = 0;\n    propertyNames = arguments[1];\n  } else {\n    propertyNames = Array.from(arguments);\n  }\n  for (; i < propertyNames.length; i++) {\n    // SAFETY: we are just walking the list of property names, so we know the\n    // index access never produces `undefined`.\n    let name = propertyNames[i];\n    ret[name] = get(obj, name);\n  }\n  return ret;\n}\n\nfunction setProperties(obj, properties) {\n  if (properties === null || typeof properties !== 'object') {\n    return properties;\n  }\n  changeProperties(() => {\n    let props = Object.keys(properties);\n    for (let propertyName of props) {\n      // SAFETY: casting `properties` this way is safe because any object in JS\n      // can be indexed this way, and the result will be `unknown`, making it\n      // safe for callers.\n      set(obj, propertyName, properties[propertyName]);\n    }\n  });\n  return properties;\n}\n\nlet DEBUG_INJECTION_FUNCTIONS;\nif (DEBUG) {\n  DEBUG_INJECTION_FUNCTIONS = new WeakMap();\n}\nfunction inject(type, ...args) {\n  assert('a string type must be provided to inject', typeof type === 'string');\n  let elementDescriptor;\n  let name;\n  if (isElementDescriptor(args)) {\n    elementDescriptor = args;\n  } else if (typeof args[0] === 'string') {\n    name = args[0];\n  }\n  let getInjection = function (propertyName) {\n    let owner = getOwner(this) || this.container; // fallback to `container` for backwards compat\n    assert(`Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`, Boolean(owner));\n    return owner.lookup(`${type}:${name || propertyName}`);\n  };\n  if (DEBUG) {\n    DEBUG_INJECTION_FUNCTIONS.set(getInjection, {\n      type,\n      name\n    });\n  }\n  let decorator = computed({\n    get: getInjection,\n    set(keyName, value) {\n      defineProperty(this, keyName, null, value);\n    }\n  });\n  if (elementDescriptor) {\n    return decorator(elementDescriptor[0], elementDescriptor[1], elementDescriptor[2]);\n  } else {\n    return decorator;\n  }\n}\n\nfunction tracked(...args) {\n  assert(`@tracked can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: tracked()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n  if (!isElementDescriptor(args)) {\n    let propertyDesc = args[0];\n    assert(`tracked() may only receive an options object containing 'value' or 'initializer', received ${propertyDesc}`, args.length === 0 || typeof propertyDesc === 'object' && propertyDesc !== null);\n    if (DEBUG && propertyDesc) {\n      let keys = Object.keys(propertyDesc);\n      assert(`The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [${keys}]`, keys.length <= 1 && (keys[0] === undefined || keys[0] === 'value' || keys[0] === 'initializer'));\n      assert(`The initializer passed to tracked must be a function. Received ${propertyDesc.initializer}`, !('initializer' in propertyDesc) || typeof propertyDesc.initializer === 'function');\n    }\n    let initializer = propertyDesc ? propertyDesc.initializer : undefined;\n    let value = propertyDesc ? propertyDesc.value : undefined;\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      assert(`You attempted to set a default value for ${key} with the @tracked({ value: 'default' }) syntax. You can only use this syntax with classic classes. For native classes, you can use class initializers: @tracked field = 'default';`, isClassicDecorator);\n      let fieldDesc = {\n        initializer: initializer || (() => value)\n      };\n      return descriptorForField([target, key, fieldDesc]);\n    };\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n  return descriptorForField(args);\n}\nif (DEBUG) {\n  // Normally this isn't a classic decorator, but we want to throw a helpful\n  // error in development so we need it to treat it like one\n  setClassicDecorator(tracked);\n}\nfunction descriptorForField([target, key, desc]) {\n  assert(`You attempted to use @tracked on ${key}, but that element is not a class field. @tracked is only usable on class fields. Native getters and setters will autotrack add any tracked fields they encounter, so there is no need mark getters and setters with @tracked.`, !desc || !desc.value && !desc.get && !desc.set);\n  let {\n    getter,\n    setter\n  } = trackedData(key, desc ? desc.initializer : undefined);\n  function get() {\n    let value = getter(this);\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(value) || isEmberArray(value)) {\n      consumeTag(tagFor(value, '[]'));\n    }\n    return value;\n  }\n  function set(newValue) {\n    setter(this, newValue);\n    dirtyTagFor(this, SELF_TAG);\n  }\n  let newDesc = {\n    enumerable: true,\n    configurable: true,\n    isTracked: true,\n    get,\n    set\n  };\n  COMPUTED_SETTERS.add(set);\n  meta(target).writeDescriptors(key, new TrackedDescriptor(get, set));\n  return newDesc;\n}\nclass TrackedDescriptor {\n  constructor(_get, _set) {\n    this._get = _get;\n    this._set = _set;\n    CHAIN_PASS_THROUGH.add(this);\n  }\n  get(obj) {\n    return this._get.call(obj);\n  }\n  set(obj, _key, value) {\n    this._set.call(obj, value);\n  }\n}\n\n// NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358\n// Both glimmerjs/glimmer.js and emberjs/ember.js have the exact same implementation\n// of @cached, so any changes made to one should also be made to the other\n/**\n * @decorator\n *\n  Gives the getter a caching behavior. The return value of the getter\n  will be cached until any of the properties it is entangled with\n  are invalidated. This is useful when a getter is expensive and\n  used very often.\n\n  For instance, in this `GuestList` class, we have the `sortedGuests`\n  getter that sorts the guests alphabetically:\n\n  ```javascript\n    import { tracked } from '@glimmer/tracking';\n\n    class GuestList {\n      @tracked guests = ['Zoey', 'Tomster'];\n\n      get sortedGuests() {\n        return this.guests.slice().sort()\n      }\n    }\n  ```\n\n  Every time `sortedGuests` is accessed, a new array will be created and sorted,\n  because JavaScript getters do not cache by default. When the guest list\n  is small, like the one in the example, this is not a problem. However, if\n  the guest list were to grow very large, it would mean that we would be doing\n  a large amount of work each time we accessed `sortedGuests`. With `@cached`,\n  we can cache the value instead:\n\n  ```javascript\n    import { tracked, cached } from '@glimmer/tracking';\n\n    class GuestList {\n      @tracked guests = ['Zoey', 'Tomster'];\n\n      @cached\n      get sortedGuests() {\n        return this.guests.slice().sort()\n      }\n    }\n  ```\n\n  Now the `sortedGuests` getter will be cached based on autotracking.\n  It will only rerun and create a new sorted array when the guests tracked\n  property is updated.\n\n\n  ### Tradeoffs\n\n  Overuse is discouraged.\n\n  In general, you should avoid using `@cached` unless you have confirmed that\n  the getter you are decorating is computationally expensive, since `@cached`\n  adds a small amount of overhead to the getter.\n  While the individual costs are small, a systematic use of the `@cached`\n  decorator can add up to a large impact overall in your app.\n  Many getters and tracked properties are only accessed once during rendering,\n  and then never rerendered, so adding `@cached` when unnecessary can\n  negatively impact performance.\n\n  Also, `@cached` may rerun even if the values themselves have not changed,\n  since tracked properties will always invalidate.\n  For example updating an integer value from `5` to an other `5` will trigger\n  a rerun of the cached properties building from this integer.\n\n  Avoiding a cache invalidation in this case is not something that can\n  be achieved on the `@cached` decorator itself, but rather when updating\n  the underlying tracked values, by applying some diff checking mechanisms:\n\n  ```javascript\n  if (nextValue !== this.trackedProp) {\n    this.trackedProp = nextValue;\n  }\n  ```\n\n  Here equal values won't update the property, therefore not triggering\n  the subsequent cache invalidations of the `@cached` properties who were\n  using this `trackedProp`.\n\n  Remember that setting tracked data should only be done during initialization,\n  or as the result of a user action. Setting tracked data during render\n  (such as in a getter), is not supported.\n\n  @method cached\n  @static\n  @for @glimmer/tracking\n  @public\n */\nconst cached = (...args) => {\n  const [target, key, descriptor] = args;\n  // Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`\n  if (DEBUG && target === undefined) throwCachedExtraneousParens();\n  if (DEBUG && (typeof target !== 'object' || typeof key !== 'string' || typeof descriptor !== 'object' || args.length !== 3)) {\n    throwCachedInvalidArgsError(args);\n  }\n  if (DEBUG && (!('get' in descriptor) || typeof descriptor.get !== 'function')) {\n    throwCachedGetterOnlyError(key);\n  }\n  const caches = new WeakMap();\n  const getter = descriptor.get;\n  descriptor.get = function () {\n    if (!caches.has(this)) {\n      caches.set(this, createCache(getter.bind(this)));\n    }\n    return getValue(caches.get(this));\n  };\n};\nfunction throwCachedExtraneousParens() {\n  throw new Error('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!');\n}\nfunction throwCachedGetterOnlyError(key) {\n  throw new Error(`The @cached decorator must be applied to getters. '${key}' is not a getter.`);\n}\nfunction throwCachedInvalidArgsError(args = []) {\n  throw new Error(`You attempted to use @cached on with ${args.length > 1 ? 'arguments' : 'an argument'} ( @cached(${args.map(d => `'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`);\n}\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nlet searchDisabled = false;\nconst flags = {\n  _set: 0,\n  _unprocessedNamespaces: false,\n  get unprocessedNamespaces() {\n    return this._unprocessedNamespaces;\n  },\n  set unprocessedNamespaces(v) {\n    this._set++;\n    this._unprocessedNamespaces = v;\n  }\n};\nlet unprocessedMixins = false;\nconst NAMESPACES = [];\nconst NAMESPACES_BY_ID = Object.create(null);\nfunction addNamespace(namespace) {\n  flags.unprocessedNamespaces = true;\n  NAMESPACES.push(namespace);\n}\nfunction removeNamespace(namespace) {\n  let name = getName(namespace);\n  delete NAMESPACES_BY_ID[name];\n  NAMESPACES.splice(NAMESPACES.indexOf(namespace), 1);\n  if (name in context.lookup && namespace === context.lookup[name]) {\n    context.lookup[name] = undefined;\n  }\n}\nfunction findNamespaces() {\n  if (!flags.unprocessedNamespaces) {\n    return;\n  }\n  let lookup = context.lookup;\n  let keys = Object.keys(lookup);\n  for (let key of keys) {\n    // Only process entities that start with uppercase A-Z\n    if (!isUppercase(key.charCodeAt(0))) {\n      continue;\n    }\n    let obj = tryIsNamespace(lookup, key);\n    if (obj) {\n      setName(obj, key);\n    }\n  }\n}\nfunction findNamespace(name) {\n  if (!searchDisabled) {\n    processAllNamespaces();\n  }\n  return NAMESPACES_BY_ID[name];\n}\nfunction processNamespace(namespace) {\n  _processNamespace([namespace.toString()], namespace, new Set());\n}\nfunction processAllNamespaces() {\n  let unprocessedNamespaces = flags.unprocessedNamespaces;\n  if (unprocessedNamespaces) {\n    findNamespaces();\n    flags.unprocessedNamespaces = false;\n  }\n  if (unprocessedNamespaces || unprocessedMixins) {\n    let namespaces = NAMESPACES;\n    for (let namespace of namespaces) {\n      processNamespace(namespace);\n    }\n    unprocessedMixins = false;\n  }\n}\nfunction isSearchDisabled() {\n  return searchDisabled;\n}\nfunction setSearchDisabled(flag) {\n  searchDisabled = Boolean(flag);\n}\nfunction setUnprocessedMixins() {\n  unprocessedMixins = true;\n}\nfunction _processNamespace(paths, root, seen) {\n  let idx = paths.length;\n  let id = paths.join('.');\n  NAMESPACES_BY_ID[id] = root;\n  setName(root, id);\n  // Loop over all of the keys in the namespace, looking for classes\n  for (let key in root) {\n    if (!hasOwnProperty.call(root, key)) {\n      continue;\n    }\n    let obj = root[key];\n    // If we are processing the `Ember` namespace, for example, the\n    // `paths` will start with `[\"Ember\"]`. Every iteration through\n    // the loop will update the **second** element of this list with\n    // the key, so processing `Ember.View` will make the Array\n    // `['Ember', 'View']`.\n    paths[idx] = key;\n    // If we have found an unprocessed class\n    if (obj && getName(obj) === void 0) {\n      // Replace the class' `toString` with the dot-separated path\n      setName(obj, paths.join('.'));\n      // Support nested namespaces\n    } else if (obj && isNamespace(obj)) {\n      // Skip aliased namespaces\n      if (seen.has(obj)) {\n        continue;\n      }\n      seen.add(obj);\n      // Process the child namespace\n      _processNamespace(paths, obj, seen);\n    }\n  }\n  paths.length = idx; // cut out last item\n}\n\nfunction isNamespace(obj) {\n  return obj != null && typeof obj === 'object' && obj.isNamespace;\n}\nfunction isUppercase(code) {\n  return code >= 65 && code <= 90 // A\n  ; // Z\n}\n\nfunction tryIsNamespace(lookup, prop) {\n  try {\n    let obj = lookup[prop];\n    return (obj !== null && typeof obj === 'object' || typeof obj === 'function') && obj.isNamespace && obj;\n  } catch (e) {\n    // continue\n  }\n}\n\nexport { ASYNC_OBSERVERS, ComputedDescriptor, ComputedProperty, DEBUG_INJECTION_FUNCTIONS, Libraries, NAMESPACES, NAMESPACES_BY_ID, PROPERTY_DID_CHANGE, PROXY_CONTENT, SYNC_OBSERVERS, TrackedDescriptor, _getPath, _getProp, _setProp, activateObserver, addArrayObserver, addListener, addNamespace, addObserver, alias, arrayContentDidChange, arrayContentWillChange, autoComputed, beginPropertyChanges, cached, changeProperties, computed, defineDecorator, defineProperty, defineValue, deprecateProperty, descriptorForDecorator, descriptorForProperty, eachProxyArrayDidChange, eachProxyArrayWillChange, endPropertyChanges, expandProperties, findNamespace, findNamespaces, flushAsyncObservers, get, getCachedValueFor, getProperties, hasListeners, hasUnknownProperty, inject, isClassicDecorator, isComputed, isElementDescriptor, isSearchDisabled as isNamespaceSearchDisabled, LIBRARIES as libraries, makeComputedDecorator, markObjectAsDirty, nativeDescDecorator, notifyPropertyChange, objectAt, on, processAllNamespaces, processNamespace, removeArrayObserver, removeListener, removeNamespace, removeObserver, replace, replaceInNativeArray, revalidateObservers, sendEvent, set, setClassicDecorator, setSearchDisabled as setNamespaceSearchDisabled, setProperties, setUnprocessedMixins, tagForObject, tagForProperty, tracked, trySet };\n","import { getOwner as glimmerGetOwner, setOwner as glimmerSetOwner } from '@glimmer/owner';\n/**\n  @private\n  @method isFactory\n  @param {Object} obj\n  @return {Boolean}\n  @static\n */\nexport function isFactory(obj) {\n  return obj != null && typeof obj.create === 'function';\n}\n// NOTE: For docs, see the definition at the public API site in `@ember/owner`;\n// we document it there for the sake of public API docs and for TS consumption,\n// while having the richer `InternalOwner` representation for Ember itself.\nexport function getOwner(object) {\n  return glimmerGetOwner(object);\n}\n/**\n  `setOwner` forces a new owner on a given object instance. This is primarily\n  useful in some testing cases.\n\n  @method setOwner\n  @static\n  @for @ember/owner\n  @param {Object} object An object instance.\n  @param {Owner} object The new owner object of the object instance.\n  @since 2.3.0\n  @public\n*/\nexport function setOwner(object, owner) {\n  glimmerSetOwner(object, owner);\n}","import * as RSVP from 'rsvp';\nimport { _backburner, _rsvpErrorQueue } from '@ember/runloop';\nimport { getDispatchOverride } from '@ember/-internals/error-handling';\nimport { assert } from '@ember/debug';\nRSVP.configure('async', (callback, promise) => {\n  _backburner.schedule('actions', null, callback, promise);\n});\nRSVP.configure('after', cb => {\n  _backburner.schedule(_rsvpErrorQueue, null, cb);\n});\nRSVP.on('error', onerrorDefault);\nexport function onerrorDefault(reason) {\n  let error = errorFor(reason);\n  if (error) {\n    let overrideDispatch = getDispatchOverride();\n    if (overrideDispatch) {\n      overrideDispatch(error);\n    } else {\n      throw error;\n    }\n  }\n}\nfunction errorFor(reason) {\n  if (!reason) return;\n  let withErrorThrown = reason;\n  if (withErrorThrown.errorThrown) {\n    return unwrapErrorThrown(withErrorThrown);\n  }\n  let withName = reason;\n  if (withName.name === 'UnrecognizedURLError') {\n    assert(`The URL '${withName.message}' did not match any routes in your application`, false);\n    // @ts-expect-error We'll hit this if the assert is stripped\n    return;\n  }\n  if (reason.name === 'TransitionAborted') {\n    return;\n  }\n  return reason;\n}\nfunction unwrapErrorThrown(reason) {\n  let error = reason.errorThrown;\n  if (typeof error === 'string') {\n    error = new Error(error);\n  }\n  Object.defineProperty(error, '__reason_with_error_thrown__', {\n    value: reason,\n    enumerable: false\n  });\n  return error;\n}\nexport default RSVP;","/**\n@module ember\n*/\nimport { meta } from '@ember/-internals/meta';\nimport Mixin from '@ember/object/mixin';\nimport { get, set, defineProperty, tagForObject, computed, tagForProperty } from '@ember/-internals/metal';\nimport { setProxy, setupMandatorySetter, isObject, isProxy } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { setCustomTagFor } from '@glimmer/manager';\nimport { combine, updateTag, tagFor, tagMetaFor } from '@glimmer/validator';\nexport function contentFor(proxy) {\n  let content = get(proxy, 'content');\n  // SAFETY: Ideally we'd assert instead of casting, but @glimmer/validator doesn't give us\n  // sufficient public types for this. Previously this code was .js and worked correctly so\n  // hopefully this is sufficiently reliable.\n  updateTag(tagForObject(proxy), tagForObject(content));\n  return content;\n}\nfunction customTagForProxy(proxy, key, addMandatorySetter) {\n  assert('Expected a proxy', isProxy(proxy));\n  let meta = tagMetaFor(proxy);\n  let tag = tagFor(proxy, key, meta);\n  if (DEBUG) {\n    // TODO: Replace this with something more first class for tracking tags in DEBUG\n    // SAFETY: This is not an officially supported property but setting shouldn't cause issues.\n    tag._propertyKey = key;\n  }\n  if (key in proxy) {\n    if (DEBUG && addMandatorySetter) {\n      assert('[BUG] setupMandatorySetter should be set when debugging', setupMandatorySetter);\n      setupMandatorySetter(tag, proxy, key);\n    }\n    return tag;\n  } else {\n    let tags = [tag, tagFor(proxy, 'content', meta)];\n    let content = contentFor(proxy);\n    if (isObject(content)) {\n      tags.push(tagForProperty(content, key, addMandatorySetter));\n    }\n    return combine(tags);\n  }\n}\nconst ProxyMixin = Mixin.create({\n  /**\n    The object whose properties will be forwarded.\n       @property content\n    @type {unknown}\n    @default null\n    @public\n  */\n  content: null,\n  init() {\n    this._super(...arguments);\n    setProxy(this);\n    tagForObject(this);\n    setCustomTagFor(this, customTagForProxy);\n  },\n  willDestroy() {\n    this.set('content', null);\n    this._super(...arguments);\n  },\n  isTruthy: computed('content', function () {\n    return Boolean(get(this, 'content'));\n  }),\n  unknownProperty(key) {\n    let content = contentFor(this);\n    return content ? get(content, key) : undefined;\n  },\n  setUnknownProperty(key, value) {\n    let m = meta(this);\n    if (m.isInitializing() || m.isPrototypeMeta(this)) {\n      // if marked as prototype or object is initializing then just\n      // defineProperty rather than delegate\n      defineProperty(this, key, null, value);\n      return value;\n    }\n    let content = contentFor(this);\n    assert(`Cannot delegate set('${key}', ${value}) to the 'content' property of object proxy ${this}: its 'content' is undefined.`, content);\n    // SAFETY: We don't actually guarantee that this is an object, so this isn't necessarily safe :(\n    return set(content, key, value);\n  }\n});\nexport default ProxyMixin;","/**\n@module ember\n*/\nimport Mixin from '@ember/object/mixin';\nimport { get } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nconst ActionHandler = Mixin.create({\n  mergedProperties: ['actions'],\n  /**\n    The collection of functions, keyed by name, available on this\n    `ActionHandler` as action targets.\n       These functions will be invoked when a matching `{{action}}` is triggered\n    from within a template and the application's current route is this route.\n       Actions can also be invoked from other parts of your application\n    via `ActionHandler#send`.\n       The `actions` hash will inherit action handlers from\n    the `actions` hash defined on extended parent classes\n    or mixins rather than just replace the entire hash, e.g.:\n       ```app/mixins/can-display-banner.js\n    import Mixin from '@ember/object/mixin';\n       export default Mixin.create({\n      actions: {\n        displayBanner(msg) {\n          // ...\n        }\n      }\n    });\n    ```\n       ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n    import CanDisplayBanner from '../mixins/can-display-banner';\n       export default Route.extend(CanDisplayBanner, {\n      actions: {\n        playMusic() {\n          // ...\n        }\n      }\n    });\n       // `WelcomeRoute`, when active, will be able to respond\n    // to both actions, since the actions hash is merged rather\n    // then replaced when extending mixins / parent classes.\n    this.send('displayBanner');\n    this.send('playMusic');\n    ```\n       Within a Controller, Route or Component's action handler,\n    the value of the `this` context is the Controller, Route or\n    Component object:\n       ```app/routes/song.js\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      actions: {\n        myAction() {\n          this.controllerFor(\"song\");\n          this.transitionTo(\"other.route\");\n          ...\n        }\n      }\n    });\n    ```\n       It is also possible to call `this._super(...arguments)` from within an\n    action handler if it overrides a handler defined on a parent\n    class or mixin:\n       Take for example the following routes:\n       ```app/mixins/debug-route.js\n    import Mixin from '@ember/object/mixin';\n       export default Mixin.create({\n      actions: {\n        debugRouteInformation() {\n          console.debug(\"It's a-me, console.debug!\");\n        }\n      }\n    });\n    ```\n       ```app/routes/annoying-debug.js\n    import Route from '@ember/routing/route';\n    import DebugRoute from '../mixins/debug-route';\n       export default Route.extend(DebugRoute, {\n      actions: {\n        debugRouteInformation() {\n          // also call the debugRouteInformation of mixed in DebugRoute\n          this._super(...arguments);\n             // show additional annoyance\n          window.alert(...);\n        }\n      }\n    });\n    ```\n       ## Bubbling\n       By default, an action will stop bubbling once a handler defined\n    on the `actions` hash handles it. To continue bubbling the action,\n    you must return `true` from the handler:\n       ```app/router.js\n    Router.map(function() {\n      this.route(\"album\", function() {\n        this.route(\"song\");\n      });\n    });\n    ```\n       ```app/routes/album.js\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      actions: {\n        startPlaying: function() {\n        }\n      }\n    });\n    ```\n       ```app/routes/album-song.js\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      actions: {\n        startPlaying() {\n          // ...\n             if (actionShouldAlsoBeTriggeredOnParentRoute) {\n            return true;\n          }\n        }\n      }\n    });\n    ```\n       @property actions\n    @type Object\n    @default null\n    @public\n  */\n  /**\n    Triggers a named action on the `ActionHandler`. Any parameters\n    supplied after the `actionName` string will be passed as arguments\n    to the action target function.\n       If the `ActionHandler` has its `target` property set, actions may\n    bubble to the `target`. Bubbling happens when an `actionName` can\n    not be found in the `ActionHandler`'s `actions` hash or if the\n    action target function returns `true`.\n       Example\n       ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      actions: {\n        playTheme() {\n          this.send('playMusic', 'theme.mp3');\n        },\n        playMusic(track) {\n          // ...\n        }\n      }\n    });\n    ```\n       @method send\n    @param {String} actionName The action to trigger\n    @param {*} context a context to send with the action\n    @public\n  */\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    if (this.actions && this.actions[actionName]) {\n      let shouldBubble = this.actions[actionName].apply(this, args) === true;\n      if (!shouldBubble) {\n        return;\n      }\n    }\n    let target = get(this, 'target');\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    }\n  }\n});\nexport default ActionHandler;","import Mixin from '@ember/object/mixin';\nconst Comparable = Mixin.create({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n       Override to return the result of the comparison of the two parameters. The\n    compare method should return:\n       - `-1` if `a < b`\n    - `0` if `a == b`\n    - `1` if `a > b`\n       Default implementation raises an exception.\n       @method compare\n    @param a {Object} the first object to compare\n    @param b {Object} the second object to compare\n    @return {Number} the result of the comparison\n    @private\n  */\n  compare: null\n});\nexport default Comparable;","import { schedule, join } from '@ember/runloop';\nimport Mixin from '@ember/object/mixin';\nconst ContainerProxyMixin = Mixin.create({\n  /**\n   The container stores state.\n      @private\n   @property {Ember.Container} __container__\n   */\n  __container__: null,\n  ownerInjection() {\n    return this.__container__.ownerInjection();\n  },\n  lookup(fullName, options) {\n    return this.__container__.lookup(fullName, options);\n  },\n  destroy() {\n    let container = this.__container__;\n    if (container) {\n      join(() => {\n        container.destroy();\n        schedule('destroy', container, 'finalizeDestroy');\n      });\n    }\n    this._super();\n  },\n  factoryFor(fullName) {\n    return this.__container__.factoryFor(fullName);\n  }\n});\nexport default ContainerProxyMixin;","/**\n@module ember\n*/\nimport { assert } from '@ember/debug';\nimport Mixin from '@ember/object/mixin';\nconst RegistryProxyMixin = Mixin.create({\n  __registry__: null,\n  resolveRegistration(fullName) {\n    assert('fullName must be a proper full name', this.__registry__.isValidFullName(fullName));\n    return this.__registry__.resolve(fullName);\n  },\n  register: registryAlias('register'),\n  unregister: registryAlias('unregister'),\n  hasRegistration: registryAlias('has'),\n  registeredOption: registryAlias('getOption'),\n  registerOptions: registryAlias('options'),\n  registeredOptions: registryAlias('getOptions'),\n  registerOptionsForType: registryAlias('optionsForType'),\n  registeredOptionsForType: registryAlias('getOptionsForType')\n});\nfunction registryAlias(name) {\n  return function (...args) {\n    // We need this cast because `Parameters` is deferred so that it is not\n    // possible for TS to see it will always produce the right type. However,\n    // since `AnyFn` has a rest type, it is allowed. See discussion on [this\n    // issue](https://github.com/microsoft/TypeScript/issues/47615).\n    return this.__registry__[name](...args);\n  };\n}\nexport default RegistryProxyMixin;","/**\n@module ember\n*/\nimport { context } from '@ember/-internals/environment';\nimport { get, computed } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nconst TargetActionSupport = Mixin.create({\n  target: null,\n  action: null,\n  actionContext: null,\n  actionContextObject: computed('actionContext', function () {\n    let actionContext = get(this, 'actionContext');\n    if (typeof actionContext === 'string') {\n      let value = get(this, actionContext);\n      if (value === undefined) {\n        value = get(context.lookup, actionContext);\n      }\n      return value;\n    } else {\n      return actionContext;\n    }\n  }),\n  /**\n  Send an `action` with an `actionContext` to a `target`. The action, actionContext\n  and target will be retrieved from properties of the object. For example:\n     ```javascript\n  import { alias } from '@ember/object/computed';\n     App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    action: 'save',\n    actionContext: alias('context'),\n    click() {\n      this.triggerAction(); // Sends the `save` action, along with the current context\n                            // to the current controller\n    }\n  });\n  ```\n     The `target`, `action`, and `actionContext` can be provided as properties of\n  an optional object argument to `triggerAction` as well.\n     ```javascript\n  App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    click() {\n      this.triggerAction({\n        action: 'save',\n        target: this.get('controller'),\n        actionContext: this.get('context')\n      }); // Sends the `save` action, along with the current context\n          // to the current controller\n    }\n  });\n  ```\n     The `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\n  But `target` and `action` must be specified either as properties or with the argument\n  to `triggerAction`, or a combination:\n     ```javascript\n  import { alias } from '@ember/object/computed';\n     App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    click() {\n      this.triggerAction({\n        action: 'save'\n      }); // Sends the `save` action, along with a reference to `this`,\n          // to the current controller\n    }\n  });\n  ```\n     @method triggerAction\n  @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n  @return {Boolean} true if the action was sent successfully and did not return false\n  @private\n  */\n  triggerAction(opts = {}) {\n    let {\n      action,\n      target,\n      actionContext\n    } = opts;\n    action = action || get(this, 'action');\n    target = target || getTarget(this);\n    if (actionContext === undefined) {\n      actionContext = get(this, 'actionContextObject') || this;\n    }\n    let context = Array.isArray(actionContext) ? actionContext : [actionContext];\n    if (target && action) {\n      let ret;\n      if (isSendable(target)) {\n        ret = target.send(action, ...context);\n      } else {\n        assert(`The action '${action}' did not exist on ${target}`, typeof target[action] === 'function');\n        ret = target[action](...context);\n      }\n      if (ret !== false) {\n        return true;\n      }\n    }\n    return false;\n  }\n});\nfunction isSendable(obj) {\n  return obj != null && typeof obj === 'object' && typeof obj.send === 'function';\n}\nfunction getTarget(instance) {\n  let target = get(instance, 'target');\n  if (target) {\n    if (typeof target === 'string') {\n      let value = get(instance, target);\n      if (value === undefined) {\n        value = get(context.lookup, target);\n      }\n      return value;\n    } else {\n      return target;\n    }\n  }\n  if (instance._target) {\n    return instance._target;\n  }\n  return null;\n}\nif (DEBUG) {\n  Object.seal(TargetActionSupport);\n}\nexport default TargetActionSupport;","/*\n  This module exists to separate the @ember/string methods used\n  internally in ember-source, from those public methods that are\n  now deprecated and to be removed.\n*/\nimport { Cache } from '@ember/-internals/utils';\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DASHERIZE_CACHE = new Cache(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\nconst STRING_CLASSIFY_REGEXP_1 = /^(-|_)+(.)?/;\nconst STRING_CLASSIFY_REGEXP_2 = /(.)(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\nconst CLASSIFY_CACHE = new Cache(1000, str => {\n  let replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n  let replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n  let parts = str.split('/');\n  for (let i = 0; i < parts.length; i++) {\n    parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n  }\n  return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match /*, separator, chr */) => match.toUpperCase());\n});\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst DECAMELIZE_CACHE = new Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n/**\n Defines string helper methods used internally in ember-source.\n\n @class String\n @private\n */\n/**\n Replaces underscores, spaces, or camelCase with dashes.\n\n ```javascript\n import { dasherize } from '@ember/-internals/string';\n\n dasherize('innerHTML');                // 'inner-html'\n dasherize('action_name');              // 'action-name'\n dasherize('css-class-name');           // 'css-class-name'\n dasherize('my favorite items');        // 'my-favorite-items'\n dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n ```\n\n @method dasherize\n @param {String} str The string to dasherize.\n @return {String} the dasherized string.\n @private\n */\nexport function dasherize(str) {\n  return STRING_DASHERIZE_CACHE.get(str);\n}\n/**\n Returns the UpperCamelCase form of a string.\n\n ```javascript\n import { classify } from '@ember/string';\n\n classify('innerHTML');                   // 'InnerHTML'\n classify('action_name');                 // 'ActionName'\n classify('css-class-name');              // 'CssClassName'\n classify('my favorite items');           // 'MyFavoriteItems'\n classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n ```\n\n @method classify\n @param {String} str the string to classify\n @return {String} the classified string\n @private\n */\nexport function classify(str) {\n  return CLASSIFY_CACHE.get(str);\n}\n/**\n Converts a camelized string into all lower case separated by underscores.\n\n ```javascript\n decamelize('innerHTML');          // 'inner_html'\n decamelize('action_name');        // 'action_name'\n decamelize('css-class-name');     // 'css-class-name'\n decamelize('my favorite items');  // 'my favorite items'\n ```\n */\nfunction decamelize(str) {\n  return DECAMELIZE_CACHE.get(str);\n}","export class Opaque {}","import { DEBUG } from '@glimmer/env';\nimport { assert } from '@ember/debug';\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = Object.create(null);\n  obj[str] = 1;\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n  return str;\n}\n\n/**\n  Returns whether Type(value) is Object.\n\n  Useful for checking whether a value is a valid WeakMap key.\n\n  Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation\n        https://tc39.github.io/ecma262/#sec-weakmap.prototype.set\n\n  @private\n  @function isObject\n*/\nfunction isObject(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\n/**\n @module @ember/object\n*/\n/**\n @private\n @return {Number} the uuid\n */\nlet _uuid = 0;\n/**\n Generates a universally unique identifier. This method\n is used internally by Ember for assisting with\n the generation of GUID's and other unique identifiers.\n\n @public\n @return {Number} [description]\n */\nfunction uuid() {\n  return ++_uuid;\n}\n/**\n Prefix used for guids through out Ember.\n @private\n @property GUID_PREFIX\n @for Ember\n @type String\n @final\n */\nconst GUID_PREFIX = 'ember';\n// Used for guid generation...\nconst OBJECT_GUIDS = new WeakMap();\nconst NON_OBJECT_GUIDS = new Map();\n/**\n  A unique key used to assign guids and other private metadata to objects.\n  If you inspect an object in your browser debugger you will often see these.\n  They can be safely ignored.\n\n  On browsers that support it, these properties are added with enumeration\n  disabled so they won't show up when you iterate over your properties.\n\n  @private\n  @property GUID_KEY\n  @for Ember\n  @type String\n  @final\n*/\nconst GUID_KEY = intern(`__ember${Date.now()}`);\n/**\n  Generates a new guid, optionally saving the guid to the object that you\n  pass in. You will rarely need to use this method. Instead you should\n  call `guidFor(obj)`, which return an existing guid if available.\n\n  @private\n  @method generateGuid\n  @static\n  @for @ember/object/internals\n  @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n    be saved on the object and reused whenever you pass the same object\n    again.\n\n    If no object is passed, just generate a new guid.\n  @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n    separate the guid into separate namespaces.\n  @return {String} the guid\n*/\nfunction generateGuid(obj, prefix = GUID_PREFIX) {\n  let guid = prefix + uuid().toString();\n  if (isObject(obj)) {\n    OBJECT_GUIDS.set(obj, guid);\n  }\n  return guid;\n}\n/**\n  Returns a unique id for the object. If the object does not yet have a guid,\n  one will be assigned to it. You can call this on any object,\n  `EmberObject`-based or not.\n\n  You can also use this method on DOM Element objects.\n\n  @public\n  @static\n  @method guidFor\n  @for @ember/object/internals\n  @param {Object} obj any object, string, number, Element, or primitive\n  @return {String} the unique guid for this instance.\n*/\nfunction guidFor(value) {\n  let guid;\n  if (isObject(value)) {\n    guid = OBJECT_GUIDS.get(value);\n    if (guid === undefined) {\n      guid = `${GUID_PREFIX}${uuid()}`;\n      OBJECT_GUIDS.set(value, guid);\n    }\n  } else {\n    guid = NON_OBJECT_GUIDS.get(value);\n    if (guid === undefined) {\n      let type = typeof value;\n      if (type === 'string') {\n        guid = `st${uuid()}`;\n      } else if (type === 'number') {\n        guid = `nu${uuid()}`;\n      } else if (type === 'symbol') {\n        guid = `sy${uuid()}`;\n      } else {\n        guid = `(${value})`;\n      }\n      NON_OBJECT_GUIDS.set(value, guid);\n    }\n  }\n  return guid;\n}\n\nconst GENERATED_SYMBOLS = [];\nfunction isInternalSymbol(possibleSymbol) {\n  return GENERATED_SYMBOLS.indexOf(possibleSymbol) !== -1;\n}\n// Some legacy symbols still need to be enumerable for a variety of reasons.\n// This code exists for that, and as a fallback in IE11. In general, prefer\n// `symbol` below when creating a new symbol.\nfunction enumerableSymbol(debugName) {\n  // TODO: Investigate using platform symbols, but we do not\n  // want to require non-enumerability for this API, which\n  // would introduce a large cost.\n  let id = GUID_KEY + Math.floor(Math.random() * Date.now()).toString();\n  let symbol = intern(`__${debugName}${id}__`);\n  if (DEBUG) {\n    GENERATED_SYMBOLS.push(symbol);\n  }\n  return symbol;\n}\nconst symbol = Symbol;\n\n// the delete is meant to hint at runtimes that this object should remain in\n// dictionary mode. This is clearly a runtime specific hack, but currently it\n// appears worthwhile in some usecases. Please note, these deletes do increase\n// the cost of creation dramatically over a plain Object.create. And as this\n// only makes sense for long-lived dictionaries that aren't instantiated often.\nfunction makeDictionary(parent) {\n  let dict = Object.create(parent);\n  dict['_dict'] = null;\n  delete dict['_dict'];\n  return dict;\n}\n\nlet getDebugName;\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n    if (functionName === undefined) {\n      let match = Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);\n      functionName = match && match[1] || '';\n    }\n    return functionName.replace(/^bound /, '');\n  };\n  let getObjectName = obj => {\n    let name;\n    let className;\n    if (obj.constructor && obj.constructor !== Object) {\n      className = getFunctionName(obj.constructor);\n    }\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    }\n    // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n    if (name && name.match(/<.*:ember\\d+>/) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/, `<${className}:`);\n    }\n    return name || className;\n  };\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n  getDebugName = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\nvar getDebugName$1 = getDebugName;\n\nconst HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\nconst fnToString = Function.prototype.toString;\nconst checkHasSuper = (() => {\n  let sourceAvailable = fnToString.call(function () {\n    return this;\n  }).indexOf('return this') > -1;\n  if (sourceAvailable) {\n    return function checkHasSuper(func) {\n      return HAS_SUPER_PATTERN.test(fnToString.call(func));\n    };\n  }\n  return function checkHasSuper() {\n    return true;\n  };\n})();\nconst HAS_SUPER_MAP = new WeakMap();\nconst ROOT = Object.freeze(function () {});\nHAS_SUPER_MAP.set(ROOT, false);\nfunction hasSuper(func) {\n  let hasSuper = HAS_SUPER_MAP.get(func);\n  if (hasSuper === undefined) {\n    hasSuper = checkHasSuper(func);\n    HAS_SUPER_MAP.set(func, hasSuper);\n  }\n  return hasSuper;\n}\nclass ObserverListenerMeta {\n  constructor() {\n    this.listeners = undefined;\n    this.observers = undefined;\n  }\n}\nconst OBSERVERS_LISTENERS_MAP = new WeakMap();\nfunction createObserverListenerMetaFor(fn) {\n  let meta = OBSERVERS_LISTENERS_MAP.get(fn);\n  if (meta === undefined) {\n    meta = new ObserverListenerMeta();\n    OBSERVERS_LISTENERS_MAP.set(fn, meta);\n  }\n  return meta;\n}\nfunction observerListenerMetaFor(fn) {\n  return OBSERVERS_LISTENERS_MAP.get(fn);\n}\nfunction setObservers(func, observers) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.observers = observers;\n}\nfunction setListeners(func, listeners) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.listeners = listeners;\n}\nconst IS_WRAPPED_FUNCTION_SET = new WeakSet();\n/**\n  Wraps the passed function so that `this._super` will point to the superFunc\n  when the function is invoked. This is the primitive we use to implement\n  calls to super.\n\n  @private\n  @method wrap\n  @for Ember\n  @param {Function} func The function to call\n  @param {Function} superFunc The super function.\n  @return {Function} wrapped function.\n*/\nfunction wrap(func, superFunc) {\n  if (!hasSuper(func)) {\n    return func;\n  }\n  // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n  if (!IS_WRAPPED_FUNCTION_SET.has(superFunc) && hasSuper(superFunc)) {\n    return _wrap(func, _wrap(superFunc, ROOT));\n  }\n  return _wrap(func, superFunc);\n}\nfunction _wrap(func, superFunc) {\n  function superWrapper() {\n    let orig = this._super;\n    this._super = superFunc;\n    let ret = func.apply(this, arguments);\n    this._super = orig;\n    return ret;\n  }\n  IS_WRAPPED_FUNCTION_SET.add(superWrapper);\n  let meta = OBSERVERS_LISTENERS_MAP.get(func);\n  if (meta !== undefined) {\n    OBSERVERS_LISTENERS_MAP.set(superWrapper, meta);\n  }\n  return superWrapper;\n}\n\nfunction lookupDescriptor(obj, keyName) {\n  let current = obj;\n  do {\n    let descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n    if (descriptor !== undefined) {\n      return descriptor;\n    }\n    current = Object.getPrototypeOf(current);\n  } while (current !== null);\n  return null;\n}\n\n/**\n  Checks to see if the `methodName` exists on the `obj`.\n\n  ```javascript\n  let foo = { bar: function() { return 'bar'; }, baz: null };\n\n  Ember.canInvoke(foo, 'bar'); // true\n  Ember.canInvoke(foo, 'baz'); // false\n  Ember.canInvoke(foo, 'bat'); // false\n  ```\n\n  @method canInvoke\n  @for Ember\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @return {Boolean}\n  @private\n*/\nfunction canInvoke(obj, methodName) {\n  return obj != null && typeof obj[methodName] === 'function';\n}\n/**\n  @module @ember/utils\n*/\n\nconst NAMES = new WeakMap();\nfunction setName(obj, name) {\n  if (isObject(obj)) NAMES.set(obj, name);\n}\nfunction getName(obj) {\n  return NAMES.get(obj);\n}\n\nconst objectToString = Object.prototype.toString;\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n/*\n A `toString` util function that supports objects without a `toString`\n method, e.g. an object created with `Object.create(null)`.\n*/\nfunction toString(obj) {\n  if (typeof obj === 'string') {\n    return obj;\n  }\n  if (null === obj) return 'null';\n  if (undefined === obj) return 'undefined';\n  if (Array.isArray(obj)) {\n    // Reimplement Array.prototype.join according to spec (22.1.3.13)\n    // Changing ToString(element) with this safe version of ToString.\n    let r = '';\n    for (let k = 0; k < obj.length; k++) {\n      if (k > 0) {\n        r += ',';\n      }\n      if (!isNone(obj[k])) {\n        r += toString(obj[k]);\n      }\n    }\n    return r;\n  }\n  if (typeof obj.toString === 'function') {\n    return obj.toString();\n  }\n  return objectToString.call(obj);\n}\n\nconst PROXIES = new WeakSet();\nfunction isProxy(value) {\n  if (isObject(value)) {\n    return PROXIES.has(value);\n  }\n  return false;\n}\nfunction setProxy(object) {\n  if (isObject(object)) {\n    PROXIES.add(object);\n  }\n}\n\nclass Cache {\n  constructor(limit, func, store = new Map()) {\n    this.limit = limit;\n    this.func = func;\n    this.store = store;\n    this.size = 0;\n    this.misses = 0;\n    this.hits = 0;\n  }\n  get(key) {\n    if (this.store.has(key)) {\n      this.hits++;\n      // SAFETY: we know the value is present because `.has(key)` was `true`.\n      return this.store.get(key);\n    } else {\n      this.misses++;\n      return this.set(key, this.func(key));\n    }\n  }\n  set(key, value) {\n    if (this.limit > this.size) {\n      this.size++;\n      this.store.set(key, value);\n    }\n    return value;\n  }\n  purge() {\n    this.store.clear();\n    this.size = 0;\n    this.hits = 0;\n    this.misses = 0;\n  }\n}\n\nlet setupMandatorySetter;\nlet teardownMandatorySetter;\nlet setWithMandatorySetter;\nfunction isElementKey(key) {\n  return typeof key === 'number' ? isPositiveInt(key) : isStringInt(key);\n}\nfunction isStringInt(str) {\n  let num = parseInt(str, 10);\n  return isPositiveInt(num) && str === String(num);\n}\nfunction isPositiveInt(num) {\n  return num >= 0 && num % 1 === 0;\n}\nif (DEBUG) {\n  let SEEN_TAGS = new WeakSet();\n  let MANDATORY_SETTERS = new WeakMap();\n  let propertyIsEnumerable = function (obj, key) {\n    return Object.prototype.propertyIsEnumerable.call(obj, key);\n  };\n  setupMandatorySetter = function (tag, obj, keyName) {\n    if (SEEN_TAGS.has(tag)) {\n      return;\n    }\n    SEEN_TAGS.add(tag);\n    if (Array.isArray(obj) && isElementKey(keyName)) {\n      return;\n    }\n    let desc = lookupDescriptor(obj, keyName) || {};\n    if (desc.get || desc.set) {\n      // if it has a getter or setter, we can't install the mandatory setter.\n      // native setters are allowed, we have to assume that they will resolve\n      // to tracked properties.\n      return;\n    }\n    if (desc && (!desc.configurable || !desc.writable)) {\n      // if it isn't writable anyways, so we shouldn't provide the setter.\n      // if it isn't configurable, we can't overwrite it anyways.\n      return;\n    }\n    let setters = MANDATORY_SETTERS.get(obj);\n    if (setters === undefined) {\n      setters = {};\n      MANDATORY_SETTERS.set(obj, setters);\n    }\n    desc.hadOwnProperty = Object.hasOwnProperty.call(obj, keyName);\n    setters[keyName] = desc;\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable: propertyIsEnumerable(obj, keyName),\n      get() {\n        if (desc.get) {\n          return desc.get.call(this);\n        } else {\n          return desc.value;\n        }\n      },\n      set(value) {\n        assert(`You attempted to update ${this}.${String(keyName)} to \"${String(value)}\", but it is being tracked by a tracking context, such as a template, computed property, or observer. In order to make sure the context updates properly, you must invalidate the property when updating it. You can mark the property as \\`@tracked\\`, or use \\`@ember/object#set\\` to do this.`);\n      }\n    });\n  };\n  teardownMandatorySetter = function (obj, keyName) {\n    let setters = MANDATORY_SETTERS.get(obj);\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      Object.defineProperty(obj, keyName, setters[keyName]);\n      delete setters[keyName];\n    }\n  };\n  setWithMandatorySetter = function (obj, keyName, value) {\n    let setters = MANDATORY_SETTERS.get(obj);\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      let setter = setters[keyName];\n      if (setter.set) {\n        setter.set.call(obj, value);\n      } else {\n        setter.value = value;\n        // If the object didn't have own property before, it would have changed\n        // the enumerability after setting the value the first time.\n        if (!setter.hadOwnProperty) {\n          let desc = lookupDescriptor(obj, keyName);\n          desc.enumerable = true;\n          Object.defineProperty(obj, keyName, desc);\n        }\n      }\n    } else {\n      obj[keyName] = value;\n    }\n  };\n}\n\nexport { Cache, GUID_KEY, ROOT, canInvoke, checkHasSuper, makeDictionary as dictionary, enumerableSymbol, generateGuid, getDebugName$1 as getDebugName, getName, guidFor, intern, isInternalSymbol, isObject, isProxy, lookupDescriptor, observerListenerMetaFor, setListeners, setName, setObservers, setProxy, setWithMandatorySetter, setupMandatorySetter, symbol, teardownMandatorySetter, toString, uuid, wrap };\n","export const MUTABLE_CELL = Symbol('MUTABLE_CELL');","import { dictionary } from '@ember/-internals/utils';\nexport default dictionary(null);","import EmberObject from '@ember/object';\nexport default EmberObject.extend({\n  componentFor(name, owner) {\n    let fullName = `component:${name}`;\n    return owner.factoryFor(fullName);\n  },\n  layoutFor(name, owner, options) {\n    let templateFullName = `template:components/${name}`;\n    return owner.lookup(templateFullName, options);\n  }\n});","/**\n @module ember\n*/\nimport { get } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { assert, inspect } from '@ember/debug';\nconst ActionSupport = Mixin.create({\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    let action = this.actions && this.actions[actionName];\n    if (action) {\n      let shouldBubble = action.apply(this, args) === true;\n      if (!shouldBubble) {\n        return;\n      }\n    }\n    let target = get(this, 'target');\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    } else {\n      assert(`${inspect(this)} had no action handler for: ${actionName}`, action);\n    }\n  }\n});\nexport default ActionSupport;","import { nativeDescDecorator } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { getChildViews, addChildView } from '../system/utils';\nconst ChildViewsSupport = Mixin.create({\n  /**\n    Array of child views. You should never edit this array directly.\n       @property childViews\n    @type Array\n    @default []\n    @private\n  */\n  childViews: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n    get() {\n      return getChildViews(this);\n    }\n  }),\n  appendChild(view) {\n    addChildView(this, view);\n  }\n});\nexport default ChildViewsSupport;","/**\n@module ember\n*/\nimport { descriptorForProperty } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { assert } from '@ember/debug';\nconst EMPTY_ARRAY = Object.freeze([]);\nconst ClassNamesSupport = Mixin.create({\n  concatenatedProperties: ['classNames', 'classNameBindings'],\n  init() {\n    this._super(...arguments);\n    assert(`Only arrays are allowed for 'classNameBindings'`, descriptorForProperty(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings));\n    assert(`Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.`, descriptorForProperty(this, 'classNames') === undefined && Array.isArray(this.classNames));\n  },\n  /**\n    Standard CSS class names to apply to the view's outer element. This\n    property automatically inherits any class names defined by the view's\n    superclasses as well.\n       @property classNames\n    @type Array\n    @default ['ember-view']\n    @public\n  */\n  classNames: EMPTY_ARRAY,\n  /**\n    A list of properties of the view to apply as class names. If the property\n    is a string value, the value of that string will be applied as a class\n    name.\n       ```javascript\n    // Applies the 'high' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['priority'],\n      priority: 'high'\n    });\n    ```\n       If the value of the property is a Boolean, the name of that property is\n    added as a dasherized class name.\n       ```javascript\n    // Applies the 'is-urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent'],\n      isUrgent: true\n    });\n    ```\n       If you would prefer to use a custom value instead of the dasherized\n    property name, you can pass a binding like this:\n       ```javascript\n    // Applies the 'urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent:urgent'],\n      isUrgent: true\n    });\n    ```\n       If you would like to specify a class that should only be added when the\n    property is false, you can declare a binding like this:\n       ```javascript\n    // Applies the 'disabled' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isEnabled::disabled'],\n      isEnabled: false\n    });\n    ```\n       This list of properties is inherited from the component's superclasses as well.\n       @property classNameBindings\n    @type Array\n    @default []\n    @public\n  */\n  classNameBindings: EMPTY_ARRAY\n});\nexport default ClassNamesSupport;","/**\n@module ember\n*/\nimport Mixin from '@ember/object/mixin';\nconst ViewStateSupport = Mixin.create({\n  _transitionTo(state) {\n    let priorState = this._currentState;\n    let currentState = this._currentState = this._states[state];\n    this._state = state;\n    if (priorState && priorState.exit) {\n      priorState.exit(this);\n    }\n    if (currentState.enter) {\n      currentState.enter(this);\n    }\n  }\n});\nexport default ViewStateSupport;","import { guidFor } from '@ember/-internals/utils';\nimport { descriptorForProperty, nativeDescDecorator } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { assert } from '@ember/debug';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { matches } from '../system/utils';\nfunction K() {\n  return this;\n}\nconst ViewMixin = Mixin.create({\n  /**\n   A list of properties of the view to apply as attributes. If the property\n   is a string value, the value of that string will be applied as the value\n   for an attribute of the property's name.\n      The following example creates a tag like `<div priority=\"high\" />`.\n      ```app/components/my-component.js\n   import Component from '@ember/component';\n      export default Component.extend({\n      attributeBindings: ['priority'],\n      priority: 'high'\n    });\n   ```\n      If the value of the property is a Boolean, the attribute is treated as\n   an HTML Boolean attribute. It will be present if the property is `true`\n   and omitted if the property is `false`.\n      The following example creates markup like `<div visible />`.\n      ```app/components/my-component.js\n   import Component from '@ember/component';\n      export default Component.extend({\n      attributeBindings: ['visible'],\n      visible: true\n    });\n   ```\n      If you would prefer to use a custom value instead of the property name,\n   you can create the same markup as the last example with a binding like\n   this:\n      ```app/components/my-component.js\n   import Component from '@ember/component';\n      export default Component.extend({\n      attributeBindings: ['isVisible:visible'],\n      isVisible: true\n    });\n   ```\n      This list of attributes is inherited from the component's superclasses,\n   as well.\n      @property attributeBindings\n   @type Array\n   @default []\n   @public\n   */\n  concatenatedProperties: ['attributeBindings'],\n  // ..........................................................\n  // TEMPLATE SUPPORT\n  //\n  /**\n   Return the nearest ancestor that is an instance of the provided\n   class or mixin.\n      @method nearestOfType\n   @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n   or an instance of Mixin.\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestOfType(klass) {\n    let view = this.parentView;\n    let isOfType = klass instanceof Mixin ? view => klass.detect(view) : view => klass.detect(view.constructor);\n    while (view) {\n      if (isOfType(view)) {\n        return view;\n      }\n      view = view.parentView;\n    }\n    return;\n  },\n  /**\n   Return the nearest ancestor that has a given property.\n      @method nearestWithProperty\n   @param {String} property A property name\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestWithProperty(property) {\n    let view = this.parentView;\n    while (view) {\n      if (property in view) {\n        return view;\n      }\n      view = view.parentView;\n    }\n  },\n  /**\n   Renders the view again. This will work regardless of whether the\n   view is already in the DOM or not. If the view is in the DOM, the\n   rendering process will be deferred to give bindings a chance\n   to synchronize.\n      If children were added during the rendering process using `appendChild`,\n   `rerender` will remove them, because they will be added again\n   if needed by the next `render`.\n      In general, if the display of your view changes, you should modify\n   the DOM element directly instead of manually calling `rerender`, which can\n   be slow.\n      @method rerender\n   @public\n   */\n  rerender() {\n    return this._currentState.rerender(this);\n  },\n  // ..........................................................\n  // ELEMENT SUPPORT\n  //\n  /**\n   Returns the current DOM element for the view.\n       @property element\n    @type DOMElement\n    @public\n  */\n  element: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n    get() {\n      return this.renderer.getElement(this);\n    }\n  }),\n  /**\n   Appends the view's element to the specified parent element.\n      Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the given element until all bindings have\n   finished synchronizing.\n      This is not typically a function that you will need to call directly when\n   building your application. If you do need to use `appendTo`, be sure that\n   the target element you are providing is associated with an `Application`\n   and does not have an ancestor element that is associated with an Ember view.\n      @method appendTo\n   @param {String|DOMElement} A selector, element, HTML string\n   @return {Ember.View} receiver\n   @private\n   */\n  appendTo(selector) {\n    let target;\n    if (hasDOM) {\n      assert(`Expected a selector or instance of Element`, typeof selector === 'string' || selector instanceof Element);\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n      assert(`You tried to append to (${selector}) but that isn't in the DOM`, target);\n      assert('You cannot append to an existing Ember.View.', !matches(target, '.ember-view'));\n      assert('You cannot append to an existing Ember.View.', (() => {\n        let node = target.parentNode;\n        while (node instanceof Element) {\n          if (matches(node, '.ember-view')) {\n            return false;\n          }\n          node = node.parentNode;\n        }\n        return true;\n      })());\n    } else {\n      target = selector;\n      assert(`You tried to append to a selector string (${selector}) in an environment without a DOM`, typeof target !== 'string');\n      assert(`You tried to append to a non-Element (${selector}) in an environment without a DOM`, typeof target.appendChild === 'function');\n    }\n    // SAFETY: SimpleElement is supposed to be a subset of Element so this _should_ be safe.\n    // However, the types are more specific in some places which necessitates the `as`.\n    this.renderer.appendTo(this, target);\n    return this;\n  },\n  /**\n   Appends the view's element to the document body. If the view does\n   not have an HTML representation yet\n   the element will be generated automatically.\n      If your application uses the `rootElement` property, you must append\n   the view within that element. Rendering views outside of the `rootElement`\n   is not supported.\n      Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the document body until all bindings have\n   finished synchronizing.\n      @method append\n   @return {Ember.View} receiver\n   @private\n   */\n  append() {\n    return this.appendTo(document.body);\n  },\n  /**\n   The HTML `id` of the view's element in the DOM. You can provide this\n   value yourself but it must be unique (just as in HTML):\n      ```handlebars\n   {{my-component elementId=\"a-really-cool-id\"}}\n   ```\n      If not manually set a default value will be provided by the framework.\n      Once rendered an element's `elementId` is considered immutable and you\n   should never change it. If you need to compute a dynamic value for the\n   `elementId`, you should do this when the component or element is being\n   instantiated:\n      ```app/components/my-component.js\n   import Component from '@ember/component';\n      export default Component.extend({\n      init() {\n        this._super(...arguments);\n        let index = this.get('index');\n        this.set('elementId', 'component-id' + index);\n      }\n    });\n   ```\n      @property elementId\n   @type String\n   @public\n   */\n  elementId: null,\n  /**\n   Called when a view is going to insert an element into the DOM.\n      @event willInsertElement\n   @public\n   */\n  willInsertElement: K,\n  /**\n   Called when the element of the view has been inserted into the DOM.\n   Override this function to do any set up that requires an element\n   in the document body.\n      When a view has children, didInsertElement will be called on the\n   child view(s) first and on itself afterwards.\n      @event didInsertElement\n   @public\n   */\n  didInsertElement: K,\n  /**\n   Called when the view is about to rerender, but before anything has\n   been torn down. This is a good opportunity to tear down any manual\n   observers you have installed based on the DOM state\n      @event willClearRender\n   @public\n   */\n  willClearRender: K,\n  /**\n   You must call `destroy` on a view to destroy the view (and all of its\n   child views). This will remove the view from any parent node, then make\n   sure that the DOM element managed by the view can be released by the\n   memory manager.\n      @method destroy\n   @private\n   */\n  destroy() {\n    this._super(...arguments);\n    this._currentState.destroy(this);\n  },\n  /**\n   Called when the element of the view is going to be destroyed. Override\n   this function to do any teardown that requires an element, like removing\n   event listeners.\n      Please note: any property changes made during this event will have no\n   effect on object observers.\n      @event willDestroyElement\n   @public\n   */\n  willDestroyElement: K,\n  /**\n   Called after the element of the view is destroyed.\n      @event willDestroyElement\n   @public\n   */\n  didDestroyElement: K,\n  /**\n   Called when the parentView property has changed.\n      @event parentViewDidChange\n   @private\n   */\n  parentViewDidChange: K,\n  // ..........................................................\n  // STANDARD RENDER PROPERTIES\n  //\n  /**\n   Tag name for the view's outer element. The tag name is only used when an\n   element is first created. If you change the `tagName` for an element, you\n   must destroy and recreate the view element.\n      By default, the render buffer will use a `<div>` tag for views.\n      If the tagName is `''`, the view will be tagless, with no outer element.\n   Component properties that depend on the presence of an outer element, such\n   as `classNameBindings` and `attributeBindings`, do not work with tagless\n   components. Tagless components cannot implement methods to handle events,\n   and their `element` property has a `null` value.\n      @property tagName\n   @type String\n   @default null\n   @public\n   */\n  // We leave this null by default so we can tell the difference between\n  // the default case and a user-specified tag.\n  tagName: null,\n  // .......................................................\n  // CORE DISPLAY METHODS\n  //\n  /**\n   Setup a view, but do not finish waking it up.\n      * configure `childViews`\n   * register the view with the global views hash, which is used for event\n   dispatch\n      @method init\n   @private\n   */\n  init() {\n    this._super(...arguments);\n    assert(`You cannot use a computed property for the component's \\`elementId\\` (${this}).`, descriptorForProperty(this, 'elementId') === undefined);\n    assert(`You cannot use a computed property for the component's \\`tagName\\` (${this}).`, descriptorForProperty(this, 'tagName') === undefined);\n    if (!this.elementId && this.tagName !== '') {\n      this.elementId = guidFor(this);\n    }\n    assert('Using a custom `.render` function is no longer supported.', !this.render);\n  },\n  // .......................................................\n  // EVENT HANDLING\n  //\n  /**\n   Handle events from `EventDispatcher`\n      @method handleEvent\n   @param eventName {String}\n   @param evt {Event}\n   @private\n   */\n  handleEvent(eventName, evt) {\n    return this._currentState.handleEvent(this, eventName, evt);\n  }\n});\nexport default ViewMixin;","/**\n@module ember\n*/\nexport default function ActionManager() {}\n/**\n  Global action id hash.\n\n  @private\n  @property registeredActions\n  @type Object\n*/\nActionManager.registeredActions = {};","import { getOwner } from '@ember/-internals/owner';\nimport { assert } from '@ember/debug';\nimport { get, set } from '@ember/-internals/metal';\nimport EmberObject from '@ember/object';\nimport { getElementView } from '@ember/-internals/views';\nimport ActionManager from './action_manager';\n/**\n@module ember\n*/\nconst ROOT_ELEMENT_CLASS = 'ember-application';\nconst ROOT_ELEMENT_SELECTOR = `.${ROOT_ELEMENT_CLASS}`;\n/**\n  `Ember.EventDispatcher` handles delegating browser events to their\n  corresponding `Ember.Views.` For example, when you click on a view,\n  `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\n  called.\n\n  @class EventDispatcher\n  @namespace Ember\n  @private\n  @extends EmberObject\n*/\nexport default class EventDispatcher extends EmberObject {\n  constructor() {\n    super(...arguments);\n    /**\n      The set of events names (and associated handler function names) to be setup\n      and dispatched by the `EventDispatcher`. Modifications to this list can be done\n      at setup time, generally via the `Application.customEvents` hash.\n             To add new events to be listened to:\n             ```javascript\n      import Application from '@ember/application';\n             let App = Application.create({\n        customEvents: {\n          paste: 'paste'\n        }\n      });\n      ```\n             To prevent default events from being listened to:\n             ```javascript\n      import Application from '@ember/application';\n             let App = Application.create({\n        customEvents: {\n          mouseenter: null,\n          mouseleave: null\n        }\n      });\n      ```\n      @property events\n      @type Object\n      @private\n    */\n    this.events = {\n      touchstart: 'touchStart',\n      touchmove: 'touchMove',\n      touchend: 'touchEnd',\n      touchcancel: 'touchCancel',\n      keydown: 'keyDown',\n      keyup: 'keyUp',\n      keypress: 'keyPress',\n      mousedown: 'mouseDown',\n      mouseup: 'mouseUp',\n      contextmenu: 'contextMenu',\n      click: 'click',\n      dblclick: 'doubleClick',\n      focusin: 'focusIn',\n      focusout: 'focusOut',\n      submit: 'submit',\n      input: 'input',\n      change: 'change',\n      dragstart: 'dragStart',\n      drag: 'drag',\n      dragenter: 'dragEnter',\n      dragleave: 'dragLeave',\n      dragover: 'dragOver',\n      drop: 'drop',\n      dragend: 'dragEnd'\n    };\n    /**\n      The root DOM element to which event listeners should be attached. Event\n      listeners will be attached to the document unless this is overridden.\n             Can be specified as a DOMElement or a selector string.\n             The default body is a string since this may be evaluated before document.body\n      exists in the DOM.\n             @private\n      @property rootElement\n      @type DOMElement\n      @default 'body'\n    */\n    this.rootElement = 'body';\n    this._eventHandlers = Object.create(null);\n    this._didSetup = false;\n    this.finalEventNameMapping = null;\n    this._sanitizedRootElement = null;\n    this.lazyEvents = new Map();\n    this._reverseEventNameMapping = null;\n  }\n  /**\n    Sets up event listeners for standard browser events.\n       This will be called after the browser sends a `DOMContentReady` event. By\n    default, it will set up all of the listeners on the document body. If you\n    would like to register the listeners on a different element, set the event\n    dispatcher's `root` property.\n       @private\n    @method setup\n    @param addedEvents {Object}\n  */\n  setup(addedEvents, _rootElement) {\n    assert('EventDispatcher should never be setup in fastboot mode. Please report this as an Ember bug.', (() => {\n      let owner = getOwner(this);\n      assert('[BUG] Missing owner', owner);\n      // SAFETY: This is not guaranteed to be safe, but this is what we expect to be returned.\n      let environment = owner.lookup('-environment:main');\n      return environment.isInteractive;\n    })());\n    let events = this.finalEventNameMapping = {\n      ...get(this, 'events'),\n      ...addedEvents\n    };\n    this._reverseEventNameMapping = Object.keys(events).reduce((result, key) => {\n      let eventName = events[key];\n      return eventName ? {\n        ...result,\n        [eventName]: key\n      } : result;\n    }, {});\n    let lazyEvents = this.lazyEvents;\n    if (_rootElement !== undefined && _rootElement !== null) {\n      set(this, 'rootElement', _rootElement);\n    }\n    let specifiedRootElement = get(this, 'rootElement');\n    let rootElement = typeof specifiedRootElement !== 'string' ? specifiedRootElement : document.querySelector(specifiedRootElement);\n    assert(`Could not find rootElement (${specifiedRootElement})`, rootElement);\n    assert(`You cannot use the same root element (${specifiedRootElement}) multiple times in an Ember.Application`, !rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n    assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', (() => {\n      let target = rootElement.parentNode;\n      while (target instanceof Element) {\n        if (target.classList.contains(ROOT_ELEMENT_CLASS)) {\n          return false;\n        }\n        target = target.parentNode;\n      }\n      return true;\n    })());\n    assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.querySelector(ROOT_ELEMENT_SELECTOR));\n    rootElement.classList.add(ROOT_ELEMENT_CLASS);\n    assert(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${get(this, 'rootElement') || rootElement.tagName}). Make sure you set rootElement to the body or an element in the body.`, rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n    // save off the final sanitized root element (for usage in setupHandler)\n    this._sanitizedRootElement = rootElement;\n    // setup event listeners for the non-lazily setup events\n    for (let event in events) {\n      if (Object.prototype.hasOwnProperty.call(events, event)) {\n        lazyEvents.set(event, events[event] ?? null);\n      }\n    }\n    this._didSetup = true;\n  }\n  /**\n    Setup event listeners for the given browser event name\n       @private\n    @method setupHandlerForBrowserEvent\n    @param event the name of the event in the browser\n  */\n  setupHandlerForBrowserEvent(event) {\n    assert('[BUG] Expected finalEventNameMapping to be set', this.finalEventNameMapping);\n    assert('[BUG] Expected _santizedRootElement to be set', this._sanitizedRootElement);\n    this.setupHandler(this._sanitizedRootElement, event, this.finalEventNameMapping[event] ?? null);\n  }\n  /**\n    Setup event listeners for the given Ember event name (camel case)\n       @private\n    @method setupHandlerForEmberEvent\n    @param eventName\n  */\n  setupHandlerForEmberEvent(eventName) {\n    assert('[BUG] Expected _sanitizedRootElement to be set', this._sanitizedRootElement);\n    let event = this._reverseEventNameMapping?.[eventName];\n    if (event) {\n      this.setupHandler(this._sanitizedRootElement, event, eventName);\n    }\n  }\n  /**\n    Registers an event listener on the rootElement. If the given event is\n    triggered, the provided event handler will be triggered on the target view.\n       If the target view does not implement the event handler, or if the handler\n    returns `false`, the parent view will be called. The event will continue to\n    bubble to each successive parent view until it reaches the top.\n       @private\n    @method setupHandler\n    @param {Element} rootElement\n    @param {String} event the name of the event in the browser\n    @param {String} eventName the name of the method to call on the view\n  */\n  setupHandler(rootElement, event, eventName) {\n    if (eventName === null || !this.lazyEvents.has(event)) {\n      return; // nothing to do\n    }\n\n    let viewHandler = (target, event) => {\n      let view = getElementView(target);\n      let result = true;\n      if (view) {\n        // SAFETY: As currently written, this is not safe. Though it seems to always be true.\n        result = view.handleEvent(eventName, event);\n      }\n      return result;\n    };\n    let actionHandler = (target, event) => {\n      let actionId = target.getAttribute('data-ember-action');\n      let actions;\n      // In Glimmer2 this attribute is set to an empty string and an additional\n      // attribute it set for each action on a given element. In this case, the\n      // attributes need to be read so that a proper set of action handlers can\n      // be coalesced.\n      if (actionId === '') {\n        actions = [];\n        for (let attr of target.attributes) {\n          let attrName = attr.name;\n          if (attrName.indexOf('data-ember-action-') === 0) {\n            let action = ActionManager.registeredActions[attr.value];\n            assert('[BUG] Missing action', action);\n            actions.push(action);\n          }\n        }\n      } else if (actionId) {\n        // FIXME: This branch is never called in tests. Improve tests or remove\n        let actionState = ActionManager.registeredActions[actionId];\n        if (actionState) {\n          actions = [actionState];\n        }\n      }\n      // We have to check for actions here since in some cases, jQuery will trigger\n      // an event on `removeChild` (i.e. focusout) after we've already torn down the\n      // action handlers for the view.\n      if (!actions) {\n        // FIXME: This branch is never called in tests. Improve tests or remove\n        return;\n      }\n      let result = true;\n      for (let index = 0; index < actions.length; index++) {\n        let action = actions[index];\n        if (action && action.eventName === eventName) {\n          // return false if any of the action handlers returns false\n          result = action.handler(event) && result;\n        }\n      }\n      return result;\n    };\n    let handleEvent = this._eventHandlers[event] = event => {\n      let target = event.target;\n      assert(`[BUG] Received event without an Element target: ${event.type}, ${target}`, target instanceof Element);\n      do {\n        if (getElementView(target)) {\n          if (viewHandler(target, event) === false) {\n            event.preventDefault();\n            event.stopPropagation();\n            break;\n          } else if (event.cancelBubble === true) {\n            break;\n          }\n        } else if (typeof target.hasAttribute === 'function' && target.hasAttribute('data-ember-action')) {\n          if (actionHandler(target, event) === false) {\n            break;\n          }\n        }\n        target = target.parentNode;\n      } while (target instanceof Element);\n    };\n    rootElement.addEventListener(event, handleEvent);\n    this.lazyEvents.delete(event);\n  }\n  destroy() {\n    if (this._didSetup === false) {\n      return;\n    }\n    let rootElement = this._sanitizedRootElement;\n    if (!rootElement) {\n      return;\n    }\n    for (let event in this._eventHandlers) {\n      rootElement.removeEventListener(event, this._eventHandlers[event]);\n    }\n    rootElement.classList.remove(ROOT_ELEMENT_CLASS);\n    return this._super(...arguments);\n  }\n  toString() {\n    return '(EventDispatcher)';\n  }\n}","import { getOwner } from '@ember/-internals/owner';\nimport { guidFor } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\n/**\n@module ember\n*/\nexport function isSimpleClick(event) {\n  if (!(event instanceof MouseEvent)) {\n    return false;\n  }\n  let modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n  let secondaryClick = event.which > 1; // IE9 may return undefined\n  return !modifier && !secondaryClick;\n}\nexport function constructStyleDeprecationMessage(affectedStyle) {\n  return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n}\n/**\n  @private\n  @method getRootViews\n  @param {Object} owner\n*/\nexport function getRootViews(owner) {\n  let registry = owner.lookup('-view-registry:main');\n  let rootViews = [];\n  Object.keys(registry).forEach(id => {\n    let view = registry[id];\n    assert('expected view', view);\n    if (view.parentView === null) {\n      rootViews.push(view);\n    }\n  });\n  return rootViews;\n}\n/**\n  @private\n  @method getViewId\n  @param {Ember.View} view\n */\nexport function getViewId(view) {\n  if (view.tagName !== '' && view.elementId) {\n    return view.elementId;\n  } else {\n    return guidFor(view);\n  }\n}\nconst ELEMENT_VIEW = new WeakMap();\nconst VIEW_ELEMENT = new WeakMap();\nexport function getElementView(element) {\n  return ELEMENT_VIEW.get(element) || null;\n}\n/**\n  @private\n  @method getViewElement\n  @param {Ember.View} view\n */\nexport function getViewElement(view) {\n  return VIEW_ELEMENT.get(view) || null;\n}\nexport function setElementView(element, view) {\n  ELEMENT_VIEW.set(element, view);\n}\nexport function setViewElement(view, element) {\n  VIEW_ELEMENT.set(view, element);\n}\n// These are not needed for GC, but for correctness. We want to be able to\n// null-out these links while the objects are still live. Specifically, in\n// this case, we want to prevent access to the element (and vice verse) during\n// destruction.\nexport function clearElementView(element) {\n  ELEMENT_VIEW.delete(element);\n}\nexport function clearViewElement(view) {\n  VIEW_ELEMENT.delete(view);\n}\nconst CHILD_VIEW_IDS = new WeakMap();\n/**\n  @private\n  @method getChildViews\n  @param {Ember.View} view\n*/\nexport function getChildViews(view) {\n  let owner = getOwner(view);\n  assert('View is unexpectedly missing an owner', owner);\n  let registry = owner.lookup('-view-registry:main');\n  return collectChildViews(view, registry);\n}\nexport function initChildViews(view) {\n  let childViews = new Set();\n  CHILD_VIEW_IDS.set(view, childViews);\n  return childViews;\n}\nexport function addChildView(parent, child) {\n  let childViews = CHILD_VIEW_IDS.get(parent);\n  if (childViews === undefined) {\n    childViews = initChildViews(parent);\n  }\n  childViews.add(getViewId(child));\n}\nexport function collectChildViews(view, registry) {\n  let views = [];\n  let childViews = CHILD_VIEW_IDS.get(view);\n  if (childViews !== undefined) {\n    childViews.forEach(id => {\n      let view = registry[id];\n      if (view && !view.isDestroying && !view.isDestroyed) {\n        views.push(view);\n      }\n    });\n  }\n  return views;\n}\n/**\n  @private\n  @method getViewBounds\n  @param {Ember.View} view\n*/\nexport function getViewBounds(view) {\n  return view.renderer.getBounds(view);\n}\n/**\n  @private\n  @method getViewRange\n  @param {Ember.View} view\n*/\nexport function getViewRange(view) {\n  let bounds = getViewBounds(view);\n  let range = document.createRange();\n  range.setStartBefore(bounds.firstNode);\n  range.setEndAfter(bounds.lastNode);\n  return range;\n}\n/**\n  `getViewClientRects` provides information about the position of the border\n  box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewClientRects\n  @param {Ember.View} view\n*/\nexport function getViewClientRects(view) {\n  let range = getViewRange(view);\n  return range.getClientRects();\n}\n/**\n  `getViewBoundingClientRect` provides information about the position of the\n  bounding border box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewBoundingClientRect\n  @param {Ember.View} view\n*/\nexport function getViewBoundingClientRect(view) {\n  let range = getViewRange(view);\n  return range.getBoundingClientRect();\n}\n/**\n  Determines if the element matches the specified selector.\n\n  @private\n  @method matches\n  @param {DOMElement} el\n  @param {String} selector\n*/\nexport const elMatches = typeof Element !== 'undefined' ? Element.prototype.matches : undefined;\nexport function matches(el, selector) {\n  assert('cannot call `matches` in fastboot mode', elMatches !== undefined);\n  return elMatches.call(el, selector);\n}\nexport function contains(a, b) {\n  if (a.contains !== undefined) {\n    return a.contains(b);\n  }\n  let current = b.parentNode;\n  while (current && (current = current.parentNode)) {\n    if (current === a) {\n      return true;\n    }\n  }\n  return false;\n}","var __decorate = this && this.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { inject } from '@ember/-internals/metal';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport Evented from '@ember/object/evented';\nimport { FrameworkObject } from '@ember/object/-internals';\nimport states from './states';\nclass CoreView extends FrameworkObject.extend(Evented, ActionHandler) {\n  constructor() {\n    super(...arguments);\n    this.isView = true;\n  }\n  init(properties) {\n    super.init(properties);\n    // Handle methods from Evented\n    // The native class inheritance will not work for mixins. To work around this,\n    // we copy the existing trigger and has methods provided by the mixin and swap in the\n    // new ones from our class.\n    this._superTrigger = this.trigger;\n    this.trigger = this._trigger;\n    this._superHas = this.has;\n    this.has = this._has;\n    this.parentView ??= null;\n    this._state = 'preRender';\n    this._currentState = this._states.preRender;\n  }\n  instrumentDetails(hash) {\n    hash['object'] = this.toString();\n    hash['containerKey'] = this._debugContainerKey;\n    hash['view'] = this;\n    return hash;\n  }\n  /**\n    Override the default event firing from `Evented` to\n    also call methods with the given name.\n       @method trigger\n    @param name {String}\n    @private\n  */\n  // Changed to `trigger` on init\n  _trigger(name, ...args) {\n    this._superTrigger(name, ...args);\n    let method = this[name];\n    if (typeof method === 'function') {\n      return method.apply(this, args);\n    }\n  }\n  // Changed to `has` on init\n  _has(name) {\n    return typeof this[name] === 'function' || this._superHas(name);\n  }\n}\nCoreView.isViewFactory = true;\n__decorate([inject('renderer', '-dom')], CoreView.prototype, \"renderer\", void 0);\n// Declare on the prototype to have a single shared value.\nCoreView.prototype._states = states;\nexport default CoreView;","import { teardownMandatorySetter } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { flaggedInstrument } from '@ember/instrumentation';\nimport { join } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nconst DEFAULT = Object.freeze({\n  // appendChild is only legal while rendering the buffer.\n  appendChild() {\n    throw new Error(\"You can't use appendChild outside of the rendering process\");\n  },\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent() {\n    return true; // continue event propagation\n  },\n\n  rerender() {},\n  destroy() {}\n});\nconst PRE_RENDER = Object.freeze({\n  ...DEFAULT\n});\nconst HAS_ELEMENT = Object.freeze({\n  ...DEFAULT,\n  rerender(view) {\n    view.renderer.rerender();\n  },\n  destroy(view) {\n    view.renderer.remove(view);\n  },\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent(view, eventName, event) {\n    if (view.has(eventName)) {\n      // Handler should be able to re-dispatch events, so we don't\n      // preventDefault or stopPropagation.\n      return flaggedInstrument(`interaction.${eventName}`, {\n        event,\n        view\n      }, () => {\n        return join(view, view.trigger, eventName, event);\n      });\n    } else {\n      return true; // continue event propagation\n    }\n  }\n});\n\nconst IN_DOM = Object.freeze({\n  ...HAS_ELEMENT,\n  enter(view) {\n    // Register the view for event handling. This hash is used by\n    // Ember.EventDispatcher to dispatch incoming events.\n    view.renderer.register(view);\n    if (DEBUG) {\n      let elementId = view.elementId;\n      assert('[BUG] Expected teardownMandatorySetter to be set in DEBUG mode', teardownMandatorySetter);\n      teardownMandatorySetter(view, 'elementId');\n      Object.defineProperty(view, 'elementId', {\n        configurable: true,\n        enumerable: true,\n        get() {\n          return elementId;\n        },\n        set(value) {\n          if (value !== elementId) {\n            throw new Error(\"Changing a view's elementId after creation is not allowed\");\n          }\n        }\n      });\n    }\n  }\n});\nconst DESTROYING = Object.freeze({\n  ...DEFAULT,\n  appendChild() {\n    throw new Error(\"You can't call appendChild on a view being destroyed\");\n  },\n  rerender() {\n    throw new Error(\"You can't call rerender on a view being destroyed\");\n  }\n});\n/*\n  Describe how the specified actions should behave in the various\n  states that a view can exist in. Possible states:\n\n  * preRender: when a view is first instantiated, and after its\n    element was destroyed, it is in the preRender state\n  * hasElement: the DOM representation of the view is created,\n    and is ready to be inserted\n  * inDOM: once a view has been inserted into the DOM it is in\n    the inDOM state. A view spends the vast majority of its\n    existence in this state.\n  * destroyed: once a view has been destroyed (using the destroy\n    method), it is in this state. No further actions can be invoked\n    on a destroyed view.\n*/\nconst states = Object.freeze({\n  preRender: PRE_RENDER,\n  inDOM: IN_DOM,\n  hasElement: HAS_ELEMENT,\n  destroying: DESTROYING\n});\nexport default states;","/**\n@module @ember/application\n*/\nimport { getOwner as actualGetOwner, setOwner as actualSetOwner } from '@ember/owner';\nimport { dictionary } from '@ember/-internals/utils';\nimport { ENV } from '@ember/-internals/environment';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { join, once, run, schedule } from '@ember/runloop';\nimport { libraries } from '@ember/-internals/metal';\nimport { _loaded, onLoad, runLoadHooks } from './lib/lazy_load';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { EventDispatcher } from '@ember/-internals/views';\nimport Route from '@ember/routing/route';\nimport Router from '@ember/routing/router';\nimport HashLocation from '@ember/routing/hash-location';\nimport HistoryLocation from '@ember/routing/history-location';\nimport NoneLocation from '@ember/routing/none-location';\nimport { BucketCache } from '@ember/routing/-internals';\nimport ApplicationInstance from '@ember/application/instance';\nimport Engine, { buildInitializerMethod } from '@ember/engine';\nimport { privatize as P } from '@ember/-internals/container';\nimport { setupApplicationRegistry } from '@ember/-internals/glimmer';\nimport RouterService from '@ember/routing/router-service';\n/**\n * @deprecated Use `import { getOwner } from '@ember/owner';` instead.\n */\nexport const getOwner = actualGetOwner;\n/**\n * @deprecated Use `import { setOwner } from '@ember/owner';` instead.\n */\nexport const setOwner = actualSetOwner;\n/**\n  An instance of `Application` is the starting point for every Ember\n  application. It instantiates, initializes and coordinates the\n  objects that make up your app.\n\n  Each Ember app has one and only one `Application` object. Although\n  Ember CLI creates this object implicitly, the `Application` class\n  is defined in the `app/app.js`. You can define a `ready` method on the\n  `Application` class, which will be run by Ember when the application is\n  initialized.\n\n  ```app/app.js\n  export default class App extends Application {\n    ready() {\n      // your code here\n    }\n  }\n  ```\n\n  Because `Application` ultimately inherits from `Ember.Namespace`, any classes\n  you create will have useful string representations when calling `toString()`.\n  See the `Ember.Namespace` documentation for more information.\n\n  While you can think of your `Application` as a container that holds the\n  other classes in your application, there are several other responsibilities\n  going on under-the-hood that you may want to understand. It is also important\n  to understand that an `Application` is different from an `ApplicationInstance`.\n  Refer to the Guides to understand the difference between these.\n\n  ### Event Delegation\n\n  Ember uses a technique called _event delegation_. This allows the framework\n  to set up a global, shared event listener instead of requiring each view to\n  do it manually. For example, instead of each view registering its own\n  `mousedown` listener on its associated element, Ember sets up a `mousedown`\n  listener on the `body`.\n\n  If a `mousedown` event occurs, Ember will look at the target of the event and\n  start walking up the DOM node tree, finding corresponding views and invoking\n  their `mouseDown` method as it goes.\n\n  `Application` has a number of default events that it listens for, as\n  well as a mapping from lowercase events to camel-cased view method names. For\n  example, the `keypress` event causes the `keyPress` method on the view to be\n  called, the `dblclick` event causes `doubleClick` to be called, and so on.\n\n  If there is a bubbling browser event that Ember does not listen for by\n  default, you can specify custom events and their corresponding view method\n  names by setting the application's `customEvents` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  export default class App extends Application {\n    customEvents = {\n      // add support for the paste event\n      paste: 'paste'\n    }\n  }\n  ```\n\n  To prevent Ember from setting up a listener for a default event,\n  specify the event name with a `null` value in the `customEvents`\n  property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  export default class App extends Application {\n    customEvents = {\n      // prevent listeners for mouseenter/mouseleave events\n      mouseenter: null,\n      mouseleave: null\n    }\n  }\n  ```\n\n  By default, the application sets up these event listeners on the document\n  body. However, in cases where you are embedding an Ember application inside\n  an existing page, you may want it to set up the listeners on an element\n  inside the body.\n\n  For example, if only events inside a DOM element with the ID of `ember-app`\n  should be delegated, set your application's `rootElement` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  export default class App extends Application {\n    rootElement = '#ember-app'\n  }\n  ```\n\n  The `rootElement` can be either a DOM element or a CSS selector\n  string. Note that *views appended to the DOM outside the root element will\n  not receive events.* If you specify a custom root element, make sure you only\n  append views inside it!\n\n  To learn more about the events Ember components use, see\n\n  [components/handling-events](https://guides.emberjs.com/release/components/handling-events/#toc_event-names).\n\n  ### Initializers\n\n  To add behavior to the Application's boot process, you can define initializers in\n  the `app/initializers` directory, or with `ember generate initializer` using Ember CLI.\n  These files should export a named `initialize` function which will receive the created `application`\n  object as its first argument.\n\n  ```javascript\n  export function initialize(application) {\n    // application.inject('route', 'foo', 'service:foo');\n  }\n  ```\n\n  Application initializers can be used for a variety of reasons including:\n\n  - setting up external libraries\n  - injecting dependencies\n  - setting up event listeners in embedded apps\n  - deferring the boot process using the `deferReadiness` and `advanceReadiness` APIs.\n\n  ### Routing\n\n  In addition to creating your application's router, `Application` is\n  also responsible for telling the router when to start routing. Transitions\n  between routes can be logged with the `LOG_TRANSITIONS` flag, and more\n  detailed intra-transition logging can be logged with\n  the `LOG_TRANSITIONS_INTERNAL` flag:\n\n  ```javascript\n  import Application from '@ember/application';\n\n  let App = Application.create({\n    LOG_TRANSITIONS: true, // basic logging of successful transitions\n    LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps\n  });\n  ```\n\n  By default, the router will begin trying to translate the current URL into\n  application state once the browser emits the `DOMContentReady` event. If you\n  need to defer routing, you can call the application's `deferReadiness()`\n  method. Once routing can begin, call the `advanceReadiness()` method.\n\n  If there is any setup required before routing begins, you can implement a\n  `ready()` method on your app that will be invoked immediately before routing\n  begins.\n\n  @class Application\n  @extends Engine\n  @public\n*/\nclass Application extends Engine {\n  constructor() {\n    super(...arguments);\n    this._bootPromise = null;\n    this._bootResolver = null;\n  }\n  /**\n    This creates a registry with the default Ember naming conventions.\n       It also configures the registry:\n       * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n       @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  static buildRegistry(namespace) {\n    let registry = super.buildRegistry(namespace);\n    commonSetupRegistry(registry);\n    setupApplicationRegistry(registry);\n    return registry;\n  }\n  init(properties) {\n    super.init(properties);\n    this.rootElement ??= 'body';\n    this._document ??= null;\n    this.eventDispatcher ??= null;\n    this.customEvents ??= null;\n    this.autoboot ??= true;\n    this._document ??= hasDOM ? window.document : null;\n    this._globalsMode ??= true;\n    if (DEBUG) {\n      if (ENV.LOG_VERSION) {\n        // we only need to see this once per Application#init\n        ENV.LOG_VERSION = false;\n        libraries.logVersions?.();\n      }\n    }\n    // Start off the number of deferrals at 1. This will be decremented by\n    // the Application's own `boot` method.\n    this._readinessDeferrals = 1;\n    this._booted = false;\n    this._applicationInstances = new Set();\n    this.autoboot = this._globalsMode = Boolean(this.autoboot);\n    if (this._globalsMode) {\n      this._prepareForGlobalsMode();\n    }\n    if (this.autoboot) {\n      this.waitForDOMReady();\n    }\n  }\n  /**\n    Create an ApplicationInstance for this application.\n       @public\n    @method buildInstance\n    @return {ApplicationInstance} the application instance\n  */\n  buildInstance(options = {}) {\n    assert('You cannot build new instances of this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot build new instances of this application since it is being destroyed', !this.isDestroying);\n    return ApplicationInstance.create({\n      ...options,\n      base: this,\n      application: this\n    });\n  }\n  /**\n    Start tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is created.\n       @private\n    @method _watchInstance\n  */\n  _watchInstance(instance) {\n    this._applicationInstances.add(instance);\n  }\n  /**\n    Stop tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is about to be destroyed.\n       @private\n    @method _unwatchInstance\n  */\n  _unwatchInstance(instance) {\n    return this._applicationInstances.delete(instance);\n  }\n  /**\n    Enable the legacy globals mode by allowing this application to act\n    as a global namespace. See the docs on the `_globalsMode` property\n    for details.\n       Most of these features are already deprecated in 1.x, so we can\n    stop using them internally and try to remove them.\n       @private\n    @method _prepareForGlobalsMode\n  */\n  _prepareForGlobalsMode() {\n    // Create subclass of Router for this Application instance.\n    // This is to ensure that someone reopening `App.Router` does not\n    // tamper with the default `Router`.\n    this.Router = (this.Router || Router).extend();\n    this._buildDeprecatedInstance();\n  }\n  /*\n    Build the deprecated instance for legacy globals mode support.\n    Called when creating and resetting the application.\n       This is orthogonal to autoboot: the deprecated instance needs to\n    be created at Application construction (not boot) time to expose\n    App.__container__. If autoboot sees that this instance exists,\n    it will continue booting it to avoid doing unncessary work (as\n    opposed to building a new instance at boot time), but they are\n    otherwise unrelated.\n       @private\n    @method _buildDeprecatedInstance\n  */\n  _buildDeprecatedInstance() {\n    // Build a default instance\n    let instance = this.buildInstance();\n    // Legacy support for App.__container__ and other global methods\n    // on App that rely on a single, default instance.\n    this.__deprecatedInstance__ = instance;\n    this.__container__ = instance.__container__;\n  }\n  /**\n    Automatically kick-off the boot process for the application once the\n    DOM has become ready.\n       The initialization itself is scheduled on the actions queue which\n    ensures that code-loading finishes before booting.\n       If you are asynchronously loading code, you should call `deferReadiness()`\n    to defer booting, and then call `advanceReadiness()` once all of your code\n    has finished loading.\n       @private\n    @method waitForDOMReady\n  */\n  waitForDOMReady() {\n    const document = this._document;\n    // SAFETY: Casting as Document should be safe since we're just reading a property.\n    // If it's not actually a Document then it will evaluate false which is fine for our\n    // purposes.\n    if (document === null || document.readyState !== 'loading') {\n      schedule('actions', this, this.domReady);\n    } else {\n      // Ideally we'd just check `document instanceof Document` but currently some tests pass a fake document.\n      assert('[BUG] Called waitForDOMReady with an invalid document', function (d) {\n        return typeof d.removeEventListener === 'function';\n      }(document));\n      let callback = () => {\n        document.removeEventListener('DOMContentLoaded', callback);\n        run(this, this.domReady);\n      };\n      document.addEventListener('DOMContentLoaded', callback);\n    }\n  }\n  /**\n    This is the autoboot flow:\n       1. Boot the app by calling `this.boot()`\n    2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n    3. Boot the instance by calling `instance.boot()`\n    4. Invoke the `App.ready()` callback\n    5. Kick-off routing on the instance\n       Ideally, this is all we would need to do:\n       ```javascript\n    _autoBoot() {\n      this.boot().then(() => {\n        let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n        return instance.boot();\n      }).then((instance) => {\n        App.ready();\n        instance.startRouting();\n      });\n    }\n    ```\n       Unfortunately, we cannot actually write this because we need to participate\n    in the \"synchronous\" boot process. While the code above would work fine on\n    the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n    boot a new instance synchronously (see the documentation on `_bootSync()`\n    for details).\n       Because of this restriction, the actual logic of this method is located\n    inside `didBecomeReady()`.\n       @private\n    @method domReady\n  */\n  domReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    this._bootSync();\n    // Continues to `didBecomeReady`\n  }\n  /**\n    Use this to defer readiness until some condition is true.\n       Example:\n       ```javascript\n    import Application from '@ember/application';\n       let App = Application.create();\n       App.deferReadiness();\n       fetch('/auth-token')\n    .then(response => response.json())\n    .then(data => {\n      App.token = data.token;\n      App.advanceReadiness();\n    });\n    ```\n       This allows you to perform asynchronous setup logic and defer\n    booting your application until the setup has finished.\n       However, if the setup requires a loading UI, it might be better\n    to use the router for this purpose.\n       @method deferReadiness\n    @public\n  */\n  deferReadiness() {\n    assert('You must call deferReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot defer readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot defer readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot defer readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals++;\n  }\n  /**\n    Call `advanceReadiness` after any asynchronous setup logic has completed.\n    Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n    or the application will never become ready and routing will not begin.\n       @method advanceReadiness\n    @see {Application#deferReadiness}\n    @public\n  */\n  advanceReadiness() {\n    assert('You must call advanceReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot advance readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot advance readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot advance readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals--;\n    if (this._readinessDeferrals === 0) {\n      once(this, this.didBecomeReady);\n    }\n  }\n  /**\n    Initialize the application and return a promise that resolves with the `Application`\n    object when the boot process is complete.\n       Run any application initializers and run the application load hook. These hooks may\n    choose to defer readiness. For example, an authentication hook might want to defer\n    readiness until the auth token has been retrieved.\n       By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n    is disabled, this is automatically called when the first application instance is\n    created via `visit`.\n       @public\n    @method boot\n    @return {Promise<Application,Error>}\n  */\n  boot() {\n    assert('You cannot boot this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot boot this application since it is being destroyed', !this.isDestroying);\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n    try {\n      this._bootSync();\n    } catch (_) {\n      // Ignore the error: in the asynchronous boot path, the error is already reflected\n      // in the promise rejection\n    }\n    assert('has boot promise', this._bootPromise);\n    return this._bootPromise;\n  }\n  /**\n    Unfortunately, a lot of existing code assumes the booting process is\n    \"synchronous\". Specifically, a lot of tests assumes the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in the app being\n    fully-booted when the current runloop completes.\n       We would like new code (like the `visit` API) to stop making this assumption,\n    so we created the asynchronous version above that returns a promise. But until\n    we have migrated all the code, we would have to expose this method for use\n    *internally* in places where we need to boot an app \"synchronously\".\n       @private\n  */\n  _bootSync() {\n    if (this._booted || this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    // Even though this returns synchronously, we still need to make sure the\n    // boot promise exists for book-keeping purposes: if anything went wrong in\n    // the boot process, we need to store the error as a rejection on the boot\n    // promise so that a future caller of `boot()` can tell what failed.\n    let defer = this._bootResolver = RSVP.defer();\n    this._bootPromise = defer.promise;\n    try {\n      this.runInitializers();\n      runLoadHooks('application', this);\n      this.advanceReadiness();\n      // Continues to `didBecomeReady`\n    } catch (error) {\n      // For the asynchronous boot path\n      defer.reject(error);\n      // For the synchronous boot path\n      throw error;\n    }\n  }\n  /**\n    Reset the application. This is typically used only in tests. It cleans up\n    the application in the following order:\n       1. Deactivate existing routes\n    2. Destroy all objects in the container\n    3. Create a new application container\n    4. Re-route to the existing url\n       Typical Example:\n       ```javascript\n    import Application from '@ember/application';\n    let App;\n       run(function() {\n      App = Application.create();\n    });\n       module('acceptance test', {\n      setup: function() {\n        App.reset();\n      }\n    });\n       test('first test', function() {\n      // App is freshly reset\n    });\n       test('second test', function() {\n      // App is again freshly reset\n    });\n    ```\n       Advanced Example:\n       Occasionally you may want to prevent the app from initializing during\n    setup. This could enable extra configuration, or enable asserting prior\n    to the app becoming ready.\n       ```javascript\n    import Application from '@ember/application';\n    let App;\n       run(function() {\n      App = Application.create();\n    });\n       module('acceptance test', {\n      setup: function() {\n        run(function() {\n          App.reset();\n          App.deferReadiness();\n        });\n      }\n    });\n       test('first test', function() {\n      ok(true, 'something before app is initialized');\n         run(function() {\n        App.advanceReadiness();\n      });\n         ok(true, 'something after app is initialized');\n    });\n    ```\n       @method reset\n    @public\n  */\n  reset() {\n    assert('You cannot reset this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot reset this application since it is being destroyed', !this.isDestroying);\n    assert(`Calling reset() on instances of \\`Application\\` is not\n            supported when globals mode is disabled; call \\`visit()\\` to\n            create new \\`ApplicationInstance\\`s and dispose them\n            via their \\`destroy()\\` method instead.`, this._globalsMode && this.autoboot);\n    let instance = this.__deprecatedInstance__;\n    this._readinessDeferrals = 1;\n    this._bootPromise = null;\n    this._bootResolver = null;\n    this._booted = false;\n    function handleReset() {\n      assert('expected instance', instance);\n      run(instance, 'destroy');\n      this._buildDeprecatedInstance();\n      schedule('actions', this, '_bootSync');\n    }\n    join(this, handleReset);\n  }\n  /**\n    @private\n    @method didBecomeReady\n  */\n  didBecomeReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    assert('expected _bootResolver', this._bootResolver);\n    try {\n      // TODO: Is this still needed for _globalsMode = false?\n      // See documentation on `_autoboot()` for details\n      if (this.autoboot) {\n        let instance;\n        if (this._globalsMode) {\n          // If we already have the __deprecatedInstance__ lying around, boot it to\n          // avoid unnecessary work\n          instance = this.__deprecatedInstance__;\n          assert('expected instance', instance);\n        } else {\n          // Otherwise, build an instance and boot it. This is currently unreachable,\n          // because we forced _globalsMode to === autoboot; but having this branch\n          // allows us to locally toggle that flag for weeding out legacy globals mode\n          // dependencies independently\n          instance = this.buildInstance();\n        }\n        instance._bootSync();\n        // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n        this.ready();\n        instance.startRouting();\n      }\n      // For the asynchronous boot path\n      this._bootResolver.resolve(this);\n      // For the synchronous boot path\n      this._booted = true;\n    } catch (error) {\n      // For the asynchronous boot path\n      this._bootResolver.reject(error);\n      // For the synchronous boot path\n      throw error;\n    }\n  }\n  /**\n    Called when the Application has become ready, immediately before routing\n    begins. The call will be delayed until the DOM has become ready.\n       @event ready\n    @public\n  */\n  ready() {\n    return this;\n  }\n  // This method must be moved to the application instance object\n  willDestroy() {\n    super.willDestroy();\n    if (_loaded['application'] === this) {\n      _loaded['application'] = undefined;\n    }\n    if (this._applicationInstances.size) {\n      this._applicationInstances.forEach(i => i.destroy());\n      this._applicationInstances.clear();\n    }\n  }\n  /**\n    Boot a new instance of `ApplicationInstance` for the current\n    application and navigate it to the given `url`. Returns a `Promise` that\n    resolves with the instance when the initial routing and rendering is\n    complete, or rejects with any error that occurred during the boot process.\n       When `autoboot` is disabled, calling `visit` would first cause the\n    application to boot, which runs the application initializers.\n       This method also takes a hash of boot-time configuration options for\n    customizing the instance's behavior. See the documentation on\n    `ApplicationInstance.BootOptions` for details.\n       `ApplicationInstance.BootOptions` is an interface class that exists\n    purely to document the available options; you do not need to construct it\n    manually. Simply pass a regular JavaScript object containing of the\n    desired options:\n       ```javascript\n    MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n    ```\n       ### Supported Scenarios\n       While the `BootOptions` class exposes a large number of knobs, not all\n    combinations of them are valid; certain incompatible combinations might\n    result in unexpected behavior.\n       For example, booting the instance in the full browser environment\n    while specifying a foreign `document` object (e.g. `{ isBrowser: true,\n    document: iframe.contentDocument }`) does not work correctly today,\n    largely due to Ember's jQuery dependency.\n       Currently, there are three officially supported scenarios/configurations.\n    Usages outside of these scenarios are not guaranteed to work, but please\n    feel free to file bug reports documenting your experience and any issues\n    you encountered to help expand support.\n       #### Browser Applications (Manual Boot)\n       The setup is largely similar to how Ember works out-of-the-box. Normally,\n    Ember will boot a default instance for your Application on \"DOM ready\".\n    However, you can customize this behavior by disabling `autoboot`.\n       For example, this allows you to render a miniture demo of your application\n    into a specific area on your marketing website:\n       ```javascript\n    import MyApp from 'my-app';\n       $(function() {\n      let App = MyApp.create({ autoboot: false });\n         let options = {\n        // Override the router's location adapter to prevent it from updating\n        // the URL in the address bar\n        location: 'none',\n           // Override the default `rootElement` on the app to render into a\n        // specific `div` on the page\n        rootElement: '#demo'\n      };\n         // Start the app at the special demo URL\n      App.visit('/demo', options);\n    });\n    ```\n       Or perhaps you might want to boot two instances of your app on the same\n    page for a split-screen multiplayer experience:\n       ```javascript\n    import MyApp from 'my-app';\n       $(function() {\n      let App = MyApp.create({ autoboot: false });\n         let sessionId = MyApp.generateSessionID();\n         let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n      let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n         Promise.all([player1, player2]).then(() => {\n        // Both apps have completed the initial render\n        $('#loading').fadeOut();\n      });\n    });\n    ```\n       Do note that each app instance maintains their own registry/container, so\n    they will run in complete isolation by default.\n       #### Server-Side Rendering (also known as FastBoot)\n       This setup allows you to run your Ember app in a server environment using\n    Node.js and render its content into static HTML for SEO purposes.\n       ```javascript\n    const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n       function renderURL(url) {\n      let dom = new SimpleDOM.Document();\n      let rootElement = dom.body;\n      let options = { isBrowser: false, document: dom, rootElement: rootElement };\n         return MyApp.visit(options).then(instance => {\n        try {\n          return HTMLSerializer.serialize(rootElement.firstChild);\n        } finally {\n          instance.destroy();\n        }\n      });\n    }\n    ```\n       In this scenario, because Ember does not have access to a global `document`\n    object in the Node.js environment, you must provide one explicitly. In practice,\n    in the non-browser environment, the stand-in `document` object only needs to\n    implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n    to work.\n       Since there is no DOM access in the non-browser environment, you must also\n    specify a DOM `Element` object in the same `document` for the `rootElement` option\n    (as opposed to a selector string like `\"body\"`).\n       See the documentation on the `isBrowser`, `document` and `rootElement` properties\n    on `ApplicationInstance.BootOptions` for details.\n       #### Server-Side Resource Discovery\n       This setup allows you to run the routing layer of your Ember app in a server\n    environment using Node.js and completely disable rendering. This allows you\n    to simulate and discover the resources (i.e. AJAX requests) needed to fulfill\n    a given request and eagerly \"push\" these resources to the client.\n       ```app/initializers/network-service.js\n    import BrowserNetworkService from 'app/services/network/browser';\n    import NodeNetworkService from 'app/services/network/node';\n       // Inject a (hypothetical) service for abstracting all AJAX calls and use\n    // the appropriate implementation on the client/server. This also allows the\n    // server to log all the AJAX calls made during a particular request and use\n    // that for resource-discovery purpose.\n       export function initialize(application) {\n      if (window) { // browser\n        application.register('service:network', BrowserNetworkService);\n      } else { // node\n        application.register('service:network', NodeNetworkService);\n      }\n    };\n       export default {\n      name: 'network-service',\n      initialize: initialize\n    };\n    ```\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n    import { service } from '@ember/service';\n       // An example of how the (hypothetical) service is used in routes.\n       export default class IndexRoute extends Route {\n      @service network;\n         model(params) {\n        return this.network.fetch(`/api/posts/${params.post_id}.json`);\n      }\n         afterModel(post) {\n        if (post.isExternalContent) {\n          return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n        } else {\n          return post;\n        }\n      }\n    }\n    ```\n       ```javascript\n    // Finally, put all the pieces together\n       function discoverResourcesFor(url) {\n      return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n        let networkService = instance.lookup('service:network');\n        return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n      });\n    }\n    ```\n       @public\n    @method visit\n    @param url {String} The initial URL to navigate to\n    @param options {ApplicationInstance.BootOptions}\n    @return {Promise<ApplicationInstance, Error>}\n  */\n  visit(url, options) {\n    assert('You cannot visit this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot visit this application since it is being destroyed', !this.isDestroying);\n    return this.boot().then(() => {\n      let instance = this.buildInstance();\n      return instance.boot(options).then(() => instance.visit(url)).catch(error => {\n        run(instance, 'destroy');\n        throw error;\n      });\n    });\n  }\n}\nApplication.initializer = buildInitializerMethod('initializers', 'initializer');\nApplication.instanceInitializer = buildInitializerMethod('instanceInitializers', 'instance initializer');\nfunction commonSetupRegistry(registry) {\n  registry.register('router:main', Router);\n  registry.register('-view-registry:main', {\n    create() {\n      return dictionary(null);\n    }\n  });\n  registry.register('route:basic', Route);\n  registry.register('event_dispatcher:main', EventDispatcher);\n  registry.register('location:hash', HashLocation);\n  registry.register('location:history', HistoryLocation);\n  registry.register('location:none', NoneLocation);\n  registry.register(P`-bucket-cache:main`, {\n    create() {\n      return new BucketCache();\n    }\n  });\n  registry.register('service:router', RouterService);\n}\nexport { Application as default, _loaded, onLoad, runLoadHooks };","/**\n@module @ember/application\n*/\nimport { get, set } from '@ember/object';\nimport * as environment from '@ember/-internals/browser-environment';\nimport EngineInstance from '@ember/engine/instance';\nimport { renderSettled } from '@ember/-internals/glimmer';\nimport { assert } from '@ember/debug';\nimport Router from '@ember/routing/router';\nimport { EventDispatcher } from '@ember/-internals/views';\n/**\n  The `ApplicationInstance` encapsulates all of the stateful aspects of a\n  running `Application`.\n\n  At a high-level, we break application boot into two distinct phases:\n\n  * Definition time, where all of the classes, templates, and other\n    dependencies are loaded (typically in the browser).\n  * Run time, where we begin executing the application once everything\n    has loaded.\n\n  Definition time can be expensive and only needs to happen once since it is\n  an idempotent operation. For example, between test runs and FastBoot\n  requests, the application stays the same. It is only the state that we want\n  to reset.\n\n  That state is what the `ApplicationInstance` manages: it is responsible for\n  creating the container that contains all application state, and disposing of\n  it once the particular test run or FastBoot request has finished.\n\n  @public\n  @class ApplicationInstance\n  @extends EngineInstance\n*/\nclass ApplicationInstance extends EngineInstance {\n  constructor() {\n    super(...arguments);\n    /**\n      The root DOM element of the Application as an element or a\n      CSS selector.\n             @private\n      @property {String|DOMElement} rootElement\n    */\n    this.rootElement = null;\n  }\n  init(properties) {\n    super.init(properties);\n    this.application._watchInstance(this);\n    // Register this instance in the per-instance registry.\n    //\n    // Why do we need to register the instance in the first place?\n    // Because we need a good way for the root route (a.k.a ApplicationRoute)\n    // to notify us when it has created the root-most view. That view is then\n    // appended to the rootElement, in the case of apps, to the fixture harness\n    // in tests, or rendered to a string in the case of FastBoot.\n    this.register('-application-instance:main', this, {\n      instantiate: false\n    });\n  }\n  /**\n    Overrides the base `EngineInstance._bootSync` method with concerns relevant\n    to booting application (instead of engine) instances.\n       This method should only contain synchronous boot concerns. Asynchronous\n    boot concerns should eventually be moved to the `boot` method, which\n    returns a promise.\n       Until all boot code has been made asynchronous, we need to continue to\n    expose this method for use *internally* in places where we need to boot an\n    instance synchronously.\n       @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n    options = new _BootOptions(options);\n    this.setupRegistry(options);\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } else {\n      this.rootElement = this.application.rootElement;\n    }\n    if (options.location) {\n      set(this.router, 'location', options.location);\n    }\n    this.application.runInstanceInitializers(this);\n    if (options.isInteractive) {\n      this.setupEventDispatcher();\n    }\n    this._booted = true;\n    return this;\n  }\n  setupRegistry(options) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  }\n  get router() {\n    if (!this._router) {\n      let router = this.lookup('router:main');\n      assert('expected an instance of Router', router instanceof Router);\n      this._router = router;\n    }\n    return this._router;\n  }\n  /**\n    This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n    when it has finished creating the root View. By default, we simply take the\n    view and append it to the `rootElement` specified on the Application.\n       In cases like FastBoot and testing, we can override this hook and implement\n    custom behavior, such as serializing to a string and sending over an HTTP\n    socket rather than appending to DOM.\n       @param view {Ember.View} the root-most view\n    @deprecated\n    @private\n  */\n  didCreateRootView(view) {\n    view.appendTo(this.rootElement);\n  }\n  /**\n    Tells the router to start routing. The router will ask the location for the\n    current URL of the page to determine the initial URL to start routing to.\n    To start the app at a specific URL, call `handleURL` instead.\n       @private\n  */\n  startRouting() {\n    this.router.startRouting();\n  }\n  /**\n    Sets up the router, initializing the child router and configuring the\n    location before routing begins.\n       Because setup should only occur once, multiple calls to `setupRouter`\n    beyond the first call have no effect.\n       This is commonly used in order to confirm things that rely on the router\n    are functioning properly from tests that are primarily rendering related.\n       For example, from within [ember-qunit](https://github.com/emberjs/ember-qunit)'s\n    `setupRenderingTest` calling `this.owner.setupRouter()` would allow that\n    rendering test to confirm that any `<LinkTo></LinkTo>`'s that are rendered\n    have the correct URL.\n       @public\n  */\n  setupRouter() {\n    this.router.setupRouter();\n  }\n  /**\n    Directs the router to route to a particular URL. This is useful in tests,\n    for example, to tell the app to start at a particular URL.\n       @param url {String} the URL the router should route to\n    @private\n  */\n  handleURL(url) {\n    this.setupRouter();\n    return this.router.handleURL(url);\n  }\n  /**\n    @private\n  */\n  setupEventDispatcher() {\n    let dispatcher = this.lookup('event_dispatcher:main');\n    assert('expected EventDispatcher', dispatcher instanceof EventDispatcher);\n    let applicationCustomEvents = get(this.application, 'customEvents');\n    let instanceCustomEvents = get(this, 'customEvents');\n    let customEvents = Object.assign({}, applicationCustomEvents, instanceCustomEvents);\n    assert('[BUG] Tried to set up dispatcher with an invalid root element', this.rootElement === null || typeof this.rootElement === 'string' || this.rootElement instanceof Element);\n    dispatcher.setup(customEvents, this.rootElement);\n    return dispatcher;\n  }\n  /**\n    Returns the current URL of the app instance. This is useful when your\n    app does not update the browsers URL bar (i.e. it uses the `'none'`\n    location adapter).\n       @public\n    @return {String} the current URL\n  */\n  getURL() {\n    return this.router.url;\n  }\n  // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n  // the test helpers can probably be switched to use this implementation too\n  /**\n    Navigate the instance to a particular URL. This is useful in tests, for\n    example, or to tell the app to start at a particular URL. This method\n    returns a promise that resolves with the app instance when the transition\n    is complete, or rejects if the transition was aborted due to an error.\n       @public\n    @param url {String} the destination URL\n    @return {Promise<ApplicationInstance>}\n  */\n  visit(url) {\n    this.setupRouter();\n    let bootOptions = this.__container__.lookup('-environment:main');\n    let router = this.router;\n    let handleTransitionResolve = () => {\n      if (!bootOptions.options.shouldRender) {\n        // No rendering is needed, and routing has completed, simply return.\n        return this;\n      } else {\n        // Ensure that the visit promise resolves when all rendering has completed\n        return renderSettled().then(() => this);\n      }\n    };\n    let handleTransitionReject = error => {\n      if (error.error && error.error instanceof Error) {\n        throw error.error;\n      } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {\n        return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);\n      } else if (error.name === 'TransitionAborted') {\n        throw new Error(error.message);\n      } else {\n        throw error;\n      }\n    };\n    let location = get(router, 'location');\n    assert('location has been initialized', typeof location !== 'string');\n    // Keeps the location adapter's internal URL in-sync\n    location.setURL(url);\n    // getURL returns the set url with the rootURL stripped off\n    return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n  }\n  willDestroy() {\n    super.willDestroy();\n    this.application._unwatchInstance(this);\n  }\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n  */\n  static setupRegistry(registry, options = {}) {\n    let coptions = options instanceof _BootOptions ? options : new _BootOptions(options);\n    registry.register('-environment:main', coptions.toEnvironment(), {\n      instantiate: false\n    });\n    registry.register('service:-document', coptions.document, {\n      instantiate: false\n    });\n    super.setupRegistry(registry, coptions);\n  }\n}\n/**\n  A list of boot-time configuration options for customizing the behavior of\n  an `ApplicationInstance`.\n\n  This is an interface class that exists purely to document the available\n  options; you do not need to construct it manually. Simply pass a regular\n  JavaScript object containing the desired options into methods that require\n  one of these options object:\n\n  ```javascript\n  MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n  ```\n\n  Not all combinations of the supported options are valid. See the documentation\n  on `Application#visit` for the supported configurations.\n\n  Internal, experimental or otherwise unstable flags are marked as private.\n\n  @class BootOptions\n  @namespace ApplicationInstance\n  @public\n*/\nclass _BootOptions {\n  constructor(options = {}) {\n    /**\n      If present, overrides the router's `location` property with this\n      value. This is useful for environments where trying to modify the\n      URL would be inappropriate.\n             @property location\n      @type string\n      @default null\n      @public\n    */\n    this.location = null;\n    this.isInteractive = Boolean(environment.hasDOM); // This default is overridable below\n    this._renderMode = options._renderMode;\n    if (options.isBrowser !== undefined) {\n      this.isBrowser = Boolean(options.isBrowser);\n    } else {\n      this.isBrowser = Boolean(environment.hasDOM);\n    }\n    if (!this.isBrowser) {\n      this.isInteractive = false;\n      this.location = 'none';\n    }\n    if (options.shouldRender !== undefined) {\n      this.shouldRender = Boolean(options.shouldRender);\n    } else {\n      this.shouldRender = true;\n    }\n    if (!this.shouldRender) {\n      this.isInteractive = false;\n    }\n    if (options.document) {\n      this.document = options.document;\n    } else {\n      this.document = typeof document !== 'undefined' ? document : null;\n    }\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    }\n    // Set these options last to give the user a chance to override the\n    // defaults from the \"combo\" options like `isBrowser` (although in\n    // practice, the resulting combination is probably invalid)\n    if (options.location !== undefined) {\n      this.location = options.location;\n    }\n    if (options.isInteractive !== undefined) {\n      this.isInteractive = Boolean(options.isInteractive);\n    }\n  }\n  toEnvironment() {\n    // Do we really want to assign all of this!?\n    return {\n      ...environment,\n      // For compatibility with existing code\n      hasDOM: this.isBrowser,\n      isInteractive: this.isInteractive,\n      _renderMode: this._renderMode,\n      options: this\n    };\n  }\n}\nexport default ApplicationInstance;","/*globals CustomEvent */\nimport { ENV } from '@ember/-internals/environment';\nimport { window } from '@ember/-internals/browser-environment';\n/**\n  @module @ember/application\n*/\nconst loadHooks = ENV.EMBER_LOAD_HOOKS || {};\nconst loaded = {};\nexport let _loaded = loaded;\n/**\n  Detects when a specific package of Ember (e.g. 'Application')\n  has fully loaded and is available for extension.\n\n  The provided `callback` will be called with the `name` passed\n  resolved from a string into the object:\n\n  ``` javascript\n  import { onLoad } from '@ember/application';\n\n  onLoad('Ember.Application' function(hbars) {\n    hbars.registerHelper(...);\n  });\n  ```\n\n  @method onLoad\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param callback {Function} callback to be called\n  @private\n*/\nexport function onLoad(name, callback) {\n  let object = loaded[name];\n  let hooks = loadHooks[name] ??= [];\n  hooks.push(callback);\n  if (object) {\n    callback(object);\n  }\n}\n/**\n  Called when an Ember.js package (e.g Application) has finished\n  loading. Triggers any callbacks registered for this event.\n\n  @method runLoadHooks\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param object {Object} object to pass to callbacks\n  @private\n*/\nexport function runLoadHooks(name, object) {\n  loaded[name] = object;\n  if (window && typeof CustomEvent === 'function') {\n    let event = new CustomEvent(name, {\n      detail: object\n    });\n    window.dispatchEvent(event);\n  }\n  loadHooks[name]?.forEach(callback => callback(object));\n}","/**\n@module @ember/application/namespace\n*/\nimport { NAMESPACES, NAMESPACES_BY_ID, addNamespace, findNamespace, findNamespaces, processNamespace, processAllNamespaces, removeNamespace } from '@ember/-internals/metal'; // Preloaded into namespaces\nimport { get } from '@ember/object';\nimport { getName, guidFor, setName } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport EmberObject from '@ember/object';\n/**\n  A Namespace is an object usually used to contain other objects or methods\n  such as an application or framework. Create a namespace anytime you want\n  to define one of these new containers.\n\n  # Example Usage\n\n  ```javascript\n  MyFramework = Ember.Namespace.create({\n    VERSION: '1.0.0'\n  });\n  ```\n\n  @class Namespace\n  @extends EmberObject\n  @public\n*/\nclass Namespace extends EmberObject {\n  init(properties) {\n    super.init(properties);\n    addNamespace(this);\n  }\n  toString() {\n    let existing_name = get(this, 'name') || get(this, 'modulePrefix');\n    if (existing_name) {\n      assert(\"name wasn't a string\", typeof existing_name === 'string');\n      return existing_name;\n    }\n    findNamespaces();\n    let name = getName(this);\n    if (name === undefined) {\n      name = guidFor(this);\n      setName(this, name);\n    }\n    return name;\n  }\n  nameClasses() {\n    processNamespace(this);\n  }\n  destroy() {\n    removeNamespace(this);\n    return super.destroy();\n  }\n}\nNamespace.NAMESPACES = NAMESPACES;\nNamespace.NAMESPACES_BY_ID = NAMESPACES_BY_ID;\nNamespace.processAll = processAllNamespaces;\nNamespace.byName = findNamespace;\n// Declare on the prototype to have a single shared value.\nNamespace.prototype.isNamespace = true;\nexport default Namespace;","const EMBER_ARRAYS = new WeakSet();\nexport function setEmberArray(obj) {\n  EMBER_ARRAYS.add(obj);\n}\nexport function isEmberArray(obj) {\n  return EMBER_ARRAYS.has(obj);\n}","/**\n@module @ember/array\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { PROXY_CONTENT } from '@ember/-internals/metal';\nimport { objectAt, replaceInNativeArray, replace, computed, beginPropertyChanges, endPropertyChanges } from '@ember/-internals/metal';\nimport { get, set } from '@ember/object';\nimport Mixin from '@ember/object/mixin';\nimport { assert } from '@ember/debug';\nimport Enumerable from '@ember/enumerable';\nimport MutableEnumerable from '@ember/enumerable/mutable';\nimport { compare, typeOf } from '@ember/utils';\nimport { ENV } from '@ember/-internals/environment';\nimport Observable from '@ember/object/observable';\nimport { isEmberArray, setEmberArray } from '@ember/array/-internals';\nexport { default as makeArray } from './lib/make-array';\nconst EMPTY_ARRAY = Object.freeze([]);\nconst identityFunction = item => item;\nexport function uniqBy(array, keyOrFunc = identityFunction) {\n  assert(`first argument passed to \\`uniqBy\\` should be array`, isArray(array));\n  let ret = A();\n  let seen = new Set();\n  let getter = typeof keyOrFunc === 'function' ? keyOrFunc : item => get(item, keyOrFunc);\n  array.forEach(item => {\n    let val = getter(item);\n    if (!seen.has(val)) {\n      seen.add(val);\n      ret.push(item);\n    }\n  });\n  return ret;\n}\nfunction iter(...args) {\n  let valueProvided = args.length === 2;\n  let [key, value] = args;\n  return valueProvided ? item => value === get(item, key) : item => Boolean(get(item, key));\n}\nfunction findIndex(array, predicate, startAt) {\n  let len = array.length;\n  for (let index = startAt; index < len; index++) {\n    // SAFETY: Because we're checking the index this value should always be set.\n    let item = objectAt(array, index);\n    if (predicate(item, index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\nfunction find(array, callback, target = null) {\n  let predicate = callback.bind(target);\n  let index = findIndex(array, predicate, 0);\n  return index === -1 ? undefined : objectAt(array, index);\n}\nfunction any(array, callback, target = null) {\n  let predicate = callback.bind(target);\n  return findIndex(array, predicate, 0) !== -1;\n}\nfunction every(array, callback, target = null) {\n  let cb = callback.bind(target);\n  let predicate = (item, index, array) => !cb(item, index, array);\n  return findIndex(array, predicate, 0) === -1;\n}\nfunction indexOf(array, val, startAt = 0, withNaNCheck) {\n  let len = array.length;\n  if (startAt < 0) {\n    startAt += len;\n  }\n  // SameValueZero comparison (NaN !== NaN)\n  let predicate = withNaNCheck && val !== val ? item => item !== item : item => item === val;\n  return findIndex(array, predicate, startAt);\n}\nexport function removeAt(array, index, len) {\n  assert(`\\`removeAt\\` index provided is out of range`, index > -1 && index < array.length);\n  replace(array, index, len ?? 1, EMPTY_ARRAY);\n  return array;\n}\nfunction insertAt(array, index, item) {\n  assert(`\\`insertAt\\` index provided is out of range`, index > -1 && index <= array.length);\n  replace(array, index, 0, [item]);\n  return item;\n}\n/**\n  Returns true if the passed object is an array or Array-like.\n\n  Objects are considered Array-like if any of the following are true:\n\n    - the object is a native Array\n    - the object has an objectAt property\n    - the object is an Object, and has a length property\n\n  Unlike `typeOf` this method returns true even if the passed object is\n  not formally an array but appears to be array-like (i.e. implements `Array`)\n\n  ```javascript\n  import { isArray } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  isArray();                                      // false\n  isArray([]);                                    // true\n  isArray(ArrayProxy.create({ content: [] }));    // true\n  ```\n\n  @method isArray\n  @static\n  @for @ember/array\n  @param {Object} obj The object to test\n  @return {Boolean} true if the passed object is an array or Array-like\n  @public\n*/\nexport function isArray(obj) {\n  if (DEBUG && typeof obj === 'object' && obj !== null) {\n    // SAFETY: Property read checks are safe if it's an object\n    let possibleProxyContent = obj[PROXY_CONTENT];\n    if (possibleProxyContent !== undefined) {\n      obj = possibleProxyContent;\n    }\n  }\n  // SAFETY: Property read checks are safe if it's an object\n  if (!obj || obj.setInterval) {\n    return false;\n  }\n  if (Array.isArray(obj) || EmberArray.detect(obj)) {\n    return true;\n  }\n  let type = typeOf(obj);\n  if ('array' === type) {\n    return true;\n  }\n  // SAFETY: Property read checks are safe if it's an object\n  let length = obj.length;\n  if (typeof length === 'number' && length === length && 'object' === type) {\n    return true;\n  }\n  return false;\n}\n/*\n  This allows us to define computed properties that are not enumerable.\n  The primary reason this is important is that when `NativeArray` is\n  applied to `Array.prototype` we need to ensure that we do not add _any_\n  new enumerable properties.\n*/\nfunction nonEnumerableComputed(callback) {\n  let property = computed(callback);\n  property.enumerable = false;\n  return property;\n}\nfunction mapBy(key) {\n  return this.map(next => get(next, key));\n}\nconst EmberArray = Mixin.create(Enumerable, {\n  init() {\n    this._super(...arguments);\n    setEmberArray(this);\n  },\n  objectsAt(indexes) {\n    return indexes.map(idx => objectAt(this, idx));\n  },\n  '[]': nonEnumerableComputed({\n    get() {\n      return this;\n    },\n    set(_key, value) {\n      this.replace(0, this.length, value);\n      return this;\n    }\n  }),\n  firstObject: nonEnumerableComputed(function () {\n    return objectAt(this, 0);\n  }).readOnly(),\n  lastObject: nonEnumerableComputed(function () {\n    return objectAt(this, this.length - 1);\n  }).readOnly(),\n  // Add any extra methods to EmberArray that are native to the built-in Array.\n  slice(beginIndex = 0, endIndex) {\n    let ret = A();\n    let length = this.length;\n    if (beginIndex < 0) {\n      beginIndex = length + beginIndex;\n    }\n    let validatedEndIndex;\n    if (endIndex === undefined || endIndex > length) {\n      validatedEndIndex = length;\n    } else if (endIndex < 0) {\n      validatedEndIndex = length + endIndex;\n    } else {\n      validatedEndIndex = endIndex;\n    }\n    while (beginIndex < validatedEndIndex) {\n      ret[ret.length] = objectAt(this, beginIndex++);\n    }\n    return ret;\n  },\n  indexOf(object, startAt) {\n    return indexOf(this, object, startAt, false);\n  },\n  lastIndexOf(object, startAt) {\n    let len = this.length;\n    if (startAt === undefined || startAt >= len) {\n      startAt = len - 1;\n    }\n    if (startAt < 0) {\n      startAt += len;\n    }\n    for (let idx = startAt; idx >= 0; idx--) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n    return -1;\n  },\n  forEach(callback, target = null) {\n    assert('`forEach` expects a function as first argument.', typeof callback === 'function');\n    let length = this.length;\n    for (let index = 0; index < length; index++) {\n      let item = this.objectAt(index);\n      callback.call(target, item, index, this);\n    }\n    return this;\n  },\n  getEach: mapBy,\n  setEach(key, value) {\n    return this.forEach(item => set(item, key, value));\n  },\n  map(callback, target = null) {\n    assert('`map` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => ret[idx] = callback.call(target, x, idx, i));\n    return ret;\n  },\n  mapBy,\n  filter(callback, target = null) {\n    assert('`filter` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => {\n      if (callback.call(target, x, idx, i)) {\n        ret.push(x);\n      }\n    });\n    return ret;\n  },\n  reject(callback, target = null) {\n    assert('`reject` expects a function as first argument.', typeof callback === 'function');\n    return this.filter(function () {\n      // @ts-expect-error TS doesn't like us using arguments like this\n      return !callback.apply(target, arguments);\n    });\n  },\n  filterBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    return this.filter(iter(...arguments));\n  },\n  rejectBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    return this.reject(iter(...arguments));\n  },\n  find(callback, target = null) {\n    assert('`find` expects a function as first argument.', typeof callback === 'function');\n    return find(this, callback, target);\n  },\n  findBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    let callback = iter(...arguments);\n    return find(this, callback);\n  },\n  every(callback, target = null) {\n    assert('`every` expects a function as first argument.', typeof callback === 'function');\n    return every(this, callback, target);\n  },\n  isEvery() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    let callback = iter(...arguments);\n    return every(this, callback);\n  },\n  any(callback, target = null) {\n    assert('`any` expects a function as first argument.', typeof callback === 'function');\n    return any(this, callback, target);\n  },\n  isAny() {\n    // @ts-expect-error TS doesn't like us using arguments like this\n    let callback = iter(...arguments);\n    return any(this, callback);\n  },\n  // FIXME: When called without initialValue, behavior does not match native behavior\n  reduce(callback, initialValue) {\n    assert('`reduce` expects a function as first argument.', typeof callback === 'function');\n    let ret = initialValue;\n    this.forEach(function (item, i) {\n      ret = callback(ret, item, i, this);\n    }, this);\n    return ret;\n  },\n  invoke(methodName, ...args) {\n    let ret = A();\n    // SAFETY: This is not entirely safe and the code will not work with Ember proxies\n    this.forEach(item => ret.push(item[methodName]?.(...args)));\n    return ret;\n  },\n  toArray() {\n    return this.map(item => item);\n  },\n  compact() {\n    return this.filter(value => value != null);\n  },\n  includes(object, startAt) {\n    return indexOf(this, object, startAt, true) !== -1;\n  },\n  sortBy() {\n    let sortKeys = arguments;\n    return this.toArray().sort((a, b) => {\n      for (let i = 0; i < sortKeys.length; i++) {\n        let key = sortKeys[i];\n        let propA = get(a, key);\n        let propB = get(b, key);\n        // return 1 or -1 else continue to the next sortKey\n        let compareValue = compare(propA, propB);\n        if (compareValue) {\n          return compareValue;\n        }\n      }\n      return 0;\n    });\n  },\n  uniq() {\n    return uniqBy(this);\n  },\n  uniqBy(key) {\n    return uniqBy(this, key);\n  },\n  without(value) {\n    if (!this.includes(value)) {\n      return this; // nothing to do\n    }\n    // SameValueZero comparison (NaN !== NaN)\n    let predicate = value === value ? item => item !== value : item => item === item;\n    return this.filter(predicate);\n  }\n});\nconst MutableArray = Mixin.create(EmberArray, MutableEnumerable, {\n  clear() {\n    let len = this.length;\n    if (len === 0) {\n      return this;\n    }\n    this.replace(0, len, EMPTY_ARRAY);\n    return this;\n  },\n  insertAt(idx, object) {\n    insertAt(this, idx, object);\n    return this;\n  },\n  removeAt(start, len) {\n    return removeAt(this, start, len);\n  },\n  pushObject(obj) {\n    return insertAt(this, this.length, obj);\n  },\n  pushObjects(objects) {\n    this.replace(this.length, 0, objects);\n    return this;\n  },\n  popObject() {\n    let len = this.length;\n    if (len === 0) {\n      return null;\n    }\n    let ret = objectAt(this, len - 1);\n    this.removeAt(len - 1, 1);\n    return ret;\n  },\n  shiftObject() {\n    if (this.length === 0) {\n      return null;\n    }\n    let ret = objectAt(this, 0);\n    this.removeAt(0);\n    return ret;\n  },\n  unshiftObject(obj) {\n    return insertAt(this, 0, obj);\n  },\n  unshiftObjects(objects) {\n    this.replace(0, 0, objects);\n    return this;\n  },\n  reverseObjects() {\n    let len = this.length;\n    if (len === 0) {\n      return this;\n    }\n    let objects = this.toArray().reverse();\n    this.replace(0, len, objects);\n    return this;\n  },\n  setObjects(objects) {\n    if (objects.length === 0) {\n      return this.clear();\n    }\n    let len = this.length;\n    this.replace(0, len, objects);\n    return this;\n  },\n  removeObject(obj) {\n    let loc = this.length || 0;\n    while (--loc >= 0) {\n      let curObject = objectAt(this, loc);\n      if (curObject === obj) {\n        this.removeAt(loc);\n      }\n    }\n    return this;\n  },\n  removeObjects(objects) {\n    beginPropertyChanges();\n    for (let i = objects.length - 1; i >= 0; i--) {\n      // SAFETY: Due to the loop structure we know this will always exist.\n      this.removeObject(objects[i]);\n    }\n    endPropertyChanges();\n    return this;\n  },\n  addObject(obj) {\n    let included = this.includes(obj);\n    if (!included) {\n      this.pushObject(obj);\n    }\n    return this;\n  },\n  addObjects(objects) {\n    beginPropertyChanges();\n    objects.forEach(obj => this.addObject(obj));\n    endPropertyChanges();\n    return this;\n  }\n});\nlet NativeArray = Mixin.create(MutableArray, Observable, {\n  objectAt(idx) {\n    return this[idx];\n  },\n  // primitive for array support.\n  replace(start, deleteCount, items = EMPTY_ARRAY) {\n    assert('The third argument to replace needs to be an array.', Array.isArray(items));\n    replaceInNativeArray(this, start, deleteCount, items);\n    return this;\n  }\n});\n// Remove any methods implemented natively so we don't override them\nconst ignore = ['length'];\nNativeArray.keys().forEach(methodName => {\n  // SAFETY: It's safe to read unknown properties from an object\n  if (Array.prototype[methodName]) {\n    ignore.push(methodName);\n  }\n});\nNativeArray = NativeArray.without(...ignore);\nlet A;\nif (ENV.EXTEND_PROTOTYPES.Array) {\n  NativeArray.apply(Array.prototype, true);\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n    // SAFTEY: Since we are extending prototypes all true native arrays are Ember NativeArrays\n    return arr || [];\n  };\n} else {\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n    if (isEmberArray(arr)) {\n      // SAFETY: If it's a true native array and it is also an EmberArray then it should be an Ember NativeArray\n      return arr;\n    } else {\n      // SAFETY: This will return an NativeArray but TS can't infer that.\n      return NativeArray.apply(arr ?? []);\n    }\n  };\n}\nexport { A, NativeArray, MutableArray };\nexport default EmberArray;","const {\n  isArray\n} = Array;\nfunction makeArray(obj) {\n  if (obj === null || obj === undefined) {\n    return [];\n  }\n  return isArray(obj) ? obj : [obj];\n}\nexport default makeArray;","/**\n@module @ember/array/proxy\n*/\nimport { objectAt, alias, PROPERTY_DID_CHANGE, addArrayObserver, removeArrayObserver, replace, arrayContentDidChange, arrayContentWillChange, tagForProperty } from '@ember/-internals/metal';\nimport { get } from '@ember/object';\nimport { isObject } from '@ember/-internals/utils';\nimport EmberObject from '@ember/object';\nimport EmberArray from '@ember/array';\nimport MutableArray from '@ember/array/mutable';\nimport { assert } from '@ember/debug';\nimport { setCustomTagFor } from '@glimmer/manager';\nimport { combine, consumeTag, validateTag, valueForTag, tagFor } from '@glimmer/validator';\nfunction isMutable(obj) {\n  return Array.isArray(obj) || typeof obj.replace === 'function';\n}\nconst ARRAY_OBSERVER_MAPPING = {\n  willChange: '_arrangedContentArrayWillChange',\n  didChange: '_arrangedContentArrayDidChange'\n};\nfunction customTagForArrayProxy(proxy, key) {\n  assert('[BUG] Expected a proxy', proxy instanceof ArrayProxy);\n  if (key === '[]') {\n    proxy._revalidate();\n    return proxy._arrTag;\n  } else if (key === 'length') {\n    proxy._revalidate();\n    return proxy._lengthTag;\n  }\n  return tagFor(proxy, key);\n}\nclass ArrayProxy extends EmberObject {\n  constructor() {\n    super(...arguments);\n    /*\n      `this._objectsDirtyIndex` determines which indexes in the `this._objects`\n      cache are dirty.\n             If `this._objectsDirtyIndex === -1` then no indexes are dirty.\n      Otherwise, an index `i` is dirty if `i >= this._objectsDirtyIndex`.\n             Calling `objectAt` with a dirty index will cause the `this._objects`\n      cache to be recomputed.\n    */\n    /** @internal */\n    this._objectsDirtyIndex = 0;\n    /** @internal */\n    this._objects = null;\n    /** @internal */\n    this._lengthDirty = true;\n    /** @internal */\n    this._length = 0;\n    /** @internal */\n    this._arrangedContent = null;\n    /** @internal */\n    this._arrangedContentIsUpdating = false;\n    /** @internal */\n    this._arrangedContentTag = null;\n    /** @internal */\n    this._arrangedContentRevision = null;\n    /** @internal */\n    this._lengthTag = null;\n    /** @internal */\n    this._arrTag = null;\n  }\n  init(props) {\n    super.init(props);\n    setCustomTagFor(this, customTagForArrayProxy);\n  }\n  [PROPERTY_DID_CHANGE]() {\n    this._revalidate();\n  }\n  willDestroy() {\n    this._removeArrangedContentArrayObserver();\n  }\n  objectAtContent(idx) {\n    let arrangedContent = get(this, 'arrangedContent');\n    assert('[BUG] Called objectAtContent without content', arrangedContent);\n    return objectAt(arrangedContent, idx);\n  }\n  // See additional docs for `replace` from `MutableArray`:\n  // https://api.emberjs.com/ember/release/classes/MutableArray/methods/replace?anchor=replace\n  replace(idx, amt, objects) {\n    assert('Mutating an arranged ArrayProxy is not allowed', get(this, 'arrangedContent') === get(this, 'content'));\n    this.replaceContent(idx, amt, objects);\n  }\n  replaceContent(idx, amt, objects) {\n    let content = get(this, 'content');\n    assert('[BUG] Called replaceContent without content', content);\n    assert('Mutating a non-mutable array is not allowed', isMutable(content));\n    replace(content, idx, amt, objects);\n  }\n  // Overriding objectAt is not supported.\n  objectAt(idx) {\n    this._revalidate();\n    if (this._objects === null) {\n      this._objects = [];\n    }\n    if (this._objectsDirtyIndex !== -1 && idx >= this._objectsDirtyIndex) {\n      let arrangedContent = get(this, 'arrangedContent');\n      if (arrangedContent) {\n        let length = this._objects.length = get(arrangedContent, 'length');\n        for (let i = this._objectsDirtyIndex; i < length; i++) {\n          // SAFETY: This is expected to only ever return an instance of T. In other words, there should\n          // be no gaps in the array. Unfortunately, we can't actually assert for it since T could include\n          // any types, including null or undefined.\n          this._objects[i] = this.objectAtContent(i);\n        }\n      } else {\n        this._objects.length = 0;\n      }\n      this._objectsDirtyIndex = -1;\n    }\n    return this._objects[idx];\n  }\n  // Overriding length is not supported.\n  get length() {\n    this._revalidate();\n    if (this._lengthDirty) {\n      let arrangedContent = get(this, 'arrangedContent');\n      this._length = arrangedContent ? get(arrangedContent, 'length') : 0;\n      this._lengthDirty = false;\n    }\n    assert('[BUG] _lengthTag is not set', this._lengthTag);\n    consumeTag(this._lengthTag);\n    return this._length;\n  }\n  set length(value) {\n    let length = this.length;\n    let removedCount = length - value;\n    let added;\n    if (removedCount === 0) {\n      return;\n    } else if (removedCount < 0) {\n      added = new Array(-removedCount);\n      removedCount = 0;\n    }\n    let content = get(this, 'content');\n    if (content) {\n      assert('Mutating a non-mutable array is not allowed', isMutable(content));\n      replace(content, value, removedCount, added);\n      this._invalidate();\n    }\n  }\n  _updateArrangedContentArray(arrangedContent) {\n    let oldLength = this._objects === null ? 0 : this._objects.length;\n    let newLength = arrangedContent ? get(arrangedContent, 'length') : 0;\n    this._removeArrangedContentArrayObserver();\n    arrayContentWillChange(this, 0, oldLength, newLength);\n    this._invalidate();\n    arrayContentDidChange(this, 0, oldLength, newLength, false);\n    this._addArrangedContentArrayObserver(arrangedContent);\n  }\n  _addArrangedContentArrayObserver(arrangedContent) {\n    if (arrangedContent && !arrangedContent.isDestroyed) {\n      assert(\"Can't set ArrayProxy's content to itself\", arrangedContent !== this);\n      assert(`ArrayProxy expects a native Array, EmberArray, or ArrayProxy, but you passed ${typeof arrangedContent}`, function (arr) {\n        return Array.isArray(arr) || EmberArray.detect(arr);\n      }(arrangedContent));\n      assert('ArrayProxy expected its contents to not be destroyed', !arrangedContent.isDestroyed);\n      addArrayObserver(arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n      this._arrangedContent = arrangedContent;\n    }\n  }\n  _removeArrangedContentArrayObserver() {\n    if (this._arrangedContent) {\n      removeArrayObserver(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n    }\n  }\n  _arrangedContentArrayWillChange() {}\n  _arrangedContentArrayDidChange(_proxy, idx, removedCnt, addedCnt) {\n    arrayContentWillChange(this, idx, removedCnt, addedCnt);\n    let dirtyIndex = idx;\n    if (dirtyIndex < 0) {\n      let length = get(this._arrangedContent, 'length');\n      dirtyIndex += length + removedCnt - addedCnt;\n    }\n    if (this._objectsDirtyIndex === -1 || this._objectsDirtyIndex > dirtyIndex) {\n      this._objectsDirtyIndex = dirtyIndex;\n    }\n    this._lengthDirty = true;\n    arrayContentDidChange(this, idx, removedCnt, addedCnt, false);\n  }\n  _invalidate() {\n    this._objectsDirtyIndex = 0;\n    this._lengthDirty = true;\n  }\n  _revalidate() {\n    if (this._arrangedContentIsUpdating === true) return;\n    if (this._arrangedContentTag === null || !validateTag(this._arrangedContentTag, this._arrangedContentRevision)) {\n      let arrangedContent = this.get('arrangedContent');\n      if (this._arrangedContentTag === null) {\n        // This is the first time the proxy has been setup, only add the observer\n        // don't trigger any events\n        this._addArrangedContentArrayObserver(arrangedContent);\n      } else {\n        this._arrangedContentIsUpdating = true;\n        this._updateArrangedContentArray(arrangedContent);\n        this._arrangedContentIsUpdating = false;\n      }\n      let arrangedContentTag = this._arrangedContentTag = tagFor(this, 'arrangedContent');\n      this._arrangedContentRevision = valueForTag(this._arrangedContentTag);\n      if (isObject(arrangedContent)) {\n        this._lengthTag = combine([arrangedContentTag, tagForProperty(arrangedContent, 'length')]);\n        this._arrTag = combine([arrangedContentTag, tagForProperty(arrangedContent, '[]')]);\n      } else {\n        this._lengthTag = this._arrTag = arrangedContentTag;\n      }\n    }\n  }\n}\nArrayProxy.reopen(MutableArray, {\n  arrangedContent: alias('content')\n});\nexport default ArrayProxy;","import { ENV } from '@ember/-internals/environment';\n/**\n  Set `EmberENV.FEATURES` in your application's `config/environment.js` file\n  to enable canary features in your application.\n\n  See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\n  for more details.\n\n  @module @ember/canary-features\n  @public\n*/\nexport const DEFAULT_FEATURES = {\n  // FLAG_NAME: true/false\n};\n/**\n  The hash of enabled Canary features. Add to this, any canary features\n  before creating your application.\n\n  @class FEATURES\n  @static\n  @since 1.1.0\n  @public\n*/\nexport const FEATURES = Object.assign(DEFAULT_FEATURES, ENV.FEATURES);\n/**\n  Determine whether the specified `feature` is enabled. Used by Ember's\n  build tools to exclude experimental features from beta/stable builds.\n\n  You can define the following configuration options:\n\n  * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n    enabled/disabled.\n\n  @method isEnabled\n  @param {String} feature The feature to check\n  @return {Boolean}\n  @since 1.1.0\n  @public\n*/\nexport function isEnabled(feature) {\n  let value = FEATURES[feature];\n  if (value === true || value === false) {\n    return value;\n  } else if (ENV.ENABLE_OPTIONAL_FEATURES) {\n    return true;\n  } else {\n    return false;\n  }\n}\n// Uncomment the below when features are present:\n// function featureValue(value: null | boolean) {\n//   if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n//     return true;\n//   }\n//   return value;\n// }\n// export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);","/**\n  @module @ember/component/template-only\n  @public\n*/\nimport { templateOnlyComponent as glimmerTemplateOnlyComponent } from '@glimmer/runtime';\n// NOTES:\n//\n// 1. The generic here is for a *signature: a way to hang information for tools\n//    like Glint which can provide typey checking for component templates using\n//    information supplied via this generic. While it may appear useless on this\n//    class definition and extension, it is used by external tools and should\n//    not be removed.\n// 2. SAFETY: this cast is *throwing away* information that is not part of the\n//    public API and replacing it with something which has the same calling\n//    contract, but much less information (since we do not want to expose the\n//    internal APIs like `moduleName` etc.).\n// prettier-ignore\nconst templateOnly = glimmerTemplateOnlyComponent;\nexport default templateOnly;","import { getOwner } from '@ember/-internals/owner'; // This is imported from -internals to avoid circularity\nimport { computed, get } from '@ember/object';\nimport { FrameworkObject } from '@ember/object/-internals';\nimport { inject as metalInject } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport { symbol } from '@ember/-internals/utils';\nconst MODEL = symbol('MODEL');\nconst ControllerMixin = Mixin.create(ActionHandler, {\n  /* ducktype as a controller */\n  isController: true,\n  concatenatedProperties: ['queryParams'],\n  target: null,\n  store: null,\n  init() {\n    this._super(...arguments);\n    let owner = getOwner(this);\n    if (owner) {\n      this.namespace = owner.lookup('application:main');\n      this.target = owner.lookup('router:main');\n    }\n  },\n  model: computed({\n    get() {\n      return this[MODEL];\n    },\n    set(_key, value) {\n      return this[MODEL] = value;\n    }\n  }),\n  queryParams: null,\n  /**\n   This property is updated to various different callback functions depending on\n   the current \"state\" of the backing route. It is used by\n   `Controller.prototype._qpChanged`.\n      The methods backing each state can be found in the `Route.prototype._qp` computed\n   property return value (the `.states` property). The current values are listed here for\n   the sanity of future travelers:\n      * `inactive` - This state is used when this controller instance is not part of the active\n     route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n     `Route.prototype.actions.finalizeQueryParamChange`.\n   * `active` - This state is used when this controller instance is part of the active\n     route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n   * `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).\n       @method _qpDelegate\n    @private\n  */\n  _qpDelegate: null,\n  /**\n   During `Route#setup` observers are created to invoke this method\n   when any of the query params declared in `Controller#queryParams` property\n   are changed.\n      When invoked this method uses the currently active query param update delegate\n   (see `Controller.prototype._qpDelegate` for details) and invokes it with\n   the QP key/value being changed.\n       @method _qpChanged\n    @private\n  */\n  _qpChanged(controller, _prop) {\n    let dotIndex = _prop.indexOf('.[]');\n    let prop = dotIndex === -1 ? _prop : _prop.slice(0, dotIndex);\n    let delegate = controller._qpDelegate;\n    let value = get(controller, prop);\n    delegate(prop, value);\n  }\n});\nclass Controller extends FrameworkObject.extend(ControllerMixin) {}\nexport function inject(...args) {\n  return metalInject('controller', ...args);\n}\nexport { Controller as default, ControllerMixin };","import { classify, dasherize } from '@ember/-internals/string';\nimport EmberObject from '@ember/object';\nimport { typeOf } from '@ember/utils';\nimport { getOwner } from '@ember/-internals/owner';\nimport Namespace from '@ember/application/namespace';\n/**\n@module @ember/debug/container-debug-adapter\n*/\n/**\n  The `ContainerDebugAdapter` helps the container and resolver interface\n  with tools that debug Ember such as the\n  [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class can be extended by a custom resolver implementer\n  to override some of the methods with library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `canCatalogEntriesByType`\n  * `catalogEntriesByType`\n\n  The adapter will need to be registered\n  in the application's container as `container-debug-adapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"containerDebugAdapter\",\n\n    initialize(application) {\n      application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n    }\n  });\n  ```\n\n  @class ContainerDebugAdapter\n  @extends EmberObject\n  @since 1.5.0\n  @public\n*/\nexport default class ContainerDebugAdapter extends EmberObject {\n  constructor(owner) {\n    super(owner);\n    this.resolver = getOwner(this).lookup('resolver-for-debugging:main');\n  }\n  /**\n    Returns true if it is possible to catalog a list of available\n    classes in the resolver for a given type.\n       @method canCatalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {boolean} whether a list is available for this type.\n    @public\n  */\n  canCatalogEntriesByType(type) {\n    if (type === 'model' || type === 'template') {\n      return false;\n    }\n    return true;\n  }\n  /**\n    Returns the available classes a given type.\n       @method catalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {Array} An array of strings.\n    @public\n  */\n  catalogEntriesByType(type) {\n    let namespaces = Namespace.NAMESPACES;\n    let types = [];\n    let typeSuffixRegex = new RegExp(`${classify(type)}$`);\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n        if (typeSuffixRegex.test(key)) {\n          let klass = namespace[key];\n          if (typeOf(klass) === 'class') {\n            types.push(dasherize(key.replace(typeSuffixRegex, '')));\n          }\n        }\n      }\n    });\n    return types;\n  }\n}","import { getOwner } from '@ember/-internals/owner';\nimport { _backburner, next } from '@ember/runloop';\nimport { get } from '@ember/object';\nimport { dasherize } from '@ember/-internals/string';\nimport Namespace from '@ember/application/namespace';\nimport EmberObject from '@ember/object';\nimport { A as emberA } from '@ember/array';\nimport { consumeTag, createCache, getValue, tagFor, untrack } from '@glimmer/validator';\nimport { assert } from '.';\nfunction iterate(arr, fn) {\n  if (Symbol.iterator in arr) {\n    for (let item of arr) {\n      fn(item);\n    }\n  } else {\n    // SAFETY: this cast required to work this way to interop between TS 4.8\n    // and 4.9. When we drop support for 4.8, it will narrow correctly via the\n    // use of the `in` operator above. (Preferably we will solve this by just\n    // switching to require `Symbol.iterator` instead.)\n    assert('', typeof arr.forEach === 'function');\n    arr.forEach(fn);\n  }\n}\nclass RecordsWatcher {\n  getCacheForItem(record) {\n    let recordCache = this.recordCaches.get(record);\n    if (!recordCache) {\n      let hasBeenAdded = false;\n      recordCache = createCache(() => {\n        if (!hasBeenAdded) {\n          this.added.push(this.wrapRecord(record));\n          hasBeenAdded = true;\n        } else {\n          this.updated.push(this.wrapRecord(record));\n        }\n      });\n      this.recordCaches.set(record, recordCache);\n    }\n    return recordCache;\n  }\n  constructor(records, recordsAdded, recordsUpdated, recordsRemoved, wrapRecord, release) {\n    this.wrapRecord = wrapRecord;\n    this.release = release;\n    this.recordCaches = new Map();\n    this.added = [];\n    this.updated = [];\n    this.removed = [];\n    this.recordArrayCache = createCache(() => {\n      let seen = new Set();\n      // Track `[]` for legacy support\n      consumeTag(tagFor(records, '[]'));\n      iterate(records, record => {\n        getValue(this.getCacheForItem(record));\n        seen.add(record);\n      });\n      // Untrack this operation because these records are being removed, they\n      // should not be polled again in the future\n      untrack(() => {\n        this.recordCaches.forEach((_cache, record) => {\n          if (!seen.has(record)) {\n            this.removed.push(wrapRecord(record));\n            this.recordCaches.delete(record);\n          }\n        });\n      });\n      if (this.added.length > 0) {\n        recordsAdded(this.added);\n        this.added = [];\n      }\n      if (this.updated.length > 0) {\n        recordsUpdated(this.updated);\n        this.updated = [];\n      }\n      if (this.removed.length > 0) {\n        recordsRemoved(this.removed);\n        this.removed = [];\n      }\n    });\n  }\n  revalidate() {\n    getValue(this.recordArrayCache);\n  }\n}\nclass TypeWatcher {\n  constructor(records, onChange, release) {\n    this.release = release;\n    let hasBeenAccessed = false;\n    this.cache = createCache(() => {\n      // Empty iteration, we're doing this just\n      // to track changes to the records array\n      iterate(records, () => {});\n      // Also track `[]` for legacy support\n      consumeTag(tagFor(records, '[]'));\n      if (hasBeenAccessed === true) {\n        next(onChange);\n      } else {\n        hasBeenAccessed = true;\n      }\n    });\n    this.release = release;\n  }\n  revalidate() {\n    getValue(this.cache);\n  }\n}\n/**\n  The `DataAdapter` helps a data persistence library\n  interface with tools that debug Ember such\n  as the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class will be extended by a persistence library\n  which will override some of the methods with\n  library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `getFilters`\n  * `detect`\n  * `columnsForType`\n  * `getRecords`\n  * `getRecordColumnValues`\n  * `getRecordKeywords`\n  * `getRecordFilterValues`\n  * `getRecordColor`\n\n  The adapter will need to be registered\n  in the application's container as `dataAdapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"data-adapter\",\n\n    initialize: function(application) {\n      application.register('data-adapter:main', DS.DataAdapter);\n    }\n  });\n  ```\n\n  @class DataAdapter\n  @extends EmberObject\n  @public\n*/\nexport default class DataAdapter extends EmberObject {\n  constructor(owner) {\n    super(owner);\n    this.releaseMethods = emberA();\n    this.recordsWatchers = new Map();\n    this.typeWatchers = new Map();\n    this.flushWatchers = null;\n    /**\n      The container-debug-adapter which is used\n      to list all models.\n             @property containerDebugAdapter\n      @default undefined\n      @since 1.5.0\n      @public\n    **/\n    /**\n      The number of attributes to send\n      as columns. (Enough to make the record\n      identifiable).\n             @private\n      @property attributeLimit\n      @default 3\n      @since 1.3.0\n    */\n    this.attributeLimit = 3;\n    /**\n       Ember Data > v1.0.0-beta.18\n       requires string model names to be passed\n       around instead of the actual factories.\n              This is a stamp for the Ember Inspector\n       to differentiate between the versions\n       to be able to support older versions too.\n              @public\n       @property acceptsModelName\n     */\n    this.acceptsModelName = true;\n    this.containerDebugAdapter = getOwner(this).lookup('container-debug-adapter:main');\n  }\n  /**\n     Map from records arrays to RecordsWatcher instances\n        @private\n     @property recordsWatchers\n     @since 3.26.0\n   */\n  /**\n    Map from records arrays to TypeWatcher instances\n       @private\n    @property typeWatchers\n    @since 3.26.0\n   */\n  /**\n    Callback that is currently scheduled on backburner end to flush and check\n    all active watchers.\n       @private\n    @property flushWatchers\n    @since 3.26.0\n      */\n  /**\n    Stores all methods that clear observers.\n    These methods will be called on destruction.\n       @private\n    @property releaseMethods\n    @since 1.3.0\n  */\n  /**\n    Specifies how records can be filtered.\n    Records returned will need to have a `filterValues`\n    property with a key for every name in the returned array.\n       @public\n    @method getFilters\n    @return {Array} List of objects defining filters.\n     The object should have a `name` and `desc` property.\n  */\n  getFilters() {\n    return emberA();\n  }\n  /**\n    Fetch the model types and observe them for changes.\n       @public\n    @method watchModelTypes\n       @param {Function} typesAdded Callback to call to add types.\n    Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n       @param {Function} typesUpdated Callback to call when a type has changed.\n    Takes an array of objects containing wrapped types.\n       @return {Function} Method to call to remove all observers\n  */\n  watchModelTypes(typesAdded, typesUpdated) {\n    let modelTypes = this.getModelTypes();\n    let releaseMethods = emberA();\n    let typesToSend;\n    typesToSend = modelTypes.map(type => {\n      let klass = type.klass;\n      let wrapped = this.wrapModelType(klass, type.name);\n      releaseMethods.push(this.observeModelType(type.name, typesUpdated));\n      return wrapped;\n    });\n    typesAdded(typesToSend);\n    let release = () => {\n      releaseMethods.forEach(fn => fn());\n      this.releaseMethods.removeObject(release);\n    };\n    this.releaseMethods.pushObject(release);\n    return release;\n  }\n  _nameToClass(type) {\n    if (typeof type === 'string') {\n      let owner = getOwner(this);\n      let Factory = owner.factoryFor(`model:${type}`);\n      type = Factory && Factory.class;\n    }\n    return type;\n  }\n  /**\n    Fetch the records of a given type and observe them for changes.\n       @public\n    @method watchRecords\n       @param {String} modelName The model name.\n       @param {Function} recordsAdded Callback to call to add records.\n    Takes an array of objects containing wrapped records.\n    The object should have the following properties:\n      columnValues: {Object} The key and value of a table cell.\n      object: {Object} The actual record object.\n       @param {Function} recordsUpdated Callback to call when a record has changed.\n    Takes an array of objects containing wrapped records.\n       @param {Function} recordsRemoved Callback to call when a record has removed.\n    Takes an array of objects containing wrapped records.\n       @return {Function} Method to call to remove all observers.\n  */\n  watchRecords(modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n    let klass = this._nameToClass(modelName);\n    let records = this.getRecords(klass, modelName);\n    let {\n      recordsWatchers\n    } = this;\n    let recordsWatcher = recordsWatchers.get(records);\n    if (!recordsWatcher) {\n      recordsWatcher = new RecordsWatcher(records, recordsAdded, recordsUpdated, recordsRemoved, record => this.wrapRecord(record), () => {\n        recordsWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      recordsWatchers.set(records, recordsWatcher);\n      this.updateFlushWatchers();\n      recordsWatcher.revalidate();\n    }\n    return recordsWatcher.release;\n  }\n  updateFlushWatchers() {\n    if (this.flushWatchers === null) {\n      if (this.typeWatchers.size > 0 || this.recordsWatchers.size > 0) {\n        this.flushWatchers = () => {\n          this.typeWatchers.forEach(watcher => watcher.revalidate());\n          this.recordsWatchers.forEach(watcher => watcher.revalidate());\n        };\n        _backburner.on('end', this.flushWatchers);\n      }\n    } else if (this.typeWatchers.size === 0 && this.recordsWatchers.size === 0) {\n      _backburner.off('end', this.flushWatchers);\n      this.flushWatchers = null;\n    }\n  }\n  /**\n    Clear all observers before destruction\n    @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._super(...arguments);\n    this.typeWatchers.forEach(watcher => watcher.release());\n    this.recordsWatchers.forEach(watcher => watcher.release());\n    this.releaseMethods.forEach(fn => fn());\n    if (this.flushWatchers) {\n      _backburner.off('end', this.flushWatchers);\n    }\n  }\n  /**\n    Detect whether a class is a model.\n       Test that against the model class\n    of your persistence library.\n       @public\n    @method detect\n    @return boolean Whether the class is a model class or not.\n  */\n  detect(_klass) {\n    return false;\n  }\n  /**\n    Get the columns for a given model type.\n       @public\n    @method columnsForType\n    @return {Array} An array of columns of the following format:\n     name: {String} The name of the column.\n     desc: {String} Humanized description (what would show in a table column name).\n  */\n  columnsForType(_klass) {\n    return emberA();\n  }\n  /**\n    Adds observers to a model type class.\n       @private\n    @method observeModelType\n    @param {String} modelName The model type name.\n    @param {Function} typesUpdated Called when a type is modified.\n    @return {Function} The function to call to remove observers.\n  */\n  observeModelType(modelName, typesUpdated) {\n    let klass = this._nameToClass(modelName);\n    let records = this.getRecords(klass, modelName);\n    let onChange = () => {\n      typesUpdated([this.wrapModelType(klass, modelName)]);\n    };\n    let {\n      typeWatchers\n    } = this;\n    let typeWatcher = typeWatchers.get(records);\n    if (!typeWatcher) {\n      typeWatcher = new TypeWatcher(records, onChange, () => {\n        typeWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      typeWatchers.set(records, typeWatcher);\n      this.updateFlushWatchers();\n      typeWatcher.revalidate();\n    }\n    return typeWatcher.release;\n  }\n  /**\n    Wraps a given model type and observes changes to it.\n       @private\n    @method wrapModelType\n    @param {Class} klass A model class.\n    @param {String} modelName Name of the class.\n    @return {Object} The wrapped type has the following format:\n      name: {String} The name of the type.\n      count: {Integer} The number of records available.\n      columns: {Columns} An array of columns to describe the record.\n      object: {Class} The actual Model type class.\n  */\n  wrapModelType(klass, name) {\n    let records = this.getRecords(klass, name);\n    return {\n      name,\n      count: get(records, 'length'),\n      columns: this.columnsForType(klass),\n      object: klass\n    };\n  }\n  /**\n    Fetches all models defined in the application.\n       @private\n    @method getModelTypes\n    @return {Array} Array of model types.\n  */\n  getModelTypes() {\n    let containerDebugAdapter = this.containerDebugAdapter;\n    let stringTypes = containerDebugAdapter.canCatalogEntriesByType('model') ? containerDebugAdapter.catalogEntriesByType('model') : this._getObjectsOnNamespaces();\n    // New adapters return strings instead of classes.\n    let klassTypes = stringTypes.map(name => {\n      return {\n        klass: this._nameToClass(name),\n        name\n      };\n    });\n    return klassTypes.filter(type => this.detect(type.klass));\n  }\n  /**\n    Loops over all namespaces and all objects\n    attached to them.\n       @private\n    @method _getObjectsOnNamespaces\n    @return {Array} Array of model type strings.\n  */\n  _getObjectsOnNamespaces() {\n    let namespaces = Namespace.NAMESPACES;\n    let types = [];\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n        // Even though we will filter again in `getModelTypes`,\n        // we should not call `lookupFactory` on non-models\n        if (!this.detect(namespace[key])) {\n          continue;\n        }\n        let name = dasherize(key);\n        types.push(name);\n      }\n    });\n    return types;\n  }\n  /**\n    Fetches all loaded records for a given type.\n       @public\n    @method getRecords\n    @return {Array} An array of records.\n     This array will be observed for changes,\n     so it should update when new records are added/removed.\n  */\n  getRecords(_klass, _name) {\n    return emberA();\n  }\n  /**\n    Wraps a record and observers changes to it.\n       @private\n    @method wrapRecord\n    @param {Object} record The record instance.\n    @return {Object} The wrapped record. Format:\n    columnValues: {Array}\n    searchKeywords: {Array}\n  */\n  wrapRecord(record) {\n    return {\n      object: record,\n      columnValues: this.getRecordColumnValues(record),\n      searchKeywords: this.getRecordKeywords(record),\n      filterValues: this.getRecordFilterValues(record),\n      color: this.getRecordColor(record)\n    };\n  }\n  /**\n    Gets the values for each column.\n       @public\n    @method getRecordColumnValues\n    @return {Object} Keys should match column names defined\n    by the model type.\n  */\n  getRecordColumnValues(_record) {\n    return {};\n  }\n  /**\n    Returns keywords to match when searching records.\n       @public\n    @method getRecordKeywords\n    @return {Array} Relevant keywords for search.\n  */\n  getRecordKeywords(_record) {\n    return emberA();\n  }\n  /**\n    Returns the values of filters defined by `getFilters`.\n       @public\n    @method getRecordFilterValues\n    @param {Object} record The record instance.\n    @return {Object} The filter values.\n  */\n  getRecordFilterValues(_record) {\n    return {};\n  }\n  /**\n    Each record can have a color that represents its state.\n       @public\n    @method getRecordColor\n    @param {Object} record The record instance\n    @return {String} The records color.\n      Possible options: black, red, blue, green.\n  */\n  getRecordColor(_record) {\n    return null;\n  }\n}","import { isChrome, isFirefox } from '@ember/-internals/browser-environment';\nimport { DEBUG } from '@glimmer/env';\nimport _deprecate from './lib/deprecate';\nimport { isTesting } from './lib/testing';\nimport _warn from './lib/warn';\nexport { registerHandler as registerWarnHandler } from './lib/warn';\nexport { registerHandler as registerDeprecationHandler } from './lib/deprecate';\nexport { default as inspect } from './lib/inspect';\nexport { isTesting, setTesting } from './lib/testing';\nexport { default as captureRenderTree } from './lib/capture-render-tree';\n// These are the default production build versions:\nconst noop = () => {};\n// SAFETY: these casts are just straight-up lies, but the point is that they do\n// not do anything in production builds.\nlet assert = noop;\nlet info = noop;\nlet warn = noop;\nlet debug = noop;\nlet deprecate = noop;\nlet debugSeal = noop;\nlet debugFreeze = noop;\nlet runInDebug = noop;\nlet setDebugFunction = noop;\nlet getDebugFunction = noop;\nlet deprecateFunc = function () {\n  return arguments[arguments.length - 1];\n};\nif (DEBUG) {\n  setDebugFunction = function (type, callback) {\n    switch (type) {\n      case 'assert':\n        return assert = callback;\n      case 'info':\n        return info = callback;\n      case 'warn':\n        return warn = callback;\n      case 'debug':\n        return debug = callback;\n      case 'deprecate':\n        return deprecate = callback;\n      case 'debugSeal':\n        return debugSeal = callback;\n      case 'debugFreeze':\n        return debugFreeze = callback;\n      case 'runInDebug':\n        return runInDebug = callback;\n      case 'deprecateFunc':\n        return deprecateFunc = callback;\n    }\n  };\n  getDebugFunction = function (type) {\n    switch (type) {\n      case 'assert':\n        return assert;\n      case 'info':\n        return info;\n      case 'warn':\n        return warn;\n      case 'debug':\n        return debug;\n      case 'deprecate':\n        return deprecate;\n      case 'debugSeal':\n        return debugSeal;\n      case 'debugFreeze':\n        return debugFreeze;\n      case 'runInDebug':\n        return runInDebug;\n      case 'deprecateFunc':\n        return deprecateFunc;\n    }\n  };\n}\n/**\n@module @ember/debug\n*/\nif (DEBUG) {\n  // eslint-disable-next-line no-inner-declarations\n  function assert(desc, test) {\n    if (!test) {\n      throw new Error(`Assertion Failed: ${desc}`);\n    }\n  }\n  setDebugFunction('assert', assert);\n  /**\n    Display a debug notice.\n       Calls to this function are not invoked in production builds.\n       ```javascript\n    import { debug } from '@ember/debug';\n       debug('I\\'m a debug notice!');\n    ```\n       @method debug\n    @for @ember/debug\n    @static\n    @param {String} message A debug message to display.\n    @public\n  */\n  setDebugFunction('debug', function debug(message) {\n    console.debug(`DEBUG: ${message}`); /* eslint-disable-line no-console */\n  });\n  /**\n    Display an info notice.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       @method info\n    @private\n  */\n  setDebugFunction('info', function info() {\n    console.info(...arguments); /* eslint-disable-line no-console */\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n  /**\n    Alias an old, deprecated method with its new counterpart.\n       Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only) when the assigned method is called.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import { deprecateFunc } from '@ember/debug';\n       Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n    ```\n       @method deprecateFunc\n    @static\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Object} [options] The options object for `deprecate`.\n    @param {Function} func The new function called to replace its deprecated counterpart.\n    @return {Function} A new function that wraps the original function with a deprecation warning\n    @private\n  */\n  setDebugFunction('deprecateFunc', function deprecateFunc(...args) {\n    if (args.length === 3) {\n      let [message, options, func] = args;\n      return function (...args) {\n        deprecate(message, false, options);\n        return func.apply(this, args);\n      };\n    } else {\n      let [message, func] = args;\n      return function () {\n        deprecate(message);\n        return func.apply(this, arguments);\n      };\n    }\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n  /**\n    Run a function meant for debugging.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import Component from '@ember/component';\n    import { runInDebug } from '@ember/debug';\n       runInDebug(() => {\n      Component.reopen({\n        didInsertElement() {\n          console.log(\"I'm happy\");\n        }\n      });\n    });\n    ```\n       @method runInDebug\n    @for @ember/debug\n    @static\n    @param {Function} func The function to be executed.\n    @since 1.5.0\n    @public\n  */\n  setDebugFunction('runInDebug', function runInDebug(func) {\n    func();\n  });\n  setDebugFunction('debugSeal', function debugSeal(obj) {\n    Object.seal(obj);\n  });\n  setDebugFunction('debugFreeze', function debugFreeze(obj) {\n    // re-freezing an already frozen object introduces a significant\n    // performance penalty on Chrome (tested through 59).\n    //\n    // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450\n    if (!Object.isFrozen(obj)) {\n      Object.freeze(obj);\n    }\n  });\n  setDebugFunction('deprecate', _deprecate);\n  setDebugFunction('warn', _warn);\n}\nlet _warnIfUsingStrippedFeatureFlags;\nif (DEBUG && !isTesting()) {\n  if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {\n    window.addEventListener('load', () => {\n      if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset['emberExtension']) {\n        let downloadURL;\n        if (isChrome) {\n          downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n        } else if (isFirefox) {\n          downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';\n        }\n        debug(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`);\n      }\n    }, false);\n  }\n}\nexport { assert, info, warn, debug, deprecate, debugSeal, debugFreeze, runInDebug, deprecateFunc, setDebugFunction, getDebugFunction, _warnIfUsingStrippedFeatureFlags };","import { expect } from '@glimmer/util';\n/**\n  @module @ember/debug\n*/\n/**\n  Ember Inspector calls this function to capture the current render tree.\n\n  In production mode, this requires turning on `ENV._DEBUG_RENDER_TREE`\n  before loading Ember.\n\n  @private\n  @static\n  @method captureRenderTree\n  @for @ember/debug\n  @param app {ApplicationInstance} An `ApplicationInstance`.\n  @since 3.14.0\n*/\nexport default function captureRenderTree(app) {\n  // SAFETY: Ideally we'd assert here but that causes awkward circular requires since this is also in @ember/debug.\n  // This is only for debug stuff so not very risky.\n  let renderer = expect(app.lookup('renderer:-dom'), `BUG: owner is missing renderer`);\n  return renderer.debugRenderTree.capture();\n}","import { ENV } from '@ember/-internals/environment';\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\n/**\n @module @ember/debug\n @public\n*/\n/**\n  Allows for runtime registration of handler functions that override the default deprecation behavior.\n  Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate).\n  The following example demonstrates its usage by registering a handler that throws an error if the\n  message contains the word \"should\", otherwise defers to the default handler.\n\n  ```javascript\n  import { registerDeprecationHandler } from '@ember/debug';\n\n  registerDeprecationHandler((message, options, next) => {\n    if (message.indexOf('should') !== -1) {\n      throw new Error(`Deprecation message with should: ${message}`);\n    } else {\n      // defer to whatever handler was registered before this one\n      next(message, options);\n    }\n  });\n  ```\n\n  The handler function takes the following arguments:\n\n  <ul>\n    <li> <code>message</code> - The message received from the deprecation call.</li>\n    <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n      <ul>\n        <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n        <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n      </ul>\n    <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n  </ul>\n\n  @public\n  @static\n  @method registerDeprecationHandler\n  @for @ember/debug\n  @param handler {Function} A function to handle deprecation calls.\n  @since 2.1.0\n*/\nlet registerHandler = () => {};\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\nlet missingOptionDeprecation = () => '';\nlet deprecate = () => {};\nif (DEBUG) {\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('deprecate', handler);\n  };\n  let formatMessage = function formatMessage(_message, options) {\n    let message = _message;\n    if (options?.id) {\n      message = message + ` [deprecation id: ${options.id}]`;\n    }\n    if (options?.until) {\n      message = message + ` This will be removed in ${options.for} ${options.until}.`;\n    }\n    if (options?.url) {\n      message += ` See ${options.url} for more details.`;\n    }\n    return message;\n  };\n  registerHandler(function logDeprecationToConsole(message, options) {\n    let updatedMessage = formatMessage(message, options);\n    console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console\n  });\n\n  let captureErrorForStack;\n  if (new Error().stack) {\n    captureErrorForStack = () => new Error();\n  } else {\n    captureErrorForStack = () => {\n      try {\n        __fail__.fail();\n        return;\n      } catch (e) {\n        return e;\n      }\n    };\n  }\n  registerHandler(function logDeprecationStackTrace(message, options, next) {\n    if (ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n      let stackStr = '';\n      let error = captureErrorForStack();\n      let stack;\n      if (error instanceof Error) {\n        if (error.stack) {\n          if (error['arguments']) {\n            // Chrome\n            stack = error.stack.replace(/^\\s+at\\s+/gm, '').replace(/^([^(]+?)([\\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^)]+)\\)/gm, '{anonymous}($1)').split('\\n');\n            stack.shift();\n          } else {\n            // Firefox\n            stack = error.stack.replace(/(?:\\n@:0)?\\s+$/m, '').replace(/^\\(/gm, '{anonymous}(').split('\\n');\n          }\n          stackStr = `\\n    ${stack.slice(2).join('\\n    ')}`;\n        }\n      }\n      let updatedMessage = formatMessage(message, options);\n      console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console\n    } else {\n      next(message, options);\n    }\n  });\n  registerHandler(function raiseOnDeprecation(message, options, next) {\n    if (ENV.RAISE_ON_DEPRECATION) {\n      let updatedMessage = formatMessage(message);\n      throw new Error(updatedMessage);\n    } else {\n      next(message, options);\n    }\n  });\n  missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include `id` and `until` properties.';\n  missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.';\n  missingOptionDeprecation = (id, missingOption) => {\n    return `When calling \\`deprecate\\` you must provide \\`${missingOption}\\` in options. Missing options.${missingOption} in \"${id}\" deprecation`;\n  };\n  /**\n   @module @ember/debug\n   @public\n   */\n  /**\n    Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only).\n       Ember itself leverages [Semantic Versioning](https://semver.org) to aid\n    projects in keeping up with changes to the framework. Before any\n    functionality or API is removed, it first flows linearly through a\n    deprecation staging process. The staging process currently contains two\n    stages: available and enabled.\n       Deprecations are initially released into the 'available' stage.\n    Deprecations will stay in this stage until the replacement API has been\n    marked as a recommended practice via the RFC process and the addon\n    ecosystem has generally adopted the change.\n       Once a deprecation meets the above criteria, it will move into the\n    'enabled' stage where it will remain until the functionality or API is\n    eventually removed.\n       For application and addon developers, \"available\" deprecations are not\n    urgent and \"enabled\" deprecations require action.\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       ```javascript\n    import { deprecate } from '@ember/debug';\n       deprecate(\n      'Use of `assign` has been deprecated. Please use `Object.assign` or the spread operator instead.',\n      false,\n      {\n        id: 'ember-polyfills.deprecate-assign',\n        until: '5.0.0',\n        url: 'https://deprecations.emberjs.com/v4.x/#toc_ember-polyfills-deprecate-assign',\n        for: 'ember-source',\n        since: {\n          available: '4.0.0',\n          enabled: '4.0.0',\n        },\n      }\n    );\n    ```\n       @method deprecate\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n    @param {Object} options\n    @param {String} options.id A unique id for this deprecation. The id can be\n      used by Ember debugging tools to change the behavior (raise, log or silence)\n      for that specific deprecation. The id should be namespaced by dots, e.g.\n      \"view.helper.select\".\n    @param {string} options.until The version of Ember when this deprecation\n      warning will be removed.\n    @param {String} options.for A namespace for the deprecation, usually the package name\n    @param {Object} options.since Describes when the deprecation became available and enabled.\n    @param {String} [options.url] An optional url to the transition guide on the\n          emberjs.com website.\n    @static\n    @public\n    @since 1.0.0\n  */\n  deprecate = function deprecate(message, test, options) {\n    assert(missingOptionsDeprecation, Boolean(options && (options.id || options.until)));\n    assert(missingOptionsIdDeprecation, Boolean(options.id));\n    assert(missingOptionDeprecation(options.id, 'until'), Boolean(options.until));\n    assert(missingOptionDeprecation(options.id, 'for'), Boolean(options.for));\n    assert(missingOptionDeprecation(options.id, 'since'), Boolean(options.since));\n    invoke('deprecate', message, test, options);\n  };\n}\nexport default deprecate;\nexport { registerHandler, missingOptionsDeprecation, missingOptionsIdDeprecation, missingOptionDeprecation };","import { DEBUG } from '@glimmer/env';\nexport let HANDLERS = {};\nlet registerHandler = function registerHandler(_type, _callback) {};\nlet invoke = () => {};\nif (DEBUG) {\n  registerHandler = function registerHandler(type, callback) {\n    let nextHandler = HANDLERS[type] || (() => {});\n    HANDLERS[type] = (message, options) => {\n      callback(message, options, nextHandler);\n    };\n  };\n  invoke = function invoke(type, message, test, options) {\n    if (test) {\n      return;\n    }\n    let handlerForType = HANDLERS[type];\n    if (handlerForType) {\n      handlerForType(message, options);\n    }\n  };\n}\nexport { registerHandler, invoke };","import { assert } from '@ember/debug';\nconst {\n  toString: objectToString\n} = Object.prototype;\nconst {\n  toString: functionToString\n} = Function.prototype;\nconst {\n  isArray\n} = Array;\nconst {\n  keys: objectKeys\n} = Object;\nconst {\n  stringify\n} = JSON;\nconst LIST_LIMIT = 100;\nconst DEPTH_LIMIT = 4;\nconst SAFE_KEY = /^[\\w$]+$/;\n/**\n @module @ember/debug\n*/\n/**\n  Convenience method to inspect an object. This method will attempt to\n  convert the object into a useful string description.\n\n  It is a pretty simple implementation. If you want something more robust,\n  use something like JSDump: https://github.com/NV/jsDump\n\n  @method inspect\n  @static\n  @param {Object} obj The object you want to inspect.\n  @return {String} A description of the object\n  @since 1.4.0\n  @private\n*/\nexport default function inspect(obj) {\n  // detect Node util.inspect call inspect(depth: number, opts: object)\n  if (typeof obj === 'number' && arguments.length === 2) {\n    return this;\n  }\n  return inspectValue(obj, 0);\n}\nfunction inspectValue(value, depth, seen) {\n  let valueIsArray = false;\n  switch (typeof value) {\n    case 'undefined':\n      return 'undefined';\n    case 'object':\n      if (value === null) return 'null';\n      if (isArray(value)) {\n        valueIsArray = true;\n        break;\n      }\n      // is toString Object.prototype.toString or undefined then traverse\n      if (value.toString === objectToString || value.toString === undefined) {\n        break;\n      }\n      // custom toString\n      return value.toString();\n    case 'function':\n      return value.toString === functionToString ? value.name ? `[Function:${value.name}]` : `[Function]` : value.toString();\n    case 'string':\n      return stringify(value);\n    case 'symbol':\n    case 'boolean':\n    case 'number':\n    default:\n      return value.toString();\n  }\n  if (seen === undefined) {\n    seen = new WeakSet();\n  } else {\n    if (seen.has(value)) return `[Circular]`;\n  }\n  seen.add(value);\n  return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);\n}\nfunction inspectKey(key) {\n  return SAFE_KEY.test(key) ? key : stringify(key);\n}\nfunction inspectObject(obj, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Object]';\n  }\n  let s = '{';\n  let keys = objectKeys(obj);\n  for (let i = 0; i < keys.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n    if (i >= LIST_LIMIT) {\n      s += `... ${keys.length - LIST_LIMIT} more keys`;\n      break;\n    }\n    let key = keys[i];\n    assert('has key', key); // Looping over array\n    s += `${inspectKey(String(key))}: ${inspectValue(obj[key], depth, seen)}`;\n  }\n  s += ' }';\n  return s;\n}\nfunction inspectArray(arr, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Array]';\n  }\n  let s = '[';\n  for (let i = 0; i < arr.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n    if (i >= LIST_LIMIT) {\n      s += `... ${arr.length - LIST_LIMIT} more items`;\n      break;\n    }\n    s += inspectValue(arr[i], depth, seen);\n  }\n  s += ' ]';\n  return s;\n}","let testing = false;\nexport function isTesting() {\n  return testing;\n}\nexport function setTesting(value) {\n  testing = Boolean(value);\n}","import { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\nlet registerHandler = () => {};\nlet warn = () => {};\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\n/**\n@module @ember/debug\n*/\nif (DEBUG) {\n  /**\n    Allows for runtime registration of handler functions that override the default warning behavior.\n    Warnings are invoked by calls made to [@ember/debug/warn](/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=warn).\n    The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n    default warning behavior.\n       ```javascript\n    import { registerWarnHandler } from '@ember/debug';\n       // next is not called, so no warnings get the default behavior\n    registerWarnHandler(() => {});\n    ```\n       The handler function takes the following arguments:\n       <ul>\n      <li> <code>message</code> - The message received from the warn call. </li>\n      <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>\n        <ul>\n          <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>\n        </ul>\n      <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n    </ul>\n       @public\n    @static\n    @method registerWarnHandler\n    @for @ember/debug\n    @param handler {Function} A function to handle warnings.\n    @since 2.1.0\n  */\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('warn', handler);\n  };\n  registerHandler(function logWarning(message) {\n    /* eslint-disable no-console */\n    console.warn(`WARNING: ${message}`);\n    /* eslint-enable no-console */\n  });\n\n  missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include an `id` property.';\n  missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';\n  /**\n    Display a warning with the provided message.\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       ```javascript\n    import { warn } from '@ember/debug';\n    import tomsterCount from './tomster-counter'; // a module in my project\n       // Log a warning if we have more than 3 tomsters\n    warn('Too many tomsters!', tomsterCount <= 3, {\n      id: 'ember-debug.too-many-tomsters'\n    });\n    ```\n       @method warn\n    @for @ember/debug\n    @static\n    @param {String} message A warning to display.\n    @param {Boolean|Object} test An optional boolean. If falsy, the warning\n      will be displayed. If `test` is an object, the `test` parameter can\n      be used as the `options` parameter and the warning is displayed.\n    @param {Object} options\n    @param {String} options.id The `id` can be used by Ember debugging tools\n      to change the behavior (raise, log, or silence) for that specific warning.\n      The `id` should be namespaced by dots, e.g. \"ember-debug.feature-flag-with-features-stripped\"\n    @public\n    @since 1.0.0\n  */\n  warn = function warn(message, test, options) {\n    if (arguments.length === 2 && typeof test === 'object') {\n      options = test;\n      test = false;\n    }\n    assert(missingOptionsDeprecation, Boolean(options));\n    assert(missingOptionsIdDeprecation, Boolean(options && options.id));\n    // SAFETY: we have explicitly assigned `false` if the user invoked the\n    // arity-2 version of the overload, so we know `test` is always either\n    // `undefined` or a `boolean` for type-safe callers.\n    invoke('warn', message, test, options);\n  };\n}\nexport default warn;\nexport { registerHandler, missingOptionsIdDeprecation, missingOptionsDeprecation };","/* eslint-disable no-implicit-coercion */\n// These versions should be the version that the deprecation was _introduced_,\n// not the version that the feature will be removed.\nexport const ASSIGN = !!'4.0.0-beta.1';","export { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroying, isDestroyed } from '@glimmer/destroyable';\nimport { registerDestructor as _registerDestructor, unregisterDestructor as _unregisterDestructor } from '@glimmer/destroyable';\n/**\n  Ember manages the lifecycles and lifetimes of many built in constructs, such\n  as components, and does so in a hierarchical way - when a parent component is\n  destroyed, all of its children are destroyed as well.\n\n  This destroyables API exposes the basic building blocks for destruction:\n\n  * registering a function to be ran when an object is destroyed\n  * checking if an object is in a destroying state\n  * associate an object as a child of another so that the child object will be destroyed\n    when the associated parent object is destroyed.\n\n  @module @ember/destroyable\n  @public\n*/\n/**\n  This function is used to associate a destroyable object with a parent. When the parent\n  is destroyed, all registered children will also be destroyed.\n\n  ```js\n  class CustomSelect extends Component {\n    constructor(...args) {\n      super(...args);\n\n      // obj is now a child of the component. When the component is destroyed,\n      // obj will also be destroyed, and have all of its destructors triggered.\n      this.obj = associateDestroyableChild(this, {});\n    }\n  }\n  ```\n\n  Returns the associated child for convenience.\n\n  @method associateDestroyableChild\n  @for @ember/destroyable\n  @param {Object|Function} parent the destroyable to entangle the child destroyables lifetime with\n  @param {Object|Function} child the destroyable to be entangled with the parents lifetime\n  @returns {Object|Function} the child argument\n  @static\n  @public\n*/\n/**\n Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns\n false.\n\n  ```js\n  let obj = {};\n  isDestroying(obj); // false\n  destroy(obj);\n  isDestroying(obj); // true\n  // ...sometime later, after scheduled destruction\n  isDestroyed(obj); // true\n  isDestroying(obj); // true\n  ```\n\n  @method isDestroying\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n/**\n  Receives a destroyable, and returns true if the destroyable has finished destroying. Otherwise\n  returns false.\n\n  ```js\n  let obj = {};\n\n  isDestroyed(obj); // false\n  destroy(obj);\n\n  // ...sometime later, after scheduled destruction\n\n  isDestroyed(obj); // true\n  ```\n\n  @method isDestroyed\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n/**\n  Initiates the destruction of a destroyable object. It runs all associated destructors, and then\n  destroys all children recursively.\n\n  ```js\n  let obj = {};\n\n  registerDestructor(obj, () => console.log('destroyed!'));\n\n  destroy(obj); // this will schedule the destructor to be called\n\n  // ...some time later, during scheduled destruction\n\n  // destroyed!\n  ```\n\n  Destruction via `destroy()` follows these steps:\n\n  1, Mark the destroyable such that `isDestroying(destroyable)` returns `true`\n  2, Call `destroy()` on each of the destroyable's associated children\n  3, Schedule calling the destroyable's destructors\n  4, Schedule setting destroyable such that `isDestroyed(destroyable)` returns `true`\n\n  This results in the entire tree of destroyables being first marked as destroying,\n  then having all of their destructors called, and finally all being marked as isDestroyed.\n  There won't be any in between states where some items are marked as `isDestroying` while\n  destroying, while others are not.\n\n  @method destroy\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to destroy\n  @static\n  @public\n*/\n/**\n  This function asserts that all objects which have associated destructors or associated children\n  have been destroyed at the time it is called. It is meant to be a low level hook that testing\n  frameworks can use to hook into and validate that all destroyables have in fact been destroyed.\n\n  This function requires that `enableDestroyableTracking` was called previously, and is only\n  available in non-production builds.\n\n  @method assertDestroyablesDestroyed\n  @for @ember/destroyable\n  @static\n  @public\n*/\n/**\n  This function instructs the destroyable system to keep track of all destroyables (their\n  children, destructors, etc). This enables a future usage of `assertDestroyablesDestroyed`\n  to be used to ensure that all destroyable tasks (registered destructors and associated children)\n  have completed when `assertDestroyablesDestroyed` is called.\n\n  @method enableDestroyableTracking\n  @for @ember/destroyable\n  @static\n  @public\n*/\n/**\n  Receives a destroyable object and a destructor function, and associates the\n  function with it. When the destroyable is destroyed with destroy, or when its\n  parent is destroyed, the destructor function will be called.\n\n  ```js\n  import Component from '@glimmer/component';\n  import { registerDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor(...args) {\n      super(...args);\n\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, () => this.resize.unregister(this));\n    }\n  }\n  ```\n\n  Multiple destructors can be associated with a given destroyable, and they can be\n  associated over time, allowing libraries to dynamically add destructors as needed.\n  `registerDestructor` also returns the associated destructor function, for convenience.\n\n  The destructor function is passed a single argument, which is the destroyable itself.\n  This allows the function to be reused multiple times for many destroyables, rather\n  than creating a closure function per destroyable.\n\n  ```js\n  import Component from '@glimmer/component';\n  import { registerDestructor } from '@ember/destroyable';\n\n  function unregisterResize(instance) {\n    instance.resize.unregister(instance);\n  }\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor(...args) {\n      super(...args);\n\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, unregisterResize);\n    }\n  }\n  ```\n\n  @method registerDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to register the destructor function with\n  @param {Function} destructor the destructor to run when the destroyable object is destroyed\n  @static\n  @public\n*/\nexport function registerDestructor(destroyable, destructor) {\n  return _registerDestructor(destroyable, destructor);\n}\n/**\n  Receives a destroyable and a destructor function, and de-associates the destructor\n  from the destroyable.\n\n  ```js\n  import Component from '@glimmer/component';\n  import { registerDestructor, unregisterDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service modals;\n\n    constructor(...args) {\n      super(...args);\n\n      this.modals.add(this);\n\n      this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));\n    }\n\n    @action pinModal() {\n      unregisterDestructor(this, this.modalDestructor);\n    }\n  }\n  ```\n\n  @method unregisterDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to unregister the destructor function from\n  @param {Function} destructor the destructor to remove from the destroyable\n  @static\n  @public\n*/\nexport function unregisterDestructor(destroyable, destructor) {\n  return _unregisterDestructor(destroyable, destructor);\n}","export { getEngineParent, setEngineParent } from './lib/engine-parent';\nimport { canInvoke } from '@ember/-internals/utils';\nimport Controller from '@ember/controller';\nimport Namespace from '@ember/application/namespace';\nimport { Registry } from '@ember/-internals/container';\nimport DAG from 'dag-map';\nimport { assert } from '@ember/debug';\nimport ContainerDebugAdapter from '@ember/debug/container-debug-adapter';\nimport { get, set } from '@ember/object';\nimport EngineInstance from '@ember/engine/instance';\nimport { RoutingService } from '@ember/routing/-internals';\nimport { ComponentLookup } from '@ember/-internals/views';\nimport { setupEngineRegistry } from '@ember/-internals/glimmer';\nimport { RegistryProxyMixin } from '@ember/-internals/runtime';\nfunction props(obj) {\n  let properties = [];\n  for (let key in obj) {\n    properties.push(key);\n  }\n  return properties;\n}\nclass Engine extends Namespace.extend(RegistryProxyMixin) {\n  constructor() {\n    super(...arguments);\n    /**\n      A private flag indicating whether an engine's initializers have run yet.\n             @private\n      @property _initializersRan\n    */\n    this._initializersRan = false;\n  }\n  /**\n    This creates a registry with the default Ember naming conventions.\n       It also configures the registry:\n       * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n       @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  static buildRegistry(namespace) {\n    let registry = new Registry({\n      resolver: resolverFor(namespace)\n    });\n    registry.set = set;\n    registry.register('application:main', namespace, {\n      instantiate: false\n    });\n    commonSetupRegistry(registry);\n    setupEngineRegistry(registry);\n    return registry;\n  }\n  init(properties) {\n    super.init(properties);\n    this.buildRegistry();\n  }\n  /**\n    Ensure that initializers are run once, and only once, per engine.\n       @private\n    @method ensureInitializers\n  */\n  ensureInitializers() {\n    if (!this._initializersRan) {\n      this.runInitializers();\n      this._initializersRan = true;\n    }\n  }\n  /**\n    Create an EngineInstance for this engine.\n       @public\n    @method buildInstance\n    @return {EngineInstance} the engine instance\n  */\n  buildInstance(options = {}) {\n    this.ensureInitializers();\n    return EngineInstance.create({\n      ...options,\n      base: this\n    });\n  }\n  /**\n    Build and configure the registry for the current engine.\n       @private\n    @method buildRegistry\n    @return {Ember.Registry} the configured registry\n  */\n  buildRegistry() {\n    let registry = this.__registry__ = this.constructor.buildRegistry(this);\n    return registry;\n  }\n  /**\n    @private\n    @method initializer\n  */\n  initializer(initializer) {\n    this.constructor.initializer(initializer);\n  }\n  /**\n    @private\n    @method instanceInitializer\n  */\n  instanceInitializer(initializer) {\n    this.constructor.instanceInitializer(initializer);\n  }\n  /**\n    @private\n    @method runInitializers\n  */\n  runInitializers() {\n    this._runInitializer('initializers', (name, initializer) => {\n      assert(`No application initializer named '${name}'`, initializer);\n      initializer.initialize(this);\n    });\n  }\n  /**\n    @private\n    @since 1.12.0\n    @method runInstanceInitializers\n  */\n  runInstanceInitializers(instance) {\n    this._runInitializer('instanceInitializers', (name, initializer) => {\n      assert(`No instance initializer named '${name}'`, initializer);\n      initializer.initialize(instance);\n    });\n  }\n  _runInitializer(bucketName, cb) {\n    let initializersByName = get(this.constructor, bucketName);\n    let initializers = props(initializersByName);\n    let graph = new DAG();\n    let initializer;\n    for (let name of initializers) {\n      initializer = initializersByName[name];\n      assert(`missing ${bucketName}: ${name}`, initializer);\n      graph.add(initializer.name, initializer, initializer.before, initializer.after);\n    }\n    graph.topsort(cb);\n  }\n}\nEngine.initializers = Object.create(null);\nEngine.instanceInitializers = Object.create(null);\n/**\n  The goal of initializers should be to register dependencies and injections.\n  This phase runs once. Because these initializers may load code, they are\n  allowed to defer application readiness and advance it. If you need to access\n  the container or store you should use an InstanceInitializer that will be run\n  after all initializers and therefore after all code is loaded and the app is\n  ready.\n\n  Initializer receives an object which has the following attributes:\n  `name`, `before`, `after`, `initialize`. The only required attribute is\n  `initialize`, all others are optional.\n\n  * `name` allows you to specify under which name the initializer is registered.\n  This must be a unique name, as trying to register two initializers with the\n  same name will result in an error.\n\n  ```app/initializer/named-initializer.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('Running namedInitializer!');\n  }\n\n  export default {\n    name: 'named-initializer',\n    initialize\n  };\n  ```\n\n  * `before` and `after` are used to ensure that this initializer is ran prior\n  or after the one identified by the value. This value can be a single string\n  or an array of strings, referencing the `name` of other initializers.\n\n  An example of ordering initializers, we create an initializer named `first`:\n\n  ```app/initializer/first.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('First initializer!');\n  }\n\n  export default {\n    name: 'first',\n    initialize\n  };\n  ```\n\n  ```bash\n  // DEBUG: First initializer!\n  ```\n\n  We add another initializer named `second`, specifying that it should run\n  after the initializer named `first`:\n\n  ```app/initializer/second.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('Second initializer!');\n  }\n\n  export default {\n    name: 'second',\n    after: 'first',\n    initialize\n  };\n  ```\n\n  ```\n  // DEBUG: First initializer!\n  // DEBUG: Second initializer!\n  ```\n\n  Afterwards we add a further initializer named `pre`, this time specifying\n  that it should run before the initializer named `first`:\n\n  ```app/initializer/pre.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('Pre initializer!');\n  }\n\n  export default {\n    name: 'pre',\n    before: 'first',\n    initialize\n  };\n  ```\n\n  ```bash\n  // DEBUG: Pre initializer!\n  // DEBUG: First initializer!\n  // DEBUG: Second initializer!\n  ```\n\n  Finally we add an initializer named `post`, specifying it should run after\n  both the `first` and the `second` initializers:\n\n  ```app/initializer/post.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('Post initializer!');\n  }\n\n  export default {\n    name: 'post',\n    after: ['first', 'second'],\n    initialize\n  };\n  ```\n\n  ```bash\n  // DEBUG: Pre initializer!\n  // DEBUG: First initializer!\n  // DEBUG: Second initializer!\n  // DEBUG: Post initializer!\n  ```\n\n  * `initialize` is a callback function that receives one argument,\n    `application`, on which you can operate.\n\n  Example of using `application` to register an adapter:\n\n  ```app/initializer/api-adapter.js\n  import ApiAdapter from '../utils/api-adapter';\n\n  export function initialize(application) {\n    application.register('api-adapter:main', ApiAdapter);\n  }\n\n  export default {\n    name: 'post',\n    after: ['first', 'second'],\n    initialize\n  };\n  ```\n\n  @method initializer\n  @param initializer {Object}\n  @public\n*/\nEngine.initializer = buildInitializerMethod('initializers', 'initializer');\n/**\n  Instance initializers run after all initializers have run. Because\n  instance initializers run after the app is fully set up. We have access\n  to the store, container, and other items. However, these initializers run\n  after code has loaded and are not allowed to defer readiness.\n\n  Instance initializer receives an object which has the following attributes:\n  `name`, `before`, `after`, `initialize`. The only required attribute is\n  `initialize`, all others are optional.\n\n  * `name` allows you to specify under which name the instanceInitializer is\n  registered. This must be a unique name, as trying to register two\n  instanceInitializer with the same name will result in an error.\n\n  ```app/initializer/named-instance-initializer.js\n  import { debug } from '@ember/debug';\n\n  export function initialize() {\n    debug('Running named-instance-initializer!');\n  }\n\n  export default {\n    name: 'named-instance-initializer',\n    initialize\n  };\n  ```\n\n  * `before` and `after` are used to ensure that this initializer is ran prior\n  or after the one identified by the value. This value can be a single string\n  or an array of strings, referencing the `name` of other initializers.\n\n  * See Application.initializer for discussion on the usage of before\n  and after.\n\n  Example instanceInitializer to preload data into the store.\n\n  ```app/initializer/preload-data.js\n\n  export function initialize(application) {\n      var userConfig, userConfigEncoded, store;\n      // We have a HTML escaped JSON representation of the user's basic\n      // configuration generated server side and stored in the DOM of the main\n      // index.html file. This allows the app to have access to a set of data\n      // without making any additional remote calls. Good for basic data that is\n      // needed for immediate rendering of the page. Keep in mind, this data,\n      // like all local models and data can be manipulated by the user, so it\n      // should not be relied upon for security or authorization.\n\n      // Grab the encoded data from the meta tag\n      userConfigEncoded = document.querySelector('head meta[name=app-user-config]').attr('content');\n\n      // Unescape the text, then parse the resulting JSON into a real object\n      userConfig = JSON.parse(unescape(userConfigEncoded));\n\n      // Lookup the store\n      store = application.lookup('service:store');\n\n      // Push the encoded JSON into the store\n      store.pushPayload(userConfig);\n  }\n\n  export default {\n    name: 'named-instance-initializer',\n    initialize\n  };\n  ```\n\n  @method instanceInitializer\n  @param instanceInitializer\n  @public\n*/\nEngine.instanceInitializer = buildInitializerMethod('instanceInitializers', 'instance initializer');\n/**\n  This function defines the default lookup rules for container lookups:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after classifying the name.\n    For example, `controller:post` looks up `App.PostController` by default.\n  * if the default lookup fails, look for registered classes on the container\n\n  This allows the application to register default injections in the container\n  that could be overridden by the normal naming convention.\n\n  @private\n  @method resolverFor\n  @param {Ember.Enginer} namespace the namespace to look for classes\n  @return {*} the resolved value for a given lookup\n*/\nfunction resolverFor(namespace) {\n  let ResolverClass = namespace.Resolver;\n  let props = {\n    namespace\n  };\n  return ResolverClass.create(props);\n}\n/** @internal */\nexport function buildInitializerMethod(bucketName, humanName) {\n  return function (initializer) {\n    // If this is the first initializer being added to a subclass, we are going to reopen the class\n    // to make sure we have a new `initializers` object, which extends from the parent class' using\n    // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n    // pollute the parent class as well as other subclasses.\n    // SAFETY: The superclass may be an Engine, we don't call unless we confirmed it was ok.\n    let superclass = this.superclass;\n    if (superclass[bucketName] !== undefined && superclass[bucketName] === this[bucketName]) {\n      let attrs = {\n        [bucketName]: Object.create(this[bucketName])\n      };\n      this.reopenClass(attrs);\n    }\n    assert(`The ${humanName} '${initializer.name}' has already been registered`, !this[bucketName][initializer.name]);\n    assert(`An ${humanName} cannot be registered without an initialize function`, canInvoke(initializer, 'initialize'));\n    assert(`An ${humanName} cannot be registered without a name property`, initializer.name !== undefined);\n    let initializers = this[bucketName];\n    initializers[initializer.name] = initializer;\n  };\n}\nfunction commonSetupRegistry(registry) {\n  registry.optionsForType('component', {\n    singleton: false\n  });\n  registry.optionsForType('view', {\n    singleton: false\n  });\n  registry.register('controller:basic', Controller, {\n    instantiate: false\n  });\n  // Register the routing service...\n  registry.register('service:-routing', RoutingService);\n  // DEBUGGING\n  registry.register('resolver-for-debugging:main', registry.resolver, {\n    instantiate: false\n  });\n  registry.register('container-debug-adapter:main', ContainerDebugAdapter);\n  registry.register('component-lookup:main', ComponentLookup);\n}\nexport default Engine;","/**\n@module @ember/engine\n*/\nimport EmberObject from '@ember/object';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport { Registry, privatize as P } from '@ember/-internals/container';\nimport { guidFor } from '@ember/-internals/utils';\nimport { ENGINE_PARENT, getEngineParent, setEngineParent } from './lib/engine-parent';\nimport { ContainerProxyMixin, RegistryProxyMixin } from '@ember/-internals/runtime';\nimport { isFactory } from '@ember/-internals/owner';\nimport Engine from '@ember/engine';\nclass EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {\n  constructor() {\n    super(...arguments);\n    this._booted = false;\n    this._bootPromise = null;\n  }\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n   */\n  // This is effectively an \"abstract\" method: it defines the contract a\n  // subclass (e.g. `ApplicationInstance`) must follow to implement this\n  // behavior, but an `EngineInstance` has no behavior of its own here.\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  static setupRegistry(_registry, _options) {}\n  init(properties) {\n    super.init(properties);\n    // Ensure the guid gets setup for this instance\n    guidFor(this);\n    this.base ??= this.application;\n    // Create a per-instance registry that will use the application's registry\n    // as a fallback for resolving registrations.\n    let registry = this.__registry__ = new Registry({\n      fallback: this.base.__registry__\n    });\n    // Create a per-instance container from the instance's registry\n    this.__container__ = registry.container({\n      owner: this\n    });\n    this._booted = false;\n  }\n  /**\n    Initialize the `EngineInstance` and return a promise that resolves\n    with the instance itself when the boot process is complete.\n       The primary task here is to run any registered instance initializers.\n       See the documentation on `BootOptions` for the options it takes.\n       @public\n    @method boot\n    @param options {Object}\n    @return {Promise<EngineInstance,Error>}\n  */\n  boot(options) {\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n    this._bootPromise = new RSVP.Promise(resolve => {\n      resolve(this._bootSync(options));\n    });\n    return this._bootPromise;\n  }\n  /**\n    Unfortunately, a lot of existing code assumes booting an instance is\n    synchronous – specifically, a lot of tests assume the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in a new instance\n    being fully-booted when the current runloop completes.\n       We would like new code (like the `visit` API) to stop making this\n    assumption, so we created the asynchronous version above that returns a\n    promise. But until we have migrated all the code, we would have to expose\n    this method for use *internally* in places where we need to boot an instance\n    synchronously.\n       @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n    assert(\"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\", getEngineParent(this));\n    this.cloneParentDependencies();\n    this.setupRegistry(options);\n    this.base.runInstanceInitializers(this);\n    this._booted = true;\n    return this;\n  }\n  setupRegistry(options = this.__container__.lookup('-environment:main')) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  }\n  /**\n   Unregister a factory.\n      Overrides `RegistryProxy#unregister` in order to clear any cached instances\n   of the unregistered factory.\n      @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    this.__container__.reset(fullName);\n    // We overwrote this method from RegistryProxyMixin.\n    this.__registry__.unregister(fullName);\n  }\n  /**\n    Build a new `EngineInstance` that's a child of this instance.\n       Engines must be registered by name with their parent engine\n    (or application).\n       @private\n    @method buildChildEngineInstance\n    @param name {String} the registered name of the engine.\n    @param options {Object} options provided to the engine instance.\n    @return {EngineInstance,Error}\n  */\n  buildChildEngineInstance(name, options = {}) {\n    let ChildEngine = this.lookup(`engine:${name}`);\n    if (!ChildEngine) {\n      throw new Error(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);\n    }\n    assert('expected an Engine', ChildEngine instanceof Engine);\n    let engineInstance = ChildEngine.buildInstance(options);\n    setEngineParent(engineInstance, this);\n    return engineInstance;\n  }\n  /**\n    Clone dependencies shared between an engine instance and its parent.\n       @private\n    @method cloneParentDependencies\n  */\n  cloneParentDependencies() {\n    const parent = getEngineParent(this);\n    assert('expected parent', parent);\n    let registrations = ['route:basic', 'service:-routing'];\n    registrations.forEach(key => {\n      let registration = parent.resolveRegistration(key);\n      assert('expected registration to be a factory', isFactory(registration));\n      this.register(key, registration);\n    });\n    let env = parent.lookup('-environment:main');\n    this.register('-environment:main', env, {\n      instantiate: false\n    });\n    // The type annotation forces TS to (a) validate that these match and (b)\n    // *notice* that they match, e.g. below on the `singletons.push()`.\n    let singletons = ['router:main', P`-bucket-cache:main`, '-view-registry:main', `renderer:-dom`, 'service:-document'];\n    if (env['isInteractive']) {\n      singletons.push('event_dispatcher:main');\n    }\n    singletons.forEach(key => {\n      // SAFETY: We already expect this to be a singleton\n      let singleton = parent.lookup(key);\n      this.register(key, singleton, {\n        instantiate: false\n      });\n    });\n  }\n}\nexport default EngineInstance;","export const ENGINE_PARENT = Symbol('ENGINE_PARENT');\n/**\n  `getEngineParent` retrieves an engine instance's parent instance.\n\n  @method getEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @return {EngineInstance} The parent engine instance.\n  @for @ember/engine\n  @static\n  @private\n*/\nexport function getEngineParent(engine) {\n  return engine[ENGINE_PARENT];\n}\n/**\n  `setEngineParent` sets an engine instance's parent instance.\n\n  @method setEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @param {EngineInstance} parent The parent engine instance.\n  @private\n*/\nexport function setEngineParent(engine, parent) {\n  engine[ENGINE_PARENT] = parent;\n}","import Mixin from '@ember/object/mixin';\nconst Enumerable = Mixin.create();\nexport default Enumerable;","import Enumerable from '@ember/enumerable';\nimport Mixin from '@ember/object/mixin';\nconst MutableEnumerable = Mixin.create(Enumerable);\nexport default MutableEnumerable;","/**\n@module @ember/helper\n*/\nimport { setHelperManager as glimmerSetHelperManager, helperCapabilities } from '@glimmer/manager';\nimport { invokeHelper as glimmerInvokeHelper, hash as glimmerHash, array as glimmerArray, concat as glimmerConcat, get as glimmerGet, fn as glimmerFn } from '@glimmer/runtime';\nimport { uniqueId as glimmerUniqueId } from '@ember/-internals/glimmer';\n/**\n  `capabilities` returns a capabilities configuration which can be used to modify\n  the behavior of the manager. Manager capabilities _must_ be provided using the\n  `capabilities` function, as the underlying implementation can change over time.\n\n  The first argument to capabilities is a version string, which is the version of\n  Ember that the capabilities were defined in. Ember can add new versions at any\n  time, and these may have entirely different behaviors, but it will not remove\n  old versions until the next major version.\n\n  ```js\n  capabilities('3.23');\n  ```\n\n  The second argument is an object of capabilities and boolean values indicating\n  whether they are enabled or disabled.\n\n  ```js\n  capabilities('3.23', {\n    hasValue: true,\n    hasDestructor: true,\n  });\n  ```\n\n  If no value is specified, then the default value will be used.\n\n  ### `3.23` capabilities\n\n  #### `hasDestroyable`\n\n  - Default value: false\n\n  Determines if the helper has a destroyable to include in the destructor\n  hierarchy. If enabled, the `getDestroyable` hook will be called, and its result\n  will be associated with the destroyable parent block.\n\n  #### `hasValue`\n\n  - Default value: false\n\n  Determines if the helper has a value which can be used externally. The helper's\n  `getValue` hook will be run whenever the value of the helper is accessed if this\n  capability is enabled.\n\n  @method capabilities\n  @for @ember/helper\n  @static\n  @param {String} managerApiVersion The version of capabilities that are being used\n  @param options The capabilities values\n  @return {Capabilities} The capabilities object instance\n  @public\n*/\nexport const capabilities = helperCapabilities;\n/**\n  Sets the helper manager for an object or function.\n\n  ```js\n  setHelperManager((owner) => new ClassHelperManager(owner), Helper)\n  ```\n\n  When a value is used as a helper in a template, the helper manager is looked up\n  on the object by walking up its prototype chain and finding the first helper\n  manager. This manager then receives the value and can create and manage an\n  instance of a helper from it. This provides a layer of indirection that allows\n  users to design high-level helper APIs, without Ember needing to worry about the\n  details. High-level APIs can be experimented with and iterated on while the\n  core of Ember helpers remains stable, and new APIs can be introduced gradually\n  over time to existing code bases.\n\n  `setHelperManager` receives two arguments:\n\n  1. A factory function, which receives the `owner` and returns an instance of a\n    helper manager.\n  2. A helper definition, which is the object or function to associate the factory function with.\n\n  The first time the object is looked up, the factory function will be called to\n  create the helper manager. It will be cached, and in subsequent lookups the\n  cached helper manager will be used instead.\n\n  Only one helper manager is guaranteed to exist per `owner` and per usage of\n  `setHelperManager`, so many helpers will end up using the same instance of the\n  helper manager. As such, you should only store state that is related to the\n  manager itself. If you want to store state specific to a particular helper\n  definition, you should assign a unique helper manager to that helper. In\n  general, most managers should either be stateless, or only have the `owner` they\n  were created with as state.\n\n  Helper managers must fulfill the following interface (This example uses\n  [TypeScript interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)\n  for precision, you do not need to write helper managers using TypeScript):\n\n  ```ts\n  interface HelperManager<HelperStateBucket> {\n    capabilities: HelperCapabilities;\n\n    createHelper(definition: HelperDefinition, args: TemplateArgs): HelperStateBucket;\n\n    getValue?(bucket: HelperStateBucket): unknown;\n\n    runEffect?(bucket: HelperStateBucket): void;\n\n    getDestroyable?(bucket: HelperStateBucket): object;\n  }\n  ```\n\n  The capabilities property _must_ be provided using the `capabilities()` function\n  imported from the same module as `setHelperManager`:\n\n  ```js\n  import { capabilities } from '@ember/helper';\n\n  class MyHelperManager {\n    capabilities = capabilities('3.21.0', { hasValue: true });\n\n    // ...snip...\n  }\n  ```\n\n  Below is a description of each of the methods on the interface and their\n  functions.\n\n  #### `createHelper`\n\n  `createHelper` is a required hook on the HelperManager interface. The hook is\n  passed the definition of the helper that is currently being created, and is\n  expected to return a _state bucket_. This state bucket is what represents the\n  current state of the helper, and will be passed to the other lifecycle hooks at\n  appropriate times. It is not necessarily related to the definition of the\n  helper itself - for instance, you could return an object _containing_ an\n  instance of the helper:\n\n  ```js\n  class MyManager {\n    createHelper(Definition, args) {\n      return {\n        instance: new Definition(args);\n      };\n    }\n  }\n  ```\n\n  This allows the manager to store metadata that it doesn't want to expose to the\n  user.\n\n  This hook is _not_ autotracked - changes to tracked values used within this hook\n  will _not_ result in a call to any of the other lifecycle hooks. This is because\n  it is unclear what should happen if it invalidates, and rather than make a\n  decision at this point, the initial API is aiming to allow as much expressivity\n  as possible. This could change in the future with changes to capabilities and\n  their behaviors.\n\n  If users do want to autotrack some values used during construction, they can\n  either create the instance of the helper in `runEffect` or `getValue`, or they\n  can use the `cache` API to autotrack the `createHelper` hook themselves. This\n  provides maximum flexibility and expressiveness to manager authors.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called as discovered during DOM construction\n  - called in definition order in the template\n\n  #### `getValue`\n\n  `getValue` is an optional hook that should return the value of the helper. This\n  is the value that is returned from the helper and passed into the template.\n\n  This hook is called when the value is requested from the helper (e.g. when the\n  template is rendering and the helper value is needed). The hook is autotracked,\n  and will rerun whenever any tracked values used inside of it are updated.\n  Otherwise it does not rerun.\n\n  > Note: This means that arguments which are not _consumed_ within the hook will\n  > not trigger updates.\n\n  This hook is only called for helpers with the `hasValue` capability enabled.\n  This hook has the following timing semantics:\n\n  **Always**\n  - called the first time the helper value is requested\n  - called after autotracked state has changed\n\n  **Never**\n  - called if the `hasValue` capability is disabled\n\n  #### `runEffect`\n\n  `runEffect` is an optional hook that should run the effect that the helper is\n  applying, setting it up or updating it.\n\n  This hook is scheduled to be called some time after render and prior to paint.\n  There is not a guaranteed, 1-to-1 relationship between a render pass and this\n  hook firing. For instance, multiple render passes could occur, and the hook may\n  only trigger once. It may also never trigger if it was dirtied in one render\n  pass and then destroyed in the next.\n\n  The hook is autotracked, and will rerun whenever any tracked values used inside\n  of it are updated. Otherwise it does not rerun.\n\n  The hook is also run during a time period where state mutations are _disabled_\n  in Ember. Any tracked state mutation will throw an error during this time,\n  including changes to tracked properties, changes made using `Ember.set`, updates\n  to computed properties, etc. This is meant to prevent infinite rerenders and\n  other antipatterns.\n\n  This hook is only called for helpers with the `hasScheduledEffect` capability\n  enabled. This hook is also not called in SSR currently, though this could be\n  added as a capability in the future. It has the following timing semantics:\n\n  **Always**\n  - called after the helper was first created, if the helper has not been\n    destroyed since creation\n  - called after autotracked state has changed, if the helper has not been\n    destroyed during render\n\n  **Never**\n  - called if the `hasScheduledEffect` capability is disabled\n  - called in SSR\n\n  #### `getDestroyable`\n\n  `getDestroyable` is an optional hook that users can use to register a\n  destroyable object for the helper. This destroyable will be registered to the\n  containing block or template parent, and will be destroyed when it is destroyed.\n  See the [Destroyables RFC](https://github.com/emberjs/rfcs/blob/master/text/0580-destroyables.md)\n  for more details.\n\n  `getDestroyable` is only called if the `hasDestroyable` capability is enabled.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called immediately after the `createHelper` hook is called\n\n  **Never**\n  - called if the `hasDestroyable` capability is disabled\n\n  @method setHelperManager\n  @for @ember/helper\n  @static\n  @param {Function} factory A factory function which receives an optional owner, and returns a helper manager\n  @param {object} definition The definition to associate the manager factory with\n  @return {object} The definition passed into setHelperManager\n  @public\n*/\nexport const setHelperManager = glimmerSetHelperManager;\n/**\n  The `invokeHelper` function can be used to create a helper instance in\n  JavaScript.\n\n  To access a helper's value you have to use `getValue` from\n  `@glimmer/tracking/primitives/cache`.\n\n  ```js\n  // app/components/data-loader.js\n  import Component from '@glimmer/component';\n  import { getValue } from '@glimmer/tracking/primitives/cache';\n  import Helper from '@ember/component/helper';\n  import { invokeHelper } from '@ember/helper';\n\n  class PlusOne extends Helper {\n    compute([number]) {\n      return number + 1;\n    }\n  }\n\n  export default class PlusOneComponent extends Component {\n    plusOne = invokeHelper(this, PlusOne, () => {\n      return {\n        positional: [this.args.number],\n      };\n    });\n\n    get value() {\n      return getValue(this.plusOne);\n    }\n  }\n  ```\n  ```js\n  {{this.value}}\n  ```\n\n  It receives three arguments:\n\n  * `context`: The parent context of the helper. When the parent is torn down and\n    removed, the helper will be as well.\n  * `definition`: The definition of the helper.\n  * `computeArgs`: An optional function that produces the arguments to the helper.\n    The function receives the parent context as an argument, and must return an\n    object with a `positional` property that is an array and/or a `named`\n    property that is an object.\n\n  And it returns a Cache instance that contains the most recent value of the\n  helper. You can access the helper using `getValue()` like any other cache. The\n  cache is also destroyable, and using the `destroy()` function on it will cause\n  the helper to be torn down.\n\n  Note that using `getValue()` on helpers that have scheduled effects will not\n  trigger the effect early. Effects will continue to run at their scheduled time.\n\n  @method invokeHelper\n  @for @ember/helper\n  @static\n  @param {object} context The parent context of the helper\n  @param {object} definition The helper definition\n  @param {Function} computeArgs An optional function that produces args\n  @returns\n  @public\n*/\nexport const invokeHelper = glimmerInvokeHelper;\n// SAFETY: we need to provide interfaces that Glint can declaration-merge with\n// to provide appropriate completions. In each case, the imported item is\n// currently typed only as `object`, and we are replacing it with a similarly\n// low-information interface type: these are empty objects which are simply able\n// to be distinguished so that Glint can provide the relevant extensions.\n/* eslint-disable @typescript-eslint/no-empty-interface */\n/**\n * Using the `{{hash}}` helper, you can pass objects directly from the template\n * as an argument to your components.\n *\n * ```\n * import { hash } from '@ember/helper';\n *\n * <template>\n *   {{#each-in (hash givenName='Jen' familyName='Weber') as |key value|}}\n *     <p>{{key}}: {{value}}</p>\n *   {{/each-in}}\n * </template>\n * ```\n *\n * **NOTE:** this example uses the experimental `<template>` feature, which is\n * the only place you need to import `hash` to use it (it is a built-in when\n * writing standalone `.hbs` files).\n */\nexport const hash = glimmerHash;\n/**\n * Using the `{{array}}` helper, you can pass arrays directly from the template\n * as an argument to your components.\n *\n * ```js\n * import { array } from '@ember/helper';\n *\n * <template>\n *   <ul>\n *   {{#each (array 'Tom Dale' 'Yehuda Katz' @anotherPerson) as |person|}}\n *     <li>{{person}}</li>\n *   {{/each}}\n *   </ul>\n * </template>\n *\n * **NOTE:** this example uses the experimental `<template>` feature, which is\n * the only place you need to import `array` to use it (it is a built-in when\n * writing standalone `.hbs` files).\n * ```\n */\nexport const array = glimmerArray;\n/**\n * The `{{concat}}` helper makes it easy to dynamically send a number of\n * parameters to a component or helper as a single parameter in the format of a\n * concatenated string.\n *\n * For example:\n *\n * ```js\n * import { concat } from '@ember/helper';\n *\n * <template>\n *   {{get @foo (concat \"item\" @index)}}\n * </template>\n * ```\n *\n * This will display the result of `@foo.item1` when `index` is `1`, and\n * `this.foo.item2` when `index` is `2`, etc.\n *\n * **NOTE:** this example uses the experimental `<template>` feature, which is\n * the only place you need to import `concat` to use it (it is a built-in when\n * writing standalone `.hbs` files).\n */\nexport const concat = glimmerConcat;\n/**\n * The `{{get}}` helper makes it easy to dynamically look up a property on an\n * object or an element in an array. The second argument to `{{get}}` can be a\n * string or a number, depending on the object being accessed.\n *\n * To access a property on an object with a string key:\n *\n * ```js\n * import { get } from '@ember/helper';\n *\n * <template>\n *   {{get @someObject \"objectKey\"}}\n * </template>\n * ```\n *\n * To access the first element in an array:\n *\n * ```js\n * import { get } from '@ember/helper';\n *\n * <template>\n *   {{get @someArray 0}}\n * </template>\n * ```\n *\n * To access a property on an object with a dynamic key:\n *\n * ```js\n * import { get } from '@ember/helper';\n *\n * <template>\n *   {{get @address @field}}\n * </template>\n * ```\n *\n * This will display the result of `@foo.item1` when `index` is `1`, and\n * `this.foo.item2` when `index` is `2`, etc.\n *\n * **NOTE:** this example uses the experimental `<template>` feature, which is\n * the only place you need to import `concat` to use it (it is a built-in when\n * writing standalone `.hbs` files).\n */\nexport const get = glimmerGet;\n/**\n * `{{fn}}` is a helper that receives a function and some arguments, and returns\n * a new function that combines. This allows you to pass parameters along to\n * functions in your templates:\n *\n * ```js\n * import { fn } from '@ember/helper';\n *\n * function showAlert(message) {\n *   alert(`The message is: '${message}'`);\n * }\n *\n * <template>\n *   <button type=\"button\" {{on \"click\" (fn showAlert \"Hello!\")}}>\n *     Click me!\n *   </button>\n * </template>\n * ```\n */\nexport const fn = glimmerFn;\n/**\n * Use the {{uniqueId}} helper to generate a unique ID string suitable for use as\n * an ID attribute in the DOM.\n *\n * Each invocation of {{uniqueId}} will return a new, unique ID string.\n * You can use the `let` helper to create an ID that can be reused within a template.\n *\n * ```js\n * import { uniqueId } from '@ember/helper';\n *\n * <template>\n *   {{#let (uniqueId) as |emailId|}}\n *     <label for={{emailId}}>Email address</label>\n *     <input id={{emailId}} type=\"email\" />\n *   {{/let}}\n * </template>\n * ```\n */\nexport const uniqueId = glimmerUniqueId;\n/* eslint-enable @typescript-eslint/no-empty-interface */","/* eslint no-console:off */\n/* global console */\nimport { ENV } from '@ember/-internals/environment';\nimport { assert } from '@ember/debug';\n/**\n@module @ember/instrumentation\n@private\n*/\n/**\n  The purpose of the Ember Instrumentation module is\n  to provide efficient, general-purpose instrumentation\n  for Ember.\n\n  Subscribe to a listener by using `subscribe`:\n\n  ```javascript\n  import { subscribe } from '@ember/instrumentation';\n\n  subscribe(\"render\", {\n    before(name, timestamp, payload) {\n\n    },\n\n    after(name, timestamp, payload) {\n\n    }\n  });\n  ```\n\n  If you return a value from the `before` callback, that same\n  value will be passed as a fourth parameter to the `after`\n  callback.\n\n  Instrument a block of code by using `instrument`:\n\n  ```javascript\n  import { instrument } from '@ember/instrumentation';\n\n  instrument(\"render.handlebars\", payload, function() {\n    // rendering logic\n  }, binding);\n  ```\n\n  Event names passed to `instrument` are namespaced\n  by periods, from more general to more specific. Subscribers\n  can listen for events by whatever level of granularity they\n  are interested in.\n\n  In the above example, the event is `render.handlebars`,\n  and the subscriber listened for all events beginning with\n  `render`. It would receive callbacks for events named\n  `render`, `render.handlebars`, `render.container`, or\n  even `render.handlebars.layout`.\n\n  @class Instrumentation\n  @static\n  @private\n*/\nexport let subscribers = [];\nlet cache = {};\nfunction populateListeners(name) {\n  let listeners = [];\n  for (let subscriber of subscribers) {\n    if (subscriber.regex.test(name)) {\n      listeners.push(subscriber.object);\n    }\n  }\n  cache[name] = listeners;\n  return listeners;\n}\nconst time = (() => {\n  let perf = 'undefined' !== typeof window ? window.performance || {} : {};\n  let fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow;\n  return fn ? fn.bind(perf) : Date.now;\n})();\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\nexport function instrument(name, p1, p2, p3) {\n  let _payload;\n  let callback;\n  let binding;\n  if (arguments.length <= 3 && isCallback(p1)) {\n    callback = p1;\n    binding = p2;\n  } else {\n    _payload = p1;\n    callback = p2;\n    binding = p3;\n  }\n  // fast path\n  if (subscribers.length === 0) {\n    return callback.call(binding);\n  }\n  // avoid allocating the payload in fast path\n  let payload = _payload || {};\n  let finalizer = _instrumentStart(name, () => payload);\n  if (finalizer === NOOP) {\n    return callback.call(binding);\n  } else {\n    return withFinalizer(callback, finalizer, payload, binding);\n  }\n}\nexport function flaggedInstrument(_name, _payload, callback) {\n  return callback();\n}\nfunction withFinalizer(callback, finalizer, payload, binding) {\n  try {\n    return callback.call(binding);\n  } catch (e) {\n    payload.exception = e;\n    throw e;\n  } finally {\n    finalizer();\n  }\n}\nfunction NOOP() {}\nexport function _instrumentStart(name, payloadFunc, payloadArg) {\n  if (subscribers.length === 0) {\n    return NOOP;\n  }\n  let listeners = cache[name];\n  if (!listeners) {\n    listeners = populateListeners(name);\n  }\n  if (listeners.length === 0) {\n    return NOOP;\n  }\n  let payload = payloadFunc(payloadArg);\n  let STRUCTURED_PROFILE = ENV.STRUCTURED_PROFILE;\n  let timeName;\n  if (STRUCTURED_PROFILE) {\n    timeName = `${name}: ${payload.object}`;\n    console.time(timeName);\n  }\n  let beforeValues = [];\n  let timestamp = time();\n  for (let listener of listeners) {\n    beforeValues.push(listener.before(name, timestamp, payload));\n  }\n  const constListeners = listeners;\n  return function _instrumentEnd() {\n    let timestamp = time();\n    for (let i = 0; i < constListeners.length; i++) {\n      let listener = constListeners[i];\n      assert('has listener', listener); // Iterating over values\n      if (typeof listener.after === 'function') {\n        listener.after(name, timestamp, payload, beforeValues[i]);\n      }\n    }\n    if (STRUCTURED_PROFILE) {\n      console.timeEnd(timeName);\n    }\n  };\n}\n/**\n  Subscribes to a particular event or instrumented block of code.\n\n  @method subscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {String} [pattern] Namespaced event name.\n  @param {Object} [object] Before and After hooks.\n\n  @return {Subscriber}\n  @private\n*/\nexport function subscribe(pattern, object) {\n  let paths = pattern.split('.');\n  let regexes = [];\n  for (let path of paths) {\n    if (path === '*') {\n      regexes.push('[^\\\\.]*');\n    } else {\n      regexes.push(path);\n    }\n  }\n  let regex = regexes.join('\\\\.');\n  regex = `${regex}(\\\\..*)?`;\n  let subscriber = {\n    pattern,\n    regex: new RegExp(`^${regex}$`),\n    object\n  };\n  subscribers.push(subscriber);\n  cache = {};\n  return subscriber;\n}\n/**\n  Unsubscribes from a particular event or instrumented block of code.\n\n  @method unsubscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {Object} [subscriber]\n  @private\n*/\nexport function unsubscribe(subscriber) {\n  let index = 0;\n  for (let i = 0; i < subscribers.length; i++) {\n    if (subscribers[i] === subscriber) {\n      index = i;\n    }\n  }\n  subscribers.splice(index, 1);\n  cache = {};\n}\n/**\n  Resets `Instrumentation` by flushing list of subscribers.\n\n  @method reset\n  @for @ember/instrumentation\n  @static\n  @private\n*/\nexport function reset() {\n  subscribers.length = 0;\n  cache = {};\n}","import { on as glimmerOn } from '@glimmer/runtime';\nimport { setModifierManager as glimmerSetModifierManager } from '@glimmer/manager';\n// SAFETY: at the time of writing, the cast here is from `{}` to `OnModifier`,\n// which makes it strictly safer to use outside this module because it is not\n// usable as \"any non-null item\", which is what `{}` means, without loss of any\n// information from the type itself.\nexport const on = glimmerOn;\n// NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`\n// is legally assignable to this type, i.e. that variance is properly upheld.\nexport const setModifierManager = glimmerSetModifierManager;\nexport { modifierCapabilities as capabilities } from '@ember/-internals/glimmer';","var _a;\nexport { getCachedValueFor as cacheFor } from '@ember/-internals/metal';\nexport { guidFor } from '@ember/-internals/utils';\nimport { addListener } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { symbol } from '@ember/-internals/utils';\nimport { DEBUG } from '@glimmer/env';\nimport EmberObject from '.';\nlet FrameworkObject = class FrameworkObject extends EmberObject {};\nif (DEBUG) {\n  const INIT_WAS_CALLED = Symbol('INIT_WAS_CALLED');\n  let ASSERT_INIT_WAS_CALLED = symbol('ASSERT_INIT_WAS_CALLED');\n  FrameworkObject = class DebugFrameworkObject extends EmberObject {\n    constructor() {\n      super(...arguments);\n      this[_a] = false;\n    }\n    init(properties) {\n      super.init(properties);\n      this[INIT_WAS_CALLED] = true;\n    }\n    [(_a = INIT_WAS_CALLED, ASSERT_INIT_WAS_CALLED)]() {\n      assert(`You must call \\`super.init(...arguments);\\` or \\`this._super(...arguments)\\` when overriding \\`init\\` on a framework object. Please update ${this} to call \\`super.init(...arguments);\\` from \\`init\\` when using native classes or \\`this._super(...arguments)\\` when using \\`EmberObject.extend()\\`.`, this[INIT_WAS_CALLED]);\n    }\n  };\n  addListener(FrameworkObject.prototype, 'init', null, ASSERT_INIT_WAS_CALLED);\n}\nexport { FrameworkObject };","import { descriptorForProperty, isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { consumeTag, tagFor, track, updateTag } from '@glimmer/validator';\nlet wrapGetterSetter = function (target, key, desc) {\n  let {\n    get: originalGet\n  } = desc;\n  assert('You attempted to use @dependentKeyCompat on a property that already has been decorated with either @computed or @tracked. @dependentKeyCompat is only necessary for native getters that are not decorated with @computed.', descriptorForProperty(target, key) === undefined);\n  if (originalGet !== undefined) {\n    desc.get = function () {\n      let propertyTag = tagFor(this, key);\n      let ret;\n      let tag = track(() => {\n        ret = originalGet.call(this);\n      });\n      updateTag(propertyTag, tag);\n      consumeTag(tag);\n      return ret;\n    };\n  }\n  return desc;\n};\nexport function dependentKeyCompat(...args) {\n  if (isElementDescriptor(args)) {\n    let [target, key, desc] = args;\n    assert('The @dependentKeyCompat decorator must be applied to getters/setters when used in native classes', desc != null && (typeof desc.get === 'function' || typeof desc.set === 'function'));\n    return wrapGetterSetter(target, key, desc);\n  } else {\n    const desc = args[0];\n    assert('expected valid PropertyDescriptor', (value => {\n      if (value && typeof value === 'object') {\n        let cast = value;\n        return (cast.configurable === undefined || cast.configurable === false || cast.configurable === true) && (cast.enumerable === undefined || cast.enumerable === false || cast.enumerable === true) && (cast.writable === undefined || cast.writable === false || cast.writable === true) && (cast.get === undefined || typeof cast.get === 'function') && (cast.set === undefined || typeof cast.set === 'function');\n      }\n      return false;\n    })(desc));\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      assert('The @dependentKeyCompat decorator may only be passed a method when used in classic classes. You should decorate getters/setters directly in native classes', isClassicDecorator);\n      assert('The dependentKeyCompat() decorator must be passed a getter or setter when used in classic classes', typeof desc.get === 'function' || typeof desc.set === 'function');\n      return wrapGetterSetter(target, key, desc);\n    };\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n}\nsetClassicDecorator(dependentKeyCompat);","/**\n  @module @ember/object/core\n*/\nimport { getFactoryFor, setFactoryFor } from '@ember/-internals/container';\nimport { getOwner } from '@ember/-internals/owner';\nimport { guidFor, isInternalSymbol } from '@ember/-internals/utils';\nimport { meta } from '@ember/-internals/meta';\nimport { PROXY_CONTENT, sendEvent, activateObserver, defineProperty, descriptorForProperty, isClassicDecorator, DEBUG_INJECTION_FUNCTIONS, hasUnknownProperty } from '@ember/-internals/metal';\nimport Mixin, { applyMixin } from '@ember/object/mixin';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport { makeArray } from '@ember/array';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { destroy, isDestroying, isDestroyed, registerDestructor } from '@glimmer/destroyable';\nimport { OWNER } from '@glimmer/owner';\nfunction hasSetUnknownProperty(val) {\n  return typeof val === 'object' && val !== null && typeof val.setUnknownProperty === 'function';\n}\nfunction hasToStringExtension(val) {\n  return typeof val === 'object' && val !== null && typeof val.toStringExtension === 'function';\n}\nconst reopen = Mixin.prototype.reopen;\nconst wasApplied = new WeakSet();\nconst prototypeMixinMap = new WeakMap();\nconst initCalled = DEBUG ? new WeakSet() : undefined; // only used in debug builds to enable the proxy trap\nconst destroyCalled = new Set();\nfunction ensureDestroyCalled(instance) {\n  if (!destroyCalled.has(instance)) {\n    instance.destroy();\n  }\n}\nfunction initialize(obj, properties) {\n  let m = meta(obj);\n  if (properties !== undefined) {\n    assert('EmberObject.create only accepts objects.', typeof properties === 'object' && properties !== null);\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let concatenatedProperties = obj.concatenatedProperties;\n    let mergedProperties = obj.mergedProperties;\n    let keyNames = Object.keys(properties);\n    for (let keyName of keyNames) {\n      // SAFETY: this cast as a Record is safe because all object types can be\n      // indexed in JS, and we explicitly type it as returning `unknown`, so the\n      // result *must* be checked below.\n      let value = properties[keyName];\n      assert('EmberObject.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !isClassicDecorator(value));\n      assert('EmberObject.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));\n      assert('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && ActionHandler.detect(obj)));\n      let possibleDesc = descriptorForProperty(obj, keyName, m);\n      let isDescriptor = possibleDesc !== undefined;\n      if (!isDescriptor) {\n        if (concatenatedProperties !== undefined && concatenatedProperties.length > 0 && concatenatedProperties.includes(keyName)) {\n          let baseValue = obj[keyName];\n          if (baseValue) {\n            value = makeArray(baseValue).concat(value);\n          } else {\n            value = makeArray(value);\n          }\n        }\n        if (mergedProperties !== undefined && mergedProperties.length > 0 && mergedProperties.includes(keyName)) {\n          let baseValue = obj[keyName];\n          value = Object.assign({}, baseValue, value);\n        }\n      }\n      if (isDescriptor) {\n        possibleDesc.set(obj, keyName, value);\n      } else if (hasSetUnknownProperty(obj) && !(keyName in obj)) {\n        obj.setUnknownProperty(keyName, value);\n      } else {\n        if (DEBUG) {\n          defineProperty(obj, keyName, null, value, m); // setup mandatory setter\n        } else {\n          obj[keyName] = value;\n        }\n      }\n    }\n  }\n  // using DEBUG here to avoid the extraneous variable when not needed\n  if (DEBUG) {\n    initCalled.add(obj);\n  }\n  obj.init(properties);\n  m.unsetInitializing();\n  let observerEvents = m.observerEvents();\n  if (observerEvents !== undefined) {\n    for (let i = 0; i < observerEvents.length; i++) {\n      activateObserver(obj, observerEvents[i].event, observerEvents[i].sync);\n    }\n  }\n  sendEvent(obj, 'init', undefined, undefined, m);\n}\nclass CoreObject {\n  constructor(owner) {\n    this[OWNER] = owner;\n    // prepare prototype...\n    this.constructor.proto();\n    let self;\n    if (DEBUG && hasUnknownProperty(this)) {\n      let messageFor = (obj, property) => {\n        return `You attempted to access the \\`${String(property)}\\` property (of ${obj}).\\n` + `Since Ember 3.1, this is usually fine as you no longer need to use \\`.get()\\`\\n` + `to access computed properties. However, in this case, the object in question\\n` + `is a special kind of Ember object (a proxy). Therefore, it is still necessary\\n` + `to use \\`.get('${String(property)}')\\` in this case.\\n\\n` + `If you encountered this error because of third-party code that you don't control,\\n` + `there is more information at https://github.com/emberjs/ember.js/issues/16148, and\\n` + `you can help us improve this error message by telling us more about what happened in\\n` + `this situation.`;\n      };\n      /* globals Proxy Reflect */\n      self = new Proxy(this, {\n        get(target, property, receiver) {\n          if (property === PROXY_CONTENT) {\n            return target;\n          } else if (\n          // init called will be set on the proxy, not the target, so get with the receiver\n          !initCalled.has(receiver) || typeof property === 'symbol' || isInternalSymbol(property) || property === 'toJSON' || property === 'toString' || property === 'toStringExtension' || property === 'didDefineProperty' || property === 'willWatchProperty' || property === 'didUnwatchProperty' || property === 'didAddListener' || property === 'didRemoveListener' || property === 'isDescriptor' || property === '_onLookup' || property in target) {\n            return Reflect.get(target, property, receiver);\n          }\n          let value = target.unknownProperty.call(receiver, property);\n          if (typeof value !== 'function') {\n            assert(messageFor(receiver, property), value === undefined || value === null);\n          }\n        }\n      });\n    } else {\n      self = this;\n    }\n    const destroyable = self;\n    registerDestructor(self, ensureDestroyCalled, true);\n    registerDestructor(self, () => destroyable.willDestroy());\n    // disable chains\n    let m = meta(self);\n    m.setInitializing();\n    // only return when in debug builds and `self` is the proxy created above\n    if (DEBUG && self !== this) {\n      return self;\n    }\n  }\n  reopen(...args) {\n    applyMixin(this, args);\n    return this;\n  }\n  /**\n    An overridable method called when objects are instantiated. By default,\n    does nothing unless it is overridden during class definition.\n       Example:\n       ```javascript\n    import EmberObject from '@ember/object';\n       const Person = EmberObject.extend({\n      init() {\n        alert(`Name is ${this.get('name')}`);\n      }\n    });\n       let steve = Person.create({\n      name: 'Steve'\n    });\n       // alerts 'Name is Steve'.\n    ```\n       NOTE: If you do override `init` for a framework class like `Component`\n    from `@ember/component`, be sure to call `this._super(...arguments)`\n    in your `init` declaration!\n    If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n       @method init\n    @public\n  */\n  init(_properties) {}\n  /**\n    Defines the properties that will be concatenated from the superclass\n    (instead of overridden).\n       By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by combining the superclass' property\n    value with the subclass' value. An example of this in use within Ember\n    is the `classNames` property of `Component` from `@ember/component`.\n       Here is some sample code showing the difference between a concatenated\n    property and a normal one:\n       ```javascript\n    import EmberObject from '@ember/object';\n       const Bar = EmberObject.extend({\n      // Configure which properties to concatenate\n      concatenatedProperties: ['concatenatedProperty'],\n         someNonConcatenatedProperty: ['bar'],\n      concatenatedProperty: ['bar']\n    });\n       const FooBar = Bar.extend({\n      someNonConcatenatedProperty: ['foo'],\n      concatenatedProperty: ['foo']\n    });\n       let fooBar = FooBar.create();\n    fooBar.get('someNonConcatenatedProperty'); // ['foo']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n    ```\n       This behavior extends to object creation as well. Continuing the\n    above example:\n       ```javascript\n    let fooBar = FooBar.create({\n      someNonConcatenatedProperty: ['baz'],\n      concatenatedProperty: ['baz']\n    })\n    fooBar.get('someNonConcatenatedProperty'); // ['baz']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n       Adding a single property that is not an array will just add it in the array:\n       ```javascript\n    let fooBar = FooBar.create({\n      concatenatedProperty: 'baz'\n    })\n    view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n       Using the `concatenatedProperties` property, we can tell Ember to mix the\n    content of the properties.\n       In `Component` the `classNames`, `classNameBindings` and\n    `attributeBindings` properties are concatenated.\n       This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual concatenated property (to not\n    mislead your users to think they can override the property in a subclass).\n       @property concatenatedProperties\n    @type Array\n    @default null\n    @public\n  */\n  /**\n    Defines the properties that will be merged from the superclass\n    (instead of overridden).\n       By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by merging the superclass property value\n    with the subclass property's value. An example of this in use within Ember\n    is the `queryParams` property of routes.\n       Here is some sample code showing the difference between a merged\n    property and a normal one:\n       ```javascript\n    import EmberObject from '@ember/object';\n       const Bar = EmberObject.extend({\n      // Configure which properties are to be merged\n      mergedProperties: ['mergedProperty'],\n         someNonMergedProperty: {\n        nonMerged: 'superclass value of nonMerged'\n      },\n      mergedProperty: {\n        page: { replace: false },\n        limit: { replace: true }\n      }\n    });\n       const FooBar = Bar.extend({\n      someNonMergedProperty: {\n        completelyNonMerged: 'subclass value of nonMerged'\n      },\n      mergedProperty: {\n        limit: { replace: false }\n      }\n    });\n       let fooBar = FooBar.create();\n       fooBar.get('someNonMergedProperty');\n    // => { completelyNonMerged: 'subclass value of nonMerged' }\n    //\n    // Note the entire object, including the nonMerged property of\n    // the superclass object, has been replaced\n       fooBar.get('mergedProperty');\n    // => {\n    //   page: {replace: false},\n    //   limit: {replace: false}\n    // }\n    //\n    // Note the page remains from the superclass, and the\n    // `limit` property's value of `false` has been merged from\n    // the subclass.\n    ```\n       This behavior is not available during object `create` calls. It is only\n    available at `extend` time.\n       In `Route` the `queryParams` property is merged.\n       This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual merged property (to not\n    mislead your users to think they can override the property in a subclass).\n       @property mergedProperties\n    @type Array\n    @default null\n    @public\n  */\n  /**\n    Destroyed object property flag.\n       if this property is `true` the observers and bindings were already\n    removed by the effect of calling the `destroy()` method.\n       @property isDestroyed\n    @default false\n    @public\n  */\n  get isDestroyed() {\n    return isDestroyed(this);\n  }\n  set isDestroyed(_value) {\n    assert(`You cannot set \\`${this}.isDestroyed\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destruction scheduled flag. The `destroy()` method has been called.\n       The object stays intact until the end of the run loop at which point\n    the `isDestroyed` flag is set.\n       @property isDestroying\n    @default false\n    @public\n  */\n  get isDestroying() {\n    return isDestroying(this);\n  }\n  set isDestroying(_value) {\n    assert(`You cannot set \\`${this}.isDestroying\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destroys an object by setting the `isDestroyed` flag and removing its\n    metadata, which effectively destroys observers and bindings.\n       If you try to set a property on a destroyed object, an exception will be\n    raised.\n       Note that destruction is scheduled for the end of the run loop and does not\n    happen immediately.  It will set an isDestroying flag immediately.\n       @method destroy\n    @return {EmberObject} receiver\n    @public\n  */\n  destroy() {\n    // Used to ensure that manually calling `.destroy()` does not immediately call destroy again\n    destroyCalled.add(this);\n    try {\n      destroy(this);\n    } finally {\n      destroyCalled.delete(this);\n    }\n    return this;\n  }\n  /**\n    Override to implement teardown.\n       @method willDestroy\n    @public\n  */\n  willDestroy() {}\n  /**\n    Returns a string representation which attempts to provide more information\n    than Javascript's `toString` typically does, in a generic way for all Ember\n    objects.\n       ```javascript\n    import EmberObject from '@ember/object';\n       const Person = EmberObject.extend();\n    person = Person.create();\n    person.toString(); //=> \"<Person:ember1024>\"\n    ```\n       If the object's class is not defined on an Ember namespace, it will\n    indicate it is a subclass of the registered superclass:\n       ```javascript\n    const Student = Person.extend();\n    let student = Student.create();\n    student.toString(); //=> \"<(subclass of Person):ember1025>\"\n    ```\n       If the method `toStringExtension` is defined, its return value will be\n    included in the output.\n       ```javascript\n    const Teacher = Person.extend({\n      toStringExtension() {\n        return this.get('fullName');\n      }\n    });\n    teacher = Teacher.create();\n    teacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n    ```\n       @method toString\n    @return {String} string representation\n    @public\n  */\n  toString() {\n    let extension = hasToStringExtension(this) ? `:${this.toStringExtension()}` : '';\n    return `<${getFactoryFor(this) || '(unknown)'}:${guidFor(this)}${extension}>`;\n  }\n  static extend(...mixins) {\n    let Class = class extends this {};\n    reopen.apply(Class.PrototypeMixin, mixins);\n    return Class;\n  }\n  static create(...args) {\n    let props = args[0];\n    let instance;\n    if (props !== undefined) {\n      instance = new this(getOwner(props));\n      // TODO(SAFETY): at present, we cannot actually rely on this being set,\n      // because a number of acceptance tests are (incorrectly? Unclear!)\n      // relying on the ability to run through this path with `factory` being\n      // `undefined`. It's *possible* that actually means that the type for\n      // `setFactoryFor()` should allow `undefined`, but we typed it the other\n      // way for good reason! Accordingly, this *casts* `factory`, and the\n      // commented-out `assert()` is here in the hope that we can enable it\n      // after addressing tests *or* updating the call signature here.\n      let factory = getFactoryFor(props);\n      // assert(`missing factory when creating object ${instance}`, factory !== undefined);\n      setFactoryFor(instance, factory);\n    } else {\n      instance = new this();\n    }\n    if (args.length <= 1) {\n      initialize(instance, props);\n    } else {\n      initialize(instance, flattenProps.apply(this, args));\n    }\n    // SAFETY: The `initialize` call is responsible to merge the prototype chain\n    // so that this holds.\n    return instance;\n  }\n  /**\n    Augments a constructor's prototype with additional\n    properties and functions:\n       ```javascript\n    import EmberObject from '@ember/object';\n       const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n       o = MyObject.create();\n    o.get('name'); // 'an object'\n       MyObject.reopen({\n      say(msg) {\n        console.log(msg);\n      }\n    });\n       o2 = MyObject.create();\n    o2.say('hello'); // logs \"hello\"\n       o.say('goodbye'); // logs \"goodbye\"\n    ```\n       To add functions and properties to the constructor itself,\n    see `reopenClass`\n       @method reopen\n    @for @ember/object\n    @static\n    @public\n  */\n  static reopen(...args) {\n    this.willReopen();\n    reopen.apply(this.PrototypeMixin, args);\n    return this;\n  }\n  static willReopen() {\n    let p = this.prototype;\n    if (wasApplied.has(p)) {\n      wasApplied.delete(p);\n      // If the base mixin already exists and was applied, create a new mixin to\n      // make sure that it gets properly applied. Reusing the same mixin after\n      // the first `proto` call will cause it to get skipped.\n      if (prototypeMixinMap.has(this)) {\n        prototypeMixinMap.set(this, Mixin.create(this.PrototypeMixin));\n      }\n    }\n  }\n  /**\n    Augments a constructor's own properties and functions:\n       ```javascript\n    import EmberObject from '@ember/object';\n       const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n       MyObject.reopenClass({\n      canBuild: false\n    });\n       MyObject.canBuild; // false\n    o = MyObject.create();\n    ```\n       In other words, this creates static properties and functions for the class.\n    These are only available on the class and not on any instance of that class.\n       ```javascript\n    import EmberObject from '@ember/object';\n       const Person = EmberObject.extend({\n      name: '',\n      sayHello() {\n        alert(`Hello. My name is ${this.get('name')}`);\n      }\n    });\n       Person.reopenClass({\n      species: 'Homo sapiens',\n         createPerson(name) {\n        return Person.create({ name });\n      }\n    });\n       let tom = Person.create({\n      name: 'Tom Dale'\n    });\n    let yehuda = Person.createPerson('Yehuda Katz');\n       tom.sayHello(); // \"Hello. My name is Tom Dale\"\n    yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n    alert(Person.species); // \"Homo sapiens\"\n    ```\n       Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n    variables. They are only valid on `Person`.\n       To add functions and properties to instances of\n    a constructor by extending the constructor's prototype\n    see `reopen`\n       @method reopenClass\n    @for @ember/object\n    @static\n    @public\n  */\n  static reopenClass(...mixins) {\n    applyMixin(this, mixins);\n    return this;\n  }\n  static detect(obj) {\n    if ('function' !== typeof obj) {\n      return false;\n    }\n    while (obj) {\n      if (obj === this) {\n        return true;\n      }\n      obj = obj.superclass;\n    }\n    return false;\n  }\n  static detectInstance(obj) {\n    return obj instanceof this;\n  }\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For\n    example, computed property functions may close over variables that are then\n    no longer available for introspection.\n       You can pass a hash of these values to a computed property like this:\n       ```javascript\n    import { computed } from '@ember/object';\n       person: computed(function() {\n      let personId = this.get('personId');\n      return Person.create({ id: personId });\n    }).meta({ type: Person })\n    ```\n       Once you've done this, you can retrieve the values saved to the computed\n    property from your class like this:\n       ```javascript\n    MyClass.metaForProperty('person');\n    ```\n       This will return the original hash that was passed to `meta()`.\n       @static\n    @method metaForProperty\n    @param key {String} property name\n    @private\n  */\n  static metaForProperty(key) {\n    let proto = this.proto(); // ensure prototype is initialized\n    let possibleDesc = descriptorForProperty(proto, key);\n    assert(`metaForProperty() could not find a computed property with key '${key}'.`, possibleDesc !== undefined);\n    return possibleDesc._meta || {};\n  }\n  /**\n    Iterate over each computed property for the class, passing its name\n    and any associated metadata (see `metaForProperty`) to the callback.\n       @static\n    @method eachComputedProperty\n    @param {Function} callback\n    @param {Object} binding\n    @private\n  */\n  static eachComputedProperty(callback, binding = this) {\n    this.proto(); // ensure prototype is initialized\n    let empty = {};\n    meta(this.prototype).forEachDescriptors((name, descriptor) => {\n      if (descriptor.enumerable) {\n        let meta = descriptor._meta || empty;\n        callback.call(binding, name, meta);\n      }\n    });\n  }\n  static get PrototypeMixin() {\n    let prototypeMixin = prototypeMixinMap.get(this);\n    if (prototypeMixin === undefined) {\n      prototypeMixin = Mixin.create();\n      prototypeMixin.ownerConstructor = this;\n      prototypeMixinMap.set(this, prototypeMixin);\n    }\n    return prototypeMixin;\n  }\n  static get superclass() {\n    let c = Object.getPrototypeOf(this);\n    return c !== Function.prototype ? c : undefined;\n  }\n  static proto() {\n    let p = this.prototype;\n    if (!wasApplied.has(p)) {\n      wasApplied.add(p);\n      let parent = this.superclass;\n      if (parent) {\n        parent.proto();\n      }\n      // If the prototype mixin exists, apply it. In the case of native classes,\n      // it will not exist (unless the class has been reopened).\n      if (prototypeMixinMap.has(this)) {\n        this.PrototypeMixin.apply(p);\n      }\n    }\n    return p;\n  }\n  static toString() {\n    return `<${getFactoryFor(this) || '(unknown)'}:constructor>`;\n  }\n}\nCoreObject.isClass = true;\nCoreObject.isMethod = false;\nfunction flattenProps(...props) {\n  let initProperties = {};\n  for (let properties of props) {\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let keyNames = Object.keys(properties);\n    for (let j = 0, k = keyNames.length; j < k; j++) {\n      let keyName = keyNames[j];\n      let value = properties[keyName];\n      initProperties[keyName] = value;\n    }\n  }\n  return initProperties;\n}\nif (DEBUG) {\n  /**\n    Provides lookup-time type validation for injected properties.\n       @private\n    @method _onLookup\n  */\n  CoreObject._onLookup = function injectedPropertyAssertion(debugContainerKey) {\n    let [type] = debugContainerKey.split(':');\n    let proto = this.proto();\n    for (let key in proto) {\n      let desc = descriptorForProperty(proto, key);\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        assert(`Defining \\`${key}\\` as an injected controller property on a non-controller (\\`${debugContainerKey}\\`) is not allowed.`, type === 'controller' || DEBUG_INJECTION_FUNCTIONS.get(desc._getter).type !== 'controller');\n      }\n    }\n  };\n  /**\n    Returns a hash of property names and container names that injected\n    properties will lookup on the container lazily.\n       @method _lazyInjections\n    @return {Object} Hash of all lazy injected property keys to container names\n    @private\n  */\n  CoreObject._lazyInjections = function () {\n    let injections = {};\n    let proto = this.proto();\n    let key;\n    let desc;\n    for (key in proto) {\n      desc = descriptorForProperty(proto, key);\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        let {\n          namespace,\n          source,\n          type,\n          name\n        } = DEBUG_INJECTION_FUNCTIONS.get(desc._getter);\n        injections[key] = {\n          namespace,\n          source,\n          specifier: `${type}:${name || key}`\n        };\n      }\n    }\n    return injections;\n  };\n}\nexport default CoreObject;","import { addListener, removeListener, hasListeners, sendEvent } from '@ember/-internals/metal';\nimport Mixin from '@ember/object/mixin';\nexport { on } from '@ember/-internals/metal';\nconst Evented = Mixin.create({\n  on(name, target, method) {\n    addListener(this, name, target, method);\n    return this;\n  },\n  one(name, target, method) {\n    addListener(this, name, target, method, true);\n    return this;\n  },\n  trigger(name, ...args) {\n    sendEvent(this, name, args);\n  },\n  off(name, target, method) {\n    removeListener(this, name, target, method);\n    return this;\n  },\n  has(name) {\n    return hasListeners(this, name);\n  }\n});\nexport default Evented;","import { assert } from '@ember/debug';\nimport { ENV } from '@ember/-internals/environment';\nimport { isElementDescriptor, expandProperties, setClassicDecorator } from '@ember/-internals/metal';\nimport { getFactoryFor } from '@ember/-internals/container';\nimport { setObservers } from '@ember/-internals/utils';\nimport CoreObject from '@ember/object/core';\nimport Observable from '@ember/object/observable';\nexport { notifyPropertyChange, defineProperty, get, set, getProperties, setProperties, computed, trySet } from '@ember/-internals/metal';\nclass EmberObject extends CoreObject.extend(Observable) {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n}\nexport default EmberObject;\n/**\n  Decorator that turns the target function into an Action which can be accessed\n  directly by reference.\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action this.toggleShowing}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  Decorated actions also interop with the string style template actions:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action \"toggleShowing\"}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  It also binds the function directly to the instance, so it can be used in any\n  context and will correctly refer to the class it came from:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert this.toggleShowing}}\n    {{on \"click\" this.toggleShowing}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  This can also be used in JavaScript code directly:\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    constructor() {\n      super(...arguments);\n\n      // this.toggleShowing is still bound correctly when added to\n      // the event listener\n      document.addEventListener('click', this.toggleShowing);\n    }\n\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n\n  This is considered best practice, since it means that methods will be bound\n  correctly no matter where they are used. By contrast, the `{{action}}` helper\n  and modifier can also be used to bind context, but it will be required for\n  every usage of the method:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert (action this.toggleShowing)}}\n    {{on \"click\" (action this.toggleShowing)}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  They also do not have equivalents in JavaScript directly, so they cannot be\n  used for other situations where binding would be useful.\n\n  @public\n  @method action\n  @for @ember/object\n  @static\n  @param {Function|undefined} callback The function to turn into an action,\n                                       when used in classic classes\n  @return {PropertyDecorator} property decorator instance\n*/\nconst BINDINGS_MAP = new WeakMap();\nfunction hasProto(obj) {\n  return obj != null && obj.constructor !== undefined && typeof obj.constructor.proto === 'function';\n}\nfunction setupAction(target, key, actionFn) {\n  if (hasProto(target)) {\n    target.constructor.proto();\n  }\n  if (!Object.prototype.hasOwnProperty.call(target, 'actions')) {\n    let parentActions = target.actions;\n    // we need to assign because of the way mixins copy actions down when inheriting\n    target.actions = parentActions ? Object.assign({}, parentActions) : {};\n  }\n  assert(\"[BUG] Somehow the target doesn't have actions!\", target.actions != null);\n  target.actions[key] = actionFn;\n  return {\n    get() {\n      let bindings = BINDINGS_MAP.get(this);\n      if (bindings === undefined) {\n        bindings = new Map();\n        BINDINGS_MAP.set(this, bindings);\n      }\n      let fn = bindings.get(actionFn);\n      if (fn === undefined) {\n        fn = actionFn.bind(this);\n        bindings.set(actionFn, fn);\n      }\n      return fn;\n    }\n  };\n}\nexport function action(...args) {\n  let actionFn;\n  if (!isElementDescriptor(args)) {\n    actionFn = args[0];\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      assert('The @action decorator may only be passed a method when used in classic classes. You should decorate methods directly in native classes', isClassicDecorator);\n      assert('The action() decorator must be passed a method when used in classic classes', typeof actionFn === 'function');\n      return setupAction(target, key, actionFn);\n    };\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n  let [target, key, desc] = args;\n  actionFn = desc?.value;\n  assert('The @action decorator must be applied to methods when used in native classes', typeof actionFn === 'function');\n  // SAFETY: TS types are weird with decorators. This should work.\n  return setupAction(target, key, actionFn);\n}\n// SAFETY: TS types are weird with decorators. This should work.\nsetClassicDecorator(action);\n/**\n  Specify a method that observes property changes.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { observer } from '@ember/object';\n\n  export default EmberObject.extend({\n    valueObserver: observer('value', function() {\n      // Executes whenever the \"value\" property changes\n    })\n  });\n  ```\n\n  Also available as `Function.prototype.observes` if prototype extensions are\n  enabled.\n\n  @method observer\n  @for @ember/object\n  @param {String} propertyNames*\n  @param {Function} func\n  @return func\n  @public\n  @static\n*/\nexport function observer(...args) {\n  let funcOrDef = args.pop();\n  assert('observer must be provided a function or an observer definition', typeof funcOrDef === 'function' || typeof funcOrDef === 'object' && funcOrDef !== null);\n  let func;\n  let dependentKeys;\n  let sync;\n  if (typeof funcOrDef === 'function') {\n    func = funcOrDef;\n    dependentKeys = args;\n    sync = !ENV._DEFAULT_ASYNC_OBSERVERS;\n  } else {\n    func = funcOrDef.fn;\n    dependentKeys = funcOrDef.dependentKeys;\n    sync = funcOrDef.sync;\n  }\n  assert('observer called without a function', typeof func === 'function');\n  assert('observer called without valid path', Array.isArray(dependentKeys) && dependentKeys.length > 0 && dependentKeys.every(p => typeof p === 'string' && Boolean(p.length)));\n  assert('observer called without sync', typeof sync === 'boolean');\n  let paths = [];\n  for (let dependentKey of dependentKeys) {\n    expandProperties(dependentKey, path => paths.push(path));\n  }\n  setObservers(func, {\n    paths,\n    sync\n  });\n  return func;\n}","import { computed, isElementDescriptor, alias, expandProperties } from '@ember/-internals/metal';\nimport { get, set } from '@ember/object';\nimport { assert, deprecate } from '@ember/debug';\nimport { isEmpty, isNone } from '@ember/utils';\n/**\n@module @ember/object\n*/\nfunction expandPropertiesToArray(predicateName, properties) {\n  let expandedProperties = [];\n  function extractProperty(entry) {\n    expandedProperties.push(entry);\n  }\n  for (let property of properties) {\n    assert(`Dependent keys passed to \\`${predicateName}\\` computed macro can't have spaces.`, property.indexOf(' ') < 0);\n    expandProperties(property, extractProperty);\n  }\n  return expandedProperties;\n}\nfunction generateComputedWithPredicate(name, predicate) {\n  return (dependentKey, ...additionalDependentKeys) => {\n    let properties = [dependentKey, ...additionalDependentKeys];\n    assert(`You attempted to use @${name} as a decorator directly, but it requires at least one dependent key parameter`, !isElementDescriptor(properties));\n    let dependentKeys = expandPropertiesToArray(name, properties);\n    let computedFunc = computed(...dependentKeys, function () {\n      let lastIdx = dependentKeys.length - 1;\n      for (let i = 0; i < lastIdx; i++) {\n        // SAFETY: `i` is derived from the length of `dependentKeys`\n        let value = get(this, dependentKeys[i]);\n        if (!predicate(value)) {\n          return value;\n        }\n      }\n      // SAFETY: `lastIdx` is derived from the length of `dependentKeys`\n      return get(this, dependentKeys[lastIdx]);\n    });\n    return computedFunc;\n  };\n}\n/**\n  A computed property macro that returns true if the value of the dependent\n  property is null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    @empty('todos') isDone;\n  }\n\n  let todoList = new ToDoList(\n    ['Unit Test', 'Documentation', 'Release']\n  );\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  @since 1.6.0\n  @method empty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if the value\n  of the dependent property is null, an empty string, empty array, or empty\n  function and false if the underlying value is not empty.\n\n  @public\n*/\nexport function empty(dependentKey) {\n  assert('You attempted to use @empty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is NOT null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(backpack) {\n      set(this, 'backpack', backpack);\n    }\n\n    @notEmpty('backpack') hasStuff\n  }\n\n  let hamster = new Hamster(\n    ['Food', 'Sleeping Bag', 'Tent']\n  );\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  @method notEmpty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is not empty.\n  @public\n*/\nexport function notEmpty(dependentKey) {\n  assert('You attempted to use @notEmpty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return !isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is null or undefined. This avoids errors from JSLint complaining about use of\n  ==, which can be technically confusing.\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  class Hamster {\n    @none('food') isHungry;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  @method none\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is null or undefined.\n  @public\n*/\nexport function none(dependentKey) {\n  assert('You attempted to use @none as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return isNone(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns the inverse boolean value of the original\n  value for the dependent property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  class User {\n    loggedIn = false;\n\n    @not('loggedIn') isAnonymous;\n  }\n\n  let user = new User();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  @method not\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns inverse of the\n  original value for property\n  @public\n*/\nexport function not(dependentKey) {\n  assert('You attempted to use @not as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return !get(this, dependentKey);\n  });\n}\n/**\n  A computed property that converts the provided dependent property into a\n  boolean value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  class Hamster {\n    @bool('numBananas') hasBananas\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  @method bool\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which converts to boolean the\n  original value for property\n  @public\n*/\nexport function bool(dependentKey) {\n  assert('You attempted to use @bool as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return Boolean(get(this, dependentKey));\n  });\n}\n/**\n  A computed property which matches the original value for the dependent\n  property against a given RegExp, returning `true` if the value matches the\n  RegExp and `false` if it does not.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  class User {\n    @match('email', /^.+@.+\\..+$/) hasValidEmail;\n  }\n\n  let user = new User();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  @method match\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {RegExp} regexp\n  @return {ComputedProperty} computed property which match the original value\n  for property against a given RegExp\n  @public\n*/\nexport function match(dependentKey, regexp) {\n  assert('You attempted to use @match as a decorator directly, but it requires `dependentKey` and `regexp` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    let value = get(this, dependentKey);\n    return regexp.test(value);\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  equal to the given value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  class Hamster {\n    @equal('percentCarrotsEaten', 100) satisfied;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  @method equal\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {String|Number|Object} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is equal to the given value.\n  @public\n*/\nexport function equal(dependentKey, value) {\n  assert('You attempted to use @equal as a decorator directly, but it requires `dependentKey` and `value` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) === value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  class Hamster {\n    @gt('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater than given value.\n  @public\n*/\nexport function gt(dependentKey, value) {\n  assert('You attempted to use @gt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) > value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  class Hamster {\n    @gte('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater or equal then given value.\n  @public\n*/\nexport function gte(dependentKey, value) {\n  assert('You attempted to use @gte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) >= value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  class Hamster {\n    @lt('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less then given value.\n  @public\n*/\nexport function lt(dependentKey, value) {\n  assert('You attempted to use @lt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) < value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  class Hamster {\n    @lte('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less or equal than given value.\n  @public\n*/\nexport function lte(dependentKey, value) {\n  assert('You attempted to use @lte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) <= value;\n  });\n}\n/**\n  A computed property that performs a logical `and` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first falsy value or last\n  truthy value just like JavaScript's `&&` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  class Hamster {\n    @and('hasTent', 'hasBackpack') readyForCamp;\n    @and('hasWalkingStick', 'hasBackpack') readyForHike;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  @method and\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `and` on\n  the values of all the original values for properties.\n  @public\n*/\nexport const and = generateComputedWithPredicate('and', value => value);\n/**\n  A computed property which performs a logical `or` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first truthy value or last\n  falsy value just like JavaScript's `||` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  class Hamster {\n    @or('hasJacket', 'hasUmbrella') readyForRain;\n    @or('hasSunscreen', 'hasUmbrella') readyForBeach;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  @method or\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `or` on\n  the values of all the original values for properties.\n  @public\n*/\nexport const or = generateComputedWithPredicate('or', value => !value);\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { alias } from '@ember/object/computed';\n\n  class Person {\n    name = 'Alex Matchneer';\n\n    @alias('name') nomen;\n  }\n\n  let alex = new Person();\n\n  alex.nomen; // 'Alex Matchneer'\n  alex.name;  // 'Alex Matchneer'\n\n  set(alex, 'nomen', '@machty');\n  alex.name;  // '@machty'\n  ```\n\n  @method alias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates an alias to the\n  original value for property.\n  @public\n*/\n/**\n  Where the `alias` computed macro aliases `get` and `set`, and allows for\n  bidirectional data flow, the `oneWay` computed macro only provides an aliased\n  `get`. The `set` will not mutate the upstream property, rather causes the\n  current property to become the value set. This causes the downstream property\n  to permanently diverge from the upstream property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { oneWay }from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @oneWay('firstName') nickName;\n  }\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear');\n  teddy.firstName; // 'Teddy'\n  teddy.nickName; // 'TeddyBear'\n  ```\n\n  @method oneWay\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @public\n*/\nexport function oneWay(dependentKey) {\n  assert('You attempted to use @oneWay as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).oneWay();\n}\n/**\n  This is a more semantically meaningful alias of the `oneWay` computed macro,\n  whose name is somewhat ambiguous as to which direction the data flows.\n\n  @method reads\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n    property to the original value for property.\n  @public\n */\n/**\n  Where `oneWay` computed macro provides oneWay bindings, the `readOnly`\n  computed macro provides a readOnly one way binding. Very often when using\n  the `oneWay` macro one does not also want changes to propagate back up, as\n  they will replace the value.\n\n  This prevents the reverse flow, and also throws an exception when it occurs.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { readOnly } from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @readOnly('firstName') nickName;\n  });\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n  // throw new EmberError('Cannot Set: nickName on: <User:ember27288>' );`\n\n  teddy.firstName; // 'Teddy'\n  ```\n\n  @method readOnly\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @since 1.5.0\n  @public\n*/\nexport function readOnly(dependentKey) {\n  assert('You attempted to use @readOnly as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).readOnly();\n}\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property, but also print a deprecation warning.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  class Hamster {\n    @deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n    bananaCount;\n  }\n\n  let hamster = new Hamster();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  @method deprecatingAlias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Object} options Options for `deprecate`.\n  @return {ComputedProperty} computed property which creates an alias with a\n  deprecation to the original value for property.\n  @since 1.7.0\n  @public\n*/\nexport function deprecatingAlias(dependentKey, options) {\n  assert('You attempted to use @deprecatingAlias as a decorator directly, but it requires `dependentKey` and `options` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, {\n    get(key) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      return get(this, dependentKey);\n    },\n    set(key, value) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      set(this, dependentKey, value);\n      return value;\n    }\n  });\n}","/**\n@module @ember/object\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '@ember/debug';\nimport { autoComputed, isElementDescriptor } from '@ember/-internals/metal';\nimport { computed, get } from '@ember/object';\nimport { compare } from '@ember/utils';\nimport EmberArray, { A as emberA, uniqBy as uniqByArray } from '@ember/array';\nfunction isNativeOrEmberArray(obj) {\n  return Array.isArray(obj) || EmberArray.detect(obj);\n}\nfunction reduceMacro(dependentKey, callback, initialValue, name) {\n  assert(`Dependent key passed to \\`${name}\\` computed macro shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let arr = get(this, dependentKey);\n    if (arr === null || typeof arr !== 'object') {\n      return initialValue;\n    }\n    return arr.reduce(callback, initialValue, this);\n  }).readOnly();\n}\nfunction arrayMacro(dependentKey, additionalDependentKeys, callback) {\n  // This is a bit ugly\n  let propertyName;\n  if (/@each/.test(dependentKey)) {\n    propertyName = dependentKey.replace(/\\.@each.*$/, '');\n  } else {\n    propertyName = dependentKey;\n    dependentKey += '.[]';\n  }\n  return computed(dependentKey, ...additionalDependentKeys, function () {\n    let value = get(this, propertyName);\n    if (isNativeOrEmberArray(value)) {\n      return emberA(callback.call(this, value));\n    } else {\n      return emberA();\n    }\n  }).readOnly();\n}\nfunction multiArrayMacro(_dependentKeys, callback, name) {\n  assert(`Dependent keys passed to \\`${name}\\` computed macro shouldn't contain brace expanding pattern.`, _dependentKeys.every(dependentKey => !/[[\\]{}]/g.test(dependentKey)));\n  let dependentKeys = _dependentKeys.map(key => `${key}.[]`);\n  return computed(...dependentKeys, function () {\n    return emberA(callback.call(this, _dependentKeys));\n  }).readOnly();\n}\n/**\n  A computed property that returns the sum of the values in the dependent array.\n\n  Example:\n\n  ```javascript\n  import { sum } from '@ember/object/computed';\n\n  class Invoice {\n    lineItems = [1.00, 2.50, 9.99];\n\n    @sum('lineItems') total;\n  }\n\n  let invoice = new Invoice();\n\n  invoice.total; // 13.49\n  ```\n\n  @method sum\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the sum of all values in the\n  dependentKey's array\n  @since 1.4.0\n  @public\n*/\nexport function sum(dependentKey) {\n  assert('You attempted to use @sum as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (sum, item) => sum + item, 0, 'sum');\n}\n/**\n  A computed property that calculates the maximum value in the dependent array.\n  This will return `-Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @max('childAges') maxChildAge;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the max of a list of Date objects will be the highest timestamp as a `Number`.\n  This behavior is consistent with `Math.max`.\n\n  @method max\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the largest value in the dependentKey's\n  array\n  @public\n*/\nexport function max(dependentKey) {\n  assert('You attempted to use @max as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (max, item) => Math.max(max, item), -Infinity, 'max');\n}\n/**\n  A computed property that calculates the minimum value in the dependent array.\n  This will return `Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @min('childAges') minChildAge;\n  }\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the min of a list of Date objects will be the lowest timestamp as a `Number`.\n  This behavior is consistent with `Math.min`.\n\n  @method min\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the smallest value in the dependentKey's array\n  @public\n*/\nexport function min(dependentKey) {\n  assert('You attempted to use @min as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (min, item) => Math.min(min, item), Infinity, 'min');\n}\nexport function map(dependentKey, additionalDependentKeysOrCallback, callback) {\n  assert('You attempted to use @map as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('The final parameter provided to map must be a callback function', typeof callback === 'function' || callback === undefined && typeof additionalDependentKeysOrCallback === 'function');\n  assert('The second parameter provided to map must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeysOrCallback) || typeof additionalDependentKeysOrCallback === 'function');\n  let additionalDependentKeys;\n  if (typeof additionalDependentKeysOrCallback === 'function') {\n    callback = additionalDependentKeysOrCallback;\n    additionalDependentKeys = [];\n  } else {\n    additionalDependentKeys = additionalDependentKeysOrCallback;\n  }\n  const cCallback = callback;\n  assert('[BUG] Missing callback', cCallback);\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    // This is so dumb...\n    return Array.isArray(value) ? value.map(cCallback, this) : value.map(cCallback, this);\n  });\n}\n/**\n  Returns an array mapped to the specified key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  @method mapBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} an array mapped to the specified key\n  @public\n*/\nexport function mapBy(dependentKey, propertyKey) {\n  assert('You attempted to use @mapBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`mapBy` computed macro expects a property string for its second argument, ' + 'perhaps you meant to use \"map\"', typeof propertyKey === 'string');\n  assert(`Dependent key passed to \\`mapBy\\` computed macro shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return map(`${dependentKey}.@each.${propertyKey}`, item => get(item, propertyKey));\n}\nexport function filter(dependentKey, additionalDependentKeysOrCallback, callback) {\n  assert('You attempted to use @filter as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('The final parameter provided to filter must be a callback function', typeof callback === 'function' || callback === undefined && typeof additionalDependentKeysOrCallback === 'function');\n  assert('The second parameter provided to filter must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeysOrCallback) || typeof additionalDependentKeysOrCallback === 'function');\n  let additionalDependentKeys;\n  if (typeof additionalDependentKeysOrCallback === 'function') {\n    callback = additionalDependentKeysOrCallback;\n    additionalDependentKeys = [];\n  } else {\n    additionalDependentKeys = additionalDependentKeysOrCallback;\n  }\n  const cCallback = callback;\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    // This is a really silly way to keep TS happy\n    return Array.isArray(value) ? value.filter(cCallback, this) : value.filter(cCallback, this);\n  });\n}\n/**\n  Filters the array by the property and value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filterBy('chores', 'done', false) remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  @method filterBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @param {*} value\n  @return {ComputedProperty} the filtered array\n  @public\n*/\nexport function filterBy(dependentKey, propertyKey, value) {\n  assert('You attempted to use @filterBy as a decorator directly, but it requires atleast `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`filterBy\\` computed macro shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  let callback;\n  if (arguments.length === 2) {\n    callback = item => get(item, propertyKey);\n  } else {\n    callback = item => get(item, propertyKey) === value;\n  }\n  return filter(`${dependentKey}.@each.${propertyKey}`, callback);\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniq('fruits') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    'banana',\n    'grape',\n    'kale',\n    'banana'\n  ]);\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  @method uniq\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\nexport function uniq(dependentKey, ...additionalDependentKeys) {\n  assert('You attempted to use @uniq/@union as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  let args = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(args, function (dependentKeys) {\n    let uniq = emberA();\n    let seen = new Set();\n    dependentKeys.forEach(dependentKey => {\n      let value = get(this, dependentKey);\n      if (isNativeOrEmberArray(value)) {\n        value.forEach(item => {\n          if (!seen.has(item)) {\n            seen.add(item);\n            uniq.push(item);\n          }\n        });\n      }\n    });\n    return uniq;\n  }, 'uniq');\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from an array, with uniqueness determined by specific key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniqBy('fruits', 'id') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    { id: 1, 'banana' },\n    { id: 2, 'grape' },\n    { id: 3, 'peach' },\n    { id: 1, 'banana' }\n  ]);\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  @method uniqBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\nexport function uniqBy(dependentKey, propertyKey) {\n  assert('You attempted to use @uniqBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`uniqBy\\` computed macro shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let list = get(this, dependentKey);\n    return isNativeOrEmberArray(list) ? uniqByArray(list, propertyKey) : emberA();\n  }).readOnly();\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits, vegetables) {\n      set(this, 'fruits', fruits);\n      set(this, 'vegetables', vegetables);\n    }\n\n    @union('fruits', 'vegetables') uniqueFruits;\n  });\n\n  let hamster = new, Hamster(\n    [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  );\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  @method union\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the unique elements\n  from one or more dependent arrays.\n  @public\n*/\nexport let union = uniq;\n/**\n  A computed property which returns a new array with all the elements\n  two or more dependent arrays have in common.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  class FriendGroups {\n    constructor(adaFriends, charlesFriends) {\n      set(this, 'adaFriends', adaFriends);\n      set(this, 'charlesFriends', charlesFriends);\n    }\n\n    @intersect('adaFriends', 'charlesFriends') friendsInCommon;\n  }\n\n  let groups = new FriendGroups(\n    ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  );\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  @method intersect\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the duplicated\n  elements from the dependent arrays\n  @public\n*/\nexport function intersect(dependentKey, ...additionalDependentKeys) {\n  assert('You attempted to use @intersect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  let args = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(args, function (dependentKeys) {\n    let arrays = dependentKeys.map(dependentKey => {\n      let array = get(this, dependentKey);\n      return Array.isArray(array) ? array : [];\n    });\n    let firstArray = arrays.pop();\n    assert('Attempted to apply multiArrayMacro for intersect without any dependentKeys', firstArray);\n    let results = firstArray.filter(candidate => {\n      for (let array of arrays) {\n        let found = false;\n        for (let item of array) {\n          if (item === candidate) {\n            found = true;\n            break;\n          }\n        }\n        if (found === false) {\n          return false;\n        }\n      }\n      return true;\n    });\n    return emberA(results);\n  }, 'intersect');\n}\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array that are not in the second dependent array.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(likes, fruits) {\n      set(this, 'likes', likes);\n      set(this, 'fruits', fruits);\n    }\n\n    @setDiff('likes', 'fruits') wants;\n  }\n\n  let hamster = new Hamster(\n    [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    [\n      'grape',\n      'kale',\n    ]\n  );\n\n  hamster.wants; // ['banana']\n  ```\n\n  @method setDiff\n  @for @ember/object/computed\n  @static\n  @param {String} setAProperty\n  @param {String} setBProperty\n  @return {ComputedProperty} computes a new array with all the items from the\n  first dependent array that are not in the second dependent array\n  @public\n*/\nexport function setDiff(setAProperty, setBProperty) {\n  assert('You attempted to use @setDiff as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`setDiff` computed macro requires exactly two dependent arrays.', arguments.length === 2);\n  assert(`Dependent keys passed to \\`setDiff\\` computed macro shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(setAProperty) && !/[[\\]{}]/g.test(setBProperty));\n  return computed(`${setAProperty}.[]`, `${setBProperty}.[]`, function () {\n    let setA = get(this, setAProperty);\n    let setB = get(this, setBProperty);\n    if (!isNativeOrEmberArray(setA)) {\n      return emberA();\n    }\n    if (!isNativeOrEmberArray(setB)) {\n      return setA;\n    }\n    return setA.filter(x => setB.indexOf(x) === -1);\n  }).readOnly();\n}\n/**\n  A computed property that returns the array of values for the provided\n  dependent properties.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  class Hamster {\n    @collect('hat', 'shirt') clothes;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  @method collect\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which maps values of all passed\n  in properties to an array.\n  @public\n*/\nexport function collect(dependentKey, ...additionalDependentKeys) {\n  assert('You attempted to use @collect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  let dependentKeys = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(dependentKeys, function () {\n    let res = dependentKeys.map(key => {\n      let val = get(this, key);\n      return val === undefined ? null : val;\n    });\n    return emberA(res);\n  }, 'collect');\n}\nexport function sort(itemsKey, additionalDependentKeysOrDefinition, sortDefinition) {\n  assert('You attempted to use @sort as a decorator directly, but it requires atleast an `itemsKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  if (DEBUG) {\n    let argumentsValid = false;\n    if (arguments.length === 2) {\n      argumentsValid = typeof itemsKey === 'string' && (typeof additionalDependentKeysOrDefinition === 'string' || typeof additionalDependentKeysOrDefinition === 'function');\n    }\n    if (arguments.length === 3) {\n      argumentsValid = typeof itemsKey === 'string' && Array.isArray(additionalDependentKeysOrDefinition) && typeof sortDefinition === 'function';\n    }\n    assert('The `sort` computed macro can either be used with an array of sort properties or with a sort function. If used with an array of sort properties, it must receive exactly two arguments: the key of the array to sort, and the key of the array of sort properties. If used with a sort function, it may receive up to three arguments: the key of the array to sort, an optional additional array of dependent keys for the computed property, and the sort function.', argumentsValid);\n  }\n  let additionalDependentKeys;\n  let sortDefinitionOrString;\n  if (Array.isArray(additionalDependentKeysOrDefinition)) {\n    additionalDependentKeys = additionalDependentKeysOrDefinition;\n    sortDefinitionOrString = sortDefinition;\n  } else {\n    additionalDependentKeys = [];\n    sortDefinitionOrString = additionalDependentKeysOrDefinition;\n  }\n  if (typeof sortDefinitionOrString === 'function') {\n    return customSort(itemsKey, additionalDependentKeys, sortDefinitionOrString);\n  } else {\n    return propertySort(itemsKey, sortDefinitionOrString);\n  }\n}\nfunction customSort(itemsKey, additionalDependentKeys, comparator) {\n  return arrayMacro(itemsKey, additionalDependentKeys, function (value) {\n    return value.slice().sort((x, y) => comparator.call(this, x, y));\n  });\n}\n// This one needs to dynamically set up and tear down observers on the itemsKey\n// depending on the sortProperties\nfunction propertySort(itemsKey, sortPropertiesKey) {\n  let cp = autoComputed(function (key) {\n    let sortProperties = get(this, sortPropertiesKey);\n    assert(`The sort definition for '${key}' on ${this} must be a function or an array of strings`, function (arr) {\n      return isNativeOrEmberArray(arr) && arr.every(s => typeof s === 'string');\n    }(sortProperties));\n    let itemsKeyIsAtThis = itemsKey === '@this';\n    let normalizedSortProperties = normalizeSortProperties(sortProperties);\n    let items = itemsKeyIsAtThis ? this : get(this, itemsKey);\n    if (!isNativeOrEmberArray(items)) {\n      return emberA();\n    }\n    if (normalizedSortProperties.length === 0) {\n      return emberA(items.slice());\n    } else {\n      return sortByNormalizedSortProperties(items, normalizedSortProperties);\n    }\n  }).readOnly();\n  return cp;\n}\nfunction normalizeSortProperties(sortProperties) {\n  let callback = p => {\n    let [prop, direction] = p.split(':');\n    direction = direction || 'asc';\n    // SAFETY: There will always be at least one value returned by split\n    return [prop, direction];\n  };\n  // This nonsense is necessary since technically the two map implementations diverge.\n  return Array.isArray(sortProperties) ? sortProperties.map(callback) : sortProperties.map(callback);\n}\nfunction sortByNormalizedSortProperties(items, normalizedSortProperties) {\n  return emberA(items.slice().sort((itemA, itemB) => {\n    for (let [prop, direction] of normalizedSortProperties) {\n      let result = compare(get(itemA, prop), get(itemB, prop));\n      if (result !== 0) {\n        return direction === 'desc' ? -1 * result : result;\n      }\n    }\n    return 0;\n  }));\n}","/**\n@module @ember/object/mixin\n*/\nimport { INIT_FACTORY } from '@ember/-internals/container';\nimport { meta as metaFor, peekMeta } from '@ember/-internals/meta';\nimport { guidFor, observerListenerMetaFor, ROOT, wrap } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { isClassicDecorator } from '@ember/-internals/metal';\nimport { ComputedProperty, descriptorForDecorator, makeComputedDecorator, nativeDescDecorator, setUnprocessedMixins, addObserver, removeObserver, revalidateObservers, defineDecorator, defineValue } from '@ember/-internals/metal';\nimport { addListener, removeListener } from '@ember/object/events';\nconst a_concat = Array.prototype.concat;\nconst {\n  isArray\n} = Array;\nfunction extractAccessors(properties) {\n  if (properties !== undefined) {\n    for (let key of Object.keys(properties)) {\n      let desc = Object.getOwnPropertyDescriptor(properties, key);\n      if (desc.get !== undefined || desc.set !== undefined) {\n        Object.defineProperty(properties, key, {\n          value: nativeDescDecorator(desc)\n        });\n      }\n    }\n  }\n  return properties;\n}\nfunction concatenatedMixinProperties(concatProp, props, values, base) {\n  // reset before adding each new mixin to pickup concats from previous\n  let concats = values[concatProp] || base[concatProp];\n  if (props[concatProp]) {\n    concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n  }\n  return concats;\n}\nfunction giveDecoratorSuper(key, decorator, property, descs) {\n  if (property === true) {\n    return decorator;\n  }\n  let originalGetter = property._getter;\n  if (originalGetter === undefined) {\n    return decorator;\n  }\n  let superDesc = descs[key];\n  // Check to see if the super property is a decorator first, if so load its descriptor\n  let superProperty = typeof superDesc === 'function' ? descriptorForDecorator(superDesc) : superDesc;\n  if (superProperty === undefined || superProperty === true) {\n    return decorator;\n  }\n  let superGetter = superProperty._getter;\n  if (superGetter === undefined) {\n    return decorator;\n  }\n  let get = wrap(originalGetter, superGetter);\n  let set;\n  let originalSetter = property._setter;\n  let superSetter = superProperty._setter;\n  if (superSetter !== undefined) {\n    if (originalSetter !== undefined) {\n      set = wrap(originalSetter, superSetter);\n    } else {\n      // If the super property has a setter, we default to using it no matter what.\n      // This is clearly very broken and weird, but it's what was here so we have\n      // to keep it until the next major at least.\n      //\n      // TODO: Add a deprecation here.\n      set = superSetter;\n    }\n  } else {\n    set = originalSetter;\n  }\n  // only create a new CP if we must\n  if (get !== originalGetter || set !== originalSetter) {\n    // Since multiple mixins may inherit from the same parent, we need\n    // to clone the computed property so that other mixins do not receive\n    // the wrapped version.\n    let dependentKeys = property._dependentKeys || [];\n    let newProperty = new ComputedProperty([...dependentKeys, {\n      get,\n      set\n    }]);\n    newProperty._readOnly = property._readOnly;\n    newProperty._meta = property._meta;\n    newProperty.enumerable = property.enumerable;\n    // SAFETY: We passed in the impl for this class\n    return makeComputedDecorator(newProperty, ComputedProperty);\n  }\n  return decorator;\n}\nfunction giveMethodSuper(key, method, values, descs) {\n  // Methods overwrite computed properties, and do not call super to them.\n  if (descs[key] !== undefined) {\n    return method;\n  }\n  // Find the original method in a parent mixin\n  let superMethod = values[key];\n  // Only wrap the new method if the original method was a function\n  if (typeof superMethod === 'function') {\n    return wrap(method, superMethod);\n  }\n  return method;\n}\nfunction simpleMakeArray(value) {\n  if (!value) {\n    return [];\n  } else if (!Array.isArray(value)) {\n    return [value];\n  } else {\n    return value;\n  }\n}\nfunction applyConcatenatedProperties(key, value, values) {\n  let baseValue = values[key];\n  let ret = simpleMakeArray(baseValue).concat(simpleMakeArray(value));\n  if (DEBUG) {\n    // it is possible to use concatenatedProperties with strings (which cannot be frozen)\n    // only freeze objects...\n    if (typeof ret === 'object' && ret !== null) {\n      // prevent mutating `concatenatedProperties` array after it is applied\n      Object.freeze(ret);\n    }\n  }\n  return ret;\n}\nfunction applyMergedProperties(key, value, values) {\n  let baseValue = values[key];\n  assert(`You passed in \\`${JSON.stringify(value)}\\` as the value for \\`${key}\\` but \\`${key}\\` cannot be an Array`, !isArray(value));\n  if (!baseValue) {\n    return value;\n  }\n  let newBase = Object.assign({}, baseValue);\n  let hasFunction = false;\n  let props = Object.keys(value);\n  for (let prop of props) {\n    let propValue = value[prop];\n    if (typeof propValue === 'function') {\n      hasFunction = true;\n      newBase[prop] = giveMethodSuper(prop, propValue, baseValue, {});\n    } else {\n      newBase[prop] = propValue;\n    }\n  }\n  if (hasFunction) {\n    newBase._super = ROOT;\n  }\n  return newBase;\n}\nfunction mergeMixins(mixins, meta, descs, values, base, keys, keysWithSuper) {\n  let currentMixin;\n  for (let i = 0; i < mixins.length; i++) {\n    currentMixin = mixins[i];\n    assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(currentMixin)}`, typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n    if (MIXINS.has(currentMixin)) {\n      if (meta.hasMixin(currentMixin)) {\n        continue;\n      }\n      meta.addMixin(currentMixin);\n      let {\n        properties,\n        mixins\n      } = currentMixin;\n      if (properties !== undefined) {\n        mergeProps(meta, properties, descs, values, base, keys, keysWithSuper);\n      } else if (mixins !== undefined) {\n        mergeMixins(mixins, meta, descs, values, base, keys, keysWithSuper);\n        if (currentMixin instanceof Mixin && currentMixin._without !== undefined) {\n          currentMixin._without.forEach(keyName => {\n            // deleting the key means we won't process the value\n            let index = keys.indexOf(keyName);\n            if (index !== -1) {\n              keys.splice(index, 1);\n            }\n          });\n        }\n      }\n    } else {\n      mergeProps(meta, currentMixin, descs, values, base, keys, keysWithSuper);\n    }\n  }\n}\nfunction mergeProps(meta, props, descs, values, base, keys, keysWithSuper) {\n  let concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n  let mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n  let propKeys = Object.keys(props);\n  for (let key of propKeys) {\n    let value = props[key];\n    if (value === undefined) continue;\n    if (keys.indexOf(key) === -1) {\n      keys.push(key);\n      let desc = meta.peekDescriptors(key);\n      if (desc === undefined) {\n        // If the value is a classic decorator, we don't want to actually\n        // access it, because that will execute the decorator while we're\n        // building the class.\n        if (!isClassicDecorator(value)) {\n          // The superclass did not have a CP, which means it may have\n          // observers or listeners on that property.\n          let prev = values[key] = base[key];\n          if (typeof prev === 'function') {\n            updateObserversAndListeners(base, key, prev, false);\n          }\n        }\n      } else {\n        descs[key] = desc;\n        // The super desc will be overwritten on descs, so save off the fact that\n        // there was a super so we know to Object.defineProperty when writing\n        // the value\n        keysWithSuper.push(key);\n        desc.teardown(base, key, meta);\n      }\n    }\n    let isFunction = typeof value === 'function';\n    if (isFunction) {\n      let desc = descriptorForDecorator(value);\n      if (desc !== undefined) {\n        // Wrap descriptor function to implement _super() if needed\n        descs[key] = giveDecoratorSuper(key, value, desc, descs);\n        values[key] = undefined;\n        continue;\n      }\n    }\n    if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n      value = applyConcatenatedProperties(key, value, values);\n    } else if (mergings && mergings.indexOf(key) > -1) {\n      value = applyMergedProperties(key, value, values);\n    } else if (isFunction) {\n      value = giveMethodSuper(key, value, values, descs);\n    }\n    values[key] = value;\n    descs[key] = undefined;\n  }\n}\nfunction updateObserversAndListeners(obj, key, fn, add) {\n  let meta = observerListenerMetaFor(fn);\n  if (meta === undefined) return;\n  let {\n    observers,\n    listeners\n  } = meta;\n  if (observers !== undefined) {\n    let updateObserver = add ? addObserver : removeObserver;\n    for (let path of observers.paths) {\n      updateObserver(obj, path, null, key, observers.sync);\n    }\n  }\n  if (listeners !== undefined) {\n    let updateListener = add ? addListener : removeListener;\n    for (let listener of listeners) {\n      updateListener(obj, listener, null, key);\n    }\n  }\n}\nexport function applyMixin(obj, mixins, _hideKeys = false) {\n  let descs = Object.create(null);\n  let values = Object.create(null);\n  let meta = metaFor(obj);\n  let keys = [];\n  let keysWithSuper = [];\n  obj._super = ROOT;\n  // Go through all mixins and hashes passed in, and:\n  //\n  // * Handle concatenated properties\n  // * Handle merged properties\n  // * Set up _super wrapping if necessary\n  // * Set up computed property descriptors\n  // * Copying `toString` in broken browsers\n  mergeMixins(mixins, meta, descs, values, obj, keys, keysWithSuper);\n  for (let key of keys) {\n    let value = values[key];\n    let desc = descs[key];\n    if (value !== undefined) {\n      if (typeof value === 'function') {\n        updateObserversAndListeners(obj, key, value, true);\n      }\n      defineValue(obj, key, value, keysWithSuper.indexOf(key) !== -1, !_hideKeys);\n    } else if (desc !== undefined) {\n      defineDecorator(obj, key, desc, meta);\n    }\n  }\n  if (!meta.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n  return obj;\n}\n/**\n  @method mixin\n  @param obj\n  @param mixins*\n  @return obj\n  @private\n*/\nexport function mixin(obj, ...args) {\n  applyMixin(obj, args);\n  return obj;\n}\nconst MIXINS = new WeakSet();\n/**\n  The `Mixin` class allows you to create mixins, whose properties can be\n  added to other classes. For instance,\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n\n  const EditableMixin = Mixin.create({\n    edit() {\n      console.log('starting to edit');\n      this.set('isEditing', true);\n    },\n    isEditing: false\n  });\n  ```\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import EditableMixin from '../mixins/editable';\n\n  // Mix mixins into classes by passing them as the first arguments to\n  // `.extend.`\n  const Comment = EmberObject.extend(EditableMixin, {\n    post: null\n  });\n\n  let comment = Comment.create({\n    post: somePost\n  });\n\n  comment.edit(); // outputs 'starting to edit'\n  ```\n\n  Note that Mixins are created with `Mixin.create`, not\n  `Mixin.extend`.\n\n  Note that mixins extend a constructor's prototype so arrays and object literals\n  defined as properties will be shared amongst objects that implement the mixin.\n  If you want to define a property in a mixin that is not shared, you can define\n  it either as a computed property or have it be created on initialization of the object.\n\n  ```javascript\n  // filters array will be shared amongst any object implementing mixin\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  const FilterableMixin = Mixin.create({\n    filters: A()\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n  import { computed } from '@ember/object';\n\n  // filters will be a separate array for every object implementing the mixin\n  const FilterableMixin = Mixin.create({\n    filters: computed(function() {\n      return A();\n    })\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  // filters will be created as a separate array during the object's initialization\n  const Filterable = Mixin.create({\n    filters: null,\n\n    init() {\n      this._super(...arguments);\n      this.set(\"filters\", A());\n    }\n  });\n  ```\n\n  @class Mixin\n  @public\n*/\nexport default class Mixin {\n  /** @internal */\n  constructor(mixins, properties) {\n    MIXINS.add(this);\n    this.properties = extractAccessors(properties);\n    this.mixins = buildMixinsArray(mixins);\n    this.ownerConstructor = undefined;\n    this._without = undefined;\n    if (DEBUG) {\n      // Eagerly add INIT_FACTORY to avoid issues in DEBUG as a result of Object.seal(mixin)\n      this[INIT_FACTORY] = null;\n      /*\n        In debug builds, we seal mixins to help avoid performance pitfalls.\n               In IE11 there is a quirk that prevents sealed objects from being added\n        to a WeakMap. Unfortunately, the mixin system currently relies on\n        weak maps in `guidFor`, so we need to prime the guid cache weak map.\n      */\n      guidFor(this);\n      if (Mixin._disableDebugSeal !== true) {\n        Object.seal(this);\n      }\n    }\n  }\n  /**\n    @method create\n    @for @ember/object/mixin\n    @static\n    @param arguments*\n    @public\n  */\n  static create(...args) {\n    setUnprocessedMixins();\n    let M = this;\n    return new M(args, undefined);\n  }\n  // returns the mixins currently applied to the specified object\n  // TODO: Make `mixin`\n  /** @internal */\n  static mixins(obj) {\n    let meta = peekMeta(obj);\n    let ret = [];\n    if (meta === null) {\n      return ret;\n    }\n    meta.forEachMixins(currentMixin => {\n      // skip primitive mixins since these are always anonymous\n      if (!currentMixin.properties) {\n        ret.push(currentMixin);\n      }\n    });\n    return ret;\n  }\n  /**\n    @method reopen\n    @param arguments*\n    @private\n    @internal\n  */\n  reopen(...args) {\n    if (args.length === 0) {\n      return this;\n    }\n    if (this.properties) {\n      let currentMixin = new Mixin(undefined, this.properties);\n      this.properties = undefined;\n      this.mixins = [currentMixin];\n    } else if (!this.mixins) {\n      this.mixins = [];\n    }\n    this.mixins = this.mixins.concat(buildMixinsArray(args));\n    return this;\n  }\n  /**\n    @method apply\n    @param obj\n    @return applied object\n    @private\n    @internal\n  */\n  apply(obj, _hideKeys = false) {\n    // Ember.NativeArray is a normal Ember.Mixin that we mix into `Array.prototype` when prototype extensions are enabled\n    // mutating a native object prototype like this should _not_ result in enumerable properties being added (or we have significant\n    // issues with things like deep equality checks from test frameworks, or things like jQuery.extend(true, [], [])).\n    //\n    // _hideKeys disables enumerablity when applying the mixin. This is a hack, and we should stop mutating the array prototype by default 😫\n    return applyMixin(obj, [this], _hideKeys);\n  }\n  /** @internal */\n  applyPartial(obj) {\n    return applyMixin(obj, [this]);\n  }\n  /**\n    @method detect\n    @param obj\n    @return {Boolean}\n    @private\n    @internal\n  */\n  detect(obj) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n    if (MIXINS.has(obj)) {\n      return _detect(obj, this);\n    }\n    let meta = peekMeta(obj);\n    if (meta === null) {\n      return false;\n    }\n    return meta.hasMixin(this);\n  }\n  /** @internal */\n  without(...args) {\n    let ret = new Mixin([this]);\n    ret._without = args;\n    return ret;\n  }\n  /** @internal */\n  keys() {\n    let keys = _keys(this);\n    assert('[BUG] Missing keys for mixin!', keys);\n    return keys;\n  }\n  /** @internal */\n  toString() {\n    return '(unknown mixin)';\n  }\n}\nif (DEBUG) {\n  Object.defineProperty(Mixin, '_disableDebugSeal', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n}\nfunction buildMixinsArray(mixins) {\n  let length = mixins && mixins.length || 0;\n  let m = undefined;\n  if (length > 0) {\n    m = new Array(length);\n    for (let i = 0; i < length; i++) {\n      let x = mixins[i];\n      assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(x)}`, typeof x === 'object' && x !== null && Object.prototype.toString.call(x) !== '[object Array]');\n      if (MIXINS.has(x)) {\n        m[i] = x;\n      } else {\n        m[i] = new Mixin(undefined, x);\n      }\n    }\n  }\n  return m;\n}\nif (DEBUG) {\n  Object.seal(Mixin.prototype);\n}\nfunction _detect(curMixin, targetMixin, seen = new Set()) {\n  if (seen.has(curMixin)) {\n    return false;\n  }\n  seen.add(curMixin);\n  if (curMixin === targetMixin) {\n    return true;\n  }\n  let mixins = curMixin.mixins;\n  if (mixins) {\n    return mixins.some(mixin => _detect(mixin, targetMixin, seen));\n  }\n  return false;\n}\nfunction _keys(mixin, ret = new Set(), seen = new Set()) {\n  if (seen.has(mixin)) {\n    return;\n  }\n  seen.add(mixin);\n  if (mixin.properties) {\n    let props = Object.keys(mixin.properties);\n    for (let prop of props) {\n      ret.add(prop);\n    }\n  } else if (mixin.mixins) {\n    mixin.mixins.forEach(x => _keys(x, ret, seen));\n  }\n  return ret;\n}","/**\n@module @ember/object/observable\n*/\nimport { peekMeta } from '@ember/-internals/meta';\nimport { hasListeners, beginPropertyChanges, notifyPropertyChange, endPropertyChanges, addObserver, removeObserver } from '@ember/-internals/metal';\nimport { get, set, getProperties, setProperties } from '@ember/object';\nimport Mixin from '@ember/object/mixin';\nimport { assert } from '@ember/debug';\nconst Observable = Mixin.create({\n  get(keyName) {\n    return get(this, keyName);\n  },\n  getProperties(...args) {\n    return getProperties(this, ...args);\n  },\n  set(keyName, value) {\n    return set(this, keyName, value);\n  },\n  setProperties(hash) {\n    return setProperties(this, hash);\n  },\n  /**\n    Begins a grouping of property changes.\n       You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call this\n    method at the beginning of the changes to begin deferring change\n    notifications. When you are done making changes, call\n    `endPropertyChanges()` to deliver the deferred change notifications and end\n    deferring.\n       @method beginPropertyChanges\n    @return {Observable}\n    @private\n  */\n  beginPropertyChanges() {\n    beginPropertyChanges();\n    return this;\n  },\n  /**\n    Ends a grouping of property changes.\n       You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call\n    `beginPropertyChanges()` at the beginning of the changes to defer change\n    notifications. When you are done making changes, call this method to\n    deliver the deferred change notifications and end deferring.\n       @method endPropertyChanges\n    @return {Observable}\n    @private\n  */\n  endPropertyChanges() {\n    endPropertyChanges();\n    return this;\n  },\n  notifyPropertyChange(keyName) {\n    notifyPropertyChange(this, keyName);\n    return this;\n  },\n  addObserver(key, target, method, sync) {\n    addObserver(this, key, target, method, sync);\n    return this;\n  },\n  removeObserver(key, target, method, sync) {\n    removeObserver(this, key, target, method, sync);\n    return this;\n  },\n  /**\n    Returns `true` if the object currently has observers registered for a\n    particular key. You can use this method to potentially defer performing\n    an expensive action until someone begins observing a particular property\n    on the object.\n       @method hasObserverFor\n    @param {String} key Key to check\n    @return {Boolean}\n    @private\n  */\n  hasObserverFor(key) {\n    return hasListeners(this, `${key}:change`);\n  },\n  incrementProperty(keyName, increment = 1) {\n    assert('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(String(increment))) && isFinite(increment));\n    return set(this, keyName, (parseFloat(get(this, keyName)) || 0) + increment);\n  },\n  decrementProperty(keyName, decrement = 1) {\n    assert('Must pass a numeric value to decrementProperty', (typeof decrement === 'number' || !isNaN(parseFloat(decrement))) && isFinite(decrement));\n    return set(this, keyName, (get(this, keyName) || 0) - decrement);\n  },\n  toggleProperty(keyName) {\n    return set(this, keyName, !get(this, keyName));\n  },\n  cacheFor(keyName) {\n    let meta = peekMeta(this);\n    return meta !== null ? meta.valueFor(keyName) : undefined;\n  }\n});\nexport default Observable;","import { get, setProperties, computed } from '@ember/object';\nimport Mixin from '@ember/object/mixin';\n/**\n  @module @ember/object/promise-proxy-mixin\n*/\nfunction tap(proxy, promise) {\n  setProperties(proxy, {\n    isFulfilled: false,\n    isRejected: false\n  });\n  return promise.then(value => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        content: value,\n        isFulfilled: true\n      });\n    }\n    return value;\n  }, reason => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        reason,\n        isRejected: true\n      });\n    }\n    throw reason;\n  }, 'Ember: PromiseProxy');\n}\nconst PromiseProxyMixin = Mixin.create({\n  reason: null,\n  isPending: computed('isSettled', function () {\n    return !get(this, 'isSettled');\n  }).readOnly(),\n  isSettled: computed('isRejected', 'isFulfilled', function () {\n    return get(this, 'isRejected') || get(this, 'isFulfilled');\n  }).readOnly(),\n  isRejected: false,\n  isFulfilled: false,\n  promise: computed({\n    get() {\n      throw new Error(\"PromiseProxy's promise must be set\");\n    },\n    set(_key, promise) {\n      return tap(this, promise);\n    }\n  }),\n  then: promiseAlias('then'),\n  catch: promiseAlias('catch'),\n  finally: promiseAlias('finally')\n});\nfunction promiseAlias(name) {\n  return function (...args) {\n    let promise = get(this, 'promise');\n    // We need this cast because `Parameters` is deferred so that it is not\n    // possible for TS to see it will always produce the right type. However,\n    // since `AnyFn` has a rest type, it is allowed. See discussion on [this\n    // issue](https://github.com/microsoft/TypeScript/issues/47615).\n    return promise[name](...args);\n  };\n}\nexport default PromiseProxyMixin;","/**\n@module @ember/object/proxy\n*/\nimport { FrameworkObject } from '@ember/object/-internals';\nimport { _ProxyMixin } from '@ember/-internals/runtime';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nclass ObjectProxy extends FrameworkObject {}\nObjectProxy.PrototypeMixin.reopen(_ProxyMixin);\nexport default ObjectProxy;","/**\n  Ember’s dependency injection system is built on the idea of an \"owner\": an\n  object responsible for managing items which can be registered and looked up\n  with the system.\n\n  This module does not provide any concrete instances of owners. Instead, it\n  defines the core type, `Owner`, which specifies the public API contract for an\n  owner. The primary concrete implementations of `Owner` are `EngineInstance`,\n  from `@ember/engine/instance`, and its `ApplicationInstance` subclass, from\n  `@ember/application/instance`.\n\n  Along with `Owner` itself, this module provides a number of supporting types\n  related to Ember's DI system:\n\n  - `Factory`, Ember's primary interface for something which can create class\n    instances registered with the DI system.\n\n  - `FactoryManager`, an interface for inspecting a `Factory`'s class.\n\n  - `Resolver`, an interface defining the contract for the object responsible\n    for mapping string names to the corresponding classes. For example, when you\n    write `@service('session')`, a resolver is responsible to map that back to\n    the `Session` service class in your codebase. Normally, this is handled for\n    you automatically with `ember-resolver`, which is the main implementor of\n    this interface.\n\n  For more details on each, see their per-item docs.\n\n  @module @ember/owner\n  @public\n*/\n// We need to provide a narrower public interface to `getOwner` so that we only\n// expose the `Owner` type, *not* our richer `InternalOwner` type and its\n// various bits of private API.\nimport { getOwner as internalGetOwner } from '@ember/-internals/owner';\n// NOTE: this documentation appears here instead of at the definition site so\n// it can appear correctly in both API docs and for TS, while providing a richer\n// internal representation for Ember's own usage.\n/**\n  Framework objects in an Ember application (components, services, routes, etc.)\n  are created via a factory and dependency injection system. Each of these\n  objects is the responsibility of an \"owner\", which handled its\n  instantiation and manages its lifetime.\n\n  `getOwner` fetches the owner object responsible for an instance. This can\n  be used to lookup or resolve other class instances, or register new factories\n  into the owner.\n\n  For example, this component dynamically looks up a service based on the\n  `audioType` passed as an argument:\n\n  ```app/components/play-audio.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n  import { getOwner } from '@ember/application';\n\n  // Usage:\n  //\n  //   <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n  //\n  export default class extends Component {\n    get audioService() {\n      return getOwner(this)?.lookup(`service:${this.args.audioType}`);\n    }\n\n    @action\n    onPlay() {\n      this.audioService?.play(this.args.audioFile);\n    }\n  }\n  ```\n\n  @method getOwner\n  @static\n  @for @ember/owner\n  @param {Object} object An object with an owner.\n  @return {Object} An owner object.\n  @since 2.3.0\n  @public\n*/\n// SAFETY: the cast here is necessary, instead of using an assignment, because\n// TS (not incorrectly! Nothing expressly relates them) does not see that the\n// `InternalOwner` and `Owner` do actually have identical constraints on their\n// relations to the `DIRegistry`.\nconst getOwner = internalGetOwner;\nexport { getOwner };\nexport { setOwner } from '@ember/-internals/owner';","import EmberObject from '@ember/object';\nimport { bind } from '@ember/runloop';\nimport { getHash } from './lib/location-utils';\n/**\n@module @ember/routing/hash-location\n*/\n/**\n  `HashLocation` implements the location API using the browser's\n  hash. At present, it relies on a `hashchange` event existing in the\n  browser.\n\n  Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n  server side URL portion of the URL from the portion that is used by Ember.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'hash'\n  });\n  ```\n\n  This will result in a posts.new url of `/#/posts/new`.\n\n  @class HashLocation\n  @extends EmberObject\n  @protected\n*/\nexport default class HashLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.lastSetURL = null;\n  }\n  init() {\n    this.location = this._location ?? window.location;\n    this._hashchangeHandler = undefined;\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @since 1.5.1\n    @method getHash\n  */\n  getHash() {\n    return getHash(this.location);\n  }\n  /**\n    Returns the normalized URL, constructed from `location.hash`.\n       e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n       By convention, hashed paths must begin with a forward slash, otherwise they\n    are not treated as a path so we can distinguish intent.\n       @private\n    @method getURL\n  */\n  getURL() {\n    let originalPath = this.getHash().substring(1);\n    let outPath = originalPath;\n    if (outPath[0] !== '/') {\n      outPath = '/';\n      // Only add the # if the path isn't empty.\n      // We do NOT want `/#` since the ampersand\n      // is only included (conventionally) when\n      // the location.hash has a value\n      if (originalPath) {\n        outPath += `#${originalPath}`;\n      }\n    }\n    return outPath;\n  }\n  /**\n    Set the `location.hash` and remembers what was set. This prevents\n    `onUpdateURL` callbacks from triggering when the hash was set by\n    `HashLocation`.\n       @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    this.location.hash = path;\n    this.lastSetURL = path;\n  }\n  /**\n    Uses location.replace to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n  replaceURL(path) {\n    this.location.replace(`#${path}`);\n    this.lastSetURL = path;\n  }\n  /**\n    Register a callback to be invoked when the hash changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this._removeEventListener();\n    this._hashchangeHandler = bind(this, function (_event) {\n      let path = this.getURL();\n      if (this.lastSetURL === path) {\n        return;\n      }\n      this.lastSetURL = null;\n      callback(path);\n    });\n    window.addEventListener('hashchange', this._hashchangeHandler);\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param url {String}\n  */\n  formatURL(url) {\n    return `#${url}`;\n  }\n  /**\n    Cleans up the HashLocation event listener.\n       @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._removeEventListener();\n  }\n  _removeEventListener() {\n    if (this._hashchangeHandler) {\n      window.removeEventListener('hashchange', this._hashchangeHandler);\n    }\n  }\n}","import EmberObject from '@ember/object';\nimport { assert } from '@ember/debug';\nimport { getHash } from './lib/location-utils';\n/**\n@module @ember/routing/history-location\n*/\nlet popstateFired = false;\nfunction _uuid() {\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n    let r, v;\n    r = Math.random() * 16 | 0;\n    v = c === 'x' ? r : r & 3 | 8;\n    return v.toString(16);\n  });\n}\n/**\n  HistoryLocation implements the location API using the browser's\n  history.pushState API.\n\n  Using `HistoryLocation` results in URLs that are indistinguishable from a\n  standard URL. This relies upon the browser's `history` API.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'history'\n  });\n  ```\n\n  This will result in a posts.new url of `/posts/new`.\n\n  Keep in mind that your server must serve the Ember app at all the routes you\n  define.\n\n  Using `HistoryLocation` will also result in location states being recorded by\n  the browser `history` API with the following schema:\n\n  ```\n  window.history.state -> { path: '/', uuid: '3552e730-b4a6-46bd-b8bf-d8c3c1a97e0a' }\n  ```\n\n  This allows each in-app location state to be tracked uniquely across history\n  state changes via the `uuid` field.\n\n  @class HistoryLocation\n  @extends EmberObject\n  @protected\n*/\nexport default class HistoryLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    /**\n      Will be pre-pended to path upon state change\n             @property rootURL\n      @default '/'\n      @private\n    */\n    this.rootURL = '/';\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @method getHash\n  */\n  getHash() {\n    return getHash(this.location);\n  }\n  init() {\n    this._super(...arguments);\n    let base = document.querySelector('base');\n    let baseURL = '';\n    if (base !== null && base.hasAttribute('href')) {\n      baseURL = base.getAttribute('href') ?? '';\n    }\n    this.baseURL = baseURL;\n    this.location = this.location ?? window.location;\n    this._popstateHandler = undefined;\n  }\n  /**\n    Used to set state on first call to setURL\n       @private\n    @method initState\n  */\n  initState() {\n    let history = this.history ?? window.history;\n    this.history = history;\n    let {\n      state\n    } = history;\n    let path = this.formatURL(this.getURL());\n    if (state && state.path === path) {\n      // preserve existing state\n      // used for webkit workaround, since there will be no initial popstate event\n      this._previousURL = this.getURL();\n    } else {\n      this.replaceState(path);\n    }\n  }\n  /**\n    Returns the current `location.pathname` without `rootURL` or `baseURL`\n       @private\n    @method getURL\n    @return url {String}\n  */\n  getURL() {\n    let {\n      location,\n      rootURL,\n      baseURL\n    } = this;\n    let path = location.pathname;\n    // remove trailing slashes if they exists\n    rootURL = rootURL.replace(/\\/$/, '');\n    baseURL = baseURL.replace(/\\/$/, '');\n    // remove baseURL and rootURL from start of path\n    let url = path.replace(new RegExp(`^${baseURL}(?=/|$)`), '').replace(new RegExp(`^${rootURL}(?=/|$)`), '').replace(/\\/\\//g, '/'); // remove extra slashes\n    let search = location.search || '';\n    url += search + this.getHash();\n    return url;\n  }\n  /**\n    Uses `history.pushState` to update the url without a page reload.\n       @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    assert('HistoryLocation.history is unexpectedly missing', this.history);\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n    if (!state || state.path !== path) {\n      this.pushState(path);\n    }\n  }\n  /**\n    Uses `history.replaceState` to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n  replaceURL(path) {\n    assert('HistoryLocation.history is unexpectedly missing', this.history);\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n    if (!state || state.path !== path) {\n      this.replaceState(path);\n    }\n  }\n  /**\n   Pushes a new state.\n      @private\n   @method pushState\n   @param path {String}\n  */\n  pushState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    assert('HistoryLocation.history is unexpectedly missing', this.history);\n    this.history.pushState(state, '', path);\n    // used for webkit workaround\n    this._previousURL = this.getURL();\n  }\n  /**\n   Replaces the current state.\n      @private\n   @method replaceState\n   @param path {String}\n  */\n  replaceState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    assert('HistoryLocation.history is unexpectedly missing', this.history);\n    this.history.replaceState(state, '', path);\n    // used for webkit workaround\n    this._previousURL = this.getURL();\n  }\n  /**\n    Register a callback to be invoked whenever the browser\n    history changes, including using forward and back buttons.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this._removeEventListener();\n    this._popstateHandler = () => {\n      // Ignore initial page load popstate event in Chrome\n      if (!popstateFired) {\n        popstateFired = true;\n        if (this.getURL() === this._previousURL) {\n          return;\n        }\n      }\n      callback(this.getURL());\n    };\n    window.addEventListener('popstate', this._popstateHandler);\n  }\n  /**\n    Used when using `{{action}}` helper.  The url is always appended to the rootURL.\n       @private\n    @method formatURL\n    @param url {String}\n    @return formatted url {String}\n  */\n  formatURL(url) {\n    let {\n      rootURL,\n      baseURL\n    } = this;\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n      baseURL = baseURL.replace(/\\/$/, '');\n    } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n      // if baseURL and rootURL both start with a slash\n      // ... remove trailing slash from baseURL if it exists\n      baseURL = baseURL.replace(/\\/$/, '');\n    }\n    return baseURL + rootURL + url;\n  }\n  /**\n    Cleans up the HistoryLocation event listener.\n       @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._removeEventListener();\n  }\n  _removeEventListener() {\n    if (this._popstateHandler) {\n      window.removeEventListener('popstate', this._popstateHandler);\n    }\n  }\n}","/**\n  A two-tiered cache with support for fallback values when doing lookups.\n  Uses \"buckets\" and then \"keys\" to cache values.\n\n  @private\n  @class BucketCache\n*/\nexport default class BucketCache {\n  constructor() {\n    this.cache = new Map();\n  }\n  has(bucketKey) {\n    return this.cache.has(bucketKey);\n  }\n  stash(bucketKey, key, value) {\n    let bucket = this.cache.get(bucketKey);\n    if (bucket === undefined) {\n      bucket = new Map();\n      this.cache.set(bucketKey, bucket);\n    }\n    bucket.set(key, value);\n  }\n  lookup(bucketKey, prop, defaultValue) {\n    if (!this.has(bucketKey)) {\n      return defaultValue;\n    }\n    let bucket = this.cache.get(bucketKey);\n    if (bucket.has(prop)) {\n      return bucket.get(prop);\n    } else {\n      return defaultValue;\n    }\n  }\n}","/**\n  @module @ember/routing\n*/\n/**\n  Finds a controller instance.\n\n  @for Ember\n  @method controllerFor\n  @private\n*/\nexport default function controllerFor(container, controllerName, lookupOptions) {\n  return container.lookup(`controller:${controllerName}`, lookupOptions);\n}","import { assert } from '@ember/debug';\nlet uuid = 0;\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\nfunction isOptions(value) {\n  return value !== null && typeof value === 'object';\n}\nexport default class DSLImpl {\n  constructor(name = null, options) {\n    this.explicitIndex = false;\n    this.parent = name;\n    this.enableLoadingSubstates = Boolean(options && options.enableLoadingSubstates);\n    this.matches = [];\n    this.options = options;\n  }\n  route(name, _options, _callback) {\n    let options;\n    let callback = null;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n    if (isCallback(_options)) {\n      assert('Unexpected arguments', arguments.length === 2);\n      options = {};\n      callback = _options;\n    } else if (isCallback(_callback)) {\n      assert('Unexpected arguments', arguments.length === 3);\n      assert('Unexpected arguments', isOptions(_options));\n      options = _options;\n      callback = _callback;\n    } else {\n      options = _options || {};\n    }\n    assert(`'${name}' cannot be used as a route name.`, (() => {\n      if (options.overrideNameAssertion === true) {\n        return true;\n      }\n      return ['basic', 'application'].indexOf(name) === -1;\n    })());\n    assert(`'${name}' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.`, name.indexOf(':') === -1);\n    if (this.enableLoadingSubstates) {\n      createRoute(this, `${name}_loading`, {\n        resetNamespace: options.resetNamespace\n      });\n      createRoute(this, `${name}_error`, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n    }\n    if (callback) {\n      let fullName = getFullName(this, name, options.resetNamespace);\n      let dsl = new DSLImpl(fullName, this.options);\n      createRoute(dsl, 'loading');\n      createRoute(dsl, 'error', {\n        path: dummyErrorRoute\n      });\n      callback.call(dsl);\n      createRoute(this, name, options, dsl.generate());\n    } else {\n      createRoute(this, name, options);\n    }\n  }\n  push(url, name, callback, serialize) {\n    let parts = name.split('.');\n    if (this.options.engineInfo) {\n      let localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n      let routeInfo = Object.assign({\n        localFullName\n      }, this.options.engineInfo);\n      if (serialize) {\n        routeInfo.serializeMethod = serialize;\n      }\n      this.options.addRouteForEngine(name, routeInfo);\n    } else if (serialize) {\n      throw new Error(`Defining a route serializer on route '${name}' outside an Engine is not allowed.`);\n    }\n    if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n      this.explicitIndex = true;\n    }\n    this.matches.push(url, name, callback);\n  }\n  generate() {\n    let dslMatches = this.matches;\n    if (!this.explicitIndex) {\n      this.route('index', {\n        path: '/'\n      });\n    }\n    return match => {\n      for (let i = 0; i < dslMatches.length; i += 3) {\n        match(dslMatches[i]).to(dslMatches[i + 1], dslMatches[i + 2]);\n      }\n    };\n  }\n  mount(_name, options = {}) {\n    let engineRouteMap = this.options.resolveRouteMap(_name);\n    let name = _name;\n    if (options.as) {\n      name = options.as;\n    }\n    let fullName = getFullName(this, name, options.resetNamespace);\n    let engineInfo = {\n      name: _name,\n      instanceId: uuid++,\n      mountPoint: fullName,\n      fullName\n    };\n    let path = options.path;\n    if (typeof path !== 'string') {\n      path = `/${name}`;\n    }\n    let callback;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n    if (engineRouteMap) {\n      let shouldResetEngineInfo = false;\n      let oldEngineInfo = this.options.engineInfo;\n      if (oldEngineInfo) {\n        shouldResetEngineInfo = true;\n        this.options.engineInfo = engineInfo;\n      }\n      let optionsForChild = Object.assign({\n        engineInfo\n      }, this.options);\n      let childDSL = new DSLImpl(fullName, optionsForChild);\n      createRoute(childDSL, 'loading');\n      createRoute(childDSL, 'error', {\n        path: dummyErrorRoute\n      });\n      engineRouteMap.class.call(childDSL);\n      callback = childDSL.generate();\n      if (shouldResetEngineInfo) {\n        this.options.engineInfo = oldEngineInfo;\n      }\n    }\n    let localFullName = 'application';\n    let routeInfo = Object.assign({\n      localFullName\n    }, engineInfo);\n    if (this.enableLoadingSubstates) {\n      // These values are important to register the loading routes under their\n      // proper names for the Router and within the Engine's registry.\n      let substateName = `${name}_loading`;\n      let localFullName = `application_loading`;\n      let routeInfo = Object.assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n      substateName = `${name}_error`;\n      localFullName = `application_error`;\n      routeInfo = Object.assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n    }\n    this.options.addRouteForEngine(fullName, routeInfo);\n    this.push(path, fullName, callback);\n  }\n}\nfunction canNest(dsl) {\n  return dsl.parent !== 'application';\n}\nfunction getFullName(dsl, name, resetNamespace) {\n  if (canNest(dsl) && resetNamespace !== true) {\n    return `${dsl.parent}.${name}`;\n  } else {\n    return name;\n  }\n}\nfunction createRoute(dsl, name, options = {}, callback) {\n  let fullName = getFullName(dsl, name, options.resetNamespace);\n  if (typeof options.path !== 'string') {\n    options.path = `/${name}`;\n  }\n  dsl.push(options.path, fullName, callback, options.serialize);\n}","import { get } from '@ember/-internals/metal';\nimport Controller from '@ember/controller';\nimport { assert, info } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n/**\n @module @ember/routing\n*/\n/**\n  Generates a controller factory\n\n  @for Ember\n  @method generateControllerFactory\n  @private\n*/\nexport function generateControllerFactory(owner, controllerName) {\n  let factoryManager = owner.factoryFor('controller:basic');\n  assert('[BUG] unexpectedly missing a factoryManager for `controller:basic`', factoryManager !== undefined);\n  // SAFETY: This is *not* safe, and the cast should be removed in favor of the\n  // `assert()` below after altering *tests*. It is left in this state for the\n  // moment in the interest of keeping type-only changes separate from changes\n  // to the runtime behavior of the system, even for tests.\n  let Factory = factoryManager.class;\n  // assert(\n  //   '[BUG] factory for `controller:main` is unexpectedly not a Controller',\n  //   ((factory): factory is typeof Controller => factory === Controller)(Factory)\n  // );\n  Factory = Factory.extend({\n    toString() {\n      return `(generated ${controllerName} controller)`;\n    }\n  });\n  let fullName = `controller:${controllerName}`;\n  owner.register(fullName, Factory);\n  return owner.factoryFor(fullName);\n}\n/**\n  Generates and instantiates a controller extending from `controller:basic`\n  if present, or `Controller` if not.\n\n  @for Ember\n  @method generateController\n  @private\n  @since 1.3.0\n*/\nexport default function generateController(owner, controllerName) {\n  generateControllerFactory(owner, controllerName);\n  let fullName = `controller:${controllerName}`;\n  let instance = owner.lookup(fullName);\n  assert('Expected an instance of controller', instance instanceof Controller);\n  if (DEBUG) {\n    if (get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {\n      info(`generated -> ${fullName}`, {\n        fullName\n      });\n    }\n  }\n  return instance;\n}","/**\n  @private\n\n  Returns the current `location.pathname`, normalized for IE inconsistencies.\n*/\nexport function getPath(location) {\n  let pathname = location.pathname;\n  // Various versions of IE/Opera don't always return a leading slash\n  if (pathname[0] !== '/') {\n    pathname = `/${pathname}`;\n  }\n  return pathname;\n}\n/**\n  @private\n\n  Returns the current `location.search`.\n*/\nexport function getQuery(location) {\n  return location.search;\n}\n/**\n  @private\n\n  Returns the hash or empty string\n*/\nexport function getHash(location) {\n  if (location.hash !== undefined) {\n    return location.hash.substring(0);\n  }\n  return '';\n}\nexport function getFullPath(location) {\n  return getPath(location) + getQuery(location) + getHash(location);\n}\nexport function getOrigin(location) {\n  let origin = location.origin;\n  // Older browsers, especially IE, don't have origin\n  if (!origin) {\n    origin = `${location.protocol}//${location.hostname}`;\n    if (location.port) {\n      origin += `:${location.port}`;\n    }\n  }\n  return origin;\n}\n/**\n  Replaces the current location, making sure we explicitly include the origin\n  to prevent redirecting to a different origin.\n\n  @private\n*/\nexport function replacePath(location, path) {\n  location.replace(getOrigin(location) + path);\n}","export default class QueryParams {\n  constructor(values = null) {\n    this.isQueryParams = true;\n    this.values = values;\n  }\n}","import { shallowEqual } from './utils';\nexport default class RouterState {\n  constructor(emberRouter, router, routerJsState) {\n    this.emberRouter = emberRouter;\n    this.router = router;\n    this.routerJsState = routerJsState;\n  }\n  isActiveIntent(routeName, models, queryParams) {\n    let state = this.routerJsState;\n    if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n      return false;\n    }\n    if (queryParams !== undefined && Object.keys(queryParams).length > 0) {\n      let visibleQueryParams = Object.assign({}, queryParams);\n      this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n      return shallowEqual(visibleQueryParams, state.queryParams);\n    }\n    return true;\n  }\n}","/**\n@module ember\n*/\nimport { getOwner } from '@ember/-internals/owner';\nimport { assert } from '@ember/debug';\nimport { readOnly } from '@ember/object/computed';\nimport Service from '@ember/service';\nimport EmberRouter from '@ember/routing/router';\nimport { ROUTER } from '@ember/routing/router-service';\n/**\n  The Routing service is used by LinkTo, and provides facilities for\n  the component/view layer to interact with the router.\n\n  This is a private service for internal usage only. For public usage,\n  refer to the `Router` service.\n\n  @private\n  @class RoutingService\n*/\nexport default class RoutingService extends Service {\n  get router() {\n    let router = this[ROUTER];\n    if (router !== undefined) {\n      return router;\n    }\n    let owner = getOwner(this);\n    assert('RoutingService is unexpectedly missing an owner', owner);\n    let _router = owner.lookup('router:main');\n    assert('ROUTING SERVICE BUG: Expected router to be an instance of EmberRouter', _router instanceof EmberRouter);\n    _router.setupRouter();\n    return this[ROUTER] = _router;\n  }\n  hasRoute(routeName) {\n    return this.router.hasRoute(routeName);\n  }\n  transitionTo(routeName, models, queryParams, shouldReplace) {\n    let transition = this.router._doTransition(routeName, models, queryParams);\n    if (shouldReplace) {\n      transition.method('replace');\n    }\n    return transition;\n  }\n  normalizeQueryParams(routeName, models, queryParams) {\n    this.router._prepareQueryParams(routeName, models, queryParams);\n  }\n  _generateURL(routeName, models, queryParams) {\n    let visibleQueryParams = {};\n    if (queryParams) {\n      Object.assign(visibleQueryParams, queryParams);\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n    }\n    return this.router.generate(routeName, ...models, {\n      queryParams: visibleQueryParams\n    });\n  }\n  generateURL(routeName, models, queryParams) {\n    if (this.router._initialTransitionStarted) {\n      return this._generateURL(routeName, models, queryParams);\n    } else {\n      // Swallow error when transition has not started.\n      // When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of\n      try {\n        return this._generateURL(routeName, models, queryParams);\n      } catch (_e) {\n        return;\n      }\n    }\n  }\n  isActiveForRoute(contexts, queryParams, routeName, routerState) {\n    let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);\n    let leafName = handlers[handlers.length - 1].handler;\n    let maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers);\n    // NOTE: any ugliness in the calculation of activeness is largely\n    // due to the fact that we support automatic normalizing of\n    // `resource` -> `resource.index`, even though there might be\n    // dynamic segments / query params defined on `resource.index`\n    // which complicates (and makes somewhat ambiguous) the calculation\n    // of activeness for links that link to `resource` instead of\n    // directly to `resource.index`.\n    // if we don't have enough contexts revert back to full route name\n    // this is because the leaf route will use one of the contexts\n    if (contexts.length > maximumContexts) {\n      routeName = leafName;\n    }\n    return routerState.isActiveIntent(routeName, contexts, queryParams);\n  }\n}\nRoutingService.reopen({\n  targetState: readOnly('router.targetState'),\n  currentState: readOnly('router.currentState'),\n  currentRouteName: readOnly('router.currentRouteName'),\n  currentPath: readOnly('router.currentPath')\n});\nfunction numberOfContextsAcceptedByHandler(handlerName, handlerInfos) {\n  let req = 0;\n  for (let i = 0; i < handlerInfos.length; i++) {\n    req += handlerInfos[i].names.length;\n    if (handlerInfos[i].handler === handlerName) {\n      break;\n    }\n  }\n  return req;\n}","import { get } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { assert } from '@ember/debug';\nimport EngineInstance from '@ember/engine/instance';\nimport { STATE_SYMBOL } from 'router_js';\nconst ALL_PERIODS_REGEX = /\\./g;\nexport function extractRouteArgs(args) {\n  // SAFETY: This should just be the same thing\n  args = args.slice();\n  let possibleOptions = args[args.length - 1];\n  let queryParams;\n  if (isRouteOptions(possibleOptions)) {\n    args.pop(); // Remove options\n    queryParams = possibleOptions.queryParams;\n  } else {\n    queryParams = {};\n  }\n  let routeName;\n  if (typeof args[0] === 'string') {\n    routeName = args.shift();\n    // We just checked this!\n    assert('routeName is a string', typeof routeName === 'string');\n  }\n  // SAFTEY: We removed the name and options if they existed, only models left.\n  let models = args;\n  return {\n    routeName,\n    models,\n    queryParams\n  };\n}\nexport function getActiveTargetName(router) {\n  let routeInfos = router.activeTransition ? router.activeTransition[STATE_SYMBOL].routeInfos : router.state.routeInfos;\n  let lastRouteInfo = routeInfos[routeInfos.length - 1];\n  assert('has last route info', lastRouteInfo);\n  return lastRouteInfo.name;\n}\nexport function stashParamNames(router, routeInfos) {\n  if (routeInfos['_namesStashed']) {\n    return;\n  }\n  // This helper exists because router.js/route-recognizer.js awkwardly\n  // keeps separate a routeInfo's list of parameter names depending\n  // on whether a URL transition or named transition is happening.\n  // Hopefully we can remove this in the future.\n  let routeInfo = routeInfos[routeInfos.length - 1];\n  assert('has route info', routeInfo);\n  let targetRouteName = routeInfo.name;\n  let recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n  let dynamicParent;\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i];\n    assert('has route info', routeInfo);\n    let names = recogHandlers[i].names;\n    if (names.length) {\n      dynamicParent = routeInfo;\n    }\n    routeInfo['_names'] = names;\n    let route = routeInfo.route;\n    route._stashNames(routeInfo, dynamicParent);\n  }\n  routeInfos['_namesStashed'] = true;\n}\nfunction _calculateCacheValuePrefix(prefix, part) {\n  // calculates the dot separated sections from prefix that are also\n  // at the start of part - which gives us the route name\n  // given : prefix = site.article.comments, part = site.article.id\n  //      - returns: site.article (use get(values[site.article], 'id') to get the dynamic part - used below)\n  // given : prefix = site.article, part = site.article.id\n  //      - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n  let prefixParts = prefix.split('.');\n  let currPrefix = '';\n  for (let i = 0; i < prefixParts.length; i++) {\n    let currPart = prefixParts.slice(0, i + 1).join('.');\n    if (part.indexOf(currPart) !== 0) {\n      break;\n    }\n    currPrefix = currPart;\n  }\n  return currPrefix;\n}\n/*\n  Stolen from Controller\n*/\nexport function calculateCacheKey(prefix, parts = [], values) {\n  let suffixes = '';\n  for (let part of parts) {\n    let cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n    let value;\n    if (values) {\n      if (cacheValuePrefix && cacheValuePrefix in values) {\n        let partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substring(cacheValuePrefix.length + 1) : part;\n        value = get(values[cacheValuePrefix], partRemovedPrefix);\n      } else {\n        value = get(values, part);\n      }\n    }\n    suffixes += `::${part}:${value}`;\n  }\n  return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n}\n/*\n  Controller-defined query parameters can come in three shapes:\n\n  Array\n    queryParams: ['foo', 'bar']\n  Array of simple objects where value is an alias\n    queryParams: [\n      {\n        'foo': 'rename_foo_to_this'\n      },\n      {\n        'bar': 'call_bar_this_instead'\n      }\n    ]\n  Array of fully defined objects\n    queryParams: [\n      {\n        'foo': {\n          as: 'rename_foo_to_this'\n        },\n      }\n      {\n        'bar': {\n          as: 'call_bar_this_instead',\n          scope: 'controller'\n        }\n      }\n    ]\n\n  This helper normalizes all three possible styles into the\n  'Array of fully defined objects' style.\n*/\nexport function normalizeControllerQueryParams(queryParams) {\n  let qpMap = {};\n  for (let queryParam of queryParams) {\n    accumulateQueryParamDescriptors(queryParam, qpMap);\n  }\n  return qpMap;\n}\nfunction accumulateQueryParamDescriptors(_desc, accum) {\n  let desc = typeof _desc === 'string' ? {\n    [_desc]: {\n      as: null\n    }\n  } : _desc;\n  for (let key in desc) {\n    if (!Object.prototype.hasOwnProperty.call(desc, key)) {\n      return;\n    }\n    let _singleDesc = desc[key];\n    let singleDesc = typeof _singleDesc === 'string' ? {\n      as: _singleDesc\n    } : _singleDesc;\n    let partialVal = accum[key] || {\n      as: null,\n      scope: 'model'\n    };\n    let val = {\n      ...partialVal,\n      ...singleDesc\n    };\n    accum[key] = val;\n  }\n}\n/*\n  Check if a routeName resembles a url instead\n\n  @private\n*/\nexport function resemblesURL(str) {\n  return typeof str === 'string' && (str === '' || str[0] === '/');\n}\n/*\n  Returns an arguments array where the route name arg is prefixed based on the mount point\n\n  @private\n*/\nexport function prefixRouteNameArg(route, args) {\n  let routeName;\n  let owner = getOwner(route);\n  assert('Expected route to have EngineInstance as owner', owner instanceof EngineInstance);\n  let prefix = owner.mountPoint;\n  // only alter the routeName if it's actually referencing a route.\n  if (owner.routable && typeof args[0] === 'string') {\n    routeName = args[0];\n    if (resemblesURL(routeName)) {\n      throw new Error('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n    } else {\n      routeName = `${prefix}.${routeName}`;\n      args[0] = routeName;\n    }\n  }\n  return args;\n}\nexport function shallowEqual(a, b) {\n  let aCount = 0;\n  let bCount = 0;\n  for (let kA in a) {\n    if (Object.prototype.hasOwnProperty.call(a, kA)) {\n      if (a[kA] !== b[kA]) {\n        return false;\n      }\n      aCount++;\n    }\n  }\n  for (let kB in b) {\n    if (Object.prototype.hasOwnProperty.call(b, kB)) {\n      bCount++;\n    }\n  }\n  return aCount === bCount;\n}\nfunction isRouteOptions(value) {\n  if (value && typeof value === 'object') {\n    let qps = value.queryParams;\n    if (qps && typeof qps === 'object') {\n      return Object.keys(qps).every(k => typeof k === 'string');\n    }\n  }\n  return false;\n}","import EmberObject from '@ember/object';\nimport { assert } from '@ember/debug';\n/**\n@module @ember/routing/none-location\n*/\n/**\n  NoneLocation does not interact with the browser. It is useful for\n  testing, or when you need to manage state with your Router, but temporarily\n  don't want it to muck with the URL (for example when you embed your\n  application in a larger page).\n\n  Using `NoneLocation` causes Ember to not store the applications URL state\n  in the actual URL. This is generally used for testing purposes, and is one\n  of the changes made when calling `App.setupForTesting()`.\n\n  @class NoneLocation\n  @extends EmberObject\n  @protected\n*/\nexport default class NoneLocation extends EmberObject {\n  initState() {\n    this._super(...arguments);\n    let {\n      rootURL\n    } = this;\n    // This assert doesn't have anything to do with state initialization,\n    // but we're hijacking this method since it's called after the route has\n    // set the rootURL property on its Location instance.\n    assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n  }\n  /**\n    Returns the current path without `rootURL`.\n       @private\n    @method getURL\n    @return {String} path\n  */\n  getURL() {\n    let {\n      path,\n      rootURL\n    } = this;\n    // remove trailing slashes if they exists\n    rootURL = rootURL.replace(/\\/$/, '');\n    // remove rootURL from url\n    return path.replace(new RegExp(`^${rootURL}(?=/|$)`), '');\n  }\n  /**\n    Set the path and remembers what was set. Using this method\n    to change the path will not invoke the `updateURL` callback.\n       @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    this.path = path;\n  }\n  /**\n    Register a callback to be invoked when the path changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this.updateCallback = callback;\n  }\n  /**\n    Sets the path and calls the `updateURL` callback.\n       @private\n    @method handleURL\n    @param url {String}\n  */\n  handleURL(url) {\n    this.path = url;\n    if (this.updateCallback) {\n      this.updateCallback(url);\n    }\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param {String} url\n    @return {String} url\n  */\n  formatURL(url) {\n    let {\n      rootURL\n    } = this;\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n    }\n    return rootURL + url;\n  }\n}\nNoneLocation.reopen({\n  path: '',\n  rootURL: '/'\n});","var __decorate = this && this.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar _a;\nimport { privatize as P } from '@ember/-internals/container';\nimport { addObserver, defineProperty, descriptorForProperty, flushAsyncObservers } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { ENV } from '@ember/-internals/environment';\nimport { BucketCache } from '@ember/routing/-internals';\nimport EmberObject, { computed, get, set, getProperties, setProperties } from '@ember/object';\nimport Evented from '@ember/object/evented';\nimport { A as emberA } from '@ember/array';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport { typeOf } from '@ember/utils';\nimport { isProxy, lookupDescriptor } from '@ember/-internals/utils';\nimport Controller from '@ember/controller';\nimport { assert, deprecate, info, isTesting } from '@ember/debug';\nimport EngineInstance from '@ember/engine/instance';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { once } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nimport { PARAMS_SYMBOL, STATE_SYMBOL } from 'router_js';\nimport EmberRouter from '@ember/routing/router';\nimport { generateController } from '@ember/routing/-internals';\nimport { calculateCacheKey, normalizeControllerQueryParams, prefixRouteNameArg, stashParamNames } from './lib/utils';\nfunction isStoreLike(store) {\n  return typeof store === 'object' && store !== null && typeof store.find === 'function';\n}\nconst RENDER = Symbol('render');\nconst RENDER_STATE = Symbol('render-state');\nclass Route extends EmberObject.extend(ActionHandler, Evented) {\n  constructor(owner) {\n    super(owner);\n    // These properties will end up appearing in the public interface because we\n    // `implements IRoute` from `router.js`, which has them as part of *its*\n    // public contract. We mark them as `@internal` so they at least signal to\n    // people subclassing `Route` that they should not use them.\n    /** @internal */\n    this.context = {};\n    this[_a] = undefined;\n    if (owner) {\n      let router = owner.lookup('router:main');\n      let bucketCache = owner.lookup(P`-bucket-cache:main`);\n      assert('ROUTER BUG: Expected route injections to be defined on the route. This is an internal bug, please open an issue on Github if you see this message!', router instanceof EmberRouter && bucketCache instanceof BucketCache);\n      this._router = router;\n      this._bucketCache = bucketCache;\n      this._topLevelViewTemplate = owner.lookup('template:-outlet');\n      this._environment = owner.lookup('-environment:main');\n    }\n  }\n  /**\n    A hook you can implement to convert the route's model into parameters\n    for the URL.\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       ```\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      model({ post_id }) {\n        // the server returns `{ id: 12 }`\n        return fetch(`/posts/${post_id}`;\n      }\n         serialize(model) {\n        // this will make the URL `/posts/12`\n        return { post_id: model.id };\n      }\n    }\n    ```\n       The default `serialize` method will insert the model's `id` into the\n    route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\n    If the route has multiple dynamic segments or does not contain '_id', `serialize`\n    will return `getProperties(model, params)`\n       This method is called when `transitionTo` is called with a context\n    in order to populate the URL.\n       @method serialize\n    @param {Object} model the routes model\n    @param {Array} params an Array of parameter names for the current\n      route (in the example, `['post_id']`.\n    @return {Object} the serialized parameters\n    @since 1.0.0\n    @public\n  */\n  serialize(model, params) {\n    if (params.length < 1 || !model) {\n      return;\n    }\n    let object = {};\n    if (params.length === 1) {\n      let [name] = params;\n      assert('has name', name);\n      if (typeof model === 'object' && name in model) {\n        object[name] = get(model, name);\n      } else if (/_id$/.test(name)) {\n        object[name] = get(model, 'id');\n      } else if (isProxy(model)) {\n        object[name] = get(model, name);\n      }\n    } else {\n      object = getProperties(model, params);\n    }\n    return object;\n  }\n  /**\n    Sets the name for this route, including a fully resolved name for routes\n    inside engines.\n       @private\n    @method _setRouteName\n    @param {String} name\n  */\n  _setRouteName(name) {\n    this.routeName = name;\n    let owner = getOwner(this);\n    assert('Expected route to have EngineInstance as owner', owner instanceof EngineInstance);\n    this.fullRouteName = getEngineRouteName(owner, name);\n  }\n  /**\n    @private\n       @method _stashNames\n  */\n  _stashNames(routeInfo, dynamicParent) {\n    if (this._names) {\n      return;\n    }\n    let names = this._names = routeInfo['_names'];\n    if (!names.length) {\n      routeInfo = dynamicParent;\n      names = routeInfo && routeInfo['_names'] || [];\n    }\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let qps = get(this, '_qp').qps;\n    let namePaths = new Array(names.length);\n    for (let a = 0; a < names.length; ++a) {\n      namePaths[a] = `${routeInfo.name}.${names[a]}`;\n    }\n    for (let qp of qps) {\n      if (qp.scope === 'model') {\n        qp.parts = namePaths;\n      }\n    }\n  }\n  /**\n    @private\n       @property _activeQPChanged\n  */\n  _activeQPChanged(qp, value) {\n    this._router._activeQPChanged(qp.scopedPropertyName, value);\n  }\n  /**\n    @private\n    @method _updatingQPChanged\n  */\n  _updatingQPChanged(qp) {\n    this._router._updatingQPChanged(qp.urlKey);\n  }\n  /**\n    Returns a hash containing the parameters of an ancestor route.\n       You may notice that `this.paramsFor` sometimes works when referring to a\n    child route, but this behavior should not be relied upon as only ancestor\n    routes are certain to be loaded in time.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('member', { path: ':name' }, function() {\n        this.route('interest', { path: ':interest' });\n      });\n    });\n    ```\n       ```app/routes/member.js\n    import Route from '@ember/routing/route';\n       export default class MemberRoute extends Route {\n      queryParams = {\n        memberQp: { refreshModel: true }\n      }\n    }\n    ```\n       ```app/routes/member/interest.js\n    import Route from '@ember/routing/route';\n       export default class MemberInterestRoute extends Route {\n      queryParams = {\n        interestQp: { refreshModel: true }\n      }\n         model() {\n        return this.paramsFor('member');\n      }\n    }\n    ```\n       If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n    the `member.interest` route is a hash with:\n       * `name`: `turing`\n    * `memberQp`: `member`\n       @method paramsFor\n    @param {String} name\n    @return {Object} hash containing the parameters of the route `name`\n    @since 1.4.0\n    @public\n  */\n  paramsFor(name) {\n    let owner = getOwner(this);\n    assert('Route is unexpectedly missing an owner', owner);\n    let route = owner.lookup(`route:${name}`);\n    if (route === undefined) {\n      return {};\n    }\n    let transition = this._router._routerMicrolib.activeTransition;\n    let state = transition ? transition[STATE_SYMBOL] : this._router._routerMicrolib.state;\n    let fullName = route.fullRouteName;\n    let params = {\n      ...state.params[fullName]\n    };\n    let queryParams = getQueryParamsFor(route, state);\n    return Object.entries(queryParams).reduce((params, [key, value]) => {\n      assert(`The route '${this.routeName}' has both a dynamic segment and query param with name '${key}'. Please rename one to avoid collisions.`, !params[key]);\n      params[key] = value;\n      return params;\n    }, params);\n  }\n  /**\n    Serializes the query parameter key\n       @method serializeQueryParamKey\n    @param {String} controllerPropertyName\n    @private\n  */\n  serializeQueryParamKey(controllerPropertyName) {\n    return controllerPropertyName;\n  }\n  /**\n    Serializes value of the query parameter based on defaultValueType\n       @method serializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n  serializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide serialization specific\n    // to a certain query param.\n    return this._router._serializeQueryParam(value, defaultValueType);\n  }\n  /**\n    Deserializes value of the query parameter based on defaultValueType\n       @method deserializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n  deserializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide deserialization specific\n    // to a certain query param.\n    return this._router._deserializeQueryParam(value, defaultValueType);\n  }\n  /**\n    @private\n       @property _optionsForQueryParam\n  */\n  _optionsForQueryParam(qp) {\n    const queryParams = get(this, 'queryParams');\n    return get(queryParams, qp.urlKey) || get(queryParams, qp.prop) || queryParams[qp.urlKey] || queryParams[qp.prop] || {};\n  }\n  /**\n    A hook you can use to reset controller values either when the model\n    changes or the route is exiting.\n       ```app/routes/articles.js\n    import Route from '@ember/routing/route';\n       export default class ArticlesRoute extends Route {\n      resetController(controller, isExiting, transition) {\n        if (isExiting && transition.targetName !== 'error') {\n          controller.set('page', 1);\n        }\n      }\n    }\n    ```\n       @method resetController\n    @param {Controller} controller instance\n    @param {Boolean} isExiting\n    @param {Object} transition\n    @since 1.7.0\n    @public\n  */\n  resetController(_controller, _isExiting, _transition) {\n    // We document that subclasses do not have to return *anything* and in fact\n    // do not even have to call super, so whiel we *do* return `this`, we need\n    // to be explicit in the types that our return type is *effectively* `void`.\n    return this;\n  }\n  /**\n    @private\n       @method exit\n  */\n  exit(transition) {\n    this.deactivate(transition);\n    this.trigger('deactivate', transition);\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method _internalReset\n    @since 3.6.0\n  */\n  _internalReset(isExiting, transition) {\n    let controller = this.controller;\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    controller['_qpDelegate'] = get(this, '_qp').states.inactive;\n    this.resetController(controller, isExiting, transition);\n  }\n  /**\n    @private\n       @method enter\n  */\n  enter(transition) {\n    this[RENDER_STATE] = undefined;\n    this.activate(transition);\n    this.trigger('activate', transition);\n  }\n  /**\n    This event is triggered when the router enters the route. It is\n    not executed when the model for the route changes.\n       ```app/routes/application.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      collectAnalytics: on('activate', function(){\n        collectAnalytics();\n      })\n    });\n    ```\n       @event activate\n    @since 1.9.0\n    @public\n  */\n  /**\n    This event is triggered when the router completely exits this\n    route. It is not executed when the model for the route changes.\n       ```app/routes/index.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      trackPageLeaveAnalytics: on('deactivate', function(){\n        trackPageLeaveAnalytics();\n      })\n    });\n    ```\n       @event deactivate\n    @since 1.9.0\n    @public\n  */\n  /**\n    This hook is executed when the router completely exits this route. It is\n    not executed when the model for the route changes.\n       @method deactivate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n  deactivate(_transition) {}\n  /**\n    This hook is executed when the router enters the route. It is not executed\n    when the model for the route changes.\n       @method activate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n  activate(_transition) {}\n  /**\n    Perform a synchronous transition into another route without attempting\n    to resolve promises, update the URL, or abort any currently active\n    asynchronous transitions (i.e. regular transitions caused by\n    `transitionTo` or URL changes).\n       This method is handy for performing intermediate transitions on the\n    way to a final destination route, and is called internally by the\n    default implementations of the `error` and `loading` handlers.\n       @method intermediateTransitionTo\n    @param {String} name the name of the route\n    @param {...Object} models the model(s) to be used while transitioning\n    to the route.\n    @since 1.2.0\n    @public\n   */\n  intermediateTransitionTo(...args) {\n    let [name, ...preparedArgs] = prefixRouteNameArg(this, args);\n    this._router.intermediateTransitionTo(name, ...preparedArgs);\n  }\n  /**\n    Refresh the model on this route and any child routes, firing the\n    `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n    to how routes are entered when transitioning in from other route.\n    The current route params (e.g. `article_id`) will be passed in\n    to the respective model hooks, and if a different model is returned,\n    `setupController` and associated route hooks will re-fire as well.\n       An example usage of this method is re-querying the server for the\n    latest information using the same parameters as when the route\n    was first entered.\n       Note that this will cause `model` hooks to fire even on routes\n    that were provided a model object when the route was initially\n    entered.\n       @method refresh\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.4.0\n    @public\n   */\n  refresh() {\n    return this._router._routerMicrolib.refresh(this);\n  }\n  /**\n    This hook is the entry point for router.js\n       @private\n    @method setup\n  */\n  setup(context, transition) {\n    let controllerName = this.controllerName || this.routeName;\n    let definedController = this.controllerFor(controllerName, true);\n    let controller = definedController ?? this.generateController(controllerName);\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let queryParams = get(this, '_qp');\n    // Assign the route's controller so that it can more easily be\n    // referenced in action handlers. Side effects. Side effects everywhere.\n    if (!this.controller) {\n      let propNames = queryParams.propertyNames;\n      addQueryParamsObservers(controller, propNames);\n      this.controller = controller;\n    }\n    let states = queryParams.states;\n    controller._qpDelegate = states.allowOverrides;\n    if (transition) {\n      // Update the model dep values used to calculate cache keys.\n      stashParamNames(this._router, transition[STATE_SYMBOL].routeInfos);\n      let cache = this._bucketCache;\n      let params = transition[PARAMS_SYMBOL];\n      let allParams = queryParams.propertyNames;\n      allParams.forEach(prop => {\n        let aQp = queryParams.map[prop];\n        assert('expected aQp', aQp);\n        aQp.values = params;\n        let cacheKey = calculateCacheKey(aQp.route.fullRouteName, aQp.parts, aQp.values);\n        let value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n        set(controller, prop, value);\n      });\n      let qpValues = getQueryParamsFor(this, transition[STATE_SYMBOL]);\n      setProperties(controller, qpValues);\n    }\n    this.setupController(controller, context, transition);\n    if (this._environment.options.shouldRender) {\n      this[RENDER]();\n    }\n    // Setup can cause changes to QPs which need to be propogated immediately in\n    // some situations. Eventually, we should work on making these async somehow.\n    flushAsyncObservers(false);\n  }\n  /*\n    Called when a query parameter for this route changes, regardless of whether the route\n    is currently part of the active route hierarchy. This will update the query parameter's\n    value in the cache so if this route becomes active, the cache value has been updated.\n  */\n  _qpChanged(prop, value, qp) {\n    if (!qp) {\n      return;\n    }\n    // Update model-dep cache\n    let cache = this._bucketCache;\n    let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, qp.values);\n    cache.stash(cacheKey, prop, value);\n  }\n  beforeModel(_transition) {}\n  afterModel(_resolvedModel, _transition) {}\n  /**\n    A hook you can implement to optionally redirect to another route.\n       Calling `this.router.transitionTo` from inside of the `redirect` hook will\n    abort the current transition (into the route that has implemented `redirect`).\n       `redirect` and `afterModel` behave very similarly and are\n    called almost at the same time, but they have an important\n    distinction when calling `this.router.transitionTo` to a child route\n    of the current route. From `afterModel`, this new transition\n    invalidates the current transition, causing `beforeModel`,\n    `model`, and `afterModel` hooks to be called again. But the\n    same transition started from `redirect` does _not_ invalidate\n    the current transition. In other words, by the time the `redirect`\n    hook has been called, both the resolved model and the attempted\n    entry into this route are considered fully validated.\n       @method redirect\n    @param {Object} model the model for this route\n    @param {Transition} transition the transition object associated with the current transition\n    @since 1.0.0\n    @public\n  */\n  redirect(_model, _transition) {}\n  /**\n    Called when the context is changed by router.js.\n       @private\n    @method contextDidChange\n  */\n  contextDidChange() {\n    this.currentModel = this.context;\n  }\n  /**\n    A hook you can implement to convert the URL into the model for\n    this route.\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       Note that for routes with dynamic segments, this hook is not always\n    executed. If the route is entered through a transition (e.g. when\n    using the `link-to` Handlebars helper or the `transitionTo` method\n    of routes), and a model context is already provided this hook\n    is not called.\n       A model context does not include a primitive string or number,\n    which does cause the model hook to be called.\n       Routes without dynamic segments will always execute the model hook.\n       ```javascript\n    // no dynamic segment, model hook always called\n    this.router.transitionTo('posts');\n       // model passed in, so model hook not called\n    thePost = store.findRecord('post', 1);\n    this.router.transitionTo('post', thePost);\n       // integer passed in, model hook is called\n    this.router.transitionTo('post', 1);\n       // model id passed in, model hook is called\n    // useful for forcing the hook to execute\n    thePost = store.findRecord('post', 1);\n    this.router.transitionTo('post', thePost.id);\n    ```\n       This hook follows the asynchronous/promise semantics\n    described in the documentation for `beforeModel`. In particular,\n    if a promise returned from `model` fails, the error will be\n    handled by the `error` hook on `Route`.\n       Note that the legacy behavior of automatically defining a model\n    hook when a dynamic segment ending in `_id` is present is\n    [deprecated](https://deprecations.emberjs.com/v5.x#toc_deprecate-implicit-route-model).\n    You should explicitly define a model hook whenever any segments are\n    present.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n    import { service } from '@ember/service';\n       export default class PostRoute extends Route {\n      @service store;\n         model(params) {\n        return this.store.findRecord('post', params.post_id);\n      }\n    }\n    ```\n       @method model\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route. If\n      a promise is returned, the transition will pause until\n      the promise resolves, and the resolved value of the promise\n      will be used as the model for this route.\n    @since 1.0.0\n    @public\n  */\n  model(params, transition) {\n    let name, sawParams, value;\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let queryParams = get(this, '_qp').map;\n    for (let prop in params) {\n      if (prop === 'queryParams' || queryParams && prop in queryParams) {\n        continue;\n      }\n      let match = prop.match(/^(.*)_id$/);\n      if (match !== null) {\n        name = match[1];\n        value = params[prop];\n      }\n      sawParams = true;\n    }\n    if (!name) {\n      if (sawParams) {\n        // SAFETY: This should be equivalent\n        return Object.assign({}, params);\n      } else {\n        if (transition.resolveIndex < 1) {\n          return;\n        }\n        // SAFETY: This should be correct, but TS is unable to infer this.\n        return transition[STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;\n      }\n    }\n    return this.findModel(name, value);\n  }\n  /**\n    @private\n    @method deserialize\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route.\n       Router.js hook.\n   */\n  deserialize(_params, transition) {\n    return this.model(this._paramsFor(this.routeName, _params), transition);\n  }\n  /**\n       @method findModel\n    @param {String} type the model type\n    @param {Object} value the value passed to find\n    @private\n  */\n  findModel(type, value) {\n    if (ENV._NO_IMPLICIT_ROUTE_MODEL) {\n      return;\n    }\n    deprecate(`The implicit model loading behavior for routes is deprecated. ` + `Please define an explicit model hook for ${this.fullRouteName}.`, false, {\n      id: 'deprecate-implicit-route-model',\n      for: 'ember-source',\n      since: {\n        available: '5.3.0',\n        enabled: '5.3.0'\n      },\n      until: '6.0.0',\n      url: 'https://deprecations.emberjs.com/v5.x/#toc_deprecate-implicit-route-model'\n    });\n    const store = 'store' in this ? this.store : get(this, '_store');\n    assert('Expected route to have a store with a find method', isStoreLike(store));\n    // SAFETY: We don't actually know it will return this, but this code path is also deprecated.\n    return store.find(type, value);\n  }\n  /**\n    A hook you can use to setup the controller for the current route.\n       This method is called with the controller for the current route and the\n    model supplied by the `model` hook.\n       By default, the `setupController` hook sets the `model` property of\n    the controller to the specified `model` when it is not `undefined`.\n       If you implement the `setupController` hook in your Route, it will\n    prevent this default behavior. If you want to preserve that behavior\n    when implementing your `setupController` function, make sure to call\n    `super`:\n       ```app/routes/photos.js\n    import Route from '@ember/routing/route';\n    import { service } from '@ember/service';\n       export default class PhotosRoute extends Route {\n      @service store;\n         model() {\n        return this.store.findAll('photo');\n      }\n         setupController(controller, model) {\n        super.setupController(controller, model);\n           this.controllerFor('application').set('showingPhotos', true);\n      }\n    }\n    ```\n       The provided controller will be one resolved based on the name\n    of this route.\n       If no explicit controller is defined, Ember will automatically create one.\n       As an example, consider the router:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       If you have defined a file for the post controller,\n    the framework will use it.\n    If it is not defined, a basic `Controller` instance would be used.\n       @example Behavior of a basic Controller\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      setupController(controller, model) {\n        controller.set('model', model);\n      }\n    });\n    ```\n       @method setupController\n    @param {Controller} controller instance\n    @param {Object} model\n    @param {Transition} [transition]\n    @since 1.0.0\n    @public\n  */\n  setupController(controller, context, _transition) {\n    if (controller && context !== undefined) {\n      set(controller, 'model', context);\n    }\n  }\n  controllerFor(name, _skipAssert = false) {\n    let owner = getOwner(this);\n    assert('Route is unexpectedly missing an owner', owner);\n    let route = owner.lookup(`route:${name}`);\n    if (route && route.controllerName) {\n      name = route.controllerName;\n    }\n    let controller = owner.lookup(`controller:${name}`);\n    // NOTE: We're specifically checking that skipAssert is true, because according\n    //   to the old API the second parameter was model. We do not want people who\n    //   passed a model to skip the assertion.\n    assert(`The controller named '${name}' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.`, controller !== undefined || _skipAssert === true);\n    assert(`Expected controller:${name} to be an instance of Controller`, controller === undefined || controller instanceof Controller);\n    return controller;\n  }\n  /**\n    Generates a controller for a route.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class Post extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n           this.generateController('posts');\n      }\n    }\n    ```\n       @method generateController\n    @param {String} name the name of the controller\n    @private\n  */\n  generateController(name) {\n    let owner = getOwner(this);\n    assert('Route is unexpectedly missing an owner', owner);\n    return generateController(owner, name);\n  }\n  /**\n    Returns the resolved model of a parent (or any ancestor) route\n    in a route hierarchy.  During a transition, all routes\n    must resolve a model object, and if a route\n    needs access to a parent route's model in order to\n    resolve a model (or just reuse the model from a parent),\n    it can call `this.modelFor(theNameOfParentRoute)` to\n    retrieve it. If the ancestor route's model was a promise,\n    its resolved result is returned.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' }, function() {\n        this.route('comments');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/post/comments.js\n    import Route from '@ember/routing/route';\n       export default class PostCommentsRoute extends Route {\n      model() {\n        let post = this.modelFor('post');\n           return post.comments;\n      }\n    }\n    ```\n       @method modelFor\n    @param {String} name the name of the route\n    @return {Object} the model object\n    @since 1.0.0\n    @public\n  */\n  modelFor(_name) {\n    let name;\n    let owner = getOwner(this);\n    assert('Expected router owner to be an EngineInstance', owner instanceof EngineInstance);\n    let transition = this._router && this._router._routerMicrolib ? this._router._routerMicrolib.activeTransition : undefined;\n    // Only change the route name when there is an active transition.\n    // Otherwise, use the passed in route name.\n    if (owner.routable && transition !== undefined) {\n      name = getEngineRouteName(owner, _name);\n    } else {\n      name = _name;\n    }\n    let route = owner.lookup(`route:${name}`);\n    // If we are mid-transition, we want to try and look up\n    // resolved parent contexts on the current transitionEvent.\n    if (transition !== undefined && transition !== null) {\n      let modelLookupName = route && route.routeName || name;\n      if (Object.prototype.hasOwnProperty.call(transition.resolvedModels, modelLookupName)) {\n        return transition.resolvedModels[modelLookupName];\n      }\n    }\n    return route?.currentModel;\n  }\n  /**\n    `this[RENDER]` is used to set up the rendering option for the outlet state.\n    @method this[RENDER]\n    @private\n   */\n  [(_a = RENDER_STATE, RENDER)]() {\n    this[RENDER_STATE] = buildRenderState(this);\n    once(this._router, '_setOutlets');\n  }\n  willDestroy() {\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method teardownViews\n  */\n  teardownViews() {\n    if (this[RENDER_STATE]) {\n      this[RENDER_STATE] = undefined;\n      once(this._router, '_setOutlets');\n    }\n  }\n  buildRouteInfoMetadata() {}\n  _paramsFor(routeName, params) {\n    let transition = this._router._routerMicrolib.activeTransition;\n    if (transition !== undefined) {\n      return this.paramsFor(routeName);\n    }\n    return params;\n  }\n  /** @deprecated Manually define your own store, such as with `@service store` */\n  get _store() {\n    const owner = getOwner(this);\n    assert('Route is unexpectedly missing an owner', owner);\n    let routeName = this.routeName;\n    return {\n      find(name, value) {\n        let modelClass = owner.factoryFor(`model:${name}`);\n        assert(`You used the dynamic segment \\`${name}_id\\` in your route ` + `\\`${routeName}\\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\\`model({${name}_id}) {\\`) or by injecting an implemention of ` + `a data store: \\`@service store;\\`.`, Boolean(modelClass));\n        if (!modelClass) {\n          return;\n        }\n        modelClass = modelClass.class;\n        assert(`You used the dynamic segment \\`${name}_id\\` in your route ` + `\\`${routeName}\\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\\`model({${name}_id}) {\\`) or by injecting an implemention of ` + `a data store: \\`@service store;\\`.\\n\\n` + `Rarely, applications may attempt to use a legacy behavior where ` + `the model class (in this case \\`${name}\\`) is resolved and the ` + `\\`find\\` method on that class is invoked to load data. In this ` + `application, a model of \\`${name}\\` was found but it did not ` + `provide a \\`find\\` method. You should not add a \\`find\\` ` + `method to your model. Instead, please implement an appropriate ` + `\\`model\\` hook on the \\`${routeName}\\` route.`, typeof modelClass.find === 'function');\n        return modelClass.find(value);\n      }\n    };\n  }\n  /**\n    @private\n    @property _qp\n    */\n  get _qp() {\n    let combinedQueryParameterConfiguration = {};\n    let controllerName = this.controllerName || this.routeName;\n    let owner = getOwner(this);\n    assert('Route is unexpectedly missing an owner', owner);\n    let controller = owner.lookup(`controller:${controllerName}`);\n    let queryParameterConfiguraton = get(this, 'queryParams');\n    let hasRouterDefinedQueryParams = Object.keys(queryParameterConfiguraton).length > 0;\n    if (controller) {\n      assert('Expected an instance of controller', controller instanceof Controller);\n      // the developer has authored a controller class in their application for\n      // this route find its query params and normalize their object shape them\n      // merge in the query params for the route. As a mergedProperty,\n      // Route#queryParams is always at least `{}`\n      let controllerDefinedQueryParameterConfiguration = get(controller, 'queryParams') || [];\n      let normalizedControllerQueryParameterConfiguration = normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);\n      combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n    } else if (hasRouterDefinedQueryParams) {\n      // the developer has not defined a controller but *has* supplied route query params.\n      // Generate a class for them so we can later insert default values\n      controller = generateController(owner, controllerName);\n      combinedQueryParameterConfiguration = queryParameterConfiguraton;\n    }\n    let qps = [];\n    let map = {};\n    let propertyNames = [];\n    for (let propName in combinedQueryParameterConfiguration) {\n      if (!Object.prototype.hasOwnProperty.call(combinedQueryParameterConfiguration, propName)) {\n        continue;\n      }\n      // to support the dubious feature of using unknownProperty\n      // on queryParams configuration\n      if (propName === 'unknownProperty' || propName === '_super') {\n        // possible todo: issue deprecation warning?\n        continue;\n      }\n      let desc = combinedQueryParameterConfiguration[propName];\n      assert(`[BUG] missing query parameter configuration for ${propName}`, desc);\n      let scope = desc.scope || 'model';\n      let parts = undefined;\n      if (scope === 'controller') {\n        parts = [];\n      }\n      let urlKey = desc.as || this.serializeQueryParamKey(propName);\n      let defaultValue = get(controller, propName);\n      defaultValue = copyDefaultValue(defaultValue);\n      let type = desc.type || typeOf(defaultValue);\n      let defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n      let scopedPropertyName = `${controllerName}:${propName}`;\n      let qp = {\n        undecoratedDefaultValue: get(controller, propName),\n        defaultValue,\n        serializedDefaultValue: defaultValueSerialized,\n        serializedValue: defaultValueSerialized,\n        type,\n        urlKey,\n        prop: propName,\n        scopedPropertyName,\n        controllerName,\n        route: this,\n        parts,\n        values: null,\n        scope\n      };\n      map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n      qps.push(qp);\n      propertyNames.push(propName);\n    }\n    return {\n      qps,\n      map,\n      propertyNames,\n      states: {\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, but the route is not currently\n          in the active route hierarchy.\n        */\n        inactive: (prop, value) => {\n          let qp = map[prop];\n          assert('expected inactive callback to only be called for registered qps', qp);\n          this._qpChanged(prop, value, qp);\n        },\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, and the route is currently\n          in the active route hierarchy.\n        */\n        active: (prop, value) => {\n          let qp = map[prop];\n          assert('expected active callback to only be called for registered qps', qp);\n          this._qpChanged(prop, value, qp);\n          return this._activeQPChanged(qp, value);\n        },\n        /*\n          Called when a value of a query parameter this route handles changes in a controller\n          and the route is currently in the active route hierarchy.\n        */\n        allowOverrides: (prop, value) => {\n          let qp = map[prop];\n          assert('expected allowOverrides callback to only be called for registered qps', qp);\n          this._qpChanged(prop, value, qp);\n          return this._updatingQPChanged(qp);\n        }\n      }\n    };\n  }\n}\nRoute.isRouteFactory = true;\n__decorate([computed], Route.prototype, \"_store\", null);\n__decorate([computed], Route.prototype, \"_qp\", null);\nexport function getRenderState(route) {\n  return route[RENDER_STATE];\n}\nfunction buildRenderState(route) {\n  let owner = getOwner(route);\n  assert('Route is unexpectedly missing an owner', owner);\n  let name = route.routeName;\n  let controller = owner.lookup(`controller:${route.controllerName || name}`);\n  assert('Expected an instance of controller', controller instanceof Controller);\n  let model = route.currentModel;\n  let template = owner.lookup(`template:${route.templateName || name}`);\n  let render = {\n    owner,\n    into: undefined,\n    outlet: 'main',\n    name,\n    controller,\n    model,\n    template: template?.(owner) ?? route._topLevelViewTemplate(owner)\n  };\n  if (DEBUG) {\n    let LOG_VIEW_LOOKUPS = get(route._router, 'namespace.LOG_VIEW_LOOKUPS');\n    if (LOG_VIEW_LOOKUPS && !template) {\n      info(`Could not find \"${name}\" template. Nothing will be rendered`, {\n        fullName: `template:${name}`\n      });\n    }\n  }\n  return render;\n}\nexport function getFullQueryParams(router, state) {\n  if (state.fullQueryParams) {\n    return state.fullQueryParams;\n  }\n  let haveAllRouteInfosResolved = state.routeInfos.every(routeInfo => routeInfo.route);\n  let fullQueryParamsState = {\n    ...state.queryParams\n  };\n  router._deserializeQueryParams(state.routeInfos, fullQueryParamsState);\n  // only cache query params state if all routeinfos have resolved; it's possible\n  // for lazy routes to not have resolved when `getFullQueryParams` is called, so\n  // we wait until all routes have resolved prior to caching query params state\n  if (haveAllRouteInfosResolved) {\n    state.fullQueryParams = fullQueryParamsState;\n  }\n  return fullQueryParamsState;\n}\nfunction getQueryParamsFor(route, state) {\n  state.queryParamsFor = state.queryParamsFor || {};\n  let name = route.fullRouteName;\n  let existing = state.queryParamsFor[name];\n  if (existing) {\n    return existing;\n  }\n  let fullQueryParams = getFullQueryParams(route._router, state);\n  let params = state.queryParamsFor[name] = {};\n  // Copy over all the query params for this route/controller into params hash.\n  // SAFETY: Since `_qp` is protected we can't infer the type\n  let qps = get(route, '_qp').qps;\n  for (let qp of qps) {\n    // Put deserialized qp on params hash.\n    let qpValueWasPassedIn = (qp.prop in fullQueryParams);\n    params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n  }\n  return params;\n}\n// FIXME: This should probably actually return a `NativeArray` if the passed in value is an Array.\nfunction copyDefaultValue(value) {\n  if (Array.isArray(value)) {\n    // SAFETY: We lost the type data about the array if we don't cast.\n    return emberA(value.slice());\n  }\n  return value;\n}\n/*\n  Merges all query parameters from a controller with those from\n  a route, returning a new object and avoiding any mutations to\n  the existing objects.\n*/\nfunction mergeEachQueryParams(controllerQP, routeQP) {\n  let qps = {};\n  let keysAlreadyMergedOrSkippable = {\n    defaultValue: true,\n    type: true,\n    scope: true,\n    as: true\n  };\n  // first loop over all controller qps, merging them with any matching route qps\n  // into a new empty object to avoid mutating.\n  for (let cqpName in controllerQP) {\n    if (!Object.prototype.hasOwnProperty.call(controllerQP, cqpName)) {\n      continue;\n    }\n    qps[cqpName] = {\n      ...controllerQP[cqpName],\n      ...routeQP[cqpName]\n    };\n    // allows us to skip this QP when we check route QPs.\n    keysAlreadyMergedOrSkippable[cqpName] = true;\n  }\n  // loop over all route qps, skipping those that were merged in the first pass\n  // because they also appear in controller qps\n  for (let rqpName in routeQP) {\n    if (!Object.prototype.hasOwnProperty.call(routeQP, rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n      continue;\n    }\n    qps[rqpName] = {\n      ...routeQP[rqpName],\n      ...controllerQP[rqpName]\n    };\n  }\n  return qps;\n}\nfunction addQueryParamsObservers(controller, propNames) {\n  propNames.forEach(prop => {\n    if (descriptorForProperty(controller, prop) === undefined) {\n      let desc = lookupDescriptor(controller, prop);\n      if (desc !== null && (typeof desc.get === 'function' || typeof desc.set === 'function')) {\n        defineProperty(controller, prop, dependentKeyCompat({\n          get: desc.get,\n          set: desc.set\n        }));\n      }\n    }\n    addObserver(controller, `${prop}.[]`, controller, controller._qpChanged, false);\n  });\n}\nfunction getEngineRouteName(engine, routeName) {\n  if (engine.routable) {\n    let prefix = engine.mountPoint;\n    if (routeName === 'application') {\n      return prefix;\n    } else {\n      return `${prefix}.${routeName}`;\n    }\n  }\n  return routeName;\n}\nconst defaultSerialize = Route.prototype.serialize;\nexport { defaultSerialize };\nexport function hasDefaultSerialize(route) {\n  return route.serialize === defaultSerialize;\n}\n// Set these here so they can be overridden with extend\nRoute.reopen({\n  mergedProperties: ['queryParams'],\n  queryParams: {},\n  templateName: null,\n  controllerName: null,\n  send(...args) {\n    assert(`Attempted to call .send() with the action '${args[0]}' on the destroyed route '${this.routeName}'.`, !this.isDestroying && !this.isDestroyed);\n    if (this._router && this._router._routerMicrolib || !isTesting()) {\n      this._router.send(...args);\n    } else {\n      let name = args.shift();\n      let action = this.actions[name];\n      if (action) {\n        return action.apply(this, args);\n      }\n    }\n  },\n  /**\n    The controller associated with this route.\n       Example\n       ```app/routes/form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class FormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData') &&\n            !confirm('Are you sure you want to abandon progress?')) {\n          transition.abort();\n        } else {\n          // Bubble the `willTransition` action so that\n          // parent routes can decide whether or not to abort.\n          return true;\n        }\n      }\n    }\n    ```\n       @property controller\n    @type Controller\n    @since 1.6.0\n    @public\n  */\n  actions: {\n    /**\n    This action is called when one or more query params have changed. Bubbles.\n         @method queryParamsDidChange\n    @param changed {Object} Keys are names of query params that have changed.\n    @param totalPresent {Object} Keys are names of query params that are currently set.\n    @param removed {Object} Keys are names of query params that have been removed.\n    @returns {boolean}\n    @private\n    */\n    queryParamsDidChange(changed, _totalPresent, removed) {\n      // SAFETY: Since `_qp` is protected we can't infer the type\n      let qpMap = get(this, '_qp').map;\n      let totalChanged = Object.keys(changed).concat(Object.keys(removed));\n      for (let change of totalChanged) {\n        let qp = qpMap[change];\n        if (qp) {\n          let options = this._optionsForQueryParam(qp);\n          assert('options exists', options && typeof options === 'object');\n          if (get(options, 'refreshModel') && this._router.currentState) {\n            this.refresh();\n            break;\n          }\n        }\n      }\n      return true;\n    },\n    finalizeQueryParamChange(params, finalParams, transition) {\n      if (this.fullRouteName !== 'application') {\n        return true;\n      }\n      // Transition object is absent for intermediate transitions.\n      if (!transition) {\n        return;\n      }\n      let routeInfos = transition[STATE_SYMBOL].routeInfos;\n      let router = this._router;\n      let qpMeta = router._queryParamsFor(routeInfos);\n      let changes = router._qpUpdates;\n      let qpUpdated = false;\n      let replaceUrl;\n      stashParamNames(router, routeInfos);\n      for (let qp of qpMeta.qps) {\n        let route = qp.route;\n        let controller = route.controller;\n        let presentKey = qp.urlKey in params && qp.urlKey;\n        // Do a reverse lookup to see if the changed query\n        // param URL key corresponds to a QP property on\n        // this controller.\n        let value;\n        let svalue;\n        if (changes.has(qp.urlKey)) {\n          // Value updated in/before setupController\n          value = get(controller, qp.prop);\n          svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n        } else {\n          if (presentKey) {\n            svalue = params[presentKey];\n            if (svalue !== undefined) {\n              value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n            }\n          } else {\n            // No QP provided; use default value.\n            svalue = qp.serializedDefaultValue;\n            value = copyDefaultValue(qp.defaultValue);\n          }\n        }\n        // SAFETY: Since `_qp` is protected we can't infer the type\n        controller._qpDelegate = get(route, '_qp').states.inactive;\n        let thisQueryParamChanged = svalue !== qp.serializedValue;\n        if (thisQueryParamChanged) {\n          if (transition.queryParamsOnly && replaceUrl !== false) {\n            let options = route._optionsForQueryParam(qp);\n            let replaceConfigValue = get(options, 'replace');\n            if (replaceConfigValue) {\n              replaceUrl = true;\n            } else if (replaceConfigValue === false) {\n              // Explicit pushState wins over any other replaceStates.\n              replaceUrl = false;\n            }\n          }\n          set(controller, qp.prop, value);\n          qpUpdated = true;\n        }\n        // Stash current serialized value of controller.\n        qp.serializedValue = svalue;\n        let thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n        if (!thisQueryParamHasDefaultValue) {\n          finalParams.push({\n            value: svalue,\n            visible: true,\n            key: presentKey || qp.urlKey\n          });\n        }\n      }\n      // Some QPs have been updated, and those changes need to be propogated\n      // immediately. Eventually, we should work on making this async somehow.\n      if (qpUpdated === true) {\n        flushAsyncObservers(false);\n      }\n      if (replaceUrl) {\n        transition.method('replace');\n      }\n      qpMeta.qps.forEach(qp => {\n        // SAFETY: Since `_qp` is protected we can't infer the type\n        let routeQpMeta = get(qp.route, '_qp');\n        let finalizedController = qp.route.controller;\n        finalizedController['_qpDelegate'] = get(routeQpMeta, 'states.active');\n      });\n      router._qpUpdates.clear();\n      return;\n    }\n  }\n});\nexport default Route;","var __decorate = this && this.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n * @module @ember/routing/router-service\n */\nimport { getOwner } from '@ember/-internals/owner';\nimport Evented from '@ember/object/evented';\nimport { assert } from '@ember/debug';\nimport { readOnly } from '@ember/object/computed';\nimport Service from '@ember/service';\nimport { consumeTag, tagFor } from '@glimmer/validator';\nimport EmberRouter from '@ember/routing/router';\nimport { extractRouteArgs, resemblesURL, shallowEqual } from './lib/utils';\nexport const ROUTER = Symbol('ROUTER');\nfunction cleanURL(url, rootURL) {\n  if (rootURL === '/') {\n    return url;\n  }\n  return url.substring(rootURL.length);\n}\nclass RouterService extends Service.extend(Evented) {\n  get _router() {\n    let router = this[ROUTER];\n    if (router !== undefined) {\n      return router;\n    }\n    let owner = getOwner(this);\n    assert('RouterService is unexpectedly missing an owner', owner);\n    let _router = owner.lookup('router:main');\n    assert('ROUTER SERVICE BUG: Expected router to be an instance of EmberRouter', _router instanceof EmberRouter);\n    return this[ROUTER] = _router;\n  }\n  willDestroy() {\n    super.willDestroy();\n    this[ROUTER] = undefined;\n  }\n  /**\n     Transition the application into another route. The route may\n     be either a single route or route path:\n        Calling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        In the following example we use the Router service to navigate to a route with a\n     specific model from a Component in the first action, and in the second we trigger\n     a query-params only transition.\n        ```app/components/example.js\n     import Component from '@glimmer/component';\n     import { action } from '@ember/object';\n     import { service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          @action\n       goToComments(post) {\n         this.router.transitionTo('comments', post);\n       }\n          @action\n       fetchMoreComments(latestComment) {\n         this.router.transitionTo({\n           queryParams: { commentsAfter: latestComment }\n         });\n       }\n     }\n     ```\n        @method transitionTo\n     @param {String} [routeNameOrUrl] the name of the route or a URL\n     @param {...Object} [models] the model(s) or identifier(s) to be used while\n       transitioning to the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters. May be supplied as the only\n      parameter to trigger a query-parameter-only transition.\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      // NOTE: this `args[0] as string` cast is safe and TS correctly infers it\n      // in 3.6+, so it can be removed when TS is upgraded.\n      return this._router._doURLTransition('transitionTo', args[0]);\n    }\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    let transition = this._router._doTransition(routeName, models, queryParams, true);\n    return transition;\n  }\n  /**\n     Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n     it replaces the entry for the current route.\n     When the user clicks the \"back\" button in the browser, there will be fewer steps.\n     This is most commonly used to manage redirects in a way that does not cause confusing additions\n     to the user's browsing history.\n        Calling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `replaceWith` on a route.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        Usage example:\n        ```app/routes/application.js\n     import Route from '@ember/routing/route';\n     import { service } from '@ember/service';\n        export default class extends Route {\n       @service router;\n       beforeModel() {\n         if (!authorized()){\n           this.router.replaceWith('unauthorized');\n         }\n       }\n     });\n     ```\n        @method replaceWith\n     @param {String} routeNameOrUrl the name of the route or a URL of the desired destination\n     @param {...Object} models the model(s) or identifier(s) to be used while\n       transitioning to the route i.e. an object of params to pass to the destination route\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n  /**\n    Generate a URL based on the supplied route name and optionally a model. The\n    URL is returned as a string that can be used for any purpose.\n       In this example, the URL for the `author.books` route for a given author\n    is copied to the clipboard.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.args.author);\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books\n        }\n      }\n    }\n    ```\n       Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle\n    query parameters.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyOnlyEmberBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.author, {\n            queryParams: { filter: 'emberjs' }\n          });\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books?filter=emberjs\n        }\n      }\n    }\n    ```\n        @method urlFor\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) for the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {String} the string representing the generated URL\n     @public\n   */\n  urlFor(routeName, ...args) {\n    this._router.setupRouter();\n    return this._router.generate(routeName, ...args);\n  }\n  /**\n     Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\n     See [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n     [queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n        In the following example, `isActive` will return `true` if the current route is `/posts`.\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments() {\n         return this.router.isActive('posts');\n       }\n     });\n     ```\n        The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\n     assuming the post has an id of 1:\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments(post) {\n         return this.router.isActive('posts', post.id);\n       }\n     });\n     ```\n        Where `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\n     If `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.\n        @method isActive\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) or identifier(s) to be used when determining the active route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {boolean} true if the provided routeName/models/queryParams are active\n     @public\n   */\n  isActive(...args) {\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    let routerMicrolib = this._router._routerMicrolib;\n    // When using isActive() in a getter, we want to entagle with the auto-tracking system\n    // for example,\n    // in\n    // get isBarActive() {\n    //   return isActive('foo.bar');\n    // }\n    //\n    // you'd expect isBarActive to be dirtied when the route changes.\n    //\n    // https://github.com/emberjs/ember.js/issues/19004\n    consumeTag(tagFor(this._router, 'currentURL'));\n    // UNSAFE: casting `routeName as string` here encodes the existing\n    // assumption but may be wrong: `extractRouteArgs` correctly returns it as\n    // `string | undefined`. There may be bugs if `isActiveIntent` does\n    // not correctly account for `undefined` values for `routeName`. Spoilers:\n    // it *does not* account for this being `undefined`.\n    if (!routerMicrolib.isActiveIntent(routeName, models)) {\n      return false;\n    }\n    let hasQueryParams = Object.keys(queryParams).length > 0;\n    if (hasQueryParams) {\n      // UNSAFE: casting `routeName as string` here encodes the existing\n      // assumption but may be wrong: `extractRouteArgs` correctly returns it\n      // as `string | undefined`. There may be bugs if `_prepareQueryParams`\n      // does not correctly account for `undefined` values for `routeName`.\n      //  Spoilers: under the hood this currently uses router.js APIs which\n      // *do not* account for this being `undefined`.\n      let targetRouteName = routeName;\n      queryParams = Object.assign({}, queryParams);\n      this._router._prepareQueryParams(targetRouteName, models, queryParams, true /* fromRouterService */);\n      let currentQueryParams = Object.assign({}, routerMicrolib.state.queryParams);\n      this._router._prepareQueryParams(targetRouteName, models, currentQueryParams, true /* fromRouterService */);\n      return shallowEqual(queryParams, currentQueryParams);\n    }\n    return true;\n  }\n  /**\n     Takes a string URL and returns a `RouteInfo` for the leafmost route represented\n     by the URL. Returns `null` if the URL is not recognized. This method expects to\n     receive the actual URL as seen by the browser including the app's `rootURL`.\n        See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n        In the following example `recognize` is used to verify if a path belongs to our\n     application before transitioning to it.\n        ```\n     import Component from '@ember/component';\n     import { service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n       path = '/';\n          click() {\n         if (this.router.recognize(this.path)) {\n           this.router.transitionTo(this.path);\n         }\n       }\n     }\n     ```\n         @method recognize\n      @param {String} url\n      @return {RouteInfo | null}\n      @public\n    */\n  recognize(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n    this._router.setupRouter();\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognize(internalURL);\n  }\n  /**\n    Takes a string URL and returns a promise that resolves to a\n    `RouteInfoWithAttributes` for the leafmost route represented by the URL.\n    The promise rejects if the URL is not recognized or an unhandled exception\n    is encountered. This method expects to receive the actual URL as seen by\n    the browser including the app's `rootURL`.\n         @method recognizeAndLoad\n      @param {String} url\n      @return {RouteInfo}\n      @public\n   */\n  recognizeAndLoad(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n    this._router.setupRouter();\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognizeAndLoad(internalURL);\n  }\n  /**\n    You can register a listener for events emitted by this service with `.on()`:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing';\n    import { service } from '@ember/service';\n       export default class extends Route {\n      @service router;\n         activate() {\n        this.router.on('routeWillChange', (transition) => {\n          if (!transition.to.find(route => route.name === this.routeName)) {\n            alert(\"Please save or cancel your changes.\");\n            transition.abort();\n          }\n        })\n      }\n    }\n    ```\n       @method on\n    @param {String} eventName\n    @param {Function} callback\n    @public\n  */\n  /**\n    You can unregister a listener for events emitted by this service with `.off()`:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing';\n    import { service } from '@ember/service';\n       export default class ContactFormRoute extends Route {\n      @service router;\n         callback = (transition) => {\n        if (!transition.to.find(route => route.name === this.routeName)) {\n          alert('Please save or cancel your changes.');\n          transition.abort();\n        }\n      };\n         activate() {\n        this.router.on('routeWillChange', this.callback);\n      }\n         deactivate() {\n        this.router.off('routeWillChange', this.callback);\n      }\n    }\n    ```\n       @method off\n    @param {String} eventName\n    @param {Function} callback\n    @public\n  */\n  /**\n    The `routeWillChange` event is fired at the beginning of any\n    attempted transition with a `Transition` object as the sole\n    argument. This action can be used for aborting, redirecting,\n    or decorating the transition from the currently active routes.\n       A good example is preventing navigation when a form is\n    half-filled out:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing';\n    import { service } from '@ember/service';\n       export default class extends Route {\n      @service router;\n         activate() {\n        this.router.on('routeWillChange', (transition) => {\n          if (!transition.to.find(route => route.name === this.routeName)) {\n            alert(\"Please save or cancel your changes.\");\n            transition.abort();\n          }\n        })\n      }\n    }\n    ```\n       The `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.\n       @event routeWillChange\n    @param {Transition} transition\n    @public\n  */\n  /**\n    The `routeDidChange` event only fires once a transition has settled.\n    This includes aborts and error substates. Like the `routeWillChange` event\n    it receives a Transition as the sole argument.\n       A good example is sending some analytics when the route has transitioned:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing';\n    import { service } from '@ember/service';\n       export default class extends Route {\n      @service router;\n         activate() {\n        this.router.on('routeDidChange', (transition) => {\n          ga.send('pageView', {\n            current: transition.to.name,\n            from: transition.from.name\n          });\n        })\n      }\n    }\n    ```\n       `routeDidChange` will be called after any `Route`'s\n    [didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\n    action has been fired.\n    The updates of properties\n    [currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n    [currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\n    and\n    [currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\n    are completed at the time `routeDidChange` is called.\n       @event routeDidChange\n    @param {Transition} transition\n    @public\n  */\n  /**\n   * Refreshes all currently active routes, doing a full transition.\n   * If a route name is provided and refers to a currently active route,\n   * it will refresh only that route and its descendents.\n   * Returns a promise that will be resolved once the refresh is complete.\n   * All resetController, beforeModel, model, afterModel, redirect, and setupController\n   * hooks will be called again. You will get new data from the model hook.\n   *\n   * @method refresh\n   * @param {String} [routeName] the route to refresh (along with all child routes)\n   * @return Transition\n   * @public\n   */\n  refresh(pivotRouteName) {\n    if (!pivotRouteName) {\n      return this._router._routerMicrolib.refresh();\n    }\n    assert(`The route \"${pivotRouteName}\" was not found`, this._router.hasRoute(pivotRouteName));\n    assert(`The route \"${pivotRouteName}\" is currently not active`, this.isActive(pivotRouteName));\n    let owner = getOwner(this);\n    assert('RouterService is unexpectedly missing an owner', owner);\n    let pivotRoute = owner.lookup(`route:${pivotRouteName}`);\n    return this._router._routerMicrolib.refresh(pivotRoute);\n  }\n}\n__decorate([readOnly('_router.currentRouteName')], RouterService.prototype, \"currentRouteName\", void 0);\n__decorate([readOnly('_router.currentURL')], RouterService.prototype, \"currentURL\", void 0);\n__decorate([readOnly('_router.location')], RouterService.prototype, \"location\", void 0);\n__decorate([readOnly('_router.rootURL')], RouterService.prototype, \"rootURL\", void 0);\n__decorate([readOnly('_router.currentRoute')], RouterService.prototype, \"currentRoute\", void 0);\nexport { RouterService as default };","import { privatize as P } from '@ember/-internals/container';\nimport { computed, get, set } from '@ember/object';\nimport { getOwner } from '@ember/owner';\nimport { BucketCache, DSL, RouterState } from '@ember/routing/-internals';\nimport { calculateCacheKey, extractRouteArgs, getActiveTargetName, resemblesURL } from './lib/utils';\nimport EmberObject from '@ember/object';\nimport { A as emberA } from '@ember/array';\nimport { typeOf } from '@ember/utils';\nimport Evented from '@ember/object/evented';\nimport { assert, info } from '@ember/debug';\nimport { cancel, once, run, scheduleOnce } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nimport { defaultSerialize, getFullQueryParams, getRenderState, hasDefaultSerialize } from '@ember/routing/route';\nimport Router, { logAbort, STATE_SYMBOL } from 'router_js';\nimport EngineInstance from '@ember/engine/instance';\n/**\n@module @ember/routing/router\n*/\nfunction defaultDidTransition(infos) {\n  updatePaths(this);\n  this._cancelSlowTransitionTimer();\n  this.notifyPropertyChange('url');\n  this.set('currentState', this.targetState);\n  if (DEBUG) {\n    // @ts-expect-error namespace isn't public\n    if (this.namespace.LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Transitioned into '${EmberRouter._routePath(infos)}'`);\n    }\n  }\n}\nfunction defaultWillTransition(oldInfos, newInfos) {\n  if (DEBUG) {\n    // @ts-expect-error namespace isn't public\n    if (this.namespace.LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Preparing to transition from '${EmberRouter._routePath(oldInfos)}' to '${EmberRouter._routePath(newInfos)}'`);\n    }\n  }\n}\nlet freezeRouteInfo;\nif (DEBUG) {\n  freezeRouteInfo = transition => {\n    if (transition.from !== null && !Object.isFrozen(transition.from)) {\n      Object.freeze(transition.from);\n    }\n    if (transition.to !== null && !Object.isFrozen(transition.to)) {\n      Object.freeze(transition.to);\n    }\n  };\n}\nfunction K() {\n  return this;\n}\nconst {\n  slice\n} = Array.prototype;\n/**\n  The `EmberRouter` class manages the application state and URLs. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class EmberRouter\n  @extends EmberObject\n  @uses Evented\n  @public\n*/\nclass EmberRouter extends EmberObject.extend(Evented) {\n  /**\n    The `Router.map` function allows you to define mappings from URLs to routes\n    in your application. These mappings are defined within the\n    supplied callback function using `this.route`.\n       The first parameter is the name of the route which is used by default as the\n    path name as well.\n       The second parameter is the optional options hash. Available options are:\n         * `path`: allows you to provide your own path as well as mark dynamic\n        segments.\n      * `resetNamespace`: false by default; when nesting routes, ember will\n        combine the route names to form the fully-qualified route name, which is\n        used with `{{link-to}}` or manually transitioning to routes. Setting\n        `resetNamespace: true` will cause the route not to inherit from its\n        parent route's names. This is handy for preventing extremely long route names.\n        Keep in mind that the actual URL path behavior is still retained.\n       The third parameter is a function, which can be used to nest routes.\n    Nested routes, by default, will have the parent route tree's route name and\n    path prepended to it's own.\n       ```app/router.js\n    Router.map(function(){\n      this.route('post', { path: '/post/:post_id' }, function() {\n        this.route('edit');\n        this.route('comments', { resetNamespace: true }, function() {\n          this.route('new');\n        });\n      });\n    });\n    ```\n       @method map\n    @param callback\n    @public\n  */\n  static map(callback) {\n    if (!this.dslCallbacks) {\n      this.dslCallbacks = [];\n      // FIXME: Can we remove this?\n      this.reopenClass({\n        dslCallbacks: this.dslCallbacks\n      });\n    }\n    this.dslCallbacks.push(callback);\n    return this;\n  }\n  static _routePath(routeInfos) {\n    let path = [];\n    // We have to handle coalescing resource names that\n    // are prefixed with their parent's names, e.g.\n    // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n    function intersectionMatches(a1, a2) {\n      for (let i = 0; i < a1.length; ++i) {\n        if (a1[i] !== a2[i]) {\n          return false;\n        }\n      }\n      return true;\n    }\n    let name, nameParts, oldNameParts;\n    for (let i = 1; i < routeInfos.length; i++) {\n      let routeInfo = routeInfos[i];\n      assert('has routeInfo', routeInfo);\n      name = routeInfo.name;\n      nameParts = name.split('.');\n      oldNameParts = slice.call(path);\n      while (oldNameParts.length) {\n        if (intersectionMatches(oldNameParts, nameParts)) {\n          break;\n        }\n        oldNameParts.shift();\n      }\n      path.push(...nameParts.slice(oldNameParts.length));\n    }\n    return path.join('.');\n  }\n  // Note that owner is actually required in this scenario, but since it is strictly\n  // optional in other contexts trying to make it required here confuses TS.\n  constructor(owner) {\n    super(owner);\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n    this.currentURL = null;\n    this.currentRouteName = null;\n    this.currentPath = null;\n    this.currentRoute = null;\n    this._qpCache = Object.create(null);\n    // Set of QueryParam['urlKey']\n    this._qpUpdates = new Set();\n    this._queuedQPChanges = {};\n    this._toplevelView = null;\n    this._handledErrors = new Set();\n    this._engineInstances = Object.create(null);\n    this._engineInfoByRoute = Object.create(null);\n    this._slowTransitionTimer = null;\n    this.currentState = null;\n    this.targetState = null;\n    assert('BUG: Missing owner', owner);\n    this._resetQueuedQueryParameterChanges();\n    this.namespace = owner.lookup('application:main');\n    let bucketCache = owner.lookup(P`-bucket-cache:main`);\n    assert('BUG: BucketCache should always be present', bucketCache instanceof BucketCache);\n    this._bucketCache = bucketCache;\n    let routerService = owner.lookup('service:router');\n    assert('BUG: RouterService should always be present', routerService !== undefined);\n    this._routerService = routerService;\n  }\n  _initRouterJs() {\n    let location = get(this, 'location');\n    let router = this;\n    const owner = getOwner(this);\n    assert('Router is unexpectedly missing an owner', owner);\n    let seen = Object.create(null);\n    class PrivateRouter extends Router {\n      getRoute(name) {\n        let routeName = name;\n        let routeOwner = owner;\n        let engineInfo = router._engineInfoByRoute[routeName];\n        if (engineInfo) {\n          let engineInstance = router._getEngineInstance(engineInfo);\n          routeOwner = engineInstance;\n          routeName = engineInfo.localFullName;\n        }\n        let fullRouteName = `route:${routeName}`;\n        assert('Route is unexpectedly missing an owner', routeOwner);\n        let route = routeOwner.lookup(fullRouteName);\n        if (seen[name]) {\n          assert('seen routes should exist', route);\n          return route;\n        }\n        seen[name] = true;\n        if (!route) {\n          // SAFETY: this is configured in `commonSetupRegistry` in the\n          // `@ember/application/lib` package.\n          let DefaultRoute = routeOwner.factoryFor('route:basic').class;\n          routeOwner.register(fullRouteName, DefaultRoute.extend());\n          route = routeOwner.lookup(fullRouteName);\n          if (DEBUG) {\n            if (router.namespace.LOG_ACTIVE_GENERATION) {\n              info(`generated -> ${fullRouteName}`, {\n                fullName: fullRouteName\n              });\n            }\n          }\n        }\n        route._setRouteName(routeName);\n        if (engineInfo && !hasDefaultSerialize(route)) {\n          throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n        }\n        return route;\n      }\n      getSerializer(name) {\n        let engineInfo = router._engineInfoByRoute[name];\n        // If this is not an Engine route, we fall back to the handler for serialization\n        if (!engineInfo) {\n          return;\n        }\n        return engineInfo.serializeMethod || defaultSerialize;\n      }\n      updateURL(path) {\n        once(() => {\n          location.setURL(path);\n          set(router, 'currentURL', path);\n        });\n      }\n      // TODO: merge into routeDidChange\n      didTransition(infos) {\n        assert('You attempted to override the \"didTransition\" method which has been deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', router.didTransition === defaultDidTransition);\n        router.didTransition(infos);\n      }\n      // TODO: merge into routeWillChange\n      willTransition(oldInfos, newInfos) {\n        assert('You attempted to override the \"willTransition\" method which has been deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', router.willTransition === defaultWillTransition);\n        router.willTransition(oldInfos, newInfos);\n      }\n      triggerEvent(routeInfos, ignoreFailure, name, args) {\n        return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);\n      }\n      routeWillChange(transition) {\n        router.trigger('routeWillChange', transition);\n        if (DEBUG) {\n          freezeRouteInfo(transition);\n        }\n        router._routerService.trigger('routeWillChange', transition);\n        // in case of intermediate transition we update the current route\n        // to make router.currentRoute.name consistent with router.currentRouteName\n        // see https://github.com/emberjs/ember.js/issues/19449\n        if (transition.isIntermediate) {\n          router.set('currentRoute', transition.to);\n        }\n      }\n      routeDidChange(transition) {\n        router.set('currentRoute', transition.to);\n        once(() => {\n          router.trigger('routeDidChange', transition);\n          if (DEBUG) {\n            freezeRouteInfo(transition);\n          }\n          router._routerService.trigger('routeDidChange', transition);\n        });\n      }\n      transitionDidError(error, transition) {\n        if (error.wasAborted || transition.isAborted) {\n          // If the error was a transition erorr or the transition aborted\n          // log the abort.\n          return logAbort(transition);\n        } else {\n          // Otherwise trigger the \"error\" event to attempt an intermediate\n          // transition into an error substate\n          transition.trigger(false, 'error', error.error, transition, error.route);\n          if (router._isErrorHandled(error.error)) {\n            // If we handled the error with a substate just roll the state back on\n            // the transition and send the \"routeDidChange\" event for landing on\n            // the error substate and return the error.\n            transition.rollback();\n            this.routeDidChange(transition);\n            return error.error;\n          } else {\n            // If it was not handled, abort the transition completely and return\n            // the error.\n            transition.abort();\n            return error.error;\n          }\n        }\n      }\n      replaceURL(url) {\n        if (location.replaceURL) {\n          let doReplaceURL = () => {\n            location.replaceURL(url);\n            set(router, 'currentURL', url);\n          };\n          once(doReplaceURL);\n        } else {\n          this.updateURL(url);\n        }\n      }\n    }\n    let routerMicrolib = this._routerMicrolib = new PrivateRouter();\n    let dslCallbacks = this.constructor.dslCallbacks || [K];\n    let dsl = this._buildDSL();\n    dsl.route('application', {\n      path: '/',\n      resetNamespace: true,\n      overrideNameAssertion: true\n    }, function () {\n      for (let i = 0; i < dslCallbacks.length; i++) {\n        dslCallbacks[i].call(this);\n      }\n    });\n    if (DEBUG) {\n      if (this.namespace.LOG_TRANSITIONS_INTERNAL) {\n        routerMicrolib.log = console.log.bind(console); // eslint-disable-line no-console\n      }\n    }\n\n    routerMicrolib.map(dsl.generate());\n  }\n  _buildDSL() {\n    let enableLoadingSubstates = this._hasModuleBasedResolver();\n    let router = this;\n    const owner = getOwner(this);\n    assert('Router is unexpectedly missing an owner', owner);\n    let options = {\n      enableLoadingSubstates,\n      resolveRouteMap(name) {\n        return owner.factoryFor(`route-map:${name}`);\n      },\n      addRouteForEngine(name, engineInfo) {\n        if (!router._engineInfoByRoute[name]) {\n          router._engineInfoByRoute[name] = engineInfo;\n        }\n      }\n    };\n    return new DSL(null, options);\n  }\n  /*\n    Resets all pending query parameter changes.\n    Called after transitioning to a new route\n    based on query parameter changes.\n  */\n  _resetQueuedQueryParameterChanges() {\n    this._queuedQPChanges = {};\n  }\n  _hasModuleBasedResolver() {\n    let owner = getOwner(this);\n    assert('Router is unexpectedly missing an owner', owner);\n    let resolver = get(owner, 'application.__registry__.resolver.moduleBasedResolver');\n    return Boolean(resolver);\n  }\n  /**\n    Initializes the current router instance and sets up the change handling\n    event listeners used by the instances `location` implementation.\n       A property named `initialURL` will be used to determine the initial URL.\n    If no value is found `/` will be used.\n       @method startRouting\n    @private\n  */\n  startRouting() {\n    if (this.setupRouter()) {\n      let initialURL = get(this, 'initialURL');\n      if (initialURL === undefined) {\n        initialURL = get(this, 'location').getURL();\n      }\n      let initialTransition = this.handleURL(initialURL);\n      if (initialTransition && initialTransition.error) {\n        throw initialTransition.error;\n      }\n    }\n  }\n  setupRouter() {\n    if (this._didSetupRouter) {\n      return false;\n    }\n    this._didSetupRouter = true;\n    this._setupLocation();\n    let location = get(this, 'location');\n    // Allow the Location class to cancel the router setup while it refreshes\n    // the page\n    if (get(location, 'cancelRouterSetup')) {\n      return false;\n    }\n    this._initRouterJs();\n    location.onUpdateURL(url => {\n      this.handleURL(url);\n    });\n    return true;\n  }\n  _setOutlets() {\n    // This is triggered async during Route#willDestroy.\n    // If the router is also being destroyed we do not want to\n    // to create another this._toplevelView (and leak the renderer)\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    let routeInfos = this._routerMicrolib.currentRouteInfos;\n    if (!routeInfos) {\n      return;\n    }\n    let root = null;\n    let parent = null;\n    for (let routeInfo of routeInfos) {\n      let route = routeInfo.route;\n      let render = getRenderState(route);\n      if (render) {\n        let state = {\n          render,\n          outlets: {\n            main: undefined\n          }\n        };\n        if (parent) {\n          parent.outlets.main = state;\n        } else {\n          root = state;\n        }\n        parent = state;\n      } else {\n        // It used to be that we would create a stub entry and keep traversing,\n        // but I don't think that is necessary anymore – if a parent route did\n        // not render, then the child routes have nowhere to render into these\n        // days. That wasn't always the case since in the past any route can\n        // render into any other route's outlets.\n        break;\n      }\n    }\n    // when a transitionTo happens after the validation phase\n    // during the initial transition _setOutlets is called\n    // when no routes are active. However, it will get called\n    // again with the correct values during the next turn of\n    // the runloop\n    if (root === null) {\n      return;\n    }\n    if (!this._toplevelView) {\n      let owner = getOwner(this);\n      assert('Router is unexpectedly missing an owner', owner);\n      // SAFETY: we don't presently have any type registries internally to make\n      // this safe, so in each of these cases we assume that nothing *else* is\n      // registered at this `FullName`, and simply check to make sure that\n      // *something* is.\n      let OutletView = owner.factoryFor('view:-outlet');\n      assert('[BUG] unexpectedly missing `view:-outlet`', OutletView !== undefined);\n      let application = owner.lookup('application:main');\n      assert('[BUG] unexpectedly missing `application:-main`', application !== undefined);\n      let environment = owner.lookup('-environment:main');\n      assert('[BUG] unexpectedly missing `-environment:main`', environment !== undefined);\n      let template = owner.lookup('template:-outlet');\n      assert('[BUG] unexpectedly missing `template:-outlet`', template !== undefined);\n      this._toplevelView = OutletView.create({\n        environment,\n        template,\n        application\n      });\n      this._toplevelView.setOutletState(root);\n      // TODO(SAFETY): At least one test runs without this set correctly. At a\n      // later time, update the test to configure this correctly. The test ID:\n      // `Router Service - non application test:  RouterService#transitionTo with basic route`\n      let instance = owner.lookup('-application-instance:main');\n      // let instance = owner.lookup('-application-instance:main') as ApplicationInstance | undefined;\n      // assert('[BUG] unexpectedly missing `-application-instance:main`', instance !== undefined);\n      if (instance) {\n        // SAFETY: LOL. This is calling a deprecated API with a type that we\n        // cannot actually confirm at a type level *is* a `ViewMixin`. Seems:\n        // not great on multiple fronts!\n        instance.didCreateRootView(this._toplevelView);\n      }\n    } else {\n      this._toplevelView.setOutletState(root);\n    }\n  }\n  handleURL(url) {\n    // Until we have an ember-idiomatic way of accessing #hashes, we need to\n    // remove it because router.js doesn't know how to handle it.\n    let _url = url.split(/#(.+)?/)[0];\n    return this._doURLTransition('handleURL', _url);\n  }\n  _doURLTransition(routerJsMethod, url) {\n    this._initialTransitionStarted = true;\n    let transition = this._routerMicrolib[routerJsMethod](url || '/');\n    didBeginTransition(transition, this);\n    return transition;\n  }\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       @method transitionTo\n    @param {String} [name] the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      assert(`A transition was attempted from '${this.currentRouteName}' to '${args[0]}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n      return this._doURLTransition('transitionTo', args[0]);\n    }\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    assert(`A transition was attempted from '${this.currentRouteName}' to '${routeName}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n    return this._doTransition(routeName, models, queryParams);\n  }\n  intermediateTransitionTo(name, ...args) {\n    this._routerMicrolib.intermediateTransitionTo(name, ...args);\n    updatePaths(this);\n    if (DEBUG) {\n      let infos = this._routerMicrolib.currentRouteInfos;\n      if (this.namespace.LOG_TRANSITIONS) {\n        assert('expected infos to be set', infos);\n        // eslint-disable-next-line no-console\n        console.log(`Intermediate-transitioned into '${EmberRouter._routePath(infos)}'`);\n      }\n    }\n  }\n  /**\n    Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n    it replaces the entry for the current route.\n    When the user clicks the \"back\" button in the browser, there will be fewer steps.\n    This is most commonly used to manage redirects in a way that does not cause confusing additions\n    to the user's browsing history.\n       @method replaceWith\n    @param {String} [name] the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n  generate(name, ...args) {\n    let url = this._routerMicrolib.generate(name, ...args);\n    assert('expected non-string location', typeof this.location !== 'string');\n    return this.location.formatURL(url);\n  }\n  /**\n    Determines if the supplied route is currently active.\n       @method isActive\n    @param routeName\n    @return {Boolean}\n    @private\n  */\n  isActive(routeName) {\n    return this._routerMicrolib.isActive(routeName);\n  }\n  /**\n    An alternative form of `isActive` that doesn't require\n    manual concatenation of the arguments into a single\n    array.\n       @method isActiveIntent\n    @param routeName\n    @param models\n    @param queryParams\n    @return {Boolean}\n    @private\n    @since 1.7.0\n  */\n  isActiveIntent(routeName, models, queryParams) {\n    return this.currentState.isActiveIntent(routeName, models, queryParams);\n  }\n  send(name, ...args) {\n    /*name, context*/\n    this._routerMicrolib.trigger(name, ...args);\n  }\n  /**\n    Does this router instance have the given route.\n       @method hasRoute\n    @return {Boolean}\n    @private\n  */\n  hasRoute(route) {\n    return this._routerMicrolib.hasRoute(route);\n  }\n  /**\n    Resets the state of the router by clearing the current route\n    handlers and deactivating them.\n       @private\n    @method reset\n   */\n  reset() {\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n    if (this._routerMicrolib) {\n      this._routerMicrolib.reset();\n    }\n  }\n  willDestroy() {\n    if (this._toplevelView) {\n      this._toplevelView.destroy();\n      this._toplevelView = null;\n    }\n    super.willDestroy();\n    this.reset();\n    let instances = this._engineInstances;\n    for (let name in instances) {\n      let instanceMap = instances[name];\n      assert('has instanceMap', instanceMap);\n      for (let id in instanceMap) {\n        let instance = instanceMap[id];\n        assert('has instance', instance);\n        run(instance, 'destroy');\n      }\n    }\n  }\n  /*\n    Called when an active route's query parameter has changed.\n    These changes are batched into a runloop run and trigger\n    a single transition.\n  */\n  _activeQPChanged(queryParameterName, newValue) {\n    this._queuedQPChanges[queryParameterName] = newValue;\n    once(this, this._fireQueryParamTransition);\n  }\n  // The queryParameterName is QueryParam['urlKey']\n  _updatingQPChanged(queryParameterName) {\n    this._qpUpdates.add(queryParameterName);\n  }\n  /*\n    Triggers a transition to a route based on query parameter changes.\n    This is called once per runloop, to batch changes.\n       e.g.\n       if these methods are called in succession:\n    this._activeQPChanged('foo', '10');\n      // results in _queuedQPChanges = { foo: '10' }\n    this._activeQPChanged('bar', false);\n      // results in _queuedQPChanges = { foo: '10', bar: false }\n       _queuedQPChanges will represent both of these changes\n    and the transition using `transitionTo` will be triggered\n    once.\n  */\n  _fireQueryParamTransition() {\n    this.transitionTo({\n      queryParams: this._queuedQPChanges\n    });\n    this._resetQueuedQueryParameterChanges();\n  }\n  _setupLocation() {\n    let location = this.location;\n    let rootURL = this.rootURL;\n    let owner = getOwner(this);\n    assert('Router is unexpectedly missing an owner', owner);\n    if ('string' === typeof location) {\n      let resolvedLocation = owner.lookup(`location:${location}`);\n      assert(`Could not resolve a location class at 'location:${location}'`, resolvedLocation);\n      location = set(this, 'location', resolvedLocation);\n    }\n    if (location !== null && typeof location === 'object') {\n      if (rootURL) {\n        set(location, 'rootURL', rootURL);\n      }\n      // ensure that initState is called AFTER the rootURL is set on\n      // the location instance\n      if (typeof location.initState === 'function') {\n        location.initState();\n      }\n    }\n  }\n  /**\n    Serializes the given query params according to their QP meta information.\n       @private\n    @method _serializeQueryParams\n    @param {Arrray<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _serializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n      } else if (value === undefined) {\n        return; // We don't serialize undefined values\n      } else {\n        queryParams[key] = this._serializeQueryParam(value, typeOf(value));\n      }\n    });\n  }\n  /**\n    Serializes the value of a query parameter based on a type\n       @private\n    @method _serializeQueryParam\n    @param {Object} value\n    @param {String} type\n  */\n  _serializeQueryParam(value, type) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (type === 'array') {\n      return JSON.stringify(value);\n    }\n    return `${value}`;\n  }\n  /**\n    Deserializes the given query params according to their QP meta information.\n       @private\n    @method _deserializeQueryParams\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _deserializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      // If we don't have QP meta info for a given key, then we do nothing\n      // because all values will be treated as strings\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n      }\n    });\n  }\n  /**\n    Deserializes the value of a query parameter based on a default type\n       @private\n    @method _deserializeQueryParam\n    @param {Object} value\n    @param {String} defaultType\n  */\n  _deserializeQueryParam(value, defaultType) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (defaultType === 'boolean') {\n      return value === 'true';\n    } else if (defaultType === 'number') {\n      return Number(value).valueOf();\n    } else if (defaultType === 'array') {\n      return emberA(JSON.parse(value));\n    }\n    return value;\n  }\n  /**\n    Removes (prunes) any query params with default values from the given QP\n    object. Default values are determined from the QP meta information per key.\n       @private\n    @method _pruneDefaultQueryParamValues\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _pruneDefaultQueryParamValues(routeInfos, queryParams) {\n    let qps = this._queryParamsFor(routeInfos);\n    for (let key in queryParams) {\n      let qp = qps.map[key];\n      if (qp && qp.serializedDefaultValue === queryParams[key]) {\n        delete queryParams[key];\n      }\n    }\n  }\n  _doTransition(_targetRouteName, models, _queryParams, _fromRouterService) {\n    let targetRouteName = _targetRouteName || getActiveTargetName(this._routerMicrolib);\n    assert(`The route ${targetRouteName} was not found`, Boolean(targetRouteName) && this._routerMicrolib.hasRoute(targetRouteName));\n    this._initialTransitionStarted = true;\n    let queryParams = {};\n    this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n    Object.assign(queryParams, _queryParams);\n    this._prepareQueryParams(targetRouteName, models, queryParams, Boolean(_fromRouterService));\n    let transition = this._routerMicrolib.transitionTo(targetRouteName, ...models, {\n      queryParams\n    });\n    didBeginTransition(transition, this);\n    return transition;\n  }\n  _processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams) {\n    // merge in any queryParams from the active transition which could include\n    // queryParams from the url on initial load.\n    if (!this._routerMicrolib.activeTransition) {\n      return;\n    }\n    let unchangedQPs = {};\n    let qpUpdates = this._qpUpdates;\n    let params = getFullQueryParams(this, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    for (let key in params) {\n      if (!qpUpdates.has(key)) {\n        unchangedQPs[key] = params[key];\n      }\n    }\n    // We need to fully scope queryParams so that we can create one object\n    // that represents both passed-in queryParams and ones that aren't changed\n    // from the active transition.\n    this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n    this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n    Object.assign(queryParams, unchangedQPs);\n  }\n  /**\n    Prepares the query params for a URL or Transition. Restores any undefined QP\n    keys/values, serializes all values, and then prunes any default values.\n       @private\n    @method _prepareQueryParams\n    @param {String} targetRouteName\n    @param {Array<Object>} models\n    @param {Object} queryParams\n    @param {boolean} keepDefaultQueryParamValues\n    @return {Void}\n  */\n  _prepareQueryParams(targetRouteName, models, queryParams, _fromRouterService) {\n    let state = calculatePostTransitionState(this, targetRouteName, models);\n    this._hydrateUnsuppliedQueryParams(state, queryParams, Boolean(_fromRouterService));\n    this._serializeQueryParams(state.routeInfos, queryParams);\n    if (!_fromRouterService) {\n      this._pruneDefaultQueryParamValues(state.routeInfos, queryParams);\n    }\n  }\n  /**\n    Returns the meta information for the query params of a given route. This\n    will be overridden to allow support for lazy routes.\n       @private\n    @method _getQPMeta\n    @param {RouteInfo} routeInfo\n    @return {Object}\n  */\n  _getQPMeta(routeInfo) {\n    let route = routeInfo.route;\n    return route && get(route, '_qp');\n  }\n  /**\n    Returns a merged query params meta object for a given set of routeInfos.\n    Useful for knowing what query params are available for a given route hierarchy.\n       @private\n    @method _queryParamsFor\n    @param {Array<RouteInfo>} routeInfos\n    @return {Object}\n   */\n  _queryParamsFor(routeInfos) {\n    let routeInfoLength = routeInfos.length;\n    let leafRouteName = routeInfos[routeInfoLength - 1].name;\n    let cached = this._qpCache[leafRouteName];\n    if (cached !== undefined) {\n      return cached;\n    }\n    let shouldCache = true;\n    let map = {};\n    let qps = [];\n    let qpsByUrlKey = DEBUG ? {} : null;\n    let qpMeta;\n    let urlKey;\n    let qpOther;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        shouldCache = false;\n        continue;\n      }\n      // Loop over each QP to make sure we don't have any collisions by urlKey\n      for (let qp of qpMeta.qps) {\n        if (DEBUG) {\n          urlKey = qp.urlKey;\n          qpOther = qpsByUrlKey[urlKey];\n          if (qpOther && qpOther.controllerName !== qp.controllerName) {\n            assert(`You're not allowed to have more than one controller property map to the same query param key, but both \\`${qpOther.scopedPropertyName}\\` and \\`${qp.scopedPropertyName}\\` map to \\`${urlKey}\\`. You can fix this by mapping one of the controller properties to a different query param key via the \\`as\\` config option, e.g. \\`${qpOther.prop}: { as: 'other-${qpOther.prop}' }\\``, false);\n          }\n          qpsByUrlKey[urlKey] = qp;\n        }\n        qps.push(qp);\n      }\n      Object.assign(map, qpMeta.map);\n    }\n    let finalQPMeta = {\n      qps,\n      map\n    };\n    if (shouldCache) {\n      this._qpCache[leafRouteName] = finalQPMeta;\n    }\n    return finalQPMeta;\n  }\n  /**\n    Maps all query param keys to their fully scoped property name of the form\n    `controllerName:propName`.\n       @private\n    @method _fullyScopeQueryParams\n    @param {String} leafRouteName\n    @param {Array<Object>} contexts\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _fullyScopeQueryParams(leafRouteName, contexts, queryParams) {\n    let state = calculatePostTransitionState(this, leafRouteName, contexts);\n    let routeInfos = state.routeInfos;\n    let qpMeta;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        continue;\n      }\n      for (let qp of qpMeta.qps) {\n        let presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        }\n      }\n    }\n  }\n  /**\n    Hydrates (adds/restores) any query params that have pre-existing values into\n    the given queryParams hash. This is what allows query params to be \"sticky\"\n    and restore their last known values for their scope.\n       @private\n    @method _hydrateUnsuppliedQueryParams\n    @param {TransitionState} state\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _hydrateUnsuppliedQueryParams(state, queryParams, _fromRouterService) {\n    let routeInfos = state.routeInfos;\n    let appCache = this._bucketCache;\n    let qpMeta;\n    let qp;\n    let presentProp;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        continue;\n      }\n      // Needs to stay for index loop to avoid throwIfClosureRequired\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        assert('expected qp', qp);\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        assert(`You passed the \\`${presentProp}\\` query parameter during a transition into ${qp.route.routeName}, please update to ${qp.urlKey}`, function () {\n          if (qp.urlKey === presentProp || qp.scopedPropertyName === presentProp) {\n            return true;\n          }\n          if (_fromRouterService && presentProp !== false && qp.urlKey !== qp.prop) {\n            // assumptions (mainly from current transitionTo_test):\n            // - this is only supposed to be run when there is an alias to a query param and the alias is used to set the param\n            // - when there is no alias: qp.urlKey == qp.prop\n            return false;\n          }\n          return true;\n        }());\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        } else {\n          let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, state.params);\n          assert('ROUTER BUG: expected appCache to be defined. This is an internal bug, please open an issue on Github if you see this message!', appCache);\n          queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n        }\n      }\n    }\n  }\n  _scheduleLoadingEvent(transition, originRoute) {\n    this._cancelSlowTransitionTimer();\n    this._slowTransitionTimer = scheduleOnce('routerTransitions', this, this._handleSlowTransition, transition, originRoute);\n  }\n  _handleSlowTransition(transition, originRoute) {\n    if (!this._routerMicrolib.activeTransition) {\n      // Don't fire an event if we've since moved on from\n      // the transition that put us in a loading state.\n      return;\n    }\n    let targetState = new RouterState(this, this._routerMicrolib, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    this.set('targetState', targetState);\n    transition.trigger(true, 'loading', transition, originRoute);\n  }\n  _cancelSlowTransitionTimer() {\n    if (this._slowTransitionTimer) {\n      cancel(this._slowTransitionTimer);\n    }\n    this._slowTransitionTimer = null;\n  }\n  // These three helper functions are used to ensure errors aren't\n  // re-raised if they're handled in a route's error action.\n  _markErrorAsHandled(error) {\n    this._handledErrors.add(error);\n  }\n  _isErrorHandled(error) {\n    return this._handledErrors.has(error);\n  }\n  _clearHandledError(error) {\n    this._handledErrors.delete(error);\n  }\n  _getEngineInstance({\n    name,\n    instanceId,\n    mountPoint\n  }) {\n    let engineInstances = this._engineInstances;\n    let namedInstances = engineInstances[name];\n    if (!namedInstances) {\n      namedInstances = Object.create(null);\n      engineInstances[name] = namedInstances;\n    }\n    // We just set these!\n    assert('has namedInstances', namedInstances);\n    let engineInstance = namedInstances[instanceId];\n    if (!engineInstance) {\n      let owner = getOwner(this);\n      assert('Expected router to have EngineInstance as owner', owner instanceof EngineInstance);\n      assert(`You attempted to mount the engine '${name}' in your router map, but the engine can not be found.`, owner.hasRegistration(`engine:${name}`));\n      engineInstance = owner.buildChildEngineInstance(name, {\n        routable: true,\n        mountPoint\n      });\n      engineInstance.boot();\n      namedInstances[instanceId] = engineInstance;\n    }\n    return engineInstance;\n  }\n}\n/*\n  Helper function for iterating over routes in a set of routeInfos that are\n  at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n  and the routeInfos given were for 'foo.bar.baz', then the given callback\n  will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n  individually.\n\n  If the callback returns anything other than `true`, then iteration will stop.\n\n  @private\n  @param {Route} originRoute\n  @param {Array<RouteInfo>} routeInfos\n  @param {Function} callback\n  @return {Void}\n */\nfunction forEachRouteAbove(routeInfos, callback) {\n  for (let i = routeInfos.length - 1; i >= 0; --i) {\n    let routeInfo = routeInfos[i];\n    assert('has routeInfo', routeInfo);\n    let route = routeInfo.route;\n    // routeInfo.handler being `undefined` generally means either:\n    //\n    // 1. an error occurred during creation of the route in question\n    // 2. the route is across an async boundary (e.g. within an engine)\n    //\n    // In both of these cases, we cannot invoke the callback on that specific\n    // route, because it just doesn't exist...\n    if (route === undefined) {\n      continue;\n    }\n    if (callback(route, routeInfo) !== true) {\n      return;\n    }\n  }\n}\n// These get invoked when an action bubbles above ApplicationRoute\n// and are not meant to be overridable.\nlet defaultActionHandlers = {\n  willResolveModel(_routeInfos, transition, originRoute) {\n    this._scheduleLoadingEvent(transition, originRoute);\n  },\n  // Attempt to find an appropriate error route or substate to enter.\n  error(routeInfos, error, transition) {\n    let router = this;\n    let routeInfoWithError = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfo since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithError) {\n        // Check for the existence of an 'error' route.\n        let errorRouteName = findRouteStateName(route, 'error');\n        if (errorRouteName) {\n          router._markErrorAsHandled(error);\n          router.intermediateTransitionTo(errorRouteName, error);\n          return false;\n        }\n      }\n      // Check for an 'error' substate route\n      let errorSubstateName = findRouteSubstateName(route, 'error');\n      if (errorSubstateName) {\n        router._markErrorAsHandled(error);\n        router.intermediateTransitionTo(errorSubstateName, error);\n        return false;\n      }\n      return true;\n    });\n    logError(error, `Error while processing route: ${transition.targetName}`);\n  },\n  // Attempt to find an appropriate loading route or substate to enter.\n  loading(routeInfos, transition) {\n    let router = this;\n    let routeInfoWithSlowLoading = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfos since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithSlowLoading) {\n        // Check for the existence of a 'loading' route.\n        let loadingRouteName = findRouteStateName(route, 'loading');\n        if (loadingRouteName) {\n          router.intermediateTransitionTo(loadingRouteName);\n          return false;\n        }\n      }\n      // Check for loading substate\n      let loadingSubstateName = findRouteSubstateName(route, 'loading');\n      if (loadingSubstateName) {\n        router.intermediateTransitionTo(loadingSubstateName);\n        return false;\n      }\n      // Don't bubble above pivot route.\n      return transition.pivotHandler !== route;\n    });\n  }\n};\nfunction logError(_error, initialMessage) {\n  let errorArgs = [];\n  let error;\n  if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n    error = _error.errorThrown;\n  } else {\n    error = _error;\n  }\n  if (initialMessage) {\n    errorArgs.push(initialMessage);\n  }\n  if (error) {\n    if (error.message) {\n      errorArgs.push(error.message);\n    }\n    if (error.stack) {\n      errorArgs.push(error.stack);\n    }\n    if (typeof error === 'string') {\n      errorArgs.push(error);\n    }\n  }\n  console.error(...errorArgs); //eslint-disable-line no-console\n}\n/**\n  Finds the name of the substate route if it exists for the given route. A\n  substate route is of the form `route_state`, such as `foo_loading`.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\nfunction findRouteSubstateName(route, state) {\n  let owner = getOwner(route);\n  assert('Route is unexpectedly missing an owner', owner);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let substateName = `${routeName}_${state}`;\n  let substateNameFull = `${fullRouteName}_${state}`;\n  return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n}\n/**\n  Finds the name of the state route if it exists for the given route. A state\n  route is of the form `route.state`, such as `foo.loading`. Properly Handles\n  `application` named routes.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\nfunction findRouteStateName(route, state) {\n  let owner = getOwner(route);\n  assert('Route is unexpectedly missing an owner', owner);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let stateName = routeName === 'application' ? state : `${routeName}.${state}`;\n  let stateNameFull = fullRouteName === 'application' ? state : `${fullRouteName}.${state}`;\n  return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n}\n/**\n  Determines whether or not a route has been defined by checking that the route\n  is in the Router's map and the owner has a registration for that route.\n\n  @private\n  @param {Owner} owner\n  @param {Router} router\n  @param {String} localName\n  @param {String} fullName\n  @return {Boolean}\n*/\nfunction routeHasBeenDefined(owner, router, localName, fullName) {\n  let routerHasRoute = router.hasRoute(fullName);\n  let ownerHasRoute = owner.factoryFor(`template:${localName}`) || owner.factoryFor(`route:${localName}`);\n  return routerHasRoute && ownerHasRoute;\n}\nexport function triggerEvent(routeInfos, ignoreFailure, name, args) {\n  if (!routeInfos) {\n    if (ignoreFailure) {\n      return;\n    }\n    // TODO: update?\n    throw new Error(`Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \\`.send()\\` on the \\`Transition\\` object passed to the \\`model/beforeModel/afterModel\\` hooks.`);\n  }\n  let eventWasHandled = false;\n  let routeInfo, handler, actionHandler;\n  for (let i = routeInfos.length - 1; i >= 0; i--) {\n    routeInfo = routeInfos[i];\n    assert('[BUG] Missing routeInfo', routeInfo);\n    handler = routeInfo.route;\n    actionHandler = handler && handler.actions && handler.actions[name];\n    if (actionHandler) {\n      if (actionHandler.apply(handler, args) === true) {\n        eventWasHandled = true;\n      } else {\n        // Should only hit here if a non-bubbling error action is triggered on a route.\n        if (name === 'error') {\n          assert('[BUG] Missing handler', handler);\n          handler._router._markErrorAsHandled(args[0]);\n        }\n        return;\n      }\n    }\n  }\n  let defaultHandler = defaultActionHandlers[name];\n  if (defaultHandler) {\n    defaultHandler.call(this, routeInfos, ...args);\n    return;\n  }\n  if (!eventWasHandled && !ignoreFailure) {\n    throw new Error(`Nothing handled the action '${name}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`);\n  }\n}\nfunction calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n  let state = emberRouter._routerMicrolib.applyIntent(leafRouteName, contexts);\n  let {\n    routeInfos,\n    params\n  } = state;\n  for (let routeInfo of routeInfos) {\n    // If the routeInfo is not resolved, we serialize the context into params\n    if (!routeInfo.isResolved) {\n      params[routeInfo.name] = routeInfo.serialize(routeInfo.context);\n    } else {\n      params[routeInfo.name] = routeInfo.params;\n    }\n  }\n  return state;\n}\nfunction updatePaths(router) {\n  let infos = router._routerMicrolib.currentRouteInfos;\n  if (infos.length === 0) {\n    return;\n  }\n  let path = EmberRouter._routePath(infos);\n  let info = infos[infos.length - 1];\n  assert('expected info', info);\n  let currentRouteName = info.name;\n  let location = router.location;\n  assert('expected location to not be a string', typeof location !== 'string');\n  let currentURL = location.getURL();\n  set(router, 'currentPath', path);\n  set(router, 'currentRouteName', currentRouteName);\n  set(router, 'currentURL', currentURL);\n}\nfunction didBeginTransition(transition, router) {\n  let routerState = new RouterState(router, router._routerMicrolib, transition[STATE_SYMBOL]);\n  if (!router.currentState) {\n    router.set('currentState', routerState);\n  }\n  router.set('targetState', routerState);\n  transition.promise = transition.catch(error => {\n    if (router._isErrorHandled(error)) {\n      router._clearHandledError(error);\n    } else {\n      throw error;\n    }\n  }, 'Transition Error');\n}\nfunction forEachQueryParam(router, routeInfos, queryParams, callback) {\n  let qpCache = router._queryParamsFor(routeInfos);\n  for (let key in queryParams) {\n    if (!Object.prototype.hasOwnProperty.call(queryParams, key)) {\n      continue;\n    }\n    let value = queryParams[key];\n    let qp = qpCache.map[key];\n    callback(key, value, qp);\n  }\n}\nEmberRouter.reopen({\n  didTransition: defaultDidTransition,\n  willTransition: defaultWillTransition,\n  rootURL: '/',\n  location: 'hash',\n  // FIXME: Does this need to be overrideable via extend?\n  url: computed(function () {\n    let location = get(this, 'location');\n    if (typeof location === 'string') {\n      return undefined;\n    }\n    return location.getURL();\n  })\n});\nexport default EmberRouter;","import { assert } from '@ember/debug';\nimport { onErrorTarget } from '@ember/-internals/error-handling';\nimport { flushAsyncObservers } from '@ember/-internals/metal';\nimport Backburner from 'backburner.js';\nlet currentRunLoop = null;\nexport function _getCurrentRunLoop() {\n  return currentRunLoop;\n}\nfunction onBegin(current) {\n  currentRunLoop = current;\n}\nfunction onEnd(_current, next) {\n  currentRunLoop = next;\n  flushAsyncObservers();\n}\nfunction flush(queueName, next) {\n  if (queueName === 'render' || queueName === _rsvpErrorQueue) {\n    flushAsyncObservers();\n  }\n  next();\n}\nexport const _rsvpErrorQueue = `${Math.random()}${Date.now()}`.replace('.', '');\n/**\n  Array of named queues. This array determines the order in which queues\n  are flushed at the end of the RunLoop. You can define your own queues by\n  simply adding the queue name to this array. Normally you should not need\n  to inspect or modify this property.\n\n  @property queues\n  @type Array\n  @default ['actions', 'destroy']\n  @private\n*/\nexport const _queues = ['actions',\n// used in router transitions to prevent unnecessary loading state entry\n// if all context promises resolve on the 'actions' queue first\n'routerTransitions', 'render', 'afterRender', 'destroy',\n// used to re-throw unhandled RSVP rejection errors specifically in this\n// position to avoid breaking anything rendered in the other sections\n_rsvpErrorQueue];\n/**\n * @internal\n * @private\n */\nexport const _backburner = new Backburner(_queues, {\n  defaultQueue: 'actions',\n  onBegin,\n  onEnd,\n  onErrorTarget,\n  onErrorMethod: 'onerror',\n  flush\n});\nexport function run(...args) {\n  // @ts-expect-error TS doesn't like our spread args\n  return _backburner.run(...args);\n}\nexport function join(methodOrTarget, methodOrArg, ...additionalArgs) {\n  return _backburner.join(methodOrTarget, methodOrArg, ...additionalArgs);\n}\nexport function bind(...curried) {\n  assert('could not find a suitable method to bind', function (methodOrTarget, methodOrArg) {\n    // Applies the same logic as backburner parseArgs for detecting if a method\n    // is actually being passed.\n    let length = arguments.length;\n    if (length === 0) {\n      return false;\n    } else if (length === 1) {\n      return typeof methodOrTarget === 'function';\n    } else {\n      return typeof methodOrArg === 'function' ||\n      // second argument is a function\n      methodOrTarget !== null && typeof methodOrArg === 'string' && methodOrArg in methodOrTarget ||\n      // second argument is the name of a method in first argument\n      typeof methodOrTarget === 'function' //first argument is a function\n      ;\n    }\n    // @ts-expect-error TS doesn't like our spread args\n  }(...curried));\n  // @ts-expect-error TS doesn't like our spread args\n  return (...args) => join(...curried.concat(args));\n}\n/**\n  Begins a new RunLoop. Any deferred actions invoked after the begin will\n  be buffered until you invoke a matching call to `end()`. This is\n  a lower-level way to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method begin\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\nexport function begin() {\n  _backburner.begin();\n}\n/**\n  Ends a RunLoop. This must be called sometime after you call\n  `begin()` to flush any deferred actions. This is a lower-level way\n  to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method end\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\nexport function end() {\n  _backburner.end();\n}\nexport function schedule(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.schedule(...args);\n}\n// Used by global test teardown\nexport function _hasScheduledTimers() {\n  return _backburner.hasTimers();\n}\n// Used by global test teardown\nexport function _cancelTimers() {\n  _backburner.cancelTimers();\n}\nexport function later(...args) {\n  return _backburner.later(...args);\n}\nexport function once(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.scheduleOnce('actions', ...args);\n}\nexport function scheduleOnce(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.scheduleOnce(...args);\n}\nexport function next(...args) {\n  return _backburner.later(...args, 1);\n}\n/**\n  Cancels a scheduled item. Must be a value returned by `later()`,\n  `once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n  `throttle()`.\n\n  ```javascript\n  import {\n    next,\n    cancel,\n    later,\n    scheduleOnce,\n    once,\n    throttle,\n    debounce\n  } from '@ember/runloop';\n\n  let runNext = next(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runNext);\n\n  let runLater = later(myContext, function() {\n    // will not be executed\n  }, 500);\n\n  cancel(runLater);\n\n  let runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runScheduleOnce);\n\n  let runOnce = once(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runOnce);\n\n  let throttle = throttle(myContext, function() {\n    // will not be executed\n  }, 1, false);\n\n  cancel(throttle);\n\n  let debounce = debounce(myContext, function() {\n    // will not be executed\n  }, 1);\n\n  cancel(debounce);\n\n  let debounceImmediate = debounce(myContext, function() {\n    // will be executed since we passed in true (immediate)\n  }, 100, true);\n\n  // the 100ms delay until this method can be called again will be canceled\n  cancel(debounceImmediate);\n  ```\n\n  @method cancel\n  @static\n  @for @ember/runloop\n  @param {Object} [timer] Timer object to cancel\n  @return {Boolean} true if canceled or false/undefined if it wasn't found\n  @public\n*/\nexport function cancel(timer) {\n  return _backburner.cancel(timer);\n}\nexport function debounce(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.debounce(...args);\n}\nexport function throttle(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.throttle(...args);\n}","import { FrameworkObject } from '@ember/object/-internals';\nimport { inject as metalInject } from '@ember/-internals/metal';\nexport function inject(...args) {\n  return metalInject('service', ...args);\n}\nexport function service(...args) {\n  return metalInject('service', ...args);\n}\n/**\n  @class Service\n  @extends EmberObject\n  @since 1.10.0\n  @public\n*/\nclass Service extends FrameworkObject {}\nService.isServiceFactory = true;\nexport default Service;","import { DEBUG } from '@glimmer/env';\nexport let __emberTemplateCompiler;\nexport const compileTemplate = (...args) => {\n  if (!__emberTemplateCompiler) {\n    throw new Error('Attempted to call `compileTemplate` without first loading the runtime template compiler.');\n  }\n  return __emberTemplateCompiler.compile(...args);\n};\nexport let precompileTemplate;\nif (DEBUG) {\n  precompileTemplate = () => {\n    throw new Error('Attempted to call `precompileTemplate` at runtime, but this API is meant to be used at compile time. You should use `compileTemplate` instead.');\n  };\n}\nexport function __registerTemplateCompiler(c) {\n  __emberTemplateCompiler = c;\n}","export let registerAsyncHelper;\nexport let registerHelper;\nexport let registerWaiter;\nexport let unregisterHelper;\nexport let unregisterWaiter;\nexport let _impl;\nlet testingNotAvailableMessage = () => {\n  throw new Error('Attempted to use test utilities, but `ember-testing` was not included');\n};\nregisterAsyncHelper = testingNotAvailableMessage;\nregisterHelper = testingNotAvailableMessage;\nregisterWaiter = testingNotAvailableMessage;\nunregisterHelper = testingNotAvailableMessage;\nunregisterWaiter = testingNotAvailableMessage;\nexport function registerTestImplementation(impl) {\n  let {\n    Test\n  } = impl;\n  registerAsyncHelper = Test.registerAsyncHelper;\n  registerHelper = Test.registerHelper;\n  registerWaiter = Test.registerWaiter;\n  unregisterHelper = Test.unregisterHelper;\n  unregisterWaiter = Test.unregisterWaiter;\n  _impl = impl;\n}","import typeOf from './type-of';\nimport { Comparable } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nconst TYPE_ORDER = {\n  undefined: 0,\n  null: 1,\n  boolean: 2,\n  number: 3,\n  string: 4,\n  array: 5,\n  object: 6,\n  instance: 7,\n  function: 8,\n  class: 9,\n  date: 10,\n  regexp: 11,\n  filelist: 12,\n  error: 13\n};\n//\n// the spaceship operator\n//\n//                      `. ___\n//                     __,' __`.                _..----....____\n//         __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'\n//   _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'\n// ,'________________                          \\`-._`-','\n//  `._              ```````````------...___   '-.._'-:\n//     ```--.._      ,.                     ````--...__\\-.\n//             `.--. `-` \"INFINITY IS LESS     ____    |  |`\n//               `. `.   THAN BEYOND\"        ,'`````.  ;  ;`\n//                 `._`.        __________   `.      \\'__/`\n//                    `-:._____/______/___/____`.     \\  `\n//                                |       `._    `.    \\\n//                                `._________`-.   `.   `.___\n//                                              SSt  `------'`\nfunction spaceship(a, b) {\n  // SAFETY: `Math.sign` always returns `-1` for negative, `0` for zero, and `1`\n  // for positive numbers. (The extra precision is useful for the way we use\n  // this in the context of `compare`.)\n  return Math.sign(a - b);\n}\n/**\n @module @ember/utils\n*/\n/**\n Compares two javascript values and returns:\n\n  - -1 if the first is smaller than the second,\n  - 0 if both are equal,\n  - 1 if the first is greater than the second.\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 'hello');  // 0\n  compare('abc', 'dfg');      // -1\n  compare(2, 1);              // 1\n  ```\n\n If the types of the two objects are different precedence occurs in the\n following order, with types earlier in the list considered `<` types\n later in the list:\n\n  - undefined\n  - null\n  - boolean\n  - number\n  - string\n  - array\n  - object\n  - instance\n  - function\n  - class\n  - date\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 50);       // 1\n  compare(50, 'hello');       // -1\n  ```\n\n @method compare\n @for @ember/utils\n @static\n @param {Object} v First value to compare\n @param {Object} w Second value to compare\n @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n @public\n*/\nexport default function compare(v, w) {\n  if (v === w) {\n    return 0;\n  }\n  let type1 = typeOf(v);\n  let type2 = typeOf(w);\n  if (type1 === 'instance' && isComparable(v) && v.constructor.compare) {\n    return v.constructor.compare(v, w);\n  }\n  if (type2 === 'instance' && isComparable(w) && w.constructor.compare) {\n    // SAFETY: Multiplying by a negative just changes the sign\n    return w.constructor.compare(w, v) * -1;\n  }\n  let res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n  if (res !== 0) {\n    return res;\n  }\n  // types are equal - so we have to check values now\n  switch (type1) {\n    case 'boolean':\n      assert('both are boolean', typeof v === 'boolean' && typeof w === 'boolean');\n      return spaceship(Number(v), Number(w));\n    case 'number':\n      assert('both are numbers', typeof v === 'number' && typeof w === 'number');\n      return spaceship(v, w);\n    case 'string':\n      assert('both are strings', typeof v === 'string' && typeof w === 'string');\n      return spaceship(v.localeCompare(w), 0);\n    case 'array':\n      {\n        assert('both are arrays', Array.isArray(v) && Array.isArray(w));\n        let vLen = v.length;\n        let wLen = w.length;\n        let len = Math.min(vLen, wLen);\n        for (let i = 0; i < len; i++) {\n          let r = compare(v[i], w[i]);\n          if (r !== 0) {\n            return r;\n          }\n        }\n        // all elements are equal now\n        // shorter array should be ordered first\n        return spaceship(vLen, wLen);\n      }\n    case 'instance':\n      if (isComparable(v) && v.compare) {\n        return v.compare(v, w);\n      }\n      return 0;\n    case 'date':\n      assert('both are dates', v instanceof Date && w instanceof Date);\n      return spaceship(v.getTime(), w.getTime());\n    default:\n      return 0;\n  }\n}\nfunction isComparable(value) {\n  return Comparable.detect(value);\n}","/**\n @module @ember/utils\n*/\n/**\n  Compares two objects, returning true if they are equal.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual('hello', 'hello');                   // true\n  isEqual(1, 2);                               // false\n  ```\n\n  `isEqual` is a more specific comparison than a triple equal comparison.\n  It will call the `isEqual` instance method on the objects being\n  compared, allowing finer control over when objects should be considered\n  equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  let Person = EmberObject.extend({\n    isEqual(other) { return this.ssn == other.ssn; }\n  });\n\n  let personA = Person.create({name: 'Muhammad Ali', ssn: '123-45-6789'});\n  let personB = Person.create({name: 'Cassius Clay', ssn: '123-45-6789'});\n\n  isEqual(personA, personB); // true\n  ```\n\n  Due to the expense of array comparisons, collections will never be equal to\n  each other even if each of their items are equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual([4, 2], [4, 2]);                     // false\n  ```\n\n  @method isEqual\n  @for @ember/utils\n  @static\n  @param {Object} a first object to compare\n  @param {Object} b second object to compare\n  @return {Boolean}\n  @public\n*/\nexport default function isEqual(a, b) {\n  if (a && typeof a.isEqual === 'function') {\n    return a.isEqual(b);\n  }\n  if (a instanceof Date && b instanceof Date) {\n    return a.getTime() === b.getTime();\n  }\n  return a === b;\n}","import isEmpty from './is_empty';\n/**\n @module @ember/utils\n*/\n/**\n  A value is blank if it is empty or a whitespace string.\n\n  ```javascript\n  import { isBlank } from '@ember/utils';\n\n  isBlank(null);            // true\n  isBlank(undefined);       // true\n  isBlank('');              // true\n  isBlank([]);              // true\n  isBlank('\\n\\t');          // true\n  isBlank('  ');            // true\n  isBlank({});              // false\n  isBlank('\\n\\t Hello');    // false\n  isBlank('Hello world');   // false\n  isBlank([1,2,3]);         // false\n  ```\n\n  @method isBlank\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.5.0\n  @public\n*/\nexport default function isBlank(obj) {\n  return isEmpty(obj) || typeof obj === 'string' && /\\S/.test(obj) === false;\n}","import { get } from '@ember/object';\nimport { hasUnknownProperty } from '@ember/-internals/metal';\n/**\n @module @ember/utils\n*/\n/**\n  Verifies that a value is `null` or `undefined`, an empty string, or an empty\n  array.\n\n  Constrains the rules on `isNone` by returning true for empty strings and\n  empty arrays.\n\n  If the value is an object with a `size` property of type number, it is used\n  to check emptiness.\n\n  ```javascript\n  isEmpty(null);             // true\n  isEmpty(undefined);        // true\n  isEmpty('');               // true\n  isEmpty([]);               // true\n  isEmpty({ size: 0});       // true\n  isEmpty({});               // false\n  isEmpty('Adam Hawkins');   // false\n  isEmpty([0,1,2]);          // false\n  isEmpty('\\n\\t');           // false\n  isEmpty('  ');             // false\n  isEmpty({ size: 1 })       // false\n  isEmpty({ size: () => 0 }) // false\n  ```\n\n  @method isEmpty\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\nexport default function isEmpty(obj) {\n  if (obj === null || obj === undefined) {\n    return true;\n  }\n  if (!hasUnknownProperty(obj) && typeof obj.size === 'number') {\n    return !obj.size;\n  }\n  if (typeof obj === 'object') {\n    let size = get(obj, 'size');\n    if (typeof size === 'number') {\n      return !size;\n    }\n    let length = get(obj, 'length');\n    if (typeof length === 'number') {\n      return !length;\n    }\n  }\n  if (typeof obj.length === 'number' && typeof obj !== 'function') {\n    return !obj.length;\n  }\n  return false;\n}","/**\n @module @ember/utils\n*/\n/**\n  Returns true if the passed value is null or undefined. This avoids errors\n  from JSLint complaining about use of ==, which can be technically\n  confusing.\n\n  ```javascript\n  isNone(null);          // true\n  isNone(undefined);     // true\n  isNone('');            // false\n  isNone([]);            // false\n  isNone(function() {}); // false\n  ```\n\n  @method isNone\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\nexport default function isNone(obj) {\n  return obj === null || obj === undefined;\n}","import isBlank from './is_blank';\n/**\n @module @ember/utils\n*/\n/**\n  A value is present if it not `isBlank`.\n\n  ```javascript\n  isPresent(null);            // false\n  isPresent(undefined);       // false\n  isPresent('');              // false\n  isPresent('  ');            // false\n  isPresent('\\n\\t');          // false\n  isPresent([]);              // false\n  isPresent({ length: 0 });   // false\n  isPresent(false);           // true\n  isPresent(true);            // true\n  isPresent('string');        // true\n  isPresent(0);               // true\n  isPresent(function() {});   // true\n  isPresent({});              // true\n  isPresent('\\n\\t Hello');    // true\n  isPresent([1, 2, 3]);       // true\n  ```\n\n  @method isPresent\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.8.0\n  @public\n*/\nexport default function isPresent(obj) {\n  return !isBlank(obj);\n}","import CoreObject from '@ember/object/core';\n// ........................................\n// TYPING & ARRAY MESSAGING\n//\nconst TYPE_MAP = {\n  '[object Boolean]': 'boolean',\n  '[object Number]': 'number',\n  '[object String]': 'string',\n  '[object Function]': 'function',\n  '[object AsyncFunction]': 'function',\n  '[object Array]': 'array',\n  '[object Date]': 'date',\n  '[object RegExp]': 'regexp',\n  '[object Object]': 'object',\n  '[object FileList]': 'filelist'\n};\nconst {\n  toString\n} = Object.prototype;\n/**\n @module @ember/utils\n*/\n/**\n  Returns a consistent type for the passed object.\n\n  Use this instead of the built-in `typeof` to get the type of an item.\n  It will return the same result across all browsers and includes a bit\n  more detail. Here is what will be returned:\n\n      | Return Value  | Meaning                                              |\n      |---------------|------------------------------------------------------|\n      | 'string'      | String primitive or String object.                   |\n      | 'number'      | Number primitive or Number object.                   |\n      | 'boolean'     | Boolean primitive or Boolean object.                 |\n      | 'null'        | Null value                                           |\n      | 'undefined'   | Undefined value                                      |\n      | 'function'    | A function                                           |\n      | 'array'       | An instance of Array                                 |\n      | 'regexp'      | An instance of RegExp                                |\n      | 'date'        | An instance of Date                                  |\n      | 'filelist'    | An instance of FileList                              |\n      | 'class'       | An Ember class (created using EmberObject.extend())  |\n      | 'instance'    | An Ember object instance                             |\n      | 'error'       | An instance of the Error object                      |\n      | 'object'      | A JavaScript object not inheriting from EmberObject  |\n\n  Examples:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import { typeOf } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  typeOf();                       // 'undefined'\n  typeOf(null);                   // 'null'\n  typeOf(undefined);              // 'undefined'\n  typeOf('michael');              // 'string'\n  typeOf(new String('michael'));  // 'string'\n  typeOf(101);                    // 'number'\n  typeOf(new Number(101));        // 'number'\n  typeOf(true);                   // 'boolean'\n  typeOf(new Boolean(true));      // 'boolean'\n  typeOf(A);                      // 'function'\n  typeOf(A());                    // 'array'\n  typeOf([1, 2, 90]);             // 'array'\n  typeOf(/abc/);                  // 'regexp'\n  typeOf(new Date());             // 'date'\n  typeOf(event.target.files);     // 'filelist'\n  typeOf(EmberObject.extend());   // 'class'\n  typeOf(EmberObject.create());   // 'instance'\n  typeOf(new Error('teamocil'));  // 'error'\n\n  // 'normal' JavaScript object\n  typeOf({ a: 'b' });             // 'object'\n  ```\n\n  @method typeOf\n  @for @ember/utils\n  @param item the item to check\n  @return {String} the type\n  @public\n  @static\n*/\nexport default function typeOf(item) {\n  if (item === null) {\n    return 'null';\n  }\n  if (item === undefined) {\n    return 'undefined';\n  }\n  let ret = TYPE_MAP[toString.call(item)] || 'object';\n  if (ret === 'function') {\n    if (CoreObject.detect(item)) {\n      ret = 'class';\n    }\n  } else if (ret === 'object') {\n    if (item instanceof Error) {\n      ret = 'error';\n    } else if (item instanceof CoreObject) {\n      ret = 'instance';\n    } else if (item instanceof Date) {\n      ret = 'date';\n    }\n  }\n  return ret;\n}","import '@glimmer/util';\nimport { Op, MachineOp } from '@glimmer/vm';\n\n/* This file is generated by build/debug.js */\n\nfunction opcodeMetadata(op, isMachine) {\n  let value = isMachine ? MACHINE_METADATA[op] : METADATA[op];\n  return value || null;\n}\nconst METADATA = new Array(Op.Size).fill(null);\nconst MACHINE_METADATA = new Array(Op.Size).fill(null);\nMACHINE_METADATA[MachineOp.PushFrame] = {\n  name: 'PushFrame',\n  mnemonic: 'pushf',\n  before: null,\n  stackChange: 2,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMACHINE_METADATA[MachineOp.PopFrame] = {\n  name: 'PopFrame',\n  mnemonic: 'popf',\n  before: null,\n  stackChange: -2,\n  ops: [],\n  operands: 0,\n  check: false\n};\nMACHINE_METADATA[MachineOp.InvokeVirtual] = {\n  name: 'InvokeVirtual',\n  mnemonic: 'vcall',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMACHINE_METADATA[MachineOp.InvokeStatic] = {\n  name: 'InvokeStatic',\n  mnemonic: 'scall',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'offset',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMACHINE_METADATA[MachineOp.Jump] = {\n  name: 'Jump',\n  mnemonic: 'goto',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'to',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMACHINE_METADATA[MachineOp.Return] = {\n  name: 'Return',\n  mnemonic: 'ret',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: false\n};\nMACHINE_METADATA[MachineOp.ReturnTo] = {\n  name: 'ReturnTo',\n  mnemonic: 'setra',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'offset',\n    type: 'i32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Helper] = {\n  name: 'Helper',\n  mnemonic: 'ncall',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'helper',\n    type: 'handle'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.DynamicHelper] = {\n  name: 'DynamicHelper',\n  mnemonic: 'dynamiccall',\n  before: null,\n  stackChange: null,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.SetNamedVariables] = {\n  name: 'SetNamedVariables',\n  mnemonic: 'vsargs',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.SetBlocks] = {\n  name: 'SetBlocks',\n  mnemonic: 'vbblocks',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.SetVariable] = {\n  name: 'SetVariable',\n  mnemonic: 'sbvar',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'symbol',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.SetBlock] = {\n  name: 'SetBlock',\n  mnemonic: 'sblock',\n  before: null,\n  stackChange: -3,\n  ops: [{\n    name: 'symbol',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.GetVariable] = {\n  name: 'GetVariable',\n  mnemonic: 'symload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'symbol',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.GetProperty] = {\n  name: 'GetProperty',\n  mnemonic: 'getprop',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'property',\n    type: 'str'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.GetBlock] = {\n  name: 'GetBlock',\n  mnemonic: 'blockload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'block',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.SpreadBlock] = {\n  name: 'SpreadBlock',\n  mnemonic: 'blockspread',\n  before: null,\n  stackChange: 2,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.HasBlock] = {\n  name: 'HasBlock',\n  mnemonic: 'hasblockload',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.HasBlockParams] = {\n  name: 'HasBlockParams',\n  mnemonic: 'hasparamsload',\n  before: null,\n  stackChange: -2,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Concat] = {\n  name: 'Concat',\n  mnemonic: 'concat',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'count',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.IfInline] = {\n  name: 'IfInline',\n  mnemonic: 'ifinline',\n  before: null,\n  stackChange: -2,\n  ops: [{\n    name: 'count',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Not] = {\n  name: 'Not',\n  mnemonic: 'not',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'count',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Constant] = {\n  name: 'Constant',\n  mnemonic: 'rconstload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'constant',\n    type: 'unknown'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.ConstantReference] = {\n  name: 'ConstantReference',\n  mnemonic: 'rconstrefload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'constant',\n    type: 'unknown'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Primitive] = {\n  name: 'Primitive',\n  mnemonic: 'pconstload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'constant',\n    type: 'primitive'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PrimitiveReference] = {\n  name: 'PrimitiveReference',\n  mnemonic: 'ptoref',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.ReifyU32] = {\n  name: 'ReifyU32',\n  mnemonic: 'reifyload',\n  before: null,\n  stackChange: 1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Dup] = {\n  name: 'Dup',\n  mnemonic: 'dup',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }, {\n    name: 'offset',\n    type: 'u32'\n  }],\n  operands: 2,\n  check: true\n};\nMETADATA[Op.Pop] = {\n  name: 'Pop',\n  mnemonic: 'pop',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'count',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: false\n};\nMETADATA[Op.Load] = {\n  name: 'Load',\n  mnemonic: 'put',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Fetch] = {\n  name: 'Fetch',\n  mnemonic: 'regload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.RootScope] = {\n  name: 'RootScope',\n  mnemonic: 'rscopepush',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'symbols',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.VirtualRootScope] = {\n  name: 'VirtualRootScope',\n  mnemonic: 'vrscopepush',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'register',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.ChildScope] = {\n  name: 'ChildScope',\n  mnemonic: 'cscopepush',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PopScope] = {\n  name: 'PopScope',\n  mnemonic: 'scopepop',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Text] = {\n  name: 'Text',\n  mnemonic: 'apnd_text',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'contents',\n    type: 'str'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Comment] = {\n  name: 'Comment',\n  mnemonic: 'apnd_comment',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'contents',\n    type: 'str'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.AppendHTML] = {\n  name: 'AppendHTML',\n  mnemonic: 'apnd_dynhtml',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.AppendSafeHTML] = {\n  name: 'AppendSafeHTML',\n  mnemonic: 'apnd_dynshtml',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.AppendDocumentFragment] = {\n  name: 'AppendDocumentFragment',\n  mnemonic: 'apnd_dynfrag',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.AppendNode] = {\n  name: 'AppendNode',\n  mnemonic: 'apnd_dynnode',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.AppendText] = {\n  name: 'AppendText',\n  mnemonic: 'apnd_dyntext',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.OpenElement] = {\n  name: 'OpenElement',\n  mnemonic: 'apnd_tag',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'tag',\n    type: 'str'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.OpenDynamicElement] = {\n  name: 'OpenDynamicElement',\n  mnemonic: 'apnd_dyntag',\n  before: null,\n  stackChange: -1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PushRemoteElement] = {\n  name: 'PushRemoteElement',\n  mnemonic: 'apnd_remotetag',\n  before: null,\n  stackChange: -3,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.StaticAttr] = {\n  name: 'StaticAttr',\n  mnemonic: 'apnd_attr',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'name',\n    type: 'str'\n  }, {\n    name: 'value',\n    type: 'str'\n  }, {\n    name: 'namespace',\n    type: 'option-str'\n  }],\n  operands: 3,\n  check: true\n};\nMETADATA[Op.DynamicAttr] = {\n  name: 'DynamicAttr',\n  mnemonic: 'apnd_dynattr',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'name',\n    type: 'str'\n  }, {\n    name: 'trusting',\n    type: 'bool'\n  }, {\n    name: 'namespace',\n    type: 'option-str'\n  }],\n  operands: 3,\n  check: true\n};\nMETADATA[Op.ComponentAttr] = {\n  name: 'ComponentAttr',\n  mnemonic: 'apnd_cattr',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'name',\n    type: 'str'\n  }, {\n    name: 'trusting',\n    type: 'bool'\n  }, {\n    name: 'namespace',\n    type: 'option-str'\n  }],\n  operands: 3,\n  check: true\n};\nMETADATA[Op.FlushElement] = {\n  name: 'FlushElement',\n  mnemonic: 'apnd_flushtag',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.CloseElement] = {\n  name: 'CloseElement',\n  mnemonic: 'apnd_closetag',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PopRemoteElement] = {\n  name: 'PopRemoteElement',\n  mnemonic: 'apnd_closeremotetag',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Modifier] = {\n  name: 'Modifier',\n  mnemonic: 'apnd_modifier',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'helper',\n    type: 'handle'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.BindDynamicScope] = {\n  name: 'BindDynamicScope',\n  mnemonic: 'setdynscope',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'names',\n    type: 'str-array'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PushDynamicScope] = {\n  name: 'PushDynamicScope',\n  mnemonic: 'dynscopepush',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PopDynamicScope] = {\n  name: 'PopDynamicScope',\n  mnemonic: 'dynscopepop',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.CompileBlock] = {\n  name: 'CompileBlock',\n  mnemonic: 'cmpblock',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PushBlockScope] = {\n  name: 'PushBlockScope',\n  mnemonic: 'scopeload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'scope',\n    type: 'scope'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PushSymbolTable] = {\n  name: 'PushSymbolTable',\n  mnemonic: 'dsymload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'table',\n    type: 'symbol-table'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.InvokeYield] = {\n  name: 'InvokeYield',\n  mnemonic: 'invokeyield',\n  before: null,\n  stackChange: null,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.JumpIf] = {\n  name: 'JumpIf',\n  mnemonic: 'iftrue',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'to',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.JumpUnless] = {\n  name: 'JumpUnless',\n  mnemonic: 'iffalse',\n  before: null,\n  stackChange: -1,\n  ops: [{\n    name: 'to',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.JumpEq] = {\n  name: 'JumpEq',\n  mnemonic: 'ifeq',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'to',\n    type: 'i32'\n  }, {\n    name: 'comparison',\n    type: 'i32'\n  }],\n  operands: 2,\n  check: true\n};\nMETADATA[Op.AssertSame] = {\n  name: 'AssertSame',\n  mnemonic: 'assert_eq',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Enter] = {\n  name: 'Enter',\n  mnemonic: 'blk_start',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'args',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Exit] = {\n  name: 'Exit',\n  mnemonic: 'blk_end',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.ToBoolean] = {\n  name: 'ToBoolean',\n  mnemonic: 'anytobool',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.EnterList] = {\n  name: 'EnterList',\n  mnemonic: 'list_start',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'address',\n    type: 'u32'\n  }, {\n    name: 'address',\n    type: 'u32'\n  }],\n  operands: 2,\n  check: true\n};\nMETADATA[Op.ExitList] = {\n  name: 'ExitList',\n  mnemonic: 'list_end',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Iterate] = {\n  name: 'Iterate',\n  mnemonic: 'iter',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'end',\n    type: 'u32'\n  }],\n  operands: 1,\n  check: false\n};\nMETADATA[Op.Main] = {\n  name: 'Main',\n  mnemonic: 'main',\n  before: null,\n  stackChange: -2,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.ContentType] = {\n  name: 'ContentType',\n  mnemonic: 'ctload',\n  before: null,\n  stackChange: 1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.DynamicContentType] = {\n  name: 'DynamicContentType',\n  mnemonic: 'dctload',\n  before: null,\n  stackChange: 1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.Curry] = {\n  name: 'Curry',\n  mnemonic: 'curry',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'type',\n    type: 'u32'\n  }, {\n    name: 'is-strict',\n    type: 'bool'\n  }],\n  operands: 2,\n  check: true\n};\nMETADATA[Op.PushComponentDefinition] = {\n  name: 'PushComponentDefinition',\n  mnemonic: 'cmload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'spec',\n    type: 'handle'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PushDynamicComponentInstance] = {\n  name: 'PushDynamicComponentInstance',\n  mnemonic: 'dciload',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.ResolveDynamicComponent] = {\n  name: 'ResolveDynamicComponent',\n  mnemonic: 'cdload',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'owner',\n    type: 'owner'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PushArgs] = {\n  name: 'PushArgs',\n  mnemonic: 'argsload',\n  before: null,\n  stackChange: null,\n  ops: [{\n    name: 'names',\n    type: 'str-array'\n  }, {\n    name: 'block-names',\n    type: 'str-array'\n  }, {\n    name: 'flags',\n    type: 'u32'\n  }],\n  operands: 3,\n  check: true\n};\nMETADATA[Op.PushEmptyArgs] = {\n  name: 'PushEmptyArgs',\n  mnemonic: 'emptyargsload',\n  before: null,\n  stackChange: 1,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PopArgs] = {\n  name: 'PopArgs',\n  mnemonic: 'argspop',\n  before: null,\n  stackChange: null,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.PrepareArgs] = {\n  name: 'PrepareArgs',\n  mnemonic: 'argsprep',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: false\n};\nMETADATA[Op.CaptureArgs] = {\n  name: 'CaptureArgs',\n  mnemonic: 'argscapture',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.CreateComponent] = {\n  name: 'CreateComponent',\n  mnemonic: 'comp_create',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'flags',\n    type: 'u32'\n  }, {\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 2,\n  check: true\n};\nMETADATA[Op.RegisterComponentDestructor] = {\n  name: 'RegisterComponentDestructor',\n  mnemonic: 'comp_dest',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PutComponentOperations] = {\n  name: 'PutComponentOperations',\n  mnemonic: 'comp_elops',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.GetComponentSelf] = {\n  name: 'GetComponentSelf',\n  mnemonic: 'comp_selfload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.GetComponentTagName] = {\n  name: 'GetComponentTagName',\n  mnemonic: 'comp_tagload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.GetComponentLayout] = {\n  name: 'GetComponentLayout',\n  mnemonic: 'comp_layoutload',\n  before: null,\n  stackChange: 2,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.BindEvalScope] = {\n  name: 'BindEvalScope',\n  mnemonic: 'eval_scope',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.SetupForEval] = {\n  name: 'SetupForEval',\n  mnemonic: 'eval_setup',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.PopulateLayout] = {\n  name: 'PopulateLayout',\n  mnemonic: 'comp_layoutput',\n  before: null,\n  stackChange: -2,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.InvokeComponentLayout] = {\n  name: 'InvokeComponentLayout',\n  mnemonic: 'comp_invokelayout',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.BeginComponentTransaction] = {\n  name: 'BeginComponentTransaction',\n  mnemonic: 'comp_begin',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.CommitComponentTransaction] = {\n  name: 'CommitComponentTransaction',\n  mnemonic: 'comp_commit',\n  before: null,\n  stackChange: 0,\n  ops: [],\n  operands: 0,\n  check: true\n};\nMETADATA[Op.DidCreateElement] = {\n  name: 'DidCreateElement',\n  mnemonic: 'comp_created',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.DidRenderLayout] = {\n  name: 'DidRenderLayout',\n  mnemonic: 'comp_rendered',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'state',\n    type: 'register'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.ResolveMaybeLocal] = {\n  name: 'ResolveMaybeLocal',\n  mnemonic: 'eval_varload',\n  before: null,\n  stackChange: 1,\n  ops: [{\n    name: 'local',\n    type: 'str'\n  }],\n  operands: 1,\n  check: true\n};\nMETADATA[Op.Debugger] = {\n  name: 'Debugger',\n  mnemonic: 'debugger',\n  before: null,\n  stackChange: 0,\n  ops: [{\n    name: 'symbols',\n    type: 'str-array'\n  }, {\n    name: 'debugInfo',\n    type: 'array'\n  }],\n  operands: 2,\n  check: true\n};\n\nfunction debugSlice(context, start, end) {\n}\nfunction logOpcode(type, params) {\n}\nfunction debug(c, op, isMachine) {\n  return undefined;\n}\n\n// TODO: How do these map onto constant and machine types?\nconst OPERAND_TYPES = ['u32', 'i32', 'owner', 'handle', 'str', 'option-str', 'array', 'str-array', 'bool', 'primitive', 'register', 'unknown', 'symbol-table', 'scope'];\nfunction isOperandType(s) {\n  return OPERAND_TYPES.indexOf(s) !== -1;\n}\nfunction normalize(key, input) {\n  let name;\n  if (input.format === undefined) {\n    throw new Error(`Missing format in ${JSON.stringify(input)}`);\n  }\n  if (Array.isArray(input.format)) {\n    name = input.format[0];\n  } else {\n    name = input.format;\n  }\n  let ops = Array.isArray(input.format) ? operands(input.format.slice(1)) : [];\n  return {\n    name,\n    mnemonic: key,\n    before: null,\n    stackChange: stackChange(input['operand-stack']),\n    ops,\n    operands: ops.length,\n    check: input.skip === true ? false : true\n  };\n}\nfunction stackChange(stack) {\n  if (stack === undefined) {\n    return 0;\n  }\n  let before = stack[0];\n  let after = stack[1];\n  if (hasRest(before) || hasRest(after)) {\n    return null;\n  }\n  return after.length - before.length;\n}\nfunction hasRest(input) {\n  if (!Array.isArray(input)) {\n    throw new Error(`Unexpected stack entry: ${JSON.stringify(input)}`);\n  }\n  return input.some(s => s.slice(-3) === '...');\n}\nfunction operands(input) {\n  if (!Array.isArray(input)) {\n    throw new Error(`Expected operands array, got ${JSON.stringify(input)}`);\n  }\n  return input.map(op);\n}\nfunction op(input) {\n  let [name, type] = input.split(':');\n  if (isOperandType(type)) {\n    return {\n      name,\n      type\n    };\n  } else {\n    throw new Error(`Expected operand, found ${JSON.stringify(input)}`);\n  }\n}\nfunction normalizeAll(parsed) {\n  let machine = normalizeParsed(parsed.machine);\n  let syscall = normalizeParsed(parsed.syscall);\n  return {\n    machine,\n    syscall\n  };\n}\nfunction normalizeParsed(parsed) {\n  let out = Object.create(null);\n  for (const [key, value] of Object.entries(parsed)) {\n    out[key] = normalize(key, value);\n  }\n  return out;\n}\nfunction buildEnum(name, parsed, offset, max) {\n  let e = [`export enum ${name} {`];\n  let last;\n  Object.values(parsed).forEach((value, i) => {\n    e.push(`  ${value.name} = ${offset + i},`);\n    last = i;\n  });\n  e.push(`  Size = ${last + offset + 1},`);\n  e.push('}');\n  let enumString = e.join('\\n');\n  let predicate;\n  if (max) {\n    predicate = strip`\n      export function is${name}(value: number): value is ${name} {\n        return value >= ${offset} && value <= ${max};\n      }\n    `;\n  } else {\n    predicate = strip`\n      export function is${name}(value: number): value is ${name} {\n        return value >= ${offset};\n      }\n    `;\n  }\n  return {\n    enumString,\n    predicate\n  };\n}\nfunction strip(strings, ...args) {\n  let out = '';\n  for (let i = 0; i < strings.length; i++) {\n    let string = strings[i];\n    let dynamic = args[i] !== undefined ? String(args[i]) : '';\n    out += `${string}${dynamic}`;\n  }\n\n  // eslint-disable-next-line regexp/no-super-linear-backtracking\n  out = /^\\s*?\\n?([\\s\\S]*?)\\s*$/u.exec(out)[1];\n  let min = Number.MAX_SAFE_INTEGER;\n  for (let line of out.split('\\n')) {\n    let leading = /^\\s*/u.exec(line)[0].length;\n    min = Math.min(min, leading);\n  }\n  let stripped = '';\n  for (let line of out.split('\\n')) {\n    stripped += line.slice(min) + '\\n';\n  }\n  return stripped;\n}\nconst META_KIND = ['METADATA', 'MACHINE_METADATA'];\nfunction buildSingleMeta(kind, all, key) {\n  let e = kind === 'MACHINE_METADATA' ? 'MachineOp' : 'Op';\n  return `${kind}[${e}.${all[key].name}] = ${stringify(all[key], 0)};`;\n}\nfunction stringify(o, pad) {\n  if (typeof o !== 'object' || o === null) {\n    if (typeof o === 'string') {\n      return `'${o}'`;\n    }\n    return JSON.stringify(o);\n  }\n  if (Array.isArray(o)) {\n    return `[${o.map(v => stringify(v, pad)).join(', ')}]`;\n  }\n  let out = ['{'];\n  for (let key of Object.keys(o)) {\n    out.push(`${' '.repeat(pad + 2)}${key}: ${stringify(o[key], pad + 2)},`);\n  }\n  out.push(`${' '.repeat(pad)}}`);\n  return out.join('\\n');\n}\nfunction buildMetas(kind, all) {\n  let out = [];\n  for (let key of Object.keys(all)) {\n    out.push(buildSingleMeta(kind, all, key));\n  }\n  return out.join('\\n\\n');\n}\n\nfunction wrap(checker) {\n  class Wrapped {\n    validate(value) {\n      return checker().validate(value);\n    }\n    expected() {\n      return checker().expected();\n    }\n  }\n  return new Wrapped();\n}\nclass TypeofChecker {\n  constructor(expectedType) {\n    this.expectedType = expectedType;\n  }\n  validate(value) {\n    return typeof value === this.expectedType;\n  }\n  expected() {\n    return `typeof ${this.expectedType}`;\n  }\n}\nclass PrimitiveChecker {\n  validate(value) {\n    return typeof value !== 'string' || typeof value === 'number' || typeof value === 'string' || value === undefined || value === null;\n  }\n  expected() {\n    return `a primitive`;\n  }\n}\nclass NullChecker {\n  validate(value) {\n    return value === null;\n  }\n  expected() {\n    return `null`;\n  }\n}\nclass InstanceofChecker {\n  constructor(Class) {\n    this.Class = Class;\n  }\n  validate(value) {\n    return value ? value instanceof this.Class : false;\n  }\n  expected() {\n    return `an instance of ${this.Class.name}`;\n  }\n}\nclass OptionChecker {\n  constructor(checker, emptyValue) {\n    this.checker = checker;\n    this.emptyValue = emptyValue;\n  }\n  validate(value) {\n    if (value === this.emptyValue) return true;\n    return this.checker.validate(value);\n  }\n  expected() {\n    return `${this.checker.expected()} or null`;\n  }\n}\nclass MaybeChecker {\n  constructor(checker) {\n    this.checker = checker;\n  }\n  validate(value) {\n    if (value === null || value === undefined) return true;\n    return this.checker.validate(value);\n  }\n  expected() {\n    return `${this.checker.expected()} or null or undefined`;\n  }\n}\nclass OrChecker {\n  constructor(left, right) {\n    this.left = left;\n    this.right = right;\n  }\n  validate(value) {\n    return this.left.validate(value) || this.right.validate(value);\n  }\n  expected() {\n    return `${this.left.expected()} or ${this.right.expected()}`;\n  }\n}\nclass ExactValueChecker {\n  constructor(value, desc) {\n    this.value = value;\n    this.desc = desc;\n  }\n  validate(obj) {\n    return obj === this.value;\n  }\n  expected() {\n    return this.desc;\n  }\n}\nclass PropertyChecker {\n  constructor(checkers) {\n    this.checkers = checkers;\n  }\n  validate(obj) {\n    if (typeof obj !== 'object') return false;\n    if (obj === null || obj === undefined) return false;\n    return Object.entries(this.checkers).every(([k, checker]) => k in obj ? checker.validate(obj[k]) : false);\n  }\n  expected() {\n    let pairs = Object.entries(this.checkers).map(([k, checker]) => {\n      return `${k}: ${checker.expected()}`;\n    });\n    return `{ ${pairs.join(',')} }`;\n  }\n}\nclass ArrayChecker {\n  constructor(checker) {\n    this.checker = checker;\n  }\n  validate(obj) {\n    if (obj === null || obj === undefined) return false;\n    if (!Array.isArray(obj)) return false;\n    return obj.every(item => this.checker.validate(item));\n  }\n  expected() {\n    return `Array<${this.checker.expected()}>`;\n  }\n}\nclass DictChecker {\n  constructor(checker) {\n    this.checker = checker;\n  }\n  validate(value) {\n    let isDict = typeof value === 'object' && value !== null && Object.getPrototypeOf(value) === null;\n    if (!isDict) return false;\n    let {\n      checker\n    } = this;\n    for (let key in value) {\n      if (!checker.validate(value[key])) {\n        return false;\n      }\n    }\n    return true;\n  }\n  expected() {\n    return `a primitive`;\n  }\n}\nclass OpaqueChecker {\n  type;\n  validate(_obj) {\n    return true;\n  }\n  expected() {\n    return `any`;\n  }\n}\nclass ObjectChecker {\n  validate(obj) {\n    return typeof obj === 'function' || typeof obj === 'object' && obj !== null;\n  }\n  expected() {\n    return `an object or function (valid WeakMap key)`;\n  }\n}\nclass SafeStringChecker {\n  validate(value) {\n    return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n  }\n  expected() {\n    return `SafeString`;\n  }\n}\nfunction CheckInstanceof(Class) {\n  return new InstanceofChecker(Class);\n}\nfunction CheckOption(checker) {\n  return new OptionChecker(checker, null);\n}\nfunction CheckMaybe(checker) {\n  return new MaybeChecker(checker);\n}\nfunction CheckInterface(obj) {\n  return new PropertyChecker(obj);\n}\nfunction CheckArray(obj) {\n  return new ArrayChecker(obj);\n}\nfunction CheckDict(obj) {\n  return new DictChecker(obj);\n}\nfunction defaultMessage(value, expected) {\n  return `Got ${value}, expected:\\n${expected}`;\n}\nfunction check(value, checker, message = defaultMessage) {\n  if (typeof checker === 'function') {\n    checker(value);\n    return value;\n  }\n  if (checker.validate(value)) {\n    return value;\n  } else {\n    throw new Error(message(value, checker.expected()));\n  }\n}\nlet size = 0;\nfunction recordStackSize(sp) {\n  size = sp;\n}\nfunction expectStackChange(stack, expected, name) {\n  let actual = stack.sp - size;\n  if (actual === expected) return;\n  throw new Error(`Expected stack to change by ${expected}, but it changed by ${actual} in ${name}`);\n}\nconst CheckPrimitive = new PrimitiveChecker();\nconst CheckFunction = new TypeofChecker('function');\nconst CheckNumber = new TypeofChecker('number');\nconst CheckBoolean = new TypeofChecker('boolean');\nconst CheckHandle = CheckNumber;\nconst CheckString = new TypeofChecker('string');\nconst CheckNull = new NullChecker();\nconst CheckUnknown = new OpaqueChecker();\nconst CheckSafeString = new SafeStringChecker();\nconst CheckObject = new ObjectChecker();\nfunction CheckOr(left, right) {\n  return new OrChecker(left, right);\n}\nfunction CheckValue(value, desc = String(value)) {\n  return new ExactValueChecker(value, desc);\n}\nconst CheckBlockSymbolTable = CheckInterface({\n  parameters: CheckArray(CheckNumber)\n});\nconst CheckProgramSymbolTable = CheckInterface({\n  hasEval: CheckBoolean,\n  symbols: CheckArray(CheckString)\n});\nconst CheckElement = CheckInterface({\n  nodeType: CheckValue(1),\n  tagName: CheckString,\n  nextSibling: CheckUnknown\n});\nconst CheckDocumentFragment = CheckInterface({\n  nodeType: CheckValue(11),\n  nextSibling: CheckUnknown\n});\nconst CheckNode = CheckInterface({\n  nodeType: CheckNumber,\n  nextSibling: CheckUnknown\n});\n\nexport { CheckArray, CheckBlockSymbolTable, CheckBoolean, CheckDict, CheckDocumentFragment, CheckElement, CheckFunction, CheckHandle, CheckInstanceof, CheckInterface, CheckMaybe, CheckNode, CheckNull, CheckNumber, CheckObject, CheckOption, CheckOr, CheckPrimitive, CheckProgramSymbolTable, CheckSafeString, CheckString, CheckUnknown, CheckValue, META_KIND, OPERAND_TYPES, buildEnum, buildMetas, buildSingleMeta, check, debug, debugSlice, expectStackChange, logOpcode, normalize, normalizeAll, normalizeParsed, opcodeMetadata, recordStackSize, strip, wrap };\n","import { DEBUG } from '@glimmer/env';\nimport { scheduleDestroyed, scheduleDestroy } from '@glimmer/global-context';\nimport { debugToString } from '@glimmer/util';\n\nvar DestroyingState = /*#__PURE__*/function (DestroyingState) {\n  DestroyingState[DestroyingState[\"Live\"] = 0] = \"Live\";\n  DestroyingState[DestroyingState[\"Destroying\"] = 1] = \"Destroying\";\n  DestroyingState[DestroyingState[\"Destroyed\"] = 2] = \"Destroyed\";\n  return DestroyingState;\n}(DestroyingState || {});\nlet DESTROYABLE_META = new WeakMap();\nfunction push(collection, newItem) {\n  if (collection === null) {\n    return newItem;\n  } else if (Array.isArray(collection)) {\n    collection.push(newItem);\n    return collection;\n  } else {\n    return [collection, newItem];\n  }\n}\nfunction iterate(collection, fn) {\n  if (Array.isArray(collection)) {\n    collection.forEach(fn);\n  } else if (collection !== null) {\n    fn(collection);\n  }\n}\nfunction remove(collection, item, message) {\n  if (DEBUG) {\n    let collectionIsItem = collection === item;\n    let collectionContainsItem = Array.isArray(collection) && collection.indexOf(item) !== -1;\n    if (!collectionIsItem && !collectionContainsItem) {\n      throw new Error(String(message));\n    }\n  }\n  if (Array.isArray(collection) && collection.length > 1) {\n    let index = collection.indexOf(item);\n    collection.splice(index, 1);\n    return collection;\n  } else {\n    return null;\n  }\n}\nfunction getDestroyableMeta(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  if (meta === undefined) {\n    meta = {\n      parents: null,\n      children: null,\n      eagerDestructors: null,\n      destructors: null,\n      state: DestroyingState.Live\n    };\n    if (DEBUG) {\n      meta.source = destroyable;\n    }\n    DESTROYABLE_META.set(destroyable, meta);\n  }\n  return meta;\n}\nfunction associateDestroyableChild(parent, child) {\n  if (DEBUG && isDestroying(parent)) {\n    throw new Error('Attempted to associate a destroyable child with an object that is already destroying or destroyed');\n  }\n  let parentMeta = getDestroyableMeta(parent);\n  let childMeta = getDestroyableMeta(child);\n  parentMeta.children = push(parentMeta.children, child);\n  childMeta.parents = push(childMeta.parents, parent);\n  return child;\n}\nfunction registerDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to register a destructor with an object that is already destroying or destroyed');\n  }\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = push(meta[destructorsKey], destructor);\n  return destructor;\n}\nfunction unregisterDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to unregister a destructor with an object that is already destroying or destroyed');\n  }\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = remove(meta[destructorsKey], destructor, DEBUG && 'attempted to remove a destructor that was not registered with the destroyable');\n}\n\n////////////\n\nfunction destroy(destroyable) {\n  let meta = getDestroyableMeta(destroyable);\n  if (meta.state >= DestroyingState.Destroying) return;\n  let {\n    parents,\n    children,\n    eagerDestructors,\n    destructors\n  } = meta;\n  meta.state = DestroyingState.Destroying;\n  iterate(children, destroy);\n  iterate(eagerDestructors, destructor => destructor(destroyable));\n  iterate(destructors, destructor => scheduleDestroy(destroyable, destructor));\n  scheduleDestroyed(() => {\n    iterate(parents, parent => removeChildFromParent(destroyable, parent));\n    meta.state = DestroyingState.Destroyed;\n  });\n}\nfunction removeChildFromParent(child, parent) {\n  let parentMeta = getDestroyableMeta(parent);\n  if (parentMeta.state === DestroyingState.Live) {\n    parentMeta.children = remove(parentMeta.children, child, DEBUG && \"attempted to remove child from parent, but the parent's children did not contain the child. This is likely a bug with destructors.\");\n  }\n}\nfunction destroyChildren(destroyable) {\n  let {\n    children\n  } = getDestroyableMeta(destroyable);\n  iterate(children, destroy);\n}\nfunction _hasDestroyableChildren(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.children !== null;\n}\nfunction isDestroying(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= DestroyingState.Destroying;\n}\nfunction isDestroyed(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= DestroyingState.Destroyed;\n}\n\n////////////\n\nlet enableDestroyableTracking;\nlet assertDestroyablesDestroyed;\nif (DEBUG) {\n  let isTesting = false;\n  enableDestroyableTracking = () => {\n    if (isTesting) {\n      // Reset destroyable meta just in case, before throwing the error\n      DESTROYABLE_META = new WeakMap();\n      throw new Error('Attempted to start destroyable testing, but you did not end the previous destroyable test. Did you forget to call `assertDestroyablesDestroyed()`');\n    }\n    isTesting = true;\n    DESTROYABLE_META = new Map();\n  };\n  assertDestroyablesDestroyed = () => {\n    if (!isTesting) {\n      throw new Error('Attempted to assert destroyables destroyed, but you did not start a destroyable test. Did you forget to call `enableDestroyableTracking()`');\n    }\n    isTesting = false;\n    let map = DESTROYABLE_META;\n    DESTROYABLE_META = new WeakMap();\n    let undestroyed = [];\n    map.forEach(meta => {\n      if (meta.state !== DestroyingState.Destroyed) {\n        undestroyed.push(meta.source);\n      }\n    });\n    if (undestroyed.length > 0) {\n      let objectsToString = undestroyed.map(debugToString).join('\\n    ');\n      let error = new Error(`Some destroyables were not destroyed during this test:\\n    ${objectsToString}`);\n      error.destroyables = undestroyed;\n      throw error;\n    }\n  };\n}\n\nexport { _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };\n","import { DEBUG } from '@glimmer/env';\nimport { TYPE_SIZE, MAX_SIZE, ARG_SHIFT } from '@glimmer/vm';\n\nclass InstructionEncoderImpl {\n  constructor(buffer) {\n    this.buffer = buffer;\n  }\n  size = 0;\n  encode(type, machine, ...args) {\n    if (type > TYPE_SIZE) {\n      throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n    }\n    let first = type | machine | arguments.length - 2 << ARG_SHIFT;\n    this.buffer.push(first);\n    for (const op of args) {\n      if (DEBUG && typeof op === 'number' && op > MAX_SIZE) {\n        throw new Error(`Operand over 32-bits. Got ${op}.`);\n      }\n      this.buffer.push(op);\n    }\n    this.size = this.buffer.length;\n  }\n  patch(position, target) {\n    if (this.buffer[position + 1] === -1) {\n      this.buffer[position + 1] = target;\n    } else {\n      throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n    }\n  }\n}\n\nexport { InstructionEncoderImpl };\n","const DEBUG = false;\nconst CI = false;\n\nexport { CI, DEBUG };\n","import { DEBUG } from '@glimmer/env';\n\n/**\n * This package contains global context functions for Glimmer. These functions\n * are set by the embedding environment and must be set before initial render.\n *\n * These functions should meet the following criteria:\n *\n * - Must be provided by the embedder, due to having framework specific\n *   behaviors (e.g. interop with classic Ember behaviors that should not be\n *   upstreamed) or to being out of scope for the VM (e.g. scheduling a\n *   revalidation)\n * - Never differ between render roots\n * - Never change over time\n *\n */\n\n//////////\n\n/**\n * Interfaces\n *\n * TODO: Move these into @glimmer/interfaces, move @glimmer/interfaces to\n * @glimmer/internal-interfaces.\n */\n//////////\n/**\n * Schedules a VM revalidation.\n *\n * Note: this has a default value so that tags can warm themselves when first loaded.\n */\nlet scheduleRevalidate = () => {};\n\n/**\n * Schedules a destructor to run\n *\n * @param destroyable The destroyable being destroyed\n * @param destructor The destructor being scheduled\n */\nlet scheduleDestroy;\n\n/**\n * Finalizes destruction\n *\n * @param finalizer finalizer function\n */\nlet scheduleDestroyed;\n\n/**\n * Hook to provide iterators for `{{each}}` loops\n *\n * @param value The value to create an iterator for\n */\nlet toIterator;\n\n/**\n * Hook to specify truthiness within Glimmer templates\n *\n * @param value The value to convert to a boolean\n */\nlet toBool;\n\n/**\n * Hook for specifying how Glimmer should access properties in cases where it\n * needs to. For instance, accessing an object's values in templates.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet getProp;\n\n/**\n * Hook for specifying how Glimmer should update props in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param prop The prop to set the value at\n * @param value The value to set the value to\n */\nlet setProp;\n\n/**\n * Hook for specifying how Glimmer should access paths in cases where it needs\n * to. For instance, the `key` value of `{{each}}` loops.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet getPath;\n\n/**\n * Hook for specifying how Glimmer should update paths in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet setPath;\n\n/**\n * Hook to warn if a style binding string or value was not marked as trusted\n * (e.g. HTMLSafe)\n */\nlet warnIfStyleNotTrusted;\n\n/**\n * Hook to customize assertion messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\nlet assert;\n\n/**\n * Hook to customize deprecation messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\nlet deprecate;\n\n//////////\n\nlet globalContextWasSet = false;\nfunction setGlobalContext(context) {\n  if (DEBUG) {\n    if (globalContextWasSet) {\n      throw new Error('Attempted to set the global context twice. This should only be set once.');\n    }\n    globalContextWasSet = true;\n  }\n  scheduleRevalidate = context.scheduleRevalidate;\n  scheduleDestroy = context.scheduleDestroy;\n  scheduleDestroyed = context.scheduleDestroyed;\n  toIterator = context.toIterator;\n  toBool = context.toBool;\n  getProp = context.getProp;\n  setProp = context.setProp;\n  getPath = context.getPath;\n  setPath = context.setPath;\n  warnIfStyleNotTrusted = context.warnIfStyleNotTrusted;\n  assert = context.assert;\n  deprecate = context.deprecate;\n}\nlet assertGlobalContextWasSet;\nlet testOverrideGlobalContext;\nif (DEBUG) {\n  assertGlobalContextWasSet = () => {\n    if (globalContextWasSet === false) {\n      throw new Error('The global context for Glimmer VM was not set. You must set these global context functions to let Glimmer VM know how to accomplish certain operations. You can do this by importing `setGlobalContext` from `@glimmer/global-context`');\n    }\n  };\n  testOverrideGlobalContext = context => {\n    let originalGlobalContext = globalContextWasSet ? {\n      scheduleRevalidate,\n      scheduleDestroy,\n      scheduleDestroyed,\n      toIterator,\n      toBool,\n      getProp,\n      setProp,\n      getPath,\n      setPath,\n      warnIfStyleNotTrusted,\n      assert,\n      deprecate\n    } : null;\n    if (context === null) {\n      globalContextWasSet = false;\n    } else {\n      globalContextWasSet = true;\n    }\n\n    // We use `undefined as any` here to unset the values when resetting the\n    // context at the end of a test.\n    scheduleRevalidate = context?.scheduleRevalidate || undefined;\n    scheduleDestroy = context?.scheduleDestroy || undefined;\n    scheduleDestroyed = context?.scheduleDestroyed || undefined;\n    toIterator = context?.toIterator || undefined;\n    toBool = context?.toBool || undefined;\n    getProp = context?.getProp || undefined;\n    setProp = context?.setProp || undefined;\n    getPath = context?.getPath || undefined;\n    setPath = context?.setPath || undefined;\n    warnIfStyleNotTrusted = context?.warnIfStyleNotTrusted || undefined;\n    assert = context?.assert || undefined;\n    deprecate = context?.deprecate || undefined;\n    return originalGlobalContext;\n  };\n}\n\nexport { assert, assertGlobalContextWasSet, setGlobalContext as default, deprecate, getPath, getProp, scheduleDestroy, scheduleDestroyed, scheduleRevalidate, setPath, setProp, testOverrideGlobalContext, toBool, toIterator, warnIfStyleNotTrusted };\n","import { DEBUG } from '@glimmer/env';\nimport { debugToString, castToBrowser } from '@glimmer/util';\nimport { associateDestroyableChild, registerDestructor } from '@glimmer/destroyable';\nimport { createComputeRef, createConstRef, UNDEFINED_REFERENCE, valueForRef } from '@glimmer/reference';\nimport { createUpdatableTag, untrack, track } from '@glimmer/validator';\nimport { check, CheckNumber } from '@glimmer/debug';\nimport { InternalComponentCapabilities } from '@glimmer/vm';\n\nconst CUSTOM_TAG_FOR = new WeakMap();\nfunction getCustomTagFor(obj) {\n  return CUSTOM_TAG_FOR.get(obj);\n}\nfunction setCustomTagFor(obj, customTagFn) {\n  CUSTOM_TAG_FOR.set(obj, customTagFn);\n}\nfunction convertToInt(prop) {\n  if (typeof prop === 'symbol') return null;\n  const num = Number(prop);\n  if (isNaN(num)) return null;\n  return num % 1 === 0 ? num : null;\n}\nfunction tagForNamedArg(namedArgs, key) {\n  return track(() => {\n    if (key in namedArgs) {\n      valueForRef(namedArgs[key]);\n    }\n  });\n}\nfunction tagForPositionalArg(positionalArgs, key) {\n  return track(() => {\n    if (key === '[]') {\n      // consume all of the tags in the positional array\n      positionalArgs.forEach(valueForRef);\n    }\n    const parsed = convertToInt(key);\n    if (parsed !== null && parsed < positionalArgs.length) {\n      // consume the tag of the referenced index\n      valueForRef(positionalArgs[parsed]);\n    }\n  });\n}\nclass NamedArgsProxy {\n  constructor(named) {\n    this.named = named;\n  }\n  get(_target, prop) {\n    const ref = this.named[prop];\n    if (ref !== undefined) {\n      return valueForRef(ref);\n    }\n  }\n  has(_target, prop) {\n    return prop in this.named;\n  }\n  ownKeys() {\n    return Object.keys(this.named);\n  }\n  isExtensible() {\n    return false;\n  }\n  getOwnPropertyDescriptor(_target, prop) {\n    if (DEBUG && !(prop in this.named)) {\n      throw new Error(`args proxies do not have real property descriptors, so you should never need to call getOwnPropertyDescriptor yourself. This code exists for enumerability, such as in for-in loops and Object.keys(). Attempted to get the descriptor for \\`${String(prop)}\\``);\n    }\n    return {\n      enumerable: true,\n      configurable: true\n    };\n  }\n}\nclass PositionalArgsProxy {\n  constructor(positional) {\n    this.positional = positional;\n  }\n  get(target, prop) {\n    let {\n      positional\n    } = this;\n    if (prop === 'length') {\n      return positional.length;\n    }\n    const parsed = convertToInt(prop);\n    if (parsed !== null && parsed < positional.length) {\n      return valueForRef(positional[parsed]);\n    }\n    return target[prop];\n  }\n  isExtensible() {\n    return false;\n  }\n  has(_target, prop) {\n    const parsed = convertToInt(prop);\n    return parsed !== null && parsed < this.positional.length;\n  }\n}\nconst argsProxyFor = (capturedArgs, type) => {\n  const {\n    named,\n    positional\n  } = capturedArgs;\n  let getNamedTag = (_obj, key) => tagForNamedArg(named, key);\n  let getPositionalTag = (_obj, key) => tagForPositionalArg(positional, key);\n  const namedHandler = new NamedArgsProxy(named);\n  const positionalHandler = new PositionalArgsProxy(positional);\n  const namedTarget = Object.create(null);\n  const positionalTarget = [];\n  if (DEBUG) {\n    const setHandler = function (_target, prop) {\n      throw new Error(`You attempted to set ${String(prop)} on the arguments of a component, helper, or modifier. Arguments are immutable and cannot be updated directly; they always represent the values that are passed down. If you want to set default values, you should use a getter and local tracked state instead.`);\n    };\n    const forInDebugHandler = () => {\n      throw new Error(`Object.keys() was called on the positional arguments array for a ${type}, which is not supported. This function is a low-level function that should not need to be called for positional argument arrays. You may be attempting to iterate over the array using for...in instead of for...of.`);\n    };\n    namedHandler.set = setHandler;\n    positionalHandler.set = setHandler;\n    positionalHandler.ownKeys = forInDebugHandler;\n  }\n  const namedProxy = new Proxy(namedTarget, namedHandler);\n  const positionalProxy = new Proxy(positionalTarget, positionalHandler);\n  setCustomTagFor(namedProxy, getNamedTag);\n  setCustomTagFor(positionalProxy, getPositionalTag);\n  return {\n    named: namedProxy,\n    positional: positionalProxy\n  };\n};\n\nconst FROM_CAPABILITIES = DEBUG ? new WeakSet() : undefined;\nfunction buildCapabilities(capabilities) {\n  if (DEBUG) {\n    FROM_CAPABILITIES.add(capabilities);\n    Object.freeze(capabilities);\n  }\n  return capabilities;\n}\nconst EMPTY = InternalComponentCapabilities.Empty;\n/**\n * Converts a ComponentCapabilities object into a 32-bit integer representation.\n */\nfunction capabilityFlagsFrom(capabilities) {\n  return EMPTY | capability(capabilities, 'dynamicLayout') | capability(capabilities, 'dynamicTag') | capability(capabilities, 'prepareArgs') | capability(capabilities, 'createArgs') | capability(capabilities, 'attributeHook') | capability(capabilities, 'elementHook') | capability(capabilities, 'dynamicScope') | capability(capabilities, 'createCaller') | capability(capabilities, 'updateHook') | capability(capabilities, 'createInstance') | capability(capabilities, 'wrapped') | capability(capabilities, 'willDestroy') | capability(capabilities, 'hasSubOwner');\n}\nfunction capability(capabilities, capability) {\n  return capabilities[capability] ? InternalComponentCapabilities[capability] : EMPTY;\n}\nfunction managerHasCapability(_manager, capabilities, capability) {\n  check(capabilities, CheckNumber);\n  return !!(capabilities & capability);\n}\nfunction hasCapability(capabilities, capability) {\n  check(capabilities, CheckNumber);\n  return !!(capabilities & capability);\n}\n\nfunction helperCapabilities(managerAPI, options = {}) {\n  if (DEBUG && managerAPI !== '3.23') {\n    throw new Error('Invalid helper manager compatibility specified');\n  }\n  if (DEBUG && (!(options.hasValue || options.hasScheduledEffect) || options.hasValue && options.hasScheduledEffect)) {\n    throw new Error('You must pass either the `hasValue` OR the `hasScheduledEffect` capability when defining a helper manager. Passing neither, or both, is not permitted.');\n  }\n  if (DEBUG && options.hasScheduledEffect) {\n    throw new Error('The `hasScheduledEffect` capability has not yet been implemented for helper managers. Please pass `hasValue` instead');\n  }\n  return buildCapabilities({\n    hasValue: Boolean(options.hasValue),\n    hasDestroyable: Boolean(options.hasDestroyable),\n    hasScheduledEffect: Boolean(options.hasScheduledEffect)\n  });\n}\n\n////////////\n\nfunction hasValue(manager) {\n  return manager.capabilities.hasValue;\n}\nfunction hasDestroyable(manager) {\n  return manager.capabilities.hasDestroyable;\n}\n\n////////////\n\nclass CustomHelperManager {\n  constructor(factory) {\n    this.factory = factory;\n  }\n  helperManagerDelegates = new WeakMap();\n  undefinedDelegate = null;\n  getDelegateForOwner(owner) {\n    let delegate = this.helperManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom helper managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.23')\\` (imported via \\`import { capabilities } from '@ember/helper';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n      this.helperManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  getDelegateFor(owner) {\n    if (owner === undefined) {\n      let {\n        undefinedDelegate\n      } = this;\n      if (undefinedDelegate === null) {\n        let {\n          factory\n        } = this;\n        this.undefinedDelegate = undefinedDelegate = factory(undefined);\n      }\n      return undefinedDelegate;\n    } else {\n      return this.getDelegateForOwner(owner);\n    }\n  }\n  getHelper(definition) {\n    return (capturedArgs, owner) => {\n      let manager = this.getDelegateFor(owner);\n      const args = argsProxyFor(capturedArgs, 'helper');\n      const bucket = manager.createHelper(definition, args);\n      if (hasValue(manager)) {\n        let cache = createComputeRef(() => manager.getValue(bucket), null, DEBUG && manager.getDebugName && manager.getDebugName(definition));\n        if (hasDestroyable(manager)) {\n          associateDestroyableChild(cache, manager.getDestroyable(bucket));\n        }\n        return cache;\n      } else if (hasDestroyable(manager)) {\n        let ref = createConstRef(undefined, DEBUG && (manager.getDebugName?.(definition) ?? 'unknown helper'));\n        associateDestroyableChild(ref, manager.getDestroyable(bucket));\n        return ref;\n      } else {\n        return UNDEFINED_REFERENCE;\n      }\n    };\n  }\n}\n\nclass FunctionHelperManager {\n  capabilities = buildCapabilities({\n    hasValue: true,\n    hasDestroyable: false,\n    hasScheduledEffect: false\n  });\n  createHelper(fn, args) {\n    return {\n      fn,\n      args\n    };\n  }\n  getValue({\n    fn,\n    args\n  }) {\n    if (Object.keys(args.named).length > 0) {\n      let argsForFn = [...args.positional, args.named];\n      return fn(...argsForFn);\n    }\n    return fn(...args.positional);\n  }\n  getDebugName(fn) {\n    if (fn.name) {\n      return `(helper function ${fn.name})`;\n    }\n    return '(anonymous helper function)';\n  }\n}\n\nconst COMPONENT_MANAGERS = new WeakMap();\nconst MODIFIER_MANAGERS = new WeakMap();\nconst HELPER_MANAGERS = new WeakMap();\n\n///////////\n\nconst getPrototypeOf$1 = Object.getPrototypeOf;\nfunction setManager(map, manager, obj) {\n  if (DEBUG && (typeof obj !== 'object' || obj === null) && typeof obj !== 'function') {\n    throw new Error(`Attempted to set a manager on a non-object value. Managers can only be associated with objects or functions. Value was ${debugToString(obj)}`);\n  }\n  if (DEBUG && map.has(obj)) {\n    throw new Error(`Attempted to set the same type of manager multiple times on a value. You can only associate one manager of each type with a given value. Value was ${debugToString(obj)}`);\n  }\n  map.set(obj, manager);\n  return obj;\n}\nfunction getManager(map, obj) {\n  let pointer = obj;\n  while (pointer !== undefined && pointer !== null) {\n    const manager = map.get(pointer);\n    if (manager !== undefined) {\n      return manager;\n    }\n    pointer = getPrototypeOf$1(pointer);\n  }\n  return undefined;\n}\n\n///////////\n\nfunction setInternalModifierManager(manager, definition) {\n  return setManager(MODIFIER_MANAGERS, manager, definition);\n}\nfunction getInternalModifierManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a modifier, but it was not an object or function. Modifier definitions must be objects or functions with an associated modifier manager. The value was: ${definition}`);\n  }\n  const manager = getManager(MODIFIER_MANAGERS, definition);\n  if (manager === undefined) {\n    if (isOptional === true) {\n      return null;\n    } else if (DEBUG) {\n      throw new Error(`Attempted to load a modifier, but there wasn't a modifier manager associated with the definition. The definition was: ${debugToString(definition)}`);\n    }\n  }\n  return manager;\n}\nfunction setInternalHelperManager(manager, definition) {\n  return setManager(HELPER_MANAGERS, manager, definition);\n}\nconst DEFAULT_MANAGER = new CustomHelperManager(() => new FunctionHelperManager());\nfunction getInternalHelperManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a helper, but it was not an object or function. Helper definitions must be objects or functions with an associated helper manager. The value was: ${definition}`);\n  }\n  let manager = getManager(HELPER_MANAGERS, definition);\n\n  // Functions are special-cased because functions are defined\n  // as the \"default\" helper, per: https://github.com/emberjs/rfcs/pull/756\n  if (manager === undefined && typeof definition === 'function') {\n    manager = DEFAULT_MANAGER;\n  }\n  if (manager) {\n    return manager;\n  } else if (isOptional === true) {\n    return null;\n  } else if (DEBUG) {\n    throw new Error(`Attempted to load a helper, but there wasn't a helper manager associated with the definition. The definition was: ${debugToString(definition)}`);\n  }\n  return null;\n}\nfunction setInternalComponentManager(factory, obj) {\n  return setManager(COMPONENT_MANAGERS, factory, obj);\n}\nfunction getInternalComponentManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a component, but it was not an object or function. Component definitions must be objects or functions with an associated component manager. The value was: ${definition}`);\n  }\n  const manager = getManager(COMPONENT_MANAGERS, definition);\n  if (manager === undefined) {\n    if (isOptional === true) {\n      return null;\n    } else if (DEBUG) {\n      throw new Error(`Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: ${debugToString(definition)}`);\n    }\n  }\n  return manager;\n}\n\n///////////\n\nfunction hasInternalComponentManager(definition) {\n  return getManager(COMPONENT_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalHelperManager(definition) {\n  return hasDefaultHelperManager(definition) || getManager(HELPER_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalModifierManager(definition) {\n  return getManager(MODIFIER_MANAGERS, definition) !== undefined;\n}\nfunction hasDefaultHelperManager(definition) {\n  return typeof definition === 'function';\n}\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nfunction componentCapabilities(managerAPI, options = {}) {\n  if (DEBUG && managerAPI !== '3.13') {\n    throw new Error('Invalid component manager compatibility specified');\n  }\n  let updateHook = Boolean(options.updateHook);\n  return buildCapabilities({\n    asyncLifeCycleCallbacks: Boolean(options.asyncLifecycleCallbacks),\n    destructor: Boolean(options.destructor),\n    updateHook\n  });\n}\nfunction hasAsyncLifeCycleCallbacks(delegate) {\n  return delegate.capabilities.asyncLifeCycleCallbacks;\n}\nfunction hasUpdateHook(delegate) {\n  return delegate.capabilities.updateHook;\n}\nfunction hasAsyncUpdateHook(delegate) {\n  return hasAsyncLifeCycleCallbacks(delegate) && hasUpdateHook(delegate);\n}\nfunction hasDestructors(delegate) {\n  return delegate.capabilities.destructor;\n}\n\n/**\n  The CustomComponentManager allows addons to provide custom component\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom component manager, which\n  implements a set of hooks that determine component behavior.\n\n  To create a custom component manager, instantiate a new CustomComponentManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomComponentManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a component, the component manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n\n  * `create()` - invoked when a new instance of a component should be created\n  * `update()` - invoked when the arguments passed to a component change\n  * `getContext()` - returns the object that should be\n*/\nclass CustomComponentManager {\n  componentManagerDelegates = new WeakMap();\n  constructor(factory) {\n    this.factory = factory;\n  }\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom component managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.13')\\` (imported via \\`import { capabilities } from '@ember/component';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n      componentManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  create(owner, definition, vmArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let args = argsProxyFor(vmArgs.capture(), 'component');\n    let component = delegate.createComponent(definition, args);\n    return new CustomComponentState(component, delegate, args);\n  }\n  getDebugName(definition) {\n    return typeof definition === 'function' ? definition.name : definition.toString();\n  }\n  update(bucket) {\n    let {\n      delegate\n    } = bucket;\n    if (hasUpdateHook(delegate)) {\n      let {\n        component,\n        args\n      } = bucket;\n      delegate.updateComponent(component, args);\n    }\n  }\n  didCreate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncLifeCycleCallbacks(delegate)) {\n      delegate.didCreateComponent(component);\n    }\n  }\n  didUpdate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncUpdateHook(delegate)) {\n      delegate.didUpdateComponent(component);\n    }\n  }\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  getSelf({\n    component,\n    delegate\n  }) {\n    return createConstRef(delegate.getContext(component), 'this');\n  }\n  getDestroyable(bucket) {\n    const {\n      delegate\n    } = bucket;\n    if (hasDestructors(delegate)) {\n      const {\n        component\n      } = bucket;\n      registerDestructor(bucket, () => delegate.destroyComponent(component));\n      return bucket;\n    }\n    return null;\n  }\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n}\n\n/**\n * Stores internal state about a component instance after it's been created.\n */\nclass CustomComponentState {\n  constructor(component, delegate, args) {\n    this.component = component;\n    this.delegate = delegate;\n    this.args = args;\n  }\n}\n\nfunction modifierCapabilities(managerAPI, optionalFeatures = {}) {\n  if (DEBUG && managerAPI !== '3.22') {\n    throw new Error('Invalid modifier manager compatibility specified');\n  }\n  return buildCapabilities({\n    disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking)\n  });\n}\n/**\n  The CustomModifierManager allows addons to provide custom modifier\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom modifier manager, which\n  implements a set of hooks that determine modifier behavior.\n  To create a custom modifier manager, instantiate a new CustomModifierManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomModifierManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a modifier, the modifier manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n  * `createModifier()` - invoked when a new instance of a modifier should be created\n  * `installModifier()` - invoked when the modifier is installed on the element\n  * `updateModifier()` - invoked when the arguments passed to a modifier change\n  * `destroyModifier()` - invoked when the modifier is about to be destroyed\n*/\nclass CustomModifierManager {\n  componentManagerDelegates = new WeakMap();\n  constructor(factory) {\n    this.factory = factory;\n  }\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom modifier managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.22')\\` (imported via \\`import { capabilities } from '@ember/modifier';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n      componentManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  create(owner, element, definition, capturedArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let args = argsProxyFor(capturedArgs, 'modifier');\n    let instance = delegate.createModifier(definition, args);\n    let tag = createUpdatableTag();\n    let state;\n    state = {\n      tag,\n      element,\n      delegate,\n      args,\n      modifier: instance\n    };\n    if (DEBUG) {\n      state.debugName = typeof definition === 'function' ? definition.name : definition.toString();\n    }\n    registerDestructor(state, () => delegate.destroyModifier(instance, args));\n    return state;\n  }\n  getDebugName({\n    debugName\n  }) {\n    return debugName;\n  }\n  getTag({\n    tag\n  }) {\n    return tag;\n  }\n  install({\n    element,\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.installModifier(modifier, castToBrowser(element, 'ELEMENT'), args));\n    } else {\n      delegate.installModifier(modifier, castToBrowser(element, 'ELEMENT'), args);\n    }\n  }\n  update({\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.updateModifier(modifier, args));\n    } else {\n      delegate.updateModifier(modifier, args);\n    }\n  }\n  getDestroyable(state) {\n    return state;\n  }\n}\n\nfunction setComponentManager(factory, obj) {\n  return setInternalComponentManager(new CustomComponentManager(factory), obj);\n}\nfunction setModifierManager(factory, obj) {\n  return setInternalModifierManager(new CustomModifierManager(factory), obj);\n}\nfunction setHelperManager(factory, obj) {\n  return setInternalHelperManager(new CustomHelperManager(factory), obj);\n}\n\nconst TEMPLATES = new WeakMap();\nconst getPrototypeOf = Object.getPrototypeOf;\nfunction setComponentTemplate(factory, obj) {\n  if (DEBUG && !(obj !== null && (typeof obj === 'object' || typeof obj === 'function'))) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` on \\`${debugToString(obj)}\\``);\n  }\n  if (DEBUG && TEMPLATES.has(obj)) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` multiple times on the same class (\\`${debugToString(obj)}\\`)`);\n  }\n  TEMPLATES.set(obj, factory);\n  return obj;\n}\nfunction getComponentTemplate(obj) {\n  let pointer = obj;\n  while (pointer !== null) {\n    let template = TEMPLATES.get(pointer);\n    if (template !== undefined) {\n      return template;\n    }\n    pointer = getPrototypeOf(pointer);\n  }\n  return undefined;\n}\n\nexport { CustomComponentManager, CustomHelperManager, CustomModifierManager, capabilityFlagsFrom, componentCapabilities, getComponentTemplate, getCustomTagFor, getInternalComponentManager, getInternalHelperManager, getInternalModifierManager, hasCapability, hasDestroyable, hasInternalComponentManager, hasInternalHelperManager, hasInternalModifierManager, hasValue, helperCapabilities, managerHasCapability, modifierCapabilities, setComponentManager, setComponentTemplate, setCustomTagFor, setHelperManager, setInternalComponentManager, setInternalHelperManager, setInternalModifierManager, setModifierManager };\n","import { DOMTreeConstruction, ConcreteBounds, NewElementBuilder } from '@glimmer/runtime';\nimport createHTMLDocument from '@simple-dom/document';\n\nclass NodeDOMTreeConstruction extends DOMTreeConstruction {\n  // Hides property on base class\n  constructor(doc) {\n    super(doc || createHTMLDocument());\n  }\n\n  // override to prevent usage of `this.document` until after the constructor\n  setupUselessElement() {}\n  insertHTMLBefore(parent, reference, html) {\n    let raw = this.document.createRawHTMLSection(html);\n    parent.insertBefore(raw, reference);\n    return new ConcreteBounds(parent, raw, raw);\n  }\n\n  // override to avoid SVG detection/work when in node (this is not needed in SSR)\n  createElement(tag) {\n    return this.document.createElement(tag);\n  }\n\n  // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n}\n\nconst TEXT_NODE = 3;\nconst NEEDS_EXTRA_CLOSE = new WeakMap();\nfunction currentNode(cursor) {\n  let {\n    element,\n    nextSibling\n  } = cursor;\n  if (nextSibling === null) {\n    return element.lastChild;\n  } else {\n    return nextSibling.previousSibling;\n  }\n}\nclass SerializeBuilder extends NewElementBuilder {\n  serializeBlockDepth = 0;\n  __openBlock() {\n    let {\n      tagName\n    } = this.element;\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = this.serializeBlockDepth++;\n      this.__appendComment(`%+b:${depth}%`);\n    }\n    super.__openBlock();\n  }\n  __closeBlock() {\n    let {\n      tagName\n    } = this.element;\n    super.__closeBlock();\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = --this.serializeBlockDepth;\n      this.__appendComment(`%-b:${depth}%`);\n    }\n  }\n  __appendHTML(html) {\n    let {\n      tagName\n    } = this.element;\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendHTML(html);\n    }\n\n    // Do we need to run the html tokenizer here?\n    let first = this.__appendComment('%glmr%');\n    if (tagName === 'TABLE') {\n      let openIndex = html.indexOf('<');\n      if (openIndex > -1) {\n        let tr = html.slice(openIndex + 1, openIndex + 3);\n        if (tr === 'tr') {\n          html = `<tbody>${html}</tbody>`;\n        }\n      }\n    }\n    if (html === '') {\n      this.__appendComment('% %');\n    } else {\n      super.__appendHTML(html);\n    }\n    let last = this.__appendComment('%glmr%');\n    return new ConcreteBounds(this.element, first, last);\n  }\n  __appendText(string) {\n    let {\n      tagName\n    } = this.element;\n    let current = currentNode(this);\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendText(string);\n    } else if (string === '') {\n      return this.__appendComment('% %');\n    } else if (current && current.nodeType === TEXT_NODE) {\n      this.__appendComment('%|%');\n    }\n    return super.__appendText(string);\n  }\n  closeElement() {\n    if (NEEDS_EXTRA_CLOSE.has(this.element)) {\n      NEEDS_EXTRA_CLOSE.delete(this.element);\n      super.closeElement();\n    }\n    return super.closeElement();\n  }\n  openElement(tag) {\n    if (tag === 'tr') {\n      if (this.element.tagName !== 'TBODY' && this.element.tagName !== 'THEAD' && this.element.tagName !== 'TFOOT') {\n        this.openElement('tbody');\n        // This prevents the closeBlock comment from being re-parented\n        // under the auto inserted tbody. Rehydration builder needs to\n        // account for the insertion since it is injected here and not\n        // really in the template.\n        NEEDS_EXTRA_CLOSE.set(this.constructing, true);\n        this.flushElement(null);\n      }\n    }\n    return super.openElement(tag);\n  }\n  pushRemoteElement(element, cursorId, insertBefore = null) {\n    let {\n      dom\n    } = this;\n    let script = dom.createElement('script');\n    script.setAttribute('glmr', cursorId);\n    dom.insertBefore(element, script, insertBefore);\n    return super.pushRemoteElement(element, cursorId, insertBefore);\n  }\n}\nfunction serializeBuilder(env, cursor) {\n  return SerializeBuilder.forInitialRender(env, cursor);\n}\n\nexport { NodeDOMTreeConstruction, serializeBuilder };\n","import { EMPTY_STRING_ARRAY, isSmallInt, encodeImmediate, unwrap, reverse, assert as assert$1, Stack, isPresentArray, encodeHandle, expect, assign, dict, enumerate, EMPTY_ARRAY, debugToString } from '@glimmer/util';\nimport '@glimmer/debug';\nimport { Op, MachineOp, $v0, $fp, $sp, InternalComponentCapabilities, $s0, ContentType, TYPE_SIZE, isMachineOp, MACHINE_MASK, ARG_SHIFT, $s1 } from '@glimmer/vm';\nimport { DEBUG } from '@glimmer/env';\nimport { InstructionEncoderImpl } from '@glimmer/encoder';\nimport { SexpOpcodes } from '@glimmer/wire-format';\nimport { hasCapability } from '@glimmer/manager';\nimport { assert, deprecate } from '@glimmer/global-context';\n\nlet debugCompiler;\n\nfunction isGetLikeTuple(opcode) {\n  return Array.isArray(opcode) && opcode.length === 2;\n}\nfunction makeResolutionTypeVerifier(typeToVerify) {\n  return opcode => {\n    if (!isGetLikeTuple(opcode)) return false;\n    let type = opcode[0];\n    return type === SexpOpcodes.GetStrictKeyword || type === SexpOpcodes.GetLexicalSymbol || type === typeToVerify;\n  };\n}\nconst isGetFreeComponent = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsComponentHead);\nconst isGetFreeModifier = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsModifierHead);\nconst isGetFreeHelper = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsHelperHead);\nconst isGetFreeComponentOrHelper = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsComponentOrHelperHead);\nconst isGetFreeOptionalHelper = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsHelperHeadOrThisFallback);\nfunction isGetFreeDeprecatedHelper(opcode) {\n  return Array.isArray(opcode) && opcode[0] === SexpOpcodes.GetFreeAsDeprecatedHelperHeadOrThisFallback;\n}\nconst isGetFreeOptionalComponentOrHelper = makeResolutionTypeVerifier(SexpOpcodes.GetFreeAsComponentOrHelperHeadOrThisFallback);\nfunction assertResolverInvariants(meta) {\n  if (DEBUG) {\n    if (!meta.upvars) {\n      throw new Error('Attempted to resolve a component, helper, or modifier, but no free vars were found');\n    }\n    if (!meta.owner) {\n      throw new Error('Attempted to resolve a component, helper, or modifier, but no owner was associated with the template it was being resolved from');\n    }\n  }\n  return meta;\n}\n\n/**\n * <Foo/>\n * <Foo></Foo>\n * <Foo @arg={{true}} />\n */\nfunction resolveComponent(resolver, constants, meta, [, expr, then]) {\n  assert$1(isGetFreeComponent(expr), 'Attempted to resolve a component with incorrect opcode');\n  let type = expr[0];\n  if (DEBUG && expr[0] === SexpOpcodes.GetStrictKeyword) {\n    throw new Error(`Attempted to resolve a component in a strict mode template, but that value was not in scope: ${meta.upvars[expr[1]] ?? '{unknown variable}'}`);\n  }\n  if (type === SexpOpcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner\n    } = meta;\n    let definition = expect(scopeValues, 'BUG: scopeValues must exist if template symbol is used')[expr[1]];\n    then(constants.component(definition, expect(owner, 'BUG: expected owner when resolving component definition')));\n  } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver.lookupComponent(name, owner);\n    if (DEBUG && (typeof definition !== 'object' || definition === null)) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);\n    }\n    then(constants.resolvedComponent(definition, name));\n  }\n}\n\n/**\n * (helper)\n * (helper arg)\n */\nfunction resolveHelper(resolver, constants, meta, [, expr, then]) {\n  assert$1(isGetFreeHelper(expr), 'Attempted to resolve a helper with incorrect opcode');\n  let type = expr[0];\n  if (type === SexpOpcodes.GetLexicalSymbol) {\n    let {\n      scopeValues\n    } = meta;\n    let definition = expect(scopeValues, 'BUG: scopeValues must exist if template symbol is used')[expr[1]];\n    then(constants.helper(definition));\n  } else if (type === SexpOpcodes.GetStrictKeyword) {\n    then(lookupBuiltInHelper(expr, resolver, meta, constants, 'helper'));\n  } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let helper = resolver.lookupHelper(name, owner);\n    if (DEBUG && helper === null) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a helper, but nothing was found.`);\n    }\n    then(constants.helper(helper, name));\n  }\n}\n\n/**\n * <div {{modifier}}/>\n * <div {{modifier arg}}/>\n * <Foo {{modifier}}/>\n */\nfunction resolveModifier(resolver, constants, meta, [, expr, then]) {\n  assert$1(isGetFreeModifier(expr), 'Attempted to resolve a modifier with incorrect opcode');\n  let type = expr[0];\n  if (type === SexpOpcodes.GetLexicalSymbol) {\n    let {\n      scopeValues\n    } = meta;\n    let definition = expect(scopeValues, 'BUG: scopeValues must exist if template symbol is used')[expr[1]];\n    then(constants.modifier(definition));\n  } else if (type === SexpOpcodes.GetStrictKeyword) {\n    let {\n      upvars\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let modifier = resolver.lookupBuiltInModifier(name);\n    if (DEBUG && modifier === null) {\n      throw new Error(`Attempted to resolve a modifier in a strict mode template, but it was not in scope: ${name}`);\n    }\n    then(constants.modifier(modifier, name));\n  } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let modifier = resolver.lookupModifier(name, owner);\n    if (DEBUG && modifier === null) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a modifier, but nothing was found.`);\n    }\n    then(constants.modifier(modifier, name));\n  }\n}\n\n/**\n * {{component-or-helper arg}}\n */\nfunction resolveComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper\n}]) {\n  assert$1(isGetFreeComponentOrHelper(expr), 'Attempted to resolve a component or helper with incorrect opcode');\n  let type = expr[0];\n  if (type === SexpOpcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner\n    } = meta;\n    let definition = expect(scopeValues, 'BUG: scopeValues must exist if template symbol is used')[expr[1]];\n    let component = constants.component(definition, expect(owner, 'BUG: expected owner when resolving component definition'), true);\n    if (component !== null) {\n      ifComponent(component);\n      return;\n    }\n    let helper = constants.helper(definition, null, true);\n    if (DEBUG && helper === null) {\n      throw new Error(`Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString(definition)}`);\n    }\n    ifHelper(expect(helper, 'BUG: helper must exist'));\n  } else if (type === SexpOpcodes.GetStrictKeyword) {\n    ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants, 'component or helper'));\n  } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver.lookupComponent(name, owner);\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n    } else {\n      let helper = resolver.lookupHelper(name, owner);\n      if (DEBUG && helper === null) {\n        throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component or helper, but nothing was found.`);\n      }\n      ifHelper(constants.helper(helper, name));\n    }\n  }\n}\n\n/**\n * <Foo @arg={{helper}}>\n */\nfunction resolveOptionalHelper(resolver, constants, meta, [, expr, {\n  ifHelper\n}]) {\n  assert$1(isGetFreeOptionalHelper(expr) || isGetFreeDeprecatedHelper(expr), 'Attempted to resolve a helper with incorrect opcode');\n  let {\n    upvars,\n    owner\n  } = assertResolverInvariants(meta);\n  let name = unwrap(upvars[expr[1]]);\n  let helper = resolver.lookupHelper(name, owner);\n  if (helper) {\n    ifHelper(constants.helper(helper, name), name, meta.moduleName);\n  }\n}\n\n/**\n * {{maybeHelperOrComponent}}\n */\nfunction resolveOptionalComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper,\n  ifValue\n}]) {\n  assert$1(isGetFreeOptionalComponentOrHelper(expr), 'Attempted to resolve an optional component or helper with incorrect opcode');\n  let type = expr[0];\n  if (type === SexpOpcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner\n    } = meta;\n    let definition = expect(scopeValues, 'BUG: scopeValues must exist if template symbol is used')[expr[1]];\n    if (typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n      // The value is not an object, so it can't be a component or helper.\n      ifValue(constants.value(definition));\n      return;\n    }\n    let component = constants.component(definition, expect(owner, 'BUG: expected owner when resolving component definition'), true);\n    if (component !== null) {\n      ifComponent(component);\n      return;\n    }\n    let helper = constants.helper(definition, null, true);\n    if (helper !== null) {\n      ifHelper(helper);\n      return;\n    }\n    ifValue(constants.value(definition));\n  } else if (type === SexpOpcodes.GetStrictKeyword) {\n    ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants, 'value'));\n  } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver.lookupComponent(name, owner);\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n      return;\n    }\n    let helper = resolver.lookupHelper(name, owner);\n    if (helper !== null) {\n      ifHelper(constants.helper(helper, name));\n    }\n  }\n}\nfunction lookupBuiltInHelper(expr, resolver, meta, constants, type) {\n  let {\n    upvars\n  } = assertResolverInvariants(meta);\n  let name = unwrap(upvars[expr[1]]);\n  let helper = resolver.lookupBuiltInHelper(name);\n  if (DEBUG && helper === null) {\n    // Keyword helper did not exist, which means that we're attempting to use a\n    // value of some kind that is not in scope\n    throw new Error(`Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${meta.upvars[expr[1]] ?? '{unknown variable}'}`);\n  }\n  return constants.helper(helper, name);\n}\n\nconst HighLevelResolutionOpcodes = {\n  Modifier: 1003,\n  Component: 1004,\n  Helper: 1005,\n  OptionalHelper: 1006,\n  ComponentOrHelper: 1007,\n  OptionalComponentOrHelper: 1008,\n  Free: 1009,\n  Local: 1010,\n  TemplateLocal: 1011\n};\nconst HighLevelBuilderOpcodes = {\n  Label: 1000,\n  StartLabels: 1001,\n  StopLabels: 1002,\n  Start: 1000,\n  End: 1002\n};\n\nconst HighLevelOperands = {\n  Label: 1,\n  IsStrictMode: 2,\n  DebugSymbols: 3,\n  Block: 4,\n  StdLib: 5,\n  NonSmallInt: 6,\n  SymbolTable: 7,\n  Layout: 8\n};\nfunction labelOperand(value) {\n  return {\n    type: HighLevelOperands.Label,\n    value\n  };\n}\nfunction debugSymbolsOperand() {\n  return {\n    type: HighLevelOperands.DebugSymbols,\n    value: undefined\n  };\n}\nfunction isStrictMode() {\n  return {\n    type: HighLevelOperands.IsStrictMode,\n    value: undefined\n  };\n}\nfunction blockOperand(value) {\n  return {\n    type: HighLevelOperands.Block,\n    value\n  };\n}\nfunction stdlibOperand(value) {\n  return {\n    type: HighLevelOperands.StdLib,\n    value\n  };\n}\nfunction nonSmallIntOperand(value) {\n  assert$1(!isSmallInt(value), 'Attempted to make a operand for an int that was not a small int, you should encode this as an immediate');\n  return {\n    type: HighLevelOperands.NonSmallInt,\n    value\n  };\n}\nfunction symbolTableOperand(value) {\n  return {\n    type: HighLevelOperands.SymbolTable,\n    value\n  };\n}\nfunction layoutOperand(value) {\n  return {\n    type: HighLevelOperands.Layout,\n    value\n  };\n}\n\nclass Labels {\n  labels = dict();\n  targets = [];\n  label(name, index) {\n    this.labels[name] = index;\n  }\n  target(at, target) {\n    this.targets.push({\n      at,\n      target\n    });\n  }\n  patch(heap) {\n    let {\n      targets,\n      labels\n    } = this;\n    for (const {\n      at,\n      target\n    } of targets) {\n      let address = labels[target] - at;\n      assert$1(heap.getbyaddr(at) === -1, 'Expected heap to contain a placeholder, but it did not');\n      heap.setbyaddr(at, address);\n    }\n  }\n}\nfunction encodeOp(encoder, constants, resolver, meta, op) {\n  if (isBuilderOpcode(op[0])) {\n    let [type, ...operands] = op;\n    encoder.push(constants, type, ...operands);\n  } else {\n    switch (op[0]) {\n      case HighLevelBuilderOpcodes.Label:\n        return encoder.label(op[1]);\n      case HighLevelBuilderOpcodes.StartLabels:\n        return encoder.startLabels();\n      case HighLevelBuilderOpcodes.StopLabels:\n        return encoder.stopLabels();\n      case HighLevelResolutionOpcodes.Component:\n        return resolveComponent(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Modifier:\n        return resolveModifier(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Helper:\n        return resolveHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.ComponentOrHelper:\n        return resolveComponentOrHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.OptionalHelper:\n        return resolveOptionalHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.OptionalComponentOrHelper:\n        return resolveOptionalComponentOrHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Local:\n        {\n          let freeVar = op[1];\n          let name = expect(meta.upvars, 'BUG: attempted to resolve value but no upvars found')[freeVar];\n          let andThen = op[2];\n          andThen(name, meta.moduleName);\n          break;\n        }\n      case HighLevelResolutionOpcodes.TemplateLocal:\n        {\n          let [, valueIndex, then] = op;\n          let value = expect(meta.scopeValues, 'BUG: Attempted to gect a template local, but template does not have any')[valueIndex];\n          then(constants.value(value));\n          break;\n        }\n      case HighLevelResolutionOpcodes.Free:\n        if (DEBUG) {\n          let [, upvarIndex] = op;\n          let freeName = expect(meta.upvars, 'BUG: attempted to resolve value but no upvars found')[upvarIndex];\n          throw new Error(`Attempted to resolve a value in a strict mode template, but that value was not in scope: ${freeName}`);\n        }\n        break;\n      default:\n        throw new Error(`Unexpected high level opcode ${op[0]}`);\n    }\n  }\n}\nclass EncoderImpl {\n  labelsStack = new Stack();\n  encoder = new InstructionEncoderImpl([]);\n  errors = [];\n  handle;\n  constructor(heap, meta, stdlib) {\n    this.heap = heap;\n    this.meta = meta;\n    this.stdlib = stdlib;\n    this.handle = heap.malloc();\n  }\n  error(error) {\n    this.encoder.encode(Op.Primitive, 0);\n    this.errors.push(error);\n  }\n  commit(size) {\n    let handle = this.handle;\n    this.heap.pushMachine(MachineOp.Return);\n    this.heap.finishMalloc(handle, size);\n    if (isPresentArray(this.errors)) {\n      return {\n        errors: this.errors,\n        handle\n      };\n    } else {\n      return handle;\n    }\n  }\n  push(constants, type, ...args) {\n    let {\n      heap\n    } = this;\n    if (DEBUG && type > TYPE_SIZE) {\n      throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n    }\n    let machine = isMachineOp(type) ? MACHINE_MASK : 0;\n    let first = type | machine | args.length << ARG_SHIFT;\n    heap.pushRaw(first);\n    for (let i = 0; i < args.length; i++) {\n      let op = args[i];\n      heap.pushRaw(this.operand(constants, op));\n    }\n  }\n  operand(constants, operand) {\n    if (typeof operand === 'number') {\n      return operand;\n    }\n    if (typeof operand === 'object' && operand !== null) {\n      if (Array.isArray(operand)) {\n        return encodeHandle(constants.array(operand));\n      } else {\n        switch (operand.type) {\n          case HighLevelOperands.Label:\n            this.currentLabels.target(this.heap.offset, operand.value);\n            return -1;\n          case HighLevelOperands.IsStrictMode:\n            return encodeHandle(constants.value(this.meta.isStrictMode));\n          case HighLevelOperands.DebugSymbols:\n            return encodeHandle(constants.array(this.meta.evalSymbols || EMPTY_STRING_ARRAY));\n          case HighLevelOperands.Block:\n            return encodeHandle(constants.value(compilableBlock(operand.value, this.meta)));\n          case HighLevelOperands.StdLib:\n            return expect(this.stdlib, 'attempted to encode a stdlib operand, but the encoder did not have a stdlib. Are you currently building the stdlib?')[operand.value];\n          case HighLevelOperands.NonSmallInt:\n          case HighLevelOperands.SymbolTable:\n          case HighLevelOperands.Layout:\n            return constants.value(operand.value);\n        }\n      }\n    }\n    return encodeHandle(constants.value(operand));\n  }\n  get currentLabels() {\n    return expect(this.labelsStack.current, 'bug: not in a label stack');\n  }\n  label(name) {\n    this.currentLabels.label(name, this.heap.offset + 1);\n  }\n  startLabels() {\n    this.labelsStack.push(new Labels());\n  }\n  stopLabels() {\n    let label = expect(this.labelsStack.pop(), 'unbalanced push and pop labels');\n    label.patch(this.heap);\n  }\n}\nfunction isBuilderOpcode(op) {\n  return op < HighLevelBuilderOpcodes.Start;\n}\n\nclass StdLib {\n  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {\n    this.main = main;\n    this.trustingGuardedAppend = trustingGuardedAppend;\n    this.cautiousGuardedAppend = cautiousGuardedAppend;\n    this.trustingNonDynamicAppend = trustingNonDynamicAppend;\n    this.cautiousNonDynamicAppend = cautiousNonDynamicAppend;\n  }\n  get 'trusting-append'() {\n    return this.trustingGuardedAppend;\n  }\n  get 'cautious-append'() {\n    return this.cautiousGuardedAppend;\n  }\n  get 'trusting-non-dynamic-append'() {\n    return this.trustingNonDynamicAppend;\n  }\n  get 'cautious-non-dynamic-append'() {\n    return this.cautiousNonDynamicAppend;\n  }\n  getAppend(trusting) {\n    return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n  }\n}\n\nclass NamedBlocksImpl {\n  names;\n  constructor(blocks) {\n    this.blocks = blocks;\n    this.names = blocks ? Object.keys(blocks) : [];\n  }\n  get(name) {\n    if (!this.blocks) return null;\n    return this.blocks[name] || null;\n  }\n  has(name) {\n    let {\n      blocks\n    } = this;\n    return blocks !== null && name in blocks;\n  }\n  with(name, block) {\n    let {\n      blocks\n    } = this;\n    if (blocks) {\n      return new NamedBlocksImpl(assign({}, blocks, {\n        [name]: block\n      }));\n    } else {\n      return new NamedBlocksImpl({\n        [name]: block\n      });\n    }\n  }\n  get hasAny() {\n    return this.blocks !== null;\n  }\n}\nconst EMPTY_BLOCKS = new NamedBlocksImpl(null);\nfunction namedBlocks(blocks) {\n  if (blocks === null) {\n    return EMPTY_BLOCKS;\n  }\n  let out = dict();\n  let [keys, values] = blocks;\n  for (const [i, key] of enumerate(keys)) {\n    out[key] = unwrap(values[i]);\n  }\n  return new NamedBlocksImpl(out);\n}\n\n/**\n * Push a reference onto the stack corresponding to a statically known primitive\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\nfunction PushPrimitiveReference(op, value) {\n  PushPrimitive(op, value);\n  op(Op.PrimitiveReference);\n}\n\n/**\n * Push an encoded representation of a JavaScript primitive on the stack\n *\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\nfunction PushPrimitive(op, primitive) {\n  let p = primitive;\n  if (typeof p === 'number') {\n    p = isSmallInt(p) ? encodeImmediate(p) : nonSmallIntOperand(p);\n  }\n  op(Op.Primitive, p);\n}\n\n/**\n * Invoke a foreign function (a \"helper\") based on a statically known handle\n *\n * @param op The op creation function\n * @param handle A handle\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\nfunction Call(op, handle, positional, named) {\n  op(MachineOp.PushFrame);\n  SimpleArgs(op, positional, named, false);\n  op(Op.Helper, handle);\n  op(MachineOp.PopFrame);\n  op(Op.Fetch, $v0);\n}\n\n/**\n * Invoke a foreign function (a \"helper\") based on a dynamically loaded definition\n *\n * @param op The op creation function\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\nfunction CallDynamic(op, positional, named, append) {\n  op(MachineOp.PushFrame);\n  SimpleArgs(op, positional, named, false);\n  op(Op.Dup, $fp, 1);\n  op(Op.DynamicHelper);\n  if (append) {\n    op(Op.Fetch, $v0);\n    append();\n    op(MachineOp.PopFrame);\n    op(Op.Pop, 1);\n  } else {\n    op(MachineOp.PopFrame);\n    op(Op.Pop, 1);\n    op(Op.Fetch, $v0);\n  }\n}\n\n/**\n * Evaluate statements in the context of new dynamic scope entries. Move entries from the\n * stack into named entries in the dynamic scope, then evaluate the statements, then pop\n * the dynamic scope\n *\n * @param names a list of dynamic scope names\n * @param block a function that returns a list of statements to evaluate\n */\nfunction DynamicScope(op, names, block) {\n  op(Op.PushDynamicScope);\n  op(Op.BindDynamicScope, names);\n  block();\n  op(Op.PopDynamicScope);\n}\nfunction Curry(op, type, definition, positional, named) {\n  op(MachineOp.PushFrame);\n  SimpleArgs(op, positional, named, false);\n  op(Op.CaptureArgs);\n  expr(op, definition);\n  op(Op.Curry, type, isStrictMode());\n  op(MachineOp.PopFrame);\n  op(Op.Fetch, $v0);\n}\n\nclass Compilers {\n  names = {};\n  funcs = [];\n  add(name, func) {\n    this.names[name] = this.funcs.push(func) - 1;\n  }\n  compile(op, sexp) {\n    let name = sexp[0];\n    let index = unwrap(this.names[name]);\n    let func = this.funcs[index];\n    assert$1(!!func, `expected an implementation for ${sexp[0]}`);\n    func(op, sexp);\n  }\n}\n\nconst EXPRESSIONS = new Compilers();\nEXPRESSIONS.add(SexpOpcodes.Concat, (op, [, parts]) => {\n  for (let part of parts) {\n    expr(op, part);\n  }\n  op(Op.Concat, parts.length);\n});\nEXPRESSIONS.add(SexpOpcodes.Call, (op, [, expression, positional, named]) => {\n  if (isGetFreeHelper(expression)) {\n    op(HighLevelResolutionOpcodes.Helper, expression, handle => {\n      Call(op, handle, positional, named);\n    });\n  } else {\n    expr(op, expression);\n    CallDynamic(op, positional, named);\n  }\n});\nEXPRESSIONS.add(SexpOpcodes.Curry, (op, [, expr, type, positional, named]) => {\n  Curry(op, type, expr, positional, named);\n});\nEXPRESSIONS.add(SexpOpcodes.GetSymbol, (op, [, sym, path]) => {\n  op(Op.GetVariable, sym);\n  withPath(op, path);\n});\nEXPRESSIONS.add(SexpOpcodes.GetLexicalSymbol, (op, [, sym, path]) => {\n  op(HighLevelResolutionOpcodes.TemplateLocal, sym, handle => {\n    op(Op.ConstantReference, handle);\n    withPath(op, path);\n  });\n});\nEXPRESSIONS.add(SexpOpcodes.GetStrictKeyword, (op, [, sym, _path]) => {\n  op(HighLevelResolutionOpcodes.Free, sym, _handle => {\n    // TODO: Implement in strict mode\n  });\n});\nEXPRESSIONS.add(SexpOpcodes.GetFreeAsComponentOrHelperHeadOrThisFallback, () => {\n  // TODO: The logic for this opcode currently exists in STATEMENTS.Append, since\n  // we want different wrapping logic depending on if we are invoking a component,\n  // helper, or {{this}} fallback. Eventually we fix the opcodes so that we can\n  // traverse the subexpression tree like normal in this location.\n  throw new Error('unimplemented opcode');\n});\nEXPRESSIONS.add(SexpOpcodes.GetFreeAsHelperHeadOrThisFallback, (op, expr) => {\n  // <div id={{baz}}>\n\n  op(HighLevelResolutionOpcodes.Local, expr[1], _name => {\n    op(HighLevelResolutionOpcodes.OptionalHelper, expr, {\n      ifHelper: handle => {\n        Call(op, handle, null, null);\n      }\n    });\n  });\n});\nEXPRESSIONS.add(SexpOpcodes.GetFreeAsDeprecatedHelperHeadOrThisFallback, (op, expr) => {\n  // <Foo @bar={{baz}}>\n\n  op(HighLevelResolutionOpcodes.Local, expr[1], _name => {\n    op(HighLevelResolutionOpcodes.OptionalHelper, expr, {\n      ifHelper: (handle, name, moduleName) => {\n        assert(expr[2] && expr[2].length === 1, '[BUG] Missing argument name');\n        let arg = expr[2][0];\n        deprecate(`The \\`${name}\\` helper was used in the \\`${moduleName}\\` template as \\`${arg}={{${name}}}\\`. ` + `This is ambigious between wanting the \\`${arg}\\` argument to be the \\`${name}\\` helper itself, ` + `or the result of invoking the \\`${name}\\` helper (current behavior). ` + `This implicit invocation behavior has been deprecated.\\n\\n` + `Instead, please explicitly invoke the helper with parenthesis, i.e. \\`${arg}={{(${name})}}\\`.\\n\\n` + `Note: the parenthesis are only required in this exact scenario where an ambiguity is present – where ` + `\\`${name}\\` referes to a global helper (as opposed to a local variable), AND ` + `the \\`${name}\\` helper invocation does not take any arguments, AND ` + `this occurs in a named argument position of a component invocation.\\n\\n` + `We expect this combination to be quite rare, as most helpers require at least one argument. ` + `There is no need to refactor helper invocations in cases where this deprecation was not triggered.`, false, {\n          id: 'argument-less-helper-paren-less-invocation'\n        });\n        Call(op, handle, null, null);\n      }\n    });\n  });\n});\nfunction withPath(op, path) {\n  if (path === undefined || path.length === 0) return;\n  for (let i = 0; i < path.length; i++) {\n    op(Op.GetProperty, path[i]);\n  }\n}\nEXPRESSIONS.add(SexpOpcodes.Undefined, op => PushPrimitiveReference(op, undefined));\nEXPRESSIONS.add(SexpOpcodes.HasBlock, (op, [, block]) => {\n  expr(op, block);\n  op(Op.HasBlock);\n});\nEXPRESSIONS.add(SexpOpcodes.HasBlockParams, (op, [, block]) => {\n  expr(op, block);\n  op(Op.SpreadBlock);\n  op(Op.CompileBlock);\n  op(Op.HasBlockParams);\n});\nEXPRESSIONS.add(SexpOpcodes.IfInline, (op, [, condition, truthy, falsy]) => {\n  // Push in reverse order\n  expr(op, falsy);\n  expr(op, truthy);\n  expr(op, condition);\n  op(Op.IfInline);\n});\nEXPRESSIONS.add(SexpOpcodes.Not, (op, [, value]) => {\n  expr(op, value);\n  op(Op.Not);\n});\nEXPRESSIONS.add(SexpOpcodes.GetDynamicVar, (op, [, expression]) => {\n  expr(op, expression);\n  op(Op.GetDynamicVar);\n});\nEXPRESSIONS.add(SexpOpcodes.Log, (op, [, positional]) => {\n  op(MachineOp.PushFrame);\n  SimpleArgs(op, positional, null, false);\n  op(Op.Log);\n  op(MachineOp.PopFrame);\n  op(Op.Fetch, $v0);\n});\n\nfunction expr(op, expression) {\n  if (Array.isArray(expression)) {\n    EXPRESSIONS.compile(op, expression);\n  } else {\n    PushPrimitive(op, expression);\n    op(Op.PrimitiveReference);\n  }\n}\n\n/**\n * Compile arguments, pushing an Arguments object onto the stack.\n *\n * @param args.params\n * @param args.hash\n * @param args.blocks\n * @param args.atNames\n */\nfunction CompileArgs(op, positional, named, blocks, atNames) {\n  let blockNames = blocks.names;\n  for (const name of blockNames) {\n    PushYieldableBlock(op, blocks.get(name));\n  }\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  if (blocks) {\n    flags |= 0b111;\n  }\n  let names = EMPTY_ARRAY;\n  if (named) {\n    names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n  op(Op.PushArgs, names, blockNames, flags);\n}\nfunction SimpleArgs(op, positional, named, atNames) {\n  if (positional === null && named === null) {\n    op(Op.PushEmptyArgs);\n    return;\n  }\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  let names = EMPTY_STRING_ARRAY;\n  if (named) {\n    names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n  op(Op.PushArgs, names, EMPTY_STRING_ARRAY, flags);\n}\n\n/**\n * Compile an optional list of positional arguments, which pushes each argument\n * onto the stack and returns the number of parameters compiled\n *\n * @param positional an optional list of positional arguments\n */\nfunction CompilePositional(op, positional) {\n  if (positional === null) return 0;\n  for (let i = 0; i < positional.length; i++) {\n    expr(op, positional[i]);\n  }\n  return positional.length;\n}\nfunction meta(layout) {\n  let [, symbols,, upvars] = layout.block;\n  return {\n    evalSymbols: evalSymbols(layout),\n    upvars: upvars,\n    scopeValues: layout.scope?.() ?? null,\n    isStrictMode: layout.isStrictMode,\n    moduleName: layout.moduleName,\n    owner: layout.owner,\n    size: symbols.length\n  };\n}\nfunction evalSymbols(layout) {\n  let {\n    block\n  } = layout;\n  let [, symbols, hasEval] = block;\n  return hasEval ? symbols : null;\n}\n\n/**\n * Yield to a block located at a particular symbol location.\n *\n * @param to the symbol containing the block to yield to\n * @param params optional block parameters to yield to the block\n */\nfunction YieldBlock(op, to, positional) {\n  SimpleArgs(op, positional, null, true);\n  op(Op.GetBlock, to);\n  op(Op.SpreadBlock);\n  op(Op.CompileBlock);\n  op(Op.InvokeYield);\n  op(Op.PopScope);\n  op(MachineOp.PopFrame);\n}\n\n/**\n * Push an (optional) yieldable block onto the stack. The yieldable block must be known\n * statically at compile time.\n *\n * @param block An optional Compilable block\n */\nfunction PushYieldableBlock(op, block) {\n  PushSymbolTable(op, block && block[1]);\n  op(Op.PushBlockScope);\n  PushCompilable(op, block);\n}\n\n/**\n * Invoke a block that is known statically at compile time.\n *\n * @param block a Compilable block\n */\nfunction InvokeStaticBlock(op, block) {\n  op(MachineOp.PushFrame);\n  PushCompilable(op, block);\n  op(Op.CompileBlock);\n  op(MachineOp.InvokeVirtual);\n  op(MachineOp.PopFrame);\n}\n\n/**\n * Invoke a static block, preserving some number of stack entries for use in\n * updating.\n *\n * @param block A compilable block\n * @param callerCount A number of stack entries to preserve\n */\nfunction InvokeStaticBlockWithStack(op, block, callerCount) {\n  let parameters = block[1];\n  let calleeCount = parameters.length;\n  let count = Math.min(callerCount, calleeCount);\n  if (count === 0) {\n    InvokeStaticBlock(op, block);\n    return;\n  }\n  op(MachineOp.PushFrame);\n  if (count) {\n    op(Op.ChildScope);\n    for (let i = 0; i < count; i++) {\n      op(Op.Dup, $fp, callerCount - i);\n      op(Op.SetVariable, parameters[i]);\n    }\n  }\n  PushCompilable(op, block);\n  op(Op.CompileBlock);\n  op(MachineOp.InvokeVirtual);\n  if (count) {\n    op(Op.PopScope);\n  }\n  op(MachineOp.PopFrame);\n}\nfunction PushSymbolTable(op, parameters) {\n  if (parameters !== null) {\n    op(Op.PushSymbolTable, symbolTableOperand({\n      parameters\n    }));\n  } else {\n    PushPrimitive(op, null);\n  }\n}\nfunction PushCompilable(op, _block) {\n  if (_block === null) {\n    PushPrimitive(op, null);\n  } else {\n    op(Op.Constant, blockOperand(_block));\n  }\n}\n\nfunction SwitchCases(op, bootstrap, matcher) {\n  // Setup the switch DSL\n  let clauses = [];\n  let count = 0;\n  function when(match, callback) {\n    clauses.push({\n      match,\n      callback,\n      label: `CLAUSE${count++}`\n    });\n  }\n\n  // Call the callback\n  matcher(when);\n\n  // Emit the opcodes for the switch\n  op(Op.Enter, 1);\n  bootstrap();\n  op(HighLevelBuilderOpcodes.StartLabels);\n\n  // First, emit the jump opcodes. We don't need a jump for the last\n  // opcode, since it bleeds directly into its clause.\n  for (let clause of clauses.slice(0, -1)) {\n    op(Op.JumpEq, labelOperand(clause.label), clause.match);\n  }\n\n  // Enumerate the clauses in reverse order. Earlier matches will\n  // require fewer checks.\n  for (let i = clauses.length - 1; i >= 0; i--) {\n    let clause = unwrap(clauses[i]);\n    op(HighLevelBuilderOpcodes.Label, clause.label);\n    op(Op.Pop, 1);\n    clause.callback();\n\n    // The first match is special: it is placed directly before the END\n    // label, so no additional jump is needed at the end of it.\n    if (i !== 0) {\n      op(MachineOp.Jump, labelOperand('END'));\n    }\n  }\n  op(HighLevelBuilderOpcodes.Label, 'END');\n  op(HighLevelBuilderOpcodes.StopLabels);\n  op(Op.Exit);\n}\n\n/**\n * A convenience for pushing some arguments on the stack and\n * running some code if the code needs to be re-executed during\n * updating execution if some of the arguments have changed.\n *\n * # Initial Execution\n *\n * The `args` function should push zero or more arguments onto\n * the stack and return the number of arguments pushed.\n *\n * The `body` function provides the instructions to execute both\n * during initial execution and during updating execution.\n *\n * Internally, this function starts by pushing a new frame, so\n * that the body can return and sets the return point ($ra) to\n * the ENDINITIAL label.\n *\n * It then executes the `args` function, which adds instructions\n * responsible for pushing the arguments for the block to the\n * stack. These arguments will be restored to the stack before\n * updating execution.\n *\n * Next, it adds the Enter opcode, which marks the current position\n * in the DOM, and remembers the current $pc (the next instruction)\n * as the first instruction to execute during updating execution.\n *\n * Next, it runs `body`, which adds the opcodes that should\n * execute both during initial execution and during updating execution.\n * If the `body` wishes to finish early, it should Jump to the\n * `FINALLY` label.\n *\n * Next, it adds the FINALLY label, followed by:\n *\n * - the Exit opcode, which finalizes the marked DOM started by the\n *   Enter opcode.\n * - the Return opcode, which returns to the current return point\n *   ($ra).\n *\n * Finally, it adds the ENDINITIAL label followed by the PopFrame\n * instruction, which restores $fp, $sp and $ra.\n *\n * # Updating Execution\n *\n * Updating execution for this `replayable` occurs if the `body` added an\n * assertion, via one of the `JumpIf`, `JumpUnless` or `AssertSame` opcodes.\n *\n * If, during updating executon, the assertion fails, the initial VM is\n * restored, and the stored arguments are pushed onto the stack. The DOM\n * between the starting and ending markers is cleared, and the VM's cursor\n * is set to the area just cleared.\n *\n * The return point ($ra) is set to -1, the exit instruction.\n *\n * Finally, the $pc is set to to the instruction saved off by the\n * Enter opcode during initial execution, and execution proceeds as\n * usual.\n *\n * The only difference is that when a `Return` instruction is\n * encountered, the program jumps to -1 rather than the END label,\n * and the PopFrame opcode is not needed.\n */\nfunction Replayable(op, args, body) {\n  // Start a new label frame, to give END and RETURN\n  // a unique meaning.\n\n  op(HighLevelBuilderOpcodes.StartLabels);\n  op(MachineOp.PushFrame);\n\n  // If the body invokes a block, its return will return to\n  // END. Otherwise, the return in RETURN will return to END.\n  op(MachineOp.ReturnTo, labelOperand('ENDINITIAL'));\n\n  // Push the arguments onto the stack. The args() function\n  // tells us how many stack elements to retain for re-execution\n  // when updating.\n  let count = args();\n\n  // Start a new updating closure, remembering `count` elements\n  // from the stack. Everything after this point, and before END,\n  // will execute both initially and to update the block.\n  //\n  // The enter and exit opcodes also track the area of the DOM\n  // associated with this block. If an assertion inside the block\n  // fails (for example, the test value changes from true to false\n  // in an #if), the DOM is cleared and the program is re-executed,\n  // restoring `count` elements to the stack and executing the\n  // instructions between the enter and exit.\n  op(Op.Enter, count);\n\n  // Evaluate the body of the block. The body of the block may\n  // return, which will jump execution to END during initial\n  // execution, and exit the updating routine.\n  body();\n\n  // All execution paths in the body should run the FINALLY once\n  // they are done. It is executed both during initial execution\n  // and during updating execution.\n  op(HighLevelBuilderOpcodes.Label, 'FINALLY');\n\n  // Finalize the DOM.\n  op(Op.Exit);\n\n  // In initial execution, this is a noop: it returns to the\n  // immediately following opcode. In updating execution, this\n  // exits the updating routine.\n  op(MachineOp.Return);\n\n  // Cleanup code for the block. Runs on initial execution\n  // but not on updating.\n  op(HighLevelBuilderOpcodes.Label, 'ENDINITIAL');\n  op(MachineOp.PopFrame);\n  op(HighLevelBuilderOpcodes.StopLabels);\n}\n\n/**\n * A specialized version of the `replayable` convenience that allows the\n * caller to provide different code based upon whether the item at\n * the top of the stack is true or false.\n *\n * As in `replayable`, the `ifTrue` and `ifFalse` code can invoke `return`.\n *\n * During the initial execution, a `return` will continue execution\n * in the cleanup code, which finalizes the current DOM block and pops\n * the current frame.\n *\n * During the updating execution, a `return` will exit the updating\n * routine, as it can reuse the DOM block and is always only a single\n * frame deep.\n */\nfunction ReplayableIf(op, args, ifTrue, ifFalse) {\n  return Replayable(op, args, () => {\n    // If the conditional is false, jump to the ELSE label.\n    op(Op.JumpUnless, labelOperand('ELSE'));\n    // Otherwise, execute the code associated with the true branch.\n    ifTrue();\n    // We're done, so return. In the initial execution, this runs\n    // the cleanup code. In the updating VM, it exits the updating\n    // routine.\n    op(MachineOp.Jump, labelOperand('FINALLY'));\n    op(HighLevelBuilderOpcodes.Label, 'ELSE');\n\n    // If the conditional is false, and code associatied ith the\n    // false branch was provided, execute it. If there was no code\n    // associated with the false branch, jumping to the else statement\n    // has no other behavior.\n    if (ifFalse !== undefined) {\n      ifFalse();\n    }\n  });\n}\n\nconst ATTRS_BLOCK = '&attrs';\n\n// {{component}}\n\n// <Component>\n\n// chokepoint\n\nfunction InvokeComponent(op, component, _elementBlock, positional, named, _blocks) {\n  let {\n    compilable,\n    capabilities,\n    handle\n  } = component;\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = Array.isArray(_blocks) || _blocks === null ? namedBlocks(_blocks) : _blocks;\n  if (compilable) {\n    op(Op.PushComponentDefinition, handle);\n    InvokeStaticComponent(op, {\n      capabilities: capabilities,\n      layout: compilable,\n      elementBlock,\n      positional,\n      named,\n      blocks\n    });\n  } else {\n    op(Op.PushComponentDefinition, handle);\n    InvokeNonStaticComponent(op, {\n      capabilities: capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks\n    });\n  }\n}\nfunction InvokeDynamicComponent(op, definition, _elementBlock, positional, named, _blocks, atNames, curried) {\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = Array.isArray(_blocks) || _blocks === null ? namedBlocks(_blocks) : _blocks;\n  Replayable(op, () => {\n    expr(op, definition);\n    op(Op.Dup, $sp, 0);\n    return 2;\n  }, () => {\n    op(Op.JumpUnless, labelOperand('ELSE'));\n    if (curried) {\n      op(Op.ResolveCurriedComponent);\n    } else {\n      op(Op.ResolveDynamicComponent, isStrictMode());\n    }\n    op(Op.PushDynamicComponentInstance);\n    InvokeNonStaticComponent(op, {\n      capabilities: true,\n      elementBlock,\n      positional,\n      named,\n      atNames,\n      blocks\n    });\n    op(HighLevelBuilderOpcodes.Label, 'ELSE');\n  });\n}\nfunction InvokeStaticComponent(op, {\n  capabilities,\n  layout,\n  elementBlock,\n  positional,\n  named,\n  blocks\n}) {\n  let {\n    symbolTable\n  } = layout;\n  let bailOut = symbolTable.hasEval || hasCapability(capabilities, InternalComponentCapabilities.prepareArgs);\n  if (bailOut) {\n    InvokeNonStaticComponent(op, {\n      capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks,\n      layout\n    });\n    return;\n  }\n  op(Op.Fetch, $s0);\n  op(Op.Dup, $sp, 1);\n  op(Op.Load, $s0);\n  op(MachineOp.PushFrame);\n\n  // Setup arguments\n  let {\n    symbols\n  } = symbolTable;\n\n  // As we push values onto the stack, we store the symbols associated  with them\n  // so that we can set them on the scope later on with SetVariable and SetBlock\n  let blockSymbols = [];\n  let argSymbols = [];\n  let argNames = [];\n\n  // First we push the blocks onto the stack\n  let blockNames = blocks.names;\n\n  // Starting with the attrs block, if it exists and is referenced in the component\n  if (elementBlock !== null) {\n    let symbol = symbols.indexOf(ATTRS_BLOCK);\n    if (symbol !== -1) {\n      PushYieldableBlock(op, elementBlock);\n      blockSymbols.push(symbol);\n    }\n  }\n\n  // Followed by the other blocks, if they exist and are referenced in the component.\n  // Also store the index of the associated symbol.\n  for (const name of blockNames) {\n    let symbol = symbols.indexOf(`&${name}`);\n    if (symbol !== -1) {\n      PushYieldableBlock(op, blocks.get(name));\n      blockSymbols.push(symbol);\n    }\n  }\n\n  // Next up we have arguments. If the component has the `createArgs` capability,\n  // then it wants access to the arguments in JavaScript. We can't know whether\n  // or not an argument is used, so we have to give access to all of them.\n  if (hasCapability(capabilities, InternalComponentCapabilities.createArgs)) {\n    // First we push positional arguments\n    let count = CompilePositional(op, positional);\n\n    // setup the flags with the count of positionals, and to indicate that atNames\n    // are used\n    let flags = count << 4;\n    flags |= 0b1000;\n    let names = EMPTY_STRING_ARRAY;\n\n    // Next, if named args exist, push them all. If they have an associated symbol\n    // in the invoked component (e.g. they are used within its template), we push\n    // that symbol. If not, we still push the expression as it may be used, and\n    // we store the symbol as -1 (this is used later).\n    if (named !== null) {\n      names = named[0];\n      let val = named[1];\n      for (let i = 0; i < val.length; i++) {\n        let symbol = symbols.indexOf(unwrap(names[i]));\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n      }\n    }\n\n    // Finally, push the VM arguments themselves. These args won't need access\n    // to blocks (they aren't accessible from userland anyways), so we push an\n    // empty array instead of the actual block names.\n    op(Op.PushArgs, names, EMPTY_STRING_ARRAY, flags);\n\n    // And push an extra pop operation to remove the args before we begin setting\n    // variables on the local context\n    argSymbols.push(-1);\n  } else if (named !== null) {\n    // If the component does not have the `createArgs` capability, then the only\n    // expressions we need to push onto the stack are those that are actually\n    // referenced in the template of the invoked component (e.g. have symbols).\n    let names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      let name = unwrap(names[i]);\n      let symbol = symbols.indexOf(name);\n      if (symbol !== -1) {\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n        argNames.push(name);\n      }\n    }\n  }\n  op(Op.BeginComponentTransaction, $s0);\n  if (hasCapability(capabilities, InternalComponentCapabilities.dynamicScope)) {\n    op(Op.PushDynamicScope);\n  }\n  if (hasCapability(capabilities, InternalComponentCapabilities.createInstance)) {\n    op(Op.CreateComponent, blocks.has('default') | 0, $s0);\n  }\n  op(Op.RegisterComponentDestructor, $s0);\n  if (hasCapability(capabilities, InternalComponentCapabilities.createArgs)) {\n    op(Op.GetComponentSelf, $s0);\n  } else {\n    op(Op.GetComponentSelf, $s0, argNames);\n  }\n\n  // Setup the new root scope for the component\n  op(Op.RootScope, symbols.length + 1, Object.keys(blocks).length > 0 ? 1 : 0);\n\n  // Pop the self reference off the stack and set it to the symbol for `this`\n  // in the new scope. This is why all subsequent symbols are increased by one.\n  op(Op.SetVariable, 0);\n\n  // Going in reverse, now we pop the args/blocks off the stack, starting with\n  // arguments, and assign them to their symbols in the new scope.\n  for (const symbol of reverse(argSymbols)) {\n    // for (let i = argSymbols.length - 1; i >= 0; i--) {\n    //   let symbol = argSymbols[i];\n\n    if (symbol === -1) {\n      // The expression was not bound to a local symbol, it was only pushed to be\n      // used with VM args in the javascript side\n      op(Op.Pop, 1);\n    } else {\n      op(Op.SetVariable, symbol + 1);\n    }\n  }\n\n  // if any positional params exist, pop them off the stack as well\n  if (positional !== null) {\n    op(Op.Pop, positional.length);\n  }\n\n  // Finish up by popping off and assigning blocks\n  for (const symbol of reverse(blockSymbols)) {\n    op(Op.SetBlock, symbol + 1);\n  }\n  op(Op.Constant, layoutOperand(layout));\n  op(Op.CompileBlock);\n  op(MachineOp.InvokeVirtual);\n  op(Op.DidRenderLayout, $s0);\n  op(MachineOp.PopFrame);\n  op(Op.PopScope);\n  if (hasCapability(capabilities, InternalComponentCapabilities.dynamicScope)) {\n    op(Op.PopDynamicScope);\n  }\n  op(Op.CommitComponentTransaction);\n  op(Op.Load, $s0);\n}\nfunction InvokeNonStaticComponent(op, {\n  capabilities,\n  elementBlock,\n  positional,\n  named,\n  atNames,\n  blocks: namedBlocks,\n  layout\n}) {\n  let bindableBlocks = !!namedBlocks;\n  let bindableAtNames = capabilities === true || hasCapability(capabilities, InternalComponentCapabilities.prepareArgs) || !!(named && named[0].length !== 0);\n  let blocks = namedBlocks.with('attrs', elementBlock);\n  op(Op.Fetch, $s0);\n  op(Op.Dup, $sp, 1);\n  op(Op.Load, $s0);\n  op(MachineOp.PushFrame);\n  CompileArgs(op, positional, named, blocks, atNames);\n  op(Op.PrepareArgs, $s0);\n  invokePreparedComponent(op, blocks.has('default'), bindableBlocks, bindableAtNames, () => {\n    if (layout) {\n      op(Op.PushSymbolTable, symbolTableOperand(layout.symbolTable));\n      op(Op.Constant, layoutOperand(layout));\n      op(Op.CompileBlock);\n    } else {\n      op(Op.GetComponentLayout, $s0);\n    }\n    op(Op.PopulateLayout, $s0);\n  });\n  op(Op.Load, $s0);\n}\nfunction WrappedComponent(op, layout, attrsBlockNumber) {\n  op(HighLevelBuilderOpcodes.StartLabels);\n  WithSavedRegister(op, $s1, () => {\n    op(Op.GetComponentTagName, $s0);\n    op(Op.PrimitiveReference);\n    op(Op.Dup, $sp, 0);\n  });\n  op(Op.JumpUnless, labelOperand('BODY'));\n  op(Op.Fetch, $s1);\n  op(Op.PutComponentOperations);\n  op(Op.OpenDynamicElement);\n  op(Op.DidCreateElement, $s0);\n  YieldBlock(op, attrsBlockNumber, null);\n  op(Op.FlushElement);\n  op(HighLevelBuilderOpcodes.Label, 'BODY');\n  InvokeStaticBlock(op, [layout.block[0], []]);\n  op(Op.Fetch, $s1);\n  op(Op.JumpUnless, labelOperand('END'));\n  op(Op.CloseElement);\n  op(HighLevelBuilderOpcodes.Label, 'END');\n  op(Op.Load, $s1);\n  op(HighLevelBuilderOpcodes.StopLabels);\n}\nfunction invokePreparedComponent(op, hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n  op(Op.BeginComponentTransaction, $s0);\n  op(Op.PushDynamicScope);\n  op(Op.CreateComponent, hasBlock | 0, $s0);\n\n  // this has to run after createComponent to allow\n  // for late-bound layouts, but a caller is free\n  // to populate the layout earlier if it wants to\n  // and do nothing here.\n  if (populateLayout) {\n    populateLayout();\n  }\n  op(Op.RegisterComponentDestructor, $s0);\n  op(Op.GetComponentSelf, $s0);\n  op(Op.VirtualRootScope, $s0);\n  op(Op.SetVariable, 0);\n  op(Op.SetupForEval, $s0);\n  if (bindableAtNames) op(Op.SetNamedVariables, $s0);\n  if (bindableBlocks) op(Op.SetBlocks, $s0);\n  op(Op.Pop, 1);\n  op(Op.InvokeComponentLayout, $s0);\n  op(Op.DidRenderLayout, $s0);\n  op(MachineOp.PopFrame);\n  op(Op.PopScope);\n  op(Op.PopDynamicScope);\n  op(Op.CommitComponentTransaction);\n}\nfunction InvokeBareComponent(op) {\n  op(Op.Fetch, $s0);\n  op(Op.Dup, $sp, 1);\n  op(Op.Load, $s0);\n  op(MachineOp.PushFrame);\n  op(Op.PushEmptyArgs);\n  op(Op.PrepareArgs, $s0);\n  invokePreparedComponent(op, false, false, true, () => {\n    op(Op.GetComponentLayout, $s0);\n    op(Op.PopulateLayout, $s0);\n  });\n  op(Op.Load, $s0);\n}\nfunction WithSavedRegister(op, register, block) {\n  op(Op.Fetch, register);\n  block();\n  op(Op.Load, register);\n}\n\nfunction main(op) {\n  op(Op.Main, $s0);\n  invokePreparedComponent(op, false, false, true);\n}\n\n/**\n * Append content to the DOM. This standard function triages content and does the\n * right thing based upon whether it's a string, safe string, component, fragment\n * or node.\n *\n * @param trusting whether to interpolate a string as raw HTML (corresponds to\n * triple curlies)\n */\nfunction StdAppend(op, trusting, nonDynamicAppend) {\n  SwitchCases(op, () => op(Op.ContentType), when => {\n    when(ContentType.String, () => {\n      if (trusting) {\n        op(Op.AssertSame);\n        op(Op.AppendHTML);\n      } else {\n        op(Op.AppendText);\n      }\n    });\n    if (typeof nonDynamicAppend === 'number') {\n      when(ContentType.Component, () => {\n        op(Op.ResolveCurriedComponent);\n        op(Op.PushDynamicComponentInstance);\n        InvokeBareComponent(op);\n      });\n      when(ContentType.Helper, () => {\n        CallDynamic(op, null, null, () => {\n          op(MachineOp.InvokeStatic, nonDynamicAppend);\n        });\n      });\n    } else {\n      // when non-dynamic, we can no longer call the value (potentially because we've already called it)\n      // this prevents infinite loops. We instead coerce the value, whatever it is, into the DOM.\n      when(ContentType.Component, () => {\n        op(Op.AppendText);\n      });\n      when(ContentType.Helper, () => {\n        op(Op.AppendText);\n      });\n    }\n    when(ContentType.SafeString, () => {\n      op(Op.AssertSame);\n      op(Op.AppendSafeHTML);\n    });\n    when(ContentType.Fragment, () => {\n      op(Op.AssertSame);\n      op(Op.AppendDocumentFragment);\n    });\n    when(ContentType.Node, () => {\n      op(Op.AssertSame);\n      op(Op.AppendNode);\n    });\n  });\n}\nfunction compileStd(context) {\n  let mainHandle = build(context, op => main(op));\n  let trustingGuardedNonDynamicAppend = build(context, op => StdAppend(op, true, null));\n  let cautiousGuardedNonDynamicAppend = build(context, op => StdAppend(op, false, null));\n  let trustingGuardedDynamicAppend = build(context, op => StdAppend(op, true, trustingGuardedNonDynamicAppend));\n  let cautiousGuardedDynamicAppend = build(context, op => StdAppend(op, false, cautiousGuardedNonDynamicAppend));\n  return new StdLib(mainHandle, trustingGuardedDynamicAppend, cautiousGuardedDynamicAppend, trustingGuardedNonDynamicAppend, cautiousGuardedNonDynamicAppend);\n}\nconst STDLIB_META = {\n  evalSymbols: null,\n  upvars: null,\n  moduleName: 'stdlib',\n  // TODO: ??\n  scopeValues: null,\n  isStrictMode: true,\n  owner: null,\n  size: 0\n};\nfunction build(program, builder) {\n  let {\n    constants,\n    heap,\n    resolver\n  } = program;\n  let encoder = new EncoderImpl(heap, STDLIB_META);\n  function pushOp(...op) {\n    encodeOp(encoder, constants, resolver, STDLIB_META, op);\n  }\n  builder(pushOp);\n  let result = encoder.commit(0);\n  if (typeof result !== 'number') {\n    // This shouldn't be possible\n    throw new Error(`Unexpected errors compiling std`);\n  } else {\n    return result;\n  }\n}\n\nclass CompileTimeCompilationContextImpl {\n  constants;\n  heap;\n  stdlib;\n  constructor({\n    constants,\n    heap\n  }, resolver, createOp) {\n    this.resolver = resolver;\n    this.createOp = createOp;\n    this.constants = constants;\n    this.heap = heap;\n    this.stdlib = compileStd(this);\n  }\n}\n\nfunction programCompilationContext(artifacts, resolver, createOp) {\n  return new CompileTimeCompilationContextImpl(artifacts, resolver, createOp);\n}\nfunction templateCompilationContext(program, meta) {\n  let encoder = new EncoderImpl(program.heap, meta, program.stdlib);\n  return {\n    program,\n    encoder,\n    meta\n  };\n}\n\nconst STATEMENTS = new Compilers();\nconst INFLATE_ATTR_TABLE = ['class', 'id', 'value', 'name', 'type', 'style', 'href'];\nconst INFLATE_TAG_TABLE = ['div', 'span', 'p', 'a'];\nfunction inflateTagName(tagName) {\n  return typeof tagName === 'string' ? tagName : INFLATE_TAG_TABLE[tagName];\n}\nfunction inflateAttrName(attrName) {\n  return typeof attrName === 'string' ? attrName : INFLATE_ATTR_TABLE[attrName];\n}\nSTATEMENTS.add(SexpOpcodes.Comment, (op, sexp) => op(Op.Comment, sexp[1]));\nSTATEMENTS.add(SexpOpcodes.CloseElement, op => op(Op.CloseElement));\nSTATEMENTS.add(SexpOpcodes.FlushElement, op => op(Op.FlushElement));\nSTATEMENTS.add(SexpOpcodes.Modifier, (op, [, expression, positional, named]) => {\n  if (isGetFreeModifier(expression)) {\n    op(HighLevelResolutionOpcodes.Modifier, expression, handle => {\n      op(MachineOp.PushFrame);\n      SimpleArgs(op, positional, named, false);\n      op(Op.Modifier, handle);\n      op(MachineOp.PopFrame);\n    });\n  } else {\n    expr(op, expression);\n    op(MachineOp.PushFrame);\n    SimpleArgs(op, positional, named, false);\n    op(Op.Dup, $fp, 1);\n    op(Op.DynamicModifier);\n    op(MachineOp.PopFrame);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.StaticAttr, (op, [, name, value, namespace]) => {\n  op(Op.StaticAttr, inflateAttrName(name), value, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.StaticComponentAttr, (op, [, name, value, namespace]) => {\n  op(Op.StaticComponentAttr, inflateAttrName(name), value, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.DynamicAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(Op.DynamicAttr, inflateAttrName(name), false, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.TrustingDynamicAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(Op.DynamicAttr, inflateAttrName(name), true, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.ComponentAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(Op.ComponentAttr, inflateAttrName(name), false, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.TrustingComponentAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(Op.ComponentAttr, inflateAttrName(name), true, namespace ?? null);\n});\nSTATEMENTS.add(SexpOpcodes.OpenElement, (op, [, tag]) => {\n  op(Op.OpenElement, inflateTagName(tag));\n});\nSTATEMENTS.add(SexpOpcodes.OpenElementWithSplat, (op, [, tag]) => {\n  op(Op.PutComponentOperations);\n  op(Op.OpenElement, inflateTagName(tag));\n});\nSTATEMENTS.add(SexpOpcodes.Component, (op, [, expr, elementBlock, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, elementBlock, null, named, blocks);\n    });\n  } else {\n    // otherwise, the component name was an expression, so resolve the expression\n    // and invoke it as a dynamic component\n    InvokeDynamicComponent(op, expr, elementBlock, null, named, blocks, true, true);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.Yield, (op, [, to, params]) => YieldBlock(op, to, params));\nSTATEMENTS.add(SexpOpcodes.AttrSplat, (op, [, to]) => YieldBlock(op, to, null));\nSTATEMENTS.add(SexpOpcodes.Debugger, (op, [, debugInfo]) => op(Op.Debugger, debugSymbolsOperand(), debugInfo));\nSTATEMENTS.add(SexpOpcodes.Append, (op, [, value]) => {\n  // Special case for static values\n  if (!Array.isArray(value)) {\n    op(Op.Text, value === null || value === undefined ? '' : String(value));\n  } else if (isGetFreeOptionalComponentOrHelper(value)) {\n    op(HighLevelResolutionOpcodes.OptionalComponentOrHelper, value, {\n      ifComponent(component) {\n        InvokeComponent(op, component, null, null, null, null);\n      },\n      ifHelper(handle) {\n        op(MachineOp.PushFrame);\n        Call(op, handle, null, null);\n        op(MachineOp.InvokeStatic, stdlibOperand('cautious-non-dynamic-append'));\n        op(MachineOp.PopFrame);\n      },\n      ifValue(handle) {\n        op(MachineOp.PushFrame);\n        op(Op.ConstantReference, handle);\n        op(MachineOp.InvokeStatic, stdlibOperand('cautious-non-dynamic-append'));\n        op(MachineOp.PopFrame);\n      }\n    });\n  } else if (value[0] === SexpOpcodes.Call) {\n    let [, expression, positional, named] = value;\n    if (isGetFreeComponentOrHelper(expression)) {\n      op(HighLevelResolutionOpcodes.ComponentOrHelper, expression, {\n        ifComponent(component) {\n          InvokeComponent(op, component, null, positional, hashToArgs(named), null);\n        },\n        ifHelper(handle) {\n          op(MachineOp.PushFrame);\n          Call(op, handle, positional, named);\n          op(MachineOp.InvokeStatic, stdlibOperand('cautious-non-dynamic-append'));\n          op(MachineOp.PopFrame);\n        }\n      });\n    } else {\n      SwitchCases(op, () => {\n        expr(op, expression);\n        op(Op.DynamicContentType);\n      }, when => {\n        when(ContentType.Component, () => {\n          op(Op.ResolveCurriedComponent);\n          op(Op.PushDynamicComponentInstance);\n          InvokeNonStaticComponent(op, {\n            capabilities: true,\n            elementBlock: null,\n            positional,\n            named,\n            atNames: false,\n            blocks: namedBlocks(null)\n          });\n        });\n        when(ContentType.Helper, () => {\n          CallDynamic(op, positional, named, () => {\n            op(MachineOp.InvokeStatic, stdlibOperand('cautious-non-dynamic-append'));\n          });\n        });\n      });\n    }\n  } else {\n    op(MachineOp.PushFrame);\n    expr(op, value);\n    op(MachineOp.InvokeStatic, stdlibOperand('cautious-append'));\n    op(MachineOp.PopFrame);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.TrustingAppend, (op, [, value]) => {\n  if (!Array.isArray(value)) {\n    op(Op.Text, value === null || value === undefined ? '' : String(value));\n  } else {\n    op(MachineOp.PushFrame);\n    expr(op, value);\n    op(MachineOp.InvokeStatic, stdlibOperand('trusting-append'));\n    op(MachineOp.PopFrame);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.Block, (op, [, expr, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.InElement, (op, [, block, guid, destination, insertBefore]) => {\n  ReplayableIf(op, () => {\n    expr(op, guid);\n    if (insertBefore === undefined) {\n      PushPrimitiveReference(op, undefined);\n    } else {\n      expr(op, insertBefore);\n    }\n    expr(op, destination);\n    op(Op.Dup, $sp, 0);\n    return 4;\n  }, () => {\n    op(Op.PushRemoteElement);\n    InvokeStaticBlock(op, block);\n    op(Op.PopRemoteElement);\n  });\n});\nSTATEMENTS.add(SexpOpcodes.If, (op, [, condition, block, inverse]) => ReplayableIf(op, () => {\n  expr(op, condition);\n  op(Op.ToBoolean);\n  return 1;\n}, () => {\n  InvokeStaticBlock(op, block);\n}, inverse ? () => {\n  InvokeStaticBlock(op, inverse);\n} : undefined));\nSTATEMENTS.add(SexpOpcodes.Each, (op, [, value, key, block, inverse]) => Replayable(op, () => {\n  if (key) {\n    expr(op, key);\n  } else {\n    PushPrimitiveReference(op, null);\n  }\n  expr(op, value);\n  return 2;\n}, () => {\n  op(Op.EnterList, labelOperand('BODY'), labelOperand('ELSE'));\n  op(MachineOp.PushFrame);\n  op(Op.Dup, $fp, 1);\n  op(MachineOp.ReturnTo, labelOperand('ITER'));\n  op(HighLevelBuilderOpcodes.Label, 'ITER');\n  op(Op.Iterate, labelOperand('BREAK'));\n  op(HighLevelBuilderOpcodes.Label, 'BODY');\n  InvokeStaticBlockWithStack(op, block, 2);\n  op(Op.Pop, 2);\n  op(MachineOp.Jump, labelOperand('FINALLY'));\n  op(HighLevelBuilderOpcodes.Label, 'BREAK');\n  op(MachineOp.PopFrame);\n  op(Op.ExitList);\n  op(MachineOp.Jump, labelOperand('FINALLY'));\n  op(HighLevelBuilderOpcodes.Label, 'ELSE');\n  if (inverse) {\n    InvokeStaticBlock(op, inverse);\n  }\n}));\nSTATEMENTS.add(SexpOpcodes.With, (op, [, value, block, inverse]) => {\n  ReplayableIf(op, () => {\n    expr(op, value);\n    op(Op.Dup, $sp, 0);\n    op(Op.ToBoolean);\n    return 2;\n  }, () => {\n    InvokeStaticBlockWithStack(op, block, 1);\n  }, () => {\n    if (inverse) {\n      InvokeStaticBlock(op, inverse);\n    }\n  });\n});\nSTATEMENTS.add(SexpOpcodes.Let, (op, [, positional, block]) => {\n  let count = CompilePositional(op, positional);\n  InvokeStaticBlockWithStack(op, block, count);\n});\nSTATEMENTS.add(SexpOpcodes.WithDynamicVars, (op, [, named, block]) => {\n  if (named) {\n    let [names, expressions] = named;\n    CompilePositional(op, expressions);\n    DynamicScope(op, names, () => {\n      InvokeStaticBlock(op, block);\n    });\n  } else {\n    InvokeStaticBlock(op, block);\n  }\n});\nSTATEMENTS.add(SexpOpcodes.InvokeComponent, (op, [, expr, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);\n  }\n});\nfunction hashToArgs(hash) {\n  if (hash === null) return null;\n  let names = hash[0].map(key => `@${key}`);\n  return [names, hash[1]];\n}\n\nconst PLACEHOLDER_HANDLE = -1;\nclass CompilableTemplateImpl {\n  compiled = null;\n  constructor(statements, meta,\n  // Part of CompilableTemplate\n  symbolTable,\n  // Used for debugging\n  moduleName = 'plain block') {\n    this.statements = statements;\n    this.meta = meta;\n    this.symbolTable = symbolTable;\n    this.moduleName = moduleName;\n  }\n\n  // Part of CompilableTemplate\n  compile(context) {\n    return maybeCompile(this, context);\n  }\n}\nfunction compilable(layout, moduleName) {\n  let [statements, symbols, hasEval] = layout.block;\n  return new CompilableTemplateImpl(statements, meta(layout), {\n    symbols,\n    hasEval\n  }, moduleName);\n}\nfunction maybeCompile(compilable, context) {\n  if (compilable.compiled !== null) return compilable.compiled;\n  compilable.compiled = PLACEHOLDER_HANDLE;\n  let {\n    statements,\n    meta\n  } = compilable;\n  let result = compileStatements(statements, meta, context);\n  compilable.compiled = result;\n  return result;\n}\nfunction compileStatements(statements, meta, syntaxContext) {\n  let sCompiler = STATEMENTS;\n  let context = templateCompilationContext(syntaxContext, meta);\n  let {\n    encoder,\n    program: {\n      constants,\n      resolver\n    }\n  } = context;\n  function pushOp(...op) {\n    encodeOp(encoder, constants, resolver, meta, op);\n  }\n  for (const statement of statements) {\n    sCompiler.compile(pushOp, statement);\n  }\n  let handle = context.encoder.commit(meta.size);\n  return handle;\n}\nfunction compilableBlock(block, containing) {\n  return new CompilableTemplateImpl(block[0], containing, {\n    parameters: block[1] || EMPTY_ARRAY\n  });\n}\n\nconst DEFAULT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: true,\n  createCaller: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nconst MINIMAL_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: false,\n  createCaller: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\n\nclass WrappedBuilder {\n  symbolTable;\n  compiled = null;\n  attrsBlockNumber;\n  constructor(layout, moduleName) {\n    this.layout = layout;\n    this.moduleName = moduleName;\n    let {\n      block\n    } = layout;\n    let [, symbols, hasEval] = block;\n    symbols = symbols.slice();\n\n    // ensure ATTRS_BLOCK is always included (only once) in the list of symbols\n    let attrsBlockIndex = symbols.indexOf(ATTRS_BLOCK);\n    if (attrsBlockIndex === -1) {\n      this.attrsBlockNumber = symbols.push(ATTRS_BLOCK);\n    } else {\n      this.attrsBlockNumber = attrsBlockIndex + 1;\n    }\n    this.symbolTable = {\n      hasEval,\n      symbols\n    };\n  }\n  compile(syntax) {\n    if (this.compiled !== null) return this.compiled;\n    let m = meta(this.layout);\n    let context = templateCompilationContext(syntax, m);\n    let {\n      encoder,\n      program: {\n        constants,\n        resolver\n      }\n    } = context;\n    function pushOp(...op) {\n      encodeOp(encoder, constants, resolver, m, op);\n    }\n    WrappedComponent(pushOp, this.layout, this.attrsBlockNumber);\n    let handle = context.encoder.commit(m.size);\n    if (typeof handle !== 'number') {\n      return handle;\n    }\n    this.compiled = handle;\n    return handle;\n  }\n}\n\nlet clientId = 0;\nlet templateCacheCounters = {\n  cacheHit: 0,\n  cacheMiss: 0\n};\n\n// These interfaces are for backwards compatibility, some addons use these intimate APIs\n\n/**\n * Wraps a template js in a template module to change it into a factory\n * that handles lazy parsing the template and to create per env singletons\n * of the template.\n */\nfunction templateFactory({\n  id: templateId,\n  moduleName,\n  block,\n  scope,\n  isStrictMode\n}) {\n  // TODO(template-refactors): This should be removed in the near future, as it\n  // appears that id is unused. It is currently kept for backwards compat reasons.\n  let id = templateId || `client-${clientId++}`;\n\n  // TODO: This caches JSON serialized output once in case a template is\n  // compiled by multiple owners, but we haven't verified if this is actually\n  // helpful. We should benchmark this in the future.\n  let parsedBlock;\n  let ownerlessTemplate = null;\n  let templateCache = new WeakMap();\n  let factory = owner => {\n    if (parsedBlock === undefined) {\n      parsedBlock = JSON.parse(block);\n    }\n    if (owner === undefined) {\n      if (ownerlessTemplate === null) {\n        templateCacheCounters.cacheMiss++;\n        ownerlessTemplate = new TemplateImpl({\n          id,\n          block: parsedBlock,\n          moduleName,\n          owner: null,\n          scope,\n          isStrictMode\n        });\n      } else {\n        templateCacheCounters.cacheHit++;\n      }\n      return ownerlessTemplate;\n    }\n    let result = templateCache.get(owner);\n    if (result === undefined) {\n      templateCacheCounters.cacheMiss++;\n      result = new TemplateImpl({\n        id,\n        block: parsedBlock,\n        moduleName,\n        owner,\n        scope,\n        isStrictMode\n      });\n      templateCache.set(owner, result);\n    } else {\n      templateCacheCounters.cacheHit++;\n    }\n    return result;\n  };\n  factory.__id = id;\n  factory.__meta = {\n    moduleName\n  };\n  return factory;\n}\nclass TemplateImpl {\n  result = 'ok';\n  layout = null;\n  wrappedLayout = null;\n  constructor(parsedLayout) {\n    this.parsedLayout = parsedLayout;\n  }\n  get moduleName() {\n    return this.parsedLayout.moduleName;\n  }\n  get id() {\n    return this.parsedLayout.id;\n  }\n\n  // TODO(template-refactors): This should be removed in the near future, it is\n  // only being exposed for backwards compatibility\n  get referrer() {\n    return {\n      moduleName: this.parsedLayout.moduleName,\n      owner: this.parsedLayout.owner\n    };\n  }\n  asLayout() {\n    if (this.layout) return this.layout;\n    return this.layout = compilable(assign({}, this.parsedLayout), this.moduleName);\n  }\n  asWrappedLayout() {\n    if (this.wrappedLayout) return this.wrappedLayout;\n    return this.wrappedLayout = new WrappedBuilder(assign({}, this.parsedLayout), this.moduleName);\n  }\n}\n\nexport { CompileTimeCompilationContextImpl, DEFAULT_CAPABILITIES, EMPTY_BLOCKS, MINIMAL_CAPABILITIES, StdLib, WrappedBuilder, compilable, compileStatements, compileStd, debugCompiler, InvokeStaticBlock as invokeStaticBlock, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, meta, programCompilationContext, templateCacheCounters, templateCompilationContext, templateFactory };\n","const OWNER = Symbol('OWNER');\n/**\n  Framework objects in a Glimmer application may receive an owner object.\n  Glimmer is unopinionated about this owner, but will forward it through its\n  internal resolution system, and through its managers if it is provided.\n*/\nfunction getOwner(object) {\n  return object[OWNER];\n}\n\n/**\n  `setOwner` set's an object's owner\n*/\nfunction setOwner(object, owner) {\n  object[OWNER] = owner;\n}\n\nexport { OWNER, getOwner, setOwner };\n","import { getInternalHelperManager, getInternalModifierManager, getInternalComponentManager, capabilityFlagsFrom, getComponentTemplate, managerHasCapability } from '@glimmer/manager';\nimport { templateFactory } from '@glimmer/opcode-compiler';\nimport { constants, enumerate, assert, unwrapTemplate, expect, unwrap } from '@glimmer/util';\nimport { InternalComponentCapabilities, OPERAND_LEN_MASK, ARG_SHIFT, MACHINE_MASK, TYPE_MASK } from '@glimmer/vm';\nimport { SexpOpcodes } from '@glimmer/wire-format';\n\n/**\n * Default component template, which is a plain yield\n */\nconst DEFAULT_TEMPLATE_BLOCK = [[[SexpOpcodes.Yield, 1, null]], ['&default'], false, []];\nconst DEFAULT_TEMPLATE = {\n  // random uuid\n  id: '1b32f5c2-7623-43d6-a0ad-9672898920a1',\n  moduleName: '__default__.hbs',\n  block: JSON.stringify(DEFAULT_TEMPLATE_BLOCK),\n  scope: null,\n  isStrictMode: true\n};\n\nconst WELL_KNOWN_EMPTY_ARRAY = Object.freeze([]);\nconst STARTER_CONSTANTS = constants(WELL_KNOWN_EMPTY_ARRAY);\nconst WELL_KNOWN_EMPTY_ARRAY_POSITION = STARTER_CONSTANTS.indexOf(WELL_KNOWN_EMPTY_ARRAY);\nclass CompileTimeConstantImpl {\n  // `0` means NULL\n\n  values = STARTER_CONSTANTS.slice();\n  indexMap = new Map(this.values.map((value, index) => [value, index]));\n  value(value) {\n    let indexMap = this.indexMap;\n    let index = indexMap.get(value);\n    if (index === undefined) {\n      index = this.values.push(value) - 1;\n      indexMap.set(value, index);\n    }\n    return index;\n  }\n  array(values) {\n    if (values.length === 0) {\n      return WELL_KNOWN_EMPTY_ARRAY_POSITION;\n    }\n    let handles = new Array(values.length);\n    for (let i = 0; i < values.length; i++) {\n      handles[i] = this.value(values[i]);\n    }\n    return this.value(handles);\n  }\n  toPool() {\n    return this.values;\n  }\n}\nclass RuntimeConstantsImpl {\n  values;\n  constructor(pool) {\n    this.values = pool;\n  }\n  getValue(handle) {\n    return this.values[handle];\n  }\n  getArray(value) {\n    let handles = this.getValue(value);\n    let reified = new Array(handles.length);\n    for (const [i, n] of enumerate(handles)) {\n      reified[i] = this.getValue(n);\n    }\n    return reified;\n  }\n}\nclass ConstantsImpl extends CompileTimeConstantImpl {\n  reifiedArrs = {\n    [WELL_KNOWN_EMPTY_ARRAY_POSITION]: WELL_KNOWN_EMPTY_ARRAY\n  };\n  defaultTemplate = templateFactory(DEFAULT_TEMPLATE)();\n\n  // Used for tests and debugging purposes, and to be able to analyze large apps\n  // This is why it's enabled even in production\n  helperDefinitionCount = 0;\n  modifierDefinitionCount = 0;\n  componentDefinitionCount = 0;\n  helperDefinitionCache = new WeakMap();\n  modifierDefinitionCache = new WeakMap();\n  componentDefinitionCache = new WeakMap();\n  helper(definitionState,\n  // TODO: Add a way to expose resolved name for debugging\n  _resolvedName = null, isOptional) {\n    let handle = this.helperDefinitionCache.get(definitionState);\n    if (handle === undefined) {\n      let managerOrHelper = getInternalHelperManager(definitionState, isOptional);\n      if (managerOrHelper === null) {\n        this.helperDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      assert(managerOrHelper, 'BUG: expected manager or helper');\n      let helper = typeof managerOrHelper === 'function' ? managerOrHelper : managerOrHelper.getHelper(definitionState);\n      handle = this.value(helper);\n      this.helperDefinitionCache.set(definitionState, handle);\n      this.helperDefinitionCount++;\n    }\n    return handle;\n  }\n  modifier(definitionState, resolvedName = null, isOptional) {\n    let handle = this.modifierDefinitionCache.get(definitionState);\n    if (handle === undefined) {\n      let manager = getInternalModifierManager(definitionState, isOptional);\n      if (manager === null) {\n        this.modifierDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let definition = {\n        resolvedName,\n        manager,\n        state: definitionState\n      };\n      handle = this.value(definition);\n      this.modifierDefinitionCache.set(definitionState, handle);\n      this.modifierDefinitionCount++;\n    }\n    return handle;\n  }\n  component(definitionState, owner, isOptional) {\n    let definition = this.componentDefinitionCache.get(definitionState);\n    if (definition === undefined) {\n      let manager = getInternalComponentManager(definitionState, isOptional);\n      if (manager === null) {\n        this.componentDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      assert(manager, 'BUG: expected manager');\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(definitionState));\n      let templateFactory = getComponentTemplate(definitionState);\n      let compilable = null;\n      let template;\n      if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout)) {\n        template = templateFactory?.(owner) ?? this.defaultTemplate;\n      } else {\n        template = templateFactory?.(owner);\n      }\n      if (template !== undefined) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped) ? template.asWrappedLayout() : template.asLayout();\n      }\n      definition = {\n        resolvedName: null,\n        handle: -1,\n        // replaced momentarily\n        manager,\n        capabilities,\n        state: definitionState,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      this.componentDefinitionCache.set(definitionState, definition);\n      this.componentDefinitionCount++;\n    }\n    return definition;\n  }\n  resolvedComponent(resolvedDefinition, resolvedName) {\n    let definition = this.componentDefinitionCache.get(resolvedDefinition);\n    if (definition === undefined) {\n      let {\n        manager,\n        state,\n        template\n      } = resolvedDefinition;\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(resolvedDefinition));\n      let compilable = null;\n      if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout)) {\n        template = template ?? this.defaultTemplate;\n      }\n      if (template !== null) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped) ? template.asWrappedLayout() : template.asLayout();\n      }\n      definition = {\n        resolvedName,\n        handle: -1,\n        // replaced momentarily\n        manager,\n        capabilities,\n        state,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      this.componentDefinitionCache.set(resolvedDefinition, definition);\n      this.componentDefinitionCount++;\n    }\n    return expect(definition, 'BUG: resolved component definitions cannot be null');\n  }\n  getValue(index) {\n    assert(index >= 0, `cannot get value for handle: ${index}`);\n    return this.values[index];\n  }\n  getArray(index) {\n    let reifiedArrs = this.reifiedArrs;\n    let reified = reifiedArrs[index];\n    if (reified === undefined) {\n      let names = this.getValue(index);\n      reified = new Array(names.length);\n      for (const [i, name] of enumerate(names)) {\n        reified[i] = this.getValue(name);\n      }\n      reifiedArrs[index] = reified;\n    }\n    return reified;\n  }\n}\n\nclass RuntimeOpImpl {\n  offset = 0;\n  constructor(heap) {\n    this.heap = heap;\n  }\n  get size() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return ((rawType & OPERAND_LEN_MASK) >> ARG_SHIFT) + 1;\n  }\n  get isMachine() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return rawType & MACHINE_MASK ? 1 : 0;\n  }\n  get type() {\n    return this.heap.getbyaddr(this.offset) & TYPE_MASK;\n  }\n  get op1() {\n    return this.heap.getbyaddr(this.offset + 1);\n  }\n  get op2() {\n    return this.heap.getbyaddr(this.offset + 2);\n  }\n  get op3() {\n    return this.heap.getbyaddr(this.offset + 3);\n  }\n}\n\nvar TableSlotState = /*#__PURE__*/function (TableSlotState) {\n  TableSlotState[TableSlotState[\"Allocated\"] = 0] = \"Allocated\";\n  TableSlotState[TableSlotState[\"Freed\"] = 1] = \"Freed\";\n  TableSlotState[TableSlotState[\"Purged\"] = 2] = \"Purged\";\n  TableSlotState[TableSlotState[\"Pointer\"] = 3] = \"Pointer\";\n  return TableSlotState;\n}(TableSlotState || {});\nconst PAGE_SIZE = 0x100000;\nclass RuntimeHeapImpl {\n  heap;\n  table;\n  constructor(serializedHeap) {\n    let {\n      buffer,\n      table\n    } = serializedHeap;\n    this.heap = new Int32Array(buffer);\n    this.table = table;\n  }\n\n  // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n  getaddr(handle) {\n    return unwrap(this.table[handle]);\n  }\n  getbyaddr(address) {\n    return expect(this.heap[address], 'Access memory out of bounds of the heap');\n  }\n  sizeof(handle) {\n    return sizeof(this.table);\n  }\n}\nfunction hydrateHeap(serializedHeap) {\n  return new RuntimeHeapImpl(serializedHeap);\n}\n\n/**\n * The Heap is responsible for dynamically allocating\n * memory in which we read/write the VM's instructions\n * from/to. When we malloc we pass out a VMHandle, which\n * is used as an indirect way of accessing the memory during\n * execution of the VM. Internally we track the different\n * regions of the memory in an int array known as the table.\n *\n * The table 32-bit aligned and has the following layout:\n *\n * | ... | hp (u32) |       info (u32)   | size (u32) |\n * | ... |  Handle  | Scope Size | State | Size       |\n * | ... | 32bits   | 30bits     | 2bits | 32bit      |\n *\n * With this information we effectively have the ability to\n * control when we want to free memory. That being said you\n * can not free during execution as raw address are only\n * valid during the execution. This means you cannot close\n * over them as you will have a bad memory access exception.\n */\nclass HeapImpl {\n  offset = 0;\n  heap;\n  handleTable;\n  handleState;\n  handle = 0;\n  constructor() {\n    this.heap = new Int32Array(PAGE_SIZE);\n    this.handleTable = [];\n    this.handleState = [];\n  }\n  pushRaw(value) {\n    this.sizeCheck();\n    this.heap[this.offset++] = value;\n  }\n  pushOp(item) {\n    this.pushRaw(item);\n  }\n  pushMachine(item) {\n    this.pushRaw(item | MACHINE_MASK);\n  }\n  sizeCheck() {\n    let {\n      heap\n    } = this;\n    if (this.offset === this.heap.length) {\n      let newHeap = new Int32Array(heap.length + PAGE_SIZE);\n      newHeap.set(heap, 0);\n      this.heap = newHeap;\n    }\n  }\n  getbyaddr(address) {\n    return unwrap(this.heap[address]);\n  }\n  setbyaddr(address, value) {\n    this.heap[address] = value;\n  }\n  malloc() {\n    // push offset, info, size\n    this.handleTable.push(this.offset);\n    return this.handleTable.length - 1;\n  }\n  finishMalloc(handle) {\n  }\n  size() {\n    return this.offset;\n  }\n\n  // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n  getaddr(handle) {\n    return unwrap(this.handleTable[handle]);\n  }\n  sizeof(handle) {\n    return sizeof(this.handleTable);\n  }\n  free(handle) {\n    this.handleState[handle] = TableSlotState.Freed;\n  }\n\n  /**\n   * The heap uses the [Mark-Compact Algorithm](https://en.wikipedia.org/wiki/Mark-compact_algorithm) to shift\n   * reachable memory to the bottom of the heap and freeable\n   * memory to the top of the heap. When we have shifted all\n   * the reachable memory to the top of the heap, we move the\n   * offset to the next free position.\n   */\n  compact() {\n    let compactedSize = 0;\n    let {\n      handleTable,\n      handleState,\n      heap\n    } = this;\n    for (let i = 0; i < length; i++) {\n      let offset = unwrap(handleTable[i]);\n      let size = unwrap(handleTable[i + 1]) - unwrap(offset);\n      let state = handleState[i];\n      if (state === TableSlotState.Purged) {\n        continue;\n      } else if (state === TableSlotState.Freed) {\n        // transition to \"already freed\" aka \"purged\"\n        // a good improvement would be to reuse\n        // these slots\n        handleState[i] = TableSlotState.Purged;\n        compactedSize += size;\n      } else if (state === TableSlotState.Allocated) {\n        for (let j = offset; j <= i + size; j++) {\n          heap[j - compactedSize] = unwrap(heap[j]);\n        }\n        handleTable[i] = offset - compactedSize;\n      } else if (state === TableSlotState.Pointer) {\n        handleTable[i] = offset - compactedSize;\n      }\n    }\n    this.offset = this.offset - compactedSize;\n  }\n  capture(offset = this.offset) {\n    // Only called in eager mode\n    let buffer = slice(this.heap, 0, offset).buffer;\n    return {\n      handle: this.handle,\n      table: this.handleTable,\n      buffer: buffer\n    };\n  }\n}\nclass RuntimeProgramImpl {\n  _opcode;\n  constructor(constants, heap) {\n    this.constants = constants;\n    this.heap = heap;\n    this._opcode = new RuntimeOpImpl(this.heap);\n  }\n  opcode(offset) {\n    this._opcode.offset = offset;\n    return this._opcode;\n  }\n}\nfunction slice(arr, start, end) {\n  if (arr.slice !== undefined) {\n    return arr.slice(start, end);\n  }\n  let ret = new Int32Array(end);\n  for (; start < end; start++) {\n    ret[start] = unwrap(arr[start]);\n  }\n  return ret;\n}\nfunction sizeof(table, handle) {\n  {\n    return -1;\n  }\n}\n\nfunction artifacts() {\n  return {\n    constants: new ConstantsImpl(),\n    heap: new HeapImpl()\n  };\n}\n\nexport { CompileTimeConstantImpl, ConstantsImpl, HeapImpl, RuntimeConstantsImpl, RuntimeHeapImpl, RuntimeOpImpl, RuntimeProgramImpl, artifacts, hydrateHeap };\n","import { DEBUG } from '@glimmer/env';\nimport { setProp, getProp, toIterator, getPath } from '@glimmer/global-context';\nimport { expect, isDict, EMPTY_ARRAY, isObject } from '@glimmer/util';\nimport { CONSTANT_TAG, validateTag, track, valueForTag, consumeTag, createTag, dirtyTag, INITIAL } from '@glimmer/validator';\n\nconst REFERENCE = Symbol('REFERENCE');\nconst CONSTANT = 0;\nconst COMPUTE = 1;\nconst UNBOUND = 2;\nconst INVOKABLE = 3;\n\n//////////\n\nclass ReferenceImpl {\n  [REFERENCE];\n  tag = null;\n  lastRevision = INITIAL;\n  lastValue;\n  children = null;\n  compute = null;\n  update = null;\n  debugLabel;\n  constructor(type) {\n    this[REFERENCE] = type;\n  }\n}\nfunction createPrimitiveRef(value) {\n  const ref = new ReferenceImpl(UNBOUND);\n  ref.tag = CONSTANT_TAG;\n  ref.lastValue = value;\n  if (DEBUG) {\n    ref.debugLabel = String(value);\n  }\n  return ref;\n}\nconst UNDEFINED_REFERENCE = createPrimitiveRef(undefined);\nconst NULL_REFERENCE = createPrimitiveRef(null);\nconst TRUE_REFERENCE = createPrimitiveRef(true);\nconst FALSE_REFERENCE = createPrimitiveRef(false);\nfunction createConstRef(value, debugLabel) {\n  const ref = new ReferenceImpl(CONSTANT);\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n  return ref;\n}\nfunction createUnboundRef(value, debugLabel) {\n  const ref = new ReferenceImpl(UNBOUND);\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n  return ref;\n}\nfunction createComputeRef(compute, update = null, debugLabel = 'unknown') {\n  const ref = new ReferenceImpl(COMPUTE);\n  ref.compute = compute;\n  ref.update = update;\n  if (DEBUG) {\n    ref.debugLabel = `(result of a \\`${debugLabel}\\` helper)`;\n  }\n  return ref;\n}\nfunction createReadOnlyRef(ref) {\n  if (!isUpdatableRef(ref)) return ref;\n  return createComputeRef(() => valueForRef(ref), null, ref.debugLabel);\n}\nfunction isInvokableRef(ref) {\n  return ref[REFERENCE] === INVOKABLE;\n}\nfunction createInvokableRef(inner) {\n  const ref = createComputeRef(() => valueForRef(inner), value => updateRef(inner, value));\n  ref.debugLabel = inner.debugLabel;\n  ref[REFERENCE] = INVOKABLE;\n  return ref;\n}\nfunction isConstRef(_ref) {\n  const ref = _ref;\n  return ref.tag === CONSTANT_TAG;\n}\nfunction isUpdatableRef(_ref) {\n  const ref = _ref;\n  return ref.update !== null;\n}\nfunction valueForRef(_ref) {\n  const ref = _ref;\n  let {\n    tag\n  } = ref;\n  if (tag === CONSTANT_TAG) {\n    return ref.lastValue;\n  }\n  const {\n    lastRevision\n  } = ref;\n  let lastValue;\n  if (tag === null || !validateTag(tag, lastRevision)) {\n    const {\n      compute\n    } = ref;\n    const newTag = track(() => {\n      lastValue = ref.lastValue = compute();\n    }, DEBUG && ref.debugLabel);\n    tag = ref.tag = newTag;\n    ref.lastRevision = valueForTag(newTag);\n  } else {\n    lastValue = ref.lastValue;\n  }\n  consumeTag(tag);\n  return lastValue;\n}\nfunction updateRef(_ref, value) {\n  const ref = _ref;\n  const update = expect(ref.update, 'called update on a non-updatable reference');\n  update(value);\n}\nfunction childRefFor(_parentRef, path) {\n  const parentRef = _parentRef;\n  const type = parentRef[REFERENCE];\n  let children = parentRef.children;\n  let child;\n  if (children === null) {\n    children = parentRef.children = new Map();\n  } else {\n    child = children.get(path);\n    if (child !== undefined) {\n      return child;\n    }\n  }\n  if (type === UNBOUND) {\n    const parent = valueForRef(parentRef);\n    if (isDict(parent)) {\n      child = createUnboundRef(parent[path], DEBUG && `${parentRef.debugLabel}.${path}`);\n    } else {\n      child = UNDEFINED_REFERENCE;\n    }\n  } else {\n    child = createComputeRef(() => {\n      const parent = valueForRef(parentRef);\n      if (isDict(parent)) {\n        return getProp(parent, path);\n      }\n    }, val => {\n      const parent = valueForRef(parentRef);\n      if (isDict(parent)) {\n        return setProp(parent, path, val);\n      }\n    });\n    if (DEBUG) {\n      child.debugLabel = `${parentRef.debugLabel}.${path}`;\n    }\n  }\n  children.set(path, child);\n  return child;\n}\nfunction childRefFromParts(root, parts) {\n  let reference = root;\n  for (const part of parts) {\n    reference = childRefFor(reference, part);\n  }\n  return reference;\n}\nlet createDebugAliasRef;\nif (DEBUG) {\n  createDebugAliasRef = (debugLabel, inner) => {\n    const update = isUpdatableRef(inner) ? value => updateRef(inner, value) : null;\n    const ref = createComputeRef(() => valueForRef(inner), update);\n    ref[REFERENCE] = inner[REFERENCE];\n    ref.debugLabel = debugLabel;\n    return ref;\n  };\n}\n\nconst NULL_IDENTITY = {};\nconst KEY = (_, index) => index;\nconst INDEX = (_, index) => String(index);\nconst IDENTITY = item => {\n  if (item === null) {\n    // Returning null as an identity will cause failures since the iterator\n    // can't tell that it's actually supposed to be null\n    return NULL_IDENTITY;\n  }\n  return item;\n};\nfunction keyForPath(path) {\n  if (DEBUG && path[0] === '@') {\n    throw new Error(`invalid keypath: '${path}', valid keys: @index, @identity, or a path`);\n  }\n  return uniqueKeyFor(item => getPath(item, path));\n}\nfunction makeKeyFor(key) {\n  switch (key) {\n    case '@key':\n      return uniqueKeyFor(KEY);\n    case '@index':\n      return uniqueKeyFor(INDEX);\n    case '@identity':\n      return uniqueKeyFor(IDENTITY);\n    default:\n      return keyForPath(key);\n  }\n}\nclass WeakMapWithPrimitives {\n  _weakMap;\n  _primitiveMap;\n  get weakMap() {\n    if (this._weakMap === undefined) {\n      this._weakMap = new WeakMap();\n    }\n    return this._weakMap;\n  }\n  get primitiveMap() {\n    if (this._primitiveMap === undefined) {\n      this._primitiveMap = new Map();\n    }\n    return this._primitiveMap;\n  }\n  set(key, value) {\n    if (isObject(key)) {\n      this.weakMap.set(key, value);\n    } else {\n      this.primitiveMap.set(key, value);\n    }\n  }\n  get(key) {\n    if (isObject(key)) {\n      return this.weakMap.get(key);\n    } else {\n      return this.primitiveMap.get(key);\n    }\n  }\n}\nconst IDENTITIES = new WeakMapWithPrimitives();\nfunction identityForNthOccurence(value, count) {\n  let identities = IDENTITIES.get(value);\n  if (identities === undefined) {\n    identities = [];\n    IDENTITIES.set(value, identities);\n  }\n  let identity = identities[count];\n  if (identity === undefined) {\n    identity = {\n      value,\n      count\n    };\n    identities[count] = identity;\n  }\n  return identity;\n}\n\n/**\n * When iterating over a list, it's possible that an item with the same unique\n * key could be encountered twice:\n *\n * ```js\n * let arr = ['same', 'different', 'same', 'same'];\n * ```\n *\n * In general, we want to treat these items as _unique within the list_. To do\n * this, we track the occurences of every item as we iterate the list, and when\n * an item occurs more than once, we generate a new unique key just for that\n * item, and that occurence within the list. The next time we iterate the list,\n * and encounter an item for the nth time, we can get the _same_ key, and let\n * Glimmer know that it should reuse the DOM for the previous nth occurence.\n */\nfunction uniqueKeyFor(keyFor) {\n  let seen = new WeakMapWithPrimitives();\n  return (value, memo) => {\n    let key = keyFor(value, memo);\n    let count = seen.get(key) || 0;\n    seen.set(key, count + 1);\n    if (count === 0) {\n      return key;\n    }\n    return identityForNthOccurence(key, count);\n  };\n}\nfunction createIteratorRef(listRef, key) {\n  return createComputeRef(() => {\n    let iterable = valueForRef(listRef);\n    let keyFor = makeKeyFor(key);\n    if (Array.isArray(iterable)) {\n      return new ArrayIterator(iterable, keyFor);\n    }\n    let maybeIterator = toIterator(iterable);\n    if (maybeIterator === null) {\n      return new ArrayIterator(EMPTY_ARRAY, () => null);\n    }\n    return new IteratorWrapper(maybeIterator, keyFor);\n  });\n}\nfunction createIteratorItemRef(_value) {\n  let value = _value;\n  let tag = createTag();\n  return createComputeRef(() => {\n    consumeTag(tag);\n    return value;\n  }, newValue => {\n    if (value !== newValue) {\n      value = newValue;\n      dirtyTag(tag);\n    }\n  });\n}\nclass IteratorWrapper {\n  constructor(inner, keyFor) {\n    this.inner = inner;\n    this.keyFor = keyFor;\n  }\n  isEmpty() {\n    return this.inner.isEmpty();\n  }\n  next() {\n    let nextValue = this.inner.next();\n    if (nextValue !== null) {\n      nextValue.key = this.keyFor(nextValue.value, nextValue.memo);\n    }\n    return nextValue;\n  }\n}\nclass ArrayIterator {\n  current;\n  pos = 0;\n  constructor(iterator, keyFor) {\n    this.iterator = iterator;\n    this.keyFor = keyFor;\n    if (iterator.length === 0) {\n      this.current = {\n        kind: 'empty'\n      };\n    } else {\n      this.current = {\n        kind: 'first',\n        value: iterator[this.pos]\n      };\n    }\n  }\n  isEmpty() {\n    return this.current.kind === 'empty';\n  }\n  next() {\n    let value;\n    let current = this.current;\n    if (current.kind === 'first') {\n      this.current = {\n        kind: 'progress'\n      };\n      value = current.value;\n    } else if (this.pos >= this.iterator.length - 1) {\n      return null;\n    } else {\n      value = this.iterator[++this.pos];\n    }\n    let {\n      keyFor\n    } = this;\n    let key = keyFor(value, this.pos);\n    let memo = this.pos;\n    return {\n      key,\n      value,\n      memo\n    };\n  }\n}\n\nexport { FALSE_REFERENCE, NULL_REFERENCE, REFERENCE, TRUE_REFERENCE, UNDEFINED_REFERENCE, childRefFor, childRefFromParts, createComputeRef, createConstRef, createDebugAliasRef, createInvokableRef, createIteratorItemRef, createIteratorRef, createPrimitiveRef, createReadOnlyRef, createUnboundRef, isConstRef, isInvokableRef, isUpdatableRef, updateRef, valueForRef };\n","import { check, CheckPrimitive, CheckNumber, CheckOption, CheckHandle, CheckBlockSymbolTable, CheckInstanceof, CheckString, CheckElement, CheckMaybe, CheckNode, CheckOr, CheckProgramSymbolTable, CheckInterface, CheckFunction, wrap, CheckArray, CheckDict, CheckUnknown, CheckObject, CheckSafeString, CheckDocumentFragment, recordStackSize } from '@glimmer/debug';\nimport { createConstRef, createPrimitiveRef, valueForRef, isConstRef, createComputeRef, UNDEFINED_REFERENCE, createDebugAliasRef, childRefFor, TRUE_REFERENCE, FALSE_REFERENCE, createIteratorRef, NULL_REFERENCE, REFERENCE, isInvokableRef, updateRef, createIteratorItemRef } from '@glimmer/reference';\nimport { decodeHandle, isHandle, decodeImmediate, assert, expect, unwrap, isObject, assign, debugToString, EMPTY_STRING_ARRAY, dict, unwrapTemplate, enumerate, emptyArray, castToSimple, buildUntouchableThis, NS_SVG, castToBrowser, Stack, clearElement, INSERT_AFTER_BEGIN, INSERT_BEFORE_END, isDict, unwrapHandle, reverse, COMMENT_NODE, INSERT_BEFORE_BEGIN } from '@glimmer/util';\nimport { Op, $t0, CurriedTypes, $t1, InternalComponentCapabilities, $sp, $v0, ContentType, CurriedType, $pc, isLowLevelRegister, $s1, $s0, $fp, $ra, MachineOp } from '@glimmer/vm';\nimport { destroy, associateDestroyableChild, registerDestructor, _hasDestroyableChildren, isDestroying, isDestroyed, destroyChildren } from '@glimmer/destroyable';\nexport { destroy, isDestroyed, isDestroying, registerDestructor } from '@glimmer/destroyable';\nimport { DEBUG } from '@glimmer/env';\nimport { toBool, warnIfStyleNotTrusted, getPath, setPath, assertGlobalContextWasSet, deprecate } from '@glimmer/global-context';\nimport { getInternalModifierManager, managerHasCapability, getInternalHelperManager, setInternalComponentManager, setInternalModifierManager, hasInternalComponentManager, hasInternalHelperManager, setInternalHelperManager, hasValue, hasDestroyable } from '@glimmer/manager';\nimport { consumeTag, valueForTag, validateTag, CURRENT_TAG, COMPUTE, CONSTANT_TAG, createCache, debug, resetTracking, beginTrackFrame, endTrackFrame, track, updateTag, createUpdatableTag, INITIAL, getValue } from '@glimmer/validator';\nimport { RuntimeProgramImpl } from '@glimmer/program';\nimport { getOwner } from '@glimmer/owner';\n\nclass DynamicScopeImpl {\n  bucket;\n  constructor(bucket) {\n    if (bucket) {\n      this.bucket = assign({}, bucket);\n    } else {\n      this.bucket = {};\n    }\n  }\n  get(key) {\n    return unwrap(this.bucket[key]);\n  }\n  set(key, reference) {\n    return this.bucket[key] = reference;\n  }\n  child() {\n    return new DynamicScopeImpl(this.bucket);\n  }\n}\nclass PartialScopeImpl {\n  static root(self, size = 0, owner) {\n    let refs = new Array(size + 1).fill(UNDEFINED_REFERENCE);\n    return new PartialScopeImpl(refs, owner, null, null, null).init({\n      self\n    });\n  }\n  static sized(size = 0, owner) {\n    let refs = new Array(size + 1).fill(UNDEFINED_REFERENCE);\n    return new PartialScopeImpl(refs, owner, null, null, null);\n  }\n  constructor(\n  // the 0th slot is `self`\n  slots, owner, callerScope,\n  // named arguments and blocks passed to a layout that uses eval\n  evalScope,\n  // locals in scope when the partial was invoked\n  partialMap) {\n    this.slots = slots;\n    this.owner = owner;\n    this.callerScope = callerScope;\n    this.evalScope = evalScope;\n    this.partialMap = partialMap;\n  }\n  init({\n    self\n  }) {\n    this.slots[0] = self;\n    return this;\n  }\n  getSelf() {\n    return this.get(0);\n  }\n  getSymbol(symbol) {\n    return this.get(symbol);\n  }\n  getBlock(symbol) {\n    let block = this.get(symbol);\n    return block === UNDEFINED_REFERENCE ? null : block;\n  }\n  getEvalScope() {\n    return this.evalScope;\n  }\n  getPartialMap() {\n    return this.partialMap;\n  }\n  bind(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindSelf(self) {\n    this.set(0, self);\n  }\n  bindSymbol(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindBlock(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindEvalScope(map) {\n    this.evalScope = map;\n  }\n  bindPartialMap(map) {\n    this.partialMap = map;\n  }\n  bindCallerScope(scope) {\n    this.callerScope = scope;\n  }\n  getCallerScope() {\n    return this.callerScope;\n  }\n  child() {\n    return new PartialScopeImpl(this.slots.slice(), this.owner, this.callerScope, this.evalScope, this.partialMap);\n  }\n  get(index) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n    return this.slots[index];\n  }\n  set(index, value) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n    this.slots[index] = value;\n  }\n}\n\n// These symbols represent \"friend\" properties that are used inside of\n// the VM in other classes, but are not intended to be a part of\n// Glimmer's API.\n\nconst INNER_VM = Symbol('INNER_VM');\nconst DESTROYABLE_STACK = Symbol('DESTROYABLE_STACK');\nconst STACKS = Symbol('STACKS');\nconst REGISTERS = Symbol('REGISTERS');\nconst HEAP = Symbol('HEAP');\nconst CONSTANTS = Symbol('CONSTANTS');\nconst ARGS$1 = Symbol('ARGS');\n\nclass CursorImpl {\n  constructor(element, nextSibling) {\n    this.element = element;\n    this.nextSibling = nextSibling;\n  }\n}\nclass ConcreteBounds {\n  constructor(parentNode, first, last) {\n    this.parentNode = parentNode;\n    this.first = first;\n    this.last = last;\n  }\n  parentElement() {\n    return this.parentNode;\n  }\n  firstNode() {\n    return this.first;\n  }\n  lastNode() {\n    return this.last;\n  }\n}\nfunction move(bounds, reference) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  // eslint-disable-next-line no-constant-condition\n  while (true) {\n    let next = current.nextSibling;\n    parent.insertBefore(current, reference);\n    if (current === last) {\n      return next;\n    }\n    current = expect(next, 'invalid bounds');\n  }\n}\nfunction clear(bounds) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  // eslint-disable-next-line no-constant-condition\n  while (true) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    if (current === last) {\n      return next;\n    }\n    current = expect(next, 'invalid bounds');\n  }\n}\n\nfunction normalizeStringValue(value) {\n  if (isEmpty$2(value)) {\n    return '';\n  }\n  return String(value);\n}\nfunction shouldCoerce(value) {\n  return isString(value) || isEmpty$2(value) || typeof value === 'boolean' || typeof value === 'number';\n}\nfunction isEmpty$2(value) {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n}\nfunction isSafeString(value) {\n  return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n}\nfunction isNode(value) {\n  return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n}\nfunction isFragment(value) {\n  return isNode(value) && value.nodeType === 11;\n}\nfunction isString(value) {\n  return typeof value === 'string';\n}\n\n/*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\nfunction normalizeProperty(element, slotName) {\n  let type, normalized;\n  if (slotName in element) {\n    normalized = slotName;\n    type = 'prop';\n  } else {\n    let lower = slotName.toLowerCase();\n    if (lower in element) {\n      type = 'prop';\n      normalized = lower;\n    } else {\n      type = 'attr';\n      normalized = slotName;\n    }\n  }\n  if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n    type = 'attr';\n  }\n  return {\n    normalized,\n    type\n  };\n}\n\n// properties that MUST be set as attributes, due to:\n// * browser bug\n// * strange spec outlier\nconst ATTR_OVERRIDES = {\n  INPUT: {\n    form: true,\n    // Chrome 46.0.2464.0: 'autocorrect' in document.createElement('input') === false\n    // Safari 8.0.7: 'autocorrect' in document.createElement('input') === false\n    // Mobile Safari (iOS 8.4 simulator): 'autocorrect' in document.createElement('input') === true\n    autocorrect: true,\n    // Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n    // Safari 9.1.3: 'list' in document.createElement('input') === false\n    list: true\n  },\n  // element.form is actually a legitimate readOnly property, that is to be\n  // mutated, but must be mutated by setAttribute...\n  SELECT: {\n    form: true\n  },\n  OPTION: {\n    form: true\n  },\n  TEXTAREA: {\n    form: true\n  },\n  LABEL: {\n    form: true\n  },\n  FIELDSET: {\n    form: true\n  },\n  LEGEND: {\n    form: true\n  },\n  OBJECT: {\n    form: true\n  },\n  OUTPUT: {\n    form: true\n  },\n  BUTTON: {\n    form: true\n  }\n};\nfunction preferAttr(tagName, propName) {\n  let tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n  return tag && tag[propName.toLowerCase()] || false;\n}\n\nconst badProtocols = ['javascript:', 'vbscript:'];\nconst badTags = ['A', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM'];\nconst badTagsForDataURI = ['EMBED'];\nconst badAttributes = ['href', 'src', 'background', 'action'];\nconst badAttributesForDataURI = ['src'];\nfunction has(array, item) {\n  return array.indexOf(item) !== -1;\n}\nfunction checkURI(tagName, attribute) {\n  return (tagName === null || has(badTags, tagName)) && has(badAttributes, attribute);\n}\nfunction checkDataURI(tagName, attribute) {\n  if (tagName === null) return false;\n  return has(badTagsForDataURI, tagName) && has(badAttributesForDataURI, attribute);\n}\nfunction requiresSanitization(tagName, attribute) {\n  return checkURI(tagName, attribute) || checkDataURI(tagName, attribute);\n}\nfunction findProtocolForURL() {\n  if (typeof URL === 'object' && URL !== null &&\n  // this is super annoying, TS thinks that URL **must** be a function so `URL.parse` check\n  // thinks it is `never` without this `as unknown as any`\n  typeof URL.parse === 'function') {\n    // In Ember-land the `fastboot` package sets the `URL` global to `require('url')`\n    // ultimately, this should be changed (so that we can either rely on the natural `URL` global\n    // that exists) but for now we have to detect the specific `FastBoot` case first\n    //\n    // a future version of `fastboot` will detect if this legacy URL setup is required (by\n    // inspecting Ember version) and if new enough, it will avoid shadowing the `URL` global\n    // constructor with `require('url')`.\n    let nodeURL = URL;\n    return url => {\n      let protocol = null;\n      if (typeof url === 'string') {\n        protocol = nodeURL.parse(url).protocol;\n      }\n      return protocol === null ? ':' : protocol;\n    };\n  } else if (typeof URL === 'function') {\n    return _url => {\n      try {\n        let url = new URL(_url);\n        return url.protocol;\n      } catch (error) {\n        // any non-fully qualified url string will trigger an error (because there is no\n        // baseURI that we can provide; in that case we **know** that the protocol is\n        // \"safe\" because it isn't specifically one of the `badProtocols` listed above\n        // (and those protocols can never be the default baseURI)\n        return ':';\n      }\n    };\n  } else {\n    throw new Error(`@glimmer/runtime needs a valid \"globalThis.URL\"`);\n  }\n}\nlet _protocolForUrlImplementation;\nfunction protocolForUrl(url) {\n  if (!_protocolForUrlImplementation) {\n    _protocolForUrlImplementation = findProtocolForURL();\n  }\n  return _protocolForUrlImplementation(url);\n}\nfunction sanitizeAttributeValue(element, attribute, value) {\n  let tagName = null;\n  if (value === null || value === undefined) {\n    return value;\n  }\n  if (isSafeString(value)) {\n    return value.toHTML();\n  }\n  if (!element) {\n    tagName = null;\n  } else {\n    tagName = element.tagName.toUpperCase();\n  }\n  let str = normalizeStringValue(value);\n  if (checkURI(tagName, attribute)) {\n    let protocol = protocolForUrl(str);\n    if (has(badProtocols, protocol)) {\n      return `unsafe:${str}`;\n    }\n  }\n  if (checkDataURI(tagName, attribute)) {\n    return `unsafe:${str}`;\n  }\n  return str;\n}\n\nfunction dynamicAttribute(element, attr, namespace, isTrusting = false) {\n  const {\n    tagName,\n    namespaceURI\n  } = element;\n  const attribute = {\n    element,\n    name: attr,\n    namespace\n  };\n  if (DEBUG && attr === 'style' && !isTrusting) {\n    return new DebugStyleAttributeManager(attribute);\n  }\n  if (namespaceURI === NS_SVG) {\n    return buildDynamicAttribute(tagName, attr, attribute);\n  }\n  const {\n    type,\n    normalized\n  } = normalizeProperty(element, attr);\n  if (type === 'attr') {\n    return buildDynamicAttribute(tagName, normalized, attribute);\n  } else {\n    return buildDynamicProperty(tagName, normalized, attribute);\n  }\n}\nfunction buildDynamicAttribute(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicAttribute(attribute);\n  } else {\n    return new SimpleDynamicAttribute(attribute);\n  }\n}\nfunction buildDynamicProperty(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicProperty(name, attribute);\n  }\n  if (isUserInputValue(tagName, name)) {\n    return new InputValueDynamicAttribute(name, attribute);\n  }\n  if (isOptionSelected(tagName, name)) {\n    return new OptionSelectedDynamicAttribute(name, attribute);\n  }\n  return new DefaultDynamicProperty(name, attribute);\n}\nclass DynamicAttribute {\n  constructor(attribute) {\n    this.attribute = attribute;\n  }\n}\nclass SimpleDynamicAttribute extends DynamicAttribute {\n  set(dom, value, _env) {\n    const normalizedValue = normalizeValue(value);\n    if (normalizedValue !== null) {\n      const {\n        name,\n        namespace\n      } = this.attribute;\n      dom.__setAttribute(name, normalizedValue, namespace);\n    }\n  }\n  update(value, _env) {\n    const normalizedValue = normalizeValue(value);\n    const {\n      element,\n      name\n    } = this.attribute;\n    if (normalizedValue === null) {\n      element.removeAttribute(name);\n    } else {\n      element.setAttribute(name, normalizedValue);\n    }\n  }\n}\nclass DefaultDynamicProperty extends DynamicAttribute {\n  constructor(normalizedName, attribute) {\n    super(attribute);\n    this.normalizedName = normalizedName;\n  }\n  value;\n  set(dom, value, _env) {\n    if (value !== null && value !== undefined) {\n      this.value = value;\n      dom.__setProperty(this.normalizedName, value);\n    }\n  }\n  update(value, _env) {\n    const {\n      element\n    } = this.attribute;\n    if (this.value !== value) {\n      element[this.normalizedName] = this.value = value;\n      if (value === null || value === undefined) {\n        this.removeAttribute();\n      }\n    }\n  }\n  removeAttribute() {\n    // TODO this sucks but to preserve properties first and to meet current\n    // semantics we must do this.\n    const {\n      element,\n      namespace\n    } = this.attribute;\n    if (namespace) {\n      element.removeAttributeNS(namespace, this.normalizedName);\n    } else {\n      element.removeAttribute(this.normalizedName);\n    }\n  }\n}\nclass SafeDynamicProperty extends DefaultDynamicProperty {\n  set(dom, value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n  update(value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n}\nclass SafeDynamicAttribute extends SimpleDynamicAttribute {\n  set(dom, value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n  update(value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n}\nclass InputValueDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    dom.__setProperty('value', normalizeStringValue(value));\n  }\n  update(value) {\n    const input = castToBrowser(this.attribute.element, ['input', 'textarea']);\n    const currentValue = input.value;\n    const normalizedValue = normalizeStringValue(value);\n    if (currentValue !== normalizedValue) {\n      input.value = normalizedValue;\n    }\n  }\n}\nclass OptionSelectedDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    if (value !== null && value !== undefined && value !== false) {\n      dom.__setProperty('selected', true);\n    }\n  }\n  update(value) {\n    const option = castToBrowser(this.attribute.element, 'option');\n    if (value) {\n      option.selected = true;\n    } else {\n      option.selected = false;\n    }\n  }\n}\nfunction isOptionSelected(tagName, attribute) {\n  return tagName === 'OPTION' && attribute === 'selected';\n}\nfunction isUserInputValue(tagName, attribute) {\n  return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n}\nfunction normalizeValue(value) {\n  if (value === false || value === undefined || value === null || typeof value.toString === 'undefined') {\n    return null;\n  }\n  if (value === true) {\n    return '';\n  }\n  // onclick function etc in SSR\n  if (typeof value === 'function') {\n    return null;\n  }\n  return String(value);\n}\nlet DebugStyleAttributeManager;\nif (DEBUG) {\n  DebugStyleAttributeManager = class extends SimpleDynamicAttribute {\n    set(dom, value, env) {\n      warnIfStyleNotTrusted(value);\n      super.set(dom, value, env);\n    }\n    update(value, env) {\n      warnIfStyleNotTrusted(value);\n      super.update(value, env);\n    }\n  };\n}\n\nclass First {\n  constructor(node) {\n    this.node = node;\n  }\n  firstNode() {\n    return this.node;\n  }\n}\nclass Last {\n  constructor(node) {\n    this.node = node;\n  }\n  lastNode() {\n    return this.node;\n  }\n}\nconst CURSOR_STACK = Symbol('CURSOR_STACK');\nclass NewElementBuilder {\n  dom;\n  updateOperations;\n  constructing = null;\n  operations = null;\n  env;\n  [CURSOR_STACK] = new Stack();\n  modifierStack = new Stack();\n  blockStack = new Stack();\n  static forInitialRender(env, cursor) {\n    return new this(env, cursor.element, cursor.nextSibling).initialize();\n  }\n  static resume(env, block) {\n    let parentNode = block.parentElement();\n    let nextSibling = block.reset(env);\n    let stack = new this(env, parentNode, nextSibling).initialize();\n    stack.pushLiveBlock(block);\n    return stack;\n  }\n  constructor(env, parentNode, nextSibling) {\n    this.pushElement(parentNode, nextSibling);\n    this.env = env;\n    this.dom = env.getAppendOperations();\n    this.updateOperations = env.getDOM();\n  }\n  initialize() {\n    this.pushSimpleBlock();\n    return this;\n  }\n  debugBlocks() {\n    return this.blockStack.toArray();\n  }\n  get element() {\n    return this[CURSOR_STACK].current.element;\n  }\n  get nextSibling() {\n    return this[CURSOR_STACK].current.nextSibling;\n  }\n  get hasBlocks() {\n    return this.blockStack.size > 0;\n  }\n  block() {\n    return expect(this.blockStack.current, 'Expected a current live block');\n  }\n  popElement() {\n    this[CURSOR_STACK].pop();\n    expect(this[CURSOR_STACK].current, \"can't pop past the last element\");\n  }\n  pushSimpleBlock() {\n    return this.pushLiveBlock(new SimpleLiveBlock(this.element));\n  }\n  pushUpdatableBlock() {\n    return this.pushLiveBlock(new UpdatableBlockImpl(this.element));\n  }\n  pushBlockList(list) {\n    return this.pushLiveBlock(new LiveBlockList(this.element, list));\n  }\n  pushLiveBlock(block, isRemote = false) {\n    let current = this.blockStack.current;\n    if (current !== null) {\n      if (!isRemote) {\n        current.didAppendBounds(block);\n      }\n    }\n    this.__openBlock();\n    this.blockStack.push(block);\n    return block;\n  }\n  popBlock() {\n    this.block().finalize(this);\n    this.__closeBlock();\n    return expect(this.blockStack.pop(), 'Expected popBlock to return a block');\n  }\n  __openBlock() {}\n  __closeBlock() {}\n\n  // todo return seems unused\n  openElement(tag) {\n    let element = this.__openElement(tag);\n    this.constructing = element;\n    return element;\n  }\n  __openElement(tag) {\n    return this.dom.createElement(tag, this.element);\n  }\n  flushElement(modifiers) {\n    let parent = this.element;\n    let element = expect(this.constructing, `flushElement should only be called when constructing an element`);\n    this.__flushElement(parent, element);\n    this.constructing = null;\n    this.operations = null;\n    this.pushModifiers(modifiers);\n    this.pushElement(element, null);\n    this.didOpenElement(element);\n  }\n  __flushElement(parent, constructing) {\n    this.dom.insertBefore(parent, constructing, this.nextSibling);\n  }\n  closeElement() {\n    this.willCloseElement();\n    this.popElement();\n    return this.popModifiers();\n  }\n  pushRemoteElement(element, guid, insertBefore) {\n    return this.__pushRemoteElement(element, guid, insertBefore);\n  }\n  __pushRemoteElement(element, _guid, insertBefore) {\n    this.pushElement(element, insertBefore);\n    if (insertBefore === undefined) {\n      while (element.lastChild) {\n        element.removeChild(element.lastChild);\n      }\n    }\n    let block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n  popRemoteElement() {\n    this.popBlock();\n    this.popElement();\n  }\n  pushElement(element, nextSibling = null) {\n    this[CURSOR_STACK].push(new CursorImpl(element, nextSibling));\n  }\n  pushModifiers(modifiers) {\n    this.modifierStack.push(modifiers);\n  }\n  popModifiers() {\n    return this.modifierStack.pop();\n  }\n  didAppendBounds(bounds) {\n    this.block().didAppendBounds(bounds);\n    return bounds;\n  }\n  didAppendNode(node) {\n    this.block().didAppendNode(node);\n    return node;\n  }\n  didOpenElement(element) {\n    this.block().openElement(element);\n    return element;\n  }\n  willCloseElement() {\n    this.block().closeElement();\n  }\n  appendText(string) {\n    return this.didAppendNode(this.__appendText(string));\n  }\n  __appendText(text) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createTextNode(text);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n  __appendNode(node) {\n    this.dom.insertBefore(this.element, node, this.nextSibling);\n    return node;\n  }\n  __appendFragment(fragment) {\n    let first = fragment.firstChild;\n    if (first) {\n      let ret = new ConcreteBounds(this.element, first, fragment.lastChild);\n      this.dom.insertBefore(this.element, fragment, this.nextSibling);\n      return ret;\n    } else {\n      const comment = this.__appendComment('');\n      return new ConcreteBounds(this.element, comment, comment);\n    }\n  }\n  __appendHTML(html) {\n    return this.dom.insertHTMLBefore(this.element, this.nextSibling, html);\n  }\n  appendDynamicHTML(value) {\n    let bounds = this.trustedContent(value);\n    this.didAppendBounds(bounds);\n  }\n  appendDynamicText(value) {\n    let node = this.untrustedContent(value);\n    this.didAppendNode(node);\n    return node;\n  }\n  appendDynamicFragment(value) {\n    let bounds = this.__appendFragment(value);\n    this.didAppendBounds(bounds);\n  }\n  appendDynamicNode(value) {\n    let node = this.__appendNode(value);\n    let bounds = new ConcreteBounds(this.element, node, node);\n    this.didAppendBounds(bounds);\n  }\n  trustedContent(value) {\n    return this.__appendHTML(value);\n  }\n  untrustedContent(value) {\n    return this.__appendText(value);\n  }\n  appendComment(string) {\n    return this.didAppendNode(this.__appendComment(string));\n  }\n  __appendComment(string) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createComment(string);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n  __setAttribute(name, value, namespace) {\n    this.dom.setAttribute(this.constructing, name, value, namespace);\n  }\n  __setProperty(name, value) {\n    this.constructing[name] = value;\n  }\n  setStaticAttribute(name, value, namespace) {\n    this.__setAttribute(name, value, namespace);\n  }\n  setDynamicAttribute(name, value, trusting, namespace) {\n    let element = this.constructing;\n    let attribute = dynamicAttribute(element, name, namespace, trusting);\n    attribute.set(this, value, this.env);\n    return attribute;\n  }\n}\nclass SimpleLiveBlock {\n  first = null;\n  last = null;\n  nesting = 0;\n  constructor(parent) {\n    this.parent = parent;\n  }\n  parentElement() {\n    return this.parent;\n  }\n  firstNode() {\n    let first = expect(this.first, 'cannot call `firstNode()` while `SimpleLiveBlock` is still initializing');\n    return first.firstNode();\n  }\n  lastNode() {\n    let last = expect(this.last, 'cannot call `lastNode()` while `SimpleLiveBlock` is still initializing');\n    return last.lastNode();\n  }\n  openElement(element) {\n    this.didAppendNode(element);\n    this.nesting++;\n  }\n  closeElement() {\n    this.nesting--;\n  }\n  didAppendNode(node) {\n    if (this.nesting !== 0) return;\n    if (!this.first) {\n      this.first = new First(node);\n    }\n    this.last = new Last(node);\n  }\n  didAppendBounds(bounds) {\n    if (this.nesting !== 0) return;\n    if (!this.first) {\n      this.first = bounds;\n    }\n    this.last = bounds;\n  }\n  finalize(stack) {\n    if (this.first === null) {\n      stack.appendComment('');\n    }\n  }\n}\nclass RemoteLiveBlock extends SimpleLiveBlock {\n  constructor(parent) {\n    super(parent);\n    registerDestructor(this, () => {\n      // In general, you only need to clear the root of a hierarchy, and should never\n      // need to clear any child nodes. This is an important constraint that gives us\n      // a strong guarantee that clearing a subtree is a single DOM operation.\n      //\n      // Because remote blocks are not normally physically nested inside of the tree\n      // that they are logically nested inside, we manually clear remote blocks when\n      // a logical parent is cleared.\n      //\n      // HOWEVER, it is currently possible for a remote block to be physically nested\n      // inside of the block it is logically contained inside of. This happens when\n      // the remote block is appended to the end of the application's entire element.\n      //\n      // The problem with that scenario is that Glimmer believes that it owns more of\n      // the DOM than it actually does. The code is attempting to write past the end\n      // of the Glimmer-managed root, but Glimmer isn't aware of that.\n      //\n      // The correct solution to that problem is for Glimmer to be aware of the end\n      // of the bounds that it owns, and once we make that change, this check could\n      // be removed.\n      //\n      // For now, a more targeted fix is to check whether the node was already removed\n      // and avoid clearing the node if it was. In most cases this shouldn't happen,\n      // so this might hide bugs where the code clears nested nodes unnecessarily,\n      // so we should eventually try to do the correct fix.\n      if (this.parentElement() === this.firstNode().parentNode) {\n        clear(this);\n      }\n    });\n  }\n}\nclass UpdatableBlockImpl extends SimpleLiveBlock {\n  reset() {\n    destroy(this);\n    let nextSibling = clear(this);\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n    return nextSibling;\n  }\n}\n\n// FIXME: All the noops in here indicate a modelling problem\nclass LiveBlockList {\n  constructor(parent, boundList) {\n    this.parent = parent;\n    this.boundList = boundList;\n    this.parent = parent;\n    this.boundList = boundList;\n  }\n  parentElement() {\n    return this.parent;\n  }\n  firstNode() {\n    let head = expect(this.boundList[0], 'cannot call `firstNode()` while `LiveBlockList` is still initializing');\n    return head.firstNode();\n  }\n  lastNode() {\n    let boundList = this.boundList;\n    let tail = expect(boundList[boundList.length - 1], 'cannot call `lastNode()` while `LiveBlockList` is still initializing');\n    return tail.lastNode();\n  }\n  openElement(_element) {\n    assert(false, 'Cannot openElement directly inside a block list');\n  }\n  closeElement() {\n    assert(false, 'Cannot closeElement directly inside a block list');\n  }\n  didAppendNode(_node) {\n    assert(false, 'Cannot create a new node directly inside a block list');\n  }\n  didAppendBounds(_bounds) {}\n  finalize(_stack) {\n    assert(this.boundList.length > 0, 'boundsList cannot be empty');\n  }\n}\nfunction clientBuilder(env, cursor) {\n  return NewElementBuilder.forInitialRender(env, cursor);\n}\n\nclass AppendOpcodes {\n  evaluateOpcode = new Array(Op.Size).fill(null);\n  add(name, evaluate, kind = 'syscall') {\n    this.evaluateOpcode[name] = {\n      syscall: kind !== 'machine',\n      evaluate\n    };\n  }\n  debugBefore(vm, opcode) {\n    let params = undefined;\n    let opName = undefined;\n    let sp;\n    recordStackSize(vm.fetchValue($sp));\n    return {\n      sp: sp,\n      pc: vm.fetchValue($pc),\n      name: opName,\n      params,\n      type: opcode.type,\n      isMachine: opcode.isMachine,\n      size: opcode.size,\n      state: undefined\n    };\n  }\n  debugAfter(vm, pre) {\n  }\n  evaluate(vm, opcode, type) {\n    let operation = unwrap(this.evaluateOpcode[type]);\n    if (operation.syscall) {\n      assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);\n      operation.evaluate(vm, opcode);\n    } else {\n      assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);\n      operation.evaluate(vm[INNER_VM], opcode);\n    }\n  }\n}\nconst APPEND_OPCODES = new AppendOpcodes();\n\nconst TYPE = Symbol('TYPE');\nconst INNER = Symbol('INNER');\nconst OWNER = Symbol('OWNER');\nconst ARGS = Symbol('ARGS');\nconst RESOLVED = Symbol('RESOLVED');\nconst CURRIED_VALUES = new WeakSet();\nfunction isCurriedValue(value) {\n  return CURRIED_VALUES.has(value);\n}\nfunction isCurriedType(value, type) {\n  return isCurriedValue(value) && value[TYPE] === type;\n}\nclass CurriedValue {\n  [TYPE];\n  [INNER];\n  [OWNER];\n  [ARGS];\n  [RESOLVED];\n\n  /** @internal */\n  constructor(type, inner, owner, args, resolved = false) {\n    CURRIED_VALUES.add(this);\n    this[TYPE] = type;\n    this[INNER] = inner;\n    this[OWNER] = owner;\n    this[ARGS] = args;\n    this[RESOLVED] = resolved;\n  }\n}\nfunction resolveCurriedValue(curriedValue) {\n  let currentWrapper = curriedValue;\n  let positional;\n  let named;\n  let definition, owner, resolved;\n\n  // eslint-disable-next-line no-constant-condition\n  while (true) {\n    let {\n      [ARGS]: curriedArgs,\n      [INNER]: inner\n    } = currentWrapper;\n    if (curriedArgs !== null) {\n      let {\n        named: curriedNamed,\n        positional: curriedPositional\n      } = curriedArgs;\n      if (curriedPositional.length > 0) {\n        positional = positional === undefined ? curriedPositional : curriedPositional.concat(positional);\n      }\n      if (named === undefined) {\n        named = [];\n      }\n      named.unshift(curriedNamed);\n    }\n    if (!isCurriedValue(inner)) {\n      // Save off the owner that this helper was curried with. Later on,\n      // we'll fetch the value of this register and set it as the owner on the\n      // new root scope.\n      definition = inner;\n      owner = currentWrapper[OWNER];\n      resolved = currentWrapper[RESOLVED];\n      break;\n    }\n    currentWrapper = inner;\n  }\n  return {\n    definition,\n    owner,\n    resolved,\n    positional,\n    named\n  };\n}\nfunction curry(type, spec, owner, args, resolved = false) {\n  return new CurriedValue(type, spec, owner, args, resolved);\n}\n\nfunction createCurryRef(type, inner, owner, args, resolver, isStrict) {\n  let lastValue, curriedDefinition;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n    if (value === lastValue) {\n      return curriedDefinition;\n    }\n    if (isCurriedType(value, type)) {\n      curriedDefinition = args ? curry(type, value, owner, args) : args;\n    } else if (type === CurriedTypes.Component && typeof value === 'string' && value) {\n      // Only components should enter this path, as helpers and modifiers do not\n      // support string based resolution\n\n      if (DEBUG) {\n        if (isStrict) {\n          throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${value}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);\n        }\n        let resolvedDefinition = expect(resolver, 'BUG: expected resolver for curried component definitions').lookupComponent(value, owner);\n        if (!resolvedDefinition) {\n          throw new Error(`Attempted to resolve \\`${value}\\`, which was expected to be a component, but nothing was found.`);\n        }\n      }\n      curriedDefinition = curry(type, value, owner, args);\n    } else if (isObject(value)) {\n      curriedDefinition = curry(type, value, owner, args);\n    } else {\n      curriedDefinition = null;\n    }\n    lastValue = value;\n    return curriedDefinition;\n  });\n}\n\n/** @internal */\nfunction hasCustomDebugRenderTreeLifecycle(manager) {\n  return 'getDebugCustomRenderTree' in manager;\n}\n\nfunction resolveComponent(resolver, constants, name, owner) {\n  let definition = resolver.lookupComponent(name, expect(owner, 'BUG: expected owner when looking up component'));\n  if (DEBUG && !definition) {\n    throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);\n  }\n  return constants.resolvedComponent(definition, name);\n}\n\nfunction createClassListRef(list) {\n  return createComputeRef(() => {\n    let ret = [];\n    for (const ref of list) {\n      let value = normalizeStringValue(typeof ref === 'string' ? ref : valueForRef(ref));\n      if (value) ret.push(value);\n    }\n    return ret.length === 0 ? null : ret.join(' ');\n  });\n}\n\nfunction stackAssert(name, top) {\n  return `Expected top of stack to be ${name}, was ${String(top)}`;\n}\n\nAPPEND_OPCODES.add(Op.ChildScope, vm => vm.pushChildScope());\nAPPEND_OPCODES.add(Op.PopScope, vm => vm.popScope());\nAPPEND_OPCODES.add(Op.PushDynamicScope, vm => vm.pushDynamicScope());\nAPPEND_OPCODES.add(Op.PopDynamicScope, vm => vm.popDynamicScope());\nAPPEND_OPCODES.add(Op.Constant, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(vm[CONSTANTS].getValue(decodeHandle(other)));\n});\nAPPEND_OPCODES.add(Op.ConstantReference, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(createConstRef(vm[CONSTANTS].getValue(decodeHandle(other)), false));\n});\nAPPEND_OPCODES.add(Op.Primitive, (vm, {\n  op1: primitive\n}) => {\n  let stack = vm.stack;\n  if (isHandle(primitive)) {\n    // it is a handle which does not already exist on the stack\n    let value = vm[CONSTANTS].getValue(decodeHandle(primitive));\n    stack.push(value);\n  } else {\n    // is already an encoded immediate or primitive handle\n    stack.push(decodeImmediate(primitive));\n  }\n});\nAPPEND_OPCODES.add(Op.PrimitiveReference, vm => {\n  let stack = vm.stack;\n  let value = check(stack.pop(), CheckPrimitive);\n  let ref;\n  if (value === undefined) {\n    ref = UNDEFINED_REFERENCE;\n  } else if (value === null) {\n    ref = NULL_REFERENCE;\n  } else if (value === true) {\n    ref = TRUE_REFERENCE;\n  } else if (value === false) {\n    ref = FALSE_REFERENCE;\n  } else {\n    ref = createPrimitiveRef(value);\n  }\n  stack.push(ref);\n});\nAPPEND_OPCODES.add(Op.Dup, (vm, {\n  op1: register,\n  op2: offset\n}) => {\n  let position = check(vm.fetchValue(register), CheckNumber) - offset;\n  vm.stack.dup(position);\n});\nAPPEND_OPCODES.add(Op.Pop, (vm, {\n  op1: count\n}) => {\n  vm.stack.pop(count);\n});\nAPPEND_OPCODES.add(Op.Load, (vm, {\n  op1: register\n}) => {\n  vm.load(register);\n});\nAPPEND_OPCODES.add(Op.Fetch, (vm, {\n  op1: register\n}) => {\n  vm.fetch(register);\n});\nAPPEND_OPCODES.add(Op.BindDynamicScope, (vm, {\n  op1: _names\n}) => {\n  let names = vm[CONSTANTS].getArray(_names);\n  vm.bindDynamicScope(names);\n});\nAPPEND_OPCODES.add(Op.Enter, (vm, {\n  op1: args\n}) => {\n  vm.enter(args);\n});\nAPPEND_OPCODES.add(Op.Exit, vm => {\n  vm.exit();\n});\nAPPEND_OPCODES.add(Op.PushSymbolTable, (vm, {\n  op1: _table\n}) => {\n  let stack = vm.stack;\n  stack.push(vm[CONSTANTS].getValue(_table));\n});\nAPPEND_OPCODES.add(Op.PushBlockScope, vm => {\n  let stack = vm.stack;\n  stack.push(vm.scope());\n});\nAPPEND_OPCODES.add(Op.CompileBlock, vm => {\n  let stack = vm.stack;\n  let block = stack.pop();\n  if (block) {\n    stack.push(vm.compile(block));\n  } else {\n    stack.push(null);\n  }\n});\nAPPEND_OPCODES.add(Op.InvokeYield, vm => {\n  let {\n    stack\n  } = vm;\n  let handle = check(stack.pop(), CheckOption(CheckHandle));\n  let scope = check(stack.pop(), CheckOption(CheckScope));\n  let table = check(stack.pop(), CheckOption(CheckBlockSymbolTable));\n  assert(table === null || table && typeof table === 'object' && Array.isArray(table.parameters), stackAssert('Option<BlockSymbolTable>', table));\n  let args = check(stack.pop(), CheckInstanceof(VMArgumentsImpl));\n  if (table === null) {\n    // To balance the pop{Frame,Scope}\n    vm.pushFrame();\n    vm.pushScope(scope ?? vm.scope());\n    return;\n  }\n  let invokingScope = expect(scope, 'BUG: expected scope');\n\n  // If necessary, create a child scope\n  {\n    let locals = table.parameters;\n    let localsCount = locals.length;\n    if (localsCount > 0) {\n      invokingScope = invokingScope.child();\n      for (let i = 0; i < localsCount; i++) {\n        invokingScope.bindSymbol(unwrap(locals[i]), args.at(i));\n      }\n    }\n  }\n  vm.pushFrame();\n  vm.pushScope(invokingScope);\n  vm.call(handle);\n});\nAPPEND_OPCODES.add(Op.JumpIf, (vm, {\n  op1: target\n}) => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let value = Boolean(valueForRef(reference));\n  if (isConstRef(reference)) {\n    if (value === true) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === true) {\n      vm.goto(target);\n    }\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(Op.JumpUnless, (vm, {\n  op1: target\n}) => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let value = Boolean(valueForRef(reference));\n  if (isConstRef(reference)) {\n    if (value === false) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === false) {\n      vm.goto(target);\n    }\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(Op.JumpEq, (vm, {\n  op1: target,\n  op2: comparison\n}) => {\n  let other = check(vm.stack.peek(), CheckNumber);\n  if (other === comparison) {\n    vm.goto(target);\n  }\n});\nAPPEND_OPCODES.add(Op.AssertSame, vm => {\n  let reference = check(vm.stack.peek(), CheckReference);\n  if (isConstRef(reference) === false) {\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(Op.ToBoolean, vm => {\n  let {\n    stack\n  } = vm;\n  let valueRef = check(stack.pop(), CheckReference);\n  stack.push(createComputeRef(() => toBool(valueForRef(valueRef))));\n});\nclass Assert {\n  last;\n  constructor(ref) {\n    this.ref = ref;\n    this.last = valueForRef(ref);\n  }\n  evaluate(vm) {\n    let {\n      last,\n      ref\n    } = this;\n    let current = valueForRef(ref);\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n}\nclass AssertFilter {\n  last;\n  constructor(ref, filter) {\n    this.ref = ref;\n    this.filter = filter;\n    this.last = filter(valueForRef(ref));\n  }\n  evaluate(vm) {\n    let {\n      last,\n      ref,\n      filter\n    } = this;\n    let current = filter(valueForRef(ref));\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n}\nclass JumpIfNotModifiedOpcode {\n  tag = CONSTANT_TAG;\n  lastRevision = INITIAL;\n  target;\n  finalize(tag, target) {\n    this.target = target;\n    this.didModify(tag);\n  }\n  evaluate(vm) {\n    let {\n      tag,\n      target,\n      lastRevision\n    } = this;\n    if (!vm.alwaysRevalidate && validateTag(tag, lastRevision)) {\n      consumeTag(tag);\n      vm.goto(expect(target, 'VM BUG: Target must be set before attempting to jump'));\n    }\n  }\n  didModify(tag) {\n    this.tag = tag;\n    this.lastRevision = valueForTag(this.tag);\n    consumeTag(tag);\n  }\n}\nclass BeginTrackFrameOpcode {\n  constructor(debugLabel) {\n    this.debugLabel = debugLabel;\n  }\n  evaluate() {\n    beginTrackFrame(this.debugLabel);\n  }\n}\nclass EndTrackFrameOpcode {\n  constructor(target) {\n    this.target = target;\n  }\n  evaluate() {\n    let tag = endTrackFrame();\n    this.target.didModify(tag);\n  }\n}\n\nAPPEND_OPCODES.add(Op.Text, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendText(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(Op.Comment, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendComment(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(Op.OpenElement, (vm, {\n  op1: tag\n}) => {\n  vm.elements().openElement(vm[CONSTANTS].getValue(tag));\n});\nAPPEND_OPCODES.add(Op.OpenDynamicElement, vm => {\n  let tagName = check(valueForRef(check(vm.stack.pop(), CheckReference)), CheckString);\n  vm.elements().openElement(tagName);\n});\nAPPEND_OPCODES.add(Op.PushRemoteElement, vm => {\n  let elementRef = check(vm.stack.pop(), CheckReference);\n  let insertBeforeRef = check(vm.stack.pop(), CheckReference);\n  let guidRef = check(vm.stack.pop(), CheckReference);\n  let element = check(valueForRef(elementRef), CheckElement);\n  let insertBefore = check(valueForRef(insertBeforeRef), CheckMaybe(CheckOption(CheckNode)));\n  let guid = valueForRef(guidRef);\n  if (!isConstRef(elementRef)) {\n    vm.updateWith(new Assert(elementRef));\n  }\n  if (insertBefore !== undefined && !isConstRef(insertBeforeRef)) {\n    vm.updateWith(new Assert(insertBeforeRef));\n  }\n  let block = vm.elements().pushRemoteElement(element, guid, insertBefore);\n  if (block) vm.associateDestroyable(block);\n});\nAPPEND_OPCODES.add(Op.PopRemoteElement, vm => {\n  vm.elements().popRemoteElement();\n});\nAPPEND_OPCODES.add(Op.FlushElement, vm => {\n  let operations = check(vm.fetchValue($t0), CheckOperations);\n  let modifiers = null;\n  if (operations) {\n    modifiers = operations.flush(vm);\n    vm.loadValue($t0, null);\n  }\n  vm.elements().flushElement(modifiers);\n});\nAPPEND_OPCODES.add(Op.CloseElement, vm => {\n  let modifiers = vm.elements().closeElement();\n  if (modifiers !== null) {\n    modifiers.forEach(modifier => {\n      vm.env.scheduleInstallModifier(modifier);\n      const d = modifier.manager.getDestroyable(modifier.state);\n      if (d !== null) {\n        vm.associateDestroyable(d);\n      }\n    });\n  }\n});\nAPPEND_OPCODES.add(Op.Modifier, (vm, {\n  op1: handle\n}) => {\n  if (vm.env.isInteractive === false) {\n    return;\n  }\n  let owner = vm.getOwner();\n  let args = check(vm.stack.pop(), CheckArguments);\n  let definition = vm[CONSTANTS].getValue(handle);\n  let {\n    manager\n  } = definition;\n  let {\n    constructing\n  } = vm.elements();\n  let state = manager.create(owner, expect(constructing, 'BUG: ElementModifier could not find the element it applies to'), definition.state, args.capture());\n  let instance = {\n    manager,\n    state,\n    definition\n  };\n  let operations = expect(check(vm.fetchValue($t0), CheckOperations), 'BUG: ElementModifier could not find operations to append to');\n  operations.addModifier(instance);\n  let tag = manager.getTag(state);\n  if (tag !== null) {\n    consumeTag(tag);\n    return vm.updateWith(new UpdateModifierOpcode(tag, instance));\n  }\n});\nAPPEND_OPCODES.add(Op.DynamicModifier, vm => {\n  if (vm.env.isInteractive === false) {\n    return;\n  }\n  let {\n    stack\n  } = vm;\n  let ref = check(stack.pop(), CheckReference);\n  let args = check(stack.pop(), CheckArguments).capture();\n  let {\n    constructing\n  } = vm.elements();\n  let initialOwner = vm.getOwner();\n  let instanceRef = createComputeRef(() => {\n    let value = valueForRef(ref);\n    let owner;\n    if (!isObject(value)) {\n      return;\n    }\n    let hostDefinition;\n    if (isCurriedType(value, CurriedTypes.Modifier)) {\n      let {\n        definition: resolvedDefinition,\n        owner: curriedOwner,\n        positional,\n        named\n      } = resolveCurriedValue(value);\n      hostDefinition = resolvedDefinition;\n      owner = curriedOwner;\n      if (positional !== undefined) {\n        args.positional = positional.concat(args.positional);\n      }\n      if (named !== undefined) {\n        args.named = assign({}, ...named, args.named);\n      }\n    } else {\n      hostDefinition = value;\n      owner = initialOwner;\n    }\n    let manager = getInternalModifierManager(hostDefinition, true);\n    if (manager === null) {\n      if (DEBUG) {\n        throw new Error(`Expected a dynamic modifier definition, but received an object or function that did not have a modifier manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(hostDefinition)}`);\n      } else {\n        throw new Error('BUG: modifier manager expected');\n      }\n    }\n    let definition = {\n      resolvedName: null,\n      manager,\n      state: hostDefinition\n    };\n    let state = manager.create(owner, expect(constructing, 'BUG: ElementModifier could not find the element it applies to'), definition.state, args);\n    return {\n      manager,\n      state,\n      definition\n    };\n  });\n  let instance = valueForRef(instanceRef);\n  let tag = null;\n  if (instance !== undefined) {\n    let operations = expect(check(vm.fetchValue($t0), CheckOperations), 'BUG: ElementModifier could not find operations to append to');\n    operations.addModifier(instance);\n    tag = instance.manager.getTag(instance.state);\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n  if (!isConstRef(ref) || tag) {\n    return vm.updateWith(new UpdateDynamicModifierOpcode(tag, instance, instanceRef));\n  }\n});\nclass UpdateModifierOpcode {\n  lastUpdated;\n  constructor(tag, modifier) {\n    this.tag = tag;\n    this.modifier = modifier;\n    this.lastUpdated = valueForTag(tag);\n  }\n  evaluate(vm) {\n    let {\n      modifier,\n      tag,\n      lastUpdated\n    } = this;\n    consumeTag(tag);\n    if (!validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(modifier);\n      this.lastUpdated = valueForTag(tag);\n    }\n  }\n}\nclass UpdateDynamicModifierOpcode {\n  lastUpdated;\n  constructor(tag, instance, instanceRef) {\n    this.tag = tag;\n    this.instance = instance;\n    this.instanceRef = instanceRef;\n    this.lastUpdated = valueForTag(tag ?? CURRENT_TAG);\n  }\n  evaluate(vm) {\n    let {\n      tag,\n      lastUpdated,\n      instance,\n      instanceRef\n    } = this;\n    let newInstance = valueForRef(instanceRef);\n    if (newInstance !== instance) {\n      if (instance !== undefined) {\n        let destroyable = instance.manager.getDestroyable(instance.state);\n        if (destroyable !== null) {\n          destroy(destroyable);\n        }\n      }\n      if (newInstance !== undefined) {\n        let {\n          manager,\n          state\n        } = newInstance;\n        let destroyable = manager.getDestroyable(state);\n        if (destroyable !== null) {\n          associateDestroyableChild(this, destroyable);\n        }\n        tag = manager.getTag(state);\n        if (tag !== null) {\n          this.lastUpdated = valueForTag(tag);\n        }\n        this.tag = tag;\n        vm.env.scheduleInstallModifier(newInstance);\n      }\n      this.instance = newInstance;\n    } else if (tag !== null && !validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(instance);\n      this.lastUpdated = valueForTag(tag);\n    }\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n}\nAPPEND_OPCODES.add(Op.StaticAttr, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.elements().setStaticAttribute(name, value, namespace);\n});\nAPPEND_OPCODES.add(Op.DynamicAttr, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let trusting = vm[CONSTANTS].getValue(_trusting);\n  let reference = check(vm.stack.pop(), CheckReference);\n  let value = valueForRef(reference);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  let attribute = vm.elements().setDynamicAttribute(name, value, trusting, namespace);\n  if (!isConstRef(reference)) {\n    vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute, vm.env));\n  }\n});\nclass UpdateDynamicAttributeOpcode {\n  updateRef;\n  constructor(reference, attribute, env) {\n    let initialized = false;\n    this.updateRef = createComputeRef(() => {\n      let value = valueForRef(reference);\n      if (initialized === true) {\n        attribute.update(value, env);\n      } else {\n        initialized = true;\n      }\n    });\n    valueForRef(this.updateRef);\n  }\n  evaluate() {\n    valueForRef(this.updateRef);\n  }\n}\n\n/**\n * The VM creates a new ComponentInstance data structure for every component\n * invocation it encounters.\n *\n * Similar to how a ComponentDefinition contains state about all components of a\n * particular type, a ComponentInstance contains state specific to a particular\n * instance of a component type. It also contains a pointer back to its\n * component type's ComponentDefinition.\n */\n\nAPPEND_OPCODES.add(Op.PushComponentDefinition, (vm, {\n  op1: handle\n}) => {\n  let definition = vm[CONSTANTS].getValue(handle);\n  assert(!!definition, `Missing component for ${handle}`);\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let instance = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: null,\n    table: null,\n    lookup: null\n  };\n  vm.stack.push(instance);\n});\nAPPEND_OPCODES.add(Op.ResolveDynamicComponent, (vm, {\n  op1: _isStrict\n}) => {\n  let stack = vm.stack;\n  let component = check(valueForRef(check(stack.pop(), CheckReference)), CheckOr(CheckString, CheckCurriedComponentDefinition));\n  let constants = vm[CONSTANTS];\n  let owner = vm.getOwner();\n  let isStrict = constants.getValue(_isStrict);\n  vm.loadValue($t1, null); // Clear the temp register\n\n  let definition;\n  if (typeof component === 'string') {\n    if (DEBUG && isStrict) {\n      throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${component}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);\n    }\n    let resolvedDefinition = resolveComponent(vm.runtime.resolver, constants, component, owner);\n    definition = expect(resolvedDefinition, `Could not find a component named \"${component}\"`);\n  } else if (isCurriedValue(component)) {\n    definition = component;\n  } else {\n    definition = constants.component(component, owner);\n  }\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(Op.ResolveCurriedComponent, vm => {\n  let stack = vm.stack;\n  let ref = check(stack.pop(), CheckReference);\n  let value = valueForRef(ref);\n  let constants = vm[CONSTANTS];\n  let definition;\n  if (DEBUG && !(typeof value === 'function' || typeof value === 'object' && value !== null)) {\n    throw new Error(`Expected a component definition, but received ${value}. You may have accidentally done <${ref.debugLabel}>, where \"${ref.debugLabel}\" was a string instead of a curried component definition. You must either use the component definition directly, or use the {{component}} helper to create a curried component definition when invoking dynamically.`);\n  }\n  if (isCurriedValue(value)) {\n    definition = value;\n  } else {\n    definition = constants.component(value, vm.getOwner(), true);\n    if (DEBUG && definition === null) {\n      throw new Error(`Expected a dynamic component definition, but received an object or function that did not have a component manager associated with it. The dynamic invocation was \\`<${ref.debugLabel}>\\` or \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(value)}`);\n    }\n  }\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(Op.PushDynamicComponentInstance, vm => {\n  let {\n    stack\n  } = vm;\n  let definition = stack.pop();\n  let capabilities, manager;\n  if (isCurriedValue(definition)) {\n    manager = capabilities = null;\n  } else {\n    manager = definition.manager;\n    capabilities = definition.capabilities;\n  }\n  stack.push({\n    definition,\n    capabilities,\n    manager,\n    state: null,\n    handle: null,\n    table: null\n  });\n});\nAPPEND_OPCODES.add(Op.PushArgs, (vm, {\n  op1: _names,\n  op2: _blockNames,\n  op3: flags\n}) => {\n  let stack = vm.stack;\n  let names = vm[CONSTANTS].getArray(_names);\n  let positionalCount = flags >> 4;\n  let atNames = flags & 0b1000;\n  let blockNames = flags & 0b0111 ? vm[CONSTANTS].getArray(_blockNames) : EMPTY_STRING_ARRAY;\n  vm[ARGS$1].setup(stack, names, blockNames, positionalCount, !!atNames);\n  stack.push(vm[ARGS$1]);\n});\nAPPEND_OPCODES.add(Op.PushEmptyArgs, vm => {\n  let {\n    stack\n  } = vm;\n  stack.push(vm[ARGS$1].empty(stack));\n});\nAPPEND_OPCODES.add(Op.CaptureArgs, vm => {\n  let stack = vm.stack;\n  let args = check(stack.pop(), CheckInstanceof(VMArgumentsImpl));\n  let capturedArgs = args.capture();\n  stack.push(capturedArgs);\n});\nAPPEND_OPCODES.add(Op.PrepareArgs, (vm, {\n  op1: _state\n}) => {\n  let stack = vm.stack;\n  let instance = vm.fetchValue(_state);\n  let args = check(stack.pop(), CheckInstanceof(VMArgumentsImpl));\n  let {\n    definition\n  } = instance;\n  if (isCurriedType(definition, CurriedTypes.Component)) {\n    assert(!definition.manager, \"If the component definition was curried, we don't yet have a manager\");\n    let constants = vm[CONSTANTS];\n    let {\n      definition: resolvedDefinition,\n      owner,\n      resolved,\n      positional,\n      named\n    } = resolveCurriedValue(definition);\n    if (resolved === true) {\n      definition = resolvedDefinition;\n    } else if (typeof resolvedDefinition === 'string') {\n      let resolvedValue = vm.runtime.resolver.lookupComponent(resolvedDefinition, owner);\n      definition = constants.resolvedComponent(expect(resolvedValue, 'BUG: expected resolved component'), resolvedDefinition);\n    } else {\n      definition = constants.component(resolvedDefinition, owner);\n    }\n    if (named !== undefined) {\n      args.named.merge(assign({}, ...named));\n    }\n    if (positional !== undefined) {\n      args.realloc(positional.length);\n      args.positional.prepend(positional);\n    }\n    let {\n      manager\n    } = definition;\n    assert(instance.manager === null, 'component instance manager should not be populated yet');\n    assert(instance.capabilities === null, 'component instance manager should not be populated yet');\n    instance.definition = definition;\n    instance.manager = manager;\n    instance.capabilities = definition.capabilities;\n\n    // Save off the owner that this component was curried with. Later on,\n    // we'll fetch the value of this register and set it as the owner on the\n    // new root scope.\n    vm.loadValue($t1, owner);\n  }\n  let {\n    manager,\n    state\n  } = definition;\n  let capabilities = instance.capabilities;\n  if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.prepareArgs)) {\n    stack.push(args);\n    return;\n  }\n  let blocks = args.blocks.values;\n  let blockNames = args.blocks.names;\n  let preparedArgs = manager.prepareArgs(state, args);\n  if (preparedArgs) {\n    args.clear();\n    for (let i = 0; i < blocks.length; i++) {\n      stack.push(blocks[i]);\n    }\n    let {\n      positional,\n      named\n    } = preparedArgs;\n    let positionalCount = positional.length;\n    for (let i = 0; i < positionalCount; i++) {\n      stack.push(positional[i]);\n    }\n    let names = Object.keys(named);\n    for (let i = 0; i < names.length; i++) {\n      stack.push(named[unwrap(names[i])]);\n    }\n    args.setup(stack, names, blockNames, positionalCount, false);\n  }\n  stack.push(args);\n});\nAPPEND_OPCODES.add(Op.CreateComponent, (vm, {\n  op1: flags,\n  op2: _state\n}) => {\n  let instance = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    definition,\n    manager,\n    capabilities\n  } = instance;\n  if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.createInstance)) {\n    // TODO: Closure and Main components are always invoked dynamically, so this\n    // opcode may run even if this capability is not enabled. In the future we\n    // should handle this in a better way.\n    return;\n  }\n  let dynamicScope = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicScope)) {\n    dynamicScope = vm.dynamicScope();\n  }\n  let hasDefaultBlock = flags & 1;\n  let args = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createArgs)) {\n    args = check(vm.stack.peek(), CheckArguments);\n  }\n  let self = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createCaller)) {\n    self = vm.getSelf();\n  }\n  let state = manager.create(vm.getOwner(), definition.state, args, vm.env, dynamicScope, self, !!hasDefaultBlock);\n\n  // We want to reuse the `state` POJO here, because we know that the opcodes\n  // only transition at exactly one place.\n  instance.state = state;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.updateHook)) {\n    vm.updateWith(new UpdateComponentOpcode(state, manager, dynamicScope));\n  }\n});\nAPPEND_OPCODES.add(Op.RegisterComponentDestructor, (vm, {\n  op1: _state\n}) => {\n  let {\n    manager,\n    state,\n    capabilities\n  } = check(vm.fetchValue(_state), CheckComponentInstance);\n  let d = manager.getDestroyable(state);\n  if (DEBUG && !managerHasCapability(manager, capabilities, InternalComponentCapabilities.willDestroy) && d !== null && typeof 'willDestroy' in d) {\n    throw new Error('BUG: Destructor has willDestroy, but the willDestroy capability was not enabled for this component. Pre-destruction hooks must be explicitly opted into');\n  }\n  if (d) vm.associateDestroyable(d);\n});\nAPPEND_OPCODES.add(Op.BeginComponentTransaction, (vm, {\n  op1: _state\n}) => {\n  let name;\n  if (DEBUG) {\n    let {\n      definition,\n      manager\n    } = check(vm.fetchValue(_state), CheckComponentInstance);\n    name = definition.resolvedName ?? manager.getDebugName(definition.state);\n  }\n  vm.beginCacheGroup(name);\n  vm.elements().pushSimpleBlock();\n});\nAPPEND_OPCODES.add(Op.PutComponentOperations, vm => {\n  vm.loadValue($t0, new ComponentElementOperations());\n});\nAPPEND_OPCODES.add(Op.ComponentAttr, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let trusting = vm[CONSTANTS].getValue(_trusting);\n  let reference = check(vm.stack.pop(), CheckReference);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  check(vm.fetchValue($t0), CheckInstanceof(ComponentElementOperations)).setAttribute(name, reference, trusting, namespace);\n});\nAPPEND_OPCODES.add(Op.StaticComponentAttr, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  check(vm.fetchValue($t0), CheckInstanceof(ComponentElementOperations)).setStaticAttribute(name, value, namespace);\n});\nclass ComponentElementOperations {\n  attributes = dict();\n  classes = [];\n  modifiers = [];\n  setAttribute(name, value, trusting, namespace) {\n    let deferred = {\n      value,\n      namespace,\n      trusting\n    };\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n    this.attributes[name] = deferred;\n  }\n  setStaticAttribute(name, value, namespace) {\n    let deferred = {\n      value,\n      namespace\n    };\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n    this.attributes[name] = deferred;\n  }\n  addModifier(modifier) {\n    this.modifiers.push(modifier);\n  }\n  flush(vm) {\n    let type;\n    let attributes = this.attributes;\n    for (let name in this.attributes) {\n      if (name === 'type') {\n        type = attributes[name];\n        continue;\n      }\n      let attr = unwrap(this.attributes[name]);\n      if (name === 'class') {\n        setDeferredAttr(vm, 'class', mergeClasses(this.classes), attr.namespace, attr.trusting);\n      } else {\n        setDeferredAttr(vm, name, attr.value, attr.namespace, attr.trusting);\n      }\n    }\n    if (type !== undefined) {\n      setDeferredAttr(vm, 'type', type.value, type.namespace, type.trusting);\n    }\n    return this.modifiers;\n  }\n}\nfunction mergeClasses(classes) {\n  if (classes.length === 0) {\n    return '';\n  }\n  if (classes.length === 1) {\n    return unwrap(classes[0]);\n  }\n  if (allStringClasses(classes)) {\n    return classes.join(' ');\n  }\n  return createClassListRef(classes);\n}\nfunction allStringClasses(classes) {\n  return classes.every(c => typeof c === 'string');\n}\nfunction setDeferredAttr(vm, name, value, namespace, trusting = false) {\n  if (typeof value === 'string') {\n    vm.elements().setStaticAttribute(name, value, namespace);\n  } else {\n    let attribute = vm.elements().setDynamicAttribute(name, valueForRef(value), trusting, namespace);\n    if (!isConstRef(value)) {\n      vm.updateWith(new UpdateDynamicAttributeOpcode(value, attribute, vm.env));\n    }\n  }\n}\nAPPEND_OPCODES.add(Op.DidCreateElement, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    manager\n  } = definition;\n  let operations = check(vm.fetchValue($t0), CheckInstanceof(ComponentElementOperations));\n  manager.didCreateElement(state, expect(vm.elements().constructing, `Expected a constructing element in DidCreateOpcode`), operations);\n});\nAPPEND_OPCODES.add(Op.GetComponentSelf, (vm, {\n  op1: _state,\n  op2: _names\n}) => {\n  let instance = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    definition,\n    state\n  } = instance;\n  let {\n    manager\n  } = definition;\n  let selfRef = manager.getSelf(state);\n  if (vm.env.debugRenderTree !== undefined) {\n    let instance = check(vm.fetchValue(_state), CheckComponentInstance);\n    let {\n      definition,\n      manager\n    } = instance;\n    let args;\n    if (vm.stack.peek() === vm[ARGS$1]) {\n      args = vm[ARGS$1].capture();\n    } else {\n      let names = vm[CONSTANTS].getArray(_names);\n      vm[ARGS$1].setup(vm.stack, names, [], 0, true);\n      args = vm[ARGS$1].capture();\n    }\n    let moduleName;\n    let compilable = definition.compilable;\n    if (compilable === null) {\n      assert(managerHasCapability(manager, instance.capabilities, InternalComponentCapabilities.dynamicLayout), 'BUG: No template was found for this component, and the component did not have the dynamic layout capability');\n      compilable = manager.getDynamicLayout(state, vm.runtime.resolver);\n      if (compilable !== null) {\n        moduleName = compilable.moduleName;\n      } else {\n        moduleName = '__default__.hbs';\n      }\n    } else {\n      moduleName = compilable.moduleName;\n    }\n\n    // For tearing down the debugRenderTree\n    vm.associateDestroyable(instance);\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args, moduleName);\n      nodes.forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.create(bucket, node);\n        registerDestructor(instance, () => {\n          vm.env.debugRenderTree?.willDestroy(bucket);\n        });\n        vm.updateWith(new DebugRenderTreeUpdateOpcode(bucket));\n      });\n    } else {\n      let name = definition.resolvedName ?? manager.getDebugName(definition.state);\n      vm.env.debugRenderTree.create(instance, {\n        type: 'component',\n        name,\n        args,\n        template: moduleName,\n        instance: valueForRef(selfRef)\n      });\n      vm.associateDestroyable(instance);\n      registerDestructor(instance, () => {\n        vm.env.debugRenderTree?.willDestroy(instance);\n      });\n      vm.updateWith(new DebugRenderTreeUpdateOpcode(instance));\n    }\n  }\n  vm.stack.push(selfRef);\n});\nAPPEND_OPCODES.add(Op.GetComponentTagName, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    manager\n  } = definition;\n  let tagName = manager.getTagName(state);\n\n  // User provided value from JS, so we don't bother to encode\n  vm.stack.push(tagName);\n});\n\n// Dynamic Invocation Only\nAPPEND_OPCODES.add(Op.GetComponentLayout, (vm, {\n  op1: _state\n}) => {\n  let instance = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    manager,\n    definition\n  } = instance;\n  let {\n    stack\n  } = vm;\n  let {\n    compilable\n  } = definition;\n  if (compilable === null) {\n    let {\n      capabilities\n    } = instance;\n    assert(managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout), 'BUG: No template was found for this component, and the component did not have the dynamic layout capability');\n    compilable = manager.getDynamicLayout(instance.state, vm.runtime.resolver);\n    if (compilable === null) {\n      if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped)) {\n        compilable = unwrapTemplate(vm[CONSTANTS].defaultTemplate).asWrappedLayout();\n      } else {\n        compilable = unwrapTemplate(vm[CONSTANTS].defaultTemplate).asLayout();\n      }\n    }\n  }\n  let handle = compilable.compile(vm.context);\n  stack.push(compilable.symbolTable);\n  stack.push(handle);\n});\nAPPEND_OPCODES.add(Op.Main, (vm, {\n  op1: register\n}) => {\n  let definition = check(vm.stack.pop(), CheckComponentDefinition);\n  let invocation = check(vm.stack.pop(), CheckInvocation);\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let state = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: invocation.handle,\n    table: invocation.symbolTable,\n    lookup: null\n  };\n  vm.loadValue(register, state);\n});\nAPPEND_OPCODES.add(Op.PopulateLayout, (vm, {\n  op1: _state\n}) => {\n  let {\n    stack\n  } = vm;\n\n  // In DEBUG handles could be ErrHandle objects\n  let handle = check(stack.pop(), CheckHandle);\n  let table = check(stack.pop(), CheckProgramSymbolTable);\n  let state = check(vm.fetchValue(_state), CheckComponentInstance);\n  state.handle = handle;\n  state.table = table;\n});\nAPPEND_OPCODES.add(Op.VirtualRootScope, (vm, {\n  op1: _state\n}) => {\n  let {\n    table,\n    manager,\n    capabilities,\n    state\n  } = check(vm.fetchValue(_state), CheckFinishedComponentInstance);\n  let owner;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.hasSubOwner)) {\n    owner = manager.getOwner(state);\n    vm.loadValue($t1, null); // Clear the temp register\n  } else {\n    // Check the temp register to see if an owner was resolved from currying\n    owner = vm.fetchValue($t1);\n    if (owner === null) {\n      // If an owner wasn't found, default to using the current owner. This\n      // will happen for normal dynamic component invocation,\n      // e.g. <SomeClassicEmberComponent/>\n      owner = vm.getOwner();\n    } else {\n      // Else the owner was found, so clear the temp register. This will happen\n      // if we are loading a curried component, e.g. <@someCurriedComponent/>\n      vm.loadValue($t1, null);\n    }\n  }\n  vm.pushRootScope(table.symbols.length + 1, owner);\n});\nAPPEND_OPCODES.add(Op.SetupForEval, (vm, {\n  op1: _state\n}) => {\n  let state = check(vm.fetchValue(_state), CheckFinishedComponentInstance);\n  if (state.table.hasEval) {\n    let lookup = state.lookup = dict();\n    vm.scope().bindEvalScope(lookup);\n  }\n});\nAPPEND_OPCODES.add(Op.SetNamedVariables, (vm, {\n  op1: _state\n}) => {\n  let state = check(vm.fetchValue(_state), CheckFinishedComponentInstance);\n  let scope = vm.scope();\n  let args = check(vm.stack.peek(), CheckArguments);\n  let callerNames = args.named.atNames;\n  for (let i = callerNames.length - 1; i >= 0; i--) {\n    let atName = unwrap(callerNames[i]);\n    let symbol = state.table.symbols.indexOf(atName);\n    let value = args.named.get(atName, true);\n    if (symbol !== -1) scope.bindSymbol(symbol + 1, value);\n    if (state.lookup) state.lookup[atName] = value;\n  }\n});\nfunction bindBlock(symbolName, blockName, state, blocks, vm) {\n  let symbol = state.table.symbols.indexOf(symbolName);\n  let block = blocks.get(blockName);\n  if (symbol !== -1) vm.scope().bindBlock(symbol + 1, block);\n  if (state.lookup) state.lookup[symbolName] = block;\n}\nAPPEND_OPCODES.add(Op.SetBlocks, (vm, {\n  op1: _state\n}) => {\n  let state = check(vm.fetchValue(_state), CheckFinishedComponentInstance);\n  let {\n    blocks\n  } = check(vm.stack.peek(), CheckArguments);\n  for (const [i] of enumerate(blocks.names)) {\n    bindBlock(unwrap(blocks.symbolNames[i]), unwrap(blocks.names[i]), state, blocks, vm);\n  }\n});\n\n// Dynamic Invocation Only\nAPPEND_OPCODES.add(Op.InvokeComponentLayout, (vm, {\n  op1: _state\n}) => {\n  let state = check(vm.fetchValue(_state), CheckFinishedComponentInstance);\n  vm.call(state.handle);\n});\nAPPEND_OPCODES.add(Op.DidRenderLayout, (vm, {\n  op1: _state\n}) => {\n  let instance = check(vm.fetchValue(_state), CheckComponentInstance);\n  let {\n    manager,\n    state,\n    capabilities\n  } = instance;\n  let bounds = vm.elements().popBlock();\n  if (vm.env.debugRenderTree !== undefined) {\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, state, EMPTY_ARGS);\n      nodes.reverse().forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.didRender(bucket, bounds);\n        vm.updateWith(new DebugRenderTreeDidRenderOpcode(bucket, bounds));\n      });\n    } else {\n      vm.env.debugRenderTree.didRender(instance, bounds);\n      vm.updateWith(new DebugRenderTreeDidRenderOpcode(instance, bounds));\n    }\n  }\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createInstance)) {\n    let mgr = check(manager, CheckInterface({\n      didRenderLayout: CheckFunction\n    }));\n    mgr.didRenderLayout(state, bounds);\n    vm.env.didCreate(instance);\n    vm.updateWith(new DidUpdateLayoutOpcode(instance, bounds));\n  }\n});\nAPPEND_OPCODES.add(Op.CommitComponentTransaction, vm => {\n  vm.commitCacheGroup();\n});\nclass UpdateComponentOpcode {\n  constructor(component, manager, dynamicScope) {\n    this.component = component;\n    this.manager = manager;\n    this.dynamicScope = dynamicScope;\n  }\n  evaluate(_vm) {\n    let {\n      component,\n      manager,\n      dynamicScope\n    } = this;\n    manager.update(component, dynamicScope);\n  }\n}\nclass DidUpdateLayoutOpcode {\n  constructor(component, bounds) {\n    this.component = component;\n    this.bounds = bounds;\n  }\n  evaluate(vm) {\n    let {\n      component,\n      bounds\n    } = this;\n    let {\n      manager,\n      state\n    } = component;\n    manager.didUpdateLayout(state, bounds);\n    vm.env.didUpdate(component);\n  }\n}\nclass DebugRenderTreeUpdateOpcode {\n  constructor(bucket) {\n    this.bucket = bucket;\n  }\n  evaluate(vm) {\n    vm.env.debugRenderTree?.update(this.bucket);\n  }\n}\nclass DebugRenderTreeDidRenderOpcode {\n  constructor(bucket, bounds) {\n    this.bucket = bucket;\n    this.bounds = bounds;\n  }\n  evaluate(vm) {\n    vm.env.debugRenderTree?.didRender(this.bucket, this.bounds);\n  }\n}\n\nCheckInterface({\n  [COMPUTE]: CheckFunction\n});\nconst CheckOperations = wrap(() => CheckOption(CheckInstanceof(ComponentElementOperations)));\nclass ReferenceChecker {\n  validate(value) {\n    return typeof value === 'object' && value !== null && REFERENCE in value;\n  }\n  expected() {\n    return `Reference`;\n  }\n}\nconst CheckReference = new ReferenceChecker();\nconst CheckIterator = CheckInterface({\n  next: CheckFunction,\n  isEmpty: CheckFunction\n});\nconst CheckArguments = wrap(() => CheckInstanceof(VMArgumentsImpl));\nconst CheckHelper = CheckFunction;\nclass UndefinedReferenceChecker {\n  validate(value) {\n    return value === UNDEFINED_REFERENCE;\n  }\n  expected() {\n    return `undefined`;\n  }\n}\nconst CheckUndefinedReference = new UndefinedReferenceChecker();\nconst CheckCapturedArguments = CheckInterface({\n  positional: wrap(() => CheckArray(CheckReference)),\n  named: wrap(() => CheckDict(CheckReference))\n});\nconst CheckScope = wrap(() => CheckInstanceof(PartialScopeImpl));\nconst CheckComponentManager = CheckInterface({\n  getCapabilities: CheckFunction\n});\nconst CheckCapabilities = CheckNumber;\nconst CheckComponentInstance = CheckInterface({\n  definition: CheckUnknown,\n  state: CheckUnknown,\n  handle: CheckUnknown,\n  table: CheckUnknown\n});\nconst CheckCurriedComponentDefinition = CheckOr(CheckObject, CheckFunction);\nconst CheckInvocation = CheckInterface({\n  handle: CheckNumber,\n  symbolTable: CheckProgramSymbolTable\n});\nCheckInterface({\n  setAttribute: CheckFunction\n});\nconst CheckFinishedComponentInstance = CheckInterface({\n  definition: CheckUnknown,\n  state: CheckUnknown,\n  handle: CheckHandle,\n  table: CheckProgramSymbolTable\n});\nconst CheckCompilableBlock = CheckInterface({\n  compile: CheckFunction,\n  symbolTable: CheckBlockSymbolTable\n});\nconst CheckCompilableProgram = CheckInterface({\n  compile: CheckFunction,\n  symbolTable: CheckProgramSymbolTable\n});\nconst CheckScopeBlock = CheckInterface({\n  0: CheckCompilableBlock,\n  1: CheckScope,\n  2: CheckBlockSymbolTable\n});\nconst CheckComponentDefinition = CheckInterface({\n  resolvedName: CheckOption(CheckString),\n  handle: CheckNumber,\n  state: CheckOr(CheckObject, CheckFunction),\n  manager: CheckComponentManager,\n  capabilities: CheckCapabilities,\n  compilable: CheckCompilableProgram\n});\n\n/*\n  The calling convention is:\n\n  * 0-N block arguments at the bottom\n  * 0-N positional arguments next (left-to-right)\n  * 0-N named arguments next\n*/\n\nclass VMArgumentsImpl {\n  stack = null;\n  positional = new PositionalArgumentsImpl();\n  named = new NamedArgumentsImpl();\n  blocks = new BlockArgumentsImpl();\n  empty(stack) {\n    let base = stack[REGISTERS][$sp] + 1;\n    this.named.empty(stack, base);\n    this.positional.empty(stack, base);\n    this.blocks.empty(stack, base);\n    return this;\n  }\n  setup(stack, names, blockNames, positionalCount, atNames) {\n    this.stack = stack;\n\n    /*\n           | ... | blocks      | positional  | named |\n           | ... | b0    b1    | p0 p1 p2 p3 | n0 n1 |\n     index | ... | 4/5/6 7/8/9 | 10 11 12 13 | 14 15 |\n                   ^             ^             ^  ^\n                 bbase         pbase       nbase  sp\n    */\n\n    let named = this.named;\n    let namedCount = names.length;\n    let namedBase = stack[REGISTERS][$sp] - namedCount + 1;\n    named.setup(stack, namedBase, namedCount, names, atNames);\n    let positional = this.positional;\n    let positionalBase = namedBase - positionalCount;\n    positional.setup(stack, positionalBase, positionalCount);\n    let blocks = this.blocks;\n    let blocksCount = blockNames.length;\n    let blocksBase = positionalBase - blocksCount * 3;\n    blocks.setup(stack, blocksBase, blocksCount, blockNames);\n  }\n  get base() {\n    return this.blocks.base;\n  }\n  get length() {\n    return this.positional.length + this.named.length + this.blocks.length * 3;\n  }\n  at(pos) {\n    return this.positional.at(pos);\n  }\n  realloc(offset) {\n    let {\n      stack\n    } = this;\n    if (offset > 0 && stack !== null) {\n      let {\n        positional,\n        named\n      } = this;\n      let newBase = positional.base + offset;\n      let length = positional.length + named.length;\n      for (let i = length - 1; i >= 0; i--) {\n        stack.copy(i + positional.base, i + newBase);\n      }\n      positional.base += offset;\n      named.base += offset;\n      stack[REGISTERS][$sp] += offset;\n    }\n  }\n  capture() {\n    let positional = this.positional.length === 0 ? EMPTY_POSITIONAL : this.positional.capture();\n    let named = this.named.length === 0 ? EMPTY_NAMED : this.named.capture();\n    return {\n      named,\n      positional\n    };\n  }\n  clear() {\n    let {\n      stack,\n      length\n    } = this;\n    if (length > 0 && stack !== null) stack.pop(length);\n  }\n}\nconst EMPTY_REFERENCES = emptyArray();\nclass PositionalArgumentsImpl {\n  base = 0;\n  length = 0;\n  stack = null;\n  _references = null;\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n  }\n  setup(stack, base, length) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n    } else {\n      this._references = null;\n    }\n  }\n  at(position) {\n    let {\n      base,\n      length,\n      stack\n    } = this;\n    if (position < 0 || position >= length) {\n      return UNDEFINED_REFERENCE;\n    }\n    return check(stack.get(position, base), CheckReference);\n  }\n  capture() {\n    return this.references;\n  }\n  prepend(other) {\n    let additions = other.length;\n    if (additions > 0) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      this.base = base = base - additions;\n      this.length = length + additions;\n      for (let i = 0; i < additions; i++) {\n        stack.set(other[i], i, base);\n      }\n      this._references = null;\n    }\n  }\n  get references() {\n    let references = this._references;\n    if (!references) {\n      let {\n        stack,\n        base,\n        length\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n    return references;\n  }\n}\nclass NamedArgumentsImpl {\n  base = 0;\n  length = 0;\n  _references = null;\n  _names = EMPTY_STRING_ARRAY;\n  _atNames = EMPTY_STRING_ARRAY;\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n    this._names = EMPTY_STRING_ARRAY;\n    this._atNames = EMPTY_STRING_ARRAY;\n  }\n  setup(stack, base, length, names, atNames) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n      this._names = EMPTY_STRING_ARRAY;\n      this._atNames = EMPTY_STRING_ARRAY;\n    } else {\n      this._references = null;\n      if (atNames) {\n        this._names = null;\n        this._atNames = names;\n      } else {\n        this._names = names;\n        this._atNames = null;\n      }\n    }\n  }\n  get names() {\n    let names = this._names;\n    if (!names) {\n      names = this._names = this._atNames.map(this.toSyntheticName);\n    }\n    return names;\n  }\n  get atNames() {\n    let atNames = this._atNames;\n    if (!atNames) {\n      atNames = this._atNames = this._names.map(this.toAtName);\n    }\n    return atNames;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name, atNames = false) {\n    let {\n      base,\n      stack\n    } = this;\n    let names = atNames ? this.atNames : this.names;\n    let idx = names.indexOf(name);\n    if (idx === -1) {\n      return UNDEFINED_REFERENCE;\n    }\n    let ref = stack.get(idx, base);\n    if (DEBUG) {\n      return createDebugAliasRef(atNames ? name : `@${name}`, ref);\n    } else {\n      return ref;\n    }\n  }\n  capture() {\n    let {\n      names,\n      references\n    } = this;\n    let map = dict();\n    for (const [i, name] of enumerate(names)) {\n      if (DEBUG) {\n        map[name] = createDebugAliasRef(`@${name}`, unwrap(references[i]));\n      } else {\n        map[name] = unwrap(references[i]);\n      }\n    }\n    return map;\n  }\n  merge(other) {\n    let keys = Object.keys(other);\n    if (keys.length > 0) {\n      let {\n        names,\n        length,\n        stack\n      } = this;\n      let newNames = names.slice();\n      for (const name of keys) {\n        let idx = newNames.indexOf(name);\n        if (idx === -1) {\n          length = newNames.push(name);\n          stack.push(other[name]);\n        }\n      }\n      this.length = length;\n      this._references = null;\n      this._names = newNames;\n      this._atNames = null;\n    }\n  }\n  get references() {\n    let references = this._references;\n    if (!references) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n    return references;\n  }\n  toSyntheticName(name) {\n    return name.slice(1);\n  }\n  toAtName(name) {\n    return `@${name}`;\n  }\n}\nfunction toSymbolName(name) {\n  return `&${name}`;\n}\nconst EMPTY_BLOCK_VALUES = emptyArray();\nclass BlockArgumentsImpl {\n  internalValues = null;\n  _symbolNames = null;\n  internalTag = null;\n  names = EMPTY_STRING_ARRAY;\n  length = 0;\n  base = 0;\n  empty(stack, base) {\n    this.stack = stack;\n    this.names = EMPTY_STRING_ARRAY;\n    this.base = base;\n    this.length = 0;\n    this._symbolNames = null;\n    this.internalTag = CONSTANT_TAG;\n    this.internalValues = EMPTY_BLOCK_VALUES;\n  }\n  setup(stack, base, length, names) {\n    this.stack = stack;\n    this.names = names;\n    this.base = base;\n    this.length = length;\n    this._symbolNames = null;\n    if (length === 0) {\n      this.internalTag = CONSTANT_TAG;\n      this.internalValues = EMPTY_BLOCK_VALUES;\n    } else {\n      this.internalTag = null;\n      this.internalValues = null;\n    }\n  }\n  get values() {\n    let values = this.internalValues;\n    if (!values) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      values = this.internalValues = stack.slice(base, base + length * 3);\n    }\n    return values;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) {\n      return null;\n    }\n    let {\n      base,\n      stack\n    } = this;\n    let table = check(stack.get(idx * 3, base), CheckOption(CheckBlockSymbolTable));\n    let scope = check(stack.get(idx * 3 + 1, base), CheckOption(CheckScope));\n    let handle = check(stack.get(idx * 3 + 2, base), CheckOption(CheckOr(CheckHandle, CheckCompilableBlock)));\n    return handle === null ? null : [handle, scope, table];\n  }\n  capture() {\n    return new CapturedBlockArgumentsImpl(this.names, this.values);\n  }\n  get symbolNames() {\n    let symbolNames = this._symbolNames;\n    if (symbolNames === null) {\n      symbolNames = this._symbolNames = this.names.map(toSymbolName);\n    }\n    return symbolNames;\n  }\n}\nclass CapturedBlockArgumentsImpl {\n  length;\n  constructor(names, values) {\n    this.names = names;\n    this.values = values;\n    this.length = names.length;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) return null;\n    return [this.values[idx * 3 + 2], this.values[idx * 3 + 1], this.values[idx * 3]];\n  }\n}\nfunction createCapturedArgs(named, positional) {\n  return {\n    named,\n    positional\n  };\n}\nfunction reifyNamed(named) {\n  let reified = dict();\n  for (const [key, value] of Object.entries(named)) {\n    reified[key] = valueForRef(value);\n  }\n  return reified;\n}\nfunction reifyPositional(positional) {\n  return positional.map(valueForRef);\n}\nfunction reifyArgs(args) {\n  return {\n    named: reifyNamed(args.named),\n    positional: reifyPositional(args.positional)\n  };\n}\nconst EMPTY_NAMED = Object.freeze(Object.create(null));\nconst EMPTY_POSITIONAL = EMPTY_REFERENCES;\nconst EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);\n\nfunction createConcatRef(partsRefs) {\n  return createComputeRef(() => {\n    const parts = [];\n    for (const ref of partsRefs) {\n      const value = valueForRef(ref);\n      if (value !== null && value !== undefined) {\n        parts.push(castToString(value));\n      }\n    }\n    if (parts.length > 0) {\n      return parts.join('');\n    }\n    return null;\n  });\n}\nfunction castToString(value) {\n  if (typeof value === 'string') {\n    return value;\n  } else if (typeof value.toString !== 'function') {\n    return '';\n  }\n  return String(value);\n}\n\nAPPEND_OPCODES.add(Op.Curry, (vm, {\n  op1: type,\n  op2: _isStrict\n}) => {\n  let stack = vm.stack;\n  let definition = check(stack.pop(), CheckReference);\n  let capturedArgs = check(stack.pop(), CheckCapturedArguments);\n  let owner = vm.getOwner();\n  let resolver = vm.runtime.resolver;\n  let isStrict = false;\n  if (DEBUG) {\n    // strict check only happens in DEBUG builds, no reason to load it otherwise\n    isStrict = vm[CONSTANTS].getValue(decodeHandle(_isStrict));\n  }\n  vm.loadValue($v0, createCurryRef(type, definition, owner, capturedArgs, resolver, isStrict));\n});\nAPPEND_OPCODES.add(Op.DynamicHelper, vm => {\n  let stack = vm.stack;\n  let ref = check(stack.pop(), CheckReference);\n  let args = check(stack.pop(), CheckArguments).capture();\n  let helperRef;\n  let initialOwner = vm.getOwner();\n  let helperInstanceRef = createComputeRef(() => {\n    if (helperRef !== undefined) {\n      destroy(helperRef);\n    }\n    let definition = valueForRef(ref);\n    if (isCurriedType(definition, CurriedTypes.Helper)) {\n      let {\n        definition: resolvedDef,\n        owner,\n        positional,\n        named\n      } = resolveCurriedValue(definition);\n      let helper = resolveHelper(resolvedDef, ref);\n      if (named !== undefined) {\n        args.named = assign({}, ...named, args.named);\n      }\n      if (positional !== undefined) {\n        args.positional = positional.concat(args.positional);\n      }\n      helperRef = helper(args, owner);\n      associateDestroyableChild(helperInstanceRef, helperRef);\n    } else if (isObject(definition)) {\n      let helper = resolveHelper(definition, ref);\n      helperRef = helper(args, initialOwner);\n      if (_hasDestroyableChildren(helperRef)) {\n        associateDestroyableChild(helperInstanceRef, helperRef);\n      }\n    } else {\n      helperRef = UNDEFINED_REFERENCE;\n    }\n  });\n  let helperValueRef = createComputeRef(() => {\n    valueForRef(helperInstanceRef);\n    return valueForRef(helperRef);\n  });\n  vm.associateDestroyable(helperInstanceRef);\n  vm.loadValue($v0, helperValueRef);\n});\nfunction resolveHelper(definition, ref) {\n  let managerOrHelper = getInternalHelperManager(definition, true);\n  let helper;\n  if (managerOrHelper === null) {\n    helper = null;\n  } else {\n    helper = typeof managerOrHelper === 'function' ? managerOrHelper : managerOrHelper.getHelper(definition);\n    assert(managerOrHelper, 'BUG: expected manager or helper');\n  }\n  if (DEBUG && helper === null) {\n    throw new Error(`Expected a dynamic helper definition, but received an object or function that did not have a helper manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\` or \\`(${ref.debugLabel})\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(definition)}`);\n  }\n  return helper;\n}\nAPPEND_OPCODES.add(Op.Helper, (vm, {\n  op1: handle\n}) => {\n  let stack = vm.stack;\n  let helper = check(vm[CONSTANTS].getValue(handle), CheckHelper);\n  let args = check(stack.pop(), CheckArguments);\n  let value = helper(args.capture(), vm.getOwner(), vm.dynamicScope());\n  if (_hasDestroyableChildren(value)) {\n    vm.associateDestroyable(value);\n  }\n  vm.loadValue($v0, value);\n});\nAPPEND_OPCODES.add(Op.GetVariable, (vm, {\n  op1: symbol\n}) => {\n  let expr = vm.referenceForSymbol(symbol);\n  vm.stack.push(expr);\n});\nAPPEND_OPCODES.add(Op.SetVariable, (vm, {\n  op1: symbol\n}) => {\n  let expr = check(vm.stack.pop(), CheckReference);\n  vm.scope().bindSymbol(symbol, expr);\n});\nAPPEND_OPCODES.add(Op.SetBlock, (vm, {\n  op1: symbol\n}) => {\n  let handle = check(vm.stack.pop(), CheckCompilableBlock);\n  let scope = check(vm.stack.pop(), CheckScope);\n  let table = check(vm.stack.pop(), CheckBlockSymbolTable);\n  vm.scope().bindBlock(symbol, [handle, scope, table]);\n});\nAPPEND_OPCODES.add(Op.ResolveMaybeLocal, (vm, {\n  op1: _name\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let locals = vm.scope().getPartialMap();\n  let ref = locals[name];\n  if (ref === undefined) {\n    ref = childRefFor(vm.getSelf(), name);\n  }\n  vm.stack.push(ref);\n});\nAPPEND_OPCODES.add(Op.RootScope, (vm, {\n  op1: symbols\n}) => {\n  vm.pushRootScope(symbols, vm.getOwner());\n});\nAPPEND_OPCODES.add(Op.GetProperty, (vm, {\n  op1: _key\n}) => {\n  let key = vm[CONSTANTS].getValue(_key);\n  let expr = check(vm.stack.pop(), CheckReference);\n  vm.stack.push(childRefFor(expr, key));\n});\nAPPEND_OPCODES.add(Op.GetBlock, (vm, {\n  op1: _block\n}) => {\n  let {\n    stack\n  } = vm;\n  let block = vm.scope().getBlock(_block);\n  stack.push(block);\n});\nAPPEND_OPCODES.add(Op.SpreadBlock, vm => {\n  let {\n    stack\n  } = vm;\n  let block = check(stack.pop(), CheckOption(CheckOr(CheckScopeBlock, CheckUndefinedReference)));\n  if (block && !isUndefinedReference(block)) {\n    let [handleOrCompilable, scope, table] = block;\n    stack.push(table);\n    stack.push(scope);\n    stack.push(handleOrCompilable);\n  } else {\n    stack.push(null);\n    stack.push(null);\n    stack.push(null);\n  }\n});\nfunction isUndefinedReference(input) {\n  assert(Array.isArray(input) || input === UNDEFINED_REFERENCE, 'a reference other than UNDEFINED_REFERENCE is illegal here');\n  return input === UNDEFINED_REFERENCE;\n}\nAPPEND_OPCODES.add(Op.HasBlock, vm => {\n  let {\n    stack\n  } = vm;\n  let block = check(stack.pop(), CheckOption(CheckOr(CheckScopeBlock, CheckUndefinedReference)));\n  if (block && !isUndefinedReference(block)) {\n    stack.push(TRUE_REFERENCE);\n  } else {\n    stack.push(FALSE_REFERENCE);\n  }\n});\nAPPEND_OPCODES.add(Op.HasBlockParams, vm => {\n  // FIXME(mmun): should only need to push the symbol table\n  let block = vm.stack.pop();\n  let scope = vm.stack.pop();\n  check(block, CheckMaybe(CheckOr(CheckHandle, CheckCompilableBlock)));\n  check(scope, CheckMaybe(CheckScope));\n  let table = check(vm.stack.pop(), CheckMaybe(CheckBlockSymbolTable));\n  let hasBlockParams = table && table.parameters.length;\n  vm.stack.push(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n});\nAPPEND_OPCODES.add(Op.Concat, (vm, {\n  op1: count\n}) => {\n  let out = new Array(count);\n  for (let i = count; i > 0; i--) {\n    let offset = i - 1;\n    out[offset] = check(vm.stack.pop(), CheckReference);\n  }\n  vm.stack.push(createConcatRef(out));\n});\nAPPEND_OPCODES.add(Op.IfInline, vm => {\n  let condition = check(vm.stack.pop(), CheckReference);\n  let truthy = check(vm.stack.pop(), CheckReference);\n  let falsy = check(vm.stack.pop(), CheckReference);\n  vm.stack.push(createComputeRef(() => {\n    if (toBool(valueForRef(condition)) === true) {\n      return valueForRef(truthy);\n    } else {\n      return valueForRef(falsy);\n    }\n  }));\n});\nAPPEND_OPCODES.add(Op.Not, vm => {\n  let ref = check(vm.stack.pop(), CheckReference);\n  vm.stack.push(createComputeRef(() => {\n    return !toBool(valueForRef(ref));\n  }));\n});\nAPPEND_OPCODES.add(Op.GetDynamicVar, vm => {\n  let scope = vm.dynamicScope();\n  let stack = vm.stack;\n  let nameRef = check(stack.pop(), CheckReference);\n  stack.push(createComputeRef(() => {\n    let name = String(valueForRef(nameRef));\n    return valueForRef(scope.get(name));\n  }));\n});\nAPPEND_OPCODES.add(Op.Log, vm => {\n  let {\n    positional\n  } = check(vm.stack.pop(), CheckArguments).capture();\n  vm.loadValue($v0, createComputeRef(() => {\n    // eslint-disable-next-line no-console\n    console.log(...reifyPositional(positional));\n  }));\n});\n\nclass DynamicTextContent {\n  constructor(node, reference, lastValue) {\n    this.node = node;\n    this.reference = reference;\n    this.lastValue = lastValue;\n  }\n  evaluate() {\n    let value = valueForRef(this.reference);\n    let {\n      lastValue\n    } = this;\n    if (value === lastValue) return;\n    let normalized;\n    if (isEmpty$2(value)) {\n      normalized = '';\n    } else if (isString(value)) {\n      normalized = value;\n    } else {\n      normalized = String(value);\n    }\n    if (normalized !== lastValue) {\n      let textNode = this.node;\n      textNode.nodeValue = this.lastValue = normalized;\n    }\n  }\n}\n\nfunction toContentType(value) {\n  if (shouldCoerce(value)) {\n    return ContentType.String;\n  } else if (isCurriedType(value, CurriedType.Component) || hasInternalComponentManager(value)) {\n    return ContentType.Component;\n  } else if (isCurriedType(value, CurriedType.Helper) || hasInternalHelperManager(value)) {\n    return ContentType.Helper;\n  } else if (isSafeString(value)) {\n    return ContentType.SafeString;\n  } else if (isFragment(value)) {\n    return ContentType.Fragment;\n  } else if (isNode(value)) {\n    return ContentType.Node;\n  } else {\n    return ContentType.String;\n  }\n}\nfunction toDynamicContentType(value) {\n  if (!isObject(value)) {\n    return ContentType.String;\n  }\n  if (isCurriedType(value, CurriedType.Component) || hasInternalComponentManager(value)) {\n    return ContentType.Component;\n  } else {\n    if (DEBUG && !isCurriedType(value, CurriedType.Helper) && !hasInternalHelperManager(value)) {\n      throw new Error(`Attempted use a dynamic value as a component or helper, but that value did not have an associated component or helper manager. The value was: ${value}`);\n    }\n    return ContentType.Helper;\n  }\n}\nAPPEND_OPCODES.add(Op.ContentType, vm => {\n  let reference = check(vm.stack.peek(), CheckReference);\n  vm.stack.push(toContentType(valueForRef(reference)));\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toContentType));\n  }\n});\nAPPEND_OPCODES.add(Op.DynamicContentType, vm => {\n  let reference = check(vm.stack.peek(), CheckReference);\n  vm.stack.push(toDynamicContentType(valueForRef(reference)));\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toDynamicContentType));\n  }\n});\nAPPEND_OPCODES.add(Op.AppendHTML, vm => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let rawValue = valueForRef(reference);\n  let value = isEmpty$2(rawValue) ? '' : String(rawValue);\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(Op.AppendSafeHTML, vm => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let rawValue = check(valueForRef(reference), CheckSafeString).toHTML();\n  let value = isEmpty$2(rawValue) ? '' : check(rawValue, CheckString);\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(Op.AppendText, vm => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let rawValue = valueForRef(reference);\n  let value = isEmpty$2(rawValue) ? '' : String(rawValue);\n  let node = vm.elements().appendDynamicText(value);\n  if (!isConstRef(reference)) {\n    vm.updateWith(new DynamicTextContent(node, reference, value));\n  }\n});\nAPPEND_OPCODES.add(Op.AppendDocumentFragment, vm => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let value = check(valueForRef(reference), CheckDocumentFragment);\n  vm.elements().appendDynamicFragment(value);\n});\nAPPEND_OPCODES.add(Op.AppendNode, vm => {\n  let reference = check(vm.stack.pop(), CheckReference);\n  let value = check(valueForRef(reference), CheckNode);\n  vm.elements().appendDynamicNode(value);\n});\n\nfunction debugCallback(context, get) {\n  // eslint-disable-next-line no-console\n  console.info('Use `context`, and `get(<path>)` to debug this template.');\n\n  // for example...\n  context === get('this');\n\n  // eslint-disable-next-line no-debugger\n  debugger;\n}\nlet callback = debugCallback;\n\n// For testing purposes\nfunction setDebuggerCallback(cb) {\n  callback = cb;\n}\nfunction resetDebuggerCallback() {\n  callback = debugCallback;\n}\nclass ScopeInspector {\n  locals = dict();\n  constructor(scope, symbols, debugInfo) {\n    this.scope = scope;\n    for (const slot of debugInfo) {\n      let name = unwrap(symbols[slot - 1]);\n      let ref = scope.getSymbol(slot);\n      this.locals[name] = ref;\n    }\n  }\n  get(path) {\n    let {\n      scope,\n      locals\n    } = this;\n    let parts = path.split('.');\n    let [head, ...tail] = path.split('.');\n    let evalScope = scope.getEvalScope();\n    let ref;\n    if (head === 'this') {\n      ref = scope.getSelf();\n    } else if (locals[head]) {\n      ref = unwrap(locals[head]);\n    } else if (head.indexOf('@') === 0 && evalScope[head]) {\n      ref = evalScope[head];\n    } else {\n      ref = this.scope.getSelf();\n      tail = parts;\n    }\n    return tail.reduce((r, part) => childRefFor(r, part), ref);\n  }\n}\nAPPEND_OPCODES.add(Op.Debugger, (vm, {\n  op1: _symbols,\n  op2: _debugInfo\n}) => {\n  let symbols = vm[CONSTANTS].getArray(_symbols);\n  let debugInfo = vm[CONSTANTS].getArray(decodeHandle(_debugInfo));\n  let inspector = new ScopeInspector(vm.scope(), symbols, debugInfo);\n  callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));\n});\n\nAPPEND_OPCODES.add(Op.EnterList, (vm, {\n  op1: relativeStart,\n  op2: elseTarget\n}) => {\n  let stack = vm.stack;\n  let listRef = check(stack.pop(), CheckReference);\n  let keyRef = check(stack.pop(), CheckReference);\n  let keyValue = valueForRef(keyRef);\n  let key = keyValue === null ? '@identity' : String(keyValue);\n  let iteratorRef = createIteratorRef(listRef, key);\n  let iterator = valueForRef(iteratorRef);\n  vm.updateWith(new AssertFilter(iteratorRef, iterator => iterator.isEmpty()));\n  if (iterator.isEmpty() === true) {\n    // TODO: Fix this offset, should be accurate\n    vm.goto(elseTarget + 1);\n  } else {\n    vm.enterList(iteratorRef, relativeStart);\n    vm.stack.push(iterator);\n  }\n});\nAPPEND_OPCODES.add(Op.ExitList, vm => {\n  vm.exitList();\n});\nAPPEND_OPCODES.add(Op.Iterate, (vm, {\n  op1: breaks\n}) => {\n  let stack = vm.stack;\n  let iterator = check(stack.peek(), CheckIterator);\n  let item = iterator.next();\n  if (item !== null) {\n    vm.registerItem(vm.enterItem(item));\n  } else {\n    vm.goto(breaks);\n  }\n});\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass TemplateOnlyComponentManager {\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n  getDestroyable() {\n    return null;\n  }\n}\nconst TEMPLATE_ONLY_COMPONENT_MANAGER = new TemplateOnlyComponentManager();\n\n// This is only exported for types, don't use this class directly\nclass TemplateOnlyComponentDefinition {\n  constructor(moduleName = '@glimmer/component/template-only', name = '(unknown template-only component)') {\n    this.moduleName = moduleName;\n    this.name = name;\n  }\n  toString() {\n    return this.moduleName;\n  }\n}\nsetInternalComponentManager(TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition.prototype);\n\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  @example\n\n  ```js\n  import { templateOnlyComponent } from '@glimmer/runtime';\n\n  export default templateOnlyComponent();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\n\nfunction templateOnlyComponent(moduleName, name) {\n  return new TemplateOnlyComponentDefinition(moduleName, name);\n}\n\n// http://www.w3.org/TR/html/syntax.html#html-integration-point\nconst SVG_INTEGRATION_POINTS = {\n  foreignObject: 1,\n  desc: 1,\n  title: 1\n};\n\n// http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n// TODO: Adjust SVG attributes\n\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n// TODO: Adjust SVG elements\n\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\nconst BLACKLIST_TABLE = Object.create(null);\nclass DOMOperations {\n  // Set by this.setupUselessElement() in constructor\n\n  constructor(document) {\n    this.document = document;\n    this.setupUselessElement();\n  }\n\n  // split into separate method so that NodeDOMTreeConstruction\n  // can override it.\n  setupUselessElement() {\n    this.uselessElement = this.document.createElement('div');\n  }\n  createElement(tag, context) {\n    let isElementInSVGNamespace, isHTMLIntegrationPoint;\n    if (context) {\n      isElementInSVGNamespace = context.namespaceURI === NS_SVG || tag === 'svg';\n      isHTMLIntegrationPoint = !!SVG_INTEGRATION_POINTS[context.tagName];\n    } else {\n      isElementInSVGNamespace = tag === 'svg';\n      isHTMLIntegrationPoint = false;\n    }\n    if (isElementInSVGNamespace && !isHTMLIntegrationPoint) {\n      // FIXME: This does not properly handle <font> with color, face, or\n      // size attributes, which is also disallowed by the spec. We should fix\n      // this.\n      if (BLACKLIST_TABLE[tag]) {\n        throw new Error(`Cannot create a ${tag} inside an SVG context`);\n      }\n      return this.document.createElementNS(NS_SVG, tag);\n    } else {\n      return this.document.createElement(tag);\n    }\n  }\n  insertBefore(parent, node, reference) {\n    parent.insertBefore(node, reference);\n  }\n  insertHTMLBefore(parent, nextSibling, html) {\n    if (html === '') {\n      const comment = this.createComment('');\n      parent.insertBefore(comment, nextSibling);\n      return new ConcreteBounds(parent, comment, comment);\n    }\n    const prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n    let last;\n    if (nextSibling === null) {\n      parent.insertAdjacentHTML(INSERT_BEFORE_END, html);\n      last = expect(parent.lastChild, 'bug in insertAdjacentHTML?');\n    } else if (nextSibling instanceof HTMLElement) {\n      nextSibling.insertAdjacentHTML('beforebegin', html);\n      last = expect(nextSibling.previousSibling, 'bug in insertAdjacentHTML?');\n    } else {\n      // Non-element nodes do not support insertAdjacentHTML, so add an\n      // element and call it on that element. Then remove the element.\n      //\n      // This also protects Edge, IE and Firefox w/o the inspector open\n      // from merging adjacent text nodes. See ./compat/text-node-merging-fix.ts\n      const {\n        uselessElement\n      } = this;\n      parent.insertBefore(uselessElement, nextSibling);\n      uselessElement.insertAdjacentHTML(INSERT_BEFORE_BEGIN, html);\n      last = expect(uselessElement.previousSibling, 'bug in insertAdjacentHTML?');\n      parent.removeChild(uselessElement);\n    }\n    const first = expect(prev ? prev.nextSibling : parent.firstChild, 'bug in insertAdjacentHTML?');\n    return new ConcreteBounds(parent, first, last);\n  }\n  createTextNode(text) {\n    return this.document.createTextNode(text);\n  }\n  createComment(data) {\n    return this.document.createComment(data);\n  }\n}\nfunction moveNodesBefore(source, target, nextSibling) {\n  const first = expect(source.firstChild, 'source is empty');\n  let last = first;\n  let current = first;\n  while (current) {\n    const next = current.nextSibling;\n    target.insertBefore(current, nextSibling);\n    last = current;\n    current = next;\n  }\n  return new ConcreteBounds(target, first, last);\n}\n\n// Patch:    insertAdjacentHTML on SVG Fix\n// Browsers: Safari, IE, Edge, Firefox ~33-34\n// Reason:   insertAdjacentHTML does not exist on SVG elements in Safari. It is\n//           present but throws an exception on IE and Edge. Old versions of\n//           Firefox create nodes in the incorrect namespace.\n// Fix:      Since IE and Edge silently fail to create SVG nodes using\n//           innerHTML, and because Firefox may create nodes in the incorrect\n//           namespace using innerHTML on SVG elements, an HTML-string wrapping\n//           approach is used. A pre/post SVG tag is added to the string, then\n//           that whole string is added to a div. The created nodes are plucked\n//           out and applied to the target location on DOM.\nfunction applySVGInnerHTMLFix(document, DOMClass, svgNamespace) {\n  if (!document) return DOMClass;\n  if (!shouldApplyFix$1(document, svgNamespace)) {\n    return DOMClass;\n  }\n  const div = document.createElement('div');\n  return class DOMChangesWithSVGInnerHTMLFix extends DOMClass {\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n      if (parent.namespaceURI !== svgNamespace) {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n      return fixSVG(parent, div, html, nextSibling);\n    }\n  };\n}\nfunction fixSVG(parent, div, html, reference) {\n  assert(html !== '', 'html cannot be empty');\n  let source;\n\n  // This is important, because descendants of the <foreignObject> integration\n  // point are parsed in the HTML namespace\n  if (parent.tagName.toUpperCase() === 'FOREIGNOBJECT') {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    const wrappedHtml = '<svg><foreignObject>' + html + '</foreignObject></svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(INSERT_AFTER_BEGIN, wrappedHtml);\n    source = div.firstChild.firstChild;\n  } else {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    const wrappedHtml = '<svg>' + html + '</svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(INSERT_AFTER_BEGIN, wrappedHtml);\n    source = div.firstChild;\n  }\n  return moveNodesBefore(source, parent, reference);\n}\nfunction shouldApplyFix$1(document, svgNamespace) {\n  const svg = document.createElementNS(svgNamespace, 'svg');\n  try {\n    svg.insertAdjacentHTML(INSERT_BEFORE_END, '<circle></circle>');\n  } catch (e) {\n    // IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n    // Safari: Will throw, insertAdjacentHTML is not present on SVG\n  } finally {\n    // FF: Old versions will create a node in the wrong namespace\n    if (svg.childNodes.length === 1 && castToBrowser(unwrap(svg.firstChild), 'SVG').namespaceURI === NS_SVG) {\n      // The test worked as expected, no fix required\n      // eslint-disable-next-line no-unsafe-finally\n      return false;\n    }\n\n    // eslint-disable-next-line no-unsafe-finally\n    return true;\n  }\n}\n\n// Patch:    Adjacent text node merging fix\n// Browsers: IE, Edge, Firefox w/o inspector open\n// Reason:   These browsers will merge adjacent text nodes. For example given\n//           <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n//           with proper behavior will populate div.childNodes with two items.\n//           These browsers will populate it with one merged node instead.\n// Fix:      Add these nodes to a wrapper element, then iterate the childNodes\n//           of that wrapper and move the nodes to their target location. Note\n//           that potential SVG bugs will have been handled before this fix.\n//           Note that this fix must only apply to the previous text node, as\n//           the base implementation of `insertHTMLBefore` already handles\n//           following text nodes correctly.\nfunction applyTextNodeMergingFix(document, DOMClass) {\n  if (!document) return DOMClass;\n  if (!shouldApplyFix(document)) {\n    return DOMClass;\n  }\n  return class DOMChangesWithTextNodeMergingFix extends DOMClass {\n    uselessComment;\n    constructor(document) {\n      super(document);\n      this.uselessComment = document.createComment('');\n    }\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n      let didSetUselessComment = false;\n      const nextPrevious = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n      if (nextPrevious && nextPrevious instanceof Text) {\n        didSetUselessComment = true;\n        parent.insertBefore(this.uselessComment, nextSibling);\n      }\n      const bounds = super.insertHTMLBefore(parent, nextSibling, html);\n      if (didSetUselessComment) {\n        parent.removeChild(this.uselessComment);\n      }\n      return bounds;\n    }\n  };\n}\nfunction shouldApplyFix(document) {\n  const mergingTextDiv = document.createElement('div');\n  mergingTextDiv.appendChild(document.createTextNode('first'));\n  mergingTextDiv.insertAdjacentHTML(INSERT_BEFORE_END, 'second');\n  if (mergingTextDiv.childNodes.length === 2) {\n    // It worked as expected, no fix required\n    return false;\n  }\n  return true;\n}\n\nconst doc$1 = typeof document === 'undefined' ? null : castToSimple(document);\nclass TreeConstruction extends DOMOperations {\n  createElementNS(namespace, tag) {\n    return this.document.createElementNS(namespace, tag);\n  }\n  setAttribute(element, name, value, namespace = null) {\n    if (namespace) {\n      element.setAttributeNS(namespace, name, value);\n    } else {\n      element.setAttribute(name, value);\n    }\n  }\n}\nlet appliedTreeConstruction = TreeConstruction;\nappliedTreeConstruction = applyTextNodeMergingFix(doc$1, appliedTreeConstruction);\nappliedTreeConstruction = applySVGInnerHTMLFix(doc$1, appliedTreeConstruction, NS_SVG);\nconst DOMTreeConstruction = appliedTreeConstruction;\n\n['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);\nconst WHITESPACE = /[\\t\\n\\v\\f\\r \\xA0\\u{1680}\\u{180e}\\u{2000}-\\u{200a}\\u{2028}\\u{2029}\\u{202f}\\u{205f}\\u{3000}\\u{feff}]/u;\nconst doc = typeof document === 'undefined' ? null : castToSimple(document);\nfunction isWhitespace(string) {\n  return WHITESPACE.test(string);\n}\nclass DOMChangesImpl extends DOMOperations {\n  namespace;\n  constructor(document) {\n    super(document);\n    this.document = document;\n    this.namespace = null;\n  }\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n  removeAttribute(element, name) {\n    element.removeAttribute(name);\n  }\n  insertAfter(element, node, reference) {\n    this.insertBefore(element, node, reference.nextSibling);\n  }\n}\nlet helper = DOMChangesImpl;\nhelper = applyTextNodeMergingFix(doc, helper);\nhelper = applySVGInnerHTMLFix(doc, helper, NS_SVG);\nconst DOMChanges = helper;\n\nlet GUID = 0;\nclass Ref {\n  id = GUID++;\n  value;\n  constructor(value) {\n    this.value = value;\n  }\n  get() {\n    return this.value;\n  }\n  release() {\n    if (DEBUG && this.value === null) {\n      throw new Error('BUG: double release?');\n    }\n    this.value = null;\n  }\n  toString() {\n    let label = `Ref ${this.id}`;\n    if (this.value === null) {\n      return `${label} (released)`;\n    } else {\n      try {\n        return `${label}: ${this.value}`;\n      } catch {\n        return label;\n      }\n    }\n  }\n}\nclass DebugRenderTreeImpl {\n  stack = new Stack();\n  refs = new WeakMap();\n  roots = new Set();\n  nodes = new WeakMap();\n  begin() {\n    this.reset();\n  }\n  create(state, node) {\n    let internalNode = assign({}, node, {\n      bounds: null,\n      refs: new Set()\n    });\n    this.nodes.set(state, internalNode);\n    this.appendChild(internalNode, state);\n    this.enter(state);\n  }\n  update(state) {\n    this.enter(state);\n  }\n  didRender(state, bounds) {\n    if (DEBUG && this.stack.current !== state) {\n      throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);\n    }\n    this.nodeFor(state).bounds = bounds;\n    this.exit();\n  }\n  willDestroy(state) {\n    expect(this.refs.get(state), 'BUG: missing ref').release();\n  }\n  commit() {\n    this.reset();\n  }\n  capture() {\n    return this.captureRefs(this.roots);\n  }\n  reset() {\n    if (this.stack.size !== 0) {\n      // We probably encountered an error during the rendering loop. This will\n      // likely trigger undefined behavior and memory leaks as the error left\n      // things in an inconsistent state. It is recommended that the user\n      // refresh the page.\n\n      // TODO: We could warn here? But this happens all the time in our tests?\n\n      // Clean up the root reference to prevent errors from happening if we\n      // attempt to capture the render tree (Ember Inspector may do this)\n      let root = expect(this.stack.toArray()[0], 'expected root state when resetting render tree');\n      let ref = this.refs.get(root);\n      if (ref !== undefined) {\n        this.roots.delete(ref);\n      }\n      while (!this.stack.isEmpty()) {\n        this.stack.pop();\n      }\n    }\n  }\n  enter(state) {\n    this.stack.push(state);\n  }\n  exit() {\n    if (DEBUG && this.stack.size === 0) {\n      throw new Error('BUG: unbalanced pop');\n    }\n    this.stack.pop();\n  }\n  nodeFor(state) {\n    return expect(this.nodes.get(state), 'BUG: missing node');\n  }\n  appendChild(node, state) {\n    if (DEBUG && this.refs.has(state)) {\n      throw new Error('BUG: child already appended');\n    }\n    let parent = this.stack.current;\n    let ref = new Ref(state);\n    this.refs.set(state, ref);\n    if (parent) {\n      let parentNode = this.nodeFor(parent);\n      parentNode.refs.add(ref);\n      node.parent = parentNode;\n    } else {\n      this.roots.add(ref);\n    }\n  }\n  captureRefs(refs) {\n    let captured = [];\n    refs.forEach(ref => {\n      let state = ref.get();\n      if (state) {\n        captured.push(this.captureNode(`render-node:${ref.id}`, state));\n      } else {\n        refs.delete(ref);\n      }\n    });\n    return captured;\n  }\n  captureNode(id, state) {\n    let node = this.nodeFor(state);\n    let {\n      type,\n      name,\n      args,\n      instance,\n      refs\n    } = node;\n    let template = this.captureTemplate(node);\n    let bounds = this.captureBounds(node);\n    let children = this.captureRefs(refs);\n    return {\n      id,\n      type,\n      name,\n      args: reifyArgs(args),\n      instance,\n      template,\n      bounds,\n      children\n    };\n  }\n  captureTemplate({\n    template\n  }) {\n    return template || null;\n  }\n  captureBounds(node) {\n    let bounds = expect(node.bounds, 'BUG: missing bounds');\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n}\n\nconst TRANSACTION = Symbol('TRANSACTION');\nclass TransactionImpl {\n  scheduledInstallModifiers = [];\n  scheduledUpdateModifiers = [];\n  createdComponents = [];\n  updatedComponents = [];\n  didCreate(component) {\n    this.createdComponents.push(component);\n  }\n  didUpdate(component) {\n    this.updatedComponents.push(component);\n  }\n  scheduleInstallModifier(modifier) {\n    this.scheduledInstallModifiers.push(modifier);\n  }\n  scheduleUpdateModifier(modifier) {\n    this.scheduledUpdateModifiers.push(modifier);\n  }\n  commit() {\n    let {\n      createdComponents,\n      updatedComponents\n    } = this;\n    for (const {\n      manager,\n      state\n    } of createdComponents) {\n      manager.didCreate(state);\n    }\n    for (const {\n      manager,\n      state\n    } of updatedComponents) {\n      manager.didUpdate(state);\n    }\n    let {\n      scheduledInstallModifiers,\n      scheduledUpdateModifiers\n    } = this;\n    for (const {\n      manager,\n      state,\n      definition\n    } of scheduledInstallModifiers) {\n      let modifierTag = manager.getTag(state);\n      if (modifierTag !== null) {\n        let tag = track(() => manager.install(state), DEBUG && `- While rendering:\\n  (instance of a \\`${definition.resolvedName || manager.getDebugName(definition.state)}\\` modifier)`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.install(state);\n      }\n    }\n    for (const {\n      manager,\n      state,\n      definition\n    } of scheduledUpdateModifiers) {\n      let modifierTag = manager.getTag(state);\n      if (modifierTag !== null) {\n        let tag = track(() => manager.update(state), DEBUG && `- While rendering:\\n  (instance of a \\`${definition.resolvedName || manager.getDebugName(definition.state)}\\` modifier)`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.update(state);\n      }\n    }\n  }\n}\nclass EnvironmentImpl {\n  [TRANSACTION] = null;\n  updateOperations;\n\n  // Delegate methods and values\n  isInteractive;\n  debugRenderTree;\n  constructor(options, delegate) {\n    this.delegate = delegate;\n    this.isInteractive = delegate.isInteractive;\n    this.debugRenderTree = this.delegate.enableDebugTooling ? new DebugRenderTreeImpl() : undefined;\n    if (options.appendOperations) {\n      this.appendOperations = options.appendOperations;\n      this.updateOperations = options.updateOperations;\n    } else if (options.document) {\n      this.appendOperations = new DOMTreeConstruction(options.document);\n      this.updateOperations = new DOMChangesImpl(options.document);\n    } else if (DEBUG) {\n      throw new Error('you must pass document or appendOperations to a new runtime');\n    }\n  }\n  getAppendOperations() {\n    return this.appendOperations;\n  }\n  getDOM() {\n    return expect(this.updateOperations, 'Attempted to get DOM updateOperations, but they were not provided by the environment. You may be attempting to rerender in an environment which does not support rerendering, such as SSR.');\n  }\n  begin() {\n    assert(!this[TRANSACTION], 'A glimmer transaction was begun, but one already exists. You may have a nested transaction, possibly caused by an earlier runtime exception while rendering. Please check your console for the stack trace of any prior exceptions.');\n    this.debugRenderTree?.begin();\n    this[TRANSACTION] = new TransactionImpl();\n  }\n  get transaction() {\n    return expect(this[TRANSACTION], 'must be in a transaction');\n  }\n  didCreate(component) {\n    this.transaction.didCreate(component);\n  }\n  didUpdate(component) {\n    this.transaction.didUpdate(component);\n  }\n  scheduleInstallModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleInstallModifier(modifier);\n    }\n  }\n  scheduleUpdateModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleUpdateModifier(modifier);\n    }\n  }\n  commit() {\n    let transaction = this.transaction;\n    this[TRANSACTION] = null;\n    transaction.commit();\n    this.debugRenderTree?.commit();\n    this.delegate.onTransactionCommit();\n  }\n}\nfunction runtimeContext(options, delegate, artifacts, resolver) {\n  return {\n    env: new EnvironmentImpl(options, delegate),\n    program: new RuntimeProgramImpl(artifacts.constants, artifacts.heap),\n    resolver: resolver\n  };\n}\nfunction inTransaction(env, block) {\n  if (!env[TRANSACTION]) {\n    env.begin();\n    try {\n      block();\n    } finally {\n      env.commit();\n    }\n  } else {\n    block();\n  }\n}\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\n/**\n   Use the `{{array}}` helper to create an array to pass as an option to your\n   components.\n\n   ```handlebars\n   <MyComponent @people={{array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson}}\n   />\n   ```\n    or\n   ```handlebars\n   {{my-component people=(array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson)\n   }}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   ['Tom Dale', 'Yehuda Katz', this.get('myOtherPerson')]\n   ```\n\n   Where the 3rd item in the array is bound to updates of the `myOtherPerson` property.\n\n   @method array\n   @param {Array} options\n   @return {Array} Array\n   @public\n */\n\nconst array = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional), null, 'array');\n});\n\nconst isEmpty$1 = value => {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n};\nconst normalizeTextValue = value => {\n  if (isEmpty$1(value)) {\n    return '';\n  }\n  return String(value);\n};\n\n/**\n  Concatenates the given arguments into a string.\n\n  Example:\n\n  ```handlebars\n  {{some-component name=(concat firstName \" \" lastName)}}\n\n  {{! would pass name=\"<first name value> <last name value>\" to the component}}\n  ```\n\n  or for angle bracket invocation, you actually don't need concat at all.\n\n  ```handlebars\n  <SomeComponent @name=\"{{firstName}} {{lastName}}\" />\n  ```\n\n  @public\n  @method concat\n*/\nconst concat = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional).map(normalizeTextValue).join(''), null, 'concat');\n});\n\nconst context = buildUntouchableThis('`fn` helper');\n\n/**\n  The `fn` helper allows you to ensure a function that you are passing off\n  to another component, helper, or modifier has access to arguments that are\n  available in the template.\n\n  For example, if you have an `each` helper looping over a number of items, you\n  may need to pass a function that expects to receive the item as an argument\n  to a component invoked within the loop. Here's how you could use the `fn`\n  helper to pass both the function and its arguments together:\n\n    ```app/templates/components/items-listing.hbs\n  {{#each @items as |item|}}\n    <DisplayItem @item=item @select={{fn this.handleSelected item}} />\n  {{/each}}\n  ```\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class ItemsList extends Component {\n    handleSelected = (item) => {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this case the `display-item` component will receive a normal function\n  that it can invoke. When it invokes the function, the `handleSelected`\n  function will receive the `item` and any arguments passed, thanks to the\n  `fn` helper.\n\n  Let's take look at what that means in a couple circumstances:\n\n  - When invoked as `this.args.select()` the `handleSelected` function will\n    receive the `item` from the loop as its first and only argument.\n  - When invoked as `this.args.select('foo')` the `handleSelected` function\n    will receive the `item` from the loop as its first argument and the\n    string `'foo'` as its second argument.\n\n  In the example above, we used an arrow function to ensure that\n  `handleSelected` is properly bound to the `items-list`, but let's explore what\n  happens if we left out the arrow function:\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n\n  export default class ItemsList extends Component {\n    handleSelected(item) {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when `handleSelected` is invoked inside the `display-item`\n  component, it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via an arrow function or other means) before passing into `fn`!\n\n  See also [partial application](https://en.wikipedia.org/wiki/Partial_application).\n\n  @method fn\n  @public\n*/\nconst fn = internalHelper(({\n  positional\n}) => {\n  let callbackRef = check(positional[0], assertCallbackIsFn);\n  return createComputeRef(() => {\n    return (...invocationArgs) => {\n      let [fn, ...args] = reifyPositional(positional);\n      if (DEBUG) assertCallbackIsFn(callbackRef);\n      if (isInvokableRef(callbackRef)) {\n        let value = args.length > 0 ? args[0] : invocationArgs[0];\n        return updateRef(callbackRef, value);\n      } else {\n        return fn.call(context, ...args, ...invocationArgs);\n      }\n    };\n  }, null, 'fn');\n});\nfunction assertCallbackIsFn(callbackRef) {\n  if (!(callbackRef && (isInvokableRef(callbackRef) || typeof valueForRef(callbackRef) === 'function'))) {\n    throw new Error(`You must pass a function as the \\`fn\\` helper's first argument, you passed ${callbackRef ? valueForRef(callbackRef) : callbackRef}. While rendering:\\n\\n${callbackRef?.debugLabel}`);\n  }\n}\n\n/**\n  Dynamically look up a property on an object. The second argument to `{{get}}`\n  should have a string value, although it can be bound.\n\n  For example, these two usages are equivalent:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n  }\n  ```\n\n  ```handlebars\n  {{this.developer.name}}\n  {{get this.developer \"name\"}}\n  ```\n\n  If there were several facts about a person, the `{{get}}` helper can dynamically\n  pick one:\n\n  ```app/templates/application.hbs\n  <DeveloperDetail @factName=\"language\" />\n  ```\n\n  ```handlebars\n  {{get this.developer @factName}}\n  ```\n\n  For a more complex example, this template would allow the user to switch\n  between showing the user's height and weight with a click:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n\n    @tracked currentFact = 'name'\n\n    showFact = (fact) => {\n      this.currentFact = fact;\n    }\n  }\n  ```\n\n  ```app/components/developer-detail.js\n  {{get this.developer this.currentFact}}\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  The `{{get}}` helper can also respect mutable values itself. For example:\n\n  ```app/components/developer-detail.js\n  <Input @value={{mut (get this.person this.currentFact)}} />\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  Would allow the user to swap what fact is being displayed, and also edit\n  that fact via a two-way mutable binding.\n\n  @public\n  @method get\n */\nconst get = internalHelper(({\n  positional\n}) => {\n  let sourceRef = positional[0] ?? UNDEFINED_REFERENCE;\n  let pathRef = positional[1] ?? UNDEFINED_REFERENCE;\n  return createComputeRef(() => {\n    let source = valueForRef(sourceRef);\n    if (isDict(source)) {\n      return getPath(source, String(valueForRef(pathRef)));\n    }\n  }, value => {\n    let source = valueForRef(sourceRef);\n    if (isDict(source)) {\n      return setPath(source, String(valueForRef(pathRef)), value);\n    }\n  }, 'get');\n});\n\nlet wrapHashProxy;\nif (DEBUG) {\n  wrapHashProxy = hash => {\n    return new Proxy(hash, {\n      set(target, key, value) {\n        deprecate(`You set the '${String(key)}' property on a {{hash}} object. Setting properties on objects generated by {{hash}} is deprecated. Please update to use an object created with a tracked property or getter, or with a custom helper.`, false, {\n          id: 'setting-on-hash'\n        });\n        target[key] = value;\n        return true;\n      }\n    });\n  };\n}\n\n/**\n   Use the `{{hash}}` helper to create a hash to pass as an option to your\n   components. This is specially useful for contextual components where you can\n   just yield a hash:\n\n   ```handlebars\n   {{yield (hash\n      name='Sarah'\n      title=office\n   )}}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   { name: 'Sarah', title: this.get('office') }\n   ```\n\n   Where the `title` is bound to updates of the `office` property.\n\n   Note that the hash is an empty object with no prototype chain, therefore\n   common methods like `toString` are not available in the resulting hash.\n   If you need to use such a method, you can use the `call` or `apply`\n   approach:\n\n   ```js\n   function toString(obj) {\n     return Object.prototype.toString.apply(obj);\n   }\n   ```\n\n   @method hash\n   @param {Object} options\n   @return {Object} Hash\n   @public\n */\nconst hash = internalHelper(({\n  named\n}) => {\n  let ref = createComputeRef(() => {\n    let hash = reifyNamed(named);\n    if (DEBUG) {\n      hash = wrapHashProxy(hash);\n    }\n    return hash;\n  }, null, 'hash');\n\n  // Setup the children so that templates can bypass getting the value of\n  // the reference and treat children lazily\n  let children = new Map();\n  for (let name in named) {\n    children.set(name, named[name]);\n  }\n  ref.children = children;\n  return ref;\n});\n\nlet ARGS_CACHES = DEBUG ? new WeakMap() : undefined;\nfunction getArgs(proxy) {\n  return getValue(DEBUG ? ARGS_CACHES.get(proxy) : proxy.argsCache);\n}\nclass SimpleArgsProxy {\n  argsCache;\n  constructor(context, computeArgs = () => EMPTY_ARGS) {\n    let argsCache = createCache(() => computeArgs(context));\n    if (DEBUG) {\n      ARGS_CACHES.set(this, argsCache);\n      Object.freeze(this);\n    } else {\n      this.argsCache = argsCache;\n    }\n  }\n  get named() {\n    return getArgs(this).named || EMPTY_NAMED;\n  }\n  get positional() {\n    return getArgs(this).positional || EMPTY_POSITIONAL;\n  }\n}\n\n////////////\n\nfunction invokeHelper(context, definition, computeArgs) {\n  if (DEBUG && (typeof context !== 'object' || context === null)) {\n    throw new Error(`Expected a context object to be passed as the first parameter to invokeHelper, got ${context}`);\n  }\n  const owner = getOwner(context);\n  const internalManager = getInternalHelperManager(definition);\n\n  // TODO: figure out why assert isn't using the TS assert thing\n  if (DEBUG && !internalManager) {\n    throw new Error(`Expected a helper definition to be passed as the second parameter to invokeHelper, but no helper manager was found. The definition value that was passed was \\`${debugToString(definition)}\\`. Did you use setHelperManager to associate a helper manager with this value?`);\n  }\n  if (DEBUG && typeof internalManager === 'function') {\n    throw new Error('Found a helper manager, but it was an internal built-in helper manager. `invokeHelper` does not support internal helpers yet.');\n  }\n  const manager = internalManager.getDelegateFor(owner);\n  let args = new SimpleArgsProxy(context, computeArgs);\n  let bucket = manager.createHelper(definition, args);\n  let cache;\n  if (hasValue(manager)) {\n    cache = createCache(() => {\n      if (DEBUG && (isDestroying(cache) || isDestroyed(cache))) {\n        throw new Error(`You attempted to get the value of a helper after the helper was destroyed, which is not allowed`);\n      }\n      return manager.getValue(bucket);\n    });\n    associateDestroyableChild(context, cache);\n  } else {\n    throw new Error('TODO: unreachable, to be implemented with hasScheduledEffect');\n  }\n  if (hasDestroyable(manager)) {\n    let destroyable = manager.getDestroyable(bucket);\n    associateDestroyableChild(cache, destroyable);\n  }\n  return cache;\n}\n\nconst untouchableContext = buildUntouchableThis('`on` modifier');\nclass OnModifierState {\n  tag = createUpdatableTag();\n  element;\n  args;\n  once;\n  passive;\n  capture;\n  options;\n  shouldUpdate = true;\n  constructor(element, args) {\n    this.element = element;\n    this.args = args;\n  }\n  updateFromArgs() {\n    let {\n      args\n    } = this;\n    let {\n      once,\n      passive,\n      capture\n    } = reifyNamed(args.named);\n    if (once !== this.once) {\n      this.once = once;\n      this.shouldUpdate = true;\n    }\n    if (passive !== this.passive) {\n      this.passive = passive;\n      this.shouldUpdate = true;\n    }\n    if (capture !== this.capture) {\n      this.capture = capture;\n      this.shouldUpdate = true;\n    }\n\n    // we want to handle both `true` and `false` because both have a meaning:\n    // https://bugs.chromium.org/p/chromium/issues/detail?id=770208\n    if (once !== undefined || passive !== undefined || capture !== undefined) {\n      this.options = {\n        once,\n        passive,\n        capture\n      };\n    } else {\n      this.options = undefined;\n    }\n    let first = expect(args.positional[0], 'You must pass a valid DOM event name as the first argument to the `on` modifier');\n    let eventName = check(valueForRef(first), CheckString, () => 'You must pass a valid DOM event name as the first argument to the `on` modifier');\n    if (eventName !== this.eventName) {\n      this.eventName = eventName;\n      this.shouldUpdate = true;\n    }\n    const userProvidedCallbackReference = expect(args.positional[1], 'You must pass a function as the second argument to the `on` modifier');\n    const userProvidedCallback = check(valueForRef(userProvidedCallbackReference), CheckFunction, actual => {\n      return `You must pass a function as the second argument to the \\`on\\` modifier; you passed ${actual === null ? 'null' : typeof actual}. While rendering:\\n\\n${userProvidedCallbackReference.debugLabel ?? `{unlabeled value}`}`;\n    });\n    if (userProvidedCallback !== this.userProvidedCallback) {\n      this.userProvidedCallback = userProvidedCallback;\n      this.shouldUpdate = true;\n    }\n    if (DEBUG && args.positional.length !== 2) {\n      throw new Error(`You can only pass two positional arguments (event name and callback) to the \\`on\\` modifier, but you provided ${args.positional.length}. Consider using the \\`fn\\` helper to provide additional arguments to the \\`on\\` callback.`);\n    }\n    let needsCustomCallback = DEBUG && passive; /* needs passive enforcement */\n\n    if (this.shouldUpdate) {\n      if (needsCustomCallback) {\n        this.callback = function (event) {\n          if (DEBUG && passive) {\n            event.preventDefault = () => {\n              throw new Error(`You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()': \\n\\n${userProvidedCallback.name ?? `{anonymous function}`}`);\n            };\n          }\n          return userProvidedCallback.call(untouchableContext, event);\n        };\n      } else if (DEBUG) {\n        // prevent the callback from being bound to the element\n        this.callback = userProvidedCallback.bind(untouchableContext);\n      } else {\n        this.callback = userProvidedCallback;\n      }\n    }\n  }\n}\nlet adds = 0;\nlet removes = 0;\nfunction removeEventListener(element, eventName, callback, options) {\n  removes++;\n  element.removeEventListener(eventName, callback, options);\n}\nfunction addEventListener(element, eventName, callback, options) {\n  adds++;\n  element.addEventListener(eventName, callback, options);\n}\n\n/**\n  The `{{on}}` modifier lets you easily add event listeners (it uses\n  [EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)\n  internally).\n\n  For example, if you'd like to run a function on your component when a `<button>`\n  in the components template is clicked you might do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' this.saveLike}}>Like this post!</button>\n  ```\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class LikePostComponent extends Component {\n    saveLike = () => {\n      // someone likes your post!\n      // better send a request off to your server...\n    }\n  }\n  ```\n\n  ### Arguments\n\n  `{{on}}` accepts two positional arguments, and a few named arguments.\n\n  The positional arguments are:\n\n  - `event` -- the name to use when calling `addEventListener`\n  - `callback` -- the function to be passed to `addEventListener`\n\n  The named arguments are:\n\n  - capture -- a `true` value indicates that events of this type will be dispatched\n    to the registered listener before being dispatched to any EventTarget beneath it\n    in the DOM tree.\n  - once -- indicates that the listener should be invoked at most once after being\n    added. If true, the listener would be automatically removed when invoked.\n  - passive -- if `true`, indicates that the function specified by listener will never\n    call preventDefault(). If a passive listener does call preventDefault(), the user\n    agent will do nothing other than generate a console warning. See\n    [Improving scrolling performance with passive listeners](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners)\n    to learn more.\n\n  The callback function passed to `{{on}}` will receive any arguments that are passed\n  to the event handler. Most commonly this would be the `event` itself.\n\n  If you would like to pass additional arguments to the function you should use\n  the `{{fn}}` helper.\n\n  For example, in our example case above if you'd like to pass in the post that\n  was being liked when the button is clicked you could do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>\n  ```\n\n  In this case, the `saveLike` function will receive two arguments: the click event\n  and the value of `@post`.\n\n  ### Function Context\n\n  In the example above, we used an arrow function to ensure that `likePost` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out the arrow function:\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n\n  export default class LikePostComponent extends Component {\n    saveLike() {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when the button is clicked `saveLike` will be invoked,\n  it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via an arrow function or other means) before passing into `on`!\n\n  @method on\n  @public\n*/\nclass OnModifierManager {\n  getDebugName() {\n    return 'on';\n  }\n  get counters() {\n    return {\n      adds,\n      removes\n    };\n  }\n  create(_owner, element, _state, args) {\n    return new OnModifierState(element, args);\n  }\n  getTag(state) {\n    if (state === null) {\n      return null;\n    }\n    return state.tag;\n  }\n  install(state) {\n    if (state === null) {\n      return;\n    }\n    state.updateFromArgs();\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    addEventListener(element, eventName, callback, options);\n    registerDestructor(state, () => removeEventListener(element, eventName, callback, options));\n    state.shouldUpdate = false;\n  }\n  update(state) {\n    if (state === null) {\n      return;\n    }\n\n    // stash prior state for el.removeEventListener\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    state.updateFromArgs();\n    if (!state.shouldUpdate) {\n      return;\n    }\n\n    // use prior state values for removal\n    removeEventListener(element, eventName, callback, options);\n\n    // read updated values from the state object\n    addEventListener(state.element, state.eventName, state.callback, state.options);\n    state.shouldUpdate = false;\n  }\n  getDestroyable(state) {\n    return state;\n  }\n}\nconst on = setInternalModifierManager(new OnModifierManager(), {});\n\nfunction initializeRegistersWithSP(sp) {\n  return [0, -1, sp, 0];\n}\nclass LowLevelVM {\n  currentOpSize = 0;\n  constructor(stack, heap, program, externs, registers) {\n    this.stack = stack;\n    this.heap = heap;\n    this.program = program;\n    this.externs = externs;\n    this.registers = registers;\n  }\n  fetchRegister(register) {\n    return this.registers[register];\n  }\n  loadRegister(register, value) {\n    this.registers[register] = value;\n  }\n  setPc(pc) {\n    assert(typeof pc === 'number' && !isNaN(pc), 'pc is set to a number');\n    this.registers[$pc] = pc;\n  }\n\n  // Start a new frame and save $ra and $fp on the stack\n  pushFrame() {\n    this.stack.push(this.registers[$ra]);\n    this.stack.push(this.registers[$fp]);\n    this.registers[$fp] = this.registers[$sp] - 1;\n  }\n\n  // Restore $ra, $sp and $fp\n  popFrame() {\n    this.registers[$sp] = this.registers[$fp] - 1;\n    this.registers[$ra] = this.stack.get(0);\n    this.registers[$fp] = this.stack.get(1);\n  }\n  pushSmallFrame() {\n    this.stack.push(this.registers[$ra]);\n  }\n  popSmallFrame() {\n    this.registers[$ra] = this.stack.pop();\n  }\n\n  // Jump to an address in `program`\n  goto(offset) {\n    this.setPc(this.target(offset));\n  }\n  target(offset) {\n    return this.registers[$pc] + offset - this.currentOpSize;\n  }\n\n  // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n  call(handle) {\n    assert(handle < 0xffffffff, `Jumping to placeholder address`);\n    this.registers[$ra] = this.registers[$pc];\n    this.setPc(this.heap.getaddr(handle));\n  }\n\n  // Put a specific `program` address in $ra\n  returnTo(offset) {\n    this.registers[$ra] = this.target(offset);\n  }\n\n  // Return to the `program` address stored in $ra\n  return() {\n    this.setPc(this.registers[$ra]);\n  }\n  nextStatement() {\n    let {\n      registers,\n      program\n    } = this;\n    let pc = registers[$pc];\n    assert(typeof pc === 'number', 'pc is a number');\n    if (pc === -1) {\n      return null;\n    }\n\n    // We have to save off the current operations size so that\n    // when we do a jump we can calculate the correct offset\n    // to where we are going. We can't simply ask for the size\n    // in a jump because we have have already incremented the\n    // program counter to the next instruction prior to executing.\n    let opcode = program.opcode(pc);\n    let operationSize = this.currentOpSize = opcode.size;\n    this.registers[$pc] += operationSize;\n    return opcode;\n  }\n  evaluateOuter(opcode, vm) {\n    {\n      this.evaluateInner(opcode, vm);\n    }\n  }\n  evaluateInner(opcode, vm) {\n    if (opcode.isMachine) {\n      this.evaluateMachine(opcode);\n    } else {\n      this.evaluateSyscall(opcode, vm);\n    }\n  }\n  evaluateMachine(opcode) {\n    switch (opcode.type) {\n      case MachineOp.PushFrame:\n        return this.pushFrame();\n      case MachineOp.PopFrame:\n        return this.popFrame();\n      case MachineOp.InvokeStatic:\n        return this.call(opcode.op1);\n      case MachineOp.InvokeVirtual:\n        return this.call(this.stack.pop());\n      case MachineOp.Jump:\n        return this.goto(opcode.op1);\n      case MachineOp.Return:\n        return this.return();\n      case MachineOp.ReturnTo:\n        return this.returnTo(opcode.op1);\n    }\n  }\n  evaluateSyscall(opcode, vm) {\n    APPEND_OPCODES.evaluate(vm, opcode, opcode.type);\n  }\n}\n\nclass UpdatingVM {\n  env;\n  dom;\n  alwaysRevalidate;\n  frameStack = new Stack();\n  constructor(env, {\n    alwaysRevalidate = false\n  }) {\n    this.env = env;\n    this.dom = env.getDOM();\n    this.alwaysRevalidate = alwaysRevalidate;\n  }\n  execute(opcodes, handler) {\n    if (DEBUG) {\n      let hasErrored = true;\n      try {\n        debug.runInTrackingTransaction(() => this._execute(opcodes, handler), '- While rendering:');\n\n        // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n        hasErrored = false;\n      } finally {\n        if (hasErrored) {\n          // eslint-disable-next-line no-console\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      this._execute(opcodes, handler);\n    }\n  }\n  _execute(opcodes, handler) {\n    let {\n      frameStack\n    } = this;\n    this.try(opcodes, handler);\n    while (!frameStack.isEmpty()) {\n      let opcode = this.frame.nextStatement();\n      if (opcode === undefined) {\n        frameStack.pop();\n        continue;\n      }\n      opcode.evaluate(this);\n    }\n  }\n  get frame() {\n    return expect(this.frameStack.current, 'bug: expected a frame');\n  }\n  goto(index) {\n    this.frame.goto(index);\n  }\n  try(ops, handler) {\n    this.frameStack.push(new UpdatingVMFrame(ops, handler));\n  }\n  throw() {\n    this.frame.handleException();\n    this.frameStack.pop();\n  }\n}\nclass ResumableVMStateImpl {\n  constructor(state, resumeCallback) {\n    this.state = state;\n    this.resumeCallback = resumeCallback;\n  }\n  resume(runtime, builder) {\n    return this.resumeCallback(runtime, this.state, builder);\n  }\n}\nclass BlockOpcode {\n  children;\n  bounds;\n  constructor(state, runtime, bounds, children) {\n    this.state = state;\n    this.runtime = runtime;\n    this.children = children;\n    this.bounds = bounds;\n  }\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n  evaluate(vm) {\n    vm.try(this.children, null);\n  }\n}\nclass TryOpcode extends BlockOpcode {\n  type = 'try';\n  // Hides property on base class\n\n  evaluate(vm) {\n    vm.try(this.children, this);\n  }\n  handleException() {\n    let {\n      state,\n      bounds,\n      runtime\n    } = this;\n    destroyChildren(this);\n    let elementStack = NewElementBuilder.resume(runtime.env, bounds);\n    let vm = state.resume(runtime, elementStack);\n    let updating = [];\n    let children = this.children = [];\n    let result = vm.execute(vm => {\n      vm.pushUpdating(updating);\n      vm.updateWith(this);\n      vm.pushUpdating(children);\n    });\n    associateDestroyableChild(this, result.drop);\n  }\n}\nclass ListItemOpcode extends TryOpcode {\n  retained = false;\n  index = -1;\n  constructor(state, runtime, bounds, key, memo, value) {\n    super(state, runtime, bounds, []);\n    this.key = key;\n    this.memo = memo;\n    this.value = value;\n  }\n  updateReferences(item) {\n    this.retained = true;\n    updateRef(this.value, item.value);\n    updateRef(this.memo, item.memo);\n  }\n  shouldRemove() {\n    return !this.retained;\n  }\n  reset() {\n    this.retained = false;\n  }\n}\nclass ListBlockOpcode extends BlockOpcode {\n  type = 'list-block';\n  opcodeMap = new Map();\n  marker = null;\n  lastIterator;\n  constructor(state, runtime, bounds, children, iterableRef) {\n    super(state, runtime, bounds, children);\n    this.iterableRef = iterableRef;\n    this.lastIterator = valueForRef(iterableRef);\n  }\n  initializeChild(opcode) {\n    opcode.index = this.children.length - 1;\n    this.opcodeMap.set(opcode.key, opcode);\n  }\n  evaluate(vm) {\n    let iterator = valueForRef(this.iterableRef);\n    if (this.lastIterator !== iterator) {\n      let {\n        bounds\n      } = this;\n      let {\n        dom\n      } = vm;\n      let marker = this.marker = dom.createComment('');\n      dom.insertAfter(bounds.parentElement(), marker, expect(bounds.lastNode(), \"can't insert after an empty bounds\"));\n      this.sync(iterator);\n      this.parentElement().removeChild(marker);\n      this.marker = null;\n      this.lastIterator = iterator;\n    }\n\n    // Run now-updated updating opcodes\n    super.evaluate(vm);\n  }\n  sync(iterator) {\n    let {\n      opcodeMap: itemMap,\n      children\n    } = this;\n    let currentOpcodeIndex = 0;\n    let seenIndex = 0;\n    this.children = this.bounds.boundList = [];\n\n    // eslint-disable-next-line no-constant-condition\n    while (true) {\n      let item = iterator.next();\n      if (item === null) break;\n      let opcode = children[currentOpcodeIndex];\n      let {\n        key\n      } = item;\n\n      // Items that have already been found and moved will already be retained,\n      // we can continue until we find the next unretained item\n      while (opcode !== undefined && opcode.retained === true) {\n        opcode = children[++currentOpcodeIndex];\n      }\n      if (opcode !== undefined && opcode.key === key) {\n        this.retainItem(opcode, item);\n        currentOpcodeIndex++;\n      } else if (itemMap.has(key)) {\n        let itemOpcode = itemMap.get(key);\n\n        // The item opcode was seen already, so we should move it.\n        if (itemOpcode.index < seenIndex) {\n          this.moveItem(itemOpcode, item, opcode);\n        } else {\n          // Update the seen index, we are going to be moving this item around\n          // so any other items that come before it will likely need to move as\n          // well.\n          seenIndex = itemOpcode.index;\n          let seenUnretained = false;\n\n          // iterate through all of the opcodes between the current position and\n          // the position of the item's opcode, and determine if they are all\n          // retained.\n          for (let i = currentOpcodeIndex + 1; i < seenIndex; i++) {\n            if (unwrap(children[i]).retained === false) {\n              seenUnretained = true;\n              break;\n            }\n          }\n\n          // If we have seen only retained opcodes between this and the matching\n          // opcode, it means that all the opcodes in between have been moved\n          // already, and we can safely retain this item's opcode.\n          if (seenUnretained === false) {\n            this.retainItem(itemOpcode, item);\n            currentOpcodeIndex = seenIndex + 1;\n          } else {\n            this.moveItem(itemOpcode, item, opcode);\n            currentOpcodeIndex++;\n          }\n        }\n      } else {\n        this.insertItem(item, opcode);\n      }\n    }\n    for (const opcode of children) {\n      if (opcode.retained === false) {\n        this.deleteItem(opcode);\n      } else {\n        opcode.reset();\n      }\n    }\n  }\n  retainItem(opcode, item) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n  insertItem(item, before) {\n    let {\n      opcodeMap,\n      bounds,\n      state,\n      runtime,\n      children\n    } = this;\n    let {\n      key\n    } = item;\n    let nextSibling = before === undefined ? this.marker : before.firstNode();\n    let elementStack = NewElementBuilder.forInitialRender(runtime.env, {\n      element: bounds.parentElement(),\n      nextSibling\n    });\n    let vm = state.resume(runtime, elementStack);\n    vm.execute(vm => {\n      vm.pushUpdating();\n      let opcode = vm.enterItem(item);\n      opcode.index = children.length;\n      children.push(opcode);\n      opcodeMap.set(key, opcode);\n      associateDestroyableChild(this, opcode);\n    });\n  }\n  moveItem(opcode, item, before) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    let currentSibling, nextSibling;\n    if (before === undefined) {\n      move(opcode, this.marker);\n    } else {\n      currentSibling = opcode.lastNode().nextSibling;\n      nextSibling = before.firstNode();\n\n      // Items are moved throughout the algorithm, so there are cases where the\n      // the items already happen to be siblings (e.g. an item in between was\n      // moved before this move happened). Check to see if they are siblings\n      // first before doing the move.\n      if (currentSibling !== nextSibling) {\n        move(opcode, nextSibling);\n      }\n    }\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n  deleteItem(opcode) {\n    destroy(opcode);\n    clear(opcode);\n    this.opcodeMap.delete(opcode.key);\n  }\n}\nclass UpdatingVMFrame {\n  current = 0;\n  constructor(ops, exceptionHandler) {\n    this.ops = ops;\n    this.exceptionHandler = exceptionHandler;\n  }\n  goto(index) {\n    this.current = index;\n  }\n  nextStatement() {\n    return this.ops[this.current++];\n  }\n  handleException() {\n    if (this.exceptionHandler) {\n      this.exceptionHandler.handleException();\n    }\n  }\n}\n\nclass RenderResultImpl {\n  constructor(env, updating, bounds, drop) {\n    this.env = env;\n    this.updating = updating;\n    this.bounds = bounds;\n    this.drop = drop;\n    associateDestroyableChild(this, drop);\n    registerDestructor(this, () => clear(this.bounds));\n  }\n  rerender({\n    alwaysRevalidate = false\n  } = {\n    alwaysRevalidate: false\n  }) {\n    let {\n      env,\n      updating\n    } = this;\n    let vm = new UpdatingVM(env, {\n      alwaysRevalidate\n    });\n    vm.execute(updating, this);\n  }\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n  handleException() {\n    throw 'this should never happen';\n  }\n}\n\nclass EvaluationStackImpl {\n  static restore(snapshot) {\n    return new this(snapshot.slice(), initializeRegistersWithSP(snapshot.length - 1));\n  }\n  [REGISTERS];\n\n  // fp -> sp\n  constructor(stack = [], registers) {\n    this.stack = stack;\n    this[REGISTERS] = registers;\n  }\n  push(value) {\n    this.stack[++this[REGISTERS][$sp]] = value;\n  }\n  dup(position = this[REGISTERS][$sp]) {\n    this.stack[++this[REGISTERS][$sp]] = this.stack[position];\n  }\n  copy(from, to) {\n    this.stack[to] = this.stack[from];\n  }\n  pop(n = 1) {\n    let top = this.stack[this[REGISTERS][$sp]];\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n  peek(offset = 0) {\n    return this.stack[this[REGISTERS][$sp] - offset];\n  }\n  get(offset, base = this[REGISTERS][$fp]) {\n    return this.stack[base + offset];\n  }\n  set(value, offset, base = this[REGISTERS][$fp]) {\n    this.stack[base + offset] = value;\n  }\n  slice(start, end) {\n    return this.stack.slice(start, end);\n  }\n  capture(items) {\n    let end = this[REGISTERS][$sp] + 1;\n    let start = end - items;\n    return this.stack.slice(start, end);\n  }\n  reset() {\n    this.stack.length = 0;\n  }\n  toArray() {\n    return this.stack.slice(this[REGISTERS][$fp], this[REGISTERS][$sp] + 1);\n  }\n}\n\n/**\n * This interface is used by internal opcodes, and is more stable than\n * the implementation of the Append VM itself.\n */\n\nclass Stacks {\n  scope = new Stack();\n  dynamicScope = new Stack();\n  updating = new Stack();\n  cache = new Stack();\n  list = new Stack();\n}\nclass VM {\n  [STACKS] = new Stacks();\n  [HEAP];\n  destructor;\n  [DESTROYABLE_STACK] = new Stack();\n  [CONSTANTS];\n  [ARGS$1];\n  [INNER_VM];\n  get stack() {\n    return this[INNER_VM].stack;\n  }\n\n  /* Registers */\n\n  get pc() {\n    return this[INNER_VM].fetchRegister($pc);\n  }\n  s0 = null;\n  s1 = null;\n  t0 = null;\n  t1 = null;\n  v0 = null;\n\n  // Fetch a value from a register onto the stack\n  fetch(register) {\n    let value = this.fetchValue(register);\n    this.stack.push(value);\n  }\n\n  // Load a value from the stack into a register\n  load(register) {\n    let value = this.stack.pop();\n    this.loadValue(register, value);\n  }\n\n  // Fetch a value from a register\n\n  fetchValue(register) {\n    if (isLowLevelRegister(register)) {\n      return this[INNER_VM].fetchRegister(register);\n    }\n    switch (register) {\n      case $s0:\n        return this.s0;\n      case $s1:\n        return this.s1;\n      case $t0:\n        return this.t0;\n      case $t1:\n        return this.t1;\n      case $v0:\n        return this.v0;\n    }\n  }\n\n  // Load a value into a register\n\n  loadValue(register, value) {\n    if (isLowLevelRegister(register)) {\n      this[INNER_VM].loadRegister(register, value);\n    }\n    switch (register) {\n      case $s0:\n        this.s0 = value;\n        break;\n      case $s1:\n        this.s1 = value;\n        break;\n      case $t0:\n        this.t0 = value;\n        break;\n      case $t1:\n        this.t1 = value;\n        break;\n      case $v0:\n        this.v0 = value;\n        break;\n    }\n  }\n\n  /**\n   * Migrated to Inner\n   */\n\n  // Start a new frame and save $ra and $fp on the stack\n  pushFrame() {\n    this[INNER_VM].pushFrame();\n  }\n\n  // Restore $ra, $sp and $fp\n  popFrame() {\n    this[INNER_VM].popFrame();\n  }\n\n  // Jump to an address in `program`\n  goto(offset) {\n    this[INNER_VM].goto(offset);\n  }\n\n  // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n  call(handle) {\n    this[INNER_VM].call(handle);\n  }\n\n  // Put a specific `program` address in $ra\n  returnTo(offset) {\n    this[INNER_VM].returnTo(offset);\n  }\n\n  // Return to the `program` address stored in $ra\n  return() {\n    this[INNER_VM].return();\n  }\n\n  /**\n   * End of migrated.\n   */\n\n  constructor(runtime, {\n    pc,\n    scope,\n    dynamicScope,\n    stack\n  }, elementStack, context) {\n    this.runtime = runtime;\n    this.elementStack = elementStack;\n    this.context = context;\n    if (DEBUG) {\n      assertGlobalContextWasSet();\n    }\n    this.resume = initVM(context);\n    let evalStack = EvaluationStackImpl.restore(stack);\n    assert(typeof pc === 'number', 'pc is a number');\n    evalStack[REGISTERS][$pc] = pc;\n    evalStack[REGISTERS][$sp] = stack.length - 1;\n    evalStack[REGISTERS][$fp] = -1;\n    this[HEAP] = this.program.heap;\n    this[CONSTANTS] = this.program.constants;\n    this.elementStack = elementStack;\n    this[STACKS].scope.push(scope);\n    this[STACKS].dynamicScope.push(dynamicScope);\n    this[ARGS$1] = new VMArgumentsImpl();\n    this[INNER_VM] = new LowLevelVM(evalStack, this[HEAP], runtime.program, {\n      debugBefore: opcode => {\n        return APPEND_OPCODES.debugBefore(this, opcode);\n      },\n      debugAfter: state => {\n        APPEND_OPCODES.debugAfter(this, state);\n      }\n    }, evalStack[REGISTERS]);\n    this.destructor = {};\n    this[DESTROYABLE_STACK].push(this.destructor);\n  }\n  static initial(runtime, context, {\n    handle,\n    self,\n    dynamicScope,\n    treeBuilder,\n    numSymbols,\n    owner\n  }) {\n    let scope = PartialScopeImpl.root(self, numSymbols, owner);\n    let state = vmState(runtime.program.heap.getaddr(handle), scope, dynamicScope);\n    let vm = initVM(context)(runtime, state, treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n  static empty(runtime, {\n    handle,\n    treeBuilder,\n    dynamicScope,\n    owner\n  }, context) {\n    let vm = initVM(context)(runtime, vmState(runtime.program.heap.getaddr(handle), PartialScopeImpl.root(UNDEFINED_REFERENCE, 0, owner), dynamicScope), treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n  resume;\n  compile(block) {\n    let handle = unwrapHandle(block.compile(this.context));\n    return handle;\n  }\n  get program() {\n    return this.runtime.program;\n  }\n  get env() {\n    return this.runtime.env;\n  }\n  captureState(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return {\n      pc,\n      scope: this.scope(),\n      dynamicScope: this.dynamicScope(),\n      stack: this.stack.capture(args)\n    };\n  }\n  capture(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return new ResumableVMStateImpl(this.captureState(args, pc), this.resume);\n  }\n  beginCacheGroup(name) {\n    let opcodes = this.updating();\n    let guard = new JumpIfNotModifiedOpcode();\n    opcodes.push(guard);\n    opcodes.push(new BeginTrackFrameOpcode(name));\n    this[STACKS].cache.push(guard);\n    beginTrackFrame(name);\n  }\n  commitCacheGroup() {\n    let opcodes = this.updating();\n    let guard = expect(this[STACKS].cache.pop(), 'VM BUG: Expected a cache group');\n    let tag = endTrackFrame();\n    opcodes.push(new EndTrackFrameOpcode(guard));\n    guard.finalize(tag, opcodes.length);\n  }\n  enter(args) {\n    let updating = [];\n    let state = this.capture(args);\n    let block = this.elements().pushUpdatableBlock();\n    let tryOpcode = new TryOpcode(state, this.runtime, block, updating);\n    this.didEnter(tryOpcode);\n  }\n  enterItem({\n    key,\n    value,\n    memo\n  }) {\n    let {\n      stack\n    } = this;\n    let valueRef = createIteratorItemRef(value);\n    let memoRef = createIteratorItemRef(memo);\n    stack.push(valueRef);\n    stack.push(memoRef);\n    let state = this.capture(2);\n    let block = this.elements().pushUpdatableBlock();\n    let opcode = new ListItemOpcode(state, this.runtime, block, key, memoRef, valueRef);\n    this.didEnter(opcode);\n    return opcode;\n  }\n  registerItem(opcode) {\n    this.listBlock().initializeChild(opcode);\n  }\n  enterList(iterableRef, offset) {\n    let updating = [];\n    let addr = this[INNER_VM].target(offset);\n    let state = this.capture(0, addr);\n    let list = this.elements().pushBlockList(updating);\n    let opcode = new ListBlockOpcode(state, this.runtime, list, updating, iterableRef);\n    this[STACKS].list.push(opcode);\n    this.didEnter(opcode);\n  }\n  didEnter(opcode) {\n    this.associateDestroyable(opcode);\n    this[DESTROYABLE_STACK].push(opcode);\n    this.updateWith(opcode);\n    this.pushUpdating(opcode.children);\n  }\n  exit() {\n    this[DESTROYABLE_STACK].pop();\n    this.elements().popBlock();\n    this.popUpdating();\n  }\n  exitList() {\n    this.exit();\n    this[STACKS].list.pop();\n  }\n  pushUpdating(list = []) {\n    this[STACKS].updating.push(list);\n  }\n  popUpdating() {\n    return expect(this[STACKS].updating.pop(), \"can't pop an empty stack\");\n  }\n  updateWith(opcode) {\n    this.updating().push(opcode);\n  }\n  listBlock() {\n    return expect(this[STACKS].list.current, 'expected a list block');\n  }\n  associateDestroyable(child) {\n    let parent = expect(this[DESTROYABLE_STACK].current, 'Expected destructor parent');\n    associateDestroyableChild(parent, child);\n  }\n  tryUpdating() {\n    return this[STACKS].updating.current;\n  }\n  updating() {\n    return expect(this[STACKS].updating.current, 'expected updating opcode on the updating opcode stack');\n  }\n  elements() {\n    return this.elementStack;\n  }\n  scope() {\n    return expect(this[STACKS].scope.current, 'expected scope on the scope stack');\n  }\n  dynamicScope() {\n    return expect(this[STACKS].dynamicScope.current, 'expected dynamic scope on the dynamic scope stack');\n  }\n  pushChildScope() {\n    this[STACKS].scope.push(this.scope().child());\n  }\n  pushDynamicScope() {\n    let child = this.dynamicScope().child();\n    this[STACKS].dynamicScope.push(child);\n    return child;\n  }\n  pushRootScope(size, owner) {\n    let scope = PartialScopeImpl.sized(size, owner);\n    this[STACKS].scope.push(scope);\n    return scope;\n  }\n  pushScope(scope) {\n    this[STACKS].scope.push(scope);\n  }\n  popScope() {\n    this[STACKS].scope.pop();\n  }\n  popDynamicScope() {\n    this[STACKS].dynamicScope.pop();\n  }\n\n  /// SCOPE HELPERS\n\n  getOwner() {\n    return this.scope().owner;\n  }\n  getSelf() {\n    return this.scope().getSelf();\n  }\n  referenceForSymbol(symbol) {\n    return this.scope().getSymbol(symbol);\n  }\n\n  /// EXECUTION\n\n  execute(initialize) {\n    if (DEBUG) {\n      let hasErrored = true;\n      try {\n        let value = this._execute(initialize);\n\n        // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n        hasErrored = false;\n        return value;\n      } finally {\n        if (hasErrored) {\n          // If any existing blocks are open, due to an error or something like\n          // that, we need to close them all and clean things up properly.\n          let elements = this.elements();\n          while (elements.hasBlocks) {\n            elements.popBlock();\n          }\n\n          // eslint-disable-next-line no-console\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      return this._execute(initialize);\n    }\n  }\n  _execute(initialize) {\n    if (initialize) initialize(this);\n    let result;\n    do result = this.next(); while (!result.done);\n    return result.value;\n  }\n  next() {\n    let {\n      env,\n      elementStack\n    } = this;\n    let opcode = this[INNER_VM].nextStatement();\n    let result;\n    if (opcode !== null) {\n      this[INNER_VM].evaluateOuter(opcode, this);\n      result = {\n        done: false,\n        value: null\n      };\n    } else {\n      // Unload the stack\n      this.stack.reset();\n      result = {\n        done: true,\n        value: new RenderResultImpl(env, this.popUpdating(), elementStack.popBlock(), this.destructor)\n      };\n    }\n    return result;\n  }\n  bindDynamicScope(names) {\n    let scope = this.dynamicScope();\n    for (const name of reverse(names)) {\n      scope.set(name, this.stack.pop());\n    }\n  }\n}\nfunction vmState(pc, scope, dynamicScope) {\n  return {\n    pc,\n    scope,\n    dynamicScope,\n    stack: []\n  };\n}\nfunction initVM(context) {\n  return (runtime, state, builder) => new VM(runtime, state, builder, context);\n}\n\nclass TemplateIteratorImpl {\n  constructor(vm) {\n    this.vm = vm;\n  }\n  next() {\n    return this.vm.next();\n  }\n  sync() {\n    if (DEBUG) {\n      return debug.runInTrackingTransaction(() => this.vm.execute(), '- While rendering:');\n    } else {\n      return this.vm.execute();\n    }\n  }\n}\nfunction renderSync(env, iterator) {\n  let result;\n  inTransaction(env, () => result = iterator.sync());\n  return result;\n}\nfunction renderMain(runtime, context, owner, self, treeBuilder, layout, dynamicScope = new DynamicScopeImpl()) {\n  let handle = unwrapHandle(layout.compile(context));\n  let numSymbols = layout.symbolTable.symbols.length;\n  let vm = VM.initial(runtime, context, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle,\n    numSymbols,\n    owner\n  });\n  return new TemplateIteratorImpl(vm);\n}\nfunction renderInvocation(vm, context, owner, definition, args) {\n  // Get a list of tuples of argument names and references, like\n  // [['title', reference], ['name', reference]]\n  const argList = Object.keys(args).map(key => [key, args[key]]);\n  const blockNames = ['main', 'else', 'attrs'];\n  // Prefix argument names with `@` symbol\n  const argNames = argList.map(([name]) => `@${name}`);\n  let reified = vm[CONSTANTS].component(definition, owner);\n  vm.pushFrame();\n\n  // Push blocks on to the stack, three stack values per block\n  for (let i = 0; i < 3 * blockNames.length; i++) {\n    vm.stack.push(null);\n  }\n  vm.stack.push(null);\n\n  // For each argument, push its backing reference on to the stack\n  argList.forEach(([, reference]) => {\n    vm.stack.push(reference);\n  });\n\n  // Configure VM based on blocks and args just pushed on to the stack.\n  vm[ARGS$1].setup(vm.stack, argNames, blockNames, 0, true);\n  const compilable = expect(reified.compilable, 'BUG: Expected the root component rendered with renderComponent to have an associated template, set with setComponentTemplate');\n  const layoutHandle = unwrapHandle(compilable.compile(context));\n  const invocation = {\n    handle: layoutHandle,\n    symbolTable: compilable.symbolTable\n  };\n\n  // Needed for the Op.Main opcode: arguments, component invocation object, and\n  // component definition.\n  vm.stack.push(vm[ARGS$1]);\n  vm.stack.push(invocation);\n  vm.stack.push(reified);\n  return new TemplateIteratorImpl(vm);\n}\nfunction renderComponent(runtime, treeBuilder, context, owner, definition, args = {}, dynamicScope = new DynamicScopeImpl()) {\n  let vm = VM.empty(runtime, {\n    treeBuilder,\n    handle: context.stdlib.main,\n    dynamicScope,\n    owner\n  }, context);\n  return renderInvocation(vm, context, owner, definition, recordToReference(args));\n}\nfunction recordToReference(record) {\n  const root = createConstRef(record, 'args');\n  return Object.keys(record).reduce((acc, key) => {\n    acc[key] = childRefFor(root, key);\n    return acc;\n  }, {});\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\nclass RehydratingCursor extends CursorImpl {\n  candidate = null;\n  openBlockDepth;\n  injectedOmittedNode = false;\n  constructor(element, nextSibling, startingBlockDepth) {\n    super(element, nextSibling);\n    this.startingBlockDepth = startingBlockDepth;\n    this.openBlockDepth = startingBlockDepth - 1;\n  }\n}\nclass RehydrateBuilder extends NewElementBuilder {\n  unmatchedAttributes = null;\n  // Hides property on base class\n  blockDepth = 0;\n  startingBlockOffset;\n  constructor(env, parentNode, nextSibling) {\n    super(env, parentNode, nextSibling);\n    if (nextSibling) throw new Error('Rehydration with nextSibling not supported');\n    let node = this.currentCursor.element.firstChild;\n    while (node !== null) {\n      if (isOpenBlock(node)) {\n        break;\n      }\n      node = node.nextSibling;\n    }\n    assert(node, 'Must have opening comment for rehydration.');\n    this.candidate = node;\n    const startingBlockOffset = getBlockDepth(node);\n    if (startingBlockOffset !== 0) {\n      // We are rehydrating from a partial tree and not the root component\n      // We need to add an extra block before the first block to rehydrate correctly\n      // The extra block is needed since the renderComponent API creates a synthetic component invocation which generates the extra block\n      const newBlockDepth = startingBlockOffset - 1;\n      const newCandidate = this.dom.createComment(`%+b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newCandidate, this.candidate);\n      let closingNode = node.nextSibling;\n      while (closingNode !== null) {\n        if (isCloseBlock(closingNode) && getBlockDepth(closingNode) === startingBlockOffset) {\n          break;\n        }\n        closingNode = closingNode.nextSibling;\n      }\n      assert(closingNode, 'Must have closing comment for starting block comment');\n      const newClosingBlock = this.dom.createComment(`%-b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newClosingBlock, closingNode.nextSibling);\n      this.candidate = newCandidate;\n      this.startingBlockOffset = newBlockDepth;\n    } else {\n      this.startingBlockOffset = 0;\n    }\n  }\n  get currentCursor() {\n    return this[CURSOR_STACK].current;\n  }\n  get candidate() {\n    if (this.currentCursor) {\n      return this.currentCursor.candidate;\n    }\n    return null;\n  }\n  set candidate(node) {\n    const currentCursor = this.currentCursor;\n    currentCursor.candidate = node;\n  }\n  disableRehydration(nextSibling) {\n    const currentCursor = this.currentCursor;\n\n    // rehydration will be disabled until we either:\n    // * hit popElement (and return to using the parent elements cursor)\n    // * hit closeBlock and the next sibling is a close block comment\n    //   matching the expected openBlockDepth\n    currentCursor.candidate = null;\n    currentCursor.nextSibling = nextSibling;\n  }\n  enableRehydration(candidate) {\n    const currentCursor = this.currentCursor;\n    currentCursor.candidate = candidate;\n    currentCursor.nextSibling = null;\n  }\n  pushElement(element, nextSibling = null) {\n    const cursor = new RehydratingCursor(element, nextSibling, this.blockDepth || 0);\n\n    /**\n     * <div>   <---------------  currentCursor.element\n     *   <!--%+b:1%--> <-------  would have been removed during openBlock\n     *   <div> <---------------  currentCursor.candidate -> cursor.element\n     *     <!--%+b:2%--> <-----  currentCursor.candidate.firstChild -> cursor.candidate\n     *     Foo\n     *     <!--%-b:2%-->\n     *   </div>\n     *   <!--%-b:1%-->  <------  becomes currentCursor.candidate\n     */\n    if (this.candidate !== null) {\n      cursor.candidate = element.firstChild;\n      this.candidate = element.nextSibling;\n    }\n    this[CURSOR_STACK].push(cursor);\n  }\n\n  // clears until the end of the current container\n  // either the current open block or higher\n  clearMismatch(candidate) {\n    let current = candidate;\n    const currentCursor = this.currentCursor;\n    if (currentCursor !== null) {\n      const openBlockDepth = currentCursor.openBlockDepth;\n      if (openBlockDepth >= currentCursor.startingBlockDepth) {\n        while (current) {\n          if (isCloseBlock(current)) {\n            const closeBlockDepth = getBlockDepthWithOffset(current, this.startingBlockOffset);\n            if (openBlockDepth >= closeBlockDepth) {\n              break;\n            }\n          }\n          current = this.remove(current);\n        }\n      } else {\n        while (current !== null) {\n          current = this.remove(current);\n        }\n      }\n      // current cursor parentNode should be openCandidate if element\n      // or openCandidate.parentNode if comment\n      this.disableRehydration(current);\n    }\n  }\n  __openBlock() {\n    const {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n    const blockDepth = this.blockDepth;\n    this.blockDepth++;\n    const {\n      candidate\n    } = currentCursor;\n    if (candidate === null) return;\n    const {\n      tagName\n    } = currentCursor.element;\n    if (isOpenBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === blockDepth) {\n      this.candidate = this.remove(candidate);\n      currentCursor.openBlockDepth = blockDepth;\n    } else if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      this.clearMismatch(candidate);\n    }\n  }\n  __closeBlock() {\n    const {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n\n    // openBlock is the last rehydrated open block\n    const openBlockDepth = currentCursor.openBlockDepth;\n\n    // this currently is the expected next open block depth\n    this.blockDepth--;\n    const {\n      candidate\n    } = currentCursor;\n    let isRehydrating = false;\n    if (candidate !== null) {\n      isRehydrating = true;\n      //assert(\n      //  openBlockDepth === this.blockDepth,\n      //  'when rehydrating, openBlockDepth should match this.blockDepth here'\n      //);\n\n      if (isCloseBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === openBlockDepth) {\n        const nextSibling = this.remove(candidate);\n        this.candidate = nextSibling;\n        currentCursor.openBlockDepth--;\n      } else {\n        // close the block and clear mismatch in parent container\n        // we will be either at the end of the element\n        // or at the end of our containing block\n        this.clearMismatch(candidate);\n        isRehydrating = false;\n      }\n    }\n    if (isRehydrating === false) {\n      // check if nextSibling matches our expected close block\n      // if so, we remove the close block comment and\n      // restore rehydration after clearMismatch disabled\n      const nextSibling = currentCursor.nextSibling;\n      if (nextSibling !== null && isCloseBlock(nextSibling) && getBlockDepthWithOffset(nextSibling, this.startingBlockOffset) === this.blockDepth) {\n        // restore rehydration state\n        const candidate = this.remove(nextSibling);\n        this.enableRehydration(candidate);\n        currentCursor.openBlockDepth--;\n      }\n    }\n  }\n  __appendNode(node) {\n    const {\n      candidate\n    } = this;\n\n    // This code path is only used when inserting precisely one node. It needs more\n    // comparison logic, but we can probably lean on the cases where this code path\n    // is actually used.\n    if (candidate) {\n      return candidate;\n    } else {\n      return super.__appendNode(node);\n    }\n  }\n  __appendHTML(html) {\n    const candidateBounds = this.markerBounds();\n    if (candidateBounds) {\n      const first = candidateBounds.firstNode();\n      const last = candidateBounds.lastNode();\n      const newBounds = new ConcreteBounds(this.element, first.nextSibling, last.previousSibling);\n      const possibleEmptyMarker = this.remove(first);\n      this.remove(last);\n      if (possibleEmptyMarker !== null && isEmpty(possibleEmptyMarker)) {\n        this.candidate = this.remove(possibleEmptyMarker);\n        if (this.candidate !== null) {\n          this.clearMismatch(this.candidate);\n        }\n      }\n      return newBounds;\n    } else {\n      return super.__appendHTML(html);\n    }\n  }\n  remove(node) {\n    const element = expect(node.parentNode, `cannot remove a detached node`);\n    const next = node.nextSibling;\n    element.removeChild(node);\n    return next;\n  }\n  markerBounds() {\n    const _candidate = this.candidate;\n    if (_candidate && isMarker(_candidate)) {\n      const first = _candidate;\n      let last = expect(first.nextSibling, `BUG: serialization markers must be paired`);\n      while (last && !isMarker(last)) {\n        last = expect(last.nextSibling, `BUG: serialization markers must be paired`);\n      }\n      return new ConcreteBounds(this.element, first, last);\n    } else {\n      return null;\n    }\n  }\n  __appendText(string) {\n    const {\n      candidate\n    } = this;\n    if (candidate) {\n      if (isTextNode(candidate)) {\n        if (candidate.nodeValue !== string) {\n          candidate.nodeValue = string;\n        }\n        this.candidate = candidate.nextSibling;\n        return candidate;\n      } else if (isSeparator(candidate)) {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else if (isEmpty(candidate) && string === '') {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else {\n        this.clearMismatch(candidate);\n        return super.__appendText(string);\n      }\n    } else {\n      return super.__appendText(string);\n    }\n  }\n  __appendComment(string) {\n    const _candidate = this.candidate;\n    if (_candidate && isComment(_candidate)) {\n      if (_candidate.nodeValue !== string) {\n        _candidate.nodeValue = string;\n      }\n      this.candidate = _candidate.nextSibling;\n      return _candidate;\n    } else if (_candidate) {\n      this.clearMismatch(_candidate);\n    }\n    return super.__appendComment(string);\n  }\n  __openElement(tag) {\n    const _candidate = this.candidate;\n    if (_candidate && isElement(_candidate) && isSameNodeType(_candidate, tag)) {\n      this.unmatchedAttributes = [].slice.call(_candidate.attributes);\n      return _candidate;\n    } else if (_candidate) {\n      if (isElement(_candidate) && _candidate.tagName === 'TBODY') {\n        this.pushElement(_candidate, null);\n        this.currentCursor.injectedOmittedNode = true;\n        return this.__openElement(tag);\n      }\n      this.clearMismatch(_candidate);\n    }\n    return super.__openElement(tag);\n  }\n  __setAttribute(name, value, namespace) {\n    const unmatched = this.unmatchedAttributes;\n    if (unmatched) {\n      const attr = findByName(unmatched, name);\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n    return super.__setAttribute(name, value, namespace);\n  }\n  __setProperty(name, value) {\n    const unmatched = this.unmatchedAttributes;\n    if (unmatched) {\n      const attr = findByName(unmatched, name);\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n    return super.__setProperty(name, value);\n  }\n  __flushElement(parent, constructing) {\n    const {\n      unmatchedAttributes: unmatched\n    } = this;\n    if (unmatched) {\n      for (const attr of unmatched) {\n        this.constructing.removeAttribute(attr.name);\n      }\n      this.unmatchedAttributes = null;\n    } else {\n      super.__flushElement(parent, constructing);\n    }\n  }\n  willCloseElement() {\n    const {\n      candidate,\n      currentCursor\n    } = this;\n    if (candidate !== null) {\n      this.clearMismatch(candidate);\n    }\n    if (currentCursor && currentCursor.injectedOmittedNode) {\n      this.popElement();\n    }\n    super.willCloseElement();\n  }\n  getMarker(element, guid) {\n    const marker = element.querySelector(`script[glmr=\"${guid}\"]`);\n    if (marker) {\n      return castToSimple(marker);\n    }\n    return null;\n  }\n  __pushRemoteElement(element, cursorId, insertBefore) {\n    const marker = this.getMarker(castToBrowser(element, 'HTML'), cursorId);\n    assert(!marker || marker.parentNode === element, `expected remote element marker's parent node to match remote element`);\n\n    // when insertBefore is not present, we clear the element\n    if (insertBefore === undefined) {\n      while (element.firstChild !== null && element.firstChild !== marker) {\n        this.remove(element.firstChild);\n      }\n      insertBefore = null;\n    }\n    const cursor = new RehydratingCursor(element, null, this.blockDepth);\n    this[CURSOR_STACK].push(cursor);\n    if (marker === null) {\n      this.disableRehydration(insertBefore);\n    } else {\n      this.candidate = this.remove(marker);\n    }\n    const block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n  didAppendBounds(bounds) {\n    super.didAppendBounds(bounds);\n    if (this.candidate) {\n      const last = bounds.lastNode();\n      this.candidate = last && last.nextSibling;\n    }\n    return bounds;\n  }\n}\nfunction isTextNode(node) {\n  return node.nodeType === 3;\n}\nfunction isComment(node) {\n  return node.nodeType === 8;\n}\nfunction isOpenBlock(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue.lastIndexOf('%+b:', 0) === 0;\n}\nfunction isCloseBlock(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue.lastIndexOf('%-b:', 0) === 0;\n}\nfunction getBlockDepth(node) {\n  return parseInt(node.nodeValue.slice(4), 10);\n}\nfunction getBlockDepthWithOffset(node, offset) {\n  return getBlockDepth(node) - offset;\n}\nfunction isElement(node) {\n  return node.nodeType === 1;\n}\nfunction isMarker(node) {\n  return node.nodeType === 8 && node.nodeValue === '%glmr%';\n}\nfunction isSeparator(node) {\n  return node.nodeType === 8 && node.nodeValue === '%|%';\n}\nfunction isEmpty(node) {\n  return node.nodeType === 8 && node.nodeValue === '% %';\n}\nfunction isSameNodeType(candidate, tag) {\n  if (candidate.namespaceURI === NS_SVG) {\n    return candidate.tagName === tag;\n  }\n  return candidate.tagName === tag.toUpperCase();\n}\nfunction findByName(array, name) {\n  for (const attr of array) {\n    if (attr.name === name) return attr;\n  }\n  return undefined;\n}\nfunction rehydrationBuilder(env, cursor) {\n  return RehydrateBuilder.forInitialRender(env, cursor);\n}\n\nexport { ConcreteBounds, CurriedValue, CursorImpl, DOMChanges, DOMTreeConstruction, DynamicAttribute, DynamicScopeImpl, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, EnvironmentImpl, DOMChangesImpl as IDOMChanges, VM as LowLevelVM, NewElementBuilder, PartialScopeImpl, RehydrateBuilder, RemoteLiveBlock, SERIALIZATION_FIRST_NODE_STRING, SimpleDynamicAttribute, TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition as TemplateOnlyComponent, TemplateOnlyComponentManager, UpdatableBlockImpl, UpdatingVM, array, clear, clientBuilder, concat, createCapturedArgs, curry, dynamicAttribute, fn, get, hash, inTransaction, invokeHelper, isSerializationFirstNode, isWhitespace, normalizeProperty, on, rehydrationBuilder, reifyArgs, reifyNamed, reifyPositional, renderComponent, renderMain, renderSync, resetDebuggerCallback, runtimeContext, setDebuggerCallback, templateOnlyComponent };\n","import { DEBUG } from '@glimmer/env';\n\nconst EMPTY_ARRAY = Object.freeze([]);\nfunction emptyArray() {\n  return EMPTY_ARRAY;\n}\nconst EMPTY_STRING_ARRAY = emptyArray();\nconst EMPTY_NUMBER_ARRAY = emptyArray();\n\n/**\n * This function returns `true` if the input array is the special empty array sentinel,\n * which is sometimes used for optimizations.\n */\nfunction isEmptyArray(input) {\n  return input === EMPTY_ARRAY;\n}\nfunction* reverse(input) {\n  for (let i = input.length - 1; i >= 0; i--) {\n    yield input[i];\n  }\n}\nfunction* enumerate(input) {\n  let i = 0;\n  for (const item of input) {\n    yield [i++, item];\n  }\n}\n\n// import Logger from './logger';\n\n\n// let alreadyWarned = false;\n\nfunction debugAssert(test, msg) {\n  // if (!alreadyWarned) {\n  //   alreadyWarned = true;\n  //   Logger.warn(\"Don't leave debug assertions on in public builds\");\n  // }\n\n  if (!test) {\n    throw new Error(msg || 'assertion failure');\n  }\n}\nfunction deprecate(desc) {\n  LOCAL_LOGGER.warn(`DEPRECATION: ${desc}`);\n}\n\nfunction keys(obj) {\n  return Object.keys(obj);\n}\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\nfunction expect(val, message) {\n  if (val === null || val === undefined) throw new Error(message);\n  return val;\n}\nfunction unreachable(message = 'unreachable') {\n  return new Error(message);\n}\nfunction exhausted(value) {\n  throw new Error(`Exhausted ${String(value)}`);\n}\nconst tuple = (...args) => args;\n\nfunction isPresent(value) {\n  return value !== null && value !== undefined;\n}\nfunction assertPresent(value, message) {\n  if (!isPresent(value)) {\n    throw new Error(`Expected present, got ${typeof value === 'string' ? value : message}`);\n  }\n}\nfunction isPresentArray(list) {\n  return list.length > 0;\n}\nfunction ifPresent(list, ifPresent, otherwise) {\n  if (isPresentArray(list)) {\n    return ifPresent(list);\n  } else {\n    return otherwise();\n  }\n}\nfunction arrayToOption(list) {\n  if (isPresentArray(list)) {\n    return list;\n  } else {\n    return null;\n  }\n}\nfunction assertPresentArray(list, message = `unexpected empty list`) {\n  if (!isPresentArray(list)) {\n    throw new Error(message);\n  }\n}\nfunction asPresentArray(list, message = `unexpected empty list`) {\n  assertPresentArray(list, message);\n  return list;\n}\nfunction getLast(list) {\n  return list.length === 0 ? undefined : list[list.length - 1];\n}\nfunction getFirst(list) {\n  return list.length === 0 ? undefined : list[0];\n}\nfunction mapPresentArray(list, mapper) {\n  if (list === null) {\n    return null;\n  }\n  let out = [];\n  for (let item of list) {\n    out.push(mapper(item));\n  }\n  return out;\n}\n\nfunction dict() {\n  return Object.create(null);\n}\nfunction isDict(u) {\n  return u !== null && u !== undefined;\n}\nfunction isObject(u) {\n  return typeof u === 'function' || typeof u === 'object' && u !== null;\n}\nclass StackImpl {\n  stack;\n  current = null;\n  constructor(values = []) {\n    this.stack = values;\n  }\n  get size() {\n    return this.stack.length;\n  }\n  push(item) {\n    this.current = item;\n    this.stack.push(item);\n  }\n  pop() {\n    let item = this.stack.pop();\n    this.current = getLast(this.stack) ?? null;\n    return item === undefined ? null : item;\n  }\n  nth(from) {\n    let len = this.stack.length;\n    return len < from ? null : unwrap(this.stack[len - from]);\n  }\n  isEmpty() {\n    return this.stack.length === 0;\n  }\n  toArray() {\n    return this.stack;\n  }\n}\n\n/// <reference types=\"qunit\" />\n\nlet beginTestSteps;\nlet endTestSteps;\nlet verifySteps;\nlet logStep;\n\nlet debugToString;\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n    if (functionName === undefined) {\n      let match = /function (\\w+)\\s*\\(/u.exec(String(fn));\n      functionName = match && match[1] || '';\n    }\n    return functionName.replace(/^bound /u, '');\n  };\n  let getObjectName = obj => {\n    let name;\n    let className;\n    if (obj.constructor && typeof obj.constructor === 'function') {\n      className = getFunctionName(obj.constructor);\n    }\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    }\n\n    // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n    if (name && /<.*:ember\\d+>/u.test(name) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/u, `<${className}:`);\n    }\n    return name || className;\n  };\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n  debugToString = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\nvar debugToString$1 = debugToString;\n\nfunction clearElement(parent) {\n  let current = parent.firstChild;\n  while (current) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    current = next;\n  }\n}\n\nconst RAW_NODE = -1;\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst DOCUMENT_NODE = 9;\nconst DOCUMENT_TYPE_NODE = 10;\nconst DOCUMENT_FRAGMENT_NODE = 11;\nconst NS_HTML = 'http://www.w3.org/1999/xhtml';\nconst NS_MATHML = 'http://www.w3.org/1998/Math/MathML';\nconst NS_SVG = 'http://www.w3.org/2000/svg';\nconst NS_XLINK = 'http://www.w3.org/1999/xlink';\nconst NS_XML = 'http://www.w3.org/XML/1998/namespace';\nconst NS_XMLNS = 'http://www.w3.org/2000/xmlns/';\nconst INSERT_BEFORE_BEGIN = 'beforebegin';\nconst INSERT_AFTER_BEGIN = 'afterbegin';\nconst INSERT_BEFORE_END = 'beforeend';\nconst INSERT_AFTER_END = 'afterend';\n\n/*\n  Encoding notes\n\n  We use 30 bit integers for encoding, so that we don't ever encode a non-SMI\n  integer to push on the stack.\n\n  Handles are >= 0\n  Immediates are < 0\n\n  True, False, Undefined and Null are pushed as handles into the symbol table,\n  with well known handles (0, 1, 2, 3)\n\n  The negative space is divided into positives and negatives. Positives are\n  higher numbers (-1, -2, -3, etc), negatives are lower.\n\n  We only encode immediates for two reasons:\n\n  1. To transfer over the wire, so they're smaller in general\n  2. When pushing values onto the stack from the low level/inner VM, which may\n     be converted into WASM one day.\n\n  This allows the low-level VM to always use SMIs, and to minimize using JS\n  values via handles for things like the stack pointer and frame pointer.\n  Externally, most code pushes values as JS values, except when being pulled\n  from the append byte code where it was already encoded.\n\n  Logically, this is because the low level VM doesn't really care about these\n  higher level values. For instance, the result of a userland helper may be a\n  number, or a boolean, or undefined/null, but it's extra work to figure that\n  out and push it correctly, vs. just pushing the value as a JS value with a\n  handle.\n\n  Note: The details could change here in the future, this is just the current\n  strategy.\n*/\n\nlet ImmediateConstants = /*#__PURE__*/function (ImmediateConstants) {\n  ImmediateConstants[ImmediateConstants[\"MAX_SMI\"] = 1073741823] = \"MAX_SMI\";\n  ImmediateConstants[ImmediateConstants[\"MIN_SMI\"] = -1073741824] = \"MIN_SMI\";\n  ImmediateConstants[ImmediateConstants[\"SIGN_BIT\"] = -536870913] = \"SIGN_BIT\";\n  ImmediateConstants[ImmediateConstants[\"MAX_INT\"] = 536870911] = \"MAX_INT\";\n  ImmediateConstants[ImmediateConstants[\"MIN_INT\"] = -536870912] = \"MIN_INT\";\n  ImmediateConstants[ImmediateConstants[\"FALSE_HANDLE\"] = 0] = \"FALSE_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"TRUE_HANDLE\"] = 1] = \"TRUE_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"NULL_HANDLE\"] = 2] = \"NULL_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"UNDEFINED_HANDLE\"] = 3] = \"UNDEFINED_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"ENCODED_FALSE_HANDLE\"] = 0] = \"ENCODED_FALSE_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"ENCODED_TRUE_HANDLE\"] = 1] = \"ENCODED_TRUE_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"ENCODED_NULL_HANDLE\"] = 2] = \"ENCODED_NULL_HANDLE\";\n  ImmediateConstants[ImmediateConstants[\"ENCODED_UNDEFINED_HANDLE\"] = 3] = \"ENCODED_UNDEFINED_HANDLE\";\n  return ImmediateConstants;\n}({});\nfunction isHandle(value) {\n  return value >= 0;\n}\nfunction isNonPrimitiveHandle(value) {\n  return value > ImmediateConstants.ENCODED_UNDEFINED_HANDLE;\n}\nfunction constants(...values) {\n  return [false, true, null, undefined, ...values];\n}\nfunction isSmallInt(value) {\n  return value % 1 === 0 && value <= ImmediateConstants.MAX_INT && value >= ImmediateConstants.MIN_INT;\n}\nfunction encodeNegative(num) {\n  return num & ImmediateConstants.SIGN_BIT;\n}\nfunction decodeNegative(num) {\n  return num | ~ImmediateConstants.SIGN_BIT;\n}\nfunction encodePositive(num) {\n  return ~num;\n}\nfunction decodePositive(num) {\n  return ~num;\n}\nfunction encodeHandle(num) {\n  return num;\n}\nfunction decodeHandle(num) {\n  return num;\n}\nfunction encodeImmediate(num) {\n  num |= 0;\n  return num < 0 ? encodeNegative(num) : encodePositive(num);\n}\nfunction decodeImmediate(num) {\n  num |= 0;\n  return num > ImmediateConstants.SIGN_BIT ? decodePositive(num) : decodeNegative(num);\n}\n[1, -1].forEach(x => decodeImmediate(encodeImmediate(x)));\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = {};\n  obj[str] = 1;\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n  return str;\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nlet assign = Object.assign;\nfunction values(obj) {\n  return Object.values(obj);\n}\nfunction entries(dict) {\n  return Object.entries(dict);\n}\n\nfunction castToSimple(node) {\n  if (isDocument(node)) {\n    return node;\n  } else if (isSimpleElement(node)) {\n    return node;\n  } else {\n    return node;\n  }\n}\n\n// If passed a document, verify we're in the browser and return it as a Document\n\n// If we don't know what this is, but the check requires it to be an element,\n// the cast will mandate that it's a browser element\n// Finally, if it's a more generic check, the cast will mandate that it's a\n// browser node and return a BrowserNodeUtils corresponding to the check\nfunction castToBrowser(node, sugaryCheck) {\n  if (node === null || node === undefined) {\n    return null;\n  }\n  if (typeof document === undefined) {\n    throw new Error('Attempted to cast to a browser node in a non-browser context');\n  }\n  if (isDocument(node)) {\n    return node;\n  }\n  if (node.ownerDocument !== document) {\n    throw new Error('Attempted to cast to a browser node with a node that was not created from this document');\n  }\n  return checkBrowserNode(node, sugaryCheck);\n}\nfunction checkError(from, check) {\n  return new Error(`cannot cast a ${from} into ${String(check)}`);\n}\nfunction isDocument(node) {\n  return node.nodeType === DOCUMENT_NODE;\n}\nfunction isSimpleElement(node) {\n  return node?.nodeType === ELEMENT_NODE;\n}\nfunction isElement(node) {\n  return node?.nodeType === ELEMENT_NODE && node instanceof Element;\n}\nfunction checkBrowserNode(node, check) {\n  let isMatch = false;\n  if (node !== null) {\n    if (typeof check === 'string') {\n      isMatch = stringCheckNode(node, check);\n    } else if (Array.isArray(check)) {\n      isMatch = check.some(c => stringCheckNode(node, c));\n    } else {\n      throw unreachable();\n    }\n  }\n  if (isMatch && node instanceof Node) {\n    return node;\n  } else {\n    throw checkError(`SimpleElement(${node?.constructor?.name ?? 'null'})`, check);\n  }\n}\nfunction stringCheckNode(node, check) {\n  switch (check) {\n    case 'NODE':\n      return true;\n    case 'HTML':\n      return node instanceof HTMLElement;\n    case 'SVG':\n      return node instanceof SVGElement;\n    case 'ELEMENT':\n      return node instanceof Element;\n    default:\n      if (check.toUpperCase() === check) {\n        throw new Error(`BUG: this code is missing handling for a generic node type`);\n      }\n      return node instanceof Element && node.tagName.toLowerCase() === check;\n  }\n}\n\nfunction strip(strings, ...args) {\n  let out = '';\n  for (const [i, string] of enumerate(strings)) {\n    let dynamic = args[i] !== undefined ? String(args[i]) : '';\n    out += `${string}${dynamic}`;\n  }\n  let lines = out.split('\\n');\n  while (isPresentArray(lines) && /^\\s*$/u.test(getFirst(lines))) {\n    lines.shift();\n  }\n  while (isPresentArray(lines) && /^\\s*$/u.test(getLast(lines))) {\n    lines.pop();\n  }\n  let min = Infinity;\n  for (let line of lines) {\n    let leading = /^\\s*/u.exec(line)[0].length;\n    min = Math.min(min, leading);\n  }\n  let stripped = [];\n  for (let line of lines) {\n    stripped.push(line.slice(min));\n  }\n  return stripped.join('\\n');\n}\n\nfunction unwrapHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    let error = handle.errors[0];\n    throw new Error(`Compile Error: ${error.problem} @ ${error.span.start}..${error.span.end}`);\n  }\n}\nfunction unwrapTemplate(template) {\n  if (template.result === 'error') {\n    throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);\n  }\n  return template;\n}\nfunction extractHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    return handle.handle;\n  }\n}\nfunction isOkHandle(handle) {\n  return typeof handle === 'number';\n}\nfunction isErrHandle(handle) {\n  return typeof handle === 'number';\n}\n\nfunction buildUntouchableThis(source) {\n  let context = null;\n  if (DEBUG) {\n    let assertOnProperty = property => {\n      let access = typeof property === 'symbol' || typeof property === 'number' ? `[${String(property)}]` : `.${property}`;\n      throw new Error(`You accessed \\`this${access}\\` from a function passed to the ${source}, but the function itself was not bound to a valid \\`this\\` context. Consider updating to use a bound function (for instance, use an arrow function, \\`() => {}\\`).`);\n    };\n    context = new Proxy({}, {\n      get(_target, property) {\n        assertOnProperty(property);\n      },\n      set(_target, property) {\n        assertOnProperty(property);\n        return false;\n      },\n      has(_target, property) {\n        assertOnProperty(property);\n        return false;\n      }\n    });\n  }\n  return context;\n}\n\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOCAL_LOGGER should only be used inside a\n * LOCAL_SHOULD_LOG check.\n *\n * It does not alleviate the need to check LOCAL_SHOULD_LOG, which is used\n * for stripping.\n */\nconst LOCAL_LOGGER = console;\n\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOGGER can be used outside of LOCAL_SHOULD_LOG checks,\n * and is meant to be used in the rare situation where a console.* call is\n * actually appropriate.\n */\nconst LOGGER = console;\nfunction assertNever(value, desc = 'unexpected unreachable branch') {\n  LOGGER.log('unreachable', value);\n  LOGGER.log(`${desc} :: ${JSON.stringify(value)} (${value})`);\n  throw new Error(`code reached unreachable`);\n}\n\nexport { COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, EMPTY_ARRAY, EMPTY_NUMBER_ARRAY, EMPTY_STRING_ARRAY, INSERT_AFTER_BEGIN, INSERT_AFTER_END, INSERT_BEFORE_BEGIN, INSERT_BEFORE_END, ImmediateConstants, LOCAL_LOGGER, LOGGER, NS_HTML, NS_MATHML, NS_SVG, NS_XLINK, NS_XML, NS_XMLNS, RAW_NODE, SERIALIZATION_FIRST_NODE_STRING, StackImpl as Stack, TEXT_NODE, arrayToOption, asPresentArray, debugAssert as assert, assertNever, assertPresent, assertPresentArray, assign, beginTestSteps, buildUntouchableThis, castToBrowser, castToSimple, checkBrowserNode as checkNode, clearElement, constants, debugToString$1 as debugToString, decodeHandle, decodeImmediate, decodeNegative, decodePositive, deprecate, dict, emptyArray, encodeHandle, encodeImmediate, encodeNegative, encodePositive, endTestSteps, entries, enumerate, exhausted, expect, extractHandle, getFirst, getLast, ifPresent, intern, isDict, isElement, isEmptyArray, isErrHandle, isHandle, isNonPrimitiveHandle, isObject, isOkHandle, isPresent, isPresentArray, isSerializationFirstNode, isSimpleElement, isSmallInt, keys, logStep, mapPresentArray, reverse, strip, tuple, unreachable, unwrap, unwrapHandle, unwrapTemplate, values, verifySteps };\n","import { DEBUG } from '@glimmer/env';\nimport { assert, scheduleRevalidate } from '@glimmer/global-context';\nimport { getLast, asPresentArray } from '@glimmer/util';\n\nfunction indexable(input) {\n  return input;\n}\nfunction getGlobal() {\n  if (typeof globalThis !== 'undefined') return indexable(globalThis);\n  if (typeof self !== 'undefined') return indexable(self);\n  if (typeof window !== 'undefined') return indexable(window);\n  if (typeof global !== 'undefined') return indexable(global);\n  throw new Error('unable to locate global object');\n}\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\nconst debug = {};\nif (DEBUG) {\n  let CONSUMED_TAGS = null;\n  const TRANSACTION_STACK = [];\n\n  /////////\n\n  const TRANSACTION_ENV = {\n    debugMessage(obj, keyName) {\n      let objName;\n      if (typeof obj === 'function') {\n        objName = obj.name;\n      } else if (typeof obj === 'object' && obj !== null) {\n        let className = obj.constructor && obj.constructor.name || '(unknown class)';\n        objName = `(an instance of ${className})`;\n      } else if (obj === undefined) {\n        objName = '(an unknown tag)';\n      } else {\n        objName = String(obj);\n      }\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${objName}\\`` : `\\`${objName}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n  };\n  debug.setTrackingTransactionEnv = env => Object.assign(TRANSACTION_ENV, env);\n  debug.beginTrackingTransaction = _debugLabel => {\n    CONSUMED_TAGS = CONSUMED_TAGS || new WeakMap();\n    let debugLabel = _debugLabel || undefined;\n    let parent = TRANSACTION_STACK[TRANSACTION_STACK.length - 1] ?? null;\n    TRANSACTION_STACK.push({\n      parent,\n      debugLabel\n    });\n  };\n  debug.endTrackingTransaction = () => {\n    if (TRANSACTION_STACK.length === 0) {\n      throw new Error('attempted to close a tracking transaction, but one was not open');\n    }\n    TRANSACTION_STACK.pop();\n    if (TRANSACTION_STACK.length === 0) {\n      CONSUMED_TAGS = null;\n    }\n  };\n  debug.resetTrackingTransaction = () => {\n    let stack = '';\n    if (TRANSACTION_STACK.length > 0) {\n      stack = debug.logTrackingStack(TRANSACTION_STACK[TRANSACTION_STACK.length - 1]);\n    }\n    TRANSACTION_STACK.splice(0, TRANSACTION_STACK.length);\n    CONSUMED_TAGS = null;\n    return stack;\n  };\n\n  /**\n   * Creates a global autotracking transaction. This will prevent any backflow\n   * in any `track` calls within the transaction, even if they are not\n   * externally consumed.\n   *\n   * `runInAutotrackingTransaction` can be called within itself, and it will add\n   * onto the existing transaction if one exists.\n   *\n   * TODO: Only throw an error if the `track` is consumed.\n   */\n  debug.runInTrackingTransaction = (fn, debugLabel) => {\n    debug.beginTrackingTransaction(debugLabel);\n    let didError = true;\n    try {\n      let value = fn();\n      didError = false;\n      return value;\n    } finally {\n      if (didError !== true) {\n        debug.endTrackingTransaction();\n      }\n\n      // if (id !== TRANSACTION_STACK.length) {\n      //   throw new Error(\n      //     `attempted to close a tracking transaction (${id}), but it was not the last transaction (${TRANSACTION_STACK.length})`\n      //   );\n      // }\n    }\n  };\n\n  let nthIndex = (str, pattern, n, startingPos = -1) => {\n    let i = startingPos;\n    while (n-- > 0 && i++ < str.length) {\n      i = str.indexOf(pattern, i);\n      if (i < 0) break;\n    }\n    return i;\n  };\n  let makeTrackingErrorMessage = (transaction, obj, keyName) => {\n    let message = [TRANSACTION_ENV.debugMessage(obj, keyName && String(keyName))];\n    message.push(`\\`${String(keyName)}\\` was first used:`);\n    message.push(debug.logTrackingStack(transaction));\n    message.push(`Stack trace for the update:`);\n    return message.join('\\n\\n');\n  };\n  debug.logTrackingStack = transaction => {\n    let trackingStack = [];\n    let current = transaction || TRANSACTION_STACK[TRANSACTION_STACK.length - 1];\n    if (current === undefined) return '';\n    while (current) {\n      if (current.debugLabel) {\n        trackingStack.unshift(current.debugLabel);\n      }\n      current = current.parent;\n    }\n    return trackingStack.map((label, index) => ' '.repeat(2 * index) + label).join('\\n');\n  };\n  debug.markTagAsConsumed = _tag => {\n    if (!CONSUMED_TAGS || CONSUMED_TAGS.has(_tag)) return;\n    CONSUMED_TAGS.set(_tag, getLast(asPresentArray(TRANSACTION_STACK)));\n\n    // We need to mark the tag and all of its subtags as consumed, so we need to\n    // cast it and access its internals. In the future this shouldn't be necessary,\n    // this is only for computed properties.\n    let subtag = _tag.subtag;\n    if (!subtag || !debug.markTagAsConsumed) return;\n    if (Array.isArray(subtag)) {\n      subtag.forEach(debug.markTagAsConsumed);\n    } else {\n      debug.markTagAsConsumed(subtag);\n    }\n  };\n  debug.assertTagNotConsumed = (tag, obj, keyName) => {\n    if (CONSUMED_TAGS === null) return;\n    let transaction = CONSUMED_TAGS.get(tag);\n    if (!transaction) return;\n\n    // This hack makes the assertion message nicer, we can cut off the first\n    // few lines of the stack trace and let users know where the actual error\n    // occurred.\n    try {\n      assert(false, makeTrackingErrorMessage(transaction, obj, keyName));\n    } catch (e) {\n      if (hasStack(e)) {\n        let updateStackBegin = e.stack.indexOf('Stack trace for the update:');\n        if (updateStackBegin !== -1) {\n          let start = nthIndex(e.stack, '\\n', 1, updateStackBegin);\n          let end = nthIndex(e.stack, '\\n', 4, updateStackBegin);\n          e.stack = e.stack.substr(0, start) + e.stack.substr(end);\n        }\n      }\n      throw e;\n    }\n  };\n}\nfunction hasStack(error) {\n  return typeof error === 'object' && error !== null && 'stack' in error && typeof error.stack === 'string';\n}\n\n//////////\n\nconst CONSTANT = 0;\nconst INITIAL = 1;\nconst VOLATILE = NaN;\nlet $REVISION = INITIAL;\nfunction bump() {\n  $REVISION++;\n}\n\n//////////\n\nconst DIRYTABLE_TAG_ID = 0;\nconst UPDATABLE_TAG_ID = 1;\nconst COMBINATOR_TAG_ID = 2;\nconst CONSTANT_TAG_ID = 3;\n\n//////////\n\nconst COMPUTE = Symbol('TAG_COMPUTE');\n\n//////////\n\n/**\n * `value` receives a tag and returns an opaque Revision based on that tag. This\n * snapshot can then later be passed to `validate` with the same tag to\n * determine if the tag has changed at all since the time that `value` was\n * called.\n *\n * @param tag\n */\nfunction valueForTag(tag) {\n  return tag[COMPUTE]();\n}\n\n/**\n * `validate` receives a tag and a snapshot from a previous call to `value` with\n * the same tag, and determines if the tag is still valid compared to the\n * snapshot. If the tag's state has changed at all since then, `validate` will\n * return false, otherwise it will return true. This is used to determine if a\n * calculation related to the tags should be rerun.\n *\n * @param tag\n * @param snapshot\n */\nfunction validateTag(tag, snapshot) {\n  return snapshot >= tag[COMPUTE]();\n}\n\n//////////\n\nconst TYPE = Symbol('TAG_TYPE');\n\n// this is basically a const\nlet ALLOW_CYCLES;\nif (DEBUG) {\n  ALLOW_CYCLES = new WeakMap();\n}\nfunction allowsCycles(tag) {\n  if (ALLOW_CYCLES === undefined) {\n    return true;\n  } else {\n    return ALLOW_CYCLES.has(tag);\n  }\n}\nclass MonomorphicTagImpl {\n  static combine(tags) {\n    switch (tags.length) {\n      case 0:\n        return CONSTANT_TAG;\n      case 1:\n        return tags[0];\n      default:\n        {\n          let tag = new MonomorphicTagImpl(COMBINATOR_TAG_ID);\n          tag.subtag = tags;\n          return tag;\n        }\n    }\n  }\n  revision = INITIAL;\n  lastChecked = INITIAL;\n  lastValue = INITIAL;\n  isUpdating = false;\n  subtag = null;\n  subtagBufferCache = null;\n  [TYPE];\n  constructor(type) {\n    this[TYPE] = type;\n  }\n  [COMPUTE]() {\n    let {\n      lastChecked\n    } = this;\n    if (this.isUpdating === true) {\n      if (DEBUG && !allowsCycles(this)) {\n        throw new Error('Cycles in tags are not allowed');\n      }\n      this.lastChecked = ++$REVISION;\n    } else if (lastChecked !== $REVISION) {\n      this.isUpdating = true;\n      this.lastChecked = $REVISION;\n      try {\n        let {\n          subtag,\n          revision\n        } = this;\n        if (subtag !== null) {\n          if (Array.isArray(subtag)) {\n            revision = subtag.reduce((prev, currentTag) => {\n              let current = currentTag[COMPUTE]();\n              return current > prev ? current : prev;\n            }, revision);\n          } else {\n            let subtagValue = subtag[COMPUTE]();\n            if (subtagValue === this.subtagBufferCache) {\n              revision = revision > this.lastValue ? revision : this.lastValue;\n            } else {\n              // Clear the temporary buffer cache\n              this.subtagBufferCache = null;\n              revision = revision > subtagValue ? revision : subtagValue;\n            }\n          }\n        }\n        this.lastValue = revision;\n      } finally {\n        this.isUpdating = false;\n      }\n    }\n    return this.lastValue;\n  }\n  static updateTag(_tag, _subtag) {\n    if (DEBUG && _tag[TYPE] !== UPDATABLE_TAG_ID) {\n      throw new Error('Attempted to update a tag that was not updatable');\n    }\n\n    // TODO: TS 3.7 should allow us to do this via assertion\n    let tag = _tag;\n    let subtag = _subtag;\n    if (subtag === CONSTANT_TAG) {\n      tag.subtag = null;\n    } else {\n      // There are two different possibilities when updating a subtag:\n      //\n      // 1. subtag[COMPUTE]() <= tag[COMPUTE]();\n      // 2. subtag[COMPUTE]() > tag[COMPUTE]();\n      //\n      // The first possibility is completely fine within our caching model, but\n      // the second possibility presents a problem. If the parent tag has\n      // already been read, then it's value is cached and will not update to\n      // reflect the subtag's greater value. Next time the cache is busted, the\n      // subtag's value _will_ be read, and it's value will be _greater_ than\n      // the saved snapshot of the parent, causing the resulting calculation to\n      // be rerun erroneously.\n      //\n      // In order to prevent this, when we first update to a new subtag we store\n      // its computed value, and then check against that computed value on\n      // subsequent updates. If its value hasn't changed, then we return the\n      // parent's previous value. Once the subtag changes for the first time,\n      // we clear the cache and everything is finally in sync with the parent.\n      tag.subtagBufferCache = subtag[COMPUTE]();\n      tag.subtag = subtag;\n    }\n  }\n  static dirtyTag(tag, disableConsumptionAssertion) {\n    if (DEBUG && !(tag[TYPE] === UPDATABLE_TAG_ID || tag[TYPE] === DIRYTABLE_TAG_ID)) {\n      throw new Error('Attempted to dirty a tag that was not dirtyable');\n    }\n    if (DEBUG && disableConsumptionAssertion !== true) {\n      // Usually by this point, we've already asserted with better error information,\n      // but this is our last line of defense.\n      unwrap(debug.assertTagNotConsumed)(tag);\n    }\n    tag.revision = ++$REVISION;\n    scheduleRevalidate();\n  }\n}\nconst DIRTY_TAG = MonomorphicTagImpl.dirtyTag;\nconst UPDATE_TAG = MonomorphicTagImpl.updateTag;\n\n//////////\n\nfunction createTag() {\n  return new MonomorphicTagImpl(DIRYTABLE_TAG_ID);\n}\nfunction createUpdatableTag() {\n  return new MonomorphicTagImpl(UPDATABLE_TAG_ID);\n}\n\n//////////\n\nconst CONSTANT_TAG = new MonomorphicTagImpl(CONSTANT_TAG_ID);\nfunction isConstTag(tag) {\n  return tag === CONSTANT_TAG;\n}\n\n//////////\n\nconst VOLATILE_TAG_ID = 100;\nclass VolatileTag {\n  [TYPE] = VOLATILE_TAG_ID;\n  [COMPUTE]() {\n    return VOLATILE;\n  }\n}\nconst VOLATILE_TAG = new VolatileTag();\n\n//////////\n\nconst CURRENT_TAG_ID = 101;\nclass CurrentTag {\n  [TYPE] = CURRENT_TAG_ID;\n  [COMPUTE]() {\n    return $REVISION;\n  }\n}\nconst CURRENT_TAG = new CurrentTag();\n\n//////////\n\nconst combine = MonomorphicTagImpl.combine;\n\n// Warm\n\nlet tag1 = createUpdatableTag();\nlet tag2 = createUpdatableTag();\nlet tag3 = createUpdatableTag();\nvalueForTag(tag1);\nDIRTY_TAG(tag1);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, combine([tag2, tag3]));\nvalueForTag(tag1);\nDIRTY_TAG(tag2);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, tag3);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\n\nfunction isObjectLike(u) {\n  return typeof u === 'object' && u !== null || typeof u === 'function';\n}\n\n///////////\n\nconst TRACKED_TAGS = new WeakMap();\nfunction dirtyTagFor(obj, key, meta) {\n  if (DEBUG && !isObjectLike(obj)) {\n    throw new Error(`BUG: Can't update a tag for a primitive`);\n  }\n  let tags = meta === undefined ? TRACKED_TAGS.get(obj) : meta;\n\n  // No tags have been setup for this object yet, return\n  if (tags === undefined) return;\n\n  // Dirty the tag for the specific property if it exists\n  let propertyTag = tags.get(key);\n  if (propertyTag !== undefined) {\n    if (DEBUG) {\n      unwrap(debug.assertTagNotConsumed)(propertyTag, obj, key);\n    }\n    DIRTY_TAG(propertyTag, true);\n  }\n}\nfunction tagMetaFor(obj) {\n  let tags = TRACKED_TAGS.get(obj);\n  if (tags === undefined) {\n    tags = new Map();\n    TRACKED_TAGS.set(obj, tags);\n  }\n  return tags;\n}\nfunction tagFor(obj, key, meta) {\n  let tags = meta === undefined ? tagMetaFor(obj) : meta;\n  let tag = tags.get(key);\n  if (tag === undefined) {\n    tag = createUpdatableTag();\n    tags.set(key, tag);\n  }\n  return tag;\n}\n\n/**\n * An object that that tracks @tracked properties that were consumed.\n */\nclass Tracker {\n  tags = new Set();\n  last = null;\n  add(tag) {\n    if (tag === CONSTANT_TAG) return;\n    this.tags.add(tag);\n    if (DEBUG) {\n      unwrap(debug.markTagAsConsumed)(tag);\n    }\n    this.last = tag;\n  }\n  combine() {\n    let {\n      tags\n    } = this;\n    if (tags.size === 0) {\n      return CONSTANT_TAG;\n    } else if (tags.size === 1) {\n      return this.last;\n    } else {\n      return combine(Array.from(this.tags));\n    }\n  }\n}\n\n/**\n * Whenever a tracked computed property is entered, the current tracker is\n * saved off and a new tracker is replaced.\n *\n * Any tracked properties consumed are added to the current tracker.\n *\n * When a tracked computed property is exited, the tracker's tags are\n * combined and added to the parent tracker.\n *\n * The consequence is that each tracked computed property has a tag\n * that corresponds to the tracked properties consumed inside of\n * itself, including child tracked computed properties.\n */\nlet CURRENT_TRACKER = null;\nconst OPEN_TRACK_FRAMES = [];\nfunction beginTrackFrame(debuggingContext) {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = new Tracker();\n  if (DEBUG) {\n    unwrap(debug.beginTrackingTransaction)(debuggingContext);\n  }\n}\nfunction endTrackFrame() {\n  let current = CURRENT_TRACKER;\n  if (DEBUG) {\n    if (OPEN_TRACK_FRAMES.length === 0) {\n      throw new Error('attempted to close a tracking frame, but one was not open');\n    }\n    unwrap(debug.endTrackingTransaction)();\n  }\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n  return unwrap(current).combine();\n}\nfunction beginUntrackFrame() {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = null;\n}\nfunction endUntrackFrame() {\n  if (DEBUG && OPEN_TRACK_FRAMES.length === 0) {\n    throw new Error('attempted to close a tracking frame, but one was not open');\n  }\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n}\n\n// This function is only for handling errors and resetting to a valid state\nfunction resetTracking() {\n  while (OPEN_TRACK_FRAMES.length > 0) {\n    OPEN_TRACK_FRAMES.pop();\n  }\n  CURRENT_TRACKER = null;\n  if (DEBUG) {\n    return unwrap(debug.resetTrackingTransaction)();\n  }\n}\nfunction isTracking() {\n  return CURRENT_TRACKER !== null;\n}\nfunction consumeTag(tag) {\n  if (CURRENT_TRACKER !== null) {\n    CURRENT_TRACKER.add(tag);\n  }\n}\n\n// public interface\n\nconst FN = Symbol('FN');\nconst LAST_VALUE = Symbol('LAST_VALUE');\nconst TAG = Symbol('TAG');\nconst SNAPSHOT = Symbol('SNAPSHOT');\nconst DEBUG_LABEL = Symbol('DEBUG_LABEL');\nfunction createCache(fn, debuggingLabel) {\n  if (DEBUG && !(typeof fn === 'function')) {\n    throw new Error(`createCache() must be passed a function as its first parameter. Called with: ${String(fn)}`);\n  }\n  let cache = {\n    [FN]: fn,\n    [LAST_VALUE]: undefined,\n    [TAG]: undefined,\n    [SNAPSHOT]: -1\n  };\n  if (DEBUG) {\n    cache[DEBUG_LABEL] = debuggingLabel;\n  }\n  return cache;\n}\nfunction getValue(cache) {\n  assertCache(cache, 'getValue');\n  let fn = cache[FN];\n  let tag = cache[TAG];\n  let snapshot = cache[SNAPSHOT];\n  if (tag === undefined || !validateTag(tag, snapshot)) {\n    beginTrackFrame();\n    try {\n      cache[LAST_VALUE] = fn();\n    } finally {\n      tag = endTrackFrame();\n      cache[TAG] = tag;\n      cache[SNAPSHOT] = valueForTag(tag);\n      consumeTag(tag);\n    }\n  } else {\n    consumeTag(tag);\n  }\n  return cache[LAST_VALUE];\n}\nfunction isConst(cache) {\n  assertCache(cache, 'isConst');\n  let tag = cache[TAG];\n  assertTag(tag, cache);\n  return isConstTag(tag);\n}\nfunction assertCache(value, fnName) {\n  if (DEBUG && !(typeof value === 'object' && value !== null && FN in value)) {\n    throw new Error(`${fnName}() can only be used on an instance of a cache created with createCache(). Called with: ${String(value)}`);\n  }\n}\n\n// replace this with `expect` when we can\nfunction assertTag(tag, cache) {\n  if (DEBUG && tag === undefined) {\n    throw new Error(`isConst() can only be used on a cache once getValue() has been called at least once. Called with cache function:\\n\\n${String(cache[FN])}`);\n  }\n}\n\n//////////\n\n// Legacy tracking APIs\n\n// track() shouldn't be necessary at all in the VM once the autotracking\n// refactors are merged, and we should generally be moving away from it. It may\n// be necessary in Ember for a while longer, but I think we'll be able to drop\n// it in favor of cache sooner rather than later.\nfunction track(block, debugLabel) {\n  beginTrackFrame(debugLabel);\n  let tag;\n  try {\n    block();\n  } finally {\n    tag = endTrackFrame();\n  }\n  return tag;\n}\n\n// untrack() is currently mainly used to handle places that were previously not\n// tracked, and that tracking now would cause backtracking rerender assertions.\n// I think once we move everyone forward onto modern APIs, we'll probably be\n// able to remove it, but I'm not sure yet.\nfunction untrack(callback) {\n  beginUntrackFrame();\n  try {\n    return callback();\n  } finally {\n    endUntrackFrame();\n  }\n}\n\nfunction trackedData(key, initializer) {\n  let values = new WeakMap();\n  let hasInitializer = typeof initializer === 'function';\n  function getter(self) {\n    consumeTag(tagFor(self, key));\n    let value;\n\n    // If the field has never been initialized, we should initialize it\n    if (hasInitializer && !values.has(self)) {\n      value = initializer.call(self);\n      values.set(self, value);\n    } else {\n      value = values.get(self);\n    }\n    return value;\n  }\n  function setter(self, value) {\n    dirtyTagFor(self, key);\n    values.set(self, value);\n  }\n  return {\n    getter,\n    setter\n  };\n}\n\nconst GLIMMER_VALIDATOR_REGISTRATION = Symbol('GLIMMER_VALIDATOR_REGISTRATION');\nconst globalObj = getGlobal();\nif (globalObj[GLIMMER_VALIDATOR_REGISTRATION] === true) {\n  throw new Error('The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.');\n}\nglobalObj[GLIMMER_VALIDATOR_REGISTRATION] = true;\n\nexport { ALLOW_CYCLES, COMPUTE, CONSTANT, CONSTANT_TAG, CURRENT_TAG, CurrentTag, INITIAL, VOLATILE, VOLATILE_TAG, VolatileTag, beginTrackFrame, beginUntrackFrame, bump, combine, consumeTag, createCache, createTag, createUpdatableTag, debug, DIRTY_TAG as dirtyTag, dirtyTagFor, endTrackFrame, endUntrackFrame, getValue, isConst, isConstTag, isTracking, resetTracking, tagFor, tagMetaFor, track, trackedData, untrack, UPDATE_TAG as updateTag, validateTag, valueForTag };\n","const ContentType = {\n  Component: 0,\n  Helper: 1,\n  String: 2,\n  Empty: 3,\n  SafeString: 4,\n  Fragment: 5,\n  Node: 6,\n  Other: 8\n};\n\nconst CurriedTypes = {\n  Component: 0,\n  Helper: 1,\n  Modifier: 2\n};\nconst InternalComponentCapabilities = {\n  Empty: 0,\n  dynamicLayout: 0b0000000000001,\n  dynamicTag: 0b0000000000010,\n  prepareArgs: 0b0000000000100,\n  createArgs: 0b0000000001000,\n  attributeHook: 0b0000000010000,\n  elementHook: 0b0000000100000,\n  dynamicScope: 0b0000001000000,\n  createCaller: 0b0000010000000,\n  updateHook: 0b0000100000000,\n  createInstance: 0b0001000000000,\n  wrapped: 0b0010000000000,\n  willDestroy: 0b0100000000000,\n  hasSubOwner: 0b1000000000000\n};\nconst ARG_SHIFT = 8;\nconst MAX_SIZE = 0x7fffffff;\nconst TYPE_SIZE = 0b11111111;\nconst TYPE_MASK = 0b00000000000000000000000011111111;\nconst OPERAND_LEN_MASK = 0b00000000000000000000001100000000;\nconst MACHINE_MASK = 0b00000000000000000000010000000000;\n\nconst MachineOp = {\n  PushFrame: 0,\n  PopFrame: 1,\n  InvokeVirtual: 2,\n  InvokeStatic: 3,\n  Jump: 4,\n  Return: 5,\n  ReturnTo: 6,\n  Size: 7\n};\nconst Op = {\n  Helper: 16,\n  SetNamedVariables: 17,\n  SetBlocks: 18,\n  SetVariable: 19,\n  SetBlock: 20,\n  GetVariable: 21,\n  GetProperty: 22,\n  GetBlock: 23,\n  SpreadBlock: 24,\n  HasBlock: 25,\n  HasBlockParams: 26,\n  Concat: 27,\n  Constant: 28,\n  ConstantReference: 29,\n  Primitive: 30,\n  PrimitiveReference: 31,\n  ReifyU32: 32,\n  Dup: 33,\n  Pop: 34,\n  Load: 35,\n  Fetch: 36,\n  RootScope: 37,\n  VirtualRootScope: 38,\n  ChildScope: 39,\n  PopScope: 40,\n  Text: 41,\n  Comment: 42,\n  AppendHTML: 43,\n  AppendSafeHTML: 44,\n  AppendDocumentFragment: 45,\n  AppendNode: 46,\n  AppendText: 47,\n  OpenElement: 48,\n  OpenDynamicElement: 49,\n  PushRemoteElement: 50,\n  StaticAttr: 51,\n  DynamicAttr: 52,\n  ComponentAttr: 53,\n  FlushElement: 54,\n  CloseElement: 55,\n  PopRemoteElement: 56,\n  Modifier: 57,\n  BindDynamicScope: 58,\n  PushDynamicScope: 59,\n  PopDynamicScope: 60,\n  CompileBlock: 61,\n  PushBlockScope: 62,\n  PushSymbolTable: 63,\n  InvokeYield: 64,\n  JumpIf: 65,\n  JumpUnless: 66,\n  JumpEq: 67,\n  AssertSame: 68,\n  Enter: 69,\n  Exit: 70,\n  ToBoolean: 71,\n  EnterList: 72,\n  ExitList: 73,\n  Iterate: 74,\n  Main: 75,\n  ContentType: 76,\n  Curry: 77,\n  PushComponentDefinition: 78,\n  PushDynamicComponentInstance: 79,\n  ResolveDynamicComponent: 80,\n  ResolveCurriedComponent: 81,\n  PushArgs: 82,\n  PushEmptyArgs: 83,\n  PopArgs: 84,\n  PrepareArgs: 85,\n  CaptureArgs: 86,\n  CreateComponent: 87,\n  RegisterComponentDestructor: 88,\n  PutComponentOperations: 89,\n  GetComponentSelf: 90,\n  GetComponentTagName: 91,\n  GetComponentLayout: 92,\n  BindEvalScope: 93,\n  SetupForEval: 94,\n  PopulateLayout: 95,\n  InvokeComponentLayout: 96,\n  BeginComponentTransaction: 97,\n  CommitComponentTransaction: 98,\n  DidCreateElement: 99,\n  DidRenderLayout: 100,\n  ResolveMaybeLocal: 102,\n  Debugger: 103,\n  Size: 104,\n  StaticComponentAttr: 105,\n  DynamicContentType: 106,\n  DynamicHelper: 107,\n  DynamicModifier: 108,\n  IfInline: 109,\n  Not: 110,\n  GetDynamicVar: 111,\n  Log: 112\n};\nfunction isMachineOp(value) {\n  return value >= 0 && value <= 15;\n}\nfunction isOp(value) {\n  return value >= 16;\n}\n\n/**\n * Registers\n *\n * For the most part, these follows MIPS naming conventions, however the\n * register numbers are different.\n */\n\n// $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\nconst $pc = 0;\n// $1 or $ra (return address): pointer into `program` for the return\nconst $ra = 1;\n// $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\nconst $fp = 2;\n// $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\nconst $sp = 3;\n// $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\nconst $s0 = 4;\nconst $s1 = 5;\n// $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\nconst $t0 = 6;\nconst $t1 = 7;\n// $8 or $v0 (return value)\nconst $v0 = 8;\nlet MachineRegister = /*#__PURE__*/function (MachineRegister) {\n  MachineRegister[MachineRegister[\"pc\"] = 0] = \"pc\";\n  MachineRegister[MachineRegister[\"ra\"] = 1] = \"ra\";\n  MachineRegister[MachineRegister[\"fp\"] = 2] = \"fp\";\n  MachineRegister[MachineRegister[\"sp\"] = 3] = \"sp\";\n  return MachineRegister;\n}({});\nfunction isLowLevelRegister(register) {\n  return register <= $sp;\n}\nlet SavedRegister = /*#__PURE__*/function (SavedRegister) {\n  SavedRegister[SavedRegister[\"s0\"] = 4] = \"s0\";\n  SavedRegister[SavedRegister[\"s1\"] = 5] = \"s1\";\n  return SavedRegister;\n}({});\nlet TemporaryRegister = /*#__PURE__*/function (TemporaryRegister) {\n  TemporaryRegister[TemporaryRegister[\"t0\"] = 6] = \"t0\";\n  TemporaryRegister[TemporaryRegister[\"t1\"] = 7] = \"t1\";\n  return TemporaryRegister;\n}({});\n\nexport { $fp, $pc, $ra, $s0, $s1, $sp, $t0, $t1, $v0, ARG_SHIFT, ContentType, CurriedTypes as CurriedType, CurriedTypes, InternalComponentCapabilities, InternalComponentCapabilities as InternalComponentCapability, MACHINE_MASK, MAX_SIZE, MachineOp, MachineRegister, OPERAND_LEN_MASK, Op, SavedRegister, TYPE_MASK, TYPE_SIZE, TemporaryRegister, isLowLevelRegister, isMachineOp, isOp };\n","const opcodes = {\n  Append: 1,\n  TrustingAppend: 2,\n  Comment: 3,\n  Modifier: 4,\n  StrictModifier: 5,\n  Block: 6,\n  StrictBlock: 7,\n  Component: 8,\n  OpenElement: 10,\n  OpenElementWithSplat: 11,\n  FlushElement: 12,\n  CloseElement: 13,\n  StaticAttr: 14,\n  DynamicAttr: 15,\n  ComponentAttr: 16,\n  AttrSplat: 17,\n  Yield: 18,\n  DynamicArg: 20,\n  StaticArg: 21,\n  TrustingDynamicAttr: 22,\n  TrustingComponentAttr: 23,\n  StaticComponentAttr: 24,\n  Debugger: 26,\n  Undefined: 27,\n  Call: 28,\n  Concat: 29,\n  GetSymbol: 30,\n  GetLexicalSymbol: 32,\n  GetStrictKeyword: 31,\n  GetFreeAsComponentOrHelperHeadOrThisFallback: 34,\n  GetFreeAsComponentOrHelperHead: 35,\n  GetFreeAsHelperHeadOrThisFallback: 36,\n  GetFreeAsDeprecatedHelperHeadOrThisFallback: 99,\n  GetFreeAsHelperHead: 37,\n  GetFreeAsModifierHead: 38,\n  GetFreeAsComponentHead: 39,\n  InElement: 40,\n  If: 41,\n  Each: 42,\n  With: 43,\n  Let: 44,\n  WithDynamicVars: 45,\n  InvokeComponent: 46,\n  HasBlock: 48,\n  HasBlockParams: 49,\n  Curry: 50,\n  Not: 51,\n  IfInline: 52,\n  GetDynamicVar: 53,\n  Log: 54\n};\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\n\nconst resolution = {\n  Strict: 0,\n  AmbiguousAppend: 1,\n  AmbiguousAppendInvoke: 2,\n  AmbiguousInvoke: 3,\n  ResolveAsCallHead: 5,\n  ResolveAsModifierHead: 6,\n  ResolveAsComponentHead: 7\n};\n\nconst WellKnownAttrNames = {\n  class: 0,\n  id: 1,\n  value: 2,\n  name: 3,\n  type: 4,\n  style: 5,\n  href: 6\n};\nconst WellKnownTagNames = {\n  div: 0,\n  span: 1,\n  p: 2,\n  a: 3\n};\n\nfunction is(variant) {\n  return function (value) {\n    return Array.isArray(value) && value[0] === variant;\n  };\n}\n\n// Statements\nconst isFlushElement = is(opcodes.FlushElement);\nfunction isAttribute(val) {\n  return val[0] === opcodes.StaticAttr || val[0] === opcodes.DynamicAttr || val[0] === opcodes.TrustingDynamicAttr || val[0] === opcodes.ComponentAttr || val[0] === opcodes.StaticComponentAttr || val[0] === opcodes.TrustingComponentAttr || val[0] === opcodes.AttrSplat || val[0] === opcodes.Modifier;\n}\nfunction isStringLiteral(expr) {\n  return typeof expr === 'string';\n}\nfunction getStringFromValue(expr) {\n  return expr;\n}\nfunction isArgument(val) {\n  return val[0] === opcodes.StaticArg || val[0] === opcodes.DynamicArg;\n}\nfunction isHelper(expr) {\n  return Array.isArray(expr) && expr[0] === opcodes.Call;\n}\n\n// Expressions\nconst isGet = is(opcodes.GetSymbol);\n\nexport { opcodes as SexpOpcodes, resolution as VariableResolutionContext, WellKnownAttrNames, WellKnownTagNames, getStringFromValue, is, isArgument, isAttribute, isFlushElement, isGet, isHelper, isStringLiteral };\n","const EMPTY_ATTRS = [];\nfunction indexOfAttribute(attributes, namespaceURI, localName) {\n    for (let i = 0; i < attributes.length; i++) {\n        const attr = attributes[i];\n        if (attr.namespaceURI === namespaceURI && attr.localName === localName) {\n            return i;\n        }\n    }\n    return -1;\n}\nfunction adjustAttrName(namespaceURI, localName) {\n    return namespaceURI === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? localName.toLowerCase() : localName;\n}\nfunction getAttribute(attributes, namespaceURI, localName) {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n    return index === -1 ? null : attributes[index].value;\n}\nfunction removeAttribute(attributes, namespaceURI, localName) {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n    if (index !== -1) {\n        attributes.splice(index, 1);\n    }\n}\n// https://dom.spec.whatwg.org/#dom-element-setattributens\nfunction setAttribute(element, namespaceURI, prefix, localName, value) {\n    if (typeof value !== 'string') {\n        value = '' + value;\n    }\n    let { attributes } = element;\n    if (attributes === EMPTY_ATTRS) {\n        attributes = element.attributes = [];\n    }\n    else {\n        const index = indexOfAttribute(attributes, namespaceURI, localName);\n        if (index !== -1) {\n            attributes[index].value = value;\n            return;\n        }\n    }\n    attributes.push({\n        localName,\n        name: prefix === null ? localName : prefix + ':' + localName,\n        namespaceURI,\n        prefix,\n        specified: true,\n        value,\n    });\n}\n\nclass ChildNodes {\n    constructor(node) {\n        this.node = node;\n        this.stale = true;\n        this._length = 0;\n    }\n    get length() {\n        if (this.stale) {\n            this.stale = false;\n            let len = 0;\n            let child = this.node.firstChild;\n            for (; child !== null; len++) {\n                this[len] = child;\n                child = child.nextSibling;\n            }\n            const oldLen = this._length;\n            this._length = len;\n            for (; len < oldLen; len++) {\n                delete this[len];\n            }\n        }\n        return this._length;\n    }\n    item(index) {\n        return index < this.length ? this[index] : null;\n    }\n}\n\nfunction cloneNode(node, deep) {\n    const clone = nodeFrom(node);\n    if (deep) {\n        let child = node.firstChild;\n        let nextChild = child;\n        while (child !== null) {\n            nextChild = child.nextSibling;\n            clone.appendChild(child.cloneNode(true));\n            child = nextChild;\n        }\n    }\n    return clone;\n}\nfunction nodeFrom(node) {\n    let namespaceURI;\n    if (node.nodeType === 1 /* ELEMENT_NODE */) {\n        namespaceURI = node.namespaceURI;\n    }\n    const clone = new SimpleNodeImpl(node.ownerDocument, node.nodeType, node.nodeName, node.nodeValue, namespaceURI);\n    if (node.nodeType === 1 /* ELEMENT_NODE */) {\n        clone.attributes = copyAttrs(node.attributes);\n    }\n    return clone;\n}\nfunction copyAttrs(attrs) {\n    if (attrs === EMPTY_ATTRS) {\n        return EMPTY_ATTRS;\n    }\n    const copy = [];\n    for (let i = 0; i < attrs.length; i++) {\n        const attr = attrs[i];\n        copy.push({\n            localName: attr.localName,\n            name: attr.name,\n            namespaceURI: attr.namespaceURI,\n            prefix: attr.prefix,\n            specified: true,\n            value: attr.value,\n        });\n    }\n    return copy;\n}\n\nfunction insertBefore(parentNode, newChild, refChild) {\n    invalidate(parentNode);\n    insertBetween(parentNode, newChild, refChild === null ? parentNode.lastChild : refChild.previousSibling, refChild);\n}\nfunction removeChild(parentNode, oldChild) {\n    invalidate(parentNode);\n    removeBetween(parentNode, oldChild, oldChild.previousSibling, oldChild.nextSibling);\n}\nfunction invalidate(parentNode) {\n    const childNodes = parentNode._childNodes;\n    if (childNodes !== undefined) {\n        childNodes.stale = true;\n    }\n}\nfunction insertBetween(parentNode, newChild, previousSibling, nextSibling) {\n    if (newChild.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */) {\n        insertFragment(newChild, parentNode, previousSibling, nextSibling);\n        return;\n    }\n    if (newChild.parentNode !== null) {\n        removeChild(newChild.parentNode, newChild);\n    }\n    newChild.parentNode = parentNode;\n    newChild.previousSibling = previousSibling;\n    newChild.nextSibling = nextSibling;\n    if (previousSibling === null) {\n        parentNode.firstChild = newChild;\n    }\n    else {\n        previousSibling.nextSibling = newChild;\n    }\n    if (nextSibling === null) {\n        parentNode.lastChild = newChild;\n    }\n    else {\n        nextSibling.previousSibling = newChild;\n    }\n}\nfunction removeBetween(parentNode, oldChild, previousSibling, nextSibling) {\n    oldChild.parentNode = null;\n    oldChild.previousSibling = null;\n    oldChild.nextSibling = null;\n    if (previousSibling === null) {\n        parentNode.firstChild = nextSibling;\n    }\n    else {\n        previousSibling.nextSibling = nextSibling;\n    }\n    if (nextSibling === null) {\n        parentNode.lastChild = previousSibling;\n    }\n    else {\n        nextSibling.previousSibling = previousSibling;\n    }\n}\nfunction insertFragment(fragment, parentNode, previousSibling, nextSibling) {\n    const firstChild = fragment.firstChild;\n    if (firstChild === null) {\n        return;\n    }\n    fragment.firstChild = null;\n    fragment.lastChild = null;\n    let lastChild = firstChild;\n    let newChild = firstChild;\n    firstChild.previousSibling = previousSibling;\n    if (previousSibling === null) {\n        parentNode.firstChild = firstChild;\n    }\n    else {\n        previousSibling.nextSibling = firstChild;\n    }\n    while (newChild !== null) {\n        newChild.parentNode = parentNode;\n        lastChild = newChild;\n        newChild = newChild.nextSibling;\n    }\n    lastChild.nextSibling = nextSibling;\n    if (nextSibling === null) {\n        parentNode.lastChild = lastChild;\n    }\n    else {\n        nextSibling.previousSibling = lastChild;\n    }\n}\n\nfunction parseQualifiedName(qualifiedName) {\n    let localName = qualifiedName;\n    let prefix = null;\n    const i = qualifiedName.indexOf(':');\n    if (i !== -1) {\n        prefix = qualifiedName.slice(0, i);\n        localName = qualifiedName.slice(i + 1);\n    }\n    return [prefix, localName];\n}\n\nclass SimpleNodeImpl {\n    constructor(ownerDocument, nodeType, nodeName, nodeValue, namespaceURI) {\n        this.ownerDocument = ownerDocument;\n        this.nodeType = nodeType;\n        this.nodeName = nodeName;\n        this.nodeValue = nodeValue;\n        this.namespaceURI = namespaceURI;\n        this.parentNode = null;\n        this.previousSibling = null;\n        this.nextSibling = null;\n        this.firstChild = null;\n        this.lastChild = null;\n        this.attributes = EMPTY_ATTRS;\n        /**\n         * @internal\n         */\n        this._childNodes = undefined;\n    }\n    get tagName() {\n        return this.nodeName;\n    }\n    get childNodes() {\n        let children = this._childNodes;\n        if (children === undefined) {\n            children = this._childNodes = new ChildNodes(this);\n        }\n        return children;\n    }\n    cloneNode(deep) {\n        return cloneNode(this, deep === true);\n    }\n    appendChild(newChild) {\n        insertBefore(this, newChild, null);\n        return newChild;\n    }\n    insertBefore(newChild, refChild) {\n        insertBefore(this, newChild, refChild);\n        return newChild;\n    }\n    removeChild(oldChild) {\n        removeChild(this, oldChild);\n        return oldChild;\n    }\n    insertAdjacentHTML(position, html) {\n        const raw = new SimpleNodeImpl(this.ownerDocument, -1 /* RAW_NODE */, '#raw', html, void 0);\n        let parentNode;\n        let nextSibling;\n        switch (position) {\n            case 'beforebegin':\n                parentNode = this.parentNode;\n                nextSibling = this;\n                break;\n            case 'afterbegin':\n                parentNode = this;\n                nextSibling = this.firstChild;\n                break;\n            case 'beforeend':\n                parentNode = this;\n                nextSibling = null;\n                break;\n            case 'afterend':\n                parentNode = this.parentNode;\n                nextSibling = this.nextSibling;\n                break;\n            default: throw new Error('invalid position');\n        }\n        if (parentNode === null) {\n            throw new Error(`${position} requires a parentNode`);\n        }\n        insertBefore(parentNode, raw, nextSibling);\n    }\n    getAttribute(name) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        return getAttribute(this.attributes, null, localName);\n    }\n    getAttributeNS(namespaceURI, localName) {\n        return getAttribute(this.attributes, namespaceURI, localName);\n    }\n    setAttribute(name, value) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        setAttribute(this, null, null, localName, value);\n    }\n    setAttributeNS(namespaceURI, qualifiedName, value) {\n        const [prefix, localName] = parseQualifiedName(qualifiedName);\n        setAttribute(this, namespaceURI, prefix, localName, value);\n    }\n    removeAttribute(name) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        removeAttribute(this.attributes, null, localName);\n    }\n    removeAttributeNS(namespaceURI, localName) {\n        removeAttribute(this.attributes, namespaceURI, localName);\n    }\n    get doctype() {\n        return this.firstChild;\n    }\n    get documentElement() {\n        return this.lastChild;\n    }\n    get head() {\n        return this.documentElement.firstChild;\n    }\n    get body() {\n        return this.documentElement.lastChild;\n    }\n    createElement(name) {\n        return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, name.toUpperCase(), null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    }\n    createElementNS(namespace, qualifiedName) {\n        // Node name is case-preserving in XML contexts, but returns canonical uppercase form in HTML contexts\n        // https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-104682815\n        const nodeName = namespace === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? qualifiedName.toUpperCase() : qualifiedName;\n        // we don't care to parse the qualified name because we only support HTML documents\n        // which don't support prefixed elements\n        return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, nodeName, null, namespace);\n    }\n    createTextNode(text) {\n        return new SimpleNodeImpl(this, 3 /* TEXT_NODE */, '#text', text, void 0);\n    }\n    createComment(text) {\n        return new SimpleNodeImpl(this, 8 /* COMMENT_NODE */, '#comment', text, void 0);\n    }\n    /**\n     * Backwards compat\n     * @deprecated\n     */\n    createRawHTMLSection(text) {\n        return new SimpleNodeImpl(this, -1 /* RAW_NODE */, '#raw', text, void 0);\n    }\n    createDocumentFragment() {\n        return new SimpleNodeImpl(this, 11 /* DOCUMENT_FRAGMENT_NODE */, '#document-fragment', null, void 0);\n    }\n}\n\nfunction createHTMLDocument() {\n    // dom.d.ts types ownerDocument as Document but for a document ownerDocument is null\n    const document = new SimpleNodeImpl(null, 9 /* DOCUMENT_NODE */, '#document', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const doctype = new SimpleNodeImpl(document, 10 /* DOCUMENT_TYPE_NODE */, 'html', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const html = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HTML', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const head = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HEAD', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const body = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'BODY', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    html.appendChild(head);\n    html.appendChild(body);\n    document.appendChild(doctype);\n    document.appendChild(html);\n    return document;\n}\n\nexport { createHTMLDocument as default };\n","const SET_TIMEOUT = setTimeout;\nconst NOOP = () => { };\nfunction buildNext(flush) {\n    // Using \"promises first\" here to:\n    //\n    // 1) Ensure more consistent experience on browsers that\n    //    have differently queued microtasks (separate queues for\n    //    MutationObserver vs Promises).\n    // 2) Ensure better debugging experiences (it shows up in Chrome\n    //    call stack as \"Promise.then (async)\") which is more consistent\n    //    with user expectations\n    //\n    // When Promise is unavailable use MutationObserver (mostly so that we\n    // still get microtasks on IE11), and when neither MutationObserver and\n    // Promise are present use a plain old setTimeout.\n    if (typeof Promise === 'function') {\n        const autorunPromise = Promise.resolve();\n        return () => autorunPromise.then(flush);\n    }\n    else if (typeof MutationObserver === 'function') {\n        let iterations = 0;\n        let observer = new MutationObserver(flush);\n        let node = document.createTextNode('');\n        observer.observe(node, { characterData: true });\n        return () => {\n            iterations = ++iterations % 2;\n            node.data = '' + iterations;\n            return iterations;\n        };\n    }\n    else {\n        return () => SET_TIMEOUT(flush, 0);\n    }\n}\nfunction buildPlatform(flush) {\n    let clearNext = NOOP;\n    return {\n        setTimeout(fn, ms) {\n            return setTimeout(fn, ms);\n        },\n        clearTimeout(timerId) {\n            return clearTimeout(timerId);\n        },\n        now() {\n            return Date.now();\n        },\n        next: buildNext(flush),\n        clearNext,\n    };\n}\n\nconst NUMBER = /\\d+/;\nconst TIMERS_OFFSET = 6;\nfunction isCoercableNumber(suspect) {\n    let type = typeof suspect;\n    return type === 'number' && suspect === suspect || type === 'string' && NUMBER.test(suspect);\n}\nfunction getOnError(options) {\n    return options.onError || (options.onErrorTarget && options.onErrorTarget[options.onErrorMethod]);\n}\nfunction findItem(target, method, collection) {\n    let index = -1;\n    for (let i = 0, l = collection.length; i < l; i += 4) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i;\n            break;\n        }\n    }\n    return index;\n}\nfunction findTimerItem(target, method, collection) {\n    let index = -1;\n    for (let i = 2, l = collection.length; i < l; i += 6) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i - 2;\n            break;\n        }\n    }\n    return index;\n}\nfunction getQueueItems(items, queueItemLength, queueItemPositionOffset = 0) {\n    let queueItems = [];\n    for (let i = 0; i < items.length; i += queueItemLength) {\n        let maybeError = items[i + 3 /* stack */ + queueItemPositionOffset];\n        let queueItem = {\n            target: items[i + 0 /* target */ + queueItemPositionOffset],\n            method: items[i + 1 /* method */ + queueItemPositionOffset],\n            args: items[i + 2 /* args */ + queueItemPositionOffset],\n            stack: maybeError !== undefined && 'stack' in maybeError ? maybeError.stack : ''\n        };\n        queueItems.push(queueItem);\n    }\n    return queueItems;\n}\n\nfunction binarySearch(time, timers) {\n    let start = 0;\n    let end = timers.length - TIMERS_OFFSET;\n    let middle;\n    let l;\n    while (start < end) {\n        // since timers is an array of pairs 'l' will always\n        // be an integer\n        l = (end - start) / TIMERS_OFFSET;\n        // compensate for the index in case even number\n        // of pairs inside timers\n        middle = start + l - (l % TIMERS_OFFSET);\n        if (time >= timers[middle]) {\n            start = middle + TIMERS_OFFSET;\n        }\n        else {\n            end = middle;\n        }\n    }\n    return (time >= timers[start]) ? start + TIMERS_OFFSET : start;\n}\n\nconst QUEUE_ITEM_LENGTH = 4;\nclass Queue {\n    constructor(name, options = {}, globalOptions = {}) {\n        this._queueBeingFlushed = [];\n        this.targetQueues = new Map();\n        this.index = 0;\n        this._queue = [];\n        this.name = name;\n        this.options = options;\n        this.globalOptions = globalOptions;\n    }\n    stackFor(index) {\n        if (index < this._queue.length) {\n            let entry = this._queue[index * 3 + QUEUE_ITEM_LENGTH];\n            if (entry) {\n                return entry.stack;\n            }\n            else {\n                return null;\n            }\n        }\n    }\n    flush(sync) {\n        let { before, after } = this.options;\n        let target;\n        let method;\n        let args;\n        let errorRecordedForStack;\n        this.targetQueues.clear();\n        if (this._queueBeingFlushed.length === 0) {\n            this._queueBeingFlushed = this._queue;\n            this._queue = [];\n        }\n        if (before !== undefined) {\n            before();\n        }\n        let invoke;\n        let queueItems = this._queueBeingFlushed;\n        if (queueItems.length > 0) {\n            let onError = getOnError(this.globalOptions);\n            invoke = onError ? this.invokeWithOnError : this.invoke;\n            for (let i = this.index; i < queueItems.length; i += QUEUE_ITEM_LENGTH) {\n                this.index += QUEUE_ITEM_LENGTH;\n                method = queueItems[i + 1];\n                // method could have been nullified / canceled during flush\n                if (method !== null) {\n                    //\n                    //    ** Attention intrepid developer **\n                    //\n                    //    To find out the stack of this task when it was scheduled onto\n                    //    the run loop, add the following to your app.js:\n                    //\n                    //    Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n                    //\n                    //    Once that is in place, when you are at a breakpoint and navigate\n                    //    here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n                    //    which will be the captured stack when this job was scheduled.\n                    //\n                    //    One possible long-term solution is the following Chrome issue:\n                    //       https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n                    //\n                    target = queueItems[i];\n                    args = queueItems[i + 2];\n                    errorRecordedForStack = queueItems[i + 3]; // Debugging assistance\n                    invoke(target, method, args, onError, errorRecordedForStack);\n                }\n                if (this.index !== this._queueBeingFlushed.length &&\n                    this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n        if (after !== undefined) {\n            after();\n        }\n        this._queueBeingFlushed.length = 0;\n        this.index = 0;\n        if (sync !== false && this._queue.length > 0) {\n            // check if new items have been added\n            this.flush(true);\n        }\n    }\n    hasWork() {\n        return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n    }\n    cancel({ target, method }) {\n        let queue = this._queue;\n        let targetQueueMap = this.targetQueues.get(target);\n        if (targetQueueMap !== undefined) {\n            targetQueueMap.delete(method);\n        }\n        let index = findItem(target, method, queue);\n        if (index > -1) {\n            queue[index + 1] = null;\n            return true;\n        }\n        // if not found in current queue\n        // could be in the queue that is being flushed\n        queue = this._queueBeingFlushed;\n        index = findItem(target, method, queue);\n        if (index > -1) {\n            queue[index + 1] = null;\n            return true;\n        }\n        return false;\n    }\n    push(target, method, args, stack) {\n        this._queue.push(target, method, args, stack);\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    pushUnique(target, method, args, stack) {\n        let localQueueMap = this.targetQueues.get(target);\n        if (localQueueMap === undefined) {\n            localQueueMap = new Map();\n            this.targetQueues.set(target, localQueueMap);\n        }\n        let index = localQueueMap.get(method);\n        if (index === undefined) {\n            let queueIndex = this._queue.push(target, method, args, stack) - QUEUE_ITEM_LENGTH;\n            localQueueMap.set(method, queueIndex);\n        }\n        else {\n            let queue = this._queue;\n            queue[index + 2] = args; // replace args\n            queue[index + 3] = stack; // replace stack\n        }\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = getQueueItems(this._queue, QUEUE_ITEM_LENGTH);\n            return debugInfo;\n        }\n        return undefined;\n    }\n    invoke(target, method, args /*, onError, errorRecordedForStack */) {\n        if (args === undefined) {\n            method.call(target);\n        }\n        else {\n            method.apply(target, args);\n        }\n    }\n    invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n        try {\n            if (args === undefined) {\n                method.call(target);\n            }\n            else {\n                method.apply(target, args);\n            }\n        }\n        catch (error) {\n            onError(error, errorRecordedForStack);\n        }\n    }\n}\n\nclass DeferredActionQueues {\n    constructor(queueNames = [], options) {\n        this.queues = {};\n        this.queueNameIndex = 0;\n        this.queueNames = queueNames;\n        queueNames.reduce(function (queues, queueName) {\n            queues[queueName] = new Queue(queueName, options[queueName], options);\n            return queues;\n        }, this.queues);\n    }\n    /**\n     * @method schedule\n     * @param {String} queueName\n     * @param {Any} target\n     * @param {Any} method\n     * @param {Any} args\n     * @param {Boolean} onceFlag\n     * @param {Any} stack\n     * @return queue\n     */\n    schedule(queueName, target, method, args, onceFlag, stack) {\n        let queues = this.queues;\n        let queue = queues[queueName];\n        if (queue === undefined) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) that doesn\\'t exist`);\n        }\n        if (method === undefined || method === null) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) for a method that doesn\\'t exist`);\n        }\n        this.queueNameIndex = 0;\n        if (onceFlag) {\n            return queue.pushUnique(target, method, args, stack);\n        }\n        else {\n            return queue.push(target, method, args, stack);\n        }\n    }\n    /**\n     * DeferredActionQueues.flush() calls Queue.flush()\n     *\n     * @method flush\n     * @param {Boolean} fromAutorun\n     */\n    flush(fromAutorun = false) {\n        let queue;\n        let queueName;\n        let numberOfQueues = this.queueNames.length;\n        while (this.queueNameIndex < numberOfQueues) {\n            queueName = this.queueNames[this.queueNameIndex];\n            queue = this.queues[queueName];\n            if (queue.hasWork() === false) {\n                this.queueNameIndex++;\n                if (fromAutorun && this.queueNameIndex < numberOfQueues) {\n                    return 1 /* Pause */;\n                }\n            }\n            else {\n                if (queue.flush(false /* async */) === 1 /* Pause */) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n    }\n    /**\n     * Returns debug information for the current queues.\n     *\n     * @method _getDebugInfo\n     * @param {Boolean} debugEnabled\n     * @returns {IDebugInfo | undefined}\n     */\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = {};\n            let queue;\n            let queueName;\n            let numberOfQueues = this.queueNames.length;\n            let i = 0;\n            while (i < numberOfQueues) {\n                queueName = this.queueNames[i];\n                queue = this.queues[queueName];\n                debugInfo[queueName] = queue._getDebugInfo(debugEnabled);\n                i++;\n            }\n            return debugInfo;\n        }\n        return;\n    }\n}\n\nfunction iteratorDrain (fn) {\n    let iterator = fn();\n    let result = iterator.next();\n    while (result.done === false) {\n        result.value();\n        result = iterator.next();\n    }\n}\n\nconst noop = function () { };\nconst DISABLE_SCHEDULE = Object.freeze([]);\nfunction parseArgs() {\n    let length = arguments.length;\n    let args;\n    let method;\n    let target;\n    if (length === 0) ;\n    else if (length === 1) {\n        target = null;\n        method = arguments[0];\n    }\n    else {\n        let argsIndex = 2;\n        let methodOrTarget = arguments[0];\n        let methodOrArgs = arguments[1];\n        let type = typeof methodOrArgs;\n        if (type === 'function') {\n            target = methodOrTarget;\n            method = methodOrArgs;\n        }\n        else if (methodOrTarget !== null && type === 'string' && methodOrArgs in methodOrTarget) {\n            target = methodOrTarget;\n            method = target[methodOrArgs];\n        }\n        else if (typeof methodOrTarget === 'function') {\n            argsIndex = 1;\n            target = null;\n            method = methodOrTarget;\n        }\n        if (length > argsIndex) {\n            let len = length - argsIndex;\n            args = new Array(len);\n            for (let i = 0; i < len; i++) {\n                args[i] = arguments[i + argsIndex];\n            }\n        }\n    }\n    return [target, method, args];\n}\nfunction parseTimerArgs() {\n    let [target, method, args] = parseArgs(...arguments);\n    let wait = 0;\n    let length = args !== undefined ? args.length : 0;\n    if (length > 0) {\n        let last = args[length - 1];\n        if (isCoercableNumber(last)) {\n            wait = parseInt(args.pop(), 10);\n        }\n    }\n    return [target, method, args, wait];\n}\nfunction parseDebounceArgs() {\n    let target;\n    let method;\n    let isImmediate;\n    let args;\n    let wait;\n    if (arguments.length === 2) {\n        method = arguments[0];\n        wait = arguments[1];\n        target = null;\n    }\n    else {\n        [target, method, args] = parseArgs(...arguments);\n        if (args === undefined) {\n            wait = 0;\n        }\n        else {\n            wait = args.pop();\n            if (!isCoercableNumber(wait)) {\n                isImmediate = wait === true;\n                wait = args.pop();\n            }\n        }\n    }\n    wait = parseInt(wait, 10);\n    return [target, method, args, wait, isImmediate];\n}\nlet UUID = 0;\nlet beginCount = 0;\nlet endCount = 0;\nlet beginEventCount = 0;\nlet endEventCount = 0;\nlet runCount = 0;\nlet joinCount = 0;\nlet deferCount = 0;\nlet scheduleCount = 0;\nlet scheduleIterableCount = 0;\nlet deferOnceCount = 0;\nlet scheduleOnceCount = 0;\nlet setTimeoutCount = 0;\nlet laterCount = 0;\nlet throttleCount = 0;\nlet debounceCount = 0;\nlet cancelTimersCount = 0;\nlet cancelCount = 0;\nlet autorunsCreatedCount = 0;\nlet autorunsCompletedCount = 0;\nlet deferredActionQueuesCreatedCount = 0;\nlet nestedDeferredActionQueuesCreated = 0;\nclass Backburner {\n    constructor(queueNames, options) {\n        this.DEBUG = false;\n        this.currentInstance = null;\n        this.instanceStack = [];\n        this._eventCallbacks = {\n            end: [],\n            begin: []\n        };\n        this._timerTimeoutId = null;\n        this._timers = [];\n        this._autorun = false;\n        this._autorunStack = null;\n        this.queueNames = queueNames;\n        this.options = options || {};\n        if (typeof this.options.defaultQueue === 'string') {\n            this._defaultQueue = this.options.defaultQueue;\n        }\n        else {\n            this._defaultQueue = this.queueNames[0];\n        }\n        this._onBegin = this.options.onBegin || noop;\n        this._onEnd = this.options.onEnd || noop;\n        this._boundRunExpiredTimers = this._runExpiredTimers.bind(this);\n        this._boundAutorunEnd = () => {\n            autorunsCompletedCount++;\n            // if the autorun was already flushed, do nothing\n            if (this._autorun === false) {\n                return;\n            }\n            this._autorun = false;\n            this._autorunStack = null;\n            this._end(true /* fromAutorun */);\n        };\n        let builder = this.options._buildPlatform || buildPlatform;\n        this._platform = builder(this._boundAutorunEnd);\n    }\n    get counters() {\n        return {\n            begin: beginCount,\n            end: endCount,\n            events: {\n                begin: beginEventCount,\n                end: endEventCount,\n            },\n            autoruns: {\n                created: autorunsCreatedCount,\n                completed: autorunsCompletedCount,\n            },\n            run: runCount,\n            join: joinCount,\n            defer: deferCount,\n            schedule: scheduleCount,\n            scheduleIterable: scheduleIterableCount,\n            deferOnce: deferOnceCount,\n            scheduleOnce: scheduleOnceCount,\n            setTimeout: setTimeoutCount,\n            later: laterCount,\n            throttle: throttleCount,\n            debounce: debounceCount,\n            cancelTimers: cancelTimersCount,\n            cancel: cancelCount,\n            loops: {\n                total: deferredActionQueuesCreatedCount,\n                nested: nestedDeferredActionQueuesCreated,\n            },\n        };\n    }\n    get defaultQueue() {\n        return this._defaultQueue;\n    }\n    /*\n      @method begin\n      @return instantiated class DeferredActionQueues\n    */\n    begin() {\n        beginCount++;\n        let options = this.options;\n        let previousInstance = this.currentInstance;\n        let current;\n        if (this._autorun !== false) {\n            current = previousInstance;\n            this._cancelAutorun();\n        }\n        else {\n            if (previousInstance !== null) {\n                nestedDeferredActionQueuesCreated++;\n                this.instanceStack.push(previousInstance);\n            }\n            deferredActionQueuesCreatedCount++;\n            current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n            beginEventCount++;\n            this._trigger('begin', current, previousInstance);\n        }\n        this._onBegin(current, previousInstance);\n        return current;\n    }\n    end() {\n        endCount++;\n        this._end(false);\n    }\n    on(eventName, callback) {\n        if (typeof callback !== 'function') {\n            throw new TypeError(`Callback must be a function`);\n        }\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            callbacks.push(callback);\n        }\n        else {\n            throw new TypeError(`Cannot on() event ${eventName} because it does not exist`);\n        }\n    }\n    off(eventName, callback) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (!eventName || callbacks === undefined) {\n            throw new TypeError(`Cannot off() event ${eventName} because it does not exist`);\n        }\n        let callbackFound = false;\n        if (callback) {\n            for (let i = 0; i < callbacks.length; i++) {\n                if (callbacks[i] === callback) {\n                    callbackFound = true;\n                    callbacks.splice(i, 1);\n                    i--;\n                }\n            }\n        }\n        if (!callbackFound) {\n            throw new TypeError(`Cannot off() callback that does not exist`);\n        }\n    }\n    run() {\n        runCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._run(target, method, args);\n    }\n    join() {\n        joinCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._join(target, method, args);\n    }\n    /**\n     * @deprecated please use schedule instead.\n     */\n    defer(queueName, target, method, ...args) {\n        deferCount++;\n        return this.schedule(queueName, target, method, ...args);\n    }\n    schedule(queueName, ..._args) {\n        scheduleCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n    }\n    /*\n      Defer the passed iterable of functions to run inside the specified queue.\n  \n      @method scheduleIterable\n      @param {String} queueName\n      @param {Iterable} an iterable of functions to execute\n      @return method result\n    */\n    scheduleIterable(queueName, iterable) {\n        scheduleIterableCount++;\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n    }\n    /**\n     * @deprecated please use scheduleOnce instead.\n     */\n    deferOnce(queueName, target, method, ...args) {\n        deferOnceCount++;\n        return this.scheduleOnce(queueName, target, method, ...args);\n    }\n    scheduleOnce(queueName, ..._args) {\n        scheduleOnceCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n    }\n    setTimeout() {\n        setTimeoutCount++;\n        return this.later(...arguments);\n    }\n    later() {\n        laterCount++;\n        let [target, method, args, wait] = parseTimerArgs(...arguments);\n        return this._later(target, method, args, wait);\n    }\n    throttle() {\n        throttleCount++;\n        let [target, method, args, wait, isImmediate = true] = parseDebounceArgs(...arguments);\n        let index = findTimerItem(target, method, this._timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            timerId = this._timers[index + 1];\n            let argIndex = index + 4;\n            if (this._timers[argIndex] !== DISABLE_SCHEDULE) {\n                this._timers[argIndex] = args;\n            }\n        }\n        return timerId;\n    }\n    debounce() {\n        debounceCount++;\n        let [target, method, args, wait, isImmediate = false] = parseDebounceArgs(...arguments);\n        let _timers = this._timers;\n        let index = findTimerItem(target, method, _timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            let executeAt = this._platform.now() + wait;\n            let argIndex = index + 4;\n            if (_timers[argIndex] === DISABLE_SCHEDULE) {\n                args = DISABLE_SCHEDULE;\n            }\n            timerId = _timers[index + 1];\n            let i = binarySearch(executeAt, _timers);\n            if ((index + TIMERS_OFFSET) === i) {\n                _timers[index] = executeAt;\n                _timers[argIndex] = args;\n            }\n            else {\n                let stack = this._timers[index + 5];\n                this._timers.splice(i, 0, executeAt, timerId, target, method, args, stack);\n                this._timers.splice(index, TIMERS_OFFSET);\n            }\n            if (index === 0) {\n                this._reinstallTimerTimeout();\n            }\n        }\n        return timerId;\n    }\n    cancelTimers() {\n        cancelTimersCount++;\n        this._clearTimerTimeout();\n        this._timers = [];\n        this._cancelAutorun();\n    }\n    hasTimers() {\n        return this._timers.length > 0 || this._autorun;\n    }\n    cancel(timer) {\n        cancelCount++;\n        if (timer === null || timer === undefined) {\n            return false;\n        }\n        let timerType = typeof timer;\n        if (timerType === 'number') { // we're cancelling a setTimeout or throttle or debounce\n            return this._cancelLaterTimer(timer);\n        }\n        else if (timerType === 'object' && timer.queue && timer.method) { // we're cancelling a deferOnce\n            return timer.queue.cancel(timer);\n        }\n        return false;\n    }\n    ensureInstance() {\n        this._ensureInstance();\n    }\n    /**\n     * Returns debug information related to the current instance of Backburner\n     *\n     * @method getDebugInfo\n     * @returns {Object | undefined} Will return and Object containing debug information if\n     * the DEBUG flag is set to true on the current instance of Backburner, else undefined.\n     */\n    getDebugInfo() {\n        if (this.DEBUG) {\n            return {\n                autorun: this._autorunStack,\n                counters: this.counters,\n                timers: getQueueItems(this._timers, TIMERS_OFFSET, 2),\n                instanceStack: [this.currentInstance, ...this.instanceStack]\n                    .map((deferredActionQueue) => deferredActionQueue && deferredActionQueue._getDebugInfo(this.DEBUG))\n            };\n        }\n        return undefined;\n    }\n    _end(fromAutorun) {\n        let currentInstance = this.currentInstance;\n        let nextInstance = null;\n        if (currentInstance === null) {\n            throw new Error(`end called without begin`);\n        }\n        // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n        // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n        let finallyAlreadyCalled = false;\n        let result;\n        try {\n            result = currentInstance.flush(fromAutorun);\n        }\n        finally {\n            if (!finallyAlreadyCalled) {\n                finallyAlreadyCalled = true;\n                if (result === 1 /* Pause */) {\n                    const plannedNextQueue = this.queueNames[currentInstance.queueNameIndex];\n                    this._scheduleAutorun(plannedNextQueue);\n                }\n                else {\n                    this.currentInstance = null;\n                    if (this.instanceStack.length > 0) {\n                        nextInstance = this.instanceStack.pop();\n                        this.currentInstance = nextInstance;\n                    }\n                    this._trigger('end', currentInstance, nextInstance);\n                    this._onEnd(currentInstance, nextInstance);\n                }\n            }\n        }\n    }\n    _join(target, method, args) {\n        if (this.currentInstance === null) {\n            return this._run(target, method, args);\n        }\n        if (target === undefined && args === undefined) {\n            return method();\n        }\n        else {\n            return method.apply(target, args);\n        }\n    }\n    _run(target, method, args) {\n        let onError = getOnError(this.options);\n        this.begin();\n        if (onError) {\n            try {\n                return method.apply(target, args);\n            }\n            catch (error) {\n                onError(error);\n            }\n            finally {\n                this.end();\n            }\n        }\n        else {\n            try {\n                return method.apply(target, args);\n            }\n            finally {\n                this.end();\n            }\n        }\n    }\n    _cancelAutorun() {\n        if (this._autorun) {\n            this._platform.clearNext();\n            this._autorun = false;\n            this._autorunStack = null;\n        }\n    }\n    _later(target, method, args, wait) {\n        let stack = this.DEBUG ? new Error() : undefined;\n        let executeAt = this._platform.now() + wait;\n        let id = UUID++;\n        if (this._timers.length === 0) {\n            this._timers.push(executeAt, id, target, method, args, stack);\n            this._installTimerTimeout();\n        }\n        else {\n            // find position to insert\n            let i = binarySearch(executeAt, this._timers);\n            this._timers.splice(i, 0, executeAt, id, target, method, args, stack);\n            // always reinstall since it could be out of sync\n            this._reinstallTimerTimeout();\n        }\n        return id;\n    }\n    _cancelLaterTimer(timer) {\n        for (let i = 1; i < this._timers.length; i += TIMERS_OFFSET) {\n            if (this._timers[i] === timer) {\n                this._timers.splice(i - 1, TIMERS_OFFSET);\n                if (i === 1) {\n                    this._reinstallTimerTimeout();\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n    /**\n     Trigger an event. Supports up to two arguments. Designed around\n     triggering transition events from one run loop instance to the\n     next, which requires an argument for the  instance and then\n     an argument for the next instance.\n  \n     @private\n     @method _trigger\n     @param {String} eventName\n     @param {any} arg1\n     @param {any} arg2\n     */\n    _trigger(eventName, arg1, arg2) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            for (let i = 0; i < callbacks.length; i++) {\n                callbacks[i](arg1, arg2);\n            }\n        }\n    }\n    _runExpiredTimers() {\n        this._timerTimeoutId = null;\n        if (this._timers.length > 0) {\n            this.begin();\n            this._scheduleExpiredTimers();\n            this.end();\n        }\n    }\n    _scheduleExpiredTimers() {\n        let timers = this._timers;\n        let i = 0;\n        let l = timers.length;\n        let defaultQueue = this._defaultQueue;\n        let n = this._platform.now();\n        for (; i < l; i += TIMERS_OFFSET) {\n            let executeAt = timers[i];\n            if (executeAt > n) {\n                break;\n            }\n            let args = timers[i + 4];\n            if (args !== DISABLE_SCHEDULE) {\n                let target = timers[i + 2];\n                let method = timers[i + 3];\n                let stack = timers[i + 5];\n                this.currentInstance.schedule(defaultQueue, target, method, args, false, stack);\n            }\n        }\n        timers.splice(0, i);\n        this._installTimerTimeout();\n    }\n    _reinstallTimerTimeout() {\n        this._clearTimerTimeout();\n        this._installTimerTimeout();\n    }\n    _clearTimerTimeout() {\n        if (this._timerTimeoutId === null) {\n            return;\n        }\n        this._platform.clearTimeout(this._timerTimeoutId);\n        this._timerTimeoutId = null;\n    }\n    _installTimerTimeout() {\n        if (this._timers.length === 0) {\n            return;\n        }\n        let minExpiresAt = this._timers[0];\n        let n = this._platform.now();\n        let wait = Math.max(0, minExpiresAt - n);\n        this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n    }\n    _ensureInstance() {\n        let currentInstance = this.currentInstance;\n        if (currentInstance === null) {\n            this._autorunStack = this.DEBUG ? new Error() : undefined;\n            currentInstance = this.begin();\n            this._scheduleAutorun(this.queueNames[0]);\n        }\n        return currentInstance;\n    }\n    _scheduleAutorun(plannedNextQueue) {\n        autorunsCreatedCount++;\n        const next = this._platform.next;\n        const flush = this.options.flush;\n        if (flush) {\n            flush(plannedNextQueue, next);\n        }\n        else {\n            next();\n        }\n        this._autorun = true;\n    }\n}\nBackburner.Queue = Queue;\nBackburner.buildPlatform = buildPlatform;\nBackburner.buildNext = buildNext;\n\nexport default Backburner;\nexport { buildPlatform };\n//# sourceMappingURL=backburner.js.map\n","/**\n * A topologically ordered map of key/value pairs with a simple API for adding constraints.\n *\n * Edges can forward reference keys that have not been added yet (the forward reference will\n * map the key to undefined).\n */\nvar DAG = (function () {\n    function DAG() {\n        this._vertices = new Vertices();\n    }\n    /**\n     * Adds a key/value pair with dependencies on other key/value pairs.\n     *\n     * @public\n     * @param key    The key of the vertex to be added.\n     * @param value  The value of that vertex.\n     * @param before A key or array of keys of the vertices that must\n     *               be visited before this vertex.\n     * @param after  An string or array of strings with the keys of the\n     *               vertices that must be after this vertex is visited.\n     */\n    DAG.prototype.add = function (key, value, before, after) {\n        if (!key)\n            throw new Error('argument `key` is required');\n        var vertices = this._vertices;\n        var v = vertices.add(key);\n        v.val = value;\n        if (before) {\n            if (typeof before === \"string\") {\n                vertices.addEdge(v, vertices.add(before));\n            }\n            else {\n                for (var i = 0; i < before.length; i++) {\n                    vertices.addEdge(v, vertices.add(before[i]));\n                }\n            }\n        }\n        if (after) {\n            if (typeof after === \"string\") {\n                vertices.addEdge(vertices.add(after), v);\n            }\n            else {\n                for (var i = 0; i < after.length; i++) {\n                    vertices.addEdge(vertices.add(after[i]), v);\n                }\n            }\n        }\n    };\n    /**\n     * @deprecated please use add.\n     */\n    DAG.prototype.addEdges = function (key, value, before, after) {\n        this.add(key, value, before, after);\n    };\n    /**\n     * Visits key/value pairs in topological order.\n     *\n     * @public\n     * @param callback The function to be invoked with each key/value.\n     */\n    DAG.prototype.each = function (callback) {\n        this._vertices.walk(callback);\n    };\n    /**\n     * @deprecated please use each.\n     */\n    DAG.prototype.topsort = function (callback) {\n        this.each(callback);\n    };\n    return DAG;\n}());\nexport default DAG;\n/** @private */\nvar Vertices = (function () {\n    function Vertices() {\n        this.length = 0;\n        this.stack = new IntStack();\n        this.path = new IntStack();\n        this.result = new IntStack();\n    }\n    Vertices.prototype.add = function (key) {\n        if (!key)\n            throw new Error(\"missing key\");\n        var l = this.length | 0;\n        var vertex;\n        for (var i = 0; i < l; i++) {\n            vertex = this[i];\n            if (vertex.key === key)\n                return vertex;\n        }\n        this.length = l + 1;\n        return this[l] = {\n            idx: l,\n            key: key,\n            val: undefined,\n            out: false,\n            flag: false,\n            length: 0\n        };\n    };\n    Vertices.prototype.addEdge = function (v, w) {\n        this.check(v, w.key);\n        var l = w.length | 0;\n        for (var i = 0; i < l; i++) {\n            if (w[i] === v.idx)\n                return;\n        }\n        w.length = l + 1;\n        w[l] = v.idx;\n        v.out = true;\n    };\n    Vertices.prototype.walk = function (cb) {\n        this.reset();\n        for (var i = 0; i < this.length; i++) {\n            var vertex = this[i];\n            if (vertex.out)\n                continue;\n            this.visit(vertex, \"\");\n        }\n        this.each(this.result, cb);\n    };\n    Vertices.prototype.check = function (v, w) {\n        if (v.key === w) {\n            throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n        }\n        // quick check\n        if (v.length === 0)\n            return;\n        // shallow check\n        for (var i = 0; i < v.length; i++) {\n            var key = this[v[i]].key;\n            if (key === w) {\n                throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n            }\n        }\n        // deep check\n        this.reset();\n        this.visit(v, w);\n        if (this.path.length > 0) {\n            var msg_1 = \"cycle detected: \" + w;\n            this.each(this.path, function (key) {\n                msg_1 += \" <- \" + key;\n            });\n            throw new Error(msg_1);\n        }\n    };\n    Vertices.prototype.reset = function () {\n        this.stack.length = 0;\n        this.path.length = 0;\n        this.result.length = 0;\n        for (var i = 0, l = this.length; i < l; i++) {\n            this[i].flag = false;\n        }\n    };\n    Vertices.prototype.visit = function (start, search) {\n        var _a = this, stack = _a.stack, path = _a.path, result = _a.result;\n        stack.push(start.idx);\n        while (stack.length) {\n            var index = stack.pop() | 0;\n            if (index >= 0) {\n                // enter\n                var vertex = this[index];\n                if (vertex.flag)\n                    continue;\n                vertex.flag = true;\n                path.push(index);\n                if (search === vertex.key)\n                    break;\n                // push exit\n                stack.push(~index);\n                this.pushIncoming(vertex);\n            }\n            else {\n                // exit\n                path.pop();\n                result.push(~index);\n            }\n        }\n    };\n    Vertices.prototype.pushIncoming = function (incomming) {\n        var stack = this.stack;\n        for (var i = incomming.length - 1; i >= 0; i--) {\n            var index = incomming[i];\n            if (!this[index].flag) {\n                stack.push(index);\n            }\n        }\n    };\n    Vertices.prototype.each = function (indices, cb) {\n        for (var i = 0, l = indices.length; i < l; i++) {\n            var vertex = this[indices[i]];\n            cb(vertex.key, vertex.val);\n        }\n    };\n    return Vertices;\n}());\n/** @private */\nvar IntStack = (function () {\n    function IntStack() {\n        this.length = 0;\n    }\n    IntStack.prototype.push = function (n) {\n        this[this.length++] = n | 0;\n    };\n    IntStack.prototype.pop = function () {\n        return this[--this.length] | 0;\n    };\n    return IntStack;\n}());\n","/* globals Reflect */\n\nimport { DEBUG } from '@glimmer/env';\n\nconst setPrototypeOf = Object.setPrototypeOf;\nconst getPrototypeOf = Object.getPrototypeOf;\n\nconst hasReflectConstruct = typeof Reflect === 'object' && typeof Reflect.construct === 'function';\n\nconst nativeWrapperCache = new Map();\n\n// Implementations:\n// https://github.com/babel/babel/blob/436d78920883603668666210a4aacf524257bc3b/packages/babel-helpers/src/helpers.ts#L958\nlet privateFieldId = 0;\nexport function classPrivateFieldLooseKey(name) {\n  return '__private_' + privateFieldId++ + '_' + name;\n}\nexport function classPrivateFieldLooseBase(receiver, privateKey) {\n  if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {\n    throw new TypeError('attempted to use private field on non-instance');\n  }\n  return receiver;\n}\n\n// Super minimal version of Babel's wrapNativeSuper. We only use this for\n// extending Function, for ComputedDecoratorImpl and AliasDecoratorImpl. We know\n// we will never directly create an instance of these classes so no need to\n// include `construct` code or other helpers.\nexport function wrapNativeSuper(Class) {\n  if (nativeWrapperCache.has(Class)) {\n    return nativeWrapperCache.get(Class);\n  }\n\n  function Wrapper() {}\n  Wrapper.prototype = Object.create(Class.prototype, {\n    constructor: {\n      value: Wrapper,\n      enumerable: false,\n      writable: true,\n      configurable: true,\n    },\n  });\n\n  nativeWrapperCache.set(Class, Wrapper);\n\n  return setPrototypeOf(Wrapper, Class);\n}\n\nexport function classCallCheck(instance, Constructor) {\n  if (DEBUG) {\n    if (!(instance instanceof Constructor)) {\n      throw new TypeError('Cannot call a class as a function');\n    }\n  }\n}\n\n/*\n  Overrides default `inheritsLoose` to _also_ call `Object.setPrototypeOf`.\n  This is needed so that we can use `loose` option with the\n  `@babel/plugin-transform-classes` (because we want simple assignment to the\n  prototype wherever possible) but also keep our constructor based prototypal\n  inheritance working properly\n*/\nexport function inheritsLoose(subClass, superClass) {\n  if (DEBUG) {\n    if (typeof superClass !== 'function' && superClass !== null) {\n      throw new TypeError('Super expression must either be null or a function');\n    }\n  }\n  subClass.prototype = Object.create(superClass === null ? null : superClass.prototype, {\n    constructor: {\n      value: subClass,\n      writable: true,\n      configurable: true,\n    },\n  });\n  if (superClass !== null) {\n    setPrototypeOf(subClass, superClass);\n  }\n}\n\nexport function taggedTemplateLiteralLoose(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n  strings.raw = raw;\n  return strings;\n}\n\nfunction _defineProperties(target, props) {\n  for (let i = 0; i < props.length; i++) {\n    let descriptor = props[i];\n    descriptor.enumerable = descriptor.enumerable || false;\n    descriptor.configurable = true;\n    if ('value' in descriptor) descriptor.writable = true;\n    Object.defineProperty(target, descriptor.key, descriptor);\n  }\n}\n\n/*\n  Differs from default implementation by avoiding boolean coercion of\n  `protoProps` and `staticProps`.\n*/\nexport function createClass(Constructor, protoProps, staticProps) {\n  if (protoProps !== null && protoProps !== undefined) {\n    _defineProperties(Constructor.prototype, protoProps);\n  }\n\n  if (staticProps !== null && staticProps !== undefined) {\n    _defineProperties(Constructor, staticProps);\n  }\n\n  return Constructor;\n}\n\nexport function assertThisInitialized(self) {\n  if (DEBUG && self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n  return self;\n}\n\n/*\n  Adds `DEBUG` guard to error being thrown, and avoids boolean coercion of `call`.\n*/\nexport function possibleConstructorReturn(self, call) {\n  if ((typeof call === 'object' && call !== null) || typeof call === 'function') {\n    return call;\n  }\n  return assertThisInitialized(self);\n}\n\nexport function objectDestructuringEmpty(obj) {\n  if (DEBUG && (obj === null || obj === undefined)) {\n    throw new TypeError('Cannot destructure undefined');\n  }\n}\n\n/*\n  Differs from default implementation by checking for _any_ `Reflect.construct`\n  (the default implementation tries to ensure that `Reflect.construct` is truly\n  the native one).\n\n  Original source: https://github.com/babel/babel/blob/v7.9.2/packages/babel-helpers/src/helpers.js#L738-L757\n*/\nexport function createSuper(Derived) {\n  return function () {\n    let Super = getPrototypeOf(Derived);\n    let result;\n\n    if (hasReflectConstruct) {\n      // NOTE: This doesn't work if this.__proto__.constructor has been modified.\n      let NewTarget = getPrototypeOf(this).constructor;\n      result = Reflect.construct(Super, arguments, NewTarget);\n    } else {\n      result = Super.apply(this, arguments);\n    }\n\n    return possibleConstructorReturn(this, result);\n  };\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  let arr2 = new Array(len);\n  for (let i = 0; i < len; i++) {\n    arr2[i] = arr[i];\n  }\n\n  return arr2;\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === 'string') return arrayLikeToArray(o, minLen);\n  let n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === 'Object' && o.constructor) n = o.constructor.name;\n  if (n === 'Map' || n === 'Set') return Array.from(n);\n  if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n    return arrayLikeToArray(o, minLen);\n}\n\n/*\n  Does not differ from default implementation.\n*/\nexport function createForOfIteratorHelperLoose(o) {\n  let i = 0;\n  if (typeof Symbol === 'undefined' || o[Symbol.iterator] == null) {\n    // Fallback for engines without symbol support\n    if (Array.isArray(o) || (o = unsupportedIterableToArray(o)))\n      return function () {\n        if (i >= o.length) return { done: true };\n        return { done: false, value: o[i++] };\n      };\n    throw new TypeError(\n      'Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n    );\n  }\n  i = o[Symbol.iterator]();\n  return i.next.bind(i);\n}\n","/**\n@module ember\n*/\nimport { getENV, getLookup, setLookup } from '@ember/-internals/environment';\nimport * as utils from '@ember/-internals/utils';\nimport { Registry as InternalRegistry, Container as InternalContainer } from '@ember/-internals/container';\nimport * as instrumentation from '@ember/instrumentation';\nimport { meta as internalMeta } from '@ember/-internals/meta';\nimport * as metal from '@ember/-internals/metal';\nimport { FEATURES as EmberFEATURES, isEnabled } from '@ember/canary-features';\nimport * as EmberDebug from '@ember/debug';\nimport { assert as emberAssert, captureRenderTree } from '@ember/debug';\nimport Backburner from 'backburner.js';\nimport EmberController, { inject as injectController, ControllerMixin as EmberControllerMixin } from '@ember/controller';\nimport EmberService, { service } from '@ember/service';\nimport EmberObject, { action, computed as emberComputed, defineProperty as emberDefineProperty, notifyPropertyChange as emberNotifyPropertyChange, observer as emberObserver, get as emberGet, getProperties as emberGetProperties, set as emberSet, setProperties as emberSetProperties, trySet as emberTrySet } from '@ember/object';\nimport { cacheFor as emberCacheFor } from '@ember/object/-internals';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport EmberComputedProperty, { expandProperties as emberExpandProperties } from '@ember/object/computed';\nimport { addListener as emberAddListener, removeListener as emberRemoveListener, sendEvent as emberSendEvent } from '@ember/object/events';\nimport { RegistryProxyMixin, ContainerProxyMixin, _ProxyMixin as internalProxyMixin, RSVP as _RSVP, Comparable as InternalComparable, ActionHandler as InternalActionHandler } from '@ember/-internals/runtime';\nimport { componentCapabilities, modifierCapabilities, setComponentManager, escapeExpression, getTemplates, setTemplates, template, isSerializationFirstNode } from '@ember/-internals/glimmer';\nimport Version from './version';\nimport * as views from '@ember/-internals/views';\nimport EmberContainerDebugAdapter from '@ember/debug/container-debug-adapter';\nimport EmberDataAdapter from '@ember/debug/data-adapter';\nimport { run as emberRun } from '@ember/runloop';\nimport { getOnerror, setOnerror } from '@ember/-internals/error-handling';\nimport EmberArray, { A as EmberA, NativeArray as EmberNativeArray, isArray as emberIsArray, makeArray as emberMakeArray } from '@ember/array';\nimport EmberMutableArray from '@ember/array/mutable';\nimport EmberArrayProxy from '@ember/array/proxy';\nimport EmberApplication, { getOwner as applicationGetOwner, setOwner as applicationSetOwner, onLoad as applicationOnLoad, runLoadHooks as applicationRunLoadHooks } from '@ember/application';\nimport EmberApplicationInstance from '@ember/application/instance';\nimport EmberNamespace from '@ember/application/namespace';\nimport EmberComponent, { Input as EmberInput } from '@ember/component';\nimport EmberHelper from '@ember/component/helper';\nimport EmberEngine from '@ember/engine';\nimport EmberEngineInstance from '@ember/engine/instance';\nimport EmberEnumerable from '@ember/enumerable';\nimport EmberMutableEnumerable from '@ember/enumerable/mutable';\nimport EmberCoreObject from '@ember/object/core';\nimport EmberEvented, { on as emberOn } from '@ember/object/evented';\nimport EmberMixin, { mixin as emberMixin } from '@ember/object/mixin';\nimport EmberObservable from '@ember/object/observable';\nimport { addObserver as emberAddObserver, removeObserver as emberRemoveObserver } from '@ember/object/observers';\nimport EmberObjectProxy from '@ember/object/proxy';\nimport EmberPromiseProxyMixin from '@ember/object/promise-proxy-mixin';\nimport EmberHashLocation from '@ember/routing/hash-location';\nimport EmberHistoryLocation from '@ember/routing/history-location';\nimport EmberNoneLocation from '@ember/routing/none-location';\nimport EmberRoute from '@ember/routing/route';\nimport EmberRouter from '@ember/routing/router';\nimport { controllerFor as emberControllerFor, generateController as emberGenerateController, generateControllerFactory as emberGenerateControllerFactory, DSL as EmberRouterDSL } from '@ember/routing/-internals';\nimport { isNone as emberIsNone, isBlank as emberIsBlank, isEmpty as emberIsEmpty, isPresent as emberIsPresent, isEqual as emberIsEqual, typeOf as emberTypeOf, compare as emberCompare } from '@ember/utils';\nimport * as glimmerRuntime from '@glimmer/runtime';\nimport { helperCapabilities, setModifierManager, setComponentTemplate, getComponentTemplate, setHelperManager } from '@glimmer/manager';\nimport { assertDestroyablesDestroyed, associateDestroyableChild, destroy as emberDestroy, enableDestroyableTracking, isDestroying, isDestroyed, registerDestructor, unregisterDestructor } from '@ember/destroyable';\nimport { _impl as EmberTestingImpl } from '@ember/test';\nimport * as templateCompilation from '@ember/template-compilation';\n// eslint-disable-next-line @typescript-eslint/no-namespace\nvar Ember;\n(function (Ember) {\n  Ember.isNamespace = true;\n  function toString() {\n    return 'Ember';\n  }\n  Ember.toString = toString;\n  // ****@ember/-internals/container****\n  Ember.Container = InternalContainer;\n  Ember.Registry = InternalRegistry;\n  // ****@ember/-internals/glimmer****\n  // Partially re-exported from @glimmer/manager\n  Ember._setComponentManager = setComponentManager;\n  Ember._componentManagerCapabilities = componentCapabilities;\n  Ember._modifierManagerCapabilities = modifierCapabilities;\n  // ****@ember/-internals/meta****\n  Ember.meta = internalMeta;\n  // ****@ember/-internals/metal****\n  Ember._createCache = metal.createCache; // Also @glimmer/validator\n  Ember._cacheGetValue = metal.getValue; // Also @glimmer/validator\n  Ember._cacheIsConst = metal.isConst; // Also @glimmer/validator\n  Ember._descriptor = metal.nativeDescDecorator;\n  Ember._getPath = metal._getPath;\n  Ember._setClassicDecorator = metal.setClassicDecorator;\n  Ember._tracked = metal.tracked; // Also exported from @glimmer/tracking\n  Ember.beginPropertyChanges = metal.beginPropertyChanges;\n  Ember.changeProperties = metal.changeProperties;\n  Ember.endPropertyChanges = metal.endPropertyChanges;\n  Ember.hasListeners = metal.hasListeners;\n  Ember.libraries = metal.libraries;\n  // ****@ember/-internals/runtime****\n  Ember._ContainerProxyMixin = ContainerProxyMixin;\n  Ember._ProxyMixin = internalProxyMixin;\n  Ember._RegistryProxyMixin = RegistryProxyMixin;\n  Ember.ActionHandler = InternalActionHandler;\n  Ember.Comparable = InternalComparable;\n  // This syntax is namespace-specific: `import` in a namespace is aliasing one\n  // namespace to another, while `export` marks the item public on the namespace\n  // (as with the rest of the exported items).\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  Ember.RSVP = _RSVP;\n  // ****@ember/-internals/view****\n  Ember.ComponentLookup = views.ComponentLookup;\n  Ember.EventDispatcher = views.EventDispatcher;\n  // ****@ember/-internals/utils****\n  Ember._Cache = utils.Cache;\n  Ember.GUID_KEY = utils.GUID_KEY;\n  Ember.canInvoke = utils.canInvoke;\n  Ember.generateGuid = utils.generateGuid;\n  Ember.guidFor = utils.guidFor;\n  Ember.uuid = utils.uuid;\n  Ember.wrap = utils.wrap;\n  // ****@ember/application****\n  Ember.getOwner = applicationGetOwner;\n  Ember.onLoad = applicationOnLoad;\n  Ember.runLoadHooks = applicationRunLoadHooks;\n  Ember.setOwner = applicationSetOwner;\n  Ember.Application = EmberApplication;\n  // ****@ember/application/instance****\n  Ember.ApplicationInstance = EmberApplicationInstance;\n  // // ****@ember/application/namespace****\n  Ember.Namespace = EmberNamespace;\n  // ****@ember/array****\n  Ember.A = EmberA;\n  Ember.Array = EmberArray;\n  Ember.NativeArray = EmberNativeArray;\n  Ember.isArray = emberIsArray;\n  Ember.makeArray = emberMakeArray;\n  // ****@ember/array/mutable****\n  Ember.MutableArray = EmberMutableArray;\n  // ****@ember/array/proxy****\n  Ember.ArrayProxy = EmberArrayProxy;\n  // ****@ember/canary-features****\n  Ember.FEATURES = {\n    isEnabled,\n    ...EmberFEATURES\n  };\n  // ****@ember/component****\n  Ember._Input = EmberInput;\n  Ember.Component = EmberComponent;\n  // // ****@ember/component/helper****\n  Ember.Helper = EmberHelper;\n  // ****@ember/controller****\n  Ember.Controller = EmberController;\n  Ember.ControllerMixin = EmberControllerMixin;\n  // ****@ember/debug****\n  Ember._captureRenderTree = captureRenderTree;\n  Ember.assert = EmberDebug.assert;\n  Ember.warn = EmberDebug.warn;\n  Ember.debug = EmberDebug.debug;\n  Ember.deprecate = EmberDebug.deprecate;\n  Ember.deprecateFunc = EmberDebug.deprecateFunc;\n  Ember.runInDebug = EmberDebug.runInDebug;\n  Ember.inspect = EmberDebug.inspect;\n  Ember.Debug = {\n    registerDeprecationHandler: EmberDebug.registerDeprecationHandler,\n    registerWarnHandler: EmberDebug.registerWarnHandler,\n    // ****@ember/-internals/metal****\n    isComputed: metal.isComputed\n  };\n  // ****@ember/debug/container-debug-adapter****\n  Ember.ContainerDebugAdapter = EmberContainerDebugAdapter;\n  // ****@ember/debug/data-adapter****\n  Ember.DataAdapter = EmberDataAdapter;\n  // ****@ember/destroyable****\n  Ember._assertDestroyablesDestroyed = assertDestroyablesDestroyed;\n  Ember._associateDestroyableChild = associateDestroyableChild;\n  Ember._enableDestroyableTracking = enableDestroyableTracking;\n  Ember._isDestroying = isDestroying;\n  Ember._isDestroyed = isDestroyed;\n  Ember._registerDestructor = registerDestructor;\n  Ember._unregisterDestructor = unregisterDestructor;\n  Ember.destroy = emberDestroy;\n  // ****@ember/engine****\n  Ember.Engine = EmberEngine;\n  // ****@ember/engine/instance****\n  Ember.EngineInstance = EmberEngineInstance;\n  // ****@ember/enumerable****\n  Ember.Enumerable = EmberEnumerable;\n  // ****@ember/enumerable/mutable****\n  Ember.MutableEnumerable = EmberMutableEnumerable;\n  // ****@ember/instrumentation****\n  /** @private */\n  Ember.instrument = instrumentation.instrument;\n  /** @private */\n  Ember.subscribe = instrumentation.subscribe;\n  /** @private */\n  Ember.Instrumentation = {\n    instrument: instrumentation.instrument,\n    subscribe: instrumentation.subscribe,\n    unsubscribe: instrumentation.unsubscribe,\n    reset: instrumentation.reset\n  };\n  // ****@ember/object****\n  Ember.Object = EmberObject;\n  Ember._action = action;\n  Ember.computed = emberComputed;\n  Ember.defineProperty = emberDefineProperty;\n  Ember.get = emberGet;\n  Ember.getProperties = emberGetProperties;\n  Ember.notifyPropertyChange = emberNotifyPropertyChange;\n  Ember.observer = emberObserver;\n  Ember.set = emberSet;\n  Ember.trySet = emberTrySet;\n  Ember.setProperties = emberSetProperties;\n  // ****@ember/object/-internals****\n  Ember.cacheFor = emberCacheFor;\n  // ****@ember/object/compat****\n  Ember._dependentKeyCompat = dependentKeyCompat;\n  // ****@ember/object/computed****\n  Ember.ComputedProperty = EmberComputedProperty;\n  Ember.expandProperties = emberExpandProperties;\n  // ****@ember/object/core****\n  Ember.CoreObject = EmberCoreObject;\n  // ****@ember/object/evented****\n  Ember.Evented = EmberEvented;\n  Ember.on = emberOn;\n  // ****@ember/object/events****\n  Ember.addListener = emberAddListener;\n  Ember.removeListener = emberRemoveListener;\n  Ember.sendEvent = emberSendEvent;\n  // ****@ember/object/mixin****\n  Ember.Mixin = EmberMixin;\n  Ember.mixin = emberMixin;\n  // ****@ember/object/observable****\n  Ember.Observable = EmberObservable;\n  // ****@ember/object/observers****\n  Ember.addObserver = emberAddObserver;\n  Ember.removeObserver = emberRemoveObserver;\n  // ****@ember/object/promise-proxy-mixin****\n  Ember.PromiseProxyMixin = EmberPromiseProxyMixin;\n  // ****@ember/object/proxy****\n  Ember.ObjectProxy = EmberObjectProxy;\n  // ****@ember/routing/-internals****\n  Ember.RouterDSL = EmberRouterDSL;\n  Ember.controllerFor = emberControllerFor;\n  Ember.generateController = emberGenerateController;\n  Ember.generateControllerFactory = emberGenerateControllerFactory;\n  // ****@ember/routing/hash-location****\n  Ember.HashLocation = EmberHashLocation;\n  // ****@ember/routing/history-location****\n  Ember.HistoryLocation = EmberHistoryLocation;\n  // ****@ember/routing/none-location****\n  Ember.NoneLocation = EmberNoneLocation;\n  // ****@ember/routing/route****\n  Ember.Route = EmberRoute;\n  // ****@ember/routing/router****\n  Ember.Router = EmberRouter;\n  // // ****@ember/runloop****\n  Ember.run = emberRun;\n  // // ****@ember/service****\n  Ember.Service = EmberService;\n  // ****@ember/utils****\n  Ember.compare = emberCompare;\n  Ember.isBlank = emberIsBlank;\n  Ember.isEmpty = emberIsEmpty;\n  Ember.isEqual = emberIsEqual;\n  Ember.isNone = emberIsNone;\n  Ember.isPresent = emberIsPresent;\n  Ember.typeOf = emberTypeOf;\n  // ****@ember/version****\n  /**\n    The semantic version\n       @property VERSION\n    @type String\n    @public\n  */\n  Ember.VERSION = Version;\n  Ember.ViewUtils = {\n    // ****@ember/-internals/views****\n    getChildViews: views.getChildViews,\n    getElementView: views.getElementView,\n    getRootViews: views.getRootViews,\n    getViewBounds: views.getViewBounds,\n    getViewBoundingClientRect: views.getViewBoundingClientRect,\n    getViewClientRects: views.getViewClientRects,\n    getViewElement: views.getViewElement,\n    isSimpleClick: views.isSimpleClick,\n    // ****@ember/-internals/glimmer****\n    isSerializationFirstNode\n  };\n  // ****@glimmer/manager****\n  Ember._getComponentTemplate = getComponentTemplate;\n  Ember._helperManagerCapabilities = helperCapabilities;\n  Ember._setComponentTemplate = setComponentTemplate;\n  Ember._setHelperManager = setHelperManager;\n  Ember._setModifierManager = setModifierManager;\n  // ****@glimmer/runtime****\n  Ember._templateOnlyComponent = glimmerRuntime.templateOnlyComponent;\n  Ember._invokeHelper = glimmerRuntime.invokeHelper;\n  Ember._hash = glimmerRuntime.hash;\n  Ember._array = glimmerRuntime.array;\n  Ember._concat = glimmerRuntime.concat;\n  Ember._get = glimmerRuntime.get;\n  Ember._on = glimmerRuntime.on;\n  Ember._fn = glimmerRuntime.fn;\n  // Backburner\n  Ember._Backburner = Backburner;\n  // // ****@ember/controller, @ember/service****\n  /**\n    Namespace for injection helper methods.\n       @class inject\n    @namespace Ember\n    @static\n    @public\n  */\n  function inject() {\n    // uses `globalThis` to avoid clobbering with `Ember.Object` in TS namespace\n    emberAssert(`Injected properties must be created through helpers, see '${globalThis.Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`);\n  }\n  Ember.inject = inject;\n  // ****@ember/controller****\n  inject.controller = injectController;\n  // ****@ember/service****\n  inject.service = service;\n  Ember.__loader = {\n    get require() {\n      return globalThis.require;\n    },\n    get define() {\n      return globalThis.define;\n    },\n    get registry() {\n      let g = globalThis;\n      return g.requirejs?.entries ?? g.require.entries;\n    }\n  };\n})(Ember || (Ember = {}));\nObject.defineProperty(Ember, 'ENV', {\n  get: getENV,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'lookup', {\n  get: getLookup,\n  set: setLookup,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'onerror', {\n  get: getOnerror,\n  set: setOnerror,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'testing', {\n  get: EmberDebug.isTesting,\n  set: EmberDebug.setTesting,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'BOOTED', {\n  configurable: false,\n  enumerable: false,\n  get: metal.isNamespaceSearchDisabled,\n  set: metal.setNamespaceSearchDisabled\n});\nObject.defineProperty(Ember, 'TEMPLATES', {\n  get: getTemplates,\n  set: setTemplates,\n  configurable: false,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'TEMPLATES', {\n  get: getTemplates,\n  set: setTemplates,\n  configurable: false,\n  enumerable: false\n});\n// ****@ember/debug****\nObject.defineProperty(Ember, 'testing', {\n  get: EmberDebug.isTesting,\n  set: EmberDebug.setTesting,\n  enumerable: false\n});\napplicationRunLoadHooks('Ember.Application', EmberApplication);\nlet EmberHandlebars = {\n  template,\n  Utils: {\n    escapeExpression\n  }\n};\nlet EmberHTMLBars = {\n  template\n};\nfunction defineEmberTemplateCompilerLazyLoad(key) {\n  Object.defineProperty(Ember, key, {\n    configurable: true,\n    enumerable: true,\n    get() {\n      if (templateCompilation.__emberTemplateCompiler) {\n        EmberHTMLBars.precompile = EmberHandlebars.precompile = templateCompilation.__emberTemplateCompiler.precompile;\n        EmberHTMLBars.compile = EmberHandlebars.compile = templateCompilation.compileTemplate;\n        Object.defineProperty(Ember, 'HTMLBars', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: EmberHTMLBars\n        });\n        Object.defineProperty(Ember, 'Handlebars', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: EmberHandlebars\n        });\n      }\n      return key === 'Handlebars' ? EmberHandlebars : EmberHTMLBars;\n    }\n  });\n}\ndefineEmberTemplateCompilerLazyLoad('HTMLBars');\ndefineEmberTemplateCompilerLazyLoad('Handlebars');\n// do this to ensure that Ember.Test is defined properly on the global\n// if it is present.\nfunction defineEmberTestingLazyLoad(key) {\n  Object.defineProperty(Ember, key, {\n    configurable: true,\n    enumerable: true,\n    get() {\n      if (EmberTestingImpl) {\n        let {\n          Test,\n          Adapter,\n          QUnitAdapter,\n          setupForTesting\n        } = EmberTestingImpl;\n        // @ts-expect-error We should not do this\n        Test.Adapter = Adapter;\n        // @ts-expect-error We should not do this\n        Test.QUnitAdapter = QUnitAdapter;\n        Object.defineProperty(Ember, 'Test', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: Test\n        });\n        Object.defineProperty(Ember, 'setupForTesting', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: setupForTesting\n        });\n        return key === 'Test' ? Test : setupForTesting;\n      }\n      return undefined;\n    }\n  });\n}\ndefineEmberTestingLazyLoad('Test');\ndefineEmberTestingLazyLoad('setupForTesting');\n// @ts-expect-error Per types, runLoadHooks requires a second parameter. Should we loosen types?\napplicationRunLoadHooks('Ember');\nexport default Ember;","export default \"5.8.0\";\n","var createObject = Object.create;\nfunction createMap() {\n    var map = createObject(null);\n    map[\"__\"] = undefined;\n    delete map[\"__\"];\n    return map;\n}\n\nvar Target = function Target(path, matcher, delegate) {\n    this.path = path;\n    this.matcher = matcher;\n    this.delegate = delegate;\n};\nTarget.prototype.to = function to (target, callback) {\n    var delegate = this.delegate;\n    if (delegate && delegate.willAddRoute) {\n        target = delegate.willAddRoute(this.matcher.target, target);\n    }\n    this.matcher.add(this.path, target);\n    if (callback) {\n        if (callback.length === 0) {\n            throw new Error(\"You must have an argument in the function passed to `to`\");\n        }\n        this.matcher.addChild(this.path, target, callback, this.delegate);\n    }\n};\nvar Matcher = function Matcher(target) {\n    this.routes = createMap();\n    this.children = createMap();\n    this.target = target;\n};\nMatcher.prototype.add = function add (path, target) {\n    this.routes[path] = target;\n};\nMatcher.prototype.addChild = function addChild (path, target, callback, delegate) {\n    var matcher = new Matcher(target);\n    this.children[path] = matcher;\n    var match = generateMatch(path, matcher, delegate);\n    if (delegate && delegate.contextEntered) {\n        delegate.contextEntered(target, match);\n    }\n    callback(match);\n};\nfunction generateMatch(startingPath, matcher, delegate) {\n    function match(path, callback) {\n        var fullPath = startingPath + path;\n        if (callback) {\n            callback(generateMatch(fullPath, matcher, delegate));\n        }\n        else {\n            return new Target(fullPath, matcher, delegate);\n        }\n    }\n    \n    return match;\n}\nfunction addRoute(routeArray, path, handler) {\n    var len = 0;\n    for (var i = 0; i < routeArray.length; i++) {\n        len += routeArray[i].path.length;\n    }\n    path = path.substr(len);\n    var route = { path: path, handler: handler };\n    routeArray.push(route);\n}\nfunction eachRoute(baseRoute, matcher, callback, binding) {\n    var routes = matcher.routes;\n    var paths = Object.keys(routes);\n    for (var i = 0; i < paths.length; i++) {\n        var path = paths[i];\n        var routeArray = baseRoute.slice();\n        addRoute(routeArray, path, routes[path]);\n        var nested = matcher.children[path];\n        if (nested) {\n            eachRoute(routeArray, nested, callback, binding);\n        }\n        else {\n            callback.call(binding, routeArray);\n        }\n    }\n}\nvar map = function (callback, addRouteCallback) {\n    var matcher = new Matcher();\n    callback(generateMatch(\"\", matcher, this.delegate));\n    eachRoute([], matcher, function (routes) {\n        if (addRouteCallback) {\n            addRouteCallback(this, routes);\n        }\n        else {\n            this.add(routes);\n        }\n    }, this);\n};\n\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\nfunction normalizePath(path) {\n    return path.split(\"/\")\n        .map(normalizeSegment)\n        .join(\"/\");\n}\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nvar SEGMENT_RESERVED_CHARS = /%|\\//g;\nfunction normalizeSegment(segment) {\n    if (segment.length < 3 || segment.indexOf(\"%\") === -1)\n        { return segment; }\n    return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nvar PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\nfunction encodePathSegment(str) {\n    return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\n\nvar escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\nvar isArray = Array.isArray;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction getParam(params, key) {\n    if (typeof params !== \"object\" || params === null) {\n        throw new Error(\"You must pass an object as the second argument to `generate`.\");\n    }\n    if (!hasOwnProperty.call(params, key)) {\n        throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n    }\n    var value = params[key];\n    var str = typeof value === \"string\" ? value : \"\" + value;\n    if (str.length === 0) {\n        throw new Error(\"You must provide a param `\" + key + \"`.\");\n    }\n    return str;\n}\nvar eachChar = [];\neachChar[0 /* Static */] = function (segment, currentState) {\n    var state = currentState;\n    var value = segment.value;\n    for (var i = 0; i < value.length; i++) {\n        var ch = value.charCodeAt(i);\n        state = state.put(ch, false, false);\n    }\n    return state;\n};\neachChar[1 /* Dynamic */] = function (_, currentState) {\n    return currentState.put(47 /* SLASH */, true, true);\n};\neachChar[2 /* Star */] = function (_, currentState) {\n    return currentState.put(-1 /* ANY */, false, true);\n};\neachChar[4 /* Epsilon */] = function (_, currentState) {\n    return currentState;\n};\nvar regex = [];\nregex[0 /* Static */] = function (segment) {\n    return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[1 /* Dynamic */] = function () {\n    return \"([^/]+)\";\n};\nregex[2 /* Star */] = function () {\n    return \"(.+)\";\n};\nregex[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar generate = [];\ngenerate[0 /* Static */] = function (segment) {\n    return segment.value;\n};\ngenerate[1 /* Dynamic */] = function (segment, params) {\n    var value = getParam(params, segment.value);\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        return encodePathSegment(value);\n    }\n    else {\n        return value;\n    }\n};\ngenerate[2 /* Star */] = function (segment, params) {\n    return getParam(params, segment.value);\n};\ngenerate[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar EmptyObject = Object.freeze({});\nvar EmptyArray = Object.freeze([]);\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments, route, types) {\n    // normalize route as not starting with a \"/\". Recognition will\n    // also normalize.\n    if (route.length > 0 && route.charCodeAt(0) === 47 /* SLASH */) {\n        route = route.substr(1);\n    }\n    var parts = route.split(\"/\");\n    var names = undefined;\n    var shouldDecodes = undefined;\n    for (var i = 0; i < parts.length; i++) {\n        var part = parts[i];\n        var flags = 0;\n        var type = 0;\n        if (part === \"\") {\n            type = 4 /* Epsilon */;\n        }\n        else if (part.charCodeAt(0) === 58 /* COLON */) {\n            type = 1 /* Dynamic */;\n        }\n        else if (part.charCodeAt(0) === 42 /* STAR */) {\n            type = 2 /* Star */;\n        }\n        else {\n            type = 0 /* Static */;\n        }\n        flags = 2 << type;\n        if (flags & 12 /* Named */) {\n            part = part.slice(1);\n            names = names || [];\n            names.push(part);\n            shouldDecodes = shouldDecodes || [];\n            shouldDecodes.push((flags & 4 /* Decoded */) !== 0);\n        }\n        if (flags & 14 /* Counted */) {\n            types[type]++;\n        }\n        segments.push({\n            type: type,\n            value: normalizeSegment(part)\n        });\n    }\n    return {\n        names: names || EmptyArray,\n        shouldDecodes: shouldDecodes || EmptyArray,\n    };\n}\nfunction isEqualCharSpec(spec, char, negate) {\n    return spec.char === char && spec.negate === negate;\n}\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nvar State = function State(states, id, char, negate, repeat) {\n    this.states = states;\n    this.id = id;\n    this.char = char;\n    this.negate = negate;\n    this.nextStates = repeat ? id : null;\n    this.pattern = \"\";\n    this._regex = undefined;\n    this.handlers = undefined;\n    this.types = undefined;\n};\nState.prototype.regex = function regex$1 () {\n    if (!this._regex) {\n        this._regex = new RegExp(this.pattern);\n    }\n    return this._regex;\n};\nState.prototype.get = function get (char, negate) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (nextStates === null)\n        { return; }\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isEqualCharSpec(child, char, negate)) {\n                return child;\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isEqualCharSpec(child$1, char, negate)) {\n            return child$1;\n        }\n    }\n};\nState.prototype.put = function put (char, negate, repeat) {\n    var state;\n    // If the character specification already exists in a child of the current\n    // state, just return that state.\n    if (state = this.get(char, negate)) {\n        return state;\n    }\n    // Make a new state for the character spec\n    var states = this.states;\n    state = new State(states, states.length, char, negate, repeat);\n    states[states.length] = state;\n    // Insert the new state as a child of the current state\n    if (this.nextStates == null) {\n        this.nextStates = state.id;\n    }\n    else if (isArray(this.nextStates)) {\n        this.nextStates.push(state.id);\n    }\n    else {\n        this.nextStates = [this.nextStates, state.id];\n    }\n    // Return the new state\n    return state;\n};\n// Find a list of child states matching the next character\nState.prototype.match = function match (ch) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (!nextStates)\n        { return []; }\n    var returned = [];\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isMatch(child, ch)) {\n                returned.push(child);\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isMatch(child$1, ch)) {\n            returned.push(child$1);\n        }\n    }\n    return returned;\n};\nfunction isMatch(spec, char) {\n    return spec.negate ? spec.char !== char && spec.char !== -1 /* ANY */ : spec.char === char || spec.char === -1 /* ANY */;\n}\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states) {\n    return states.sort(function (a, b) {\n        var ref = a.types || [0, 0, 0];\n        var astatics = ref[0];\n        var adynamics = ref[1];\n        var astars = ref[2];\n        var ref$1 = b.types || [0, 0, 0];\n        var bstatics = ref$1[0];\n        var bdynamics = ref$1[1];\n        var bstars = ref$1[2];\n        if (astars !== bstars) {\n            return astars - bstars;\n        }\n        if (astars) {\n            if (astatics !== bstatics) {\n                return bstatics - astatics;\n            }\n            if (adynamics !== bdynamics) {\n                return bdynamics - adynamics;\n            }\n        }\n        if (adynamics !== bdynamics) {\n            return adynamics - bdynamics;\n        }\n        if (astatics !== bstatics) {\n            return bstatics - astatics;\n        }\n        return 0;\n    });\n}\nfunction recognizeChar(states, ch) {\n    var nextStates = [];\n    for (var i = 0, l = states.length; i < l; i++) {\n        var state = states[i];\n        nextStates = nextStates.concat(state.match(ch));\n    }\n    return nextStates;\n}\nvar RecognizeResults = function RecognizeResults(queryParams) {\n    this.length = 0;\n    this.queryParams = queryParams || {};\n};\n\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice = Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\nfunction findHandler(state, originalPath, queryParams) {\n    var handlers = state.handlers;\n    var regex = state.regex();\n    if (!regex || !handlers)\n        { throw new Error(\"state not initialized\"); }\n    var captures = originalPath.match(regex);\n    var currentCapture = 1;\n    var result = new RecognizeResults(queryParams);\n    result.length = handlers.length;\n    for (var i = 0; i < handlers.length; i++) {\n        var handler = handlers[i];\n        var names = handler.names;\n        var shouldDecodes = handler.shouldDecodes;\n        var params = EmptyObject;\n        var isDynamic = false;\n        if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n            for (var j = 0; j < names.length; j++) {\n                isDynamic = true;\n                var name = names[j];\n                var capture = captures && captures[currentCapture++];\n                if (params === EmptyObject) {\n                    params = {};\n                }\n                if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n                    params[name] = capture && decodeURIComponent(capture);\n                }\n                else {\n                    params[name] = capture;\n                }\n            }\n        }\n        result[i] = {\n            handler: handler.handler,\n            params: params,\n            isDynamic: isDynamic\n        };\n    }\n    return result;\n}\nfunction decodeQueryParamPart(part) {\n    // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n    part = part.replace(/\\+/gm, \"%20\");\n    var result;\n    try {\n        result = decodeURIComponent(part);\n    }\n    catch (error) {\n        result = \"\";\n    }\n    return result;\n}\nvar RouteRecognizer = function RouteRecognizer() {\n    this.names = createMap();\n    var states = [];\n    var state = new State(states, 0, -1 /* ANY */, true, false);\n    states[0] = state;\n    this.states = states;\n    this.rootState = state;\n};\nRouteRecognizer.prototype.add = function add (routes, options) {\n    var currentState = this.rootState;\n    var pattern = \"^\";\n    var types = [0, 0, 0];\n    var handlers = new Array(routes.length);\n    var allSegments = [];\n    var isEmpty = true;\n    var j = 0;\n    for (var i = 0; i < routes.length; i++) {\n        var route = routes[i];\n        var ref = parse(allSegments, route.path, types);\n            var names = ref.names;\n            var shouldDecodes = ref.shouldDecodes;\n        // preserve j so it points to the start of newly added segments\n        for (; j < allSegments.length; j++) {\n            var segment = allSegments[j];\n            if (segment.type === 4 /* Epsilon */) {\n                continue;\n            }\n            isEmpty = false;\n            // Add a \"/\" for the new segment\n            currentState = currentState.put(47 /* SLASH */, false, false);\n            pattern += \"/\";\n            // Add a representation of the segment to the NFA and regex\n            currentState = eachChar[segment.type](segment, currentState);\n            pattern += regex[segment.type](segment);\n        }\n        handlers[i] = {\n            handler: route.handler,\n            names: names,\n            shouldDecodes: shouldDecodes\n        };\n    }\n    if (isEmpty) {\n        currentState = currentState.put(47 /* SLASH */, false, false);\n        pattern += \"/\";\n    }\n    currentState.handlers = handlers;\n    currentState.pattern = pattern + \"$\";\n    currentState.types = types;\n    var name;\n    if (typeof options === \"object\" && options !== null && options.as) {\n        name = options.as;\n    }\n    if (name) {\n        // if (this.names[name]) {\n        //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n        // }\n        this.names[name] = {\n            segments: allSegments,\n            handlers: handlers\n        };\n    }\n};\nRouteRecognizer.prototype.handlersFor = function handlersFor (name) {\n    var route = this.names[name];\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var result = new Array(route.handlers.length);\n    for (var i = 0; i < route.handlers.length; i++) {\n        var handler = route.handlers[i];\n        result[i] = handler;\n    }\n    return result;\n};\nRouteRecognizer.prototype.hasRoute = function hasRoute (name) {\n    return !!this.names[name];\n};\nRouteRecognizer.prototype.generate = function generate$1 (name, params) {\n    var route = this.names[name];\n    var output = \"\";\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var segments = route.segments;\n    for (var i = 0; i < segments.length; i++) {\n        var segment = segments[i];\n        if (segment.type === 4 /* Epsilon */) {\n            continue;\n        }\n        output += \"/\";\n        output += generate[segment.type](segment, params);\n    }\n    if (output.charAt(0) !== \"/\") {\n        output = \"/\" + output;\n    }\n    if (params && params.queryParams) {\n        output += this.generateQueryString(params.queryParams);\n    }\n    return output;\n};\nRouteRecognizer.prototype.generateQueryString = function generateQueryString (params) {\n    var pairs = [];\n    var keys = Object.keys(params);\n    keys.sort();\n    for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        var value = params[key];\n        if (value == null) {\n            continue;\n        }\n        var pair = encodeURIComponent(key);\n        if (isArray(value)) {\n            for (var j = 0; j < value.length; j++) {\n                var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n                pairs.push(arrayPair);\n            }\n        }\n        else {\n            pair += \"=\" + encodeURIComponent(value);\n            pairs.push(pair);\n        }\n    }\n    if (pairs.length === 0) {\n        return \"\";\n    }\n    return \"?\" + pairs.join(\"&\");\n};\nRouteRecognizer.prototype.parseQueryString = function parseQueryString (queryString) {\n    var pairs = queryString.split(\"&\");\n    var queryParams = {};\n    for (var i = 0; i < pairs.length; i++) {\n        var pair = pairs[i].split(\"=\"), key = decodeQueryParamPart(pair[0]), keyLength = key.length, isArray = false, value = (void 0);\n        if (pair.length === 1) {\n            value = \"true\";\n        }\n        else {\n            // Handle arrays\n            if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n                isArray = true;\n                key = key.slice(0, keyLength - 2);\n                if (!queryParams[key]) {\n                    queryParams[key] = [];\n                }\n            }\n            value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n        }\n        if (isArray) {\n            queryParams[key].push(value);\n        }\n        else {\n            queryParams[key] = value;\n        }\n    }\n    return queryParams;\n};\nRouteRecognizer.prototype.recognize = function recognize (path) {\n    var results;\n    var states = [this.rootState];\n    var queryParams = {};\n    var isSlashDropped = false;\n    var hashStart = path.indexOf(\"#\");\n    if (hashStart !== -1) {\n        path = path.substr(0, hashStart);\n    }\n    var queryStart = path.indexOf(\"?\");\n    if (queryStart !== -1) {\n        var queryString = path.substr(queryStart + 1, path.length);\n        path = path.substr(0, queryStart);\n        queryParams = this.parseQueryString(queryString);\n    }\n    if (path.charAt(0) !== \"/\") {\n        path = \"/\" + path;\n    }\n    var originalPath = path;\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        path = normalizePath(path);\n    }\n    else {\n        path = decodeURI(path);\n        originalPath = decodeURI(originalPath);\n    }\n    var pathLen = path.length;\n    if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n        path = path.substr(0, pathLen - 1);\n        originalPath = originalPath.substr(0, originalPath.length - 1);\n        isSlashDropped = true;\n    }\n    for (var i = 0; i < path.length; i++) {\n        states = recognizeChar(states, path.charCodeAt(i));\n        if (!states.length) {\n            break;\n        }\n    }\n    var solutions = [];\n    for (var i$1 = 0; i$1 < states.length; i$1++) {\n        if (states[i$1].handlers) {\n            solutions.push(states[i$1]);\n        }\n    }\n    states = sortSolutions(solutions);\n    var state = solutions[0];\n    if (state && state.handlers) {\n        // if a trailing slash was dropped and a star segment is the last segment\n        // specified, put the trailing slash back\n        if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n            originalPath = originalPath + \"/\";\n        }\n        results = findHandler(state, originalPath, queryParams);\n    }\n    return results;\n};\nRouteRecognizer.VERSION = \"0.3.4\";\n// Set to false to opt-out of encoding and decoding path segments.\n// See https://github.com/tildeio/route-recognizer/pull/55\nRouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\nRouteRecognizer.Normalizer = {\n    normalizeSegment: normalizeSegment, normalizePath: normalizePath, encodePathSegment: encodePathSegment\n};\nRouteRecognizer.prototype.map = map;\n\nexport default RouteRecognizer;\n\n//# sourceMappingURL=route-recognizer.es.js.map\n","import RouteRecognizer from 'route-recognizer';\nimport { Promise as Promise$1 } from 'rsvp';\nimport { DEBUG } from '@glimmer/env';\n\nfunction buildTransitionAborted() {\n    let error = new Error('TransitionAborted');\n    error.name = 'TransitionAborted';\n    error.code = 'TRANSITION_ABORTED';\n    return error;\n}\nfunction isTransitionAborted(maybeError) {\n    return (typeof maybeError === 'object' &&\n        maybeError !== null &&\n        maybeError.code === 'TRANSITION_ABORTED');\n}\nfunction isAbortable(maybeAbortable) {\n    return (typeof maybeAbortable === 'object' &&\n        maybeAbortable !== null &&\n        typeof maybeAbortable.isAborted === 'boolean');\n}\nfunction throwIfAborted(maybe) {\n    if (isAbortable(maybe) && maybe.isAborted) {\n        throw buildTransitionAborted();\n    }\n}\n\nconst slice = Array.prototype.slice;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n/**\n  Determines if an object is Promise by checking if it is \"thenable\".\n**/\nfunction isPromise(p) {\n    return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\nfunction merge(hash, other) {\n    for (let prop in other) {\n        if (hasOwnProperty.call(other, prop)) {\n            hash[prop] = other[prop];\n        }\n    }\n}\n/**\n  @private\n\n  Extracts query params from the end of an array\n**/\nfunction extractQueryParams(array) {\n    let len = array && array.length, head, queryParams;\n    if (len && len > 0) {\n        let obj = array[len - 1];\n        if (isQueryParamsContainer(obj)) {\n            queryParams = obj.queryParams;\n            head = slice.call(array, 0, len - 1);\n            return [head, queryParams];\n        }\n    }\n    // SAFETY: We confirmed that the last item isn't a QP container\n    return [array, null];\n}\n// TODO: Actually check that Dict is QueryParams\nfunction isQueryParamsContainer(obj) {\n    if (obj && typeof obj === 'object') {\n        let cast = obj;\n        return ('queryParams' in cast && Object.keys(cast.queryParams).every((k) => typeof k === 'string'));\n    }\n    return false;\n}\n/**\n  @private\n\n  Coerces query param properties and array elements into strings.\n**/\nfunction coerceQueryParamsToString(queryParams) {\n    for (let key in queryParams) {\n        let val = queryParams[key];\n        if (typeof val === 'number') {\n            queryParams[key] = '' + val;\n        }\n        else if (Array.isArray(val)) {\n            for (let i = 0, l = val.length; i < l; i++) {\n                val[i] = '' + val[i];\n            }\n        }\n    }\n}\n/**\n  @private\n */\nfunction log(router, ...args) {\n    if (!router.log) {\n        return;\n    }\n    if (args.length === 2) {\n        let [sequence, msg] = args;\n        router.log('Transition #' + sequence + ': ' + msg);\n    }\n    else {\n        let [msg] = args;\n        router.log(msg);\n    }\n}\nfunction isParam(object) {\n    return (typeof object === 'string' ||\n        object instanceof String ||\n        typeof object === 'number' ||\n        object instanceof Number);\n}\nfunction forEach(array, callback) {\n    for (let i = 0, l = array.length; i < l && callback(array[i]) !== false; i++) {\n        // empty intentionally\n    }\n}\nfunction getChangelist(oldObject, newObject) {\n    let key;\n    let results = {\n        all: {},\n        changed: {},\n        removed: {},\n    };\n    merge(results.all, newObject);\n    let didChange = false;\n    coerceQueryParamsToString(oldObject);\n    coerceQueryParamsToString(newObject);\n    // Calculate removals\n    for (key in oldObject) {\n        if (hasOwnProperty.call(oldObject, key)) {\n            if (!hasOwnProperty.call(newObject, key)) {\n                didChange = true;\n                results.removed[key] = oldObject[key];\n            }\n        }\n    }\n    // Calculate changes\n    for (key in newObject) {\n        if (hasOwnProperty.call(newObject, key)) {\n            let oldElement = oldObject[key];\n            let newElement = newObject[key];\n            if (isArray(oldElement) && isArray(newElement)) {\n                if (oldElement.length !== newElement.length) {\n                    results.changed[key] = newObject[key];\n                    didChange = true;\n                }\n                else {\n                    for (let i = 0, l = oldElement.length; i < l; i++) {\n                        if (oldElement[i] !== newElement[i]) {\n                            results.changed[key] = newObject[key];\n                            didChange = true;\n                        }\n                    }\n                }\n            }\n            else if (oldObject[key] !== newObject[key]) {\n                results.changed[key] = newObject[key];\n                didChange = true;\n            }\n        }\n    }\n    return didChange ? results : undefined;\n}\nfunction isArray(obj) {\n    return Array.isArray(obj);\n}\nfunction promiseLabel(label) {\n    return 'Router: ' + label;\n}\n\nconst STATE_SYMBOL = `__STATE__-2619860001345920-3322w3`;\nconst PARAMS_SYMBOL = `__PARAMS__-261986232992830203-23323`;\nconst QUERY_PARAMS_SYMBOL = `__QPS__-2619863929824844-32323`;\n/**\n  A Transition is a thenable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @constructor\n  @param {Object} router\n  @param {Object} intent\n  @param {Object} state\n  @param {Object} error\n  @private\n */\nclass Transition {\n    constructor(router, intent, state, error = undefined, previousTransition = undefined) {\n        this.from = null;\n        this.to = undefined;\n        this.isAborted = false;\n        this.isActive = true;\n        this.urlMethod = 'update';\n        this.resolveIndex = 0;\n        this.queryParamsOnly = false;\n        this.isTransition = true;\n        this.isCausedByAbortingTransition = false;\n        this.isCausedByInitialTransition = false;\n        this.isCausedByAbortingReplaceTransition = false;\n        this._visibleQueryParams = {};\n        this.isIntermediate = false;\n        this[STATE_SYMBOL] = state || router.state;\n        this.intent = intent;\n        this.router = router;\n        this.data = (intent && intent.data) || {};\n        this.resolvedModels = {};\n        this[QUERY_PARAMS_SYMBOL] = {};\n        this.promise = undefined;\n        this.error = undefined;\n        this[PARAMS_SYMBOL] = {};\n        this.routeInfos = [];\n        this.targetName = undefined;\n        this.pivotHandler = undefined;\n        this.sequence = -1;\n        if (DEBUG) {\n            let error = new Error(`Transition creation stack`);\n            this.debugCreationStack = () => error.stack;\n            // not aborted yet, will be replaced when `this.isAborted` is set\n            this.debugAbortStack = () => undefined;\n            this.debugPreviousTransition = previousTransition;\n        }\n        if (error) {\n            this.promise = Promise$1.reject(error);\n            this.error = error;\n            return;\n        }\n        // if you're doing multiple redirects, need the new transition to know if it\n        // is actually part of the first transition or not. Any further redirects\n        // in the initial transition also need to know if they are part of the\n        // initial transition\n        this.isCausedByAbortingTransition = !!previousTransition;\n        this.isCausedByInitialTransition =\n            !!previousTransition &&\n                (previousTransition.isCausedByInitialTransition || previousTransition.sequence === 0);\n        // Every transition in the chain is a replace\n        this.isCausedByAbortingReplaceTransition =\n            !!previousTransition &&\n                previousTransition.urlMethod === 'replace' &&\n                (!previousTransition.isCausedByAbortingTransition ||\n                    previousTransition.isCausedByAbortingReplaceTransition);\n        if (state) {\n            this[PARAMS_SYMBOL] = state.params;\n            this[QUERY_PARAMS_SYMBOL] = state.queryParams;\n            this.routeInfos = state.routeInfos;\n            let len = state.routeInfos.length;\n            if (len) {\n                this.targetName = state.routeInfos[len - 1].name;\n            }\n            for (let i = 0; i < len; ++i) {\n                let handlerInfo = state.routeInfos[i];\n                // TODO: this all seems hacky\n                if (!handlerInfo.isResolved) {\n                    break;\n                }\n                this.pivotHandler = handlerInfo.route;\n            }\n            this.sequence = router.currentSequence++;\n            this.promise = state.resolve(this).catch((result) => {\n                let error = this.router.transitionDidError(result, this);\n                throw error;\n            }, promiseLabel('Handle Abort'));\n        }\n        else {\n            this.promise = Promise$1.resolve(this[STATE_SYMBOL]);\n            this[PARAMS_SYMBOL] = {};\n        }\n    }\n    /**\n      The Transition's internal promise. Calling `.then` on this property\n      is that same as calling `.then` on the Transition object itself, but\n      this property is exposed for when you want to pass around a\n      Transition's promise, but not the Transition object itself, since\n      Transition object can be externally `abort`ed, while the promise\n      cannot.\n  \n      @property promise\n      @type {Object}\n      @public\n     */\n    /**\n      Custom state can be stored on a Transition's `data` object.\n      This can be useful for decorating a Transition within an earlier\n      hook and shared with a later hook. Properties set on `data` will\n      be copied to new transitions generated by calling `retry` on this\n      transition.\n  \n      @property data\n      @type {Object}\n      @public\n     */\n    /**\n      A standard promise hook that resolves if the transition\n      succeeds and rejects if it fails/redirects/aborts.\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method then\n      @param {Function} onFulfilled\n      @param {Function} onRejected\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    then(onFulfilled, onRejected, label) {\n        return this.promise.then(onFulfilled, onRejected, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thennable,\n      but not the Transition itself.\n  \n      @method catch\n      @param {Function} onRejection\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    catch(onRejection, label) {\n        return this.promise.catch(onRejection, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method finally\n      @param {Function} callback\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    finally(callback, label) {\n        return this.promise.finally(callback, label);\n    }\n    /**\n      Aborts the Transition. Note you can also implicitly abort a transition\n      by initiating another transition while a previous one is underway.\n  \n      @method abort\n      @return {Transition} this transition\n      @public\n     */\n    abort() {\n        this.rollback();\n        let transition = new Transition(this.router, undefined, undefined, undefined);\n        transition.to = this.from;\n        transition.from = this.from;\n        transition.isAborted = true;\n        this.router.routeWillChange(transition);\n        this.router.routeDidChange(transition);\n        return this;\n    }\n    rollback() {\n        if (!this.isAborted) {\n            log(this.router, this.sequence, this.targetName + ': transition was aborted');\n            if (DEBUG) {\n                let error = new Error(`Transition aborted stack`);\n                this.debugAbortStack = () => error.stack;\n            }\n            if (this.intent !== undefined && this.intent !== null) {\n                this.intent.preTransitionState = this.router.state;\n            }\n            this.isAborted = true;\n            this.isActive = false;\n            this.router.activeTransition = undefined;\n        }\n    }\n    redirect(newTransition) {\n        this.rollback();\n        this.router.routeWillChange(newTransition);\n    }\n    /**\n  \n      Retries a previously-aborted transition (making sure to abort the\n      transition if it's still active). Returns a new transition that\n      represents the new attempt to transition.\n  \n      @method retry\n      @return {Transition} new transition\n      @public\n     */\n    retry() {\n        // TODO: add tests for merged state retry()s\n        this.abort();\n        let newTransition = this.router.transitionByIntent(this.intent, false);\n        // inheriting a `null` urlMethod is not valid\n        // the urlMethod is only set to `null` when\n        // the transition is initiated *after* the url\n        // has been updated (i.e. `router.handleURL`)\n        //\n        // in that scenario, the url method cannot be\n        // inherited for a new transition because then\n        // the url would not update even though it should\n        if (this.urlMethod !== null) {\n            newTransition.method(this.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n  \n      Sets the URL-changing method to be employed at the end of a\n      successful transition. By default, a new Transition will just\n      use `updateURL`, but passing 'replace' to this method will\n      cause the URL to update using 'replaceWith' instead. Omitting\n      a parameter will disable the URL change, allowing for transitions\n      that don't update the URL at completion (this is also used for\n      handleURL, since the URL has already changed before the\n      transition took place).\n  \n      @method method\n      @param {String} method the type of URL-changing method to use\n        at the end of a transition. Accepted values are 'replace',\n        falsy values, or any other non-falsy value (which is\n        interpreted as an updateURL transition).\n  \n      @return {Transition} this transition\n      @public\n     */\n    method(method) {\n        this.urlMethod = method;\n        return this;\n    }\n    // Alias 'trigger' as 'send'\n    send(ignoreFailure = false, _name, err, transition, handler) {\n        this.trigger(ignoreFailure, _name, err, transition, handler);\n    }\n    /**\n  \n      Fires an event on the current list of resolved/resolving\n      handlers within this transition. Useful for firing events\n      on route hierarchies that haven't fully been entered yet.\n  \n      Note: This method is also aliased as `send`\n  \n      @method trigger\n      @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n      @param {String} name the name of the event to fire\n      @public\n     */\n    trigger(ignoreFailure = false, name, ...args) {\n        // TODO: Deprecate the current signature\n        if (typeof ignoreFailure === 'string') {\n            name = ignoreFailure;\n            ignoreFailure = false;\n        }\n        this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0, this.resolveIndex + 1), ignoreFailure, name, args);\n    }\n    /**\n      Transitions are aborted and their promises rejected\n      when redirects occur; this method returns a promise\n      that will follow any redirects that occur and fulfill\n      with the value fulfilled by any redirecting transitions\n      that occur.\n  \n      @method followRedirects\n      @return {Promise} a promise that fulfills with the same\n        value that the final redirecting transition fulfills with\n      @public\n     */\n    followRedirects() {\n        let router = this.router;\n        return this.promise.catch(function (reason) {\n            if (router.activeTransition) {\n                return router.activeTransition.followRedirects();\n            }\n            return Promise$1.reject(reason);\n        });\n    }\n    toString() {\n        return 'Transition (sequence ' + this.sequence + ')';\n    }\n    /**\n      @private\n     */\n    log(message) {\n        log(this.router, this.sequence, message);\n    }\n}\n/**\n  @private\n\n  Logs and returns an instance of TransitionAborted.\n */\nfunction logAbort(transition) {\n    log(transition.router, transition.sequence, 'detected abort.');\n    return buildTransitionAborted();\n}\nfunction isTransition(obj) {\n    return typeof obj === 'object' && obj instanceof Transition && obj.isTransition;\n}\nfunction prepareResult(obj) {\n    if (isTransition(obj)) {\n        return null;\n    }\n    return obj;\n}\n\nlet ROUTE_INFOS = new WeakMap();\nfunction toReadOnlyRouteInfo(routeInfos, queryParams = {}, includeAttributes = false) {\n    return routeInfos.map((info, i) => {\n        let { name, params, paramNames, context, route } = info;\n        // SAFETY: This should be safe since it is just for use as a key\n        let key = info;\n        if (ROUTE_INFOS.has(key) && includeAttributes) {\n            let routeInfo = ROUTE_INFOS.get(key);\n            routeInfo = attachMetadata(route, routeInfo);\n            let routeInfoWithAttribute = createRouteInfoWithAttributes(routeInfo, context);\n            ROUTE_INFOS.set(key, routeInfoWithAttribute);\n            return routeInfoWithAttribute;\n        }\n        let routeInfo = {\n            find(predicate, thisArg) {\n                let publicInfo;\n                let arr = [];\n                if (predicate.length === 3) {\n                    arr = routeInfos.map(\n                    // SAFETY: This should be safe since it is just for use as a key\n                    (info) => ROUTE_INFOS.get(info));\n                }\n                for (let i = 0; routeInfos.length > i; i++) {\n                    // SAFETY: This should be safe since it is just for use as a key\n                    publicInfo = ROUTE_INFOS.get(routeInfos[i]);\n                    if (predicate.call(thisArg, publicInfo, i, arr)) {\n                        return publicInfo;\n                    }\n                }\n                return undefined;\n            },\n            get name() {\n                return name;\n            },\n            get paramNames() {\n                return paramNames;\n            },\n            get metadata() {\n                return buildRouteInfoMetadata(info.route);\n            },\n            get parent() {\n                let parent = routeInfos[i - 1];\n                if (parent === undefined) {\n                    return null;\n                }\n                // SAFETY: This should be safe since it is just for use as a key\n                return ROUTE_INFOS.get(parent);\n            },\n            get child() {\n                let child = routeInfos[i + 1];\n                if (child === undefined) {\n                    return null;\n                }\n                // SAFETY: This should be safe since it is just for use as a key\n                return ROUTE_INFOS.get(child);\n            },\n            get localName() {\n                let parts = this.name.split('.');\n                return parts[parts.length - 1];\n            },\n            get params() {\n                return params;\n            },\n            get queryParams() {\n                return queryParams;\n            },\n        };\n        if (includeAttributes) {\n            routeInfo = createRouteInfoWithAttributes(routeInfo, context);\n        }\n        // SAFETY: This should be safe since it is just for use as a key\n        ROUTE_INFOS.set(info, routeInfo);\n        return routeInfo;\n    });\n}\nfunction createRouteInfoWithAttributes(routeInfo, context) {\n    let attributes = {\n        get attributes() {\n            return context;\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('attributes')) {\n        return Object.freeze(Object.assign({}, routeInfo, attributes));\n    }\n    return Object.assign(routeInfo, attributes);\n}\nfunction buildRouteInfoMetadata(route) {\n    if (route !== undefined && route !== null && route.buildRouteInfoMetadata !== undefined) {\n        return route.buildRouteInfoMetadata();\n    }\n    return null;\n}\nfunction attachMetadata(route, routeInfo) {\n    let metadata = {\n        get metadata() {\n            return buildRouteInfoMetadata(route);\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('metadata')) {\n        return Object.freeze(Object.assign({}, routeInfo, metadata));\n    }\n    return Object.assign(routeInfo, metadata);\n}\nclass InternalRouteInfo {\n    constructor(router, name, paramNames, route) {\n        this._routePromise = undefined;\n        this._route = null;\n        this.params = {};\n        this.isResolved = false;\n        this.name = name;\n        this.paramNames = paramNames;\n        this.router = router;\n        if (route) {\n            this._processRoute(route);\n        }\n    }\n    getModel(_transition) {\n        return Promise$1.resolve(this.context);\n    }\n    serialize(_context) {\n        return this.params || {};\n    }\n    resolve(transition) {\n        return Promise$1.resolve(this.routePromise)\n            .then((route) => {\n            throwIfAborted(transition);\n            return route;\n        })\n            .then(() => this.runBeforeModelHook(transition))\n            .then(() => throwIfAborted(transition))\n            .then(() => this.getModel(transition))\n            .then((resolvedModel) => {\n            throwIfAborted(transition);\n            return resolvedModel;\n        })\n            .then((resolvedModel) => this.runAfterModelHook(transition, resolvedModel))\n            .then((resolvedModel) => this.becomeResolved(transition, resolvedModel));\n    }\n    becomeResolved(transition, resolvedContext) {\n        let params = this.serialize(resolvedContext);\n        if (transition) {\n            this.stashResolvedModel(transition, resolvedContext);\n            transition[PARAMS_SYMBOL] = transition[PARAMS_SYMBOL] || {};\n            transition[PARAMS_SYMBOL][this.name] = params;\n        }\n        let context;\n        let contextsMatch = resolvedContext === this.context;\n        if ('context' in this || !contextsMatch) {\n            context = resolvedContext;\n        }\n        // SAFETY: Since this is just for lookup, it should be safe\n        let cached = ROUTE_INFOS.get(this);\n        let resolved = new ResolvedRouteInfo(this.router, this.name, this.paramNames, params, this.route, context);\n        if (cached !== undefined) {\n            // SAFETY: This is potentially a bit risker, but for what we're doing, it should be ok.\n            ROUTE_INFOS.set(resolved, cached);\n        }\n        return resolved;\n    }\n    shouldSupersede(routeInfo) {\n        // Prefer this newer routeInfo over `other` if:\n        // 1) The other one doesn't exist\n        // 2) The names don't match\n        // 3) This route has a context that doesn't match\n        //    the other one (or the other one doesn't have one).\n        // 4) This route has parameters that don't match the other.\n        if (!routeInfo) {\n            return true;\n        }\n        let contextsMatch = routeInfo.context === this.context;\n        return (routeInfo.name !== this.name ||\n            ('context' in this && !contextsMatch) ||\n            (this.hasOwnProperty('params') && !paramsMatch(this.params, routeInfo.params)));\n    }\n    get route() {\n        // _route could be set to either a route object or undefined, so we\n        // compare against null to know when it's been set\n        if (this._route !== null) {\n            return this._route;\n        }\n        return this.fetchRoute();\n    }\n    set route(route) {\n        this._route = route;\n    }\n    get routePromise() {\n        if (this._routePromise) {\n            return this._routePromise;\n        }\n        this.fetchRoute();\n        return this._routePromise;\n    }\n    set routePromise(routePromise) {\n        this._routePromise = routePromise;\n    }\n    log(transition, message) {\n        if (transition.log) {\n            transition.log(this.name + ': ' + message);\n        }\n    }\n    updateRoute(route) {\n        route._internalName = this.name;\n        return (this.route = route);\n    }\n    runBeforeModelHook(transition) {\n        if (transition.trigger) {\n            transition.trigger(true, 'willResolveModel', transition, this.route);\n        }\n        let result;\n        if (this.route) {\n            if (this.route.beforeModel !== undefined) {\n                result = this.route.beforeModel(transition);\n            }\n        }\n        if (isTransition(result)) {\n            result = null;\n        }\n        return Promise$1.resolve(result);\n    }\n    runAfterModelHook(transition, resolvedModel) {\n        // Stash the resolved model on the payload.\n        // This makes it possible for users to swap out\n        // the resolved model in afterModel.\n        let name = this.name;\n        this.stashResolvedModel(transition, resolvedModel);\n        let result;\n        if (this.route !== undefined) {\n            if (this.route.afterModel !== undefined) {\n                result = this.route.afterModel(resolvedModel, transition);\n            }\n        }\n        result = prepareResult(result);\n        return Promise$1.resolve(result).then(() => {\n            // Ignore the fulfilled value returned from afterModel.\n            // Return the value stashed in resolvedModels, which\n            // might have been swapped out in afterModel.\n            // SAFTEY: We expect this to be of type T, though typing it as such is challenging.\n            return transition.resolvedModels[name];\n        });\n    }\n    stashResolvedModel(transition, resolvedModel) {\n        transition.resolvedModels = transition.resolvedModels || {};\n        // SAFETY: It's unfortunate that we have to do this cast. It should be safe though.\n        transition.resolvedModels[this.name] = resolvedModel;\n    }\n    fetchRoute() {\n        let route = this.router.getRoute(this.name);\n        return this._processRoute(route);\n    }\n    _processRoute(route) {\n        // Setup a routePromise so that we can wait for asynchronously loaded routes\n        this.routePromise = Promise$1.resolve(route);\n        // Wait until the 'route' property has been updated when chaining to a route\n        // that is a promise\n        if (isPromise(route)) {\n            this.routePromise = this.routePromise.then((r) => {\n                return this.updateRoute(r);\n            });\n            // set to undefined to avoid recursive loop in the route getter\n            return (this.route = undefined);\n        }\n        else if (route) {\n            return this.updateRoute(route);\n        }\n        return undefined;\n    }\n}\nclass ResolvedRouteInfo extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route, context) {\n        super(router, name, paramNames, route);\n        this.params = params;\n        this.isResolved = true;\n        this.context = context;\n    }\n    resolve(transition) {\n        // A ResolvedRouteInfo just resolved with itself.\n        if (transition && transition.resolvedModels) {\n            transition.resolvedModels[this.name] = this.context;\n        }\n        return Promise$1.resolve(this);\n    }\n}\nclass UnresolvedRouteInfoByParam extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route) {\n        super(router, name, paramNames, route);\n        this.params = {};\n        if (params) {\n            this.params = params;\n        }\n    }\n    getModel(transition) {\n        let fullParams = this.params;\n        if (transition && transition[QUERY_PARAMS_SYMBOL]) {\n            fullParams = {};\n            merge(fullParams, this.params);\n            fullParams.queryParams = transition[QUERY_PARAMS_SYMBOL];\n        }\n        let route = this.route;\n        let result;\n        // FIXME: Review these casts\n        if (route.deserialize) {\n            result = route.deserialize(fullParams, transition);\n        }\n        else if (route.model) {\n            result = route.model(fullParams, transition);\n        }\n        if (result && isTransition(result)) {\n            result = undefined;\n        }\n        return Promise$1.resolve(result);\n    }\n}\nclass UnresolvedRouteInfoByObject extends InternalRouteInfo {\n    constructor(router, name, paramNames, context) {\n        super(router, name, paramNames);\n        this.context = context;\n        this.serializer = this.router.getSerializer(name);\n    }\n    getModel(transition) {\n        if (this.router.log !== undefined) {\n            this.router.log(this.name + ': resolving provided model');\n        }\n        return super.getModel(transition);\n    }\n    /**\n      @private\n  \n      Serializes a route using its custom `serialize` method or\n      by a default that looks up the expected property name from\n      the dynamic segment.\n  \n      @param {Object} model the model to be serialized for this route\n    */\n    serialize(model) {\n        let { paramNames, context } = this;\n        if (!model) {\n            // SAFETY: By the time we serialize, we expect to be resolved.\n            // This may not be an entirely safe assumption though no tests fail.\n            model = context;\n        }\n        let object = {};\n        if (isParam(model)) {\n            object[paramNames[0]] = model;\n            return object;\n        }\n        // Use custom serialize if it exists.\n        if (this.serializer) {\n            // invoke this.serializer unbound (getSerializer returns a stateless function)\n            return this.serializer.call(null, model, paramNames);\n        }\n        else if (this.route !== undefined) {\n            if (this.route.serialize) {\n                return this.route.serialize(model, paramNames);\n            }\n        }\n        if (paramNames.length !== 1) {\n            return;\n        }\n        let name = paramNames[0];\n        if (/_id$/.test(name)) {\n            // SAFETY: Model is supposed to extend IModel already\n            object[name] = model.id;\n        }\n        else {\n            object[name] = model;\n        }\n        return object;\n    }\n}\nfunction paramsMatch(a, b) {\n    if (a === b) {\n        // Both are identical, may both be undefined\n        return true;\n    }\n    if (!a || !b) {\n        // Only one is undefined, already checked they aren't identical\n        return false;\n    }\n    // Note: this assumes that both params have the same\n    // number of keys, but since we're comparing the\n    // same routes, they should.\n    for (let k in a) {\n        if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nclass TransitionIntent {\n    constructor(router, data = {}) {\n        this.router = router;\n        this.data = data;\n    }\n}\n\nfunction handleError(currentState, transition, error) {\n    // This is the only possible\n    // reject value of TransitionState#resolve\n    let routeInfos = currentState.routeInfos;\n    let errorHandlerIndex = transition.resolveIndex >= routeInfos.length ? routeInfos.length - 1 : transition.resolveIndex;\n    let wasAborted = transition.isAborted;\n    throw new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState);\n}\nfunction resolveOneRouteInfo(currentState, transition) {\n    if (transition.resolveIndex === currentState.routeInfos.length) {\n        // This is is the only possible\n        // fulfill value of TransitionState#resolve\n        return;\n    }\n    let routeInfo = currentState.routeInfos[transition.resolveIndex];\n    let callback = proceed.bind(null, currentState, transition);\n    return routeInfo.resolve(transition).then(callback, null, currentState.promiseLabel('Proceed'));\n}\nfunction proceed(currentState, transition, resolvedRouteInfo) {\n    let wasAlreadyResolved = currentState.routeInfos[transition.resolveIndex].isResolved;\n    // Swap the previously unresolved routeInfo with\n    // the resolved routeInfo\n    currentState.routeInfos[transition.resolveIndex++] = resolvedRouteInfo;\n    if (!wasAlreadyResolved) {\n        // Call the redirect hook. The reason we call it here\n        // vs. afterModel is so that redirects into child\n        // routes don't re-run the model hooks for this\n        // already-resolved route.\n        let { route } = resolvedRouteInfo;\n        if (route !== undefined) {\n            if (route.redirect) {\n                route.redirect(resolvedRouteInfo.context, transition);\n            }\n        }\n    }\n    // Proceed after ensuring that the redirect hook\n    // didn't abort this transition by transitioning elsewhere.\n    throwIfAborted(transition);\n    return resolveOneRouteInfo(currentState, transition);\n}\nclass TransitionState {\n    constructor() {\n        this.routeInfos = [];\n        this.queryParams = {};\n        this.params = {};\n    }\n    promiseLabel(label) {\n        let targetName = '';\n        forEach(this.routeInfos, function (routeInfo) {\n            if (targetName !== '') {\n                targetName += '.';\n            }\n            targetName += routeInfo.name;\n            return true;\n        });\n        return promiseLabel(\"'\" + targetName + \"': \" + label);\n    }\n    resolve(transition) {\n        // First, calculate params for this state. This is useful\n        // information to provide to the various route hooks.\n        let params = this.params;\n        forEach(this.routeInfos, (routeInfo) => {\n            params[routeInfo.name] = routeInfo.params || {};\n            return true;\n        });\n        transition.resolveIndex = 0;\n        let callback = resolveOneRouteInfo.bind(null, this, transition);\n        let errorHandler = handleError.bind(null, this, transition);\n        // The prelude RSVP.resolve() async moves us into the promise land.\n        return Promise$1.resolve(null, this.promiseLabel('Start transition'))\n            .then(callback, null, this.promiseLabel('Resolve route'))\n            .catch(errorHandler, this.promiseLabel('Handle error'))\n            .then(() => this);\n    }\n}\nclass TransitionError {\n    constructor(error, route, wasAborted, state) {\n        this.error = error;\n        this.route = route;\n        this.wasAborted = wasAborted;\n        this.state = state;\n    }\n}\n\nclass NamedTransitionIntent extends TransitionIntent {\n    constructor(router, name, pivotHandler, contexts = [], queryParams = {}, data) {\n        super(router, data);\n        this.preTransitionState = undefined;\n        this.name = name;\n        this.pivotHandler = pivotHandler;\n        this.contexts = contexts;\n        this.queryParams = queryParams;\n    }\n    applyToState(oldState, isIntermediate) {\n        let handlers = this.router.recognizer.handlersFor(this.name);\n        let targetRouteName = handlers[handlers.length - 1].handler;\n        return this.applyToHandlers(oldState, handlers, targetRouteName, isIntermediate, false);\n    }\n    applyToHandlers(oldState, parsedHandlers, targetRouteName, isIntermediate, checkingIfActive) {\n        let i, len;\n        let newState = new TransitionState();\n        let objects = this.contexts.slice(0);\n        let invalidateIndex = parsedHandlers.length;\n        // Pivot handlers are provided for refresh transitions\n        if (this.pivotHandler) {\n            for (i = 0, len = parsedHandlers.length; i < len; ++i) {\n                if (parsedHandlers[i].handler === this.pivotHandler._internalName) {\n                    invalidateIndex = i;\n                    break;\n                }\n            }\n        }\n        for (i = parsedHandlers.length - 1; i >= 0; --i) {\n            let result = parsedHandlers[i];\n            let name = result.handler;\n            let oldHandlerInfo = oldState.routeInfos[i];\n            let newHandlerInfo = null;\n            if (result.names.length > 0) {\n                if (i >= invalidateIndex) {\n                    newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n                }\n                else {\n                    newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, result.names, objects, oldHandlerInfo, targetRouteName, i);\n                }\n            }\n            else {\n                // This route has no dynamic segment.\n                // Therefore treat as a param-based handlerInfo\n                // with empty params. This will cause the `model`\n                // hook to be called with empty params, which is desirable.\n                newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n            }\n            if (checkingIfActive) {\n                // If we're performing an isActive check, we want to\n                // serialize URL params with the provided context, but\n                // ignore mismatches between old and new context.\n                newHandlerInfo = newHandlerInfo.becomeResolved(null, \n                // SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\n                newHandlerInfo.context);\n                let oldContext = oldHandlerInfo && oldHandlerInfo.context;\n                if (result.names.length > 0 &&\n                    oldHandlerInfo.context !== undefined &&\n                    newHandlerInfo.context === oldContext) {\n                    // If contexts match in isActive test, assume params also match.\n                    // This allows for flexibility in not requiring that every last\n                    // handler provide a `serialize` method\n                    newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n                }\n                newHandlerInfo.context = oldContext;\n            }\n            let handlerToUse = oldHandlerInfo;\n            if (i >= invalidateIndex || newHandlerInfo.shouldSupersede(oldHandlerInfo)) {\n                invalidateIndex = Math.min(i, invalidateIndex);\n                handlerToUse = newHandlerInfo;\n            }\n            if (isIntermediate && !checkingIfActive) {\n                handlerToUse = handlerToUse.becomeResolved(null, \n                // SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\n                handlerToUse.context);\n            }\n            newState.routeInfos.unshift(handlerToUse);\n        }\n        if (objects.length > 0) {\n            throw new Error('More context objects were passed than there are dynamic segments for the route: ' +\n                targetRouteName);\n        }\n        if (!isIntermediate) {\n            this.invalidateChildren(newState.routeInfos, invalidateIndex);\n        }\n        merge(newState.queryParams, this.queryParams || {});\n        if (isIntermediate && oldState.queryParams) {\n            merge(newState.queryParams, oldState.queryParams);\n        }\n        return newState;\n    }\n    invalidateChildren(handlerInfos, invalidateIndex) {\n        for (let i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n            let handlerInfo = handlerInfos[i];\n            if (handlerInfo.isResolved) {\n                let { name, params, route, paramNames } = handlerInfos[i];\n                handlerInfos[i] = new UnresolvedRouteInfoByParam(this.router, name, paramNames, params, route);\n            }\n        }\n    }\n    getHandlerInfoForDynamicSegment(name, names, objects, oldHandlerInfo, _targetRouteName, i) {\n        let objectToUse;\n        if (objects.length > 0) {\n            // Use the objects provided for this transition.\n            objectToUse = objects[objects.length - 1];\n            if (isParam(objectToUse)) {\n                return this.createParamHandlerInfo(name, names, objects, oldHandlerInfo);\n            }\n            else {\n                objects.pop();\n            }\n        }\n        else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n            // Reuse the matching oldHandlerInfo\n            return oldHandlerInfo;\n        }\n        else {\n            if (this.preTransitionState) {\n                let preTransitionHandlerInfo = this.preTransitionState.routeInfos[i];\n                objectToUse = preTransitionHandlerInfo === null || preTransitionHandlerInfo === void 0 ? void 0 : preTransitionHandlerInfo.context;\n            }\n            else {\n                // Ideally we should throw this error to provide maximal\n                // information to the user that not enough context objects\n                // were provided, but this proves too cumbersome in Ember\n                // in cases where inner template helpers are evaluated\n                // before parent helpers un-render, in which cases this\n                // error somewhat prematurely fires.\n                //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n                return oldHandlerInfo;\n            }\n        }\n        return new UnresolvedRouteInfoByObject(this.router, name, names, objectToUse);\n    }\n    createParamHandlerInfo(name, names, objects, oldHandlerInfo) {\n        let params = {};\n        // Soak up all the provided string/numbers\n        let numNames = names.length;\n        let missingParams = [];\n        while (numNames--) {\n            // Only use old params if the names match with the new handler\n            let oldParams = (oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params) || {};\n            let peek = objects[objects.length - 1];\n            let paramName = names[numNames];\n            if (isParam(peek)) {\n                params[paramName] = '' + objects.pop();\n            }\n            else {\n                // If we're here, this means only some of the params\n                // were string/number params, so try and use a param\n                // value from a previous handler.\n                if (oldParams.hasOwnProperty(paramName)) {\n                    params[paramName] = oldParams[paramName];\n                }\n                else {\n                    missingParams.push(paramName);\n                }\n            }\n        }\n        if (missingParams.length > 0) {\n            throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${name}.` +\n                ` Missing params: ${missingParams}`);\n        }\n        return new UnresolvedRouteInfoByParam(this.router, name, names, params);\n    }\n}\n\nconst UnrecognizedURLError = (function () {\n    UnrecognizedURLError.prototype = Object.create(Error.prototype);\n    UnrecognizedURLError.prototype.constructor = UnrecognizedURLError;\n    function UnrecognizedURLError(message) {\n        let error = Error.call(this, message);\n        this.name = 'UnrecognizedURLError';\n        this.message = message || 'UnrecognizedURL';\n        if (Error.captureStackTrace) {\n            Error.captureStackTrace(this, UnrecognizedURLError);\n        }\n        else {\n            this.stack = error.stack;\n        }\n    }\n    return UnrecognizedURLError;\n})();\n\nclass URLTransitionIntent extends TransitionIntent {\n    constructor(router, url, data) {\n        super(router, data);\n        this.url = url;\n        this.preTransitionState = undefined;\n    }\n    applyToState(oldState) {\n        let newState = new TransitionState();\n        let results = this.router.recognizer.recognize(this.url), i, len;\n        if (!results) {\n            throw new UnrecognizedURLError(this.url);\n        }\n        let statesDiffer = false;\n        let _url = this.url;\n        // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n        // For the case where the handler is loaded asynchronously, the error will be\n        // thrown once it is loaded.\n        function checkHandlerAccessibility(handler) {\n            if (handler && handler.inaccessibleByURL) {\n                throw new UnrecognizedURLError(_url);\n            }\n            return handler;\n        }\n        for (i = 0, len = results.length; i < len; ++i) {\n            let result = results[i];\n            let name = result.handler;\n            let paramNames = [];\n            if (this.router.recognizer.hasRoute(name)) {\n                paramNames = this.router.recognizer.handlersFor(name)[i].names;\n            }\n            let newRouteInfo = new UnresolvedRouteInfoByParam(this.router, name, paramNames, result.params);\n            let route = newRouteInfo.route;\n            if (route) {\n                checkHandlerAccessibility(route);\n            }\n            else {\n                // If the handler is being loaded asynchronously, check if we can\n                // access it after it has resolved\n                newRouteInfo.routePromise = newRouteInfo.routePromise.then(checkHandlerAccessibility);\n            }\n            let oldRouteInfo = oldState.routeInfos[i];\n            if (statesDiffer || newRouteInfo.shouldSupersede(oldRouteInfo)) {\n                statesDiffer = true;\n                newState.routeInfos[i] = newRouteInfo;\n            }\n            else {\n                newState.routeInfos[i] = oldRouteInfo;\n            }\n        }\n        merge(newState.queryParams, results.queryParams);\n        return newState;\n    }\n}\n\nclass Router {\n    constructor(logger) {\n        this._lastQueryParams = {};\n        this.state = undefined;\n        this.oldState = undefined;\n        this.activeTransition = undefined;\n        this.currentRouteInfos = undefined;\n        this._changedQueryParams = undefined;\n        this.currentSequence = 0;\n        this.log = logger;\n        this.recognizer = new RouteRecognizer();\n        this.reset();\n    }\n    /**\n      The main entry point into the router. The API is essentially\n      the same as the `map` method in `route-recognizer`.\n  \n      This method extracts the String handler at the last `.to()`\n      call and uses it as the name of the whole route.\n  \n      @param {Function} callback\n    */\n    map(callback) {\n        this.recognizer.map(callback, function (recognizer, routes) {\n            for (let i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n                let route = routes[i];\n                let handler = route.handler;\n                recognizer.add(routes, { as: handler });\n                proceed = route.path === '/' || route.path === '' || handler.slice(-6) === '.index';\n            }\n        });\n    }\n    hasRoute(route) {\n        return this.recognizer.hasRoute(route);\n    }\n    queryParamsTransition(changelist, wasTransitioning, oldState, newState) {\n        this.fireQueryParamDidChange(newState, changelist);\n        if (!wasTransitioning && this.activeTransition) {\n            // One of the routes in queryParamsDidChange\n            // caused a transition. Just return that transition.\n            return this.activeTransition;\n        }\n        else {\n            // Running queryParamsDidChange didn't change anything.\n            // Just update query params and be on our way.\n            // We have to return a noop transition that will\n            // perform a URL update at the end. This gives\n            // the user the ability to set the url update\n            // method (default is replaceState).\n            let newTransition = new Transition(this, undefined, undefined);\n            newTransition.queryParamsOnly = true;\n            oldState.queryParams = this.finalizeQueryParamChange(newState.routeInfos, newState.queryParams, newTransition);\n            newTransition[QUERY_PARAMS_SYMBOL] = newState.queryParams;\n            this.toReadOnlyInfos(newTransition, newState);\n            this.routeWillChange(newTransition);\n            newTransition.promise = newTransition.promise.then((result) => {\n                if (!newTransition.isAborted) {\n                    this._updateURL(newTransition, oldState);\n                    this.didTransition(this.currentRouteInfos);\n                    this.toInfos(newTransition, newState.routeInfos, true);\n                    this.routeDidChange(newTransition);\n                }\n                return result;\n            }, null, promiseLabel('Transition complete'));\n            return newTransition;\n        }\n    }\n    transitionByIntent(intent, isIntermediate) {\n        try {\n            return this.getTransitionByIntent(intent, isIntermediate);\n        }\n        catch (e) {\n            return new Transition(this, intent, undefined, e, undefined);\n        }\n    }\n    recognize(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return newState;\n        }\n        let readonlyInfos = toReadOnlyRouteInfo(newState.routeInfos, newState.queryParams);\n        return readonlyInfos[readonlyInfos.length - 1];\n    }\n    recognizeAndLoad(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return Promise$1.reject(`URL ${url} was not recognized`);\n        }\n        let newTransition = new Transition(this, intent, newState, undefined);\n        return newTransition.then(() => {\n            let routeInfosWithAttributes = toReadOnlyRouteInfo(newState.routeInfos, newTransition[QUERY_PARAMS_SYMBOL], true);\n            return routeInfosWithAttributes[routeInfosWithAttributes.length - 1];\n        });\n    }\n    generateNewState(intent) {\n        try {\n            return intent.applyToState(this.state, false);\n        }\n        catch (e) {\n            return null;\n        }\n    }\n    getTransitionByIntent(intent, isIntermediate) {\n        let wasTransitioning = !!this.activeTransition;\n        let oldState = wasTransitioning ? this.activeTransition[STATE_SYMBOL] : this.state;\n        let newTransition;\n        let newState = intent.applyToState(oldState, isIntermediate);\n        let queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n        if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {\n            // This is a no-op transition. See if query params changed.\n            if (queryParamChangelist) {\n                let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n                newTransition.queryParamsOnly = true;\n                // SAFETY: The returned OpaqueTransition should actually be this.\n                return newTransition;\n            }\n            // No-op. No need to create a new transition.\n            return this.activeTransition || new Transition(this, undefined, undefined);\n        }\n        if (isIntermediate) {\n            let transition = new Transition(this, undefined, newState);\n            transition.isIntermediate = true;\n            this.toReadOnlyInfos(transition, newState);\n            this.setupContexts(newState, transition);\n            this.routeWillChange(transition);\n            return this.activeTransition;\n        }\n        // Create a new transition to the destination route.\n        newTransition = new Transition(this, intent, newState, undefined, this.activeTransition);\n        // transition is to same route with same params, only query params differ.\n        // not caught above probably because refresh() has been used\n        if (routeInfosSameExceptQueryParams(newState.routeInfos, oldState.routeInfos)) {\n            newTransition.queryParamsOnly = true;\n        }\n        this.toReadOnlyInfos(newTransition, newState);\n        // Abort and usurp any previously active transition.\n        if (this.activeTransition) {\n            this.activeTransition.redirect(newTransition);\n        }\n        this.activeTransition = newTransition;\n        // Transition promises by default resolve with resolved state.\n        // For our purposes, swap out the promise to resolve\n        // after the transition has been finalized.\n        newTransition.promise = newTransition.promise.then((result) => {\n            return this.finalizeTransition(newTransition, result);\n        }, null, promiseLabel('Settle transition promise when transition is finalized'));\n        if (!wasTransitioning) {\n            this.notifyExistingHandlers(newState, newTransition);\n        }\n        this.fireQueryParamDidChange(newState, queryParamChangelist);\n        return newTransition;\n    }\n    /**\n    @private\n  \n    Begins and returns a Transition based on the provided\n    arguments. Accepts arguments in the form of both URL\n    transitions and named transitions.\n  \n    @param {Router} router\n    @param {Array[Object]} args arguments passed to transitionTo,\n      replaceWith, or handleURL\n  */\n    doTransition(name, modelsArray = [], isIntermediate = false) {\n        let lastArg = modelsArray[modelsArray.length - 1];\n        let queryParams = {};\n        if (lastArg && Object.prototype.hasOwnProperty.call(lastArg, 'queryParams')) {\n            // We just checked this.\n            // TODO: Use an assertion?\n            queryParams = modelsArray.pop().queryParams;\n        }\n        let intent;\n        if (name === undefined) {\n            log(this, 'Updating query params');\n            // A query param update is really just a transition\n            // into the route you're already on.\n            let { routeInfos } = this.state;\n            intent = new NamedTransitionIntent(this, routeInfos[routeInfos.length - 1].name, undefined, [], queryParams);\n        }\n        else if (name.charAt(0) === '/') {\n            log(this, 'Attempting URL transition to ' + name);\n            intent = new URLTransitionIntent(this, name);\n        }\n        else {\n            log(this, 'Attempting transition to ' + name);\n            intent = new NamedTransitionIntent(this, name, undefined, \n            // SAFETY: We know this to be the case since we removed the last item if it was QPs\n            modelsArray, queryParams);\n        }\n        return this.transitionByIntent(intent, isIntermediate);\n    }\n    /**\n    @private\n  \n    Updates the URL (if necessary) and calls `setupContexts`\n    to update the router's array of `currentRouteInfos`.\n   */\n    finalizeTransition(transition, newState) {\n        try {\n            log(transition.router, transition.sequence, 'Resolved all models on destination route; finalizing transition.');\n            let routeInfos = newState.routeInfos;\n            // Run all the necessary enter/setup/exit hooks\n            this.setupContexts(newState, transition);\n            // Check if a redirect occurred in enter/setup\n            if (transition.isAborted) {\n                // TODO: cleaner way? distinguish b/w targetRouteInfos?\n                this.state.routeInfos = this.currentRouteInfos;\n                return Promise$1.reject(logAbort(transition));\n            }\n            this._updateURL(transition, newState);\n            transition.isActive = false;\n            this.activeTransition = undefined;\n            this.triggerEvent(this.currentRouteInfos, true, 'didTransition', []);\n            this.didTransition(this.currentRouteInfos);\n            this.toInfos(transition, newState.routeInfos, true);\n            this.routeDidChange(transition);\n            log(this, transition.sequence, 'TRANSITION COMPLETE.');\n            // Resolve with the final route.\n            return routeInfos[routeInfos.length - 1].route;\n        }\n        catch (e) {\n            if (!isTransitionAborted(e)) {\n                let infos = transition[STATE_SYMBOL].routeInfos;\n                transition.trigger(true, 'error', e, transition, infos[infos.length - 1].route);\n                transition.abort();\n            }\n            throw e;\n        }\n    }\n    /**\n    @private\n  \n    Takes an Array of `RouteInfo`s, figures out which ones are\n    exiting, entering, or changing contexts, and calls the\n    proper route hooks.\n  \n    For example, consider the following tree of routes. Each route is\n    followed by the URL segment it handles.\n  \n    ```\n    |~index (\"/\")\n    | |~posts (\"/posts\")\n    | | |-showPost (\"/:id\")\n    | | |-newPost (\"/new\")\n    | | |-editPost (\"/edit\")\n    | |~about (\"/about/:id\")\n    ```\n  \n    Consider the following transitions:\n  \n    1. A URL transition to `/posts/1`.\n       1. Triggers the `*model` callbacks on the\n          `index`, `posts`, and `showPost` routes\n       2. Triggers the `enter` callback on the same\n       3. Triggers the `setup` callback on the same\n    2. A direct transition to `newPost`\n       1. Triggers the `exit` callback on `showPost`\n       2. Triggers the `enter` callback on `newPost`\n       3. Triggers the `setup` callback on `newPost`\n    3. A direct transition to `about` with a specified\n       context object\n       1. Triggers the `exit` callback on `newPost`\n          and `posts`\n       2. Triggers the `serialize` callback on `about`\n       3. Triggers the `enter` callback on `about`\n       4. Triggers the `setup` callback on `about`\n  \n    @param {Router} transition\n    @param {TransitionState} newState\n  */\n    setupContexts(newState, transition) {\n        let partition = this.partitionRoutes(this.state, newState);\n        let i, l, route;\n        for (i = 0, l = partition.exited.length; i < l; i++) {\n            route = partition.exited[i].route;\n            delete route.context;\n            if (route !== undefined) {\n                if (route._internalReset !== undefined) {\n                    route._internalReset(true, transition);\n                }\n                if (route.exit !== undefined) {\n                    route.exit(transition);\n                }\n            }\n        }\n        let oldState = (this.oldState = this.state);\n        this.state = newState;\n        let currentRouteInfos = (this.currentRouteInfos = partition.unchanged.slice());\n        try {\n            for (i = 0, l = partition.reset.length; i < l; i++) {\n                route = partition.reset[i].route;\n                if (route !== undefined) {\n                    if (route._internalReset !== undefined) {\n                        route._internalReset(false, transition);\n                    }\n                }\n            }\n            for (i = 0, l = partition.updatedContext.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.updatedContext[i], false, transition);\n            }\n            for (i = 0, l = partition.entered.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.entered[i], true, transition);\n            }\n        }\n        catch (e) {\n            this.state = oldState;\n            this.currentRouteInfos = oldState.routeInfos;\n            throw e;\n        }\n        this.state.queryParams = this.finalizeQueryParamChange(currentRouteInfos, newState.queryParams, transition);\n    }\n    /**\n    @private\n  \n    Fires queryParamsDidChange event\n  */\n    fireQueryParamDidChange(newState, queryParamChangelist) {\n        // If queryParams changed trigger event\n        if (queryParamChangelist) {\n            // This is a little hacky but we need some way of storing\n            // changed query params given that no activeTransition\n            // is guaranteed to have occurred.\n            this._changedQueryParams = queryParamChangelist.all;\n            this.triggerEvent(newState.routeInfos, true, 'queryParamsDidChange', [\n                queryParamChangelist.changed,\n                queryParamChangelist.all,\n                queryParamChangelist.removed,\n            ]);\n            this._changedQueryParams = undefined;\n        }\n    }\n    /**\n    @private\n  \n    Helper method used by setupContexts. Handles errors or redirects\n    that may happen in enter/setup.\n  */\n    routeEnteredOrUpdated(currentRouteInfos, routeInfo, enter, transition) {\n        let route = routeInfo.route, context = routeInfo.context;\n        function _routeEnteredOrUpdated(route) {\n            if (enter) {\n                if (route.enter !== undefined) {\n                    route.enter(transition);\n                }\n            }\n            throwIfAborted(transition);\n            route.context = context;\n            if (route.contextDidChange !== undefined) {\n                route.contextDidChange();\n            }\n            if (route.setup !== undefined) {\n                route.setup(context, transition);\n            }\n            throwIfAborted(transition);\n            currentRouteInfos.push(routeInfo);\n            return route;\n        }\n        // If the route doesn't exist, it means we haven't resolved the route promise yet\n        if (route === undefined) {\n            routeInfo.routePromise = routeInfo.routePromise.then(_routeEnteredOrUpdated);\n        }\n        else {\n            _routeEnteredOrUpdated(route);\n        }\n        return true;\n    }\n    /**\n    @private\n  \n    This function is called when transitioning from one URL to\n    another to determine which routes are no longer active,\n    which routes are newly active, and which routes remain\n    active but have their context changed.\n  \n    Take a list of old routes and new routes and partition\n    them into four buckets:\n  \n    * unchanged: the route was active in both the old and\n      new URL, and its context remains the same\n    * updated context: the route was active in both the\n      old and new URL, but its context changed. The route's\n      `setup` method, if any, will be called with the new\n      context.\n    * exited: the route was active in the old URL, but is\n      no longer active.\n    * entered: the route was not active in the old URL, but\n      is now active.\n  \n    The PartitionedRoutes structure has four fields:\n  \n    * `updatedContext`: a list of `RouteInfo` objects that\n      represent routes that remain active but have a changed\n      context\n    * `entered`: a list of `RouteInfo` objects that represent\n      routes that are newly active\n    * `exited`: a list of `RouteInfo` objects that are no\n      longer active.\n    * `unchanged`: a list of `RouteInfo` objects that remain active.\n  \n    @param {Array[InternalRouteInfo]} oldRoutes a list of the route\n      information for the previous URL (or `[]` if this is the\n      first handled transition)\n    @param {Array[InternalRouteInfo]} newRoutes a list of the route\n      information for the new URL\n  \n    @return {Partition}\n  */\n    partitionRoutes(oldState, newState) {\n        let oldRouteInfos = oldState.routeInfos;\n        let newRouteInfos = newState.routeInfos;\n        let routes = {\n            updatedContext: [],\n            exited: [],\n            entered: [],\n            unchanged: [],\n            reset: [],\n        };\n        let routeChanged, contextChanged = false, i, l;\n        for (i = 0, l = newRouteInfos.length; i < l; i++) {\n            let oldRouteInfo = oldRouteInfos[i], newRouteInfo = newRouteInfos[i];\n            if (!oldRouteInfo || oldRouteInfo.route !== newRouteInfo.route) {\n                routeChanged = true;\n            }\n            if (routeChanged) {\n                routes.entered.push(newRouteInfo);\n                if (oldRouteInfo) {\n                    routes.exited.unshift(oldRouteInfo);\n                }\n            }\n            else if (contextChanged || oldRouteInfo.context !== newRouteInfo.context) {\n                contextChanged = true;\n                routes.updatedContext.push(newRouteInfo);\n            }\n            else {\n                routes.unchanged.push(oldRouteInfo);\n            }\n        }\n        for (i = newRouteInfos.length, l = oldRouteInfos.length; i < l; i++) {\n            routes.exited.unshift(oldRouteInfos[i]);\n        }\n        routes.reset = routes.updatedContext.slice();\n        routes.reset.reverse();\n        return routes;\n    }\n    _updateURL(transition, state) {\n        let urlMethod = transition.urlMethod;\n        if (!urlMethod) {\n            return;\n        }\n        let { routeInfos } = state;\n        let { name: routeName } = routeInfos[routeInfos.length - 1];\n        let params = {};\n        for (let i = routeInfos.length - 1; i >= 0; --i) {\n            let routeInfo = routeInfos[i];\n            merge(params, routeInfo.params);\n            if (routeInfo.route.inaccessibleByURL) {\n                urlMethod = null;\n            }\n        }\n        if (urlMethod) {\n            params.queryParams = transition._visibleQueryParams || state.queryParams;\n            let url = this.recognizer.generate(routeName, params);\n            // transitions during the initial transition must always use replaceURL.\n            // When the app boots, you are at a url, e.g. /foo. If some route\n            // redirects to bar as part of the initial transition, you don't want to\n            // add a history entry for /foo. If you do, pressing back will immediately\n            // hit the redirect again and take you back to /bar, thus killing the back\n            // button\n            let initial = transition.isCausedByInitialTransition;\n            // say you are at / and you click a link to route /foo. In /foo's\n            // route, the transition is aborted using replaceWith('/bar').\n            // Because the current url is still /, the history entry for / is\n            // removed from the history. Clicking back will take you to the page\n            // you were on before /, which is often not even the app, thus killing\n            // the back button. That's why updateURL is always correct for an\n            // aborting transition that's not the initial transition\n            let replaceAndNotAborting = urlMethod === 'replace' && !transition.isCausedByAbortingTransition;\n            // because calling refresh causes an aborted transition, this needs to be\n            // special cased - if the initial transition is a replace transition, the\n            // urlMethod should be honored here.\n            let isQueryParamsRefreshTransition = transition.queryParamsOnly && urlMethod === 'replace';\n            // say you are at / and you a `replaceWith(/foo)` is called. Then, that\n            // transition is aborted with `replaceWith(/bar)`. At the end, we should\n            // end up with /bar replacing /. We are replacing the replace. We only\n            // will replace the initial route if all subsequent aborts are also\n            // replaces. However, there is some ambiguity around the correct behavior\n            // here.\n            let replacingReplace = urlMethod === 'replace' && transition.isCausedByAbortingReplaceTransition;\n            if (initial || replaceAndNotAborting || isQueryParamsRefreshTransition || replacingReplace) {\n                this.replaceURL(url);\n            }\n            else {\n                this.updateURL(url);\n            }\n        }\n    }\n    finalizeQueryParamChange(resolvedHandlers, newQueryParams, transition) {\n        // We fire a finalizeQueryParamChange event which\n        // gives the new route hierarchy a chance to tell\n        // us which query params it's consuming and what\n        // their final values are. If a query param is\n        // no longer consumed in the final route hierarchy,\n        // its serialized segment will be removed\n        // from the URL.\n        for (let k in newQueryParams) {\n            if (newQueryParams.hasOwnProperty(k) && newQueryParams[k] === null) {\n                delete newQueryParams[k];\n            }\n        }\n        let finalQueryParamsArray = [];\n        this.triggerEvent(resolvedHandlers, true, 'finalizeQueryParamChange', [\n            newQueryParams,\n            finalQueryParamsArray,\n            transition,\n        ]);\n        if (transition) {\n            transition._visibleQueryParams = {};\n        }\n        let finalQueryParams = {};\n        for (let i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n            let qp = finalQueryParamsArray[i];\n            finalQueryParams[qp.key] = qp.value;\n            if (transition && qp.visible !== false) {\n                transition._visibleQueryParams[qp.key] = qp.value;\n            }\n        }\n        return finalQueryParams;\n    }\n    toReadOnlyInfos(newTransition, newState) {\n        let oldRouteInfos = this.state.routeInfos;\n        this.fromInfos(newTransition, oldRouteInfos);\n        this.toInfos(newTransition, newState.routeInfos);\n        this._lastQueryParams = newState.queryParams;\n    }\n    fromInfos(newTransition, oldRouteInfos) {\n        if (newTransition !== undefined && oldRouteInfos.length > 0) {\n            let fromInfos = toReadOnlyRouteInfo(oldRouteInfos, Object.assign({}, this._lastQueryParams), true);\n            newTransition.from = fromInfos[fromInfos.length - 1] || null;\n        }\n    }\n    toInfos(newTransition, newRouteInfos, includeAttributes = false) {\n        if (newTransition !== undefined && newRouteInfos.length > 0) {\n            let toInfos = toReadOnlyRouteInfo(newRouteInfos, Object.assign({}, newTransition[QUERY_PARAMS_SYMBOL]), includeAttributes);\n            newTransition.to = toInfos[toInfos.length - 1] || null;\n        }\n    }\n    notifyExistingHandlers(newState, newTransition) {\n        let oldRouteInfos = this.state.routeInfos, i, oldRouteInfoLen, oldHandler, newRouteInfo;\n        oldRouteInfoLen = oldRouteInfos.length;\n        for (i = 0; i < oldRouteInfoLen; i++) {\n            oldHandler = oldRouteInfos[i];\n            newRouteInfo = newState.routeInfos[i];\n            if (!newRouteInfo || oldHandler.name !== newRouteInfo.name) {\n                break;\n            }\n            if (!newRouteInfo.isResolved) ;\n        }\n        this.triggerEvent(oldRouteInfos, true, 'willTransition', [newTransition]);\n        this.routeWillChange(newTransition);\n        this.willTransition(oldRouteInfos, newState.routeInfos, newTransition);\n    }\n    /**\n      Clears the current and target route routes and triggers exit\n      on each of them starting at the leaf and traversing up through\n      its ancestors.\n    */\n    reset() {\n        if (this.state) {\n            forEach(this.state.routeInfos.slice().reverse(), function (routeInfo) {\n                let route = routeInfo.route;\n                if (route !== undefined) {\n                    if (route.exit !== undefined) {\n                        route.exit();\n                    }\n                }\n                return true;\n            });\n        }\n        this.oldState = undefined;\n        this.state = new TransitionState();\n        this.currentRouteInfos = undefined;\n    }\n    /**\n      let handler = routeInfo.handler;\n      The entry point for handling a change to the URL (usually\n      via the back and forward button).\n  \n      Returns an Array of handlers and the parameters associated\n      with those parameters.\n  \n      @param {String} url a URL to process\n  \n      @return {Array} an Array of `[handler, parameter]` tuples\n    */\n    handleURL(url) {\n        // Perform a URL-based transition, but don't change\n        // the URL afterward, since it already happened.\n        if (url.charAt(0) !== '/') {\n            url = '/' + url;\n        }\n        return this.doTransition(url).method(null);\n    }\n    /**\n      Transition into the specified named route.\n  \n      If necessary, trigger the exit callback on any routes\n      that are no longer represented by the target route.\n  \n      @param {String} name the name of the route\n    */\n    transitionTo(name, ...contexts) {\n        if (typeof name === 'object') {\n            contexts.push(name);\n            return this.doTransition(undefined, contexts, false);\n        }\n        return this.doTransition(name, contexts);\n    }\n    intermediateTransitionTo(name, ...args) {\n        return this.doTransition(name, args, true);\n    }\n    refresh(pivotRoute) {\n        let previousTransition = this.activeTransition;\n        let state = previousTransition ? previousTransition[STATE_SYMBOL] : this.state;\n        let routeInfos = state.routeInfos;\n        if (pivotRoute === undefined) {\n            pivotRoute = routeInfos[0].route;\n        }\n        log(this, 'Starting a refresh transition');\n        let name = routeInfos[routeInfos.length - 1].name;\n        let intent = new NamedTransitionIntent(this, name, pivotRoute, [], this._changedQueryParams || state.queryParams);\n        let newTransition = this.transitionByIntent(intent, false);\n        // if the previous transition is a replace transition, that needs to be preserved\n        if (previousTransition && previousTransition.urlMethod === 'replace') {\n            newTransition.method(previousTransition.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n      Identical to `transitionTo` except that the current URL will be replaced\n      if possible.\n  \n      This method is intended primarily for use with `replaceState`.\n  \n      @param {String} name the name of the route\n    */\n    replaceWith(name) {\n        return this.doTransition(name).method('replace');\n    }\n    /**\n      Take a named route and context objects and generate a\n      URL.\n  \n      @param {String} name the name of the route to generate\n        a URL for\n      @param {...Object} objects a list of objects to serialize\n  \n      @return {String} a URL\n    */\n    generate(routeName, ...args) {\n        let partitionedArgs = extractQueryParams(args), suppliedParams = partitionedArgs[0], queryParams = partitionedArgs[1];\n        // Construct a TransitionIntent with the provided params\n        // and apply it to the present state of the router.\n        let intent = new NamedTransitionIntent(this, routeName, undefined, suppliedParams);\n        let state = intent.applyToState(this.state, false);\n        let params = {};\n        for (let i = 0, len = state.routeInfos.length; i < len; ++i) {\n            let routeInfo = state.routeInfos[i];\n            let routeParams = routeInfo.serialize();\n            merge(params, routeParams);\n        }\n        params.queryParams = queryParams;\n        return this.recognizer.generate(routeName, params);\n    }\n    applyIntent(routeName, contexts) {\n        let intent = new NamedTransitionIntent(this, routeName, undefined, contexts);\n        let state = (this.activeTransition && this.activeTransition[STATE_SYMBOL]) || this.state;\n        return intent.applyToState(state, false);\n    }\n    isActiveIntent(routeName, contexts, queryParams, _state) {\n        let state = _state || this.state, targetRouteInfos = state.routeInfos, routeInfo, len;\n        if (!targetRouteInfos.length) {\n            return false;\n        }\n        let targetHandler = targetRouteInfos[targetRouteInfos.length - 1].name;\n        let recognizerHandlers = this.recognizer.handlersFor(targetHandler);\n        let index = 0;\n        for (len = recognizerHandlers.length; index < len; ++index) {\n            routeInfo = targetRouteInfos[index];\n            if (routeInfo.name === routeName) {\n                break;\n            }\n        }\n        if (index === recognizerHandlers.length) {\n            // The provided route name isn't even in the route hierarchy.\n            return false;\n        }\n        let testState = new TransitionState();\n        testState.routeInfos = targetRouteInfos.slice(0, index + 1);\n        recognizerHandlers = recognizerHandlers.slice(0, index + 1);\n        let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n        let newState = intent.applyToHandlers(testState, recognizerHandlers, targetHandler, true, true);\n        let routesEqual = routeInfosEqual(newState.routeInfos, testState.routeInfos);\n        if (!queryParams || !routesEqual) {\n            return routesEqual;\n        }\n        // Get a hash of QPs that will still be active on new route\n        let activeQPsOnNewHandler = {};\n        merge(activeQPsOnNewHandler, queryParams);\n        let activeQueryParams = state.queryParams;\n        for (let key in activeQueryParams) {\n            if (activeQueryParams.hasOwnProperty(key) && activeQPsOnNewHandler.hasOwnProperty(key)) {\n                activeQPsOnNewHandler[key] = activeQueryParams[key];\n            }\n        }\n        return routesEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n    }\n    isActive(routeName, ...args) {\n        let [contexts, queryParams] = extractQueryParams(args);\n        return this.isActiveIntent(routeName, contexts, queryParams);\n    }\n    trigger(name, ...args) {\n        this.triggerEvent(this.currentRouteInfos, false, name, args);\n    }\n}\nfunction routeInfosEqual(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        // SAFETY: Just casting for comparison\n        if (routeInfos[i] !== otherRouteInfos[i]) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction routeInfosSameExceptQueryParams(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        if (routeInfos[i].name !== otherRouteInfos[i].name) {\n            return false;\n        }\n        if (!paramsEqual(routeInfos[i].params, otherRouteInfos[i].params)) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction paramsEqual(params, otherParams) {\n    if (params === otherParams) {\n        // Both identical or both undefined\n        return true;\n    }\n    if (!params || !otherParams) {\n        // One is falsy but other is not\n        return false;\n    }\n    let keys = Object.keys(params);\n    let otherKeys = Object.keys(otherParams);\n    if (keys.length !== otherKeys.length) {\n        return false;\n    }\n    for (let i = 0, len = keys.length; i < len; ++i) {\n        let key = keys[i];\n        if (params[key] !== otherParams[key]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nexport { InternalRouteInfo, Transition as InternalTransition, PARAMS_SYMBOL, QUERY_PARAMS_SYMBOL, STATE_SYMBOL, TransitionError, TransitionState, Router as default, logAbort };\n","function callbacksFor(object) {\n  let callbacks = object._promiseCallbacks;\n\n  if (!callbacks) {\n    callbacks = object._promiseCallbacks = {};\n  }\n\n  return callbacks;\n}\n\n/**\n  @class EventTarget\n  @for rsvp\n  @public\n*/\nvar EventTarget = {\n\n  /**\n    `EventTarget.mixin` extends an object with EventTarget methods. For\n    Example:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let object = {};\n\n    EventTarget.mixin(object);\n\n    object.on('finished', function(event) {\n      // handle event\n    });\n\n    object.trigger('finished', { detail: value });\n    ```\n\n    `EventTarget.mixin` also works with prototypes:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let Person = function() {};\n    EventTarget.mixin(Person.prototype);\n\n    let yehuda = new Person();\n    let tom = new Person();\n\n    yehuda.on('poke', function(event) {\n      console.log('Yehuda says OW');\n    });\n\n    tom.on('poke', function(event) {\n      console.log('Tom says OW');\n    });\n\n    yehuda.trigger('poke');\n    tom.trigger('poke');\n    ```\n\n    @method mixin\n    @for rsvp\n    @private\n    @param {Object} object object to extend with EventTarget methods\n  */\n  mixin(object) {\n    object.on      = this.on;\n    object.off     = this.off;\n    object.trigger = this.trigger;\n    object._promiseCallbacks = undefined;\n    return object;\n  },\n\n  /**\n    Registers a callback to be executed when `eventName` is triggered\n\n    ```javascript\n    object.on('event', function(eventInfo){\n      // handle the event\n    });\n\n    object.trigger('event');\n    ```\n\n    @method on\n    @for EventTarget\n    @private\n    @param {String} eventName name of the event to listen for\n    @param {Function} callback function to be called when the event is triggered.\n  */\n  on(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError('Callback must be a function');\n    }\n\n    let allCallbacks = callbacksFor(this);\n    let callbacks = allCallbacks[eventName];\n\n    if (!callbacks) {\n      callbacks = allCallbacks[eventName] = [];\n    }\n\n    if (callbacks.indexOf(callback) === -1) {\n      callbacks.push(callback);\n    }\n  },\n\n  /**\n    You can use `off` to stop firing a particular callback for an event:\n\n    ```javascript\n    function doStuff() { // do stuff! }\n    object.on('stuff', doStuff);\n\n    object.trigger('stuff'); // doStuff will be called\n\n    // Unregister ONLY the doStuff callback\n    object.off('stuff', doStuff);\n    object.trigger('stuff'); // doStuff will NOT be called\n    ```\n\n    If you don't pass a `callback` argument to `off`, ALL callbacks for the\n    event will not be executed when the event fires. For example:\n\n    ```javascript\n    let callback1 = function(){};\n    let callback2 = function(){};\n\n    object.on('stuff', callback1);\n    object.on('stuff', callback2);\n\n    object.trigger('stuff'); // callback1 and callback2 will be executed.\n\n    object.off('stuff');\n    object.trigger('stuff'); // callback1 and callback2 will not be executed!\n    ```\n\n    @method off\n    @for rsvp\n    @private\n    @param {String} eventName event to stop listening to\n    @param {Function} [callback] optional argument. If given, only the function\n    given will be removed from the event's callback queue. If no `callback`\n    argument is given, all callbacks will be removed from the event's callback\n    queue.\n  */\n  off(eventName, callback) {\n    let allCallbacks = callbacksFor(this);\n\n    if (!callback) {\n      allCallbacks[eventName] = [];\n      return;\n    }\n\n    let callbacks = allCallbacks[eventName];\n    let index = callbacks.indexOf(callback);\n\n    if (index !== -1) {\n      callbacks.splice(index, 1);\n    }\n  },\n\n  /**\n    Use `trigger` to fire custom events. For example:\n\n    ```javascript\n    object.on('foo', function(){\n      console.log('foo event happened!');\n    });\n    object.trigger('foo');\n    // 'foo event happened!' logged to the console\n    ```\n\n    You can also pass a value as a second argument to `trigger` that will be\n    passed as an argument to all event listeners for the event:\n\n    ```javascript\n    object.on('foo', function(value){\n      console.log(value.name);\n    });\n\n    object.trigger('foo', { name: 'bar' });\n    // 'bar' logged to the console\n    ```\n\n    @method trigger\n    @for rsvp\n    @private\n    @param {String} eventName name of the event to be triggered\n    @param {*} [options] optional value to be passed to any event handlers for\n    the given `eventName`\n  */\n  trigger(eventName, options, label) {\n    let allCallbacks = callbacksFor(this);\n\n    let callbacks = allCallbacks[eventName];\n    if (callbacks) {\n      // Don't cache the callbacks.length since it may grow\n      let callback;\n      for (let i = 0; i < callbacks.length; i++) {\n        callback = callbacks[i];\n        callback(options, label);\n      }\n    }\n  }\n};\n\nconst config = {\n  instrument: false\n};\n\nEventTarget['mixin'](config);\n\nfunction configure(name, value) {\n  if (arguments.length === 2) {\n    config[name] = value;\n  } else {\n    return config[name];\n  }\n}\n\nconst queue$1 = [];\n\nfunction scheduleFlush$1() {\n  setTimeout(() => {\n    for (let i = 0; i < queue$1.length; i++) {\n      let entry = queue$1[i];\n\n      let payload = entry.payload;\n\n      payload.guid = payload.key + payload.id;\n      payload.childGuid = payload.key + payload.childId;\n      if (payload.error) {\n        payload.stack = payload.error.stack;\n      }\n\n      config['trigger'](entry.name, entry.payload);\n    }\n    queue$1.length = 0;\n  }, 50);\n}\n\nfunction instrument(eventName, promise, child) {\n  if (1 === queue$1.push({\n    name: eventName,\n    payload: {\n      key: promise._guidKey,\n      id:  promise._id,\n      eventName: eventName,\n      detail: promise._result,\n      childId: child && child._id,\n      label: promise._label,\n      timeStamp: Date.now(),\n      error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n    }})) {\n      scheduleFlush$1();\n    }\n  }\n\n/**\n  `Promise.resolve` returns a promise that will become resolved with the\n  passed `value`. It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    resolve(1);\n  });\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = RSVP.Promise.resolve(1);\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  @method resolve\n  @for Promise\n  @static\n  @param {*} object value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$2(object, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  if (object && typeof object === 'object' && object.constructor === Constructor) {\n    return object;\n  }\n\n  let promise = new Constructor(noop, label);\n  resolve$1(promise, object);\n  return promise;\n}\n\nfunction withOwnPromise() {\n  return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction objectOrFunction(x) {\n  let type = typeof x;\n  return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction noop() {}\n\nconst PENDING   = void 0;\nconst FULFILLED = 1;\nconst REJECTED  = 2;\n\nfunction tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n  try {\n    then.call(value, fulfillmentHandler, rejectionHandler);\n  } catch(e) {\n    return e;\n  }\n}\nfunction handleForeignThenable(promise, thenable, then) {\n  config.async(promise => {\n    let sealed = false;\n    let error = tryThen(then,\n      thenable,\n      value => {\n        if (sealed) { return; }\n        sealed = true;\n        if (thenable === value) {\n          fulfill(promise, value);\n        } else {\n          resolve$1(promise, value);\n        }\n      },\n      reason => {\n        if (sealed) { return; }\n        sealed = true;\n\n        reject$2(promise, reason);\n      },\n      'Settle: ' + (promise._label || ' unknown promise')\n    );\n    if (!sealed && error) {\n      sealed = true;\n      reject$2(promise, error);\n    }\n  }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n  if (thenable._state === FULFILLED) {\n    fulfill(promise, thenable._result);\n  } else if (thenable._state === REJECTED) {\n    thenable._onError = null;\n    reject$2(promise, thenable._result);\n  } else {\n    subscribe(thenable, undefined, value => {\n      if (thenable === value) {\n        fulfill(promise, value);\n      } else {\n        resolve$1(promise, value);\n      }\n    }, reason => reject$2(promise, reason));\n  }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$1) {\n  let isOwnThenable =\n    maybeThenable.constructor === promise.constructor &&\n    then$1 === then &&\n    promise.constructor.resolve === resolve$2;\n\n  if (isOwnThenable) {\n    handleOwnThenable(promise, maybeThenable);\n  } else if (typeof then$1 === 'function') {\n    handleForeignThenable(promise, maybeThenable, then$1);\n  } else {\n    fulfill(promise, maybeThenable);\n  }\n}\n\nfunction resolve$1(promise, value) {\n  if (promise === value) {\n    fulfill(promise, value);\n  } else if (objectOrFunction(value)) {\n    let then;\n    try {\n      then = value.then;\n    } catch (error) {\n      reject$2(promise, error);\n      return;\n    }\n    handleMaybeThenable(promise, value, then);\n  } else {\n    fulfill(promise, value);\n  }\n}\n\nfunction publishRejection(promise) {\n  if (promise._onError) {\n    promise._onError(promise._result);\n  }\n\n  publish(promise);\n}\n\nfunction fulfill(promise, value) {\n  if (promise._state !== PENDING) { return; }\n\n  promise._result = value;\n  promise._state = FULFILLED;\n\n  if (promise._subscribers.length === 0) {\n    if (config.instrument) {\n      instrument('fulfilled', promise);\n    }\n  } else {\n    config.async(publish, promise);\n  }\n}\n\nfunction reject$2(promise, reason) {\n  if (promise._state !== PENDING) { return; }\n  promise._state = REJECTED;\n  promise._result = reason;\n  config.async(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n  let subscribers = parent._subscribers;\n  let length = subscribers.length;\n\n  parent._onError = null;\n\n  subscribers[length] = child;\n  subscribers[length + FULFILLED] = onFulfillment;\n  subscribers[length + REJECTED]  = onRejection;\n\n  if (length === 0 && parent._state) {\n    config.async(publish, parent);\n  }\n}\n\nfunction publish(promise) {\n  let subscribers = promise._subscribers;\n  let settled = promise._state;\n\n  if (config.instrument) {\n    instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n  }\n\n  if (subscribers.length === 0) { return; }\n\n  let child, callback, result = promise._result;\n\n  for (let i = 0; i < subscribers.length; i += 3) {\n    child = subscribers[i];\n    callback = subscribers[i + settled];\n\n    if (child) {\n      invokeCallback(settled, child, callback, result);\n    } else {\n      callback(result);\n    }\n  }\n\n  promise._subscribers.length = 0;\n}\n\nfunction invokeCallback(state, promise, callback, result) {\n  let hasCallback = typeof callback === 'function';\n  let value, succeeded = true, error;\n\n  if (hasCallback) {\n    try {\n      value = callback(result);\n    } catch (e) {\n      succeeded = false;\n      error = e;\n    }\n  } else {\n    value = result;\n  }\n\n  if (promise._state !== PENDING) ; else if (value === promise) {\n    reject$2(promise, withOwnPromise());\n  } else if (succeeded === false) {\n    reject$2(promise, error);\n  } else if (hasCallback) {\n    resolve$1(promise, value);\n  } else if (state === FULFILLED) {\n    fulfill(promise, value);\n  } else if (state === REJECTED) {\n    reject$2(promise, value);\n  }\n}\n\nfunction initializePromise(promise, resolver) {\n  let resolved = false;\n  try {\n    resolver(value => {\n      if (resolved) { return; }\n      resolved = true;\n      resolve$1(promise, value);\n    }, reason => {\n      if (resolved) { return; }\n      resolved = true;\n      reject$2(promise, reason);\n    });\n  } catch(e) {\n    reject$2(promise, e);\n  }\n}\n\nfunction then(onFulfillment, onRejection, label) {\n  let parent = this;\n  let state = parent._state;\n\n  if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n    config.instrument && instrument('chained', parent, parent);\n    return parent;\n  }\n\n  parent._onError = null;\n\n  let child = new parent.constructor(noop, label);\n  let result = parent._result;\n\n  config.instrument && instrument('chained', parent, child);\n\n  if (state === PENDING) {\n    subscribe(parent, child, onFulfillment, onRejection);\n  } else {\n    let callback = state === FULFILLED ? onFulfillment : onRejection;\n    config.async(() => invokeCallback(state, child, callback, result));\n  }\n\n  return child;\n}\n\nclass Enumerator {\n  constructor(Constructor, input, abortOnReject, label) {\n    this._instanceConstructor = Constructor;\n    this.promise = new Constructor(noop, label);\n    this._abortOnReject = abortOnReject;\n    this._isUsingOwnPromise = Constructor === Promise$2;\n    this._isUsingOwnResolve = Constructor.resolve === resolve$2;\n\n    this._init(...arguments);\n  }\n\n  _init(Constructor, input) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n\n    this._enumerate(input);\n  }\n\n  _enumerate(input) {\n    let length  = this.length;\n    let promise = this.promise;\n\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      this._eachEntry(input[i], i, true);\n    }\n    this._checkFullfillment();\n  }\n\n  _checkFullfillment() {\n    if (this._remaining === 0) {\n      let result = this._result;\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _settleMaybeThenable(entry, i, firstPass) {\n    let c = this._instanceConstructor;\n\n    if (this._isUsingOwnResolve) {\n      let then$1, error, succeeded = true;\n      try {\n        then$1 = entry.then;\n      } catch (e) {\n        succeeded = false;\n        error = e;\n      }\n\n      if (then$1 === then && entry._state !== PENDING) {\n        entry._onError = null;\n        this._settledAt(entry._state, i, entry._result, firstPass);\n      } else if (typeof then$1 !== 'function') {\n        this._settledAt(FULFILLED, i, entry, firstPass);\n      } else if (this._isUsingOwnPromise) {\n        let promise = new c(noop);\n        if (succeeded === false) {\n          reject$2(promise, error);\n        } else {\n          handleMaybeThenable(promise, entry, then$1);\n          this._willSettleAt(promise, i, firstPass);\n        }\n      } else {\n        this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n      }\n    } else {\n      this._willSettleAt(c.resolve(entry), i, firstPass);\n    }\n  }\n\n  _eachEntry(entry, i, firstPass) {\n    if (entry !== null && typeof entry === 'object') {\n      this._settleMaybeThenable(entry, i, firstPass);\n    } else {\n      this._setResultAt(FULFILLED, i, entry, firstPass);\n    }\n  }\n\n  _settledAt(state, i, value, firstPass) {\n    let promise = this.promise;\n\n    if (promise._state === PENDING) {\n      if (this._abortOnReject && state === REJECTED) {\n        reject$2(promise, value);\n      } else {\n        this._setResultAt(state, i, value, firstPass);\n        this._checkFullfillment();\n      }\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    this._remaining--;\n    this._result[i] = value;\n  }\n\n  _willSettleAt(promise, i, firstPass) {\n    subscribe(\n      promise, undefined,\n      value  => this._settledAt(FULFILLED, i, value, firstPass),\n      reason => this._settledAt(REJECTED,  i, reason, firstPass)\n    );\n  }\n}\n\nfunction setSettledResult(state, i, value) {\n  this._remaining--;\n  if (state === FULFILLED) {\n    this._result[i] = {\n      state: 'fulfilled',\n      value: value\n    };\n  } else {\n     this._result[i] = {\n      state: 'rejected',\n      reason: value\n    };\n  }\n}\n\n/**\n  `Promise.all` accepts an array of promises, and returns a new promise which\n  is fulfilled with an array of fulfillment values for the passed promises, or\n  rejected with the reason of the first passed promise to be rejected. It casts all\n  elements of the passed iterable to promises as it runs this algorithm.\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // The array here would be [ 1, 2, 3 ];\n  });\n  ```\n\n  If any of the `promises` given to `RSVP.all` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promises's\n  rejection handler. For example:\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve, reject } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error(\"2\"));\n  let promise3 = reject(new Error(\"3\"));\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(error) {\n    // error.message === \"2\"\n  });\n  ```\n\n  @method all\n  @for Promise\n  @param {Array} entries array of promises\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all `promises` have been\n  fulfilled, or rejected if any of them become rejected.\n  @static\n*/\nfunction all$1(entries, label) {\n  if (!Array.isArray(entries)) {\n    return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n  }\n  return new Enumerator(this, entries, true /* abort on reject */, label).promise;\n}\n\n/**\n  `Promise.race` returns a new promise which is settled in the same way as the\n  first passed promise to settle.\n\n  Example:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 2');\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // result === 'promise 2' because it was resolved before promise1\n    // was resolved.\n  });\n  ```\n\n  `Promise.race` is deterministic in that only the state of the first\n  settled promise matters. For example, even if other promises given to the\n  `promises` array argument are resolved, but the first settled promise has\n  become rejected before the other promises became fulfilled, the returned\n  promise will become rejected:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      reject(new Error('promise 2'));\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // Code here never runs\n  }, function(reason){\n    // reason.message === 'promise 2' because promise 2 became rejected before\n    // promise 1 became fulfilled\n  });\n  ```\n\n  An example real-world use case is implementing timeouts:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  Promise.race([ajax('foo.json'), timeout(5000)])\n  ```\n\n  @method race\n  @for Promise\n  @static\n  @param {Array} entries array of promises to observe\n  @param {String} [label] optional string for describing the promise returned.\n  Useful for tooling.\n  @return {Promise} a promise which settles in the same way as the first passed\n  promise to settle.\n*/\nfunction race$1(entries, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  let promise = new Constructor(noop, label);\n\n  if (!Array.isArray(entries)) {\n    reject$2(promise, new TypeError('Promise.race must be called with an array'));\n    return promise;\n  }\n\n  for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n    subscribe(\n      Constructor.resolve(entries[i]), undefined,\n      value  => resolve$1(promise, value),\n      reason => reject$2(promise, reason)\n    );\n  }\n\n  return promise;\n}\n\n/**\n  `Promise.reject` returns a promise rejected with the passed `reason`.\n  It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    reject(new Error('WHOOPS'));\n  });\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = Promise.reject(new Error('WHOOPS'));\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  @method reject\n  @for Promise\n  @static\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  let promise = new Constructor(noop, label);\n  reject$2(promise, reason);\n  return promise;\n}\n\nconst guidKey = 'rsvp_' + Date.now() + '-';\nlet counter = 0;\n\nfunction needsResolver() {\n  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n  throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n  Promise objects represent the eventual result of an asynchronous operation. The\n  primary way of interacting with a promise is through its `then` method, which\n  registers callbacks to receive either a promise’s eventual value or the reason\n  why the promise cannot be fulfilled.\n\n  Terminology\n  -----------\n\n  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n  - `thenable` is an object or function that defines a `then` method.\n  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n  - `exception` is a value that is thrown using the throw statement.\n  - `reason` is a value that indicates why a promise was rejected.\n  - `settled` the final resting state of a promise, fulfilled or rejected.\n\n  A promise can be in one of three states: pending, fulfilled, or rejected.\n\n  Promises that are fulfilled have a fulfillment value and are in the fulfilled\n  state.  Promises that are rejected have a rejection reason and are in the\n  rejected state.  A fulfillment value is never a thenable.\n\n  Promises can also be said to *resolve* a value.  If this value is also a\n  promise, then the original promise's settled state will match the value's\n  settled state.  So a promise that *resolves* a promise that rejects will\n  itself reject, and a promise that *resolves* a promise that fulfills will\n  itself fulfill.\n\n\n  Basic Usage:\n  ------------\n\n  ```js\n  let promise = new Promise(function(resolve, reject) {\n    // on success\n    resolve(value);\n\n    // on failure\n    reject(reason);\n  });\n\n  promise.then(function(value) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Advanced Usage:\n  ---------------\n\n  Promises shine when abstracting away asynchronous interactions such as\n  `XMLHttpRequest`s.\n\n  ```js\n  function getJSON(url) {\n    return new Promise(function(resolve, reject){\n      let xhr = new XMLHttpRequest();\n\n      xhr.open('GET', url);\n      xhr.onreadystatechange = handler;\n      xhr.responseType = 'json';\n      xhr.setRequestHeader('Accept', 'application/json');\n      xhr.send();\n\n      function handler() {\n        if (this.readyState === this.DONE) {\n          if (this.status === 200) {\n            resolve(this.response);\n          } else {\n            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n          }\n        }\n      };\n    });\n  }\n\n  getJSON('/posts.json').then(function(json) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Unlike callbacks, promises are great composable primitives.\n\n  ```js\n  Promise.all([\n    getJSON('/posts'),\n    getJSON('/comments')\n  ]).then(function(values){\n    values[0] // => postsJSON\n    values[1] // => commentsJSON\n\n    return values;\n  });\n  ```\n\n  @class Promise\n  @public\n  @param {function} resolver\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @constructor\n*/\nlet Promise$1 = class Promise {\n  constructor(resolver, label) {\n    this._id = counter++;\n    this._label = label;\n    this._state = undefined;\n    this._result = undefined;\n    this._subscribers = [];\n\n    config.instrument && instrument('created', this);\n\n    if (noop !== resolver) {\n      typeof resolver !== 'function' && needsResolver();\n      this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n    }\n  }\n\n  _onError(reason) {\n    config.after(() => {\n      if (this._onError) {\n        config.trigger('error', reason, this._label);\n      }\n    });\n  }\n\n/**\n  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n  as the catch block of a try/catch statement.\n\n  ```js\n  function findAuthor(){\n    throw new Error('couldn\\'t find that author');\n  }\n\n  // synchronous\n  try {\n    findAuthor();\n  } catch(reason) {\n    // something went wrong\n  }\n\n  // async with promises\n  findAuthor().catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method catch\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  catch(onRejection, label) {\n    return this.then(undefined, onRejection, label);\n  }\n\n/**\n  `finally` will be invoked regardless of the promise's fate just as native\n  try/catch/finally behaves\n\n  Synchronous example:\n\n  ```js\n  findAuthor() {\n    if (Math.random() > 0.5) {\n      throw new Error();\n    }\n    return new Author();\n  }\n\n  try {\n    return findAuthor(); // succeed or fail\n  } catch(error) {\n    return findOtherAuthor();\n  } finally {\n    // always runs\n    // doesn't affect the return value\n  }\n  ```\n\n  Asynchronous example:\n\n  ```js\n  findAuthor().catch(function(reason){\n    return findOtherAuthor();\n  }).finally(function(){\n    // author was either found, or not\n  });\n  ```\n\n  @method finally\n  @param {Function} callback\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  finally(callback, label) {\n    let promise = this;\n    let constructor = promise.constructor;\n\n    if (typeof callback === 'function') {\n      return promise.then(value => constructor.resolve(callback()).then(() => value),\n                         reason => constructor.resolve(callback()).then(() => { throw reason; }));\n    }\n\n    return promise.then(callback, callback);\n  }\n};\n\nPromise$1.cast = resolve$2; // deprecated\nPromise$1.all = all$1;\nPromise$1.race = race$1;\nPromise$1.resolve = resolve$2;\nPromise$1.reject = reject$1;\n\nPromise$1.prototype._guidKey = guidKey;\n\n/**\n  The primary way of interacting with a promise is through its `then` method,\n  which registers callbacks to receive either a promise's eventual value or the\n  reason why the promise cannot be fulfilled.\n\n  ```js\n  findUser().then(function(user){\n    // user is available\n  }, function(reason){\n    // user is unavailable, and you are given the reason why\n  });\n  ```\n\n  Chaining\n  --------\n\n  The return value of `then` is itself a promise.  This second, 'downstream'\n  promise is resolved with the return value of the first promise's fulfillment\n  or rejection handler, or rejected if the handler throws an exception.\n\n  ```js\n  findUser().then(function (user) {\n    return user.name;\n  }, function (reason) {\n    return 'default name';\n  }).then(function (userName) {\n    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n    // will be `'default name'`\n  });\n\n  findUser().then(function (user) {\n    throw new Error('Found user, but still unhappy');\n  }, function (reason) {\n    throw new Error('`findUser` rejected and we\\'re unhappy');\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n    // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n  });\n  ```\n  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n  ```js\n  findUser().then(function (user) {\n    throw new PedagogicalException('Upstream error');\n  }).then(function (value) {\n    // never reached\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // The `PedgagocialException` is propagated all the way down to here\n  });\n  ```\n\n  Assimilation\n  ------------\n\n  Sometimes the value you want to propagate to a downstream promise can only be\n  retrieved asynchronously. This can be achieved by returning a promise in the\n  fulfillment or rejection handler. The downstream promise will then be pending\n  until the returned promise is settled. This is called *assimilation*.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // The user's comments are now available\n  });\n  ```\n\n  If the assimliated promise rejects, then the downstream promise will also reject.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // If `findCommentsByAuthor` fulfills, we'll have the value here\n  }, function (reason) {\n    // If `findCommentsByAuthor` rejects, we'll have the reason here\n  });\n  ```\n\n  Simple Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let result;\n\n  try {\n    result = findResult();\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n  findResult(function(result, err){\n    if (err) {\n      // failure\n    } else {\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findResult().then(function(result){\n    // success\n  }, function(reason){\n    // failure\n  });\n  ```\n\n  Advanced Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let author, books;\n\n  try {\n    author = findAuthor();\n    books  = findBooksByAuthor(author);\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n\n  function foundBooks(books) {\n\n  }\n\n  function failure(reason) {\n\n  }\n\n  findAuthor(function(author, err){\n    if (err) {\n      failure(err);\n      // failure\n    } else {\n      try {\n        findBoooksByAuthor(author, function(books, err) {\n          if (err) {\n            failure(err);\n          } else {\n            try {\n              foundBooks(books);\n            } catch(reason) {\n              failure(reason);\n            }\n          }\n        });\n      } catch(error) {\n        failure(err);\n      }\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findAuthor().\n    then(findBooksByAuthor).\n    then(function(books){\n      // found books\n  }).catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method then\n  @param {Function} onFulfillment\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\nPromise$1.prototype.then = then;\n\nvar Promise$2 = Promise$1;\n\nfunction makeObject(_, argumentNames) {\n  let obj = {};\n  let length = _.length;\n  let args = new Array(length);\n\n  for (let x = 0; x < length; x++) {\n    args[x] = _[x];\n  }\n\n  for (let i = 0; i < argumentNames.length; i++) {\n    let name = argumentNames[i];\n    obj[name] = args[i + 1];\n  }\n\n  return obj;\n}\n\nfunction arrayResult(_) {\n  let length = _.length;\n  let args = new Array(length - 1);\n\n  for (let i = 1; i < length; i++) {\n    args[i - 1] = _[i];\n  }\n\n  return args;\n}\n\nfunction wrapThenable(then, promise) {\n  return {\n    then(onFulFillment, onRejection) {\n      return then.call(promise, onFulFillment, onRejection);\n    }\n  };\n}\n\n/**\n  `denodeify` takes a 'node-style' function and returns a function that\n  will return an `Promise`. You can use `denodeify` in Node.js or the\n  browser when you'd prefer to use promises over using callbacks. For example,\n  `denodeify` transforms the following:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) return handleError(err);\n    handleData(data);\n  });\n  ```\n\n  into:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n\n  readFile('myfile.txt').then(handleData, handleError);\n  ```\n\n  If the node function has multiple success parameters, then `denodeify`\n  just returns the first one:\n\n  ```javascript\n  let request = denodeify(require('request'));\n\n  request('http://example.com').then(function(res) {\n    // ...\n  });\n  ```\n\n  However, if you need all success parameters, setting `denodeify`'s\n  second parameter to `true` causes it to return all success parameters\n  as an array:\n\n  ```javascript\n  let request = denodeify(require('request'), true);\n\n  request('http://example.com').then(function(result) {\n    // result[0] -> res\n    // result[1] -> body\n  });\n  ```\n\n  Or if you pass it an array with names it returns the parameters as a hash:\n\n  ```javascript\n  let request = denodeify(require('request'), ['res', 'body']);\n\n  request('http://example.com').then(function(result) {\n    // result.res\n    // result.body\n  });\n  ```\n\n  Sometimes you need to retain the `this`:\n\n  ```javascript\n  let app = require('express')();\n  let render = denodeify(app.render.bind(app));\n  ```\n\n  The denodified function inherits from the original function. It works in all\n  environments, except IE 10 and below. Consequently all properties of the original\n  function are available to you. However, any properties you change on the\n  denodeified function won't be changed on the original function. Example:\n\n  ```javascript\n  let request = denodeify(require('request')),\n      cookieJar = request.jar(); // <- Inheritance is used here\n\n  request('http://example.com', {jar: cookieJar}).then(function(res) {\n    // cookieJar.cookies holds now the cookies returned by example.com\n  });\n  ```\n\n  Using `denodeify` makes it easier to compose asynchronous operations instead\n  of using callbacks. For example, instead of:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) { ... } // Handle error\n    fs.writeFile('myfile2.txt', data, function(err){\n      if (err) { ... } // Handle error\n      console.log('done')\n    });\n  });\n  ```\n\n  you can chain the operations together using `then` from the returned promise:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n  let writeFile = denodeify(fs.writeFile);\n\n  readFile('myfile.txt').then(function(data){\n    return writeFile('myfile2.txt', data);\n  }).then(function(){\n    console.log('done')\n  }).catch(function(error){\n    // Handle error\n  });\n  ```\n\n  @method denodeify\n  @public\n  @static\n  @for rsvp\n  @param {Function} nodeFunc a 'node-style' function that takes a callback as\n  its last argument. The callback expects an error to be passed as its first\n  argument (if an error occurred, otherwise null), and the value from the\n  operation as its second argument ('function(err, value){ }').\n  @param {Boolean|Array} [options] An optional paramter that if set\n  to `true` causes the promise to fulfill with the callback's success arguments\n  as an array. This is useful if the node function has multiple success\n  paramters. If you set this paramter to an array with names, the promise will\n  fulfill with a hash with these names as keys and the success parameters as\n  values.\n  @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n*/\nfunction denodeify(nodeFunc, options) {\n  let fn = function() {\n    let l = arguments.length;\n    let args = new Array(l + 1);\n    let promiseInput = false;\n\n    for (let i = 0; i < l; ++i) {\n      let arg = arguments[i];\n\n      // TODO: this code really needs to be cleaned up\n      if (!promiseInput) {\n        if (arg !== null && typeof arg === 'object') {\n          if (arg.constructor === Promise$2) {\n            promiseInput = true;\n          } else {\n            try {\n              promiseInput = arg.then;\n            } catch(error) {\n              let p = new Promise$2(noop);\n              reject$2(p, error);\n              return p;\n            }\n          }\n        } else {\n          promiseInput = false;\n        }\n        if (promiseInput && promiseInput !== true) {\n          arg = wrapThenable(promiseInput, arg);\n        }\n      }\n      args[i] = arg;\n    }\n\n    let promise = new Promise$2(noop);\n\n    args[l] = function(err, val) {\n      if (err) {\n        reject$2(promise, err);\n      } else if (options === undefined) {\n        resolve$1(promise, val);\n      } else if (options === true) {\n        resolve$1(promise, arrayResult(arguments));\n      } else if (Array.isArray(options)) {\n        resolve$1(promise, makeObject(arguments, options));\n      } else {\n        resolve$1(promise, val);\n      }\n    };\n\n    if (promiseInput) {\n      return handlePromiseInput(promise, args, nodeFunc, this);\n    } else {\n      return handleValueInput(promise, args, nodeFunc, this);\n    }\n  };\n\n  fn.__proto__ = nodeFunc;\n\n  return fn;\n}\n\nfunction handleValueInput(promise, args, nodeFunc, self) {\n  try {\n    nodeFunc.apply(self, args);\n  } catch (error) {\n    reject$2(promise, error);\n  }\n  return promise;\n}\n\nfunction handlePromiseInput(promise, args, nodeFunc, self){\n  return Promise$2.all(args)\n    .then(args => handleValueInput(promise, args, nodeFunc, self));\n}\n\n/**\n  This is a convenient alias for `Promise.all`.\n\n  @method all\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n*/\nfunction all(array, label) {\n  return Promise$2.all(array, label);\n}\n\n/**\n@module rsvp\n@public\n**/\n\nclass AllSettled extends Enumerator {\n  constructor(Constructor, entries, label) {\n    super(Constructor, entries, false /* don't abort on reject */, label);\n  }\n}\n\nAllSettled.prototype._setResultAt = setSettledResult;\n\n  /**\n  `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n  a fail-fast method, it waits until all the promises have returned and\n  shows you all the results. This is useful if you want to handle multiple\n  promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled. The return promise is fulfilled with an array of the states of\n  the promises passed into the `promises` array argument.\n\n  Each state object will either indicate fulfillment or rejection, and\n  provide the corresponding value or reason. The states will take one of\n  the following formats:\n\n  ```javascript\n  { state: 'fulfilled', value: value }\n    or\n  { state: 'rejected', reason: reason }\n  ```\n\n  Example:\n\n  ```javascript\n  let promise1 = RSVP.Promise.resolve(1);\n  let promise2 = RSVP.Promise.reject(new Error('2'));\n  let promise3 = RSVP.Promise.reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  RSVP.allSettled(promises).then(function(array){\n    // array == [\n    //   { state: 'fulfilled', value: 1 },\n    //   { state: 'rejected', reason: Error },\n    //   { state: 'rejected', reason: Error }\n    // ]\n    // Note that for the second item, reason.message will be '2', and for the\n    // third item, reason.message will be '3'.\n  }, function(error) {\n    // Not run. (This block would only be called if allSettled had failed,\n    // for instance if passed an incorrect argument type.)\n  });\n  ```\n\n  @method allSettled\n  @public\n  @static\n  @for rsvp\n  @param {Array} entries\n  @param {String} [label] - optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with an array of the settled\n  states of the constituent promises.\n  */\n\nfunction allSettled(entries, label) {\n  if (!Array.isArray(entries)) {\n    return Promise$2.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n  }\n\n  return new AllSettled(Promise$2, entries, label).promise;\n}\n\n/**\n  This is a convenient alias for `Promise.race`.\n\n  @method race\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n */\nfunction race(array, label) {\n  return Promise$2.race(array, label);\n}\n\nclass PromiseHash extends Enumerator {\n  constructor(Constructor, object, abortOnReject = true, label) {\n    super(Constructor, object, abortOnReject, label);\n  }\n\n  _init(Constructor, object) {\n    this._result = {};\n    this._enumerate(object);\n  }\n\n  _enumerate(input) {\n    let keys = Object.keys(input);\n\n    let length = keys.length;\n    let promise = this.promise;\n    this._remaining = length;\n\n    let key, val;\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      key = keys[i];\n      val = input[key];\n      this._eachEntry(val, key, true);\n    }\n\n    this._checkFullfillment();\n  }\n}\n\n/**\n  `hash` is similar to `all`, but takes an object instead of an array\n  for its `promises` argument.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  fulfilled, or rejected if any of them become rejected. The returned promise\n  is fulfilled with a hash that has the same key names as the `promises` object\n  argument. If any of the values in the object are not promises, they will\n  simply be copied over to the fulfilled object.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hash(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: 1,\n    //   yourPromise: 2,\n    //   theirPromise: 3,\n    //   notAPromise: 4\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the first promise\n  that is rejected will be given as the reason to the rejection handler.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejectedPromise')),\n    anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n  };\n\n  hash(promises).then(function(hash){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === 'rejectedPromise'\n  });\n  ```\n\n  An important note: `hash` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hash` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import { hash, resolve } from 'rsvp';\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hash(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: 'Example'\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hash\n  @public\n  @static\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all properties of `promises`\n  have been fulfilled, or rejected if any of them become rejected.\n*/\nfunction hash(object, label) {\n  return Promise$2.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"Promise.hash must be called with an object\");\n      }\n      return new PromiseHash(Promise$2, object, label).promise;\n    });\n}\n\nclass HashSettled extends PromiseHash {\n  constructor(Constructor, object, label) {\n    super(Constructor, object, false, label);\n  }\n}\n\nHashSettled.prototype._setResultAt = setSettledResult;\n\n/**\n  `hashSettled` is similar to `allSettled`, but takes an object\n  instead of an array for its `promises` argument.\n\n  Unlike `all` or `hash`, which implement a fail-fast method,\n  but like `allSettled`, `hashSettled` waits until all the\n  constituent promises have returned and then shows you all the results\n  with their states and values/reasons. This is useful if you want to\n  handle multiple promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled, or rejected if the passed parameters are invalid.\n\n  The returned promise is fulfilled with a hash that has the same key names as\n  the `promises` object argument. If any of the values in the object are not\n  promises, they will be copied over to the fulfilled object and marked with state\n  'fulfilled'.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: { state: 'fulfilled', value: 1 },\n    //   yourPromise: { state: 'fulfilled', value: 2 },\n    //   theirPromise: { state: 'fulfilled', value: 3 },\n    //   notAPromise: { state: 'fulfilled', value: 4 }\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the state will\n  be set to 'rejected' and the reason for rejection provided.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, reject, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejection')),\n    anotherRejectedPromise: reject(new Error('more rejection')),\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise:              { state: 'fulfilled', value: 1 },\n    //   rejectedPromise:        { state: 'rejected', reason: Error },\n    //   anotherRejectedPromise: { state: 'rejected', reason: Error },\n    // }\n    // Note that for rejectedPromise, reason.message == 'rejection',\n    // and for anotherRejectedPromise, reason.message == 'more rejection'.\n  });\n  ```\n\n  An important note: `hashSettled` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hashSettled` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import Promise, { hashSettled, resolve } from 'rsvp';\n\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: Promise.resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hashSettled(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: { state: 'fulfilled', value: 'Example' }\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hashSettled\n  @public\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when when all properties of `promises`\n  have been settled.\n  @static\n*/\n\nfunction hashSettled(object, label) {\n  return Promise$2.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"hashSettled must be called with an object\");\n      }\n\n      return new HashSettled(Promise$2, object, false, label).promise;\n    });\n}\n\n/**\n  `rethrow` will rethrow an error on the next turn of the JavaScript event\n  loop in order to aid debugging.\n\n  Promises A+ specifies that any exceptions that occur with a promise must be\n  caught by the promises implementation and bubbled to the last handler. For\n  this reason, it is recommended that you always specify a second rejection\n  handler function to `then`. However, `rethrow` will throw the exception\n  outside of the promise, so it bubbles up to your console if in the browser,\n  or domain/cause uncaught exception in Node. `rethrow` will also throw the\n  error again so the error can be handled by the promise per the spec.\n\n  ```javascript\n  import { rethrow } from 'rsvp';\n\n  function throws(){\n    throw new Error('Whoops!');\n  }\n\n  let promise = new Promise(function(resolve, reject){\n    throws();\n  });\n\n  promise.catch(rethrow).then(function(){\n    // Code here doesn't run because the promise became rejected due to an\n    // error!\n  }, function (err){\n    // handle the error here\n  });\n  ```\n\n  The 'Whoops' error will be thrown on the next turn of the event loop\n  and you can watch for it in your console. You can also handle it using a\n  rejection handler given to `.then` or `.catch` on the returned promise.\n\n  @method rethrow\n  @public\n  @static\n  @for rsvp\n  @param {Error} reason reason the promise became rejected.\n  @throws Error\n  @static\n*/\nfunction rethrow(reason) {\n  setTimeout(() => {\n    throw reason;\n  });\n  throw reason;\n}\n\n/**\n  `defer` returns an object similar to jQuery's `$.Deferred`.\n  `defer` should be used when porting over code reliant on `$.Deferred`'s\n  interface. New code should use the `Promise` constructor instead.\n\n  The object returned from `defer` is a plain object with three properties:\n\n  * promise - an `Promise`.\n  * reject - a function that causes the `promise` property on this object to\n    become rejected\n  * resolve - a function that causes the `promise` property on this object to\n    become fulfilled.\n\n  Example:\n\n   ```javascript\n   let deferred = defer();\n\n   deferred.resolve(\"Success!\");\n\n   deferred.promise.then(function(value){\n     // value here is \"Success!\"\n   });\n   ```\n\n  @method defer\n  @public\n  @static\n  @for rsvp\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Object}\n */\n\nfunction defer(label) {\n  let deferred = { resolve: undefined, reject: undefined };\n\n  deferred.promise = new Promise$2((resolve, reject) => {\n    deferred.resolve = resolve;\n    deferred.reject = reject;\n  }, label);\n\n  return deferred;\n}\n\nclass MapEnumerator extends Enumerator {\n  constructor(Constructor, entries, mapFn, label) {\n    super(Constructor, entries, true, label, mapFn);\n  }\n\n  _init(Constructor, input, bool, label, mapFn) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n    this._mapFn = mapFn;\n\n    this._enumerate(input);\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      try {\n        this._eachEntry(this._mapFn(value, i), i, false);\n      } catch (error) {\n        this._settledAt(REJECTED, i, error, false);\n      }\n    } else {\n      this._remaining--;\n      this._result[i] = value;\n    }\n  }\n}\n\n\n/**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n  meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n  `map` returns a promise that will become fulfilled with the result of running\n  `mapFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { map, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(result){\n    // result is [ 2, 3, 4 ]\n  });\n  ```\n\n  If any of the `promises` given to `map` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { map, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `map` will also wait if a promise is returned from `mapFn`. For example,\n  say you want to get all comments from a set of blog posts, but you need\n  the blog posts first because they contain a url to those comments.\n\n  ```javscript\n  import { map } from 'rsvp';\n\n  let mapFn = function(blogPost){\n    // getComments does some ajax and returns an Promise that is fulfilled\n    // with some comments data\n    return getComments(blogPost.comments_url);\n  };\n\n  // getBlogPosts does some ajax and returns an Promise that is fulfilled\n  // with some blog post data\n  map(getBlogPosts(), mapFn).then(function(comments){\n    // comments is the result of asking the server for the comments\n    // of all blog posts returned from getBlogPosts()\n  });\n  ```\n\n  @method map\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} mapFn function to be called on each fulfilled promise.\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with the result of calling\n  `mapFn` on each fulfilled promise or value when they become fulfilled.\n   The promise will be rejected if any of the given `promises` become rejected.\n*/\nfunction map(promises, mapFn, label) {\n  if (typeof mapFn !== 'function') {\n    return Promise$2.reject(new TypeError(\"map expects a function as a second argument\"), label);\n  }\n\n  return Promise$2.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"map must be called with an array\");\n      }\n      return new MapEnumerator(Promise$2, promises, mapFn, label).promise;\n    });\n}\n\n/**\n  This is a convenient alias for `Promise.resolve`.\n\n  @method resolve\n  @public\n  @static\n  @for rsvp\n  @param {*} value value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve(value, label) {\n  return Promise$2.resolve(value, label);\n}\n\n/**\n  This is a convenient alias for `Promise.reject`.\n\n  @method reject\n  @public\n  @static\n  @for rsvp\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject(reason, label) {\n  return Promise$2.reject(reason, label);\n}\n\nconst EMPTY_OBJECT = {};\n\nclass FilterEnumerator extends MapEnumerator {\n\n  _checkFullfillment() {\n    if (this._remaining === 0 && this._result !== null) {\n      let result = this._result.filter((val) => val !== EMPTY_OBJECT);\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      this._result[i] = value;\n      let val, succeeded = true;\n      try {\n        val = this._mapFn(value, i);\n      } catch (error) {\n        succeeded = false;\n        this._settledAt(REJECTED, i, error, false);\n      }\n      if (succeeded) {\n        this._eachEntry(val, i, false);\n      }\n    } else {\n      this._remaining--;\n      if (!value) {\n        this._result[i] = EMPTY_OBJECT;\n      }\n    }\n  }\n}\n\n/**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n  resolves its value will be passed to `filterFn`. `filter` returns\n  a promise that will become fulfilled with the result of running\n  `filterFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n\n  let promises = [promise1, promise2, promise3];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(result){\n    // result is [ 2, 3 ]\n  });\n  ```\n\n  If any of the `promises` given to `filter` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { filter, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `filter` will also wait for any promises returned from `filterFn`.\n  For instance, you may want to fetch a list of users then return a subset\n  of those users based on some asynchronous operation:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let alice = { name: 'alice' };\n  let bob   = { name: 'bob' };\n  let users = [ alice, bob ];\n\n  let promises = users.map(function(user){\n    return resolve(user);\n  });\n\n  let filterFn = function(user){\n    // Here, Alice has permissions to create a blog post, but Bob does not.\n    return getPrivilegesForUser(user).then(function(privs){\n      return privs.can_create_blog_post === true;\n    });\n  };\n  filter(promises, filterFn).then(function(users){\n    // true, because the server told us only Alice can create a blog post.\n    users.length === 1;\n    // false, because Alice is the only user present in `users`\n    users[0] === bob;\n  });\n  ```\n\n  @method filter\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} filterFn - function to be called on each resolved value to\n  filter the final results.\n  @param {String} [label] optional string describing the promise. Useful for\n  tooling.\n  @return {Promise}\n*/\n\nfunction filter(promises, filterFn, label) {\n  if (typeof filterFn !== 'function') {\n    return Promise$2.reject(new TypeError(\"filter expects function as a second argument\"), label);\n  }\n\n  return Promise$2.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"filter must be called with an array\");\n      }\n      return new FilterEnumerator(Promise$2, promises, filterFn, label).promise;\n    });\n}\n\nlet len = 0;\nlet vertxNext;\nfunction asap(callback, arg) {\n  queue[len] = callback;\n  queue[len + 1] = arg;\n  len += 2;\n  if (len === 2) {\n    // If len is 1, that means that we need to schedule an async flush.\n    // If additional callbacks are queued before the queue is flushed, they\n    // will be processed by this flush that we are scheduling.\n    scheduleFlush();\n  }\n}\n\nconst browserWindow = (typeof window !== 'undefined') ? window : undefined;\nconst browserGlobal = browserWindow || {};\nconst BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nconst isNode = typeof self === 'undefined' &&\n  typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nconst isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n  typeof importScripts !== 'undefined' &&\n  typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n  let nextTick = process.nextTick;\n  // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n  // setImmediate should be used instead instead\n  let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n  if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n    nextTick = setImmediate;\n  }\n  return () => nextTick(flush);\n}\n\n// vertx\nfunction useVertxTimer() {\n  if (typeof vertxNext !== 'undefined') {\n    return function() {\n      vertxNext(flush);\n    };\n  }\n  return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n  let iterations = 0;\n  let observer = new BrowserMutationObserver(flush);\n  let node = document.createTextNode('');\n  observer.observe(node, { characterData: true });\n\n  return () => node.data = (iterations = ++iterations % 2);\n}\n\n// web worker\nfunction useMessageChannel() {\n  let channel = new MessageChannel();\n  channel.port1.onmessage = flush;\n  return () => channel.port2.postMessage(0);\n}\n\nfunction useSetTimeout() {\n  return () => setTimeout(flush, 1);\n}\n\nconst queue = new Array(1000);\n\nfunction flush() {\n  for (let i = 0; i < len; i+=2) {\n    let callback = queue[i];\n    let arg = queue[i+1];\n\n    callback(arg);\n\n    queue[i] = undefined;\n    queue[i+1] = undefined;\n  }\n\n  len = 0;\n}\n\nfunction attemptVertex() {\n  try {\n    const vertx = Function('return this')().require('vertx');\n    vertxNext = vertx.runOnLoop || vertx.runOnContext;\n    return useVertxTimer();\n  } catch(e) {\n    return useSetTimeout();\n  }\n}\n\nlet scheduleFlush;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n  scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n  scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n  scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n  scheduleFlush = attemptVertex();\n} else {\n  scheduleFlush = useSetTimeout();\n}\n\n// defaults\nconfig.async = asap;\nconfig.after = cb => setTimeout(cb, 0);\nconst cast = resolve;\n\nconst async = (callback, arg) => config.async(callback, arg);\n\nfunction on() {\n  config.on(...arguments);\n}\n\nfunction off() {\n  config.off(...arguments);\n}\n\n// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n  let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n  configure('instrument', true);\n  for (let eventName in callbacks) {\n    if (callbacks.hasOwnProperty(eventName)) {\n      on(eventName, callbacks[eventName]);\n    }\n  }\n}\n\n// the default export here is for backwards compat:\n//   https://github.com/tildeio/rsvp.js/issues/434\nvar rsvp = {\n  asap,\n  cast,\n  Promise: Promise$2,\n  EventTarget,\n  all,\n  allSettled,\n  race,\n  hash,\n  hashSettled,\n  rethrow,\n  defer,\n  denodeify,\n  configure,\n  on,\n  off,\n  resolve,\n  reject,\n  map,\n  async,\n  filter\n};\n\nexport { EventTarget, Promise$2 as Promise, all, allSettled, asap, async, cast, configure, rsvp as default, defer, denodeify, filter, hash, hashSettled, map, off, on, race, reject, resolve, rethrow };\n","define(\"@ember/render-modifiers/modifiers/did-insert\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{did-insert}}` element modifier is activated when an element is\n    inserted into the DOM.\n  \n    In this example, the `fadeIn` function receives the `div` DOM element as its\n    first argument and is executed after the element is inserted into the DOM.\n  \n    ```handlebars\n    <div {{did-insert this.fadeIn}} class=\"alert\">\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      fadeIn(element) {\n        element.classList.add('fade-in');\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-insert this.incrementCount}}>first</div>\n    <div {{did-insert this.incrementCount}}>second</div>\n  \n    <p>{{this.count}} elements were rendered</p>\n    ```\n  \n    ```js\n    export default Component.extend({\n      count: tracked({ value: 0 }),\n  \n      incrementCount: action(function() {\n        this.count++;\n      })\n    });\n    ```\n  \n    @method did-insert\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {},\n    installModifier(_state, element, {\n      positional: [fn, ...args],\n      named\n    }) {\n      fn(element, args, named);\n    },\n    updateModifier() {},\n    destroyModifier() {}\n  }), class DidInsertModifier {});\n});","define(\"@ember/render-modifiers/modifiers/did-update\", [\"exports\", \"@ember/modifier\", \"@embroider/macros/es-compat2\"], function (_exports, _modifier, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const untrack = function () {\n    {\n      // ember-source@3.27 shipped \"real modules\" by default, so we can just use\n      // importSync to get @glimmer/validator directly\n      return (0, _esCompat.default)(require(\"@glimmer/validator\")).untrack;\n    }\n  }();\n\n  /**\n    The `{{did-update}}` element modifier is activated when any of its arguments\n    are updated. It does not run on initial render.\n  \n    In this example, the `resize` function receives the `textarea` DOM element as its\n    first argument and is executed anytime the `@text` argument changes.\n  \n    ```handlebars\n    <textarea {{did-update this.resize @text}} readonly style=\"padding: 0px;\">\n      {{@text}}\n    </textarea>\n    ```\n  \n    ```js\n    export default Component.extend({\n      resize(element) {\n        element.style.height = `${element.scrollHeight}px`;\n      }\n    });\n    ```\n  \n    In addition to the `element`, both named and positional arguments are passed to the\n    executed function:\n  \n    ```handlebars\n    <div {{did-update this.logArguments @first @second third=@third}} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      logArguments(element, [first, second], { third }) {\n        console.log('element', element);\n        console.log('positional args', first, second);\n        console.log('names args', third);\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-update this.someFunction @someArg} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      someFunction: action(function(element, [someArg]) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method did-update\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: false\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element, args) {\n      // save element into state bucket\n      state.element = element;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n      }\n    },\n    updateModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n        untrack(() => {\n          fn(element, positional, args.named);\n        });\n      }\n    },\n    destroyModifier() {}\n  }), class DidUpdateModifier {});\n});","define(\"@ember/render-modifiers/modifiers/will-destroy\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{will-destroy}}` element modifier is activated immediately before the element\n    is removed from the DOM.\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin(element) {\n        // teardown logic here\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin: action(function(element) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method will-destroy\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element) {\n      state.element = element;\n    },\n    updateModifier() {},\n    destroyModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    }\n  }), class WillDestroyModifier {});\n});","define(\"@ember/string/cache\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class Cache {\n    constructor(limit, func, store) {\n      _defineProperty(this, \"size\", 0);\n      _defineProperty(this, \"misses\", 0);\n      _defineProperty(this, \"hits\", 0);\n      this.limit = limit;\n      this.func = func;\n      this.store = store;\n      this.store = store || new Map();\n    }\n    get(key) {\n      let value = this.store.get(key);\n      if (this.store.has(key)) {\n        this.hits++;\n        return this.store.get(key);\n      } else {\n        this.misses++;\n        value = this.set(key, this.func(key));\n      }\n      return value;\n    }\n    set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        this.store.set(key, value);\n      }\n      return value;\n    }\n    purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    }\n  }\n  _exports.default = Cache;\n});","define(\"@ember/string/index\", [\"exports\", \"@ember/string/cache\"], function (_exports, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelize = camelize;\n  _exports.capitalize = capitalize;\n  _exports.classify = classify;\n  _exports.dasherize = dasherize;\n  _exports.decamelize = decamelize;\n  _exports.getString = getString;\n  _exports.getStrings = getStrings;\n  _exports.htmlSafe = htmlSafe;\n  _exports.isHTMLSafe = isHTMLSafe;\n  _exports.setStrings = setStrings;\n  _exports.underscore = underscore;\n  _exports.w = w;\n  /* eslint-disable no-useless-escape */\n\n  /**\n   @module @ember/string\n   */\n\n  // STATE within a module is frowned upon, this exists\n  // to support Ember.STRINGS but shield ember internals from this legacy global\n  // API.\n  let STRINGS = {};\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n  function getStrings() {\n    return STRINGS;\n  }\n  function getString(name) {\n    return STRINGS[name];\n  }\n  const STRING_DASHERIZE_REGEXP = /[ _]/g;\n  const STRING_DASHERIZE_CACHE = new _cache.default(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n  const STRING_CAMELIZE_REGEXP_1 = /(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\n  const CAMELIZE_CACHE = new _cache.default(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match\n  /*, separator, chr */) => match.toLowerCase()));\n  const STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n  const STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n  const CLASSIFY_CACHE = new _cache.default(1000, str => {\n    const replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n    const replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n    const parts = str.split('/');\n    for (let i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match\n    /*, separator, chr */) => match.toUpperCase());\n  });\n  const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  const STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n  const UNDERSCORE_CACHE = new _cache.default(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n  const STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n  const CAPITALIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match\n  /*, separator, chr */) => match.toUpperCase()));\n  const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n  const DECAMELIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n  /**\n    Splits a string into separate units separated by spaces, eliminating any\n    empty strings in the process. This is a convenience method for split that\n    is mostly useful when applied to the `String.prototype`.\n  \n    ```javascript\n    import { w } from '@ember/string';\n  \n    w(\"alpha beta gamma\").forEach(function(key) {\n      console.log(key);\n    });\n  \n    // > alpha\n    // > beta\n    // > gamma\n    ```\n  \n    @method w\n    @param {String} str The string to split\n    @return {Array} array containing the split strings\n    @public\n  */\n\n  function w(str) {\n    return str.split(/\\s+/);\n  }\n  /**\n    Converts a camelized string into all lower case separated by underscores.\n  \n    ```javascript\n    import { decamelize } from '@ember/string';\n  \n    decamelize('innerHTML');          // 'inner_html'\n    decamelize('action_name');        // 'action_name'\n    decamelize('css-class-name');     // 'css-class-name'\n    decamelize('my favorite items');  // 'my favorite items'\n    ```\n  \n    @method decamelize\n    @param {String} str The string to decamelize.\n    @return {String} the decamelized string.\n    @public\n  */\n\n  function decamelize(str) {\n    return DECAMELIZE_CACHE.get(str);\n  }\n  /**\n    Replaces underscores, spaces, or camelCase with dashes.\n  \n    ```javascript\n    import { dasherize } from '@ember/string';\n  \n    dasherize('innerHTML');                // 'inner-html'\n    dasherize('action_name');              // 'action-name'\n    dasherize('css-class-name');           // 'css-class-name'\n    dasherize('my favorite items');        // 'my-favorite-items'\n    dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n    ```\n  \n    @method dasherize\n    @param {String} str The string to dasherize.\n    @return {String} the dasherized string.\n    @public\n  */\n\n  function dasherize(str) {\n    return STRING_DASHERIZE_CACHE.get(str);\n  }\n  /**\n    Returns the lowerCamelCase form of a string.\n  \n    ```javascript\n    import { camelize } from '@ember/string';\n  \n    camelize('innerHTML');                   // 'innerHTML'\n    camelize('action_name');                 // 'actionName'\n    camelize('css-class-name');              // 'cssClassName'\n    camelize('my favorite items');           // 'myFavoriteItems'\n    camelize('My Favorite Items');           // 'myFavoriteItems'\n    camelize('private-docs/owner-invoice');  // 'privateDocs/ownerInvoice'\n    ```\n  \n    @method camelize\n    @param {String} str The string to camelize.\n    @return {String} the camelized string.\n    @public\n  */\n\n  function camelize(str) {\n    return CAMELIZE_CACHE.get(str);\n  }\n  /**\n    Returns the UpperCamelCase form of a string.\n  \n    ```javascript\n    import { classify } from '@ember/string';\n  \n    classify('innerHTML');                   // 'InnerHTML'\n    classify('action_name');                 // 'ActionName'\n    classify('css-class-name');              // 'CssClassName'\n    classify('my favorite items');           // 'MyFavoriteItems'\n    classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n    ```\n  \n    @method classify\n    @param {String} str the string to classify\n    @return {String} the classified string\n    @public\n  */\n\n  function classify(str) {\n    return CLASSIFY_CACHE.get(str);\n  }\n  /**\n    More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n    form of a string.\n  \n    ```javascript\n    import { underscore } from '@ember/string';\n  \n    underscore('innerHTML');                 // 'inner_html'\n    underscore('action_name');               // 'action_name'\n    underscore('css-class-name');            // 'css_class_name'\n    underscore('my favorite items');         // 'my_favorite_items'\n    underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n    ```\n  \n    @method underscore\n    @param {String} str The string to underscore.\n    @return {String} the underscored string.\n    @public\n  */\n\n  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n  /**\n    Returns the Capitalized form of a string\n  \n    ```javascript\n    import { capitalize } from '@ember/string';\n  \n    capitalize('innerHTML')                 // 'InnerHTML'\n    capitalize('action_name')               // 'Action_name'\n    capitalize('css-class-name')            // 'Css-class-name'\n    capitalize('my favorite items')         // 'My favorite items'\n    capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n    ```\n  \n    @method capitalize\n    @param {String} str The string to capitalize.\n    @return {String} The capitalized string.\n    @public\n  */\n\n  function capitalize(str) {\n    return CAPITALIZE_CACHE.get(str);\n  }\n  /*\n    The following are implemented here to give users adding `@ember/string` to\n    their projects a useful error message. The `ember-source` implementation of\n    `@ember/string` is clobbered by adding this addon, and so the deprecation of\n    the import path is not triggered. This error message is intended to help\n    users discover what they need to change.\n  */\n\n  function htmlSafe(str) {\n    throw new Error('htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.');\n  }\n  function isHTMLSafe(str) {\n    throw new Error('isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.');\n  }\n});","define(\"@ember/test-waiters/build-waiter\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters/token\", \"@ember/test-waiters/waiter-manager\"], function (_exports, _debug, _token, _waiterManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._resetWaiterNames = _resetWaiterNames;\n  _exports.default = buildWaiter;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const WAITER_NAME_PATTERN = /^[^:]*:?.*/;\n  let WAITER_NAMES = false /* DEBUG */ ? new Set() : undefined;\n  function _resetWaiterNames() {\n    WAITER_NAMES = new Set();\n  }\n  function getNextToken() {\n    return new _token.default();\n  }\n  class TestWaiterImpl {\n    constructor(name, nextToken) {\n      _defineProperty(this, \"isRegistered\", false);\n      _defineProperty(this, \"items\", new Map());\n      _defineProperty(this, \"completedOperationsForTokens\", new WeakMap());\n      _defineProperty(this, \"completedOperationsForPrimitives\", new Map());\n      this.name = name; // @ts-ignore\n\n      this.nextToken = nextToken || getNextToken;\n    }\n    beginAsync(token = this.nextToken(), label) {\n      this._register();\n      if (this.items.has(token)) {\n        throw new Error(`beginAsync called for ${token} but it is already pending.`);\n      }\n      let error = new Error();\n      this.items.set(token, {\n        get stack() {\n          return error.stack;\n        },\n        label\n      });\n      return token;\n    }\n    endAsync(token) {\n      if (!this.items.has(token) && !this._getCompletedOperations(token).has(token)) {\n        throw new Error(`testWaiter.endAsync called with no preceding testWaiter.beginAsync call.\n        Test waiter calls should always be paired. This can occur when a test waiter's paired calls are invoked in a non-deterministic order.\n\n        See https://github.com/emberjs/ember-test-waiters#keep-beginasyncendasync-in-same-block-scope for more information.`);\n      }\n      this.items.delete(token); // Mark when a waiter operation has completed so we can distinguish\n      // whether endAsync is being called before a prior beginAsync call above.\n\n      this._getCompletedOperations(token).set(token, true);\n    }\n    waitUntil() {\n      return this.items.size === 0;\n    }\n    debugInfo() {\n      let result = [];\n      this.items.forEach(value => {\n        result.push(value);\n      });\n      return result;\n    }\n    reset() {\n      this.items.clear();\n    }\n    _register() {\n      if (!this.isRegistered) {\n        (0, _waiterManager.register)(this);\n        this.isRegistered = true;\n      }\n    }\n    _getCompletedOperations(token) {\n      let type = typeof token;\n      let isFunction = type === 'function';\n      let isObject = token !== null && type === 'object';\n      let isPrimitive = !isFunction && !isObject;\n      return isPrimitive ? this.completedOperationsForPrimitives : this.completedOperationsForTokens;\n    }\n  }\n  class NoopTestWaiter {\n    constructor(name) {\n      this.name = name;\n    }\n    beginAsync() {\n      return this;\n    }\n    endAsync() {}\n    waitUntil() {\n      return true;\n    }\n    debugInfo() {\n      return [];\n    }\n    reset() {}\n  }\n  /**\n   * Builds and returns a test waiter. The type of the\n   * returned waiter is dependent on whether the app or\n   * addon is in `DEBUG` mode or not.\n   *\n   * @public\n   *\n   * @param name {string} The name of the test waiter\n   * @returns {TestWaiter}\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { buildWaiter } from '@ember/test-waiters';\n   *\n   * if (DEBUG) {\n   *   let waiter = buildWaiter('friend-waiter');\n   * }\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     let token = waiter.beginAsync(this);\n   *\n   *     someAsyncWork().then(() => {\n   *       waiter.endAsync(token);\n   *     });\n   *   }\n   * }\n   */\n\n  function buildWaiter(name) {\n    if (false /* DEBUG */) {\n      (false && (0, _debug.warn)(`The waiter name '${name}' is already in use`, !WAITER_NAMES.has(name), {\n        id: '@ember/test-waiters.duplicate-waiter-name'\n      }));\n      WAITER_NAMES.add(name);\n    }\n    if (!false /* DEBUG */) {\n      return new NoopTestWaiter(name);\n    } else {\n      (false && (0, _debug.warn)(`You must provide a name that contains a descriptive prefix separated by a colon.\n\n        Example: ember-fictitious-addon:some-file\n\n        You passed: ${name}`, WAITER_NAME_PATTERN.test(name), {\n        id: '@ember/test-waiters.invalid-waiter-name'\n      }));\n      return new TestWaiterImpl(name);\n    }\n  }\n});","define(\"@ember/test-waiters/index\", [\"exports\", \"@ember/test-waiters/waiter-manager\", \"@ember/test-waiters/build-waiter\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/wait-for\"], function (_exports, _waiterManager, _buildWaiter, _waitForPromise, _waitFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"_reset\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager._reset;\n    }\n  });\n  Object.defineProperty(_exports, \"_resetWaiterNames\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter._resetWaiterNames;\n    }\n  });\n  Object.defineProperty(_exports, \"buildWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"getPendingWaiterState\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getPendingWaiterState;\n    }\n  });\n  Object.defineProperty(_exports, \"getWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPendingWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.hasPendingWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"register\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.register;\n    }\n  });\n  Object.defineProperty(_exports, \"unregister\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.unregister;\n    }\n  });\n  Object.defineProperty(_exports, \"waitFor\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForPromise\", {\n    enumerable: true,\n    get: function () {\n      return _waitForPromise.default;\n    }\n  });\n});","define(\"@ember/test-waiters/token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * A class representing a test waiter token.\n   *\n   * @public\n   * @class\n   */\n  class Token {}\n  _exports.default = Token;\n});","define(\"@ember/test-waiters/types/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"@ember/test-waiters/wait-for-promise\", [\"exports\", \"@ember/test-waiters/build-waiter\"], function (_exports, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitForPromise;\n  const PROMISE_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:promise-waiter');\n  /**\n   * A convenient utility function to simplify waiting for a promise.\n   *\n   * @public\n   * @param promise {Promise<T> | RSVP.Promise<T>} The promise to track async operations for\n   * @param label {string} An optional string to identify the promise\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { waitForPromise } from '@ember/test-waiters';\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     waitForPromise(new Promise(resolve => {\n   *       doSomeWork();\n   *       resolve();\n   *     }));\n   *   }\n   * }\n   */\n\n  function waitForPromise(promise, label) {\n    let result = promise;\n    if (false /* DEBUG */) {\n      PROMISE_WAITER.beginAsync(promise, label);\n      result = promise.then(value => {\n        PROMISE_WAITER.endAsync(promise);\n        return value;\n      }, error => {\n        PROMISE_WAITER.endAsync(promise);\n        throw error;\n      });\n    }\n    return result;\n  }\n});","define(\"@ember/test-waiters/wait-for\", [\"exports\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/build-waiter\"], function (_exports, _waitForPromise, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitFor;\n  function waitFor(...args) {\n    let isFunction = args.length < 3;\n    if (isFunction) {\n      let [fn, label] = args;\n      return wrapFunction(fn, label);\n    } else {\n      let [,, descriptor, label] = args;\n      if (!false /* DEBUG */) {\n        return descriptor;\n      }\n      let fn = descriptor.value;\n      descriptor.value = wrapFunction(fn, label);\n      return descriptor;\n    }\n  }\n  function wrapFunction(fn, label) {\n    if (!false /* DEBUG */) {\n      return fn;\n    }\n    return function (...args) {\n      let result = fn.call(this, ...args);\n      if (isThenable(result)) {\n        return (0, _waitForPromise.default)(result, label);\n      } else if (isGenerator(result)) {\n        return waitForGenerator(result, label);\n      } else {\n        return result;\n      }\n    };\n  }\n  function isThenable(maybePromise) {\n    let type = typeof maybePromise;\n    return (maybePromise !== null && type === 'object' || type === 'function') && typeof maybePromise.then === 'function';\n  }\n  function isGenerator(maybeGenerator) {\n    // Because we don't have Symbol.iterator in IE11\n    return typeof maybeGenerator.next === 'function' && typeof maybeGenerator.return === 'function' && typeof maybeGenerator.throw === 'function';\n  }\n  const GENERATOR_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:generator-waiter');\n  function waitForGenerator(generator, label) {\n    GENERATOR_WAITER.beginAsync(generator, label);\n    let isWaiting = true;\n    function stopWaiting() {\n      if (isWaiting) {\n        GENERATOR_WAITER.endAsync(generator);\n        isWaiting = false;\n      }\n    }\n    return {\n      next(...args) {\n        let hasErrored = true;\n        try {\n          let val = generator.next(...args);\n          hasErrored = false;\n          if (val.done) {\n            stopWaiting();\n          }\n          return val;\n        } finally {\n          // If generator.next() throws, we need to stop waiting. But if we catch\n          // and re-throw exceptions, it could move the location from which the\n          // uncaught exception is thrown, interfering with the developer\n          // debugging experience if they have break-on-exceptions enabled. So we\n          // use a boolean flag and a finally block to emulate a catch block.\n          if (hasErrored) {\n            stopWaiting();\n          }\n        }\n      },\n      return(...args) {\n        stopWaiting();\n        return generator.return(...args);\n      },\n      throw(...args) {\n        stopWaiting();\n        return generator.throw(...args);\n      }\n    };\n  }\n});","define(\"@ember/test-waiters/waiter-manager\", [\"exports\", \"ember\", \"@ember/test\"], function (_exports, _ember, _test) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._reset = _reset;\n  _exports.getPendingWaiterState = getPendingWaiterState;\n  _exports.getWaiters = getWaiters;\n  _exports.hasPendingWaiters = hasPendingWaiters;\n  _exports.register = register;\n  _exports.unregister = unregister;\n  // this ensures that if @ember/test-waiters exists in multiple places in the\n  // build output we will still use a single map of waiters (there really should\n  // only be one of them, or else `settled` will not work at all)\n  const WAITERS = function () {\n    const HAS_SYMBOL = typeof Symbol !== 'undefined';\n    let symbolName = 'TEST_WAITERS';\n    let symbol = HAS_SYMBOL ? Symbol.for(symbolName) : symbolName;\n    let global = getGlobal();\n    let waiters = global[symbol];\n    if (waiters === undefined) {\n      waiters = global[symbol] = new Map();\n    }\n    return waiters;\n  }();\n  function indexable(input) {\n    return input;\n  }\n  function getGlobal() {\n    // eslint-disable-next-line node/no-unsupported-features/es-builtins\n    if (typeof globalThis !== 'undefined') return indexable(globalThis);\n    if (typeof self !== 'undefined') return indexable(self);\n    if (typeof window !== 'undefined') return indexable(window);\n    if (typeof global !== 'undefined') return indexable(global);\n    throw new Error('unable to locate global object');\n  }\n  /**\n   * Backwards compatibility with legacy waiters system.\n   *\n   * We want to always register a waiter using the legacy waiter system, as right\n   * now if consumers are not on the right version of @ember/test-helpers, using\n   * this addon will result in none of these waiters waiting.\n   */\n  // eslint-disable-next-line ember/new-module-imports\n\n  if (_ember.default.Test) {\n    (0, _test.registerWaiter)(() => !hasPendingWaiters());\n  }\n  /**\n   * Registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function register(waiter) {\n    WAITERS.set(waiter.name, waiter);\n  }\n  /**\n   * Un-registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function unregister(waiter) {\n    WAITERS.delete(waiter.name);\n  }\n  /**\n   * Gets an array of all waiters current registered.\n   *\n   * @public\n   * @returns {Waiter[]}\n   */\n\n  function getWaiters() {\n    let result = [];\n    WAITERS.forEach(value => {\n      result.push(value);\n    });\n    return result;\n  }\n  /**\n   * Clears all waiters.\n   *\n   * @private\n   */\n\n  function _reset() {\n    for (let waiter of getWaiters()) {\n      waiter.isRegistered = false;\n    }\n    WAITERS.clear();\n  }\n  /**\n   * Gets the current state of all waiters. Any waiters whose\n   * `waitUntil` method returns false will be considered `pending`.\n   *\n   * @returns {PendingWaiterState} An object containing a count of all waiters\n   * pending and a `waiters` object containing the name of all pending waiters\n   * and their debug info.\n   */\n\n  function getPendingWaiterState() {\n    let result = {\n      pending: 0,\n      waiters: {}\n    };\n    WAITERS.forEach(waiter => {\n      if (!waiter.waitUntil()) {\n        result.pending++;\n        let debugInfo = waiter.debugInfo();\n        result.waiters[waiter.name] = debugInfo || true;\n      }\n    });\n    return result;\n  }\n  /**\n   * Determines if there are any pending waiters.\n   *\n   * @returns {boolean} `true` if there are pending waiters, otherwise `false`.\n   */\n\n  function hasPendingWaiters() {\n    let state = getPendingWaiterState();\n    return state.pending > 0;\n  }\n});","define(\"@embroider/macros/es-compat2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = esCompat;\n  function esCompat(m) {\n    return m?.__esModule ? m : {\n      default: m,\n      ...m\n    };\n  }\n});","define(\"@embroider/macros/runtime\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.config = config;\n  _exports.each = each;\n  _exports.getGlobalConfig = getGlobalConfig;\n  _exports.isTesting = isTesting;\n  _exports.macroCondition = macroCondition;\n  /*\n    These are the runtime implementations for the javascript macros that have\n    runtime implementations.\n  \n    Not every macro has a runtime implementation, some only make sense in the\n    build and always run there.\n  \n    Even when we have runtime implementations, we are still careful to emit static\n    errors during the build wherever possible, and runtime errors when necessary,\n    so that you're not surprised when you switch from runtime-mode to compile-time\n    mode.\n  */\n\n  /*\n    CAUTION: in classic builds, this file gets shared by all present copies of\n    @embroider/macros. If you want to change its public API, you need to rename it\n    and update `pathToRuntime` in ../babel/state.ts to point at it, so that your\n    babel plugin and runtime will match.\n  */\n\n  function each(array) {\n    if (!Array.isArray(array)) {\n      throw new Error(`the argument to the each() macro must be an array`);\n    }\n    return array;\n  }\n  function macroCondition(predicate) {\n    return predicate;\n  }\n\n  // This is here as a compile target for `getConfig` and `getOwnConfig` when\n  // we're in runtime mode. This is not public API to call from your own code.\n  function config(packageRoot) {\n    return runtimeConfig.packages[packageRoot];\n  }\n  function getGlobalConfig() {\n    return runtimeConfig.global;\n  }\n  function isTesting() {\n    let g = runtimeConfig.global;\n    let e = g && g['@embroider/macros'];\n    return Boolean(e && e.isTesting);\n  }\n  const runtimeConfig = initializeRuntimeMacrosConfig();\n\n  // this exists to be targeted by our babel plugin\n  function initializeRuntimeMacrosConfig() {\n    return {\n      packages: {},\n      global: {}\n    };\n  }\n  function updaterMethods() {\n    return {\n      config,\n      getGlobalConfig,\n      setConfig(packageRoot, value) {\n        runtimeConfig.packages[packageRoot] = value;\n      },\n      setGlobalConfig(key, value) {\n        runtimeConfig.global[key] = value;\n      }\n    };\n  }\n\n  // this is how runtime config can get injected at boot. I'm not sure yet if this\n  // should be public API, but we certainly need it internally to set things like\n  // the global fastboot.isRunning.\n  //\n  // consumers of this API push a function onto\n  // window._embroider_macros_runtime_config. The function is given four methods\n  // which allow it to read and write the per-package and global configs. The\n  // reason for allowing both read & write is that merging strategies are up to\n  // each consumers -- read first, then merge, then write.\n  //\n  // For an example user of this API, see where we generate\n  // embroider_macros_fastboot_init.js' in @embroider/core.\n  let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;\n  if (updaters) {\n    let methods = updaterMethods();\n    for (let updater of updaters) {\n      updater(methods);\n    }\n  }\n});","define(\"@embroider/util/ember-private-api\", [\"exports\", \"@embroider/macros/es-compat2\"], function (_exports, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isCurriedComponentDefinition = void 0;\n  _exports.lookupCurriedComponentDefinition = lookupCurriedComponentDefinition;\n  let runtime;\n  {\n    // new enough ember has a real module we can import\n    runtime = (0, _esCompat.default)(require(\"@glimmer/runtime\"));\n  }\n  let {\n    isCurriedComponentDefinition,\n    CurriedComponentDefinition,\n    curry,\n    CurriedValue\n  } = runtime;\n\n  // older embers have isCurriedComponentDefinition, new ones have CurriedValue\n  // and instanceof CurriedValue seems good enough.\n  _exports.isCurriedComponentDefinition = isCurriedComponentDefinition;\n  if (!isCurriedComponentDefinition) {\n    _exports.isCurriedComponentDefinition = isCurriedComponentDefinition = function (value) {\n      return value instanceof CurriedValue;\n    };\n  }\n  function runtimeResolver(owner) {\n    let resolver = owner.lookup('renderer:-dom')._runtimeResolver;\n    if (resolver) {\n      return resolver;\n    }\n    let entry = Object.entries(owner.__container__.cache).find(e => e[0].startsWith('template-compiler:main-'));\n    if (entry) {\n      return entry[1].resolver.resolver;\n    }\n    throw new Error(`@embroider/util couldn't locate the runtime resolver on this ember version`);\n  }\n  function lookupCurriedComponentDefinition(name, owner) {\n    let resolver = runtimeResolver(owner);\n    if (typeof resolver.lookupComponentHandle === 'function') {\n      let handle = resolver.lookupComponentHandle(name, contextForLookup(owner));\n      if (handle != null) {\n        return new CurriedComponentDefinition(resolver.resolve(handle), null);\n      }\n    }\n\n    // here we're doing the same thing the internal currying does, in order to\n    // generate a sane error message (even though we don't actually use\n    // resolvedDefinition as part of our return value).\n    let resolvedDefinition = resolver.lookupComponent(name, owner);\n    if (!resolvedDefinition) {\n      throw new Error(`Attempted to resolve \\`${name}\\` via ensureSafeComponent, but nothing was found.`);\n    }\n    return curry(0, name, owner, {\n      named: {},\n      positional: []\n    });\n  }\n  function contextForLookup(owner) {\n    {\n      return owner;\n    }\n  }\n});","define(\"@embroider/util/index\", [\"exports\", \"@ember/debug\", \"@ember/application\", \"@embroider/util/ember-private-api\", \"@ember/component/helper\"], function (_exports, _debug, _application, _emberPrivateApi, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EnsureSafeComponentHelper = void 0;\n  _exports.ensureSafeComponent = ensureSafeComponent;\n  function ensureSafeComponent(value, thingWithOwner) {\n    if (typeof value === 'string') {\n      return handleString(value, thingWithOwner);\n    } else if ((0, _emberPrivateApi.isCurriedComponentDefinition)(value)) {\n      return value;\n    } else if (value == null) {\n      return value;\n    } else {\n      return handleClass(value, thingWithOwner);\n    }\n  }\n  class EnsureSafeComponentHelper extends _helper.default {\n    compute([value]) {\n      return ensureSafeComponent(value, this);\n    }\n  }\n  _exports.EnsureSafeComponentHelper = EnsureSafeComponentHelper;\n  function handleString(name, thingWithOwner) {\n    (false && !(false) && (0, _debug.deprecate)(`You're trying to invoke the component \"${name}\" by passing its name as a string. This won't work under Embroider.`, false, {\n      id: 'ensure-safe-component.string',\n      url: 'https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md#when-youre-passing-a-component-to-someone-else',\n      until: 'embroider',\n      for: '@embroider/util',\n      since: '0.27.0'\n    }));\n    let owner = (0, _application.getOwner)(thingWithOwner);\n    return (0, _emberPrivateApi.lookupCurriedComponentDefinition)(name, owner);\n  }\n  function ensureRegistered(klass, owner) {\n    let service = owner.lookup('service:-ensure-registered');\n    (false && !(service) && (0, _debug.assert)('Could not lookup private -ensure-registered service', service));\n    return service.register(klass, owner);\n  }\n  function handleClass(klass, thingWithOwner) {\n    {\n      return klass;\n    }\n  }\n});","define(\"@embroider/util/services/ensure-registered\", [\"exports\", \"@ember/service\", \"@ember/application\"], function (_exports, _service, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class EnsureRegisteredService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNonces\", new WeakMap());\n      _defineProperty(this, \"nonceCounter\", 0);\n    }\n    register(klass, owner = (0, _application.getOwner)(this)) {\n      let nonce = this.classNonces.get(klass);\n      if (nonce == null) {\n        nonce = `-ensure${this.nonceCounter++}`;\n        this.classNonces.set(klass, nonce);\n        owner.register(`component:${nonce}`, klass);\n      }\n      return nonce;\n    }\n  }\n  _exports.default = EnsureRegisteredService;\n});","define(\"@glimmer/component/-private/base-component-manager\", [\"exports\", \"@glimmer/component/-private/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = BaseComponentManager;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  /**\n   * This factory function returns a component manager class with common behavior\n   * that can be extend to add Glimmer.js- or Ember.js-specific functionality. As\n   * these environments converge, the need for two component manager\n   * implementations (and thus this factory) should go away.\n   */\n  function BaseComponentManager(setOwner, getOwner, capabilities) {\n    return class {\n      static create(attrs) {\n        let owner = getOwner(attrs);\n        return new this(owner);\n      }\n      constructor(owner) {\n        _defineProperty(this, \"capabilities\", capabilities);\n        setOwner(this, owner);\n      }\n      createComponent(ComponentClass, args) {\n        if (false /* DEBUG */) {\n          _component.ARGS_SET.set(args.named, true);\n        }\n        return new ComponentClass(getOwner(this), args.named);\n      }\n      getContext(component) {\n        return component;\n      }\n    };\n  }\n});","define(\"@glimmer/component/-private/component\", [\"exports\", \"@glimmer/component/-private/owner\", \"@glimmer/component/-private/destroyables\"], function (_exports, _owner, _destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ARGS_SET = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  // This provides a type-safe `WeakMap`: the getter and setter link the key to a\n  // specific value. This is how `WeakMap`s actually behave, but the TS type\n  // system does not (yet!) have a good way to capture that for types like\n  // `WeakMap` where the type is generic over another generic type (here, `Args`).\n\n  // SAFETY: this only holds because we *only* acces this when `DEBUG` is `true`.\n  // There is not a great way to connect that data in TS at present.\n  let ARGS_SET = _exports.ARGS_SET = void 0;\n  if (false /* DEBUG */) {\n    _exports.ARGS_SET = ARGS_SET = new WeakMap();\n  }\n\n  // --- Type utilities for component signatures --- //\n  // Type-only \"symbol\" to use with `EmptyObject` below, so that it is *not*\n  // equivalent to an empty interface.\n\n  /**\n   * This provides us a way to have a \"fallback\" which represents an empty object,\n   * without the downsides of how TS treats `{}`. Specifically: this will\n   * correctly leverage \"excess property checking\" so that, given a component\n   * which has no named args, if someone invokes it with any named args, they will\n   * get a type error.\n   *\n   * @internal This is exported so declaration emit works (if it were not emitted,\n   *   declarations which fall back to it would not work). It is *not* intended for\n   *   public usage, and the specific mechanics it uses may change at any time.\n   *   The location of this export *is* part of the public API, because moving it\n   *   will break existing declarations, but is not legal for end users to import\n   *   themselves, so ***DO NOT RELY ON IT***.\n   */\n\n  /** Given a signature `S`, get back the `Args` type. */\n\n  /**\n   * Given any allowed shorthand form of a signature, desugars it to its full\n   * expanded type.\n   *\n   * @internal This is only exported so we can avoid duplicating it in\n   *   [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n   *   *not* intended for public usage, and the specific mechanics it uses may\n   *   change at any time. Although the signature produced by is part of Glimmer's\n   *   public API the existence and mechanics of this specific symbol are *not*,\n   *   so ***DO NOT RELY ON IT***.\n   */\n  // The conditional type here is because TS applies conditional types\n  // distributively. This means that for union types, checks like `keyof T` get\n  // all the keys from all elements of the union, instead of ending up as `never`\n  // and then always falling into the `Signature` path instead of falling back to\n  // the legacy args handling path.\n\n  /**\n   * @internal we use this type for convenience internally; inference means users\n   *   should not normally need to name it\n   */\n\n  /**\n   * The `Component` class defines an encapsulated UI element that is rendered to\n   * the DOM. A component is made up of a template and, optionally, this component\n   * object.\n   *\n   * ## Defining a Component\n   *\n   * To define a component, subclass `Component` and add your own properties,\n   * methods and lifecycle hooks:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   * }\n   * ```\n   *\n   * ## Lifecycle Hooks\n   *\n   * Lifecycle hooks allow you to respond to changes to a component, such as when\n   * it gets created, rendered, updated or destroyed. To add a lifecycle hook to a\n   * component, implement the hook as a method on your component subclass.\n   *\n   * For example, to be notified when Glimmer has rendered your component so you\n   * can attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   didInsertElement() {\n   *     $(this.element).pickadate();\n   *   }\n   * }\n   * ```\n   *\n   * ## Data for Templates\n   *\n   * `Component`s have two different kinds of data, or state, that can be\n   * displayed in templates:\n   *\n   * 1. Arguments\n   * 2. Properties\n   *\n   * Arguments are data that is passed in to a component from its parent\n   * component. For example, if I have a `UserGreeting` component, I can pass it\n   * a name and greeting to use:\n   *\n   * ```hbs\n   * <UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n   * ```\n   *\n   * Inside my `UserGreeting` template, I can access the `@name` and `@greeting`\n   * arguments that I've been given:\n   *\n   * ```hbs\n   * {{@greeting}}, {{@name}}!\n   * ```\n   *\n   * Arguments are also available inside my component:\n   *\n   * ```ts\n   * console.log(this.args.greeting); // prints \"Olá\"\n   * ```\n   *\n   * Properties, on the other hand, are internal to the component and declared in\n   * the class. You can use properties to store data that you want to show in the\n   * template, or pass to another component as an argument.\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   user = {\n   *     name: 'Robbie'\n   *   }\n   * }\n   * ```\n   *\n   * In the above example, we've defined a component with a `user` property that\n   * contains an object with its own `name` property.\n   *\n   * We can render that property in our template:\n   *\n   * ```hbs\n   * Hello, {{user.name}}!\n   * ```\n   *\n   * We can also take that property and pass it as an argument to the\n   * `UserGreeting` component we defined above:\n   *\n   * ```hbs\n   * <UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n   * ```\n   *\n   * ## Arguments vs. Properties\n   *\n   * Remember, arguments are data that was given to your component by its parent\n   * component, and properties are data your component has defined for itself.\n   *\n   * You can tell the difference between arguments and properties in templates\n   * because arguments always start with an `@` sign (think \"A is for arguments\"):\n   *\n   * ```hbs\n   * {{@firstName}}\n   * ```\n   *\n   * We know that `@firstName` came from the parent component, not the current\n   * component, because it starts with `@` and is therefore an argument.\n   *\n   * On the other hand, if we see:\n   *\n   * ```hbs\n   * {{name}}\n   * ```\n   *\n   * We know that `name` is a property on the component. If we want to know where\n   * the data is coming from, we can go look at our component class to find out.\n   *\n   * Inside the component itself, arguments always show up inside the component's\n   * `args` property. For example, if `{{@firstName}}` is `Tom` in the template,\n   * inside the component `this.args.firstName` would also be `Tom`.\n   */\n  class BaseComponent {\n    /**\n     * Constructs a new component and assigns itself the passed properties. You\n     * should not construct new components yourself. Instead, Glimmer will\n     * instantiate new components automatically as it renders.\n     *\n     * @param owner\n     * @param args\n     */\n    constructor(owner, args) {\n      /**\n       * Named arguments passed to the component from its parent component.\n       * They can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n       *\n       * Say you have the following component, which will have two `args`, `firstName` and `lastName`:\n       *\n       * ```hbs\n       * <my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n       * ```\n       *\n       * If you needed to calculate `fullName` by combining both of them, you would do:\n       *\n       * ```ts\n       * didInsertElement() {\n       *   console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n       * }\n       * ```\n       *\n       * While in the template you could do:\n       *\n       * ```hbs\n       * <p>Welcome, {{@firstName}} {{@lastName}}!</p>\n       * ```\n       */\n      _defineProperty(this, \"args\", void 0);\n      if (false /* DEBUG */ && !(owner !== null && typeof owner === 'object' && ARGS_SET.has(args))) {\n        throw new Error(`You must pass both the owner and args to super() in your component: ${this.constructor.name}. You can pass them directly, or use ...arguments to pass all arguments through.`);\n      }\n      this.args = args;\n      (0, _owner.setOwner)(this, owner);\n    }\n    get isDestroying() {\n      return (0, _destroyables.isDestroying)(this);\n    }\n    get isDestroyed() {\n      return (0, _destroyables.isDestroyed)(this);\n    }\n\n    /**\n     * Called before the component has been removed from the DOM.\n     */\n    willDestroy() {}\n  }\n  _exports.default = BaseComponent;\n});","define(\"@glimmer/component/-private/destroyables\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isDestroying = _exports.isDestroyed = void 0;\n  const isDestroying = _exports.isDestroying = _ember.default._isDestroying;\n  const isDestroyed = _exports.isDestroyed = _ember.default._isDestroyed;\n});","define(\"@glimmer/component/-private/ember-component-manager\", [\"exports\", \"ember\", \"@ember/object\", \"@ember/application\", \"@ember/component\", \"@ember/runloop\", \"@glimmer/component/-private/base-component-manager\", \"@glimmer/component/-private/destroyables\"], function (_exports, _ember, _object, _application, _component, _runloop, _baseComponentManager, destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    setDestroyed,\n    setDestroying\n  } = destroyables;\n  const CAPABILITIES = true // @ts-ignore\n  // @ts-ignore\n  ? (0, _component.capabilities)('3.13', {\n    destructor: true,\n    asyncLifecycleCallbacks: false,\n    updateHook: false\n  }) : (0, _component.capabilities)('3.4', {\n    destructor: true,\n    asyncLifecycleCallbacks: false\n  });\n  const scheduledDestroyComponent = true ? undefined : (component, meta) => {\n    if (component.isDestroyed) {\n      return;\n    }\n    _ember.default.destroy(component);\n    meta.setSourceDestroyed();\n    setDestroyed(component);\n  };\n  const destroy = true ? _ember.default.destroy : component => {\n    if (component.isDestroying) {\n      return;\n    }\n    let meta = _ember.default.meta(component);\n    meta.setSourceDestroying();\n    setDestroying(component);\n    (0, _runloop.schedule)('actions', component, component.willDestroy);\n    (0, _runloop.schedule)('destroy', void 0, scheduledDestroyComponent, component, meta);\n  };\n  const registerDestructor = true ? _ember.default._registerDestructor : true ? _ember.default.__loader.require('@glimmer/runtime').registerDestructor : undefined;\n\n  /**\n   * This component manager runs in Ember.js environments and extends the base component manager to:\n   *\n   * 1. Properly destroy the component's associated `meta` data structure\n   * 2. Schedule destruction using Ember's runloop\n   */\n  class EmberGlimmerComponentManager extends (0, _baseComponentManager.default)(_application.setOwner, _application.getOwner, CAPABILITIES) {\n    createComponent(ComponentClass, args) {\n      const component = super.createComponent(ComponentClass, args);\n      if (true) {\n        registerDestructor(component, () => {\n          component.willDestroy();\n        });\n      }\n      return component;\n    }\n    destroyComponent(component) {\n      destroy(component);\n    }\n  }\n  // In Ember 3.12 and earlier, the updateComponent hook was mandatory.\n  // As of Ember 3.13, the `args` object is stable and each property of the\n  // object participates in the autotrack stack on its own. This means we do not\n  // need to set the `args` property on the component instance to invalidate\n  // tracked getters that rely on `args`, and therefore don't require the `updateComponent`\n  // hook at all.\n  if (!true) {\n    EmberGlimmerComponentManager.prototype.updateComponent = function updateComponent(component, args) {\n      let argSnapshot = args.named;\n      if (false /* DEBUG */) {\n        argSnapshot = Object.freeze(argSnapshot);\n      }\n      (0, _object.set)(component, 'args', argSnapshot);\n    };\n  }\n  var _default = _exports.default = EmberGlimmerComponentManager;\n});","define(\"@glimmer/component/-private/owner\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"setOwner\", {\n    enumerable: true,\n    get: function () {\n      return _application.setOwner;\n    }\n  });\n});","define(\"@glimmer/component/index\", [\"exports\", \"@ember/component\", \"@glimmer/component/-private/ember-component-manager\", \"@glimmer/component/-private/component\"], function (_exports, _component, _emberComponentManager, _component2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Hax because the old version of `@types/ember__component` the `1.x` branch\n  // uses does not provide any types for `setComponentManager` *and* because we\n  // are using a very old version of `setComponentManager` for versions before\n  // Ember 3.8.\n\n  let GlimmerComponent = _component2.default;\n  if (false /* DEBUG */) {\n    // Add assertions against using Glimmer.js only APIs\n\n    // TODO: Add GlimmerComponent API docs link to these messages once API docs are live\n    function throwMethodUseError(methodName) {\n      throw new Error(`You attempted to define the '${methodName}' method on a Glimmer Component, but that lifecycle hook does not exist in Ember.js applications, it only exists in Glimmer.js apps. You can rename this method, and you can trigger it using a modifier such as {{did-insert}} from '@ember/render-modifiers': https://github.com/emberjs/ember-render-modifiers.`);\n    }\n    function throwPropertyUseError(propertyName) {\n      throw new Error(`You attempted to access the '${propertyName}' property on a Glimmer Component, but that property does not exist in Ember.js applications, it only exists in Glimmer.js apps. You define a class field with the same name on your component class and it will overwrite this error message, but it will not be used by the framework.`);\n    }\n    GlimmerComponent = class GlimmerDebugComponent extends GlimmerComponent {\n      constructor(owner, args) {\n        super(owner, args);\n        if (typeof this['didInsertElement'] === 'function') {\n          throwMethodUseError('didInsertElement');\n        }\n        if (typeof this['didUpdate'] === 'function') {\n          throwMethodUseError('didUpdate');\n        }\n      }\n    };\n    let proto = GlimmerComponent.prototype;\n    function defineErrorProp(proto, key, getterMethod) {\n      Object.defineProperty(proto, key, {\n        get: () => getterMethod(key),\n        set(value) {\n          Object.defineProperty(this, key, {\n            value\n          });\n        }\n      });\n    }\n\n    // Methods should still throw whenever they are accessed\n    defineErrorProp(proto, 'bounds', throwPropertyUseError);\n    defineErrorProp(proto, 'element', throwPropertyUseError);\n    defineErrorProp(proto, 'debugName', throwPropertyUseError);\n  }\n  if (true) {\n    (0, _component.setComponentManager)(owner => {\n      return new _emberComponentManager.default(owner);\n    }, GlimmerComponent);\n  } else {\n    (0, _component.setComponentManager)('glimmer', GlimmerComponent);\n  }\n  var _default = _exports.default = GlimmerComponent;\n});","define(\"ember-arg-types/-private/closest-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.closest = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\"eaimeta@70e063a35619d71f\n  /* eslint-disable no-inner-declarations */\n\n  let closest = _exports.closest = void 0;\n  {\n    _exports.closest = closest = () => {\n      throw new Error('closest() is not available in production');\n    };\n  }\n});","define(\"ember-arg-types/-private/is-element-descriptor\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isElementDescriptor;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  //https://github.com/emberjs/ember.js/blob/d1ad76a2b22ce470639df3dfc6efb6864a70f588/packages/%40ember/-internals/metal/lib/decorator.ts\n\n  function isElementDescriptor(...args) {\n    const [maybeTarget, maybeKey, maybeDesc] = args;\n    return (\n      // Ensure we have the right number of args\n      args.length === 3 && (\n      // Make sure the target is a class or object (prototype)\n      typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) &&\n      // Make sure the key is a string\n      typeof maybeKey === 'string' && (\n      // Make sure the descriptor is the right shape\n      typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc ||\n      // TS compatibility\n      maybeDesc === undefined)\n    );\n  }\n});","define(\"ember-arg-types/-private/throw-console-error\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\"eaimeta@70e063a35619d71f\n  let throwConsoleError;\n  {\n    throwConsoleError = () => {\n      throw new Error('throwConsoleError() is not available in production');\n    };\n  }\n  var _default = _exports.default = throwConsoleError;\n});","define(\"ember-arg-types/decorator\", [\"exports\", \"ember-arg-types/-private/is-element-descriptor\", \"ember-arg-types/-private/throw-console-error\", \"prop-types\", \"ember-get-config\", \"@ember/utils\", \"ember-arg-types/-private/closest-string\"], function (_exports, _isElementDescriptor, _throwConsoleError, PropTypes, _emberGetConfig, _utils, _closestString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = arg;\n  _exports.forbidExtraArgs = forbidExtraArgs;\n  0; //eaimeta@70e063a35619d71f0,\"ember-arg-types/-private/is-element-descriptor\",0,\"ember-arg-types/-private/throw-console-error\",0,\"prop-types\",0,\"ember-get-config\",0,\"@ember/utils\",0,\"ember-arg-types/-private/closest-string\",0,\"@embroider/macros\"eaimeta@70e063a35619d71f\n  /* eslint-disable @typescript-eslint/no-explicit-any */\n  const REGISTERED_ARGS = Symbol('args');\n  const INTERCEPT_CLASS = 'ForbidExtraArgsIntercept';\n  function shouldThrowErrors() {\n    const throwErrors = _emberGetConfig.default['ember-arg-types']?.throwErrors;\n    return (0, _utils.isNone)(throwErrors) ? true : throwErrors;\n  }\n  function getClassName(instance) {\n    return instance.constructor.name === INTERCEPT_CLASS // if the current class is this override\n    ? Object.getPrototypeOf(instance.constructor).name // get parent class name\n    : instance.constructor.name; // use current class name\n  }\n  function createGetter(target, key, descriptor, validator) {\n    const defaultInitializer = descriptor.initializer || descriptor.get || (() => undefined);\n    return {\n      get() {\n        const argValue = this.args[key];\n        const returnValue = argValue !== undefined ? argValue : defaultInitializer.call(this);\n        return returnValue;\n      }\n    };\n  }\n  function arg(...args) {\n    if ((0, _isElementDescriptor.default)(...args)) {\n      return createGetter(...args);\n    }\n    const [validator] = args;\n    return function argument(...args) {\n      return createGetter(...[...args, validator]);\n    };\n  }\n  function forbidExtraArgs(target) {\n    let returnClass = target;\n\n    // only subclass in debug mode\n\n    return returnClass;\n  }\n});","define(\"ember-arg-types/index\", [\"exports\", \"ember-arg-types/decorator\"], function (_exports, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"arg\", {\n    enumerable: true,\n    get: function () {\n      return _decorator.default;\n    }\n  });\n  Object.defineProperty(_exports, \"forbidExtraArgs\", {\n    enumerable: true,\n    get: function () {\n      return _decorator.forbidExtraArgs;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-arg-types/decorator\"eaimeta@70e063a35619d71f\n});","define(\"ember-bootstrap/components/bs-accordion\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"ember-bootstrap/components/bs-accordion/item\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _tracking, _item, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-bootstrap/components/bs-accordion/item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"accordion\"\n    ...attributes\n  >\n    {{yield\n      (hash\n        item=(component (ensure-safe-component this.itemComponent) selected=this.isSelected onClick=this.doChange)\n        change=this.doChange\n      )\n    }}\n  </div>\n  \n  */\n  {\n    \"id\": \"2057ypMj\",\n    \"block\": \"[[[11,0],[24,0,\\\"accordion\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,[[28,[37,2],null,[[\\\"item\\\",\\\"change\\\"],[[50,[28,[37,4],[[30,0,[\\\"itemComponent\\\"]]],null],0,null,[[\\\"selected\\\",\\\"onClick\\\"],[[30,0,[\\\"isSelected\\\"]],[30,0,[\\\"doChange\\\"]]]]],[30,0,[\\\"doChange\\\"]]]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-accordion.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Bootstrap-style [accordion group](http://getbootstrap.com/javascript/#collapse-example-accordion),\n    with collapsible/expandable items.\n  \n    ### Usage\n  \n    Use as a block level component with any number of yielded [Components.AccordionItem](Components.AccordionItem.html)\n    components as children:\n  \n    ```handlebars\n    <BsAccordion as |acc|>\n      <acc.item @value={{1}} @title=\"First item\">\n        <p>Lorem ipsum...</p>\n        <button {{on \"click\" (fn acc.change 2)}}>\n          Next\n        </button>\n      </acc.item>\n      <acc.item @value={{2}} @title=\"Second item\">\n        <p>Lorem ipsum...</p>\n      </acc.item>\n      <acc.item @value={{3}} @title=\"Third item\">\n        <p>Lorem ipsum...</p>\n      </acc.item>\n    </BsAccordion>\n    ```\n  \n    In the example above the first accordion item utilizes the yielded `change` action to add some custom behaviour.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Accordion\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let Accordion = _exports.default = (_class = class Accordion extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * The value of the currently selected accordion item. Set this to change selection programmatically.\n       *\n       * When the selection is changed by user interaction this property will not update by using two-way bindings in order\n       * to follow DDAU best practices. If you want to react to such changes, subscribe to the `onChange` action\n       *\n       * @property selected\n       * @public\n       */\n      /**\n       * @property itemComponent\n       * @type {String}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isSelected\", _descriptor, this);\n      _defineProperty(this, \"_isSelectedNonTracked\", this.args.selected);\n      _defineProperty(this, \"_prevSelected\", this.args.selected);\n    }\n    get itemComponent() {\n      return this.args.itemComponent ?? _item.default;\n    }\n\n    /**\n     * The value of the currently selected accordion item\n     *\n     * @property isSelected\n     * @private\n     */\n    get isSelected() {\n      // ideally we would have used @localCopy here, but unfortunately this fails for Ember 3.16 in this special case\n      // see https://github.com/pzuraq/tracked-toolbox/issues/17\n      // So don't look at this, it is going to get ugly...\n      this._isSelected; // just consume this to invalidate the getter when this changes\n\n      if (this.args.selected && this._prevSelected !== this.args.selected) {\n        // eslint-disable-next-line ember/no-side-effects\n        this._isSelectedNonTracked = this._prevSelected = this.args.selected;\n      }\n      return this._isSelectedNonTracked;\n    }\n    set isSelected(value) {\n      this._isSelectedNonTracked = value;\n      this._isSelected = value;\n    }\n\n    /**\n     * Action when the selected accordion item is about to be changed.\n     *\n     * You can return false to prevent changing the active item, and do that in your action by\n     * setting the `selected` accordingly.\n     *\n     * @event onChange\n     * @param newValue\n     * @param oldValue\n     * @public\n     */\n\n    doChange(newValue) {\n      const oldValue = this.isSelected;\n      if (oldValue === newValue) {\n        newValue = null;\n      }\n      if (this.args.onChange?.(newValue, oldValue) !== false) {\n        this.isSelected = newValue;\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_isSelected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.selected;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"doChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"doChange\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Accordion);\n});","define(\"ember-bootstrap/components/bs-accordion/item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object/internals\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _component2, _internals, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object/internals\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let\n    (component (ensure-safe-component (bs-default @titleComponent (component \"bs-accordion/item/title\"))) collapsed=this.collapsed disabled=@disabled onClick=(fn (bs-default @onClick (bs-noop)) this.value))\n    (component (ensure-safe-component (bs-default @bodyComponent (component \"bs-accordion/item/body\"))) collapsed=this.collapsed)\n    (unique-id)\n    (unique-id)\n  as |Title Body titleId collapsableId|\n  }}\n    <div\n      class=\"{{if @disabled \"disabled\"}} {{this.typeClass}} {{if (macroCondition (macroGetOwnConfig \"isBS4\")) \"card\"}} {{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"accordion-item\"}}\"\n      ...attributes\n    >\n      {{#if (has-block-params)}}\n        {{yield\n          (hash\n            title=Title\n            body=Body\n          )\n        }}\n      {{else}}\n        <Title id={{titleId}} @controls={{collapsableId}}>\n          {{@title}}\n        </Title>\n        <Body @collapsableId={{collapsableId}} @describedby={{titleId}}>\n          {{yield\n            (hash\n              title=Title\n              body=Body\n            )\n          }}\n        </Body>\n      {{/if}}\n    </div>\n  {{/let}}\n  */\n  {\n    \"id\": \"4ZDsvoej\",\n    \"block\": \"[[[44,[[50,[28,[37,2],[[28,[37,3],[[30,1],[50,\\\"bs-accordion/item/title\\\",0,null,null]],null]],null],0,null,[[\\\"collapsed\\\",\\\"disabled\\\",\\\"onClick\\\"],[[30,0,[\\\"collapsed\\\"]],[30,2],[28,[37,4],[[28,[37,3],[[30,3],[28,[37,5],null,null]],null],[30,0,[\\\"value\\\"]]],null]]]],[50,[28,[37,2],[[28,[37,3],[[30,4],[50,\\\"bs-accordion/item/body\\\",0,null,null]],null]],null],0,null,[[\\\"collapsed\\\"],[[30,0,[\\\"collapsed\\\"]]]]],[28,[37,6],null,null],[28,[37,6],null,null]],[[[1,\\\"  \\\"],[11,0],[16,0,[29,[[52,[30,2],\\\"disabled\\\"],\\\" \\\",[30,0,[\\\"typeClass\\\"]],\\\" \\\",[27],\\\" \\\",\\\"accordion-item\\\"]]],[17,9],[12],[1,\\\"\\\\n\\\"],[41,[49,[30,11]],[[[1,\\\"      \\\"],[18,11,[[28,[37,11],null,[[\\\"title\\\",\\\"body\\\"],[[30,5],[30,6]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[30,5],[[16,1,[30,7]]],[[\\\"@controls\\\"],[[30,8]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,10]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,6],null,[[\\\"@collapsableId\\\",\\\"@describedby\\\"],[[30,8],[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[18,11,[[28,[37,11],null,[[\\\"title\\\",\\\"body\\\"],[[30,5],[30,6]]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6,7,8]]]],[\\\"@titleComponent\\\",\\\"@disabled\\\",\\\"@onClick\\\",\\\"@bodyComponent\\\",\\\"Title\\\",\\\"Body\\\",\\\"titleId\\\",\\\"collapsableId\\\",\\\"&attrs\\\",\\\"@title\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"fn\\\",\\\"bs-noop\\\",\\\"unique-id\\\",\\\"div\\\",\\\"if\\\",\\\"has-block-params\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-accordion/item.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   A collapsible/expandable item within an accordion\n  \n   See [Components.Accordion](Components.Accordion.html) for examples.\n  \n   @class AccordionItem\n   @namespace Components\n   @extends Ember.Component\n   @public\n   */\n  let AccordionItem = _exports.default = (_class = class AccordionItem extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * The title of the accordion item, displayed as a .panel-title element\n       *\n       * @property title\n       * @type string\n       * @public\n       */\n      /**\n       * The value of the accordion item, which is used as the value of the `selected` property of the parent [Components.Accordion](Components.Accordion.html) component\n       *\n       * @property value\n       * @public\n       */\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      /**\n       * @property disabled\n       * @type boolean\n       * @public\n       */\n      /**\n       * Property for type styling\n       *\n       * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/navbar/#color-schemes)\n       *\n       * @property type\n       * @type String\n       * @default 'default'\n       * @public\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor2, this);\n    }\n    /**\n     * @property selected\n     * @private\n     */\n\n    /**\n     * @property titleComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property bodyComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property collapsed\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get collapsed() {\n      return this.value !== this.args.selected;\n    }\n    get typeClass() {\n      return `bg-${this.type}`;\n    }\n\n    /**\n     * Reference to the parent `Components.Accordion` class.\n     *\n     * @property accordion\n     * @private\n     */\n\n    /**\n     * @event onClick\n     * @public\n     */\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"value\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _internals.guidFor)(this);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'default';\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AccordionItem);\n});","define(\"ember-bootstrap/components/bs-accordion/item/body\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BsCollapse @collapsed={{@collapsed}} class=\"accordion-collapse\" id={{@collapsableId}} aria-describedby={{@describedby}}>\n    <div class=\"{{if (macroCondition (macroGetOwnConfig \"isBS4\")) \"card-body\"}} {{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"accordion-body\"}}\">\n      {{yield}}\n    </div>\n  </BsCollapse>\n  */\n  {\n    \"id\": \"4wRvHc6x\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"accordion-collapse\\\"],[16,1,[30,1]],[16,\\\"aria-describedby\\\",[30,2]]],[[\\\"@collapsed\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[[27],\\\" \\\",\\\"accordion-body\\\"]]],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@collapsableId\\\",\\\"@describedby\\\",\\\"@collapsed\\\",\\\"&default\\\"],false,[\\\"bs-collapse\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-accordion/item/body.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   Component for an accordion item body.\n  \n   See [Components.Accordion](Components.Accordion.html) for examples.\n  \n   @class AccordionItemBody\n   @namespace Components\n   @extends Ember.Component\n   @public\n   */\n\n  /**\n   * @property collapsed\n   * @type boolean\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-accordion/item/title\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- template-lint-disable no-nested-interactive --}}\n  {{!-- @todo fix this, see https://github.com/kaliber5/ember-bootstrap/issues/999 --}}\n  {{#if (macroCondition (macroGetOwnConfig \"isBS5\"))}}\n    <h2\n      class=\"accordion-header\"\n      ...attributes\n    >\n      <button\n        class=\"accordion-button {{if @disabled \"disabled\"}} {{if @collapsed \"collapsed\"}}\"\n        type=\"button\"\n        disabled={{@disabled}}\n        aria-controls={{@controls}}\n        aria-expanded={{if @collapsed \"false\" \"true\"}}\n        {{on \"click\" this.handleClick}}\n      >\n        {{yield}}\n      </button>\n    </h2>\n  {{else}}\n    <div\n      class=\"card-header\"\n    >\n      <h2\n        class=\"mb-0\"\n        ...attributes\n      >\n        <button\n          class=\"btn btn-link {{if @disabled \"disabled\"}} {{if @collapsed \"collapsed\" \"expanded\"}}\"\n          type=\"button\"\n          disabled={{@disabled}}\n          aria-controls={{@controls}}\n          aria-expanded={{if @collapsed \"false\" \"true\"}}\n          {{on \"click\" this.handleClick}}\n        >\n          {{yield}}\n        </button>\n      </h2>\n    </div>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"vikJDvAP\",\n    \"block\": \"[[[1,\\\"  \\\"],[11,\\\"h2\\\"],[24,0,\\\"accordion-header\\\"],[17,1],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"accordion-button \\\",[52,[30,2],\\\"disabled\\\"],\\\" \\\",[52,[30,3],\\\"collapsed\\\"]]]],[16,\\\"disabled\\\",[30,2]],[16,\\\"aria-controls\\\",[30,4]],[16,\\\"aria-expanded\\\",[52,[30,3],\\\"false\\\",\\\"true\\\"]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[18,5,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"@collapsed\\\",\\\"@controls\\\",\\\"&default\\\"],false,[\\\"h2\\\",\\\"button\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-accordion/item/title.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   Component for an accordion item title.\n  \n   See [Components.Accordion](Components.Accordion.html) for examples.\n  \n   @class AccordionItemTitle\n   @namespace Components\n   @extends Glimmer.Component\n   @public\n   */\n  let AccordionItemTitle = _exports.default = (_class = class AccordionItemTitle extends _component2.default {\n    /**\n     * @property collapsed\n     * @type boolean\n     * @public\n     */\n\n    /**\n     * @property disabled\n     * @type boolean\n     * @private\n     */\n\n    /**\n     * @event onClick\n     * @public\n     */\n\n    handleClick(e) {\n      e.preventDefault();\n      if (!this.args.disabled) {\n        this.args.onClick?.();\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AccordionItemTitle);\n});","define(\"ember-bootstrap/components/bs-alert\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"ember-bootstrap/utils/decorators/uses-transition\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _tracking, _runloop, _usesTransition, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"ember-bootstrap/utils/decorators/uses-transition\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"{{unless this.hidden \"alert\"}} {{if this.fade \"fade\"}} {{if this.dismissible \"alert-dismissible\"}} {{bs-type-class \"alert\" @type}} {{if this.showAlert \"show\"}}\"\n    ...attributes\n    {{did-update this.showOrHide this._visible}}\n    {{did-update this.updateVisibility @visible}}\n  >\n    {{#unless this.hidden}}\n      {{#if this.dismissible}}\n        <button type=\"button\" class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"btn-close\" \"close\"}} aria-label=\"Close\" {{on \"click\" this.dismiss}}>\n          {{#if (macroCondition (macroGetOwnConfig \"isBS4\"))}}<span aria-hidden=\"true\">&times;</span>{{/if}}\n        </button>\n      {{/if}}\n  \n      {{#if (has-block \"header\")}}\n        {{#let (element (bs-default @headerTag \"h4\")) as |Tag|}}\n          <Tag class=\"alert-heading\">\n            {{yield to=\"header\"}}\n          </Tag>\n        {{/let}}\n      {{/if}}\n  \n      {{#if (has-block \"body\")}}\n        {{yield to=\"body\"}}\n      {{else}}\n        {{yield}}\n      {{/if}}\n    {{/unless}}\n  </div>\n  */\n  {\n    \"id\": \"SnJbgc4V\",\n    \"block\": \"[[[11,0],[16,0,[29,[[52,[51,[30,0,[\\\"hidden\\\"]]],\\\"alert\\\"],\\\" \\\",[52,[30,0,[\\\"fade\\\"]],\\\"fade\\\"],\\\" \\\",[52,[30,0,[\\\"dismissible\\\"]],\\\"alert-dismissible\\\"],\\\" \\\",[28,[37,3],[\\\"alert\\\",[30,1]],null],\\\" \\\",[52,[30,0,[\\\"showAlert\\\"]],\\\"show\\\"]]]],[17,2],[4,[38,4],[[30,0,[\\\"showOrHide\\\"]],[30,0,[\\\"_visible\\\"]]],null],[4,[38,4],[[30,0,[\\\"updateVisibility\\\"]],[30,3]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hidden\\\"]]],[[[41,[30,0,[\\\"dismissible\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn-close\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"dismiss\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[48,[30,6]],[[[44,[[28,[37,9],[[28,[37,10],[[30,4],\\\"h4\\\"],null]],null]],[[[1,\\\"        \\\"],[8,[30,5],[[24,0,\\\"alert-heading\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[18,6,null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[5]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[48,[30,7]],[[[1,\\\"      \\\"],[18,7,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[18,8,null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[13]],[\\\"@type\\\",\\\"&attrs\\\",\\\"@visible\\\",\\\"@headerTag\\\",\\\"Tag\\\",\\\"&header\\\",\\\"&body\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"if\\\",\\\"bs-type-class\\\",\\\"did-update\\\",\\\"button\\\",\\\"on\\\",\\\"has-block\\\",\\\"let\\\",\\\"element\\\",\\\"bs-default\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-alert.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Implements [Bootstrap alerts](http://getbootstrap.com/components/#alerts)\n  \n    ### Usage\n  \n    By default, it is a user dismissible alert with a fade out animation, both of which can be disabled. Be sure to set the\n    `type` property for proper styling.\n  \n    ```hbs\n    <BsAlert @type=\"success\">\n      <strong>Well done!</strong> You successfully read this important alert message.\n    </BsAlert>\n    ```\n  \n    Optionally you can render a header for the alert using named blocks syntax:\n  \n    ```hbs\n    <BsAlert>\n      <:header>\n        Well done!\n      </:header>\n      <:body>\n        You successfully read this important alert message.\n      </:body>\n    </BsAlert>\n    ```\n  \n    The header is rendered using a `<h4>` element by default. You can customize\n    that one by setting `@headerTag` argument of `<BsAlert>`.\n  \n    Using named block syntax as shown above may require installing\n    [ember-named-blocks-polyfill](https://github.com/ember-polyfills/ember-named-blocks-polyfill)\n    in your project depending on the Ember version used.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Alert\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let Alert = _exports.default = (_dec = (0, _usesTransition.default)('fade'), (_class = class Alert extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * A dismissible alert will have a close button in the upper right corner, that the user can click to dismiss\n       * the alert.\n       *\n       * @property dismissible\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"dismissible\", _descriptor, this);\n      /**\n       * If true the alert is completely hidden. Will be set when the fade animation has finished.\n       *\n       * @property hidden\n       * @type boolean\n       * @default false\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"hidden\", _descriptor2, this);\n      /**\n       * @property _visible\n       * @private\n       */\n      _initializerDefineProperty(this, \"_visible\", _descriptor3, this);\n      /**\n       * Set to false to disable the fade out animation when hiding the alert.\n       *\n       * @property fade\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"fade\", _descriptor4, this);\n      /**\n       * The duration of the fade out animation\n       *\n       * @property fadeDuration\n       * @type number\n       * @default 150\n       * @public\n       */\n      _initializerDefineProperty(this, \"fadeDuration\", _descriptor5, this);\n      /**\n       * HTML tag to be used for the header\n       *\n       * @property headerTag\n       * @type string\n       * @default 'h4'\n       * @public\n       */\n      /**\n       * Property for type styling\n       *\n       * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/alerts/)\n       *\n       * @property type\n       * @type String\n       * @public\n       */\n      /**\n       * Use CSS transitions?\n       *\n       * @property usesTransition\n       * @type boolean\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"usesTransition\", _descriptor6, this);\n    }\n    /**\n     * This property controls if the alert should be visible. If false it might still be in the DOM until the fade animation\n     * has completed.\n     *\n     * When the alert is dismissed by user interaction this property will not update by using two-way bindings in order\n     * to follow DDAU best practices. If you want to react to such changes, subscribe to the `onDismiss` action\n     *\n     * @property visible\n     * @type boolean\n     * @default true\n     * @public\n     */\n    get visible() {\n      return this._visible ?? true;\n    }\n    get showAlert() {\n      return this.visible && this.args.fade !== false;\n    }\n    /**\n     * The action to be sent after the alert has been dismissed (including the CSS transition).\n     *\n     * @event onDismissed\n     * @public\n     */\n\n    /**\n     * The action is called when the close button is clicked.\n     *\n     * You can return false to prevent closing the alert automatically, and do that in your action by\n     * setting `visible` to false.\n     *\n     * @event onDismiss\n     * @public\n     */\n\n    dismiss() {\n      if (this.args.onDismiss?.() !== false) {\n        this._visible = false;\n      }\n    }\n\n    /**\n     * Call to make the alert visible again after it has been hidden\n     *\n     * @method show\n     * @private\n     */\n    show() {\n      this.hidden = false;\n    }\n\n    /**\n     * Call to hide the alert. If the `fade` property is true, this will fade out the alert before being finally\n     * dismissed.\n     *\n     * @method hide\n     * @private\n     */\n    hide() {\n      if (this.hidden) {\n        return;\n      }\n      if (this.usesTransition) {\n        (0, _runloop.later)(this, function () {\n          if (!this.isDestroyed) {\n            this.hidden = true;\n            this.args.onDismissed?.();\n          }\n        }, this.fadeDuration);\n      } else {\n        this.hidden = true;\n        this.args.onDismissed?.();\n      }\n    }\n    showOrHide() {\n      if (this.visible) {\n        this.show();\n      } else {\n        this.hide();\n      }\n    }\n    updateVisibility() {\n      this._visible = this.args.visible;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"dismissible\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hidden\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return !this.visible;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_visible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.visible;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"fade\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"fadeDuration\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 150;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"usesTransition\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismiss\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismiss\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showOrHide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showOrHide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateVisibility\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateVisibility\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Alert);\n});","define(\"ember-bootstrap/components/bs-button-group\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@ember/array\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _array, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/array\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div class=\"{{if @vertical \"btn-group-vertical\" \"btn-group\"}} {{bs-size-class \"btn-group\" @size}}\" role=\"group\" ...attributes>\n    {{yield\n      (hash\n        button=(component (ensure-safe-component (bs-default @buttonComponent (component \"bs-button-group/button\"))) buttonGroupType=@type groupValue=@value onClick=this.buttonPressed)\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"Is5vefqV\",\n    \"block\": \"[[[11,0],[16,0,[29,[[52,[30,1],\\\"btn-group-vertical\\\",\\\"btn-group\\\"],\\\" \\\",[28,[37,2],[\\\"btn-group\\\",[30,2]],null]]]],[24,\\\"role\\\",\\\"group\\\"],[17,3],[12],[1,\\\"\\\\n  \\\"],[18,7,[[28,[37,4],null,[[\\\"button\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,4],[50,\\\"bs-button-group/button\\\",0,null,null]],null]],null],0,null,[[\\\"buttonGroupType\\\",\\\"groupValue\\\",\\\"onClick\\\"],[[30,5],[30,6],[30,0,[\\\"buttonPressed\\\"]]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@vertical\\\",\\\"@size\\\",\\\"&attrs\\\",\\\"@buttonComponent\\\",\\\"@type\\\",\\\"@value\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"bs-size-class\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-button-group.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Bootstrap-style button group, that visually groups buttons, and optionally adds radio/checkbox like behaviour.\n    See http://getbootstrap.com/components/#btn-groups\n  \n    Use as a block level component with any number of [Components.Button](Components.Button.html) components provided as\n    a yielded pre-configured contextual component:\n  \n    ```handlebars\n    <BsButtonGroup as |bg|>\n      <bg.button>1</bg.button>\n      <bg.button>2</bg.button>\n      <bg.button>3</bg.button>\n    </BsButtonGroup>\n    ```\n  \n    ### Radio-like behaviour\n  \n    Use the `type` property set to \"radio\" to make the child buttons toggle like radio buttons, i.e. only one button can be active.\n    Set the `value` property of the buttons to something meaningful. The `value` property of the button group will then reflect\n    the value of the active button:\n  \n    ```handlebars\n    <BsButtonGroup @value={{this.buttonGroupValue}} @type=\"radio\" @onChange={{fn (mut this.buttonGroupValue}} as |bg|>\n      <bg.button @type=\"default\" @value={{1}}>1</bg.button>\n      <bg.button @type=\"default\" @value={{2}}>2</bg.button>\n      <bg.button @type=\"default\" @value={{3}}>3</bg.button>\n    </BsButtonGroup>\n  \n    You selected: {{this.buttonGroupValue}}!\n    ```\n  \n    ### Checkbox-like behaviour\n  \n    Set `type` to \"checkbox\" to make any number of child buttons selectable. The `value` property will be an array\n    of all the values of the active buttons:\n  \n    ```handlebars\n    <BsButtonGroup @value={{this.buttonGroupValue}} @type=\"checkbox\" @onChange={{fn (mut this.buttonGroupValue}} as |bg|>\n      <bg.button @type=\"default\" @value={{1}}>1</bg.button>\n      <bg.button @type=\"default\" @value={{2}}>2</bg.button>\n      <bg.button @type=\"default\" @value={{3}}>3</bg.button>\n    </BsButtonGroup>\n  \n    You selected:\n    <ul>\n      {{#each value in this.buttonGroupValue}}\n        <li>{{value}}</li>\n      {{/each}}\n    </ul>\n    ```\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class ButtonGroup\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let ButtonGroup = _exports.default = (_class = class ButtonGroup extends _component2.default {\n    /**\n     * @property buttonComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * Set to true for a vertically stacked button group, see http://getbootstrap.com/components/#btn-groups-vertical\n     *\n     * @property vertical\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * The type of the button group specifies how child buttons behave and how the `value` property will be computed:\n     *\n     * ### null\n     * If `type` is not set (null), the button group will add no functionality besides Bootstrap styling\n     *\n     * ### radio\n     * if `type` is set to \"radio\", the buttons will behave like radio buttons:\n     * * the `value` property of the button group will reflect the `value` property of the active button\n     * * thus only one button may be active\n     *\n     * ### checkbox\n     * if `type` is set to \"checkbox\", the buttons will behave like checkboxes:\n     * * any number of buttons may be active\n     * * the `value` property of the button group will be an array containing the `value` properties of all active buttons\n     *\n     * @property type\n     * @type string\n     * @default null\n     * @public\n     */\n\n    /**\n     * The value of the button group, computed by its child buttons.\n     * See the `type` property for how the value property is constructed.\n     *\n     * When you set the value, the corresponding buttons will be activated:\n     * * use a single value for a radio button group to activate the button with the same value\n     * * use an array of values for a checkbox button group to activate all the buttons with values contained in the array\n     *\n     * @property value\n     * @type array\n     * @public\n     */\n\n    /**\n     * Property for size styling, set to 'lg', 'sm' or 'xs'\n     *\n     * Also see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/button-group/#sizing)\n     *\n     * @property size\n     * @type String\n     * @public\n     */\n\n    /**\n     * This action is called whenever the button group's value should be changed because the user clicked a button.\n     * You will receive the new value of the button group (based on the `type` property), which you should use to update the\n     * `value` property.\n     *\n     * @event onChange\n     * @param {*} value\n     * @public\n     */\n\n    buttonPressed(pressedValue) {\n      if (!this.args.onChange) {\n        return;\n      }\n      let newValue;\n      if (this.args.type === 'radio') {\n        if (pressedValue === this.args.value) {\n          return;\n        }\n        newValue = pressedValue;\n      } else {\n        if (!(0, _array.isArray)(this.args.value)) {\n          newValue = [pressedValue];\n        } else {\n          if (this.args.value.includes(pressedValue)) {\n            newValue = this.args.value.filter(v => v !== pressedValue);\n          } else {\n            newValue = [...this.args.value, pressedValue];\n          }\n        }\n\n        // For compatibility we continue to return an EmberArray instance for now\n        // @todo this should be changed for the next major release!\n        newValue = (0, _array.A)(newValue);\n      }\n      this.args.onChange(newValue);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"buttonPressed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"buttonPressed\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ButtonGroup);\n});","define(\"ember-bootstrap/components/bs-button-group/button\", [\"exports\", \"@ember/component\", \"@ember/array\", \"ember-bootstrap/components/bs-button\", \"@ember/object/internals\", \"@ember/template-factory\"], function (_exports, _component, _array, _bsButton, _internals, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"ember-bootstrap/components/bs-button\",0,\"@ember/object/internals\",0,\"@embroider/macros\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if this.isBS5ToggleButton}}\n    <input\n      type={{@buttonGroupType}}\n      class=\"btn-check\"\n      id={{this.formId}}\n      autocomplete=\"off\"\n      checked={{this.active}}\n      ...attributes\n      {{on \"click\" this.handleClick}}\n      {{did-update this.resetState @reset}}\n    >\n    <label\n      class=\"btn {{bs-size-class \"btn\" @size}} {{bs-type-class \"btn\" @type default=\"secondary\" outline=@outline}}\"\n      for={{this.formId}}\n    >\n      {{#if this.icon}}\n        <i class={{this.icon}}></i>\n      {{/if}}\n      {{this.text}}\n      {{yield\n        (hash\n          isFulfilled=this.isFulfilled\n          isPending=this.isPending\n          isRejected=this.isRejected\n          isSettled=this.isSettled\n        )\n      }}\n    </label>\n  {{else}}\n    <button\n      disabled={{this.__disabled}}\n      type=\"button\"\n      class=\"btn {{if this.active \"active\"}} {{if this.block \"btn-block\"}} {{bs-size-class \"btn\" @size}} {{bs-type-class \"btn\" @type default=\"secondary\" outline=@outline}}\"\n      ...attributes\n      {{on \"click\" this.handleClick}}\n      {{did-update this.resetState @reset}}\n    >\n      {{#if this.icon}}\n        <i class={{this.icon}}></i>\n      {{/if}}\n      {{this.text}}\n      {{yield\n        (hash\n          isFulfilled=this.isFulfilled\n          isPending=this.isPending\n          isRejected=this.isRejected\n          isSettled=this.isSettled\n        )\n      }}\n    </button>\n  {{/if}}\n  */\n  {\n    \"id\": \"lXLpL3N5\",\n    \"block\": \"[[[41,[30,0,[\\\"isBS5ToggleButton\\\"]],[[[1,\\\"  \\\"],[11,\\\"input\\\"],[16,4,[30,1]],[24,0,\\\"btn-check\\\"],[16,1,[30,0,[\\\"formId\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"checked\\\",[30,0,[\\\"active\\\"]]],[17,2],[4,[38,2],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[4,[38,3],[[30,0,[\\\"resetState\\\"]],[30,3]],null],[12],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"btn \\\",[28,[37,5],[\\\"btn\\\",[30,4]],null],\\\" \\\",[28,[37,6],[\\\"btn\\\",[30,5]],[[\\\"default\\\",\\\"outline\\\"],[\\\"secondary\\\",[30,6]]]]]]],[15,\\\"for\\\",[30,0,[\\\"formId\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"      \\\"],[10,\\\"i\\\"],[15,0,[30,0,[\\\"icon\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n    \\\"],[18,7,[[28,[37,9],null,[[\\\"isFulfilled\\\",\\\"isPending\\\",\\\"isRejected\\\",\\\"isSettled\\\"],[[30,0,[\\\"isFulfilled\\\"]],[30,0,[\\\"isPending\\\"]],[30,0,[\\\"isRejected\\\"]],[30,0,[\\\"isSettled\\\"]]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"__disabled\\\"]]],[24,4,\\\"button\\\"],[16,0,[29,[\\\"btn \\\",[52,[30,0,[\\\"active\\\"]],\\\"active\\\"],\\\" \\\",[52,[30,0,[\\\"block\\\"]],\\\"btn-block\\\"],\\\" \\\",[28,[37,5],[\\\"btn\\\",[30,4]],null],\\\" \\\",[28,[37,6],[\\\"btn\\\",[30,5]],[[\\\"default\\\",\\\"outline\\\"],[\\\"secondary\\\",[30,6]]]]]]],[17,2],[4,[38,2],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[4,[38,3],[[30,0,[\\\"resetState\\\"]],[30,3]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"      \\\"],[10,\\\"i\\\"],[15,0,[30,0,[\\\"icon\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n    \\\"],[18,7,[[28,[37,9],null,[[\\\"isFulfilled\\\",\\\"isPending\\\",\\\"isRejected\\\",\\\"isSettled\\\"],[[30,0,[\\\"isFulfilled\\\"]],[30,0,[\\\"isPending\\\"]],[30,0,[\\\"isRejected\\\"]],[30,0,[\\\"isSettled\\\"]]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@buttonGroupType\\\",\\\"&attrs\\\",\\\"@reset\\\",\\\"@size\\\",\\\"@type\\\",\\\"@outline\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"input\\\",\\\"on\\\",\\\"did-update\\\",\\\"label\\\",\\\"bs-size-class\\\",\\\"bs-type-class\\\",\\\"i\\\",\\\"yield\\\",\\\"hash\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-button-group/button.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Internal component for button-group buttons\n  \n   @class ButtonGroupButton\n   @namespace Components\n   @extends Components.Button\n   @private\n   */\n  class ButtonGroupButton extends _bsButton.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"formId\", (0, _internals.guidFor)(this));\n    }\n    /**\n     * @property groupValue\n     * @private\n     */\n\n    /**\n     * @property buttonGroupType\n     * @type string\n     * @private\n     */\n\n    /**\n     * @property active\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get active() {\n      let {\n        value,\n        groupValue\n      } = this.args;\n      if (this.args.buttonGroupType === 'radio') {\n        return value === groupValue;\n      } else {\n        if ((0, _array.isArray)(groupValue)) {\n          return groupValue.indexOf(value) !== -1;\n        }\n      }\n      return false;\n    }\n    get isBS5ToggleButton() {\n      {\n        return this.args.buttonGroupType === 'radio' || this.args.buttonGroupType === 'checkbox';\n      }\n    }\n  }\n  _exports.default = ButtonGroupButton;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ButtonGroupButton);\n});","define(\"ember-bootstrap/components/bs-button\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _component2, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <button\n    disabled={{this.__disabled}}\n    type={{if @attrTypePrivateWorkaround @attrTypePrivateWorkaround \"button\"}}\n    class=\"btn {{if @active 'active'}} {{if (macroCondition (macroGetOwnConfig 'isNotBS5')) (if this.block 'btn-block')}} {{bs-size-class 'btn' @size}} {{bs-type-class 'btn' @type default=\"secondary\" outline=@outline}}\"\n    ...attributes\n    {{on \"click\" this.handleClick}}\n    {{did-update this.resetState @reset}}\n  >\n    {{#if this.icon}}<i class={{this.icon}}></i> {{/if}}{{this.text}}{{yield\n      (hash\n        isFulfilled=this.isFulfilled\n        isPending=this.isPending\n        isRejected=this.isRejected\n        isSettled=this.isSettled\n      )\n    }}\n  </button>\n  */\n  {\n    \"id\": \"+Azfb/n8\",\n    \"block\": \"[[[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"__disabled\\\"]]],[16,4,[52,[30,1],[30,1],\\\"button\\\"]],[16,0,[29,[\\\"btn \\\",[52,[30,2],\\\"active\\\"],\\\" \\\",[27],\\\" \\\",[28,[37,2],[\\\"btn\\\",[30,3]],null],\\\" \\\",[28,[37,3],[\\\"btn\\\",[30,4]],[[\\\"default\\\",\\\"outline\\\"],[\\\"secondary\\\",[30,5]]]]]]],[17,6],[4,[38,4],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[4,[38,5],[[30,0,[\\\"resetState\\\"]],[30,7]],null],[12],[1,\\\"\\\\n  \\\"],[41,[30,0,[\\\"icon\\\"]],[[[10,\\\"i\\\"],[15,0,[30,0,[\\\"icon\\\"]]],[12],[13],[1,\\\" \\\"]],[]],null],[1,[30,0,[\\\"text\\\"]]],[18,8,[[28,[37,8],null,[[\\\"isFulfilled\\\",\\\"isPending\\\",\\\"isRejected\\\",\\\"isSettled\\\"],[[30,0,[\\\"isFulfilled\\\"]],[30,0,[\\\"isPending\\\"]],[30,0,[\\\"isRejected\\\"]],[30,0,[\\\"isSettled\\\"]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@attrTypePrivateWorkaround\\\",\\\"@active\\\",\\\"@size\\\",\\\"@type\\\",\\\"@outline\\\",\\\"&attrs\\\",\\\"@reset\\\",\\\"&default\\\"],false,[\\\"button\\\",\\\"if\\\",\\\"bs-size-class\\\",\\\"bs-type-class\\\",\\\"on\\\",\\\"did-update\\\",\\\"i\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-button.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Implements a HTML button element, with support for all [Bootstrap button CSS styles](http://getbootstrap.com/css/#buttons)\n    as well as advanced functionality such as button states.\n  \n    ### Basic Usage\n  \n    ```hbs\n    <BsButton @type=\"primary\" @icon=\"glyphicon glyphicon-download\">\n      Downloads\n    </BsButton>\n    ```\n  \n    ### Actions\n  \n    Use the `onClick` property of the component to send an action to your controller. It will receive the button's value\n    (see the `value` property) as an argument.\n  \n    ```hbs\n    <BsButton @type=\"primary\" @icon=\"glyphicon glyphicon-download\" @onClick={{this.download}}>\n      Downloads\n    </BsButton>\n    ```\n  \n    ### Promise support for automatic state change\n  \n    When returning a Promise for any asynchronous operation from the `onClick` closure action the button will\n    manage an internal state (\"default\" > \"pending\" > \"fulfilled\"/\"rejected\") automatically.\n  \n    The button is disabled by default if it's in pending state. You could override this behavior by passing\n    the `disabled` HTML attribute or by setting `@preventConcurrency` to false.\n  \n    ```hbs\n    <BsButton\n      disabled={{false}}\n    />\n    ```\n  \n    ```hbs\n    <BsButton\n      @preventConcurrency={{false}}\n    />\n    ```\n  \n    The label could be changed automatically according to the state of the promise with `@defaultText`,\n    `@pendingText`, `@fulfilledText` and `@rejectedText` arguments:\n  \n    ```hbs\n    <BsButton\n      @type=\"primary\"\n      @icon=\"glyphicon glyphicon-download\"\n      @defaultText=\"Download\"\n      @pendingText=\"Loading...\"\n      @fulfilledText=\"Completed!\"\n      @rejectedText=\"Oups!?\"\n      @onClick={{this.download}}\n    />\n    ```\n  \n    ```js\n    // controller.js\n    import { Controller } from '@ember/controller';\n    import { action } from '@ember/object';\n  \n    export default class MyController extends Controller {\n      @action\n      download() {\n        return new Promise(...);\n      }\n    }\n    ```\n  \n    For further customization `isPending`, `isFulfilled`, `isRejected` and `isSettled` properties are yielded:\n  \n    ```hbs\n    <BsButton @onClick={{this.download}} as |button|>\n      Download\n      {{#if button.isPending}}\n        <span class=\"loading-spinner\"></span>\n      {{/if}}\n    </BsButton>\n    ```\n  \n    You can `reset` the state represented by these properties and used for button's text by setting `reset` property to\n    `true`.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Button\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let Button = _exports.default = (_class = class Button extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * Set the 'active' class to apply active/pressed CSS styling\n       *\n       * @property active\n       * @type boolean\n       * @default false\n       * @public\n       */\n      /**\n       * Property for block level buttons (BS3 and BS4 only!)\n       *\n       * See the [Bootstrap docs](http://getbootstrap.com/css/#buttons-sizes)\n       * @property block\n       * @type boolean\n       * @default false\n       * @public\n       */\n      _initializerDefineProperty(this, \"block\", _descriptor, this);\n      /**\n       * Supply a value that will be associated with this button. This will be sent\n       * as a parameter of the default action triggered when clicking the button\n       *\n       * @property value\n       * @type any\n       * @public\n       */\n      /**\n       * Controls if `onClick` action is fired concurrently. If `true` clicking button multiple times will not trigger\n       * `onClick` action if a Promise returned by previous click is not settled yet.\n       *\n       * This does not affect event bubbling.\n       *\n       * @property preventConcurrency\n       * @type Boolean\n       * @default true\n       * @public\n       */\n      /**\n       * State of the button. The button's label (if not used as a block component) will be set to the\n       * `<state>Text` property.\n       * This property will automatically be set when using a click action that supplies the callback with a promise.\n       * Possible values are: \"default\" > \"pending\" > \"fulfilled\" / \"rejected\".\n       * It could be resetted by `reset` property.\n       *\n       * @property state\n       * @type String\n       * @default 'default'\n       * @private\n       */\n      _initializerDefineProperty(this, \"_state\", _descriptor2, this);\n    }\n    /**\n     * Default label of the button. Not need if used as a block component\n     *\n     * @property defaultText\n     * @type string\n     * @public\n     */\n\n    /**\n     * Label of the button used if `onClick` event has returned a Promise which is pending.\n     * Not considered if used as a block component.\n     *\n     * @property pendingText\n     * @type string\n     * @public\n     */\n\n    /**\n     * Label of the button used if `onClick` event has returned a Promise which succeeded.\n     * Not considered if used as a block component.\n     *\n     * @property fulfilledText\n     * @type string\n     * @public\n     */\n\n    /**\n     * Label of the button used if `onClick` event has returned a Promise which failed.\n     * Not considered if used as a block component.\n     *\n     * @property rejectedText\n     * @type string\n     * @public\n     */\n\n    /**\n     * Property to disable the button only used in internal communication\n     * between Ember Boostrap components.\n     *\n     * @property _disabled\n     * @type ?boolean\n     * @default null\n     * @private\n     */\n    get __disabled() {\n      if (this.args._disabled !== undefined) {\n        return this.args._disabled;\n      }\n      return this.isPending && this.args.preventConcurrency !== false;\n    }\n    /**\n     * A click event on a button will not bubble up the DOM tree if it has an `onClick` action handler. Set to true to\n     * enable the event to bubble\n     *\n     * @property bubble\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * If button is active and this is set, the icon property will match this property\n     *\n     * @property iconActive\n     * @type String\n     * @public\n     */\n\n    /**\n     * If button is inactive and this is set, the icon property will match this property\n     *\n     * @property iconInactive\n     * @type String\n     * @public\n     */\n\n    /**\n     * Class(es) (e.g. glyphicons or font awesome) to use as a button icon\n     * This will render a <i class=\"{{icon}}\"></i> element in front of the button's label\n     *\n     * @property icon\n     * @type String\n     * @public\n     */\n    get icon() {\n      return this.args.icon || (this.args.active ? this.args.iconActive : this.args.iconInactive);\n    }\n    get state() {\n      return this.args.state ?? this._state;\n    }\n    set state(state) {\n      this._state = state;\n    }\n\n    /**\n     * Promise returned by `onClick` event is pending.\n     *\n     * @property isPending\n     * @type Boolean\n     * @private\n     */\n    get isPending() {\n      return this.state === 'pending';\n    }\n\n    /**\n     * Promise returned by `onClick` event has been succeeded.\n     *\n     * @property isFulfilled\n     * @type Boolean\n     * @private\n     */\n    get isFulfilled() {\n      return this.state === 'fulfilled';\n    }\n\n    /**\n     * Promise returned by `onClick` event has been rejected.\n     *\n     * @property isRejected\n     * @type Boolean\n     * @private\n     */\n    get isRejected() {\n      return this.state === 'rejected';\n    }\n\n    /**\n     * Promise returned by `onClick` event has been succeeded or rejected.\n     *\n     * @property isSettled\n     * @type Boolean\n     * @private\n     */\n    get isSettled() {\n      return this.isFulfilled || this.isRejected;\n    }\n\n    /**\n     * Set this to `true` to reset the `state`. A typical use case is to bind this attribute with ember-data isDirty flag.\n     *\n     * The old value is not taken into consideration. Setting a `true` value to `true` again will also reset `state`.\n     * In that case it's even to notify the observer system that the property has changed by calling\n     * [`notifyPropertyChange()`](https://www.emberjs.com/api/ember/3.2/classes/EmberObject/methods/notifyPropertyChange?anchor=notifyPropertyChange).\n     *\n     * @property reset\n     * @type boolean\n     * @public\n     */\n\n    /**\n     * Property for size styling, set to 'lg', 'sm' or 'xs'\n     *\n     * Also see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/buttons/#sizes)\n     *\n     * @property size\n     * @type String\n     * @public\n     */\n\n    /**\n     * Property for type styling\n     *\n     * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/buttons/)\n     *\n     * @property type\n     * @type String\n     * @default 'secondary'\n     * @public\n     */\n\n    /**\n     * Property to create outline buttons (BS4+ only)\n     *\n     * @property outline\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * When clicking the button this action is called with the value of the button (that is the value of the \"value\" property).\n     *\n     * Return a promise object, and the buttons state will automatically set to \"pending\", \"resolved\" and/or \"rejected\".\n     * This could be used to automatically set the button's text depending on promise state (`defaultText`, `pendingText`,\n     * `fulfilledText`, `rejectedText`) and for further customization using the yielded `isPending`, `isFulfilled`,\n     * `isRejected` properties.\n     *\n     * The click event will not bubble up, unless you set `bubble` to true.\n     *\n     * @event onClick\n     * @param {*} value\n     * @public\n     */\n\n    /**\n     * This will reset the state property to 'default', and with that the button's label to defaultText\n     *\n     * @method resetState\n     * @private\n     */\n    resetState() {\n      this.state = 'default';\n    }\n    get text() {\n      return this.args[`${this.state}Text`] || this.args.defaultText;\n    }\n\n    /**\n     * @method click\n     * @private\n     */\n    async handleClick(e) {\n      const {\n        bubble,\n        onClick,\n        preventConcurrency\n      } = this.args;\n      if (typeof onClick !== 'function') {\n        return;\n      }\n\n      // Shouldn't we prevent propagation regardless if `@onClick` is a function?\n      if (!bubble) {\n        e.stopPropagation();\n      }\n      if (preventConcurrency && this.isPending) {\n        return;\n      }\n      this.state = 'pending';\n      try {\n        await onClick(this.args.value);\n        if (!this.isDestroyed) {\n          this.state = 'fulfilled';\n        }\n      } catch (error) {\n        if (!this.isDestroyed) {\n          this.state = 'rejected';\n        }\n        throw error;\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"block\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_state\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'default';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetState\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetState\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Button);\n});","define(\"ember-bootstrap/components/bs-carousel\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-bootstrap/components/bs-carousel/slide\", \"@glimmer/component\", \"@ember/runloop\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _slide, _component2, _runloop, _emberConcurrency, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-bootstrap/components/bs-carousel/slide\",0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div\n    {{!-- template-lint-disable no-positive-tabindex --}}\n    tabindex={{this.tabindex}}\n    class=\"carousel slide {{if this.carouselFade \"carousel-fade\"}}\"\n    ...attributes\n    {{on \"keydown\" this.handleKeyDown}}\n    {{on \"mouseenter\" this.handleMouseEnter}}\n    {{on \"mouseleave\" this.handleMouseLeave}}\n    {{did-update this.childSlidesObserver this.childSlides this.autoPlay}}\n    {{did-update this.indexObserver this.index}}\n  >\n    {{#if this.showIndicators}}\n      {{#if (macroCondition (macroGetOwnConfig \"isBS5\"))}}\n        <div class=\"carousel-indicators\">\n          {{#each this.indicators as |indicator _index|}}\n            <button\n              data-bs-target\n              type=\"button\"\n              class={{if (bs-eq this.currentIndex _index) \"active\"}}\n              aria-current=\"{{bs-eq this.currentIndex _index}}\"\n              {{on \"click\" (fn this.toSlide _index)}}\n            />\n          {{/each}}\n        </div>\n      {{else}}\n        <ol class=\"carousel-indicators\">\n          {{#each this.indicators as |indicator _index|}}\n            <li\n              role=\"button\"\n              class={{if (bs-eq this.currentIndex _index) \"active\"}}\n              {{on \"click\" (fn this.toSlide _index)}}\n            />\n          {{/each}}\n        </ol>\n      {{/if}}\n  \n    {{/if}}\n  \n    <div class=\"carousel-inner\" role=\"listbox\">\n      {{yield\n        (hash\n          slide=(component (ensure-safe-component (bs-default @slideComponent (component \"bs-carousel/slide\")))\n            currentSlide=this.currentSlide\n            directionalClassName=this.directionalClassName\n            followingSlide=this.followingSlide\n            orderClassName=this.orderClassName\n            presentationState=this.presentationState\n            registerChild=this.registerChild\n            unregisterChild=this.unregisterChild\n          )\n        )\n      }}\n    </div>\n  \n    {{#if this.showControls}}\n      <button class=\"carousel-control-prev\" type=\"button\" {{on \"click\" this.toPrevSlide}}>\n        <span aria-hidden=\"true\" class=\"carousel-control-prev-icon\"></span>\n        <span class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\"}}>{{this.prevControlLabel}}</span>\n      </button>\n      <button class=\"carousel-control-next\" type=\"button\" {{on \"click\" this.toNextSlide}}>\n        <span aria-hidden=\"true\" class=\"carousel-control-next-icon\"></span>\n        <span class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\"}}>{{this.nextControlLabel}}</span>\n      </button>\n    {{/if}}\n  \n  </div>\n  */\n  {\n    \"id\": \"0/iGGu6A\",\n    \"block\": \"[[[11,0],[16,\\\"tabindex\\\",[30,0,[\\\"tabindex\\\"]]],[16,0,[29,[\\\"carousel slide \\\",[52,[30,0,[\\\"carouselFade\\\"]],\\\"carousel-fade\\\"]]]],[17,1],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleKeyDown\\\"]]],null],[4,[38,2],[\\\"mouseenter\\\",[30,0,[\\\"handleMouseEnter\\\"]]],null],[4,[38,2],[\\\"mouseleave\\\",[30,0,[\\\"handleMouseLeave\\\"]]],null],[4,[38,3],[[30,0,[\\\"childSlidesObserver\\\"]],[30,0,[\\\"childSlides\\\"]],[30,0,[\\\"autoPlay\\\"]]],null],[4,[38,3],[[30,0,[\\\"indexObserver\\\"]],[30,0,[\\\"index\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showIndicators\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"carousel-indicators\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"indicators\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,\\\"data-bs-target\\\",\\\"\\\"],[16,0,[52,[28,[37,7],[[30,0,[\\\"currentIndex\\\"]],[30,3]],null],\\\"active\\\"]],[16,\\\"aria-current\\\",[29,[[28,[37,7],[[30,0,[\\\"currentIndex\\\"]],[30,3]],null]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"toSlide\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"carousel-inner\\\"],[14,\\\"role\\\",\\\"listbox\\\"],[12],[1,\\\"\\\\n    \\\"],[18,5,[[28,[37,10],null,[[\\\"slide\\\"],[[50,[28,[37,12],[[28,[37,13],[[30,4],[50,\\\"bs-carousel/slide\\\",0,null,null]],null]],null],0,null,[[\\\"currentSlide\\\",\\\"directionalClassName\\\",\\\"followingSlide\\\",\\\"orderClassName\\\",\\\"presentationState\\\",\\\"registerChild\\\",\\\"unregisterChild\\\"],[[30,0,[\\\"currentSlide\\\"]],[30,0,[\\\"directionalClassName\\\"]],[30,0,[\\\"followingSlide\\\"]],[30,0,[\\\"orderClassName\\\"]],[30,0,[\\\"presentationState\\\"]],[30,0,[\\\"registerChild\\\"]],[30,0,[\\\"unregisterChild\\\"]]]]]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showControls\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"carousel-control-prev\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toPrevSlide\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"carousel-control-prev-icon\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"visually-hidden\\\"],[12],[1,[30,0,[\\\"prevControlLabel\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"carousel-control-next\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toNextSlide\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"carousel-control-next-icon\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"visually-hidden\\\"],[12],[1,[30,0,[\\\"nextControlLabel\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"indicator\\\",\\\"_index\\\",\\\"@slideComponent\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"did-update\\\",\\\"each\\\",\\\"-track-array\\\",\\\"button\\\",\\\"bs-eq\\\",\\\"fn\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-carousel.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Ember implementation of Bootstrap's Carousel. Supports all original features but API is partially different:\n  \n    | Description | Original | Component |\n    | ------ | ------ | ------ |\n    | Autoplays after first user event or on page load. | ride='carousel'\\|false | autoPlay=false\\|true |\n    | Disable automatic cycle. | interval=false | interval=0 |\n    | If first slide should follow last slide on \"previous\" event, the opposite will also be true for \"next\" event. | wrap=false\\|true | wrap=false\\|true |\n    | Jumps into specific slide index | data-slide-to=n | index=n |\n    | Keyboard events. | keyboard=false\\|true | keyboard=false\\|true |\n    | Left-to-right or right-to-left sliding. | N/A |  ltr=false\\|true |\n    | Pause current cycle on mouse enter. | pause='hover'\\|null | pauseOnMouseEnter=false\\|true |\n    | Show or hide controls  | Tag manipulation. | showControls=false\\|true |\n    | Show or hide indicators  | Tag manipulation. | showIndicators=false\\|true |\n    | Waiting time of slides in an automatic cycle. | interval=n | interval=n |\n  \n    Default settings are the same as the original, so you don't have to worry about changing parameters.\n  \n    ```hbs\n    <BsCarousel as |car|>\n      <car.slide>\n        <img alt=\"First slide\" src=\"slide1.jpg\">\n      </car.slide>\n      <car.slide>\n        <img alt=\"Second slide\" src=\"slide2.jpg\">\n      </car.slide>\n      <car.slide>\n        <img alt=\"Third slide\" src=\"slide3.jpg\">\n      </car.slide>\n    </BsCarousel>\n    ```\n  \n    To better understand the whole documentation, you should be aware of the following operations:\n  \n    | Operation | Description |\n    | ------ | ------ |\n    | Transition | Swaps two slides. |\n    | Interval | Waiting time after a transition. |\n    | Presentation | Represents a single transition, or a single interval, or the union of both. |\n    | Cycle | Presents all slides until it reaches first or last slide. |\n    | Wrap | wrap slides, cycles without stopping at first or last slide. |\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Carousel\n    @namespace Components\n    @extends Component\n    @public\n  */\n  let Carousel = _exports.default = (_dec = (0, _emberConcurrency.task)({\n    restartable: true\n  }), _dec2 = (0, _emberConcurrency.task)({\n    drop: true\n  }), _dec3 = (0, _emberConcurrency.task)({\n    restartable: true\n  }), (_class = class Carousel extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tabindex\", '1');\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      /**\n       * Indicates the current index of the current slide.\n       *\n       * @property currentIndex\n       * @private\n       */\n      _initializerDefineProperty(this, \"currentIndex\", _descriptor2, this);\n      /**\n       * Bootstrap style to indicate that a given slide should be moving to left/right.\n       *\n       * @property directionalClassName\n       * @private\n       * @type { 'left' | 'right' | null }\n       */\n      _initializerDefineProperty(this, \"directionalClassName\", _descriptor3, this);\n      /**\n       * Indicates the next slide index to move into.\n       *\n       * @property followingIndex\n       * @private\n       * @type number\n       */\n      _initializerDefineProperty(this, \"followingIndex\", _descriptor4, this);\n      /**\n       * If user is hovering its cursor on component.\n       * This property is only manipulated when 'pauseOnMouseEnter' is true.\n       *\n       * @property isMouseHovering\n       * @private\n       * @type boolean\n       */\n      _initializerDefineProperty(this, \"isMouseHovering\", _descriptor5, this);\n      /**\n       * The class name to append to the next control link element.\n       *\n       * @property nextControlClassName\n       * @type string\n       * @private\n       */\n      /**\n       * Bootstrap style to indicate the next/previous slide.\n       *\n       * @property orderClassName\n       * @private\n       * @type string\n       */\n      _initializerDefineProperty(this, \"orderClassName\", _descriptor6, this);\n      /**\n       * The current state of the current presentation, can be either \"didTransition\"\n       * or \"willTransit\".\n       *\n       * @private\n       * @property presentationState\n       * @type { 'didTransition' | 'willTransit' | null }\n       */\n      _initializerDefineProperty(this, \"presentationState\", _descriptor7, this);\n    }\n    /**\n     * @property slideComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * If a slide can turn to left, including corners.\n     *\n     * @private\n     * @property canTurnToLeft\n     */\n    get canTurnToLeft() {\n      return this.wrap || this.currentIndex > 0;\n    }\n\n    /**\n     * If a slide can turn to right, including corners.\n     *\n     * @private\n     * @property canTurnToRight\n     */\n    get canTurnToRight() {\n      return this.wrap || this.currentIndex < this.childSlides.length - 1;\n    }\n    /**\n     * All `CarouselSlide` child components.\n     *\n     * @private\n     * @property childSlides\n     * @readonly\n     * @type array\n     */\n    get childSlides() {\n      return this.children.filter(view => view instanceof _slide.default);\n    }\n\n    /**\n     * This observer is the entry point for real time insertion and removing of slides.\n     *\n     * @private\n     * @property childSlidesObserver\n     */\n    childSlidesObserver() {\n      let childSlides = this.childSlides;\n      if (childSlides.length === 0) {\n        return;\n      }\n      // Sets new current index\n      let currentIndex = this.currentIndex;\n      if (currentIndex >= childSlides.length) {\n        currentIndex = childSlides.length - 1;\n        this.currentIndex = currentIndex;\n      }\n      // Automatic sliding\n      if (this.autoPlay) {\n        this.waitIntervalToInitCycle.perform();\n      }\n      // Initial slide state\n      this.presentationState = null;\n    }\n    /**\n     * The current slide object that is going to be used by the nested slides components.\n     *\n     * @property currentSlide\n     * @private\n     *\n     */\n    get currentSlide() {\n      return this.childSlides[this.currentIndex];\n    }\n    /**\n     * The following slide object that is going to be used by the nested slides components.\n     *\n     * @property followingIndex\n     * @private\n     */\n    get followingSlide() {\n      return this.childSlides[this.followingIndex];\n    }\n\n    /**\n     * @private\n     * @property hasInterval\n     * @type boolean\n     */\n    get hasInterval() {\n      return this.interval > 0;\n    }\n\n    /**\n     * This observer is the entry point for programmatically slide changing.\n     *\n     * @property indexObserver\n     * @private\n     */\n    indexObserver() {\n      this.toSlide(this.index);\n    }\n\n    /**\n     * @property indicators\n     * @private\n     */\n    get indicators() {\n      return [...Array(this.childSlides.length)];\n    }\n    /**\n     * The class name to append to the previous control link element.\n     *\n     * @property prevControlClassName\n     * @type string\n     * @private\n     */\n\n    /**\n     * @private\n     * @property shouldNotDoPresentation\n     * @type boolean\n     */\n    get shouldNotDoPresentation() {\n      return this.childSlides.length <= 1;\n    }\n\n    /**\n     * @private\n     * @property shouldRunAutomatically\n     * @type boolean\n     */\n    get shouldRunAutomatically() {\n      return this.hasInterval;\n    }\n\n    /**\n     * Starts automatic sliding on page load.\n     * This parameter has no effect if interval is less than or equal to zero.\n     *\n     * @default false\n     * @property autoPlay\n     * @public\n     * @type boolean\n     */\n    get autoPlay() {\n      return this.args.autoPlay ?? false;\n    }\n\n    /**\n     * If false will hard stop on corners, i.e., first slide won't make a transition to the\n     * last slide and vice versa.\n     *\n     * @default true\n     * @property wrap\n     * @public\n     * @type boolean\n     */\n    get wrap() {\n      return this.args.wrap ?? true;\n    }\n\n    /**\n     * Index of starting slide.\n     *\n     * @default 0\n     * @property index\n     * @public\n     * @type number\n     */\n    get index() {\n      return this.args.index ?? 0;\n    }\n\n    /**\n     * Waiting time before automatically show another slide.\n     * Automatic sliding is canceled if interval is less than or equal to zero.\n     *\n     * @default 5000\n     * @property interval\n     * @public\n     * @type number\n     */\n    get interval() {\n      return this.args.interval ?? 5000;\n    }\n\n    /**\n     * Should bind keyboard events into sliding.\n     *\n     * @default true\n     * @property keyboard\n     * @public\n     * @type boolean\n     */\n    get keyboard() {\n      return this.args.keyboard ?? true;\n    }\n\n    /**\n     * If automatic sliding should be left-to-right or right-to-left.\n     * This parameter has no effect if interval is less than or equal to zero.\n     *\n     * @default true\n     * @property ltr\n     * @public\n     * @type boolean\n     */\n    get ltr() {\n      return this.args.ltr ?? true;\n    }\n\n    /**\n     * The next control icon to be displayed.\n     *\n     * @default null\n     * @property nextControlIcon\n     * @type string\n     * @public\n     */\n\n    /**\n     * Label for screen readers, defaults to 'Next'.\n     *\n     * @default 'Next'\n     * @property nextControlLabel\n     * @type string\n     * @public\n     */\n    get nextControlLabel() {\n      return this.args.nextControlLabel ?? 'Next';\n    }\n\n    /**\n     * Pauses automatic sliding if mouse cursor is hovering the component.\n     * This parameter has no effect if interval is less than or equal to zero.\n     *\n     * @default true\n     * @property pauseOnMouseEnter\n     * @public\n     * @type boolean\n     */\n    get pauseOnMouseEnter() {\n      return this.args.pauseOnMouseEnter ?? true;\n    }\n\n    /**\n     * The previous control icon to be displayed.\n     *\n     * @default null\n     * @property prevControlIcon\n     * @type string\n     * @public\n     */\n\n    /**\n     * Label for screen readers, defaults to 'Previous'.\n     *\n     * @default 'Previous'\n     * @property prevControlLabel\n     * @type string\n     * @public\n     */\n    get prevControlLabel() {\n      return this.args.prevControlLabel ?? 'Previous';\n    }\n\n    /**\n     * Show or hide controls.\n     *\n     * @default true\n     * @property showControls\n     * @public\n     * @type boolean\n     */\n    get showControls() {\n      return this.args.showControls ?? true;\n    }\n\n    /**\n     * Show or hide indicators.\n     *\n     * @default true\n     * @property showIndicators\n     * @public\n     * @type boolean\n     */\n    get showIndicators() {\n      return this.args.showIndicators ?? true;\n    }\n\n    /**\n     * The duration of the slide transition.\n     * You should also change this parameter in Bootstrap CSS file.\n     *\n     * @default 600\n     * @property transitionDuration\n     * @public\n     * @type number\n     */\n    get transitionDuration() {\n      return this.args.transitionDuration ?? 600;\n    }\n\n    /**\n     * The type slide transition to perform.\n     * Options are 'fade' or 'slide'. Note: BS4 only\n     *\n     * @default 'slide'\n     * @property transition\n     * @public\n     * @type string\n     */\n    get transition() {\n      return this.args.transition ?? 'slide';\n    }\n    get carouselFade() {\n      return this.transition === 'fade';\n    }\n\n    /**\n     * Action called after the slide has changed.\n     *\n     * @event onSlideChanged\n     * @param toIndex\n     * @public\n     */\n\n    /**\n     * Do a presentation and calls itself to perform a cycle.\n     *\n     * @method cycle\n     * @this Carousel\n     * @private\n     */\n    *cycle() {\n      yield this.transitioner.perform();\n      yield (0, _emberConcurrency.timeout)(this.interval);\n      this.toAppropriateSlide();\n    }\n\n    /**\n     * @method transitioner\n     * @this Carousel\n     * @private\n     */\n    *transitioner() {\n      this.presentationState = 'willTransit';\n      yield (0, _emberConcurrency.timeout)(this.transitionDuration);\n      this.presentationState = 'didTransition';\n      // Must change current index after execution of 'presentationStateObserver' method\n      // from child components.\n      yield new Promise(resolve => {\n        (0, _runloop.schedule)('afterRender', this, () => {\n          this.currentIndex = this.followingIndex;\n          resolve();\n        });\n      });\n    }\n\n    /**\n     * Waits an interval time to start a cycle.\n     *\n     * @method waitIntervalToInitCycle\n     * @this Carousel\n     * @private\n     */\n    *waitIntervalToInitCycle() {\n      if (this.shouldRunAutomatically === false) {\n        return;\n      }\n      yield (0, _emberConcurrency.timeout)(this.interval);\n      this.toAppropriateSlide();\n    }\n    toSlide(toIndex) {\n      if (this.currentIndex === toIndex || this.shouldNotDoPresentation) {\n        return;\n      }\n      this.assignClassNameControls(toIndex);\n      this.setFollowingIndex(toIndex);\n      if (this.shouldRunAutomatically === false || this.isMouseHovering) {\n        this.transitioner.perform();\n      } else {\n        this.cycle.perform();\n      }\n      this.args.onSlideChanged?.(toIndex);\n    }\n    toNextSlide() {\n      if (this.canTurnToRight) {\n        this.toSlide(this.currentIndex + 1);\n      }\n    }\n    toPrevSlide() {\n      if (this.canTurnToLeft) {\n        this.toSlide(this.currentIndex - 1);\n      }\n    }\n\n    /**\n     * Indicates what class names should be applicable to the current transition slides.\n     *\n     * @method assignClassNameControls\n     * @private\n     */\n    assignClassNameControls(toIndex) {\n      if (toIndex < this.currentIndex) {\n        this.directionalClassName = 'right';\n        this.orderClassName = 'prev';\n      } else {\n        this.directionalClassName = 'left';\n        this.orderClassName = 'next';\n      }\n    }\n    handleMouseEnter() {\n      if (this.pauseOnMouseEnter) {\n        this.isMouseHovering = true;\n        this.cycle.cancelAll();\n        this.waitIntervalToInitCycle.cancelAll();\n      }\n    }\n    handleMouseLeave() {\n      if (this.pauseOnMouseEnter && (this.transitioner.last !== null || this.waitIntervalToInitCycle.last !== null)) {\n        this.isMouseHovering = false;\n        this.waitIntervalToInitCycle.perform();\n      }\n    }\n    handleKeyDown(e) {\n      let code = e.keyCode || e.which;\n      if (this.keyboard === false || /input|textarea/i.test(e.target.tagName)) {\n        return;\n      }\n      switch (code) {\n        case 37:\n          this.toPrevSlide();\n          break;\n        case 39:\n          this.toNextSlide();\n          break;\n        default:\n          break;\n      }\n    }\n\n    /**\n     * Sets the following slide index within the lower and upper bounds.\n     *\n     * @method setFollowingIndex\n     * @private\n     */\n    setFollowingIndex(toIndex) {\n      let slidesLengthMinusOne = this.childSlides.length - 1;\n      if (toIndex > slidesLengthMinusOne) {\n        this.followingIndex = 0;\n      } else if (toIndex < 0) {\n        this.followingIndex = slidesLengthMinusOne;\n      } else {\n        this.followingIndex = toIndex;\n      }\n    }\n\n    /**\n     * Coordinates the correct slide movement direction.\n     *\n     * @method toAppropriateSlide\n     * @private\n     */\n    toAppropriateSlide() {\n      if (this.ltr) {\n        this.toNextSlide();\n      } else {\n        this.toPrevSlide();\n      }\n    }\n    registerChild(element) {\n      (0, _runloop.schedule)('actions', this, () => {\n        this.children = [...this.children, element];\n      });\n    }\n    unregisterChild(element) {\n      (0, _runloop.schedule)('actions', this, () => {\n        this.children = this.children.filter(value => value !== element);\n      });\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"childSlidesObserver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"childSlidesObserver\"), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.index;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"directionalClassName\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"followingIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"indexObserver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"indexObserver\"), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isMouseHovering\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"orderClassName\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"presentationState\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"cycle\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"cycle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transitioner\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"transitioner\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"waitIntervalToInitCycle\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"waitIntervalToInitCycle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toSlide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toNextSlide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toNextSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toPrevSlide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toPrevSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerChild\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerChild\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unregisterChild\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"unregisterChild\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Carousel);\n});","define(\"ember-bootstrap/components/bs-carousel/slide\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/runloop\", \"ember-ref-bucket\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/destroyable\", \"@ember/template-factory\"], function (_exports, _component, _component2, _runloop, _emberRefBucket, _tracking, _object, _destroyable, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"ember-ref-bucket\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/destroyable\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div\n    class=\"carousel-item {{if this.active \"active\"}} {{if this.left (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"carousel-item-start\" \"carousel-item-left\")}} {{if this.next \"carousel-item-next\"}} {{if this.prev \"carousel-item-prev\"}} {{if this.right (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"carousel-item-end\" \"carousel-item-right\")}}\"\n    ...attributes\n    {{create-ref \"mainNode\"}}\n    {{did-update this.presentationStateObserver @presentationState @currentSlide}}\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"sCitZ/Ay\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"carousel-item \\\",[52,[30,0,[\\\"active\\\"]],\\\"active\\\"],\\\" \\\",[52,[30,0,[\\\"left\\\"]],\\\"carousel-item-start\\\"],\\\" \\\",[52,[30,0,[\\\"next\\\"]],\\\"carousel-item-next\\\"],\\\" \\\",[52,[30,0,[\\\"prev\\\"]],\\\"carousel-item-prev\\\"],\\\" \\\",[52,[30,0,[\\\"right\\\"]],\\\"carousel-item-end\\\"]]]],[17,1],[4,[38,2],[\\\"mainNode\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[4,[38,3],[[30,0,[\\\"presentationStateObserver\\\"]],[30,2],[30,3]],null],[12],[1,\\\"\\\\n  \\\"],[18,4,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@presentationState\\\",\\\"@currentSlide\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"create-ref\\\",\\\"did-update\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-carousel/slide.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    A visible user-defined slide.\n  \n    See [Components.Carousel](Components.Carousel.html) for examples.\n  \n    @class CarouselSlide\n    @namespace Components\n    @extends Component\n    @public\n   */\n  let CarouselSlide = _exports.default = (_dec = (0, _emberRefBucket.ref)('mainNode'), (_class = class CarouselSlide extends _component2.default {\n    /**\n     * @private\n     * @property isCurrentSlide\n     * @type boolean\n     */\n    get isCurrentSlide() {\n      return this.args.currentSlide === this;\n    }\n\n    /**\n     * @private\n     * @property isFollowingSlide\n     * @type boolean\n     */\n    get isFollowingSlide() {\n      return this.args.followingSlide === this;\n    }\n\n    /**\n     * Slide is moving to the left.\n     *\n     * @property left\n     * @type boolean\n     * @private\n     */\n\n    constructor(owner, args) {\n      super(owner, args);\n      /**\n       * @property _element\n       * @type null | HTMLElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      /**\n       * Defines slide visibility.\n       *\n       * @property active\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"active\", _descriptor2, this);\n      _initializerDefineProperty(this, \"left\", _descriptor3, this);\n      /**\n       * Next to appear in a left sliding.\n       *\n       * @property next\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"next\", _descriptor4, this);\n      /**\n       * Next to appear in a right sliding.\n       *\n       * @property prev\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"prev\", _descriptor5, this);\n      /**\n       * Slide is moving to the right.\n       *\n       * @property right\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"right\", _descriptor6, this);\n      args.registerChild?.(this);\n      (0, _destroyable.registerDestructor)(this, () => {\n        this.args.unregisterChild?.(this);\n      });\n    }\n\n    /**\n     * Coordinates the execution of a presentation.\n     *\n     * @method presentationStateObserver\n     * @private\n     */\n    presentationStateObserver() {\n      if (!this.active) {\n        this.active = this.isCurrentSlide && this.args.presentationState === null;\n      }\n      let presentationState = this.args.presentationState;\n      if (this.isCurrentSlide) {\n        switch (presentationState) {\n          case 'didTransition':\n            this.currentSlideDidTransition();\n            break;\n          case 'willTransit':\n            this.currentSlideWillTransit();\n            break;\n        }\n      }\n      if (this.isFollowingSlide) {\n        switch (presentationState) {\n          case 'didTransition':\n            this.followingSlideDidTransition();\n            break;\n          case 'willTransit':\n            this.followingSlideWillTransit();\n            break;\n        }\n      }\n    }\n\n    /**\n     * @method currentSlideDidTransition\n     * @private\n     */\n    currentSlideDidTransition() {\n      this[this.args.directionalClassName] = false;\n      this.active = false;\n    }\n\n    /**\n     * @method currentSlideWillTransit\n     * @private\n     */\n    currentSlideWillTransit() {\n      this.active = true;\n      (0, _runloop.next)(this, function () {\n        this[this.args.directionalClassName] = true;\n      });\n    }\n\n    /**\n     * @method followingSlideDidTransition\n     * @private\n     */\n    followingSlideDidTransition() {\n      this.active = true;\n      this[this.args.directionalClassName] = false;\n      this[this.args.orderClassName] = false;\n    }\n\n    /**\n     * @method followingSlideWillTransit\n     * @private\n     */\n    followingSlideWillTransit() {\n      this[this.args.orderClassName] = true;\n      (0, _runloop.next)(this, () => {\n        this.reflow();\n        this[this.args.directionalClassName] = true;\n      });\n    }\n\n    /**\n     * Makes things more stable, especially when fast changing.\n     */\n    reflow() {\n      this._element.offsetHeight;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.isCurrentSlide && this.args.presentationState === null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"left\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"next\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"prev\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"right\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"presentationStateObserver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"presentationStateObserver\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CarouselSlide);\n});","define(\"ember-bootstrap/components/bs-collapse\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@ember/utils\", \"@ember/runloop\", \"ember-bootstrap/utils/transition-end\", \"ember-ref-bucket\", \"ember-bootstrap/utils/decorators/arg\", \"@glimmer/tracking\", \"@ember/debug\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _utils, _runloop, _transitionEnd, _emberRefBucket, _arg, _tracking, _debug, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"ember-bootstrap/utils/transition-end\",0,\"ember-ref-bucket\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@glimmer/tracking\",0,\"@ember/debug\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"{{if this.collapse \"collapse\"}} {{if this.transitioning \"collapsing\"}} {{if this.showContent \"show\"}}\"\n    ...attributes\n    {{create-ref \"mainNode\"}}\n    {{style this.cssStyle}}\n    {{did-update this._onCollapsedChange this.collapsed}}\n    {{did-update this._updateCollapsedSize this.collapsedSize}}\n    {{did-update this._updateExpandedSize this.expandedSize}}\n  >\n    {{yield}}\n  </div>\n  \n  */\n  {\n    \"id\": \"Bd/rMHtK\",\n    \"block\": \"[[[11,0],[16,0,[29,[[52,[30,0,[\\\"collapse\\\"]],\\\"collapse\\\"],\\\" \\\",[52,[30,0,[\\\"transitioning\\\"]],\\\"collapsing\\\"],\\\" \\\",[52,[30,0,[\\\"showContent\\\"]],\\\"show\\\"]]]],[17,1],[4,[38,2],[\\\"mainNode\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[4,[38,3],[[30,0,[\\\"cssStyle\\\"]]],null],[4,[38,4],[[30,0,[\\\"_onCollapsedChange\\\"]],[30,0,[\\\"collapsed\\\"]]],null],[4,[38,4],[[30,0,[\\\"_updateCollapsedSize\\\"]],[30,0,[\\\"collapsedSize\\\"]]],null],[4,[38,4],[[30,0,[\\\"_updateExpandedSize\\\"]],[30,0,[\\\"expandedSize\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"create-ref\\\",\\\"style\\\",\\\"did-update\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-collapse.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    An Ember component that mimics the behaviour of [Bootstrap's collapse.js plugin](http://getbootstrap.com/javascript/#collapse)\n  \n    ### Usage\n  \n    ```hbs\n    <BsCollapse @collapsed={{this.collapsed}}>\n      <div class=\"well\">\n        <h2>Collapse</h2>\n        <p>This is collapsible content</p>\n      </div>\n    </BsCollapse>\n    ```\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Collapse\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let Collapse = _exports.default = (_dec = (0, _emberRefBucket.ref)('mainNode'), (_class = class Collapse extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property _element\n       * @type null | HTMLElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      /**\n       * Collapsed/expanded state\n       *\n       * @property collapsed\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"collapsed\", _descriptor2, this);\n      /**\n       * True if this item is expanded\n       *\n       * @property active\n       * @private\n       */\n      _defineProperty(this, \"active\", !this.collapsed);\n      /**\n       * true if the component is currently transitioning\n       *\n       * @property transitioning\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"transitioning\", _descriptor3, this);\n      /**\n       * The size of the element when collapsed. Defaults to 0.\n       *\n       * @property collapsedSize\n       * @type number\n       * @default 0\n       * @public\n       */\n      _initializerDefineProperty(this, \"collapsedSize\", _descriptor4, this);\n      /**\n       * The size of the element when expanded. When null the value is calculated automatically to fit the containing elements.\n       *\n       * @property expandedSize\n       * @type number\n       * @default null\n       * @public\n       */\n      _initializerDefineProperty(this, \"expandedSize\", _descriptor5, this);\n      /**\n       * Usually the size (height) of the element is only set while transitioning, and reseted afterwards. Set to true to always set a size.\n       *\n       * @property resetSizeWhenNotCollapsing\n       * @type boolean\n       * @default true\n       * @private\n       */\n      _defineProperty(this, \"resetSizeWhenNotCollapsing\", true);\n      /**\n       * The direction (height/width) of the collapse animation.\n       * When setting this to 'width' you should also define custom CSS transitions for the width property, as the Bootstrap\n       * CSS does only support collapsible elements for the height direction.\n       *\n       * @property collapseDimension\n       * @type string\n       * @default 'height'\n       * @public\n       */\n      _initializerDefineProperty(this, \"collapseDimension\", _descriptor6, this);\n      /**\n       * The duration of the fade transition\n       *\n       * @property transitionDuration\n       * @type number\n       * @default 350\n       * @public\n       */\n      _initializerDefineProperty(this, \"transitionDuration\", _descriptor7, this);\n      _initializerDefineProperty(this, \"collapseSize\", _descriptor8, this);\n    }\n    get collapse() {\n      return !this.transitioning;\n    }\n    get showContent() {\n      return this.collapse && this.active;\n    }\n    /**\n     * Calculates a hash for style attribute.\n     */\n    get cssStyle() {\n      if ((0, _utils.isNone)(this.collapseSize)) {\n        return {};\n      }\n      return {\n        [this.collapseDimension]: `${this.collapseSize}px`\n      };\n    }\n    /**\n     * The action to be sent when the element is about to be hidden.\n     *\n     * @event onHide\n     * @public\n     */\n\n    /**\n     * The action to be sent after the element has been completely hidden (including the CSS transition).\n     *\n     * @event onHidden\n     * @public\n     */\n\n    /**\n     * The action to be sent when the element is about to be shown.\n     *\n     * @event onShow\n     * @public\n     */\n\n    /**\n     * The action to be sent after the element has been completely shown (including the CSS transition).\n     *\n     * @event onShown\n     * @public\n     */\n\n    /**\n     * Triggers the show transition\n     *\n     * @method show\n     * @protected\n     */\n    show() {\n      (false && !(this._element) && (0, _debug.assert)('Reference to collapse div element exists.', this._element));\n      this.args.onShow?.();\n      this.transitioning = true;\n      this.active = true;\n      this.collapseSize = this.collapsedSize;\n      (0, _transitionEnd.default)(this._element, this.transitionDuration).then(() => {\n        if (this.isDestroyed) {\n          return;\n        }\n        this.transitioning = false;\n        if (this.resetSizeWhenNotCollapsing) {\n          this.collapseSize = null;\n        }\n        this.args.onShown?.();\n      });\n      (0, _runloop.next)(this, function () {\n        if (!this.isDestroyed) {\n          this.collapseSize = this.getExpandedSize('show');\n        }\n      });\n    }\n\n    /**\n     * Get the size of the element when expanded\n     *\n     * @method getExpandedSize\n     * @param action\n     * @return {Number}\n     * @private\n     */\n    getExpandedSize(action) {\n      (false && !(this._element) && (0, _debug.assert)('Reference to collapse div element exists.', this._element));\n      const expandedSize = this.expandedSize;\n      if (expandedSize != null) {\n        return expandedSize;\n      }\n      const collapseElement = this._element;\n      const prefix = action === 'show' ? 'scroll' : 'offset';\n      const measureProperty = `${prefix}${this.collapseDimension.substring(0, 1).toUpperCase()}${this.collapseDimension.substring(1)}`;\n      return collapseElement[measureProperty];\n    }\n\n    /**\n     * Triggers the hide transition\n     *\n     * @method hide\n     * @protected\n     */\n    hide() {\n      (false && !(this._element) && (0, _debug.assert)('Reference to collapse div element exists.', this._element));\n      this.args.onHide?.();\n      this.transitioning = true;\n      this.active = false;\n      this.collapseSize = this.getExpandedSize('hide');\n      (0, _transitionEnd.default)(this._element, this.transitionDuration).then(() => {\n        if (this.isDestroyed) {\n          return;\n        }\n        this.transitioning = false;\n        if (this.resetSizeWhenNotCollapsing) {\n          this.collapseSize = null;\n        }\n        this.args.onHidden?.();\n      });\n      (0, _runloop.next)(this, function () {\n        if (!this.isDestroyed) {\n          this.collapseSize = this.collapsedSize;\n        }\n      });\n    }\n    _onCollapsedChange() {\n      const collapsed = this.collapsed;\n      const active = this.active;\n      if (collapsed !== active) {\n        return;\n      }\n      if (collapsed === false) {\n        this.show();\n      } else {\n        this.hide();\n      }\n    }\n    _updateCollapsedSize() {\n      if (!this.resetSizeWhenNotCollapsing && this.collapsed && !this.transitioning) {\n        this.collapseSize = this.collapsedSize;\n      }\n    }\n    _updateExpandedSize() {\n      if (!this.resetSizeWhenNotCollapsing && !this.collapsed && !this.transitioning) {\n        this.collapseSize = this.expandedSize;\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"collapsed\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transitioning\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"collapsedSize\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"expandedSize\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"collapseDimension\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'height';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transitionDuration\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 350;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"collapseSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onCollapsedChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onCollapsedChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateCollapsedSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateCollapsedSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateExpandedSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateExpandedSize\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Collapse);\n});","define(\"ember-bootstrap/components/bs-contextual-help\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"ember-bootstrap/utils/transition-end\", \"ember-bootstrap/utils/dom\", \"ember-bootstrap/utils/decorators/uses-transition\", \"@ember/debug\", \"ember\", \"ember-bootstrap/utils/decorators/arg\", \"@glimmer/tracking\", \"ember-ref-bucket\"], function (_exports, _component, _object, _runloop, _transitionEnd, _dom, _usesTransition, _debug, _ember, _arg, _tracking, _emberRefBucket) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember-bootstrap/utils/transition-end\",0,\"ember-bootstrap/utils/dom\",0,\"ember-bootstrap/utils/decorators/uses-transition\",0,\"@ember/debug\",0,\"ember\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@glimmer/tracking\",0,\"ember-ref-bucket\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const HOVERSTATE_NONE = 'none';\n  const HOVERSTATE_IN = 'in';\n  const HOVERSTATE_OUT = 'out';\n  function noop() {}\n  /**\n    @class ContextualHelp\n    @namespace Components\n    @extends Glimmer.Component\n    @private\n  */\n  let ContextualHelp = _exports.default = (_dec = (0, _usesTransition.default)('fade'), _dec2 = (0, _emberRefBucket.ref)('overlayElement'), (_class = class ContextualHelp extends _component.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property title\n       * @type string\n       * @public\n       */\n      /**\n       * How to position the tooltip/popover - top | bottom | left | right\n       *\n       * @property title\n       * @type string\n       * @default 'top'\n       * @public\n       */\n      _initializerDefineProperty(this, \"placement\", _descriptor, this);\n      /**\n       * By default, it will dynamically reorient the tooltip/popover based on the available space in the viewport. For\n       * example, if `placement` is \"left\", the tooltip/popover will display to the left when possible, otherwise it will\n       * display right. Set to `false` to force placement according to the `placement` property\n       *\n       * @property autoPlacement\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"autoPlacement\", _descriptor2, this);\n      /**\n       * You can programmatically show the tooltip/popover by setting this to `true`\n       *\n       * @property visible\n       * @type boolean\n       * @default false\n       * @public\n       */\n      _initializerDefineProperty(this, \"visible\", _descriptor3, this);\n      /**\n       * @property inDom\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"_inDom\", _descriptor4, this);\n      /**\n       * Set to false to disable fade animations.\n       *\n       * @property fade\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"fade\", _descriptor5, this);\n      /**\n       * Used to apply Bootstrap's visibility class\n       *\n       * @property showHelp\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"showHelp\", _descriptor6, this);\n      /**\n       * Delay showing and hiding the tooltip/popover (ms). Individual delays for showing and hiding can be specified by using the\n       * `delayShow` and `delayHide` properties.\n       *\n       * @property delay\n       * @type number\n       * @default 0\n       * @public\n       */\n      _initializerDefineProperty(this, \"delay\", _descriptor7, this);\n      /**\n       * Delay showing the tooltip/popover. This property overrides the general delay set with the `delay` property.\n       *\n       * @property delayShow\n       * @type number\n       * @default 0\n       * @public\n       */\n      _initializerDefineProperty(this, \"delayShow\", _descriptor8, this);\n      /**\n       * Delay hiding the tooltip/popover. This property overrides the general delay set with the `delay` property.\n       *\n       * @property delayHide\n       * @type number\n       * @default 0\n       * @public\n       */\n      _initializerDefineProperty(this, \"delayHide\", _descriptor9, this);\n      /**\n       * The duration of the fade transition\n       *\n       * @property transitionDuration\n       * @type number\n       * @default 150\n       * @public\n       */\n      _initializerDefineProperty(this, \"transitionDuration\", _descriptor10, this);\n      /**\n       * Keeps the tooltip/popover within the bounds of this element when `autoPlacement` is true. Can be any valid CSS selector.\n       *\n       * @property viewportSelector\n       * @type string\n       * @default 'body'\n       * @see viewportPadding\n       * @see autoPlacement\n       * @public\n       */\n      _initializerDefineProperty(this, \"viewportSelector\", _descriptor11, this);\n      /**\n       * Take a padding into account for keeping the tooltip/popover within the bounds of the element given by `viewportSelector`.\n       *\n       * @property viewportPadding\n       * @type number\n       * @default 0\n       * @see viewportSelector\n       * @see autoPlacement\n       * @public\n       */\n      _initializerDefineProperty(this, \"viewportPadding\", _descriptor12, this);\n      _defineProperty(this, \"_parent\", void 0);\n      _defineProperty(this, \"_parentFinder\", self.document ? self.document.createTextNode('') : '');\n      /**\n       * The DOM element that triggers the tooltip/popover. By default, it is the parent element of this component.\n       * You can set this to any CSS selector to have any other element trigger the tooltip/popover.\n       *\n       * @property triggerElement\n       * @type string | null\n       * @public\n       */\n      _initializerDefineProperty(this, \"triggerElement\", _descriptor13, this);\n      _defineProperty(this, \"triggerTargetElement\", void 0);\n      /**\n       * The event(s) that should trigger the tooltip/popover - click | hover | focus.\n       * You can set this to a single event or multiple events, given as an array or a string separated by spaces.\n       *\n       * @property triggerEvents\n       * @type array|string\n       * @default 'hover focus'\n       * @public\n       */\n      _initializerDefineProperty(this, \"triggerEvents\", _descriptor14, this);\n      /**\n       * Current hover state, 'in', 'out' or null\n       *\n       * @property hoverState\n       * @type number\n       * @private\n       */\n      _defineProperty(this, \"hoverState\", HOVERSTATE_NONE);\n      /**\n       * Current state for events\n       */\n      _defineProperty(this, \"hover\", false);\n      _defineProperty(this, \"focus\", false);\n      _defineProperty(this, \"click\", false);\n      /**\n       * Ember.run timer\n       *\n       * @property timer\n       * @private\n       */\n      _defineProperty(this, \"timer\", null);\n      /**\n       * Use CSS transitions?\n       *\n       * @property usesTransition\n       * @type boolean\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"usesTransition\", _descriptor15, this);\n      /**\n       * The DOM element of the overlay element.\n       *\n       * @property overlayElement\n       * @type object\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"overlayElement\", _descriptor16, this);\n    }\n    get inDom() {\n      return this._inDom ?? !!(this.visible && this.triggerTargetElement);\n    }\n    set inDom(value) {\n      if (this._inDom === value) {\n        return;\n      }\n      this._inDom = value;\n    }\n    /**\n     * The DOM element of the arrow element.\n     *\n     * @property arrowElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    /**\n     * The wormhole destinationElement\n     *\n     * @property destinationElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    get destinationElement() {\n      return (0, _dom.getDestinationElement)(this);\n    }\n\n    /**\n     * The DOM element of the viewport element.\n     *\n     * @property viewportElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    get viewportElement() {\n      return document.querySelector(this.viewportSelector);\n    }\n    /**\n     * @method getTriggerTargetElement\n     * @private\n     */\n    getTriggerTargetElement() {\n      const triggerElement = this.triggerElement;\n      let el;\n      if (!triggerElement) {\n        el = this._parent;\n      } else {\n        el = document.querySelector(triggerElement);\n      }\n      (false && !(el) && (0, _debug.assert)('Could not find trigger element for tooltip/popover component', el));\n      return el;\n    }\n    get _triggerEvents() {\n      let events = this.triggerEvents;\n      if (typeof events === 'string') {\n        events = events.split(' ');\n      }\n      return events.map(event => {\n        switch (event) {\n          case 'hover':\n            return ['mouseenter', 'mouseleave'];\n          case 'focus':\n            return ['focusin', 'focusout'];\n          default:\n            return event;\n        }\n      });\n    }\n\n    /**\n     * If true component will render in place, rather than be wormholed.\n     *\n     * @property renderInPlace\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * @property _renderInPlace\n     * @type boolean\n     * @private\n     */\n    get _renderInPlace() {\n      return this.args.renderInPlace || !this.destinationElement;\n    }\n    get shouldShowHelp() {\n      return this.hover || this.focus || this.click;\n    }\n    /**\n     * This action is called immediately when the tooltip/popover is about to be shown.\n     *\n     * @event onShow\n     * @public\n     */\n\n    /**\n     * This action will be called when the tooltip/popover has been made visible to the user (will wait for CSS transitions to complete).\n     *\n     * @event onShown\n     * @public\n     */\n\n    /**\n     * This action is called immediately when the tooltip/popover is about to be hidden.\n     *\n     * @event onHide\n     * @public\n     */\n\n    /**\n     * This action is called when the tooltip/popover has finished being hidden from the user (will wait for CSS transitions to complete).\n     *\n     * @event onHidden\n     * @public\n     */\n\n    /**\n     * Called when a show event has been received\n     *\n     * @method enter\n     * @param e\n     * @private\n     */\n    enter(e) {\n      if (e) {\n        const eventType = e.type === 'focusin' ? 'focus' : 'hover';\n        this[eventType] = true;\n      }\n      if (this.showHelp || this.hoverState === HOVERSTATE_IN) {\n        this.hoverState = HOVERSTATE_IN;\n        return;\n      }\n      (0, _runloop.cancel)(this.timer ?? undefined);\n      this.hoverState = HOVERSTATE_IN;\n      if (!this.delayShow) {\n        return this.show();\n      }\n      this.timer = (0, _runloop.later)(this, function () {\n        if (this.hoverState === HOVERSTATE_IN) {\n          this.show();\n        }\n      }, this.delayShow);\n    }\n\n    /**\n     * Called when a hide event has been received\n     *\n     * @method leave\n     * @param e\n     * @private\n     */\n    leave(e) {\n      if (e) {\n        const eventType = e.type === 'focusout' ? 'focus' : 'hover';\n        this[eventType] = false;\n      }\n      if (this.shouldShowHelp) {\n        return;\n      }\n      (0, _runloop.cancel)(this.timer ?? undefined);\n      this.hoverState = HOVERSTATE_OUT;\n      if (!this.delayHide) {\n        return this.hide();\n      }\n      this.timer = (0, _runloop.later)(() => {\n        if (this.hoverState === HOVERSTATE_OUT) {\n          this.hide();\n        }\n      }, this.delayHide);\n    }\n\n    /**\n     * Called for a click event\n     *\n     * @method toggle\n     * @private\n     */\n    toggle() {\n      this.click = !this.click;\n      if (this.shouldShowHelp) {\n        this.enter();\n      } else {\n        this.leave();\n      }\n    }\n\n    /**\n     * Show the tooltip/popover\n     *\n     * @method show\n     * @private\n     */\n    show() {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n      if (false === this.args.onShow?.(this)) {\n        return;\n      }\n      this.inDom = true;\n      (0, _runloop.schedule)('afterRender', this, this._show);\n    }\n    _show(skipTransition = false) {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n      this.showHelp = true;\n\n      // If this is a touch-enabled device we add extra\n      // empty mouseover listeners to the body's immediate children;\n      // only needed because of broken event delegation on iOS\n      // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n\n      // See https://github.com/twbs/bootstrap/pull/22481\n      if ('ontouchstart' in document.documentElement) {\n        for (const child of document.body.children) {\n          child.addEventListener('mouseover', noop);\n        }\n      }\n      const tooltipShowComplete = () => {\n        if (this.isDestroyed) {\n          return;\n        }\n        const prevHoverState = this.hoverState;\n        this.args.onShown?.(this);\n        this.hoverState = HOVERSTATE_NONE;\n        if (prevHoverState === HOVERSTATE_OUT) {\n          this.leave();\n        }\n      };\n      if (!skipTransition && this.usesTransition) {\n        (0, _transitionEnd.default)(this.overlayElement, this.transitionDuration).then(tooltipShowComplete);\n      } else {\n        tooltipShowComplete();\n      }\n    }\n\n    /**\n     * Position the tooltip/popover's arrow\n     *\n     * @method replaceArrow\n     * @param delta\n     * @param dimension\n     * @param isVertical\n     * @private\n     */\n    replaceArrow(delta, dimension, isVertical) {\n      const el = this.arrowElement;\n      if (!el) {\n        return;\n      }\n      el.style[isVertical ? 'left' : 'top'] = `${50 * (1 - delta / dimension)}%`;\n      el.style[isVertical ? 'top' : 'left'] = '';\n    }\n\n    /**\n     * Hide the tooltip/popover\n     *\n     * @method hide\n     * @private\n     */\n    hide() {\n      if (this.isDestroyed) {\n        return;\n      }\n      if (false === this.args.onHide?.(this)) {\n        return;\n      }\n      const tooltipHideComplete = () => {\n        if (this.isDestroyed) {\n          return;\n        }\n        if (this.hoverState !== HOVERSTATE_IN) {\n          this.inDom = false;\n        }\n        this.args.onHidden?.(this);\n      };\n      this.showHelp = false;\n\n      // if this is a touch-enabled device we remove the extra\n      // empty mouseover listeners we added for iOS support\n      if ('ontouchstart' in document.documentElement) {\n        for (const child of document.body.children) {\n          child.removeEventListener('mouseover', noop);\n        }\n      }\n      if (this.usesTransition) {\n        (0, _transitionEnd.default)(this.overlayElement, this.transitionDuration).then(tooltipHideComplete);\n      } else {\n        tooltipHideComplete();\n      }\n      this.hoverState = HOVERSTATE_NONE;\n    }\n\n    /**\n     * @method addListeners\n     * @private\n     */\n    addListeners() {\n      const target = this.triggerTargetElement;\n      if (!target || !(target instanceof Element)) {\n        return;\n      }\n      this._triggerEvents.forEach(event => {\n        if (typeof event === 'string') {\n          target.addEventListener(event, this._handleToggle);\n        } else {\n          const [inEvent, outEvent] = event;\n          if (inEvent) {\n            target.addEventListener(inEvent, this._handleEnter);\n          }\n          if (outEvent) {\n            target.addEventListener(outEvent, this._handleLeave);\n          }\n        }\n      });\n    }\n\n    /**\n     * @method removeListeners\n     * @private\n     */\n    removeListeners() {\n      try {\n        const target = this.triggerTargetElement;\n        if (!target || !(target instanceof Element)) {\n          return;\n        }\n        this._triggerEvents.forEach(event => {\n          if (typeof event === 'string') {\n            target.removeEventListener(event, this._handleToggle);\n          } else {\n            const [inEvent, outEvent] = event;\n            if (inEvent) {\n              target.removeEventListener(inEvent, this._handleEnter);\n            }\n            if (outEvent) {\n              target.removeEventListener(outEvent, this._handleLeave);\n            }\n          }\n        });\n      } catch (e) {} // eslint-disable-line no-empty\n    }\n\n    /**\n     * @method handleTriggerEvent\n     * @private\n     */\n    handleTriggerEvent(handler, e) {\n      const overlayElement = this.overlayElement;\n      if (overlayElement && e.target instanceof Node && overlayElement.contains(e.target)) {\n        return;\n      }\n      return handler.call(this, e);\n    }\n    _handleEnter(e) {\n      this.handleTriggerEvent(this.enter, e);\n    }\n    _handleLeave(e) {\n      this.handleTriggerEvent(this.leave, e);\n    }\n    _handleToggle(e) {\n      this.handleTriggerEvent(this.toggle, e);\n    }\n    close() {\n      // Make sure our click state is off, otherwise the next click would\n      // close the already-closed tooltip/popover. We don't need to worry\n      // about this for hover/focus because those aren't \"stateful\" toggle\n      // events like click.\n      this.click = false;\n      this.hide();\n    }\n    setup() {\n      if (typeof FastBoot !== 'undefined') {\n        // ember-render-helpers calls this also in FastBoot, so guard against this\n        return;\n      }\n      if (typeof this._parentFinder === 'string') {\n        return;\n      }\n      let parent = this._parentFinder.parentNode;\n      if (!(parent instanceof Element)) {\n        return;\n      }\n      // In the rare case of using FastBoot w/ rehydration, the parent finder TextNode rendered by FastBoot will be reused,\n      // so our own instance on the component is not rendered, only exists here as detached from DOM and thus has no parent.\n      // In this case we try to use Ember's private API as a fallback.\n      // Related: https://github.com/emberjs/rfcs/issues/168\n      if (!parent) {\n        try {\n          parent = _ember.default.ViewUtils.getViewBounds(this).parentElement;\n        } catch (e) {\n          // we catch the possibly broken private API call, the component can still work if the trigger element is defined\n          // using a CSS selector.\n        }\n      }\n      this._parent = parent;\n\n      // Look for target element after rendering has finished, in case the target DOM element is rendered *after* us\n      // see https://github.com/kaliber5/ember-bootstrap/issues/1329\n      (0, _runloop.schedule)('afterRender', () => {\n        this.triggerTargetElement = this.getTriggerTargetElement();\n        this.addListeners();\n        if (this.visible) {\n          (0, _runloop.next)(this, this.show);\n        }\n      });\n    }\n    showOrHide() {\n      if (this.args.visible) {\n        (0, _runloop.next)(this, this.show);\n      } else {\n        (0, _runloop.next)(this, this.hide);\n      }\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.removeListeners();\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"placement\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'top';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"autoPlacement\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"visible\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_inDom\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"fade\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showHelp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.visible;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"delay\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"delayShow\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.delay ?? 0;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"delayHide\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.delay ?? 0;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"transitionDuration\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 150;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"viewportSelector\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'body';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"viewportPadding\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"triggerElement\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"triggerEvents\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'hover focus';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"usesTransition\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"overlayElement\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_handleEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_handleEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_handleLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_handleLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_handleToggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_handleToggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showOrHide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showOrHide\"), _class.prototype)), _class));\n});","define(\"ember-bootstrap/components/bs-contextual-help/element\", [\"exports\", \"@ember/object\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@glimmer/tracking\", \"ember-ref-bucket\"], function (_exports, _object, _component, _arg, _tracking, _emberRefBucket) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@glimmer/tracking\",0,\"@embroider/macros\",0,\"ember-ref-bucket\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  /**\n   Internal (abstract) component for contextual help markup. Should not be used directly.\n  \n   @class ContextualHelpElement\n   @namespace Components\n   @extends Glimmer.Component\n   @private\n   */\n  let ContextualHelpElement = _exports.default = (_dec = (0, _emberRefBucket.trackedRef)('popperElement'), (_class = class ContextualHelpElement extends _component.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property placement\n       * @type string\n       * @default 'top'\n       * @public\n       */\n      _initializerDefineProperty(this, \"placement\", _descriptor, this);\n      _initializerDefineProperty(this, \"actualPlacement\", _descriptor2, this);\n      /**\n       * @property fade\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"fade\", _descriptor3, this);\n      /**\n       * @property showHelp\n       * @type boolean\n       * @default false\n       * @public\n       */\n      _initializerDefineProperty(this, \"showHelp\", _descriptor4, this);\n      /**\n       * If true component will render in place, rather than be wormholed.\n       *\n       * @property renderInPlace\n       * @type boolean\n       * @default true\n       * @public\n       */\n      /**\n       * Which element to align to\n       *\n       * @property popperTarget\n       * @type {string|HTMLElement}\n       * @public\n       */\n      /**\n       * @property autoPlacement\n       * @type boolean\n       * @default true\n       * @public\n       */\n      /**\n       * The DOM element of the viewport element.\n       *\n       * @property viewportElement\n       * @type object\n       * @public\n       */\n      /**\n       * Take a padding into account for keeping the tooltip/popover within the bounds of the element given by `viewportElement`.\n       *\n       * @property viewportPadding\n       * @type number\n       * @default 0\n       * @public\n       */\n      /**\n       * @property arrowClass\n       * @private\n       */\n      _defineProperty(this, \"arrowClass\", 'arrow');\n      _defineProperty(this, \"placementClassPrefix\", '');\n      _defineProperty(this, \"offset\", [0, 0]);\n      _initializerDefineProperty(this, \"popperElement\", _descriptor5, this);\n    }\n    /**\n     * popper.js modifier config\n     *\n     * @property popperModifiers\n     * @type {object}\n     * @private\n     */\n    get popperOptions() {\n      const options = {\n        placement: this.placement,\n        onFirstUpdate: this.updatePlacement,\n        modifiers: [],\n        strategy: 'absolute'\n      };\n\n      // We need popperElement, so we wait for this getter to recompute once it's available\n      if (!this.popperElement) {\n        return options;\n      }\n      options.modifiers = [{\n        name: 'arrow',\n        options: {\n          element: this.popperElement.querySelector(`.${this.arrowClass}`),\n          padding: 4\n        }\n      }, {\n        name: 'offset',\n        options: {\n          offset: this.offset\n        }\n      }, {\n        name: 'preventOverflow',\n        enabled: this.args.autoPlacement,\n        options: {\n          boundary: this.args.viewportElement,\n          padding: this.args.viewportPadding\n        }\n      }, {\n        name: 'flip',\n        enabled: this.args.autoPlacement\n      }, {\n        name: 'onChange',\n        enabled: true,\n        phase: 'afterWrite',\n        fn: this.updatePlacement\n      }];\n      return options;\n    }\n    get actualPlacementClass() {\n      let ending = this.actualPlacement;\n      {\n        if (ending === 'right') {\n          ending = 'end';\n        }\n        if (ending === 'left') {\n          ending = 'start';\n        }\n      }\n      return this.placementClassPrefix + ending;\n    }\n    updatePlacement(state) {\n      // normalize argument\n      const normalizedState = 'state' in state ? state.state : state;\n      if (this.actualPlacement === normalizedState.placement) {\n        return;\n      }\n      this.actualPlacement = normalizedState.placement;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"placement\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'top';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"actualPlacement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.placement;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"fade\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showHelp\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"popperElement\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updatePlacement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePlacement\"), _class.prototype)), _class));\n});","define(\"ember-bootstrap/components/bs-dropdown\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@ember/debug\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _debug, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/debug\",0,\"@embroider/macros\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#let (element this.htmlTag) as |Tag|}}\n    <Tag\n      class=\"{{this.containerClass}}\n        {{if this.inNav \"nav-item\"}}\n        {{if this.isOpen \"show\"}}\"\n      ...attributes\n    >\n      {{yield\n        (hash\n          button=(component (ensure-safe-component (bs-default @buttonComponent (component \"bs-dropdown/button\")))\n            isOpen=this.isOpen\n            onClick=this.toggleDropdown\n            onKeyDown=this.handleKeyEvent\n            registerChildElement=this.registerChildElement\n            unregisterChildElement=this.unregisterChildElement\n          )\n          toggle=(component (ensure-safe-component (bs-default @toggleComponent (component \"bs-dropdown/toggle\")))\n            isOpen=this.isOpen\n            inNav=@inNav\n            onClick=this.toggleDropdown\n            onKeyDown=this.handleKeyEvent\n            registerChildElement=this.registerChildElement\n            unregisterChildElement=this.unregisterChildElement\n          )\n          menu=(component (ensure-safe-component (bs-default @menuComponent (component \"bs-dropdown/menu\")))\n            isOpen=this.isOpen\n            inNav=@inNav\n            direction=this.direction\n            toggleElement=this.toggleElement\n            registerChildElement=this.registerChildElement\n            unregisterChildElement=this.unregisterChildElement\n          )\n          toggleDropdown=this.toggleDropdown\n          openDropdown=this.openDropdown\n          closeDropdown=this.closeDropdown\n          isOpen=this.isOpen\n        )\n      }}\n      {{#if this.isOpen}}\n        {{on-document \"keydown\" this.handleKeyEvent}}\n        {{on-document \"click\" this.closeHandler capture=true}}\n        {{on-document \"keyup\" this.closeHandler}}\n      {{/if}}\n  \n    </Tag>\n  {{/let}}\n  */\n  {\n    \"id\": \"iWSufhk9\",\n    \"block\": \"[[[44,[[28,[37,1],[[30,0,[\\\"htmlTag\\\"]]],null]],[[[1,\\\"  \\\"],[8,[30,1],[[16,0,[29,[[30,0,[\\\"containerClass\\\"]],\\\"\\\\n      \\\",[52,[30,0,[\\\"inNav\\\"]],\\\"nav-item\\\"],\\\"\\\\n      \\\",[52,[30,0,[\\\"isOpen\\\"]],\\\"show\\\"]]]],[17,2]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[18,7,[[28,[37,4],null,[[\\\"button\\\",\\\"toggle\\\",\\\"menu\\\",\\\"toggleDropdown\\\",\\\"openDropdown\\\",\\\"closeDropdown\\\",\\\"isOpen\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,3],[50,\\\"bs-dropdown/button\\\",0,null,null]],null]],null],0,null,[[\\\"isOpen\\\",\\\"onClick\\\",\\\"onKeyDown\\\",\\\"registerChildElement\\\",\\\"unregisterChildElement\\\"],[[30,0,[\\\"isOpen\\\"]],[30,0,[\\\"toggleDropdown\\\"]],[30,0,[\\\"handleKeyEvent\\\"]],[30,0,[\\\"registerChildElement\\\"]],[30,0,[\\\"unregisterChildElement\\\"]]]]],[50,[28,[37,6],[[28,[37,7],[[30,4],[50,\\\"bs-dropdown/toggle\\\",0,null,null]],null]],null],0,null,[[\\\"isOpen\\\",\\\"inNav\\\",\\\"onClick\\\",\\\"onKeyDown\\\",\\\"registerChildElement\\\",\\\"unregisterChildElement\\\"],[[30,0,[\\\"isOpen\\\"]],[30,5],[30,0,[\\\"toggleDropdown\\\"]],[30,0,[\\\"handleKeyEvent\\\"]],[30,0,[\\\"registerChildElement\\\"]],[30,0,[\\\"unregisterChildElement\\\"]]]]],[50,[28,[37,6],[[28,[37,7],[[30,6],[50,\\\"bs-dropdown/menu\\\",0,null,null]],null]],null],0,null,[[\\\"isOpen\\\",\\\"inNav\\\",\\\"direction\\\",\\\"toggleElement\\\",\\\"registerChildElement\\\",\\\"unregisterChildElement\\\"],[[30,0,[\\\"isOpen\\\"]],[30,5],[30,0,[\\\"direction\\\"]],[30,0,[\\\"toggleElement\\\"]],[30,0,[\\\"registerChildElement\\\"]],[30,0,[\\\"unregisterChildElement\\\"]]]]],[30,0,[\\\"toggleDropdown\\\"]],[30,0,[\\\"openDropdown\\\"]],[30,0,[\\\"closeDropdown\\\"]],[30,0,[\\\"isOpen\\\"]]]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOpen\\\"]],[[[1,\\\"      \\\"],[1,[28,[35,8],[\\\"keydown\\\",[30,0,[\\\"handleKeyEvent\\\"]]],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"click\\\",[30,0,[\\\"closeHandler\\\"]]],[[\\\"capture\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"keyup\\\",[30,0,[\\\"closeHandler\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]],[\\\"Tag\\\",\\\"&attrs\\\",\\\"@buttonComponent\\\",\\\"@toggleComponent\\\",\\\"@inNav\\\",\\\"@menuComponent\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"element\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"on-document\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  const ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key\n  const SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key\n  const TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key\n  const ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key\n  const ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key\n\n  const SUPPORTED_KEYCODES = [ESCAPE_KEYCODE, ARROW_DOWN_KEYCODE, ARROW_UP_KEYCODE];\n\n  /**\n    Bootstrap style [dropdown menus](http://getbootstrap.com/components/#dropdowns), consisting\n    of a toggle element, and the dropdown menu itself.\n  \n    ### Usage\n  \n    Use this component together with the yielded contextual components:\n    * [Components.DropdownToggle](Components.DropdownToggle.html)\n    * [Components.DropdownButton](Components.DropdownButton.html)\n    * [Components.DropdownMenu](Components.DropdownMenu.html)\n      * [Components.DropdownMenuItem](Components.DropdownMenuItem.html)\n      * [Components.DropdownMenuDivider](Components.DropdownMenuDivider.html)\n      * [Components.DropdownMenuLinkTo](Components.DropdownMenuLinkTo.html)\n  \n    Furthermore references to the following actions are yielded:\n  \n    * `toggleDropdown`\n    * `openDropdown`\n    * `closeDropdown`\n  \n    ```hbs\n    <BsDropdown as |dd|>\n      <dd.toggle>Dropdown <span class=\"caret\"></span></dd.toggle>\n      <dd.menu as |ddm|>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something</ddm.linkTo>\n        </ddm.item>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something different</ddm.linkTo>\n        </ddm.item>\n      </dd.menu>\n    </BsDropdown>\n    ```\n  \n    If you need to use dropdowns in a [nav](Components.Nav.html), use the `bs-nav.dropdown`\n    contextual component rather than a standalone dropdown to ensure the correct styling\n    regardless of your Bootstrap version.\n  \n    > Note: the use of angle brackets `<ddm.linkTo>` as shown above is only supported for Ember >= 3.10, as it relies on its\n    > Ember's native implementation of the [`LinkComponent`](https://api.emberjs.com/ember/3.12/classes/Ember.Templates.helpers/methods/link-to?anchor=link-to).\n    > For older Ember versions please use the legacy syntax with positional arguments:\n    > `{{#ddm.link-to \"bar\" this.model}}Bar{{/ddm.link-to}}`\n  \n    ### Button dropdowns\n  \n    To use a button as the dropdown toggle element (see http://getbootstrap.com/components/#btn-dropdowns), use the\n    `Components.DropdownButton` component as the toggle:\n  \n    ```hbs\n    <BsDropdown as |dd|>\n      <dd.button>Dropdown <span class=\"caret\"></span></dd.button>\n      <dd.menu as |ddm|>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something</ddm.linkTo>\n        </ddm.item>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something different</ddm.linkTo>\n        </ddm.item>\n      </dd.menu>\n    </BsDropdown>\n    ```\n  \n    It has all the functionality of a `Components.Button` with additional dropdown support.\n  \n    ### Split button dropdowns\n  \n    To have a regular button with a dropdown button as in http://getbootstrap.com/components/#btn-dropdowns-split, use a\n    `Components.Button` component and a `Components.DropdownButton`:\n  \n    ```hbs\n    <BsDropdown as |dd|>\n      <BsButton>Dropdown</BsButton>\n      <dd.button>Dropdown <span class=\"caret\"></span></dd.button>\n      <dd.menu as |ddm|>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something</ddm.linkTo>\n        </ddm.item>\n        <ddm.item>\n          <ddm.linkTo @route=\"index\">Something different</ddm.linkTo>\n        </ddm.item>\n      </dd.menu>\n    </BsDropdown>\n    ```\n  \n    ### Dropup style\n  \n    Set the `direction` property to \"up\" to switch to a \"dropup\" style:\n  \n    ```hbs\n    <BsDropdown @direction=\"up\" as |dd|>\n      ...\n    </BsDropdown>\n    ```\n  \n    ### Open, close or toggle the dropdown programmatically\n  \n    If you wanted to control when the dropdown opens and closes programmatically, the `bs-dropdown` component yields the\n    `openDropdown`, `closeDropdown` and `toggleDropdown` actions which you can then pass to your own handlers. For example:\n  \n    ```hbs\n    <BsDropdown @closeOnMenuClick={{false}} as |dd|>\n      <BsButton>Dropdown</BsButton>\n      <dd.button>Dropdown <span class=\"caret\"></span></dd.button>\n      <dd.menu as |ddm|>\n        {{#each this.items as |item|}}\n          <ddm.item>\n            <a href {{on \"click\" (fn this.changeItems item dd.closeDropdown)}}>\n              {{item.text}}\n            </a>\n          </ddm.item>\n        {{/each}}\n      </dd.menu>\n    </BsDropdown>\n    ```\n  \n    Then in your controller or component, optionally close the dropdown:\n  \n    ```js\n    ...\n    actions: {\n      handleDropdownClicked(item, closeDropdown) {\n        if(item.isTheRightOne) {\n          this.chosenItems.pushObject(item);\n          closeDropdown();\n        } else {\n          this.set('item', this.getRandomItems());\n        }\n      },\n    }\n    ```\n  \n  \n    ### Bootstrap 3/4 Notes\n  \n    If you need to use dropdowns in a [nav](Components.Nav.html), use the `bs-nav.dropdown`\n    contextual component rather than a standalone dropdown to ensure the correct styling\n    regardless of your Bootstrap version.\n  \n    If you use the [dropdown divider](Components.DropdownMenuDivider), you don't have to worry\n    about differences in the markup between versions.\n  \n    Be sure to use the [dropdown menu link-to](Component.DropdownMenuLinkTo), for in-application\n    links as dropdown menu items. This is essential for proper styling regardless of Bootstrap\n    version and will also provide automatic `active` highlighting on dropdown menu items. If you\n    wish to have a dropdown menu item refer to an external link, be sure to apply the `dropdown-item`\n    class to the `<a>` tag for Bootstrap 4 compatibility.\n  \n    The dropdown menu will be positioned using the `popper.js` library, just as the original Bootstrap\n    version does. This also allows you to set `renderInPlace=false` on the menu component to render it in a wormhole,\n    which you might want to do if you experience clipping issues by an outer `overflow: hidden` element.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Dropdown\n    @namespace Components\n    @extends Component\n    @public\n  s*/\n  let Dropdown = _exports.default = (_class = class Dropdown extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * This property reflects the state of the dropdown, whether it is open or closed.\n       *\n       * @property isOpen\n       * @default false\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"isOpen\", _descriptor, this);\n      /**\n       * @property toggleElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"toggleElement\", _descriptor2, this);\n      /**\n       * The DOM element of the `.dropdown-menu` element\n       * @type object\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"menuElement\", _descriptor3, this);\n    }\n    /**\n     * The tag name used for the dropdown element.\n     *\n     * @property htmlTag\n     * @default 'div'\n     * @type {string}\n     * @public\n     */\n    get htmlTag() {\n      return this.args.htmlTag ?? 'div';\n    }\n    /**\n     * By default, clicking on an open dropdown menu will close it. Set this property to false for the menu to stay open.\n     *\n     * @property closeOnMenuClick\n     * @default true\n     * @type boolean\n     * @public\n     */\n    get closeOnMenuClick() {\n      return this.args.closeOnMenuClick ?? true;\n    }\n\n    /**\n     * By default, the dropdown menu will expand downwards. Other options include, 'up', 'left' and 'right'\n     *\n     * @property direction\n     * @type string\n     * @default 'down'\n     * @public\n     */\n    get direction() {\n      return this.args.direction ?? 'down';\n    }\n\n    /**\n     * Indicates the dropdown is being used as a navigation item dropdown.\n     *\n     * @property inNav\n     * @type boolean\n     * @default false\n     * @private\n     */\n\n    /**\n     * A computed property to generate the suiting class for the dropdown container, either\n     *\n     * - \"dropdown\"\n     * - \"dropup\"\n     * - \"dropstart\" (BS5) or \"dropleft\" (BS4)\n     * - \"dropend\" (BS5) or \"dropright\" (BS4)\n     *\n     * @property containerClass\n     * @type string\n     * @readonly\n     * @private\n     */\n    get containerClass() {\n      {\n        if (this.direction === 'left') {\n          return 'dropstart';\n        } else if (this.direction === 'right') {\n          return 'dropend';\n        }\n      }\n      return `drop${this.direction}`;\n    }\n    /**\n     * Action is called when dropdown is about to be shown\n     *\n     * @event onShow\n     * @param {*} value\n     * @public\n     */\n\n    /**\n     * Action is called when dropdown is about to be hidden\n     * Returning `false` will block closing the dropdown\n     *\n     * @event onHide\n     * @param {*} value\n     * @public\n     */\n\n    toggleDropdown() {\n      if (this.isOpen) {\n        this.closeDropdown();\n      } else {\n        this.openDropdown();\n      }\n    }\n    openDropdown() {\n      this.isOpen = true;\n      this.args.onShow?.();\n    }\n    closeDropdown() {\n      if (this.args.onHide?.() === false) return;\n\n      // When closing the dropdown immediately, any click event from dropdown items will be discarded.\n      // By deferring the close action to the next render cycle, we ensure that no events get lost.\n      (0, _runloop.next)(this, () => {\n        this.isOpen = false;\n      });\n    }\n\n    /**\n     * Handler for click events to close the dropdown\n     *\n     * @method closeOnClickHandler\n     * @param e\n     * @protected\n     */\n    closeHandler(e) {\n      let {\n        target\n      } = e;\n      let {\n        toggleElement,\n        menuElement\n      } = this;\n      if (!this.isDestroyed && (e.type === 'keyup' && e.which === TAB_KEYCODE && menuElement && !menuElement.contains(target) || e.type === 'click' && toggleElement && !toggleElement.contains(target) && (menuElement && !menuElement.contains(target) || this.closeOnMenuClick))) {\n        this.closeDropdown();\n      }\n    }\n    handleKeyEvent(event) {\n      // If not input/textarea:\n      //  - And not a key in REGEXP_KEYDOWN => not a dropdown command\n      // If input/textarea:\n      //  - If space key => not a dropdown command\n      //  - If key is other than escape\n      //    - If key is not up or down => not a dropdown command\n      //    - If trigger inside the menu => not a dropdown command\n      if (['input', 'textarea'].includes(event.target.tagName.toLowerCase()) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || this.menuElement.contains(event.target)) : !SUPPORTED_KEYCODES.includes(event.which)) {\n        return;\n      }\n      event.preventDefault();\n      event.stopPropagation();\n      if (!this.isOpen) {\n        this.openDropdown();\n        return;\n      } else if (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {\n        this.closeDropdown();\n        this.toggleElement.focus();\n        return;\n      }\n      let items = [].slice.call(this.menuElement.querySelectorAll('.dropdown-item:not(.disabled):not(:disabled)'));\n      if (items.length === 0) {\n        return;\n      }\n      let index = items.indexOf(event.target);\n      if (event.which === ARROW_UP_KEYCODE && index > 0) {\n        // Up\n        index--;\n      }\n      if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {\n        // Down\n        index++;\n      }\n      if (index < 0) {\n        index = 0;\n      }\n      items[index].focus();\n    }\n    registerChildElement(element, [type]) {\n      (false && !(type === 'toggle' || type === 'menu') && (0, _debug.assert)(`Unknown child element type \"${type}\"`, type === 'toggle' || type === 'menu'));\n      (false && !(element instanceof HTMLElement) && (0, _debug.assert)(`Registered ${type} element must be an HTMLElement`, element instanceof HTMLElement));\n      this[`${type}Element`] = element;\n    }\n    unregisterChildElement(element, [type]) {\n      (false && !(type === 'toggle' || type === 'menu') && (0, _debug.assert)(`Unknown child element type \"${type}\"`, type === 'toggle' || type === 'menu'));\n      this[`${type}Element`] = null;\n    }\n\n    /**\n     * @property buttonComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property toggleComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property menuComponent\n     * @type {String}\n     * @private\n     */\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"toggleElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"menuElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeHandler\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerChildElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerChildElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unregisterChildElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"unregisterChildElement\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Dropdown);\n});","define(\"ember-bootstrap/components/bs-dropdown/button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <BsButton\n    {{! cannot pass @block directly because that triggers reserved keyword assertion when compiling the template }}\n    {{! template-lint-disable no-capital-arguments no-args-paths }}\n    @block={{this.args.block}}\n    @onClick={{@onClick}}\n    @active={{@active}}\n    @size={{@size}}\n    @type={{@type}}\n    @outline={{@outline}}\n    aria-expanded={{if @isOpen \"true\" \"false\"}}\n    class=\"dropdown-toggle\"\n    ...attributes\n    {{on \"keydown\" @onKeyDown}}\n    {{did-insert @registerChildElement \"toggle\"}}\n    {{will-destroy @unregisterChildElement \"toggle\"}}\n  >\n    {{yield}}\n  </BsButton>\n  \n  */\n  {\n    \"id\": \"B4G8xXbP\",\n    \"block\": \"[[[8,[39,0],[[16,\\\"aria-expanded\\\",[52,[30,1],\\\"true\\\",\\\"false\\\"]],[24,0,\\\"dropdown-toggle\\\"],[17,2],[4,[38,2],[\\\"keydown\\\",[30,8]],null],[4,[38,3],[[30,9],\\\"toggle\\\"],null],[4,[38,4],[[30,10],\\\"toggle\\\"],null]],[[\\\"@block\\\",\\\"@onClick\\\",\\\"@active\\\",\\\"@size\\\",\\\"@type\\\",\\\"@outline\\\"],[[30,0,[\\\"args\\\",\\\"block\\\"]],[30,3],[30,4],[30,5],[30,6],[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,11,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[\\\"@isOpen\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"@active\\\",\\\"@size\\\",\\\"@type\\\",\\\"@outline\\\",\\\"@onKeyDown\\\",\\\"@registerChildElement\\\",\\\"@unregisterChildElement\\\",\\\"&default\\\"],false,[\\\"bs-button\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-dropdown/button.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Button component with that can act as a dropdown toggler.\n  \n   See [Components.Dropdown](Components.Dropdown.html) for examples.\n  \n   @class DropdownButton\n   @namespace Components\n   @extends Components.Button\n   @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-dropdown/menu\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"ember-bootstrap/utils/dom\", \"ember-ref-bucket\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _dom, _emberRefBucket, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"ember-bootstrap/utils/dom\",0,\"ember-ref-bucket\",0,\"@embroider/macros\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @isOpen}}\n    {{#if this._renderInPlace}}\n      <div\n        data-bs-popper\n        class=\"dropdown-menu {{this.alignClass}} show\"\n        tabindex=\"-1\"\n        ...attributes\n        {{popper-tooltip @toggleElement this.popperOptions}}\n        {{did-insert @registerChildElement \"menu\"}}\n        {{will-destroy @unregisterChildElement \"menu\"}}\n        {{create-ref \"menuElement\"}}\n      >\n        {{yield\n          (hash\n            item=(ensure-safe-component (bs-default @itemComponent (component \"bs-dropdown/menu/item\")))\n            link-to=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"dropdown-item\")))\n            linkTo=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"dropdown-item\")))\n            divider=(ensure-safe-component (bs-default @dividerComponent (component \"bs-dropdown/menu/divider\")))\n          )\n        }}\n      </div>\n    {{else}}\n      {{#in-element this.destinationElement insertBefore=null}}\n        <div\n          data-bs-popper\n          class=\"dropdown-menu {{this.alignClass}} show\"\n          tabindex=\"-1\"\n          ...attributes\n          {{popper-tooltip @toggleElement this.popperOptions}}\n          {{did-insert @registerChildElement \"menu\"}}\n          {{will-destroy @unregisterChildElement \"menu\"}}\n          {{create-ref \"menuElement\"}}\n        >\n          {{yield\n            (hash\n              item=(ensure-safe-component (bs-default @itemComponent (component \"bs-dropdown/menu/item\")))\n              link-to=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"dropdown-item\")))\n              linkTo=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"dropdown-item\")))\n              divider=(ensure-safe-component (bs-default @dividerComponent (component \"bs-dropdown/menu/divider\")))\n            )\n          }}\n        </div>\n      {{/in-element}}\n    {{/if}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"PQHWZWCh\",\n    \"block\": \"[[[41,[30,1],[[[41,[30,0,[\\\"_renderInPlace\\\"]],[[[1,\\\"    \\\"],[11,0],[24,\\\"data-bs-popper\\\",\\\"\\\"],[16,0,[29,[\\\"dropdown-menu \\\",[30,0,[\\\"alignClass\\\"]],\\\" show\\\"]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[[30,4],\\\"menu\\\"],null],[4,[38,4],[[30,5],\\\"menu\\\"],null],[4,[38,5],[\\\"menuElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n      \\\"],[18,9,[[28,[37,7],null,[[\\\"item\\\",\\\"link-to\\\",\\\"linkTo\\\",\\\"divider\\\"],[[28,[37,8],[[28,[37,9],[[30,6],[50,\\\"bs-dropdown/menu/item\\\",0,null,null]],null]],null],[28,[37,8],[[28,[37,9],[[30,7],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"dropdown-item\\\"]]]],null]],null],[28,[37,8],[[28,[37,9],[[30,7],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"dropdown-item\\\"]]]],null]],null],[28,[37,8],[[28,[37,9],[[30,8],[50,\\\"bs-dropdown/menu/divider\\\",0,null,null]],null]],null]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[40,[[[1,\\\"      \\\"],[11,0],[24,\\\"data-bs-popper\\\",\\\"\\\"],[16,0,[29,[\\\"dropdown-menu \\\",[30,0,[\\\"alignClass\\\"]],\\\" show\\\"]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[[30,4],\\\"menu\\\"],null],[4,[38,4],[[30,5],\\\"menu\\\"],null],[4,[38,5],[\\\"menuElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n        \\\"],[18,9,[[28,[37,7],null,[[\\\"item\\\",\\\"link-to\\\",\\\"linkTo\\\",\\\"divider\\\"],[[28,[37,8],[[28,[37,9],[[30,6],[50,\\\"bs-dropdown/menu/item\\\",0,null,null]],null]],null],[28,[37,8],[[28,[37,9],[[30,7],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"dropdown-item\\\"]]]],null]],null],[28,[37,8],[[28,[37,9],[[30,7],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"dropdown-item\\\"]]]],null]],null],[28,[37,8],[[28,[37,9],[[30,8],[50,\\\"bs-dropdown/menu/divider\\\",0,null,null]],null]],null]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,12],[[30,0,[\\\"destinationElement\\\"]]],null],null]],[]]]],[]],null]],[\\\"@isOpen\\\",\\\"&attrs\\\",\\\"@toggleElement\\\",\\\"@registerChildElement\\\",\\\"@unregisterChildElement\\\",\\\"@itemComponent\\\",\\\"@linkToComponent\\\",\\\"@dividerComponent\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"popper-tooltip\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"create-ref\\\",\\\"yield\\\",\\\"hash\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-dropdown/menu.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Component for the dropdown menu.\n  \n   See [Components.Dropdown](Components.Dropdown.html) for examples.\n  \n   @class DropdownMenu\n   @namespace Components\n   @extends Component\n   @public\n   */\n  let DropdownMenu = _exports.default = (_dec = (0, _emberRefBucket.ref)('menuElement'), (_class = class DropdownMenu extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property _element\n       * @type null | HTMLElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"menuElement\", _descriptor, this);\n      _defineProperty(this, \"flip\", true);\n    }\n    /**\n     * Alignment of the menu, either \"left\" or \"right\"\n     *\n     * @property align\n     * @type string\n     * @default left\n     * @public\n     */\n    get align() {\n      return this.args.align ?? 'left';\n    }\n\n    /**\n     * @property direction\n     * @default 'down'\n     * @type string\n     * @private\n     */\n    get direction() {\n      return this.args.direction ?? 'down';\n    }\n\n    /**\n     * By default, the menu is rendered in the same place as the dropdown. If you experience clipping\n     * issues, you can set this to false to render the menu in a wormhole at the top of the DOM.\n     *\n     * @property renderInPlace\n     * @type boolean\n     * @default true\n     * @public\n     */\n    get renderInPlace() {\n      return this.args.renderInPlace ?? true;\n    }\n\n    /**\n     * @property inNav\n     * @type {boolean}\n     * @private\n     */\n    get inNav() {\n      return this.args.inNav ?? false;\n    }\n\n    /**\n     * @property _renderInPlace\n     * @type boolean\n     * @private\n     */\n    get _renderInPlace() {\n      return this.renderInPlace || !this.destinationElement;\n    }\n\n    /**\n     * The wormhole destinationElement\n     *\n     * @property destinationElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    get destinationElement() {\n      return (0, _dom.getDestinationElement)(this);\n    }\n    get alignClass() {\n      if (this.align === 'right') {\n        const alignClass = 'end';\n        return `dropdown-menu-${alignClass}`;\n      }\n      return undefined;\n    }\n    get popperPlacement() {\n      let placement = 'bottom-start';\n      let {\n        direction,\n        align\n      } = this;\n      if (direction === 'up') {\n        placement = 'top-start';\n        if (align === 'right') {\n          placement = 'top-end';\n        }\n      } else if (direction === 'left') {\n        placement = 'left-start';\n      } else if (direction === 'right') {\n        placement = 'right-start';\n      } else if (align === 'right') {\n        placement = 'bottom-end';\n      }\n      return placement;\n    }\n    setFocus() {\n      // when the dropdown menu is rendered in place, focus can stay on the toggle element\n      if (this._renderInPlace) {\n        return;\n      }\n      if (this.menuElement) {\n        this.menuElement.focus();\n      }\n    }\n    get popperOptions() {\n      return {\n        placement: this.popperPlacement,\n        onFirstUpdate: () => this.setFocus(),\n        modifiers: [{\n          name: 'flip',\n          enabled: this.flip\n        }, {\n          name: 'applyStyles',\n          enabled: !this.inNav\n        }]\n      };\n    }\n\n    /**\n     * @property itemComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property linkToComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property dividerComponent\n     * @type {String}\n     * @private\n     */\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"menuElement\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setFocus\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DropdownMenu);\n});","define(\"ember-bootstrap/components/bs-dropdown/menu/divider\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div class=\"dropdown-divider\" ...attributes>\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"SlmRX0G0\",\n    \"block\": \"[[[11,0],[24,0,\\\"dropdown-divider\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-dropdown/menu/divider.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Component for a dropdown menu divider.\n  \n   See [Components.Dropdown](Components.Dropdown.html) for examples.\n  \n   @class DropdownMenuDivider\n   @namespace Components\n   @extends Component\n   @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-dropdown/menu/item\", [\"exports\", \"@ember/component/template-only\"], function (_exports, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n  /**\n   Component for a dropdown menu item.\n  \n   See [Components.Dropdown](Components.Dropdown.html) for examples.\n  \n   @class DropdownMenuItem\n   @namespace Components\n   @extends Component\n   @public\n   */\n  var _default = _exports.default = (0, _templateOnly.default)();\n});","define(\"ember-bootstrap/components/bs-dropdown/toggle\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <a\n    href=\"#\"\n    class=\"dropdown-toggle {{if @inNav \"nav-link\"}}\"\n    aria-expanded={{this.aria-expanded}}\n    role=\"button\"\n    ...attributes\n    {{on \"keydown\" this.handleKeyDown}}\n    {{on \"click\" this.handleClick}}\n    {{did-insert @registerChildElement \"toggle\"}}\n    {{will-destroy @unregisterChildElement \"toggle\"}}\n  >\n    {{yield}}\n  </a>\n  */\n  {\n    \"id\": \"+vP1OMxI\",\n    \"block\": \"[[[11,3],[24,6,\\\"#\\\"],[16,0,[29,[\\\"dropdown-toggle \\\",[52,[30,1],\\\"nav-link\\\"]]]],[16,\\\"aria-expanded\\\",[30,0,[\\\"aria-expanded\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[17,2],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleKeyDown\\\"]]],null],[4,[38,2],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[4,[38,3],[[30,3],\\\"toggle\\\"],null],[4,[38,4],[[30,4],\\\"toggle\\\"],null],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@inNav\\\",\\\"&attrs\\\",\\\"@registerChildElement\\\",\\\"@unregisterChildElement\\\",\\\"&default\\\"],false,[\\\"a\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-dropdown/toggle.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Anchor element that triggers the parent dropdown to open.\n   Use [Components.DropdownButton](Components.DropdownButton.html) if you want a button instead of an anchor tag.\n  \n   See [Components.Dropdown](Components.Dropdown.html) for examples.\n  \n   @class DropdownToggle\n   @namespace Components\n   @extends Component\n   @publicø\n   */\n  let DropdownToggle = _exports.default = (_class = class DropdownToggle extends _component2.default {\n    /**\n     * @property inNav\n     * @type {boolean}\n     * @private\n     */\n    get inNav() {\n      return this.args.inNav ?? false;\n    }\n    get 'aria-expanded'() {\n      return this.args.isOpen ? 'true' : 'false';\n    }\n\n    /**\n     * When clicking the toggle this action is called.\n     *\n     * @event onClick\n     * @param {*} value\n     * @public\n     */\n\n    handleClick(e) {\n      e.preventDefault();\n      this.args.onClick?.();\n    }\n    handleKeyDown(e) {\n      this.args.onKeyDown(e);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DropdownToggle);\n});","define(\"ember-bootstrap/components/bs-form\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/debug\", \"@ember/utils\", \"@ember/runloop\", \"ember-bootstrap/utils/decorators/arg\", \"@glimmer/tracking\", \"ember-ref-bucket\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _debug, _utils, _runloop, _arg, _tracking, _emberRefBucket, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@embroider/macros\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@glimmer/tracking\",0,\"ember-ref-bucket\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{!-- template-lint-disable no-invalid-interactive --}}\n  <form\n    novalidate={{this.hasValidator}}\n    class={{this.layoutClass}}\n    ...attributes\n    {{on \"keypress\" this.handleKeyPress}}\n    {{on \"submit\" this.handleSubmit}}\n    {{create-ref \"formElement\"}}\n  >\n    {{yield\n      (hash\n        element=(component (ensure-safe-component (bs-default @elementComponent (component \"bs-form/element\")))\n          model=this.model\n          formLayout=this.formLayout\n          horizontalLabelGridClass=this.horizontalLabelGridClass\n          showAllValidations=this.showAllValidations\n          _disabled=@disabled\n          _readonly=@readonly\n          onChange=this.elementChanged\n          _onChange=this.resetSubmissionState\n        )\n        isSubmitting=this.isSubmitting\n        isSubmitted=this.isSubmitted\n        isRejected=this.isRejected\n        model=this.model\n        resetSubmissionState=this.resetSubmissionState\n        submit=this.doSubmit\n        submitButton=(component (ensure-safe-component (bs-default @submitButtonComponent (component \"bs-button\")))\n          type=\"primary\"\n          state=this.submitButtonState\n          _disabled=this.isSubmitting\n          attrTypePrivateWorkaround=\"submit\"\n        )\n      )\n    }}\n  </form>\n  \n  */\n  {\n    \"id\": \"QFf3O6KO\",\n    \"block\": \"[[[11,\\\"form\\\"],[16,\\\"novalidate\\\",[30,0,[\\\"hasValidator\\\"]]],[16,0,[30,0,[\\\"layoutClass\\\"]]],[17,1],[4,[38,1],[\\\"keypress\\\",[30,0,[\\\"handleKeyPress\\\"]]],null],[4,[38,1],[\\\"submit\\\",[30,0,[\\\"handleSubmit\\\"]]],null],[4,[38,2],[\\\"formElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n  \\\"],[18,6,[[28,[37,4],null,[[\\\"element\\\",\\\"isSubmitting\\\",\\\"isSubmitted\\\",\\\"isRejected\\\",\\\"model\\\",\\\"resetSubmissionState\\\",\\\"submit\\\",\\\"submitButton\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,2],[50,\\\"bs-form/element\\\",0,null,null]],null]],null],0,null,[[\\\"model\\\",\\\"formLayout\\\",\\\"horizontalLabelGridClass\\\",\\\"showAllValidations\\\",\\\"_disabled\\\",\\\"_readonly\\\",\\\"onChange\\\",\\\"_onChange\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"formLayout\\\"]],[30,0,[\\\"horizontalLabelGridClass\\\"]],[30,0,[\\\"showAllValidations\\\"]],[30,3],[30,4],[30,0,[\\\"elementChanged\\\"]],[30,0,[\\\"resetSubmissionState\\\"]]]]],[30,0,[\\\"isSubmitting\\\"]],[30,0,[\\\"isSubmitted\\\"]],[30,0,[\\\"isRejected\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"resetSubmissionState\\\"]],[30,0,[\\\"doSubmit\\\"]],[50,[28,[37,6],[[28,[37,7],[[30,5],[50,\\\"bs-button\\\",0,null,null]],null]],null],0,null,[[\\\"type\\\",\\\"state\\\",\\\"_disabled\\\",\\\"attrTypePrivateWorkaround\\\"],[\\\"primary\\\",[30,0,[\\\"submitButtonState\\\"]],[30,0,[\\\"isSubmitting\\\"]],\\\"submit\\\"]]]]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@elementComponent\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@submitButtonComponent\\\",\\\"&default\\\"],false,[\\\"form\\\",\\\"on\\\",\\\"create-ref\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Render a form with the appropriate Bootstrap layout class (see `formLayout`).\n    Allows setting a `model` that nested `Components.FormElement`s can access, and that can provide form validation (see below)\n  \n    You can use whatever markup you like within the form.\n    However, to benefit from features such as automatic form markup, validations and validation markup, use `Components.FormElement`\n    as nested components. See below for an example.\n  \n    ### Submitting the form\n  \n    The form yields a `submitButton` component, which is a preconfigured `<BsButton>` with `@type=\"primary\"` and `type=\"submit\"`.\n    The button is disabled while a form submission is pending. Additionally, the button state is bound to the form submission state.\n  \n    ```hbs\n    <BsForm as |form|>\n      <form.submitButton>Submit</form.submitButton>\n    </BsForm>\n    ```\n  \n    When the form is submitted (e.g. by clicking the submit button), the event will be intercepted and the `onSubmit` action\n    will be sent to the controller or parent component.\n    In case the form supports validation (see \"Form validation\" below), the `onBefore` action is called (which allows you to\n    do e.g. model data normalization), then the available validation rules are evaluated, and if those fail, the `onInvalid`\n    action is sent instead of `onSubmit`.\n  \n    ### Use with Components.FormElement\n  \n    When using `Components.FormElement`s with their `property` set to property names of the form's validation enabled\n    `model`, you gain some additional powerful features:\n    * the appropriate Bootstrap markup for the given `formLayout` and the form element's `controlType` is automatically generated\n    * markup for validation states and error messages is generated based on the model's validation (if available), when submitting the form\n    with an invalid validation, or when focusing out of invalid inputs\n  \n    ```handlebars\n    <BsForm @formLayout=\"horizontal\" @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @controlType=\"email\" @label=\"Email\" @placeholder=\"Email\" @property=\"email\" />\n      <form.element @controlType=\"password\" @label=\"Password\" @placeholder=\"Password\" @property=\"password\" />\n      <form.element @controlType=\"checkbox\" @label=\"Remember me\" @property=\"rememberMe\" />\n      <form.submitButton>Submit</form.submitButton>\n    </BsForm>\n    ```\n  \n    See the [Components.FormElement](Components.FormElement.html) API docs for further information.\n  \n    ### Form validation\n  \n    All version of ember-bootstrap beginning from 0.7.0 do not come with built-in support for validation engines anymore.\n    Instead, support is added usually by additional Ember addons, for example:\n  \n    * [ember-bootstrap-validations](https://github.com/kaliber5/ember-bootstrap-validations): adds support for [ember-validations](https://github.com/DockYard/ember-validations)\n    * [ember-bootstrap-cp-validations](https://github.com/offirgolan/ember-bootstrap-cp-validations): adds support for [ember-cp-validations](https://github.com/offirgolan/ember-cp-validations)\n    * [ember-bootstrap-changeset-validations](https://github.com/kaliber5/ember-bootstrap-changeset-validations): adds support for [ember-changeset](https://github.com/poteto/ember-changeset)\n  \n    To add your own validation support, you have to:\n  \n    * extend this component, setting `hasValidator` to true if validations are available (by means of a computed property for example), and implementing the `validate` method\n    * extend the [Components.FormElement](Components.FormElement.html) component and implement the `setupValidations` hook or simply override the `errors` property to add the validation error messages to be displayed\n  \n    When validation fails, the appropriate Bootstrap markup is added automatically, i.e. the error classes are applied and\n    the validation messages are shown for each form element. In case the validation library supports it, also warning messages\n    are shown. See the [Components.FormElement](Components.FormElement.html) documentation for further details.\n  \n    See the above-mentioned addons for examples.\n  \n    The `novalidate` HTML attribute is set by default for forms that have validation.\n  \n    ### Submission state\n  \n    A `isSubmitting` property is yielded, which is `true` after submit has been triggered and before the Promise returned\n    by `onSubmit` is fulfilled. It could be used to show a loading spinner instead of the form while it's submitting for example:\n  \n    ```hbs\n    <BsForm @onSubmit={{this.save}} as |form|>\n      {{#if form.isSubmitting}}\n        <span class=\"spinner-border spinner-border-sm\" role=\"status\" aria-hidden=\"true\"></span>\n        Logging in...\n      {{else}}\n        <form.element @property=\"email\" @label=\"email\" />\n        <form.element @property=\"password\" @label=\"password\" @controlType=\"password\" />\n        <form.submitButton>Login</form.submitButton>\n      {{/if}}\n    </BsForm>\n    ```\n  \n    Additionaly `isSubmitted` and `isRejected` properties are yielded. `isSubmitted` is `true` if last submission was successful.\n    `isRejected` is `true` if last submission was rejected due to validation errors or by an action bound to `onSubmit` event, returning a rejected promise.\n    It could be used for visual feedback about last submission:\n  \n    ```hbs\n    <BsForm @onSubmit={{this.save}} as |form|>\n      <form.submitButton @type={{if form.isRejected \"danger\" \"primary\"}}>\n        Save\n      </form.submitButton>\n    </BsForm>\n    ```\n  \n    The submission state is reset as soon as any value of a form element changes. Additionally, it can be reset programmatically by\n    calling the yielded `resetSubmissionState` function.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Form\n    @namespace Components\n    @extends Ember.Component\n    @public\n  */\n  let Form = _exports.default = (_dec = (0, _emberRefBucket.ref)('formElement'), (_class = class Form extends _component2.default {\n    /**\n     * Bootstrap form class name (computed)\n     *\n     * @property layoutClass\n     * @type string\n     * @readonly\n     * @protected\n     *\n     */\n    get layoutClass() {\n      let layout = this.formLayout;\n      {\n        return null;\n      }\n    }\n\n    /**\n     * Set a model that this form should represent. This serves several purposes:\n     *\n     * * child `Components.FormElement`s can access and bind to this model by their `property`\n     * * when the model supports validation by using the [ember-validations](https://github.com/dockyard/ember-validations) mixin,\n     * child `Components.FormElement`s will look at the validation information of their `property` and render their form group accordingly.\n     * Moreover, the form's `submit` event handler will validate the model and deny submitting if the model is not validated successfully.\n     *\n     * `<BsForm>` yields the form's model as `form` property:\n     *\n     * ```hbs\n     * <BsForm @model={{this.formModel}} as |form|>\n     *   {{! this.formModel === form.model }}\n     * </BsForm>\n     * ```\n     *\n     * @property model\n     * @type object\n     * @public\n     */\n    get model() {\n      return this.args.model ?? {};\n    }\n\n    /**\n     * Set the layout of the form to either \"vertical\", \"horizontal\" or \"inline\". See http://getbootstrap.com/css/#forms-inline and http://getbootstrap.com/css/#forms-horizontal\n     *\n     * @property formLayout\n     * @type string\n     * @public\n     */\n\n    /**\n     * @property elementComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property submitButtonComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * `isSubmitting` is `true` after `submit` event has been triggered and until Promise returned by `onSubmit` is\n     * fulfilled. If `validate` returns a Promise that one is also taken into consideration.\n     *\n     * If multiple concurrent submit events are fired, it stays `true` until all submit events have been fulfilled.\n     *\n     * @property isSubmitting\n     * @type {Boolean}\n     * @readonly\n     * @private\n     */\n    get isSubmitting() {\n      return this.pendingSubmissions > 0;\n    }\n\n    /**\n     * `isSubmitted` is `true` if last submission was successful.\n     * A change to any form element resets its value to `false`.\n     *\n     * If not using `Components.FormElement`, `resetSubmissionState` action must be triggered on each change to reset\n     * form's submission state.\n     *\n     * @property isSubmitted\n     * @type {Boolean}\n     * @private\n     */\n\n    /**\n     * State of the form expressed as state values expected by `<BsButton>`.\n     *\n     * @property submitButtonState\n     * @type {String}\n     * @private\n     */\n    get submitButtonState() {\n      if (this.isSubmitting) {\n        return 'pending';\n      }\n      if (this.isSubmitted) {\n        return 'fulfilled';\n      }\n      if (this.isRejected) {\n        return 'rejected';\n      }\n      return 'default';\n    }\n\n    /**\n     * Count of pending submissions.\n     *\n     * @property pendingSubmissions\n     * @type {Integer}\n     * @private\n     */\n\n    /**\n     * If true, after successful validation and upon submitting the form, all current element validations will be hidden.\n     * If the form remains visible, the user would have to focus out of elements of submit the form again for the\n     * validations to show up again, as if a fresh new form component had been rendered.\n     *\n     * @property hideValidationsOnSubmit\n     * @type {Boolean}\n     * @default false\n     * @public\n     */\n\n    /**\n     * If set to true the `readonly` property of all yielded form elements will be set, making their form controls read-only.\n     *\n     * @property readonly\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * If set to true the `disabled` property of all yielded form elements will be set, making their form controls disabled.\n     *\n     * @property disabled\n     * @type boolean\n     * @default false\n     * @public\n     */\n\n    /**\n     * Validate hook which will return a promise that will either resolve if the model is valid\n     * or reject if it's not. This should be overridden to add validation support.\n     *\n     * @method validate\n     * @param {Object} model\n     * @param {HTMLFormElement} form\n     * @return {Promise}\n     * @public\n     */\n    validate(model, form) {} // eslint-disable-line no-unused-vars\n\n    /**\n     * @property _showAllValidations\n     * @type boolean\n     * @default undefined\n     * @private\n     */\n\n    get showAllValidations() {\n      return this.showValidations ?? this._showAllValidations;\n    }\n    set showAllValidations(showAllValidations) {\n      this._showAllValidations = showAllValidations;\n    }\n\n    /**\n     * Controls visibility of validation errors. If `null` (default) validation errors are shown after user\n     * interactions like form submission, focus out event of input fields etc. If `true` all validation errors are shown\n     * immediately independently of user interactions. If `false` validation errors are not shown in any case (but\n     * prevent form submission if form is invalid).\n     *\n     * @property showValidations\n     * @type Boolean|null\n     * @default null\n     * @public\n     */\n\n    /**\n     * Action is called before the form is validated (if possible) and submitted.\n     *\n     * @event onBefore\n     * @param { Object } model  The form's `model`\n     * @public\n     */\n\n    /**\n     * Action is called when submit has been triggered and the model has passed all validations (if present).\n     *\n     * @event onSubmit\n     * @param { Object } model  The form's `model`\n     * @param { Object } result The returned result from the validate method, if validation is available\n     * @public\n     */\n\n    /**\n     * Action is called when validation of the model has failed.\n     *\n     * @event onInvalid\n     * @param { Object } model  The form's `model`\n     * @param { Object } error\n     * @public\n     */\n\n    /**\n     * Submit handler that will send the default action (\"action\") to the controller when submitting the form.\n     *\n     * If there is a supplied `model` that supports validation (`hasValidator`) the model will be validated before, and\n     * only if validation is successful the default action will be sent. Otherwise, an \"invalid\" action will be sent, and\n     * all the `showValidation` property of all child `Components.FormElement`s will be set to true, so error state and\n     * messages will be shown automatically.\n     *\n     * @method submit\n     * @private\n     */\n    submitHandler(e, throwValidationErrors = true) {\n      if (e) {\n        e.preventDefault();\n      }\n      if (this.preventConcurrency && this.isSubmitting) {\n        return Promise.resolve();\n      }\n      let model = this.model;\n      this.pendingSubmissions++;\n      this.args.onBefore?.(model);\n      return Promise.resolve().then(() => {\n        return this.hasValidator ? this.validate(model, this._element) : null;\n      }).then(record => {\n        if (this.args.hideValidationsOnSubmit === true) {\n          this.showAllValidations = false;\n        }\n        return Promise.resolve().then(() => {\n          return this.args.onSubmit?.(model, record);\n        }).then(() => {\n          if (this.isDestroyed) {\n            return;\n          }\n          this.isSubmitted = true;\n        }).catch(error => {\n          if (this.isDestroyed) {\n            return;\n          }\n          this.isRejected = true;\n          throw error;\n        }).finally(() => {\n          if (this.isDestroyed) {\n            return;\n          }\n          this.pendingSubmissions--;\n\n          // reset forced hiding of validations\n          if (this.showAllValidations === false) {\n            (0, _runloop.next)(() => this.showAllValidations = undefined);\n          }\n        });\n      }, error => {\n        return Promise.resolve().then(() => {\n          return this.args.onInvalid?.(model, error);\n        }).finally(() => {\n          if (this.isDestroyed) {\n            return;\n          }\n          this.showAllValidations = true;\n          this.isRejected = true;\n          this.pendingSubmissions = this.pendingSubmissions - 1;\n          if (throwValidationErrors) {\n            throw error;\n          }\n        });\n      });\n    }\n    handleSubmit(event) {\n      this.submitHandler(event, false);\n    }\n    handleKeyPress(event) {\n      let code = event.keyCode || event.which;\n      if (code === 13 && this.args.submitOnEnter) {\n        this.submitHandler();\n      }\n    }\n    constructor() {\n      super(...arguments);\n      /**\n       * @property _element\n       * @type null | HTMLFormElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      _initializerDefineProperty(this, \"formLayout\", _descriptor2, this);\n      /**\n       * Check if validating the model is supported. This needs to be implemented by another addon.\n       *\n       * @property hasValidator\n       * @type boolean\n       * @readonly\n       * @protected\n       */\n      /**\n       * The Bootstrap grid classes for form labels. This is used by the `Components.FormElement` class as a default for the\n       * whole form.\n       *\n       * @property horizontalLabelGridClass\n       * @type string\n       * @default 'col-md-4'\n       * @public\n       */\n      _initializerDefineProperty(this, \"horizontalLabelGridClass\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isSubmitted\", _descriptor4, this);\n      /**\n       * `isRejected` is `true` if last submission was rejected.\n       * A submission is considered as rejected if form is invalid as well as if `onSubmit` rejects.\n       * A change to any form element resets its value to `false`.\n       *\n       * If not using `Components.FormElement`, `resetSubmissionState` action must be triggered on each change to reset\n       * form's submission state.\n       *\n       * @property isRejected\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"isRejected\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pendingSubmissions\", _descriptor6, this);\n      /**\n       * If set to true pressing enter will submit the form, even if no submit button is present\n       *\n       * @property submitOnEnter\n       * @type boolean\n       * @default false\n       * @public\n       */\n      /**\n       * Controls if `onSubmit` action is fired concurrently. If `true` submitting form multiple\n       * times will not trigger `onSubmit` action if a Promise returned by previous submission is\n       * not settled yet.\n       *\n       * Dropping a submission also prevents rerunning validation and `onBefore` hook.\n       *\n       * @property preventConcurrency\n       * @type Boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"preventConcurrency\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_showAllValidations\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showValidations\", _descriptor9, this);\n      let formLayout = this.formLayout;\n      (false && !(['vertical', 'horizontal', 'inline'].indexOf(formLayout) >= 0) && (0, _debug.assert)(`Invalid formLayout property given: ${formLayout}`, ['vertical', 'horizontal', 'inline'].indexOf(formLayout) >= 0));\n    }\n    elementChanged(value, model, property) {\n      (false && !((0, _utils.isPresent)(model) && (0, _utils.isPresent)(property)) && (0, _debug.assert)(\"You cannot use the form element's default onChange action for form elements if not using a model or setting the value directly on a form element. You must add your own onChange action to the form element in this case!\", (0, _utils.isPresent)(model) && (0, _utils.isPresent)(property)));\n      if (typeof model.set === 'function') {\n        model.set(property, value);\n      } else {\n        (0, _object.set)(model, property, value);\n      }\n    }\n    resetSubmissionState() {\n      this.isSubmitted = false;\n      this.isRejected = false;\n    }\n    doSubmit() {\n      return this.submitHandler();\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.cached], Object.getOwnPropertyDescriptor(_class.prototype, \"model\"), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"formLayout\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'vertical';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"horizontalLabelGridClass\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'col-md-4';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isSubmitted\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isRejected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pendingSubmissions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"preventConcurrency\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_showAllValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showValidations\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleSubmit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyPress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyPress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"elementChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"elementChanged\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetSubmissionState\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSubmissionState\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"doSubmit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"doSubmit\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Form);\n});","define(\"ember-bootstrap/components/bs-form/element\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/debug\", \"@ember/utils\", \"@ember/array\", \"@ember/application\", \"@ember/object/internals\", \"ember-ref-bucket\", \"ember-bootstrap/components/bs-form/element/control/input\", \"ember-bootstrap/components/bs-form/element/control/checkbox\", \"ember-bootstrap/components/bs-form/element/control/textarea\", \"ember-bootstrap/components/bs-form/element/control/radio\", \"ember-bootstrap/components/bs-form/element/control/switch\", \"ember-bootstrap/utils/decorators/arg\", \"tracked-toolbox\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _debug, _utils, _array, _application, _internals, _emberRefBucket, _input, _checkbox, _textarea, _radio, _switch, _arg, _trackedToolbox, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/utils\",0,\"@ember/array\",0,\"@ember/application\",0,\"@ember/object/internals\",0,\"ember-ref-bucket\",0,\"ember-bootstrap/components/bs-form/element/control/input\",0,\"ember-bootstrap/components/bs-form/element/control/checkbox\",0,\"ember-bootstrap/components/bs-form/element/control/textarea\",0,\"ember-bootstrap/components/bs-form/element/control/radio\",0,\"ember-bootstrap/components/bs-form/element/control/switch\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"tracked-toolbox\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{!-- template-lint-disable no-invalid-interactive --}}\n  <div\n    class=\"{{if (macroCondition (macroGetOwnConfig \"isNotBS5\")) \"form-group\"}} {{if (macroCondition (macroGetOwnConfig \"isBS5\")) (if (bs-eq @formLayout \"vertical\") \"mb-3\")}} {{if (bs-eq @formLayout \"horizontal\") (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"row mb-3\" \"row\")}}\"\n    ...attributes\n    {{create-ref \"mainNode\"}}\n    {{on \"focusout\" this.showValidationOnHandler}}\n    {{on \"change\" this.showValidationOnHandler}}\n    {{on \"input\" this.showValidationOnHandler}}\n    {{did-update this.handleShowAllValidationsChange this.showAllValidations}}\n  >\n    {{#component\n      (ensure-safe-component\n        (bs-default\n          @layoutComponent\n          (if\n            (bs-contains (array \"checkbox\" \"switch\") this.controlType)\n            (if\n              (bs-eq @formLayout \"inline\")\n              (component \"bs-form/element/layout/inline/checkbox\" controlType=this.controlType)\n              (if\n                (bs-eq @formLayout \"horizontal\")\n                (component \"bs-form/element/layout/horizontal/checkbox\" controlType=this.controlType)\n                (component \"bs-form/element/layout/vertical/checkbox\" controlType=this.controlType)\n              )\n            )\n            (if\n              (bs-eq @formLayout \"inline\")\n              (component \"bs-form/element/layout/inline\")\n              (if\n                (bs-eq @formLayout \"horizontal\")\n                (component \"bs-form/element/layout/horizontal\")\n                (component \"bs-form/element/layout/vertical\")\n              )\n            )\n          )\n        )\n      )\n      hasLabel=(if @label true false)\n      formElementId=this.formElementId\n      horizontalLabelGridClass=@horizontalLabelGridClass\n      errorsComponent=(component (ensure-safe-component (bs-default @errorsComponent (component \"bs-form/element/errors\")))\n        messages=this.validationMessages\n        show=this.showValidationMessages\n        showMultipleErrors=this.showMultipleErrors\n      )\n      feedbackIconComponent=(component (ensure-safe-component (bs-default @feedbackIconComponent (component \"bs-form/element/feedback-icon\")))\n        iconName=@iconName\n        show=this.hasFeedback\n      )\n      labelComponent=(component\n        (ensure-safe-component\n          (bs-default\n            @labelComponent\n            (if\n              (bs-eq this.controlType \"radio\")\n              (component \"bs-form/element/legend\")\n              (component \"bs-form/element/label\")\n            )\n          )\n        )\n        label=@label\n        invisibleLabel=@invisibleLabel\n        formElementId=this.formElementId\n        controlType=this.controlType\n        formLayout=@formLayout\n        size=@size\n      )\n      helpTextComponent=(if @helpText\n        (component (ensure-safe-component (bs-default @helpTextComponent (component \"bs-form/element/help-text\")))\n          text=@helpText\n          id=this.ariaDescribedBy\n        )\n      )\n    }}\n      {{!\n        Ember does not allow to access a variable with `@` in template if its name start with an underscore.\n        `@_disabled` and `@_readonly` are affected by this. As a work-a-round we access them on `this.args`.\n      }}\n      {{!-- template-lint-disable no-args-paths --}}\n      {{#let\n        (component\n          (ensure-safe-component\n            (bs-default\n              @controlComponent\n              this.controlComponent\n            )\n          )\n          value=this.value\n          id=this.formElementId\n          type=this.controlType\n          label=@label\n          disabled=this.args._disabled\n          readonly=this.args._readonly\n          required=@required\n          options=@options\n          optionLabelPath=@optionLabelPath\n          ariaDescribedBy=(if @helpText this.ariaDescribedBy)\n          onChange=this.doChange\n          validationType=this.validation\n          size=@size\n      ) as |Control|}}\n      {{!-- template-lint-enable no-args-paths --}}\n        {{#if (has-block)}}\n          {{yield\n            (hash\n              value=this.value\n              setValue=this.doChange\n              id=this.formElementId\n              validation=this.validation\n              control=Control\n            )\n          }}\n        {{else}}\n          <Control />\n        {{/if}}\n      {{/let}}\n    {{/component}}\n  </div>\n  \n  */\n  {\n    \"id\": \"IQhH0eUO\",\n    \"block\": \"[[[11,0],[16,0,[29,[[27],\\\" \\\",[52,[28,[37,2],[[30,1],\\\"vertical\\\"],null],\\\"mb-3\\\"],\\\" \\\",[52,[28,[37,2],[[30,1],\\\"horizontal\\\"],null],\\\"row mb-3\\\"]]]],[17,2],[4,[38,3],[\\\"mainNode\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[4,[38,4],[\\\"focusout\\\",[30,0,[\\\"showValidationOnHandler\\\"]]],null],[4,[38,4],[\\\"change\\\",[30,0,[\\\"showValidationOnHandler\\\"]]],null],[4,[38,4],[\\\"input\\\",[30,0,[\\\"showValidationOnHandler\\\"]]],null],[4,[38,5],[[30,0,[\\\"handleShowAllValidationsChange\\\"]],[30,0,[\\\"showAllValidations\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[46,[28,[37,7],[[28,[37,8],[[30,3],[52,[28,[37,9],[[28,[37,10],[\\\"checkbox\\\",\\\"switch\\\"],null],[30,0,[\\\"controlType\\\"]]],null],[52,[28,[37,2],[[30,1],\\\"inline\\\"],null],[50,\\\"bs-form/element/layout/inline/checkbox\\\",0,null,[[\\\"controlType\\\"],[[30,0,[\\\"controlType\\\"]]]]],[52,[28,[37,2],[[30,1],\\\"horizontal\\\"],null],[50,\\\"bs-form/element/layout/horizontal/checkbox\\\",0,null,[[\\\"controlType\\\"],[[30,0,[\\\"controlType\\\"]]]]],[50,\\\"bs-form/element/layout/vertical/checkbox\\\",0,null,[[\\\"controlType\\\"],[[30,0,[\\\"controlType\\\"]]]]]]],[52,[28,[37,2],[[30,1],\\\"inline\\\"],null],[50,\\\"bs-form/element/layout/inline\\\",0,null,null],[52,[28,[37,2],[[30,1],\\\"horizontal\\\"],null],[50,\\\"bs-form/element/layout/horizontal\\\",0,null,null],[50,\\\"bs-form/element/layout/vertical\\\",0,null,null]]]]],null]],null],null,[[\\\"hasLabel\\\",\\\"formElementId\\\",\\\"horizontalLabelGridClass\\\",\\\"errorsComponent\\\",\\\"feedbackIconComponent\\\",\\\"labelComponent\\\",\\\"helpTextComponent\\\"],[[52,[30,4],true,false],[30,0,[\\\"formElementId\\\"]],[30,5],[50,[28,[37,7],[[28,[37,8],[[30,6],[50,\\\"bs-form/element/errors\\\",0,null,null]],null]],null],0,null,[[\\\"messages\\\",\\\"show\\\",\\\"showMultipleErrors\\\"],[[30,0,[\\\"validationMessages\\\"]],[30,0,[\\\"showValidationMessages\\\"]],[30,0,[\\\"showMultipleErrors\\\"]]]]],[50,[28,[37,7],[[28,[37,8],[[30,7],[50,\\\"bs-form/element/feedback-icon\\\",0,null,null]],null]],null],0,null,[[\\\"iconName\\\",\\\"show\\\"],[[30,8],[30,0,[\\\"hasFeedback\\\"]]]]],[50,[28,[37,7],[[28,[37,8],[[30,9],[52,[28,[37,2],[[30,0,[\\\"controlType\\\"]],\\\"radio\\\"],null],[50,\\\"bs-form/element/legend\\\",0,null,null],[50,\\\"bs-form/element/label\\\",0,null,null]]],null]],null],0,null,[[\\\"label\\\",\\\"invisibleLabel\\\",\\\"formElementId\\\",\\\"controlType\\\",\\\"formLayout\\\",\\\"size\\\"],[[30,4],[30,10],[30,0,[\\\"formElementId\\\"]],[30,0,[\\\"controlType\\\"]],[30,1],[30,11]]]],[52,[30,12],[50,[28,[37,7],[[28,[37,8],[[30,13],[50,\\\"bs-form/element/help-text\\\",0,null,null]],null]],null],0,null,[[\\\"text\\\",\\\"id\\\"],[[30,12],[30,0,[\\\"ariaDescribedBy\\\"]]]]]]]],[[\\\"default\\\"],[[[[44,[[50,[28,[37,7],[[28,[37,8],[[30,14],[30,0,[\\\"controlComponent\\\"]]],null]],null],0,null,[[\\\"value\\\",\\\"id\\\",\\\"type\\\",\\\"label\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"required\\\",\\\"options\\\",\\\"optionLabelPath\\\",\\\"ariaDescribedBy\\\",\\\"onChange\\\",\\\"validationType\\\",\\\"size\\\"],[[30,0,[\\\"value\\\"]],[30,0,[\\\"formElementId\\\"]],[30,0,[\\\"controlType\\\"]],[30,4],[30,0,[\\\"args\\\",\\\"_disabled\\\"]],[30,0,[\\\"args\\\",\\\"_readonly\\\"]],[30,15],[30,16],[30,17],[52,[30,12],[30,0,[\\\"ariaDescribedBy\\\"]]],[30,0,[\\\"doChange\\\"]],[30,0,[\\\"validation\\\"]],[30,11]]]]],[[[41,[48,[30,19]],[[[1,\\\"        \\\"],[18,19,[[28,[37,14],null,[[\\\"value\\\",\\\"setValue\\\",\\\"id\\\",\\\"validation\\\",\\\"control\\\"],[[30,0,[\\\"value\\\"]],[30,0,[\\\"doChange\\\"]],[30,0,[\\\"formElementId\\\"]],[30,0,[\\\"validation\\\"]],[30,18]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,18],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[18]]]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[\\\"@formLayout\\\",\\\"&attrs\\\",\\\"@layoutComponent\\\",\\\"@label\\\",\\\"@horizontalLabelGridClass\\\",\\\"@errorsComponent\\\",\\\"@feedbackIconComponent\\\",\\\"@iconName\\\",\\\"@labelComponent\\\",\\\"@invisibleLabel\\\",\\\"@size\\\",\\\"@helpText\\\",\\\"@helpTextComponent\\\",\\\"@controlComponent\\\",\\\"@required\\\",\\\"@options\\\",\\\"@optionLabelPath\\\",\\\"Control\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"bs-eq\\\",\\\"create-ref\\\",\\\"on\\\",\\\"did-update\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"bs-contains\\\",\\\"array\\\",\\\"let\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Subclass of `Components.FormGroup` that adds automatic form layout markup and form validation features.\n  \n    ### Form layout\n  \n    The appropriate Bootstrap markup for the given `formLayout` and `controlType` is automatically generated to easily\n    create forms without coding the default Bootstrap form markup by hand:\n  \n    ```handlebars\n    <BsForm @formLayout=\"horizontal\" @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @controlType=\"email\" @label=\"Email\" @value={{this.email}} />\n      <form.element @controlType=\"password\" @label=\"Password\" @value={{this.password}} />\n      <form.element @controlType=\"checkbox\" @label=\"Remember me\" @value={{this.rememberMe}} />\n      <BsButton @defaultText=\"Submit\" @type=\"primary\" type=\"submit\" />\n    </BsForm>\n    ```\n  \n    ### Control types\n  \n    The following control types are supported out of the box:\n  \n    * Inputs (simple `text`, or any other HTML5 supported input types like `password`, `email` etc.)\n    * Checkbox (single)\n    * Radio Button (group)\n    * Textarea\n    * Switch (BS4 Only)\n  \n    #### Radio Buttons\n  \n    For a group of mutually exclusive radio buttons to work, you must supply the `options` property with an array of\n    options, each of which will be rendered with an appropriate radio button and its label. It can be either a simple array\n    of strings or objects. In the latter case, you would have to set `optionLabelPath` to the property, that contains the\n    label on these objects.\n  \n    ```hbs\n    <BsForm @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @controlType=\"radio\" @label=\"Gender\" @options={{this.genderOptions}} @optionLabelPath=\"title\" @property=\"gender\" />\n    </BsForm>\n    ```\n  \n    The default layout for radios is stacked, but Bootstrap's inline layout is also supported using the `inline` property\n    of the yielded control component:\n  \n    ```hbs\n    <BsForm @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @controlType=\"radio\" @label=\"Gender\" @options={{this.genderOptions}} @property=\"gender\" as |el|>\n        <el.control @inline={{true}} />\n      </form.element>\n    </BsForm>\n    ```\n  \n    #### Custom controls\n  \n    Apart from the standard built-in browser controls (see the `controlType` property), you can use any custom control simply\n    by invoking the component with a block template. Use whatever control you might want, for example a `<PikadayInput>`\n    component (from the [ember-pikaday addon](https://github.com/adopted-ember-addons/ember-pikaday)):\n  \n    ```hbs\n    <BsForm @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @label=\"Select-2\" @property=\"gender\" as |el|>\n        <PikadayInput @value={{el.value}} @onSelection={{el.setValue}} id={{el.id}} />\n      </form.element>\n    </BsForm>\n    ```\n  \n    The component yields a hash with the following properties:\n    * `control`: the component that would be used for rendering the form control based on the given `controlType`\n    * `id`: id to be used for the form control, so it matches the labels `for` attribute\n    * `value`: the value of the form element\n    * `setValue`: function to change the value of the form element\n    * `validation`: the validation state of the element, `null` if no validation is to be shown, otherwise 'success', 'error' or 'warning'\n  \n    If you just want to customize the existing control component, you can use the aforementioned yielded `control` component\n    to customize that existing component:\n  \n    ```hbs\n    <BsForm @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @label=\"Email\" @property=\"email\" as |el|>\n        <el.control class=\"input-lg\" placeholder=\"Email\" />\n      </form.element>\n    </BsForm>\n    ```\n  \n    If you are using the custom control quite often, you should consider writing an integration plugin like\n    [`ember-bootstrap-power-select`](https://github.com/kaliber5/ember-bootstrap-power-select).\n    To do so, you need to provide a component `{{bs-form/element/control/my-custom-control}}` which extends\n    [`Components.FormElementControl`](Components.FormElementControl.html).\n  \n    ### Form validation\n  \n    In the following example the control elements of the three form elements value will be bound to the properties\n    (given by `property`) of the form's `model`, which in this case is its controller (see `model=this`):\n  \n    ```handlebars\n    <BsForm @formLayout=\"horizontal\" @model={{this}} @onSubmit={{this.submit}} as |form|>\n      <form.element @controlType=\"email\" @label=\"Email\" @property=\"email\" />\n      <form.element @controlType=\"password\" @label=\"Password\" @property=\"password\" />\n      <form.element @controlType=\"checkbox\" @label=\"Remember me\" @property=\"rememberMe\" />\n      <form.submitButton>Submit</form.submitButton>\n    </BsForm>\n    ```\n  \n    By using this indirection in comparison to directly binding the `value` property, you get the benefit of automatic\n    form validation, given that your `model` has a supported means of validating itself.\n    See [Components.Form](Components.Form.html) for details on how to enable form validation.\n  \n    In the example above the `model` was our controller itself, so the control elements were bound to the appropriate\n    properties of our controller. A controller implementing validations on those properties could look like this:\n  \n    ```js\n    import Ember from 'ember';\n    import EmberValidations from 'ember-validations';\n  \n    export default Ember.Controller.extend(EmberValidations,{\n      email: null,\n      password: null,\n      rememberMe: false,\n      validations: {\n        email: {\n          presence: true,\n          format: {\n            with: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/\n          }\n        },\n        password: {\n          presence: true,\n          length: { minimum: 6, maximum: 10}\n        },\n        comments: {\n          length: { minimum: 5, maximum: 20}\n        }\n      }\n    });\n    ```\n  \n    If the `showValidation` property is `true` (which is automatically the case if a `focusOut` event is captured from the\n    control element or the containing `Components.Form` was submitted with its `model` failing validation) and there are\n    validation errors for the `model`'s `property`, the appropriate Bootstrap validation markup (see\n    http://getbootstrap.com/css/#forms-control-validation) is applied:\n  \n    * `validation` is set to 'error', which will set the `has-error` CSS class\n    * the `errorIcon` feedback icon is displayed if `controlType` is a text field\n    * the validation messages are displayed as Bootstrap `help-block`s in BS3 and `form-control-feedback` in BS4\n  \n    The same applies for warning messages, if the used validation library supports this. (Currently only\n    [ember-cp-validations](https://github.com/offirgolan/ember-cp-validations))\n  \n    As soon as the validation is successful again...\n  \n    * `validation` is set to 'success', which will set the `has-success` CSS class\n    * the `successIcon` feedback icon is displayed if `controlType` is a text field\n    * the validation messages are removed\n  \n    In case you want to display some error or warning message that is independent of the model's validation, for\n    example to display a failure message on a login form after a failed authentication attempt (so not coming from\n    the validation library), you can use the `customError` or `customWarning` properties to do so.\n  \n    ### HTML attributes\n  \n    To set HTML attributes on the control element provided by this component when using the modern angle bracket invocation,\n    you can pass them to the yielded `control` component:\n  \n    ```hbs\n    <BsForm @formLayout=\"horizontal\" @model={{this}} @onSubmit={{this.submit}} as |form|>\n    <form.element @controlType=\"email\" @label=\"Email\" @property=\"email\" as |el|>\n      <el.control\n        placeholder=\"Email\"\n        tabindex={{5}}\n        multiple\n        required\n      />\n    </form.element>\n    ...\n    </BsForm>\n    ```\n  \n    @class FormElement\n    @namespace Components\n    @extends Components.FormGroup\n    @public\n  */\n  let FormElement = _exports.default = (_dec = (0, _emberRefBucket.ref)('mainNode'), (_class = class FormElement extends _component2.default {\n    /**\n     * The value of the control element is bound to this property:\n     *\n     * ```hbs\n     * <form.element @controlType=\"email\" @label=\"Email\" @value={{this.email}} />\n     * ```\n     *\n     * Note two things:\n     * * the binding is uni-directional (DDAU), so you would have to use the `onChange` action to subscribe to changes.\n     * * you lose the ability to validate this form element by directly binding to its value. It is recommended\n     * to use the `property` feature instead.\n     *\n     * @property value\n     * @public\n     */\n    get value() {\n      (false && !((0, _utils.isBlank)(this.args.property) || (0, _utils.isBlank)(this.args.value)) && (0, _debug.assert)('You can not set both property and value on a form element', (0, _utils.isBlank)(this.args.property) || (0, _utils.isBlank)(this.args.value)));\n      if (this.args.property && this.args.model) {\n        return (0, _object.get)(this.args.model, this.args.property);\n      }\n      return this.args.value;\n    }\n\n    /**\n     The property name of the form element's `model` (by default the `model` of its parent `Components.Form`) that this\n     form element should represent. The control element's value will automatically be bound to the model property's\n     value.\n      Using this property enables form validation on this element.\n      @property property\n     @type string\n     @public\n     */\n\n    /**\n     * The model used for validation. Defaults to the parent `Components.Form`'s `model`\n     *\n     * @property model\n     * @public\n     */\n\n    /**\n     * Show a help text next to the control\n     *\n     * @property helpText\n     * @type {string}\n     * @public\n     */\n\n    /**\n     * Only if there is a validator, this property makes all errors to be displayed at once\n     * inside a scrollable container.\n     *\n     * @default false\n     * @property showMultipleErrors\n     * @public\n     * @type {Boolean}\n     */\n\n    /**\n     * @property hasErrors\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get hasErrors() {\n      return Array.isArray(this.errors) && this.errors.length > 0;\n    }\n\n    /**\n     * The array of warning messages from the `model`'s validation.\n     *\n     * @property warnings\n     * @type array\n     * @protected\n     */\n    // This shouldn't be an argument. It's only an argument because tests rely on\n    // setting it as an argument. See https://github.com/kaliber5/ember-bootstrap/issues/1338\n    // for details.\n\n    /**\n     * @property hasWarnings\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get hasWarnings() {\n      return Array.isArray(this.warnings) && this.warnings.length > 0;\n    }\n\n    /**\n     * Show a custom error message that does not come from the model's validation. Will be immediately shown, regardless\n     * of any user interaction (i.e. no `focusOut` event required)\n     *\n     * @property customError\n     * @type string\n     * @public\n     */\n\n    /**\n     * @property hasCustomError\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get hasCustomError() {\n      return (0, _utils.isPresent)(this.args.customError);\n    }\n\n    /**\n     * Show a custom warning message that does not come from the model's validation. Will be immediately shown, regardless\n     * of any user interaction (i.e. no `focusOut` event required). If the model's validation has an error then the error\n     * will be shown in place of this warning.\n     *\n     * @property customWarning\n     * @type string\n     * @public\n     */\n\n    /**\n     * @property hasCustomWarning\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get hasCustomWarning() {\n      return (0, _utils.isPresent)(this.args.customWarning);\n    }\n\n    /**\n     * Property for size styling, set to 'lg', 'sm' or 'xs' (the latter only for BS3)\n     *\n     * @property size\n     * @type String\n     * @public\n     */\n\n    /**\n     * The array of validation messages (either errors or warnings) from either custom error/warnings or , if we are showing model validation messages, the model's validation\n     *\n     * @property validationMessages\n     * @type array\n     * @private\n     */\n    get validationMessages() {\n      if (this.hasCustomError) {\n        return (0, _array.A)([this.args.customError]);\n      }\n      if (this.hasErrors && this.showModelValidation) {\n        return (0, _array.A)(this.errors);\n      }\n      if (this.hasCustomWarning) {\n        return (0, _array.A)([this.args.customWarning]);\n      }\n      if (this.hasWarnings && this.showModelValidation) {\n        return (0, _array.A)(this.warnings);\n      }\n      return null;\n    }\n\n    /**\n     * @property hasValidationMessages\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get hasValidationMessages() {\n      return Array.isArray(this.validationMessages) && this.validationMessages.length > 0;\n    }\n\n    /**\n     * Set a validating state for async validations\n     *\n     * @property isValidating\n     * @type boolean\n     * @default false\n     * @protected\n     */\n\n    /**\n     * If `true` form validation markup is rendered (requires a validatable `model`).\n     *\n     * @property showValidation\n     * @type boolean\n     * @default false\n     * @private\n     */\n    get showValidation() {\n      return this.showOwnValidation || this.showAllValidations || this.hasCustomError || this.hasCustomWarning;\n    }\n\n    /**\n     * @property showOwnValidation\n     * @type boolean\n     * @default false\n     * @private\n     */\n\n    /*\n     * Resets `showOwnValidation` if `@showAllValidations` argument is changed to `false`.\n     * Must be called whenever `@showAllValidations` argument changes.\n     */\n    handleShowAllValidationsChange() {\n      if (this.args.showAllValidations === false) {\n        this.showOwnValidation = false;\n      }\n    }\n\n    /**\n     * @property showModelValidations\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get showModelValidation() {\n      return this.showOwnValidation || this.showAllValidations;\n    }\n\n    /**\n     * @property showValidationMessages\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get showValidationMessages() {\n      return this.showValidation && this.hasValidationMessages;\n    }\n\n    /**\n     * Event or list of events which enable form validation markup rendering.\n     * Supported events: ['focusout', 'change', 'input']\n     *\n     * @property showValidationOn\n     * @type string|array\n     * @default ['focusout']\n     * @public\n     */\n\n    /**\n     * @property _showValidationOn\n     * @type array\n     * @readonly\n     * @private\n     */\n    get _showValidationOn() {\n      let showValidationOn = this.showValidationOn;\n      (false && !((0, _array.isArray)(showValidationOn) || (0, _utils.typeOf)(showValidationOn) === 'string') && (0, _debug.assert)('showValidationOn must be a String or an Array', (0, _array.isArray)(showValidationOn) || (0, _utils.typeOf)(showValidationOn) === 'string'));\n      if ((0, _array.isArray)(showValidationOn)) {\n        return showValidationOn.map(type => {\n          return type.toLowerCase();\n        });\n      }\n      if (typeof showValidationOn.toString === 'function') {\n        return [showValidationOn.toLowerCase()];\n      }\n      return [];\n    }\n\n    /**\n     * @method showValidationOnHandler\n     * @param {Event} event\n     * @private\n     */\n    showValidationOnHandler({\n      target,\n      type\n    }) {\n      // Should not do anything if\n      if (\n      // validations should not be shown for this event type or\n      this._showValidationOn.indexOf(type) === -1 ||\n      // validation should not be shown for this event target\n      (0, _array.isArray)(this.doNotShowValidationForEventTargets) && this.doNotShowValidationForEventTargets.length > 0 && this._element && [...this._element.querySelectorAll(this.doNotShowValidationForEventTargets.join(','))].some(el => el.contains(target))) {\n        return;\n      }\n      this.showOwnValidation = true;\n    }\n\n    /**\n     * Controls if validation should be shown for specified event targets.\n     *\n     * It expects an array of query selectors. If event target is a children of an event that matches\n     * these selectors, an event triggered for it will not trigger validation errors to be shown.\n     *\n     * By default, events fired on elements inside an input group are skipped.\n     *\n     * If `null` or an empty array is passed validation errors are shown for all events regardless\n     * of event target.\n     *\n     * @property doNotShowValidationForEventTargets\n     * @type ?array\n     * @public\n     */\n\n    /**\n     * The validation (\"error\" (BS3)/\"danger\" (BS4), \"warning\", or \"success\") or null if no validation is to be shown. Automatically computed from the\n     * model's validation state.\n     *\n     * @property validation\n     * @readonly\n     * @type string\n     * @private\n     */\n    get validation() {\n      const shouldShowValidationState = this.showModelValidation && this.hasValidator && !this.isValidating && !this.args._disabled;\n      if ( /* custom errors should be always shown */\n      this.hasCustomError || ( /* validation error should be shown in preference to warnings */\n      shouldShowValidationState && this.hasErrors)) {\n        return 'error';\n      }\n      if ( /* custom warning should be always shown unless there is a validation error */\n      this.hasCustomWarning || shouldShowValidationState && this.hasWarnings) {\n        return 'warning';\n      }\n      if (shouldShowValidationState) {\n        return 'success';\n      }\n      return null;\n    }\n\n    /**\n     * The form layout used for the markup generation (see http://getbootstrap.com/css/#forms):\n     *\n     * * 'horizontal'\n     * * 'vertical'\n     * * 'inline'\n     *\n     * Defaults to the parent `form`'s `formLayout` property.\n     *\n     * @property formLayout\n     * @type string\n     * @default 'vertical'\n     * @public\n     */\n\n    /**\n     * The Bootstrap grid classes for form labels within a horizontal layout form. Defaults to the value of the same\n     * property of the parent form. The corresponding grid classes for form controls are automatically computed.\n     *\n     * @property horizontalLabelGridClass\n     * @type string\n     * @public\n     */\n\n    /**\n     * ID for input field and the corresponding label's \"for\" attribute\n     *\n     * @property formElementId\n     * @type string\n     * @private\n     */\n    get formElementId() {\n      return `${this._elementId}-field`;\n    }\n\n    /**\n     * ID of the helpText, used for aria-describedby attribute of the control element\n     *\n     * @property ariaDescribedBy\n     * @type string\n     * @private\n     */\n    get ariaDescribedBy() {\n      return `${this._elementId}-help`;\n    }\n\n    /**\n     * @property layoutComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property controlComponent\n     * @private\n     */\n    get controlComponent() {\n      let owner = (0, _application.getOwner)(this);\n      let componentClass = owner.resolveRegistration(`component:bs-form/element/control/${this.controlType}`);\n      if (componentClass) {\n        return componentClass;\n      }\n      if (this.controlType === 'checkbox') {\n        return _checkbox.default;\n      } else if (this.controlType === 'textarea') {\n        return _textarea.default;\n      } else if (this.controlType === 'radio') {\n        return _radio.default;\n      } else if (this.controlType === 'switch') {\n        return _switch.default;\n      } else {\n        return _input.default;\n      }\n    }\n\n    /**\n     * @property errorsComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property feedbackIconComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property labelComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property helpTextComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * Setup validation properties. This method acts as a hook for external validation\n     * libraries to overwrite. In case of failed validations the `errors` property should contain an array of error messages.\n     *\n     * @method setupValidations\n     * @private\n     */\n\n    /**\n     * The action is called whenever the input value is changed, e.g. by typing text\n     *\n     * @event onChange\n     * @param {String} value The new value of the form control\n     * @param {Object} model The form element's model\n     * @param {String} property The value of `property`\n     * @public\n     */\n\n    /**\n     * Private duplicate of onChange event used for internal state handling between form and it's elements.\n     *\n     * @event _onChange\n     * @private\n     */\n\n    constructor() {\n      super(...arguments);\n      /**\n       * @property _element\n       * @type null | HTMLElement\n       * @private\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      /**\n       * Text to display within a `<label>` tag.\n       *\n       * You should include a label for every form input cause otherwise screen readers\n       * will have trouble with your forms. Use `invisibleLabel` property if you want\n       * to hide them.\n       *\n       * @property label\n       * @type string\n       * @public\n       */\n      /**\n       * Controls label visibility by adding 'sr-only' class.\n       *\n       * @property invisibleLabel\n       * @type boolean\n       * @default false\n       * @public\n       */\n      /**\n       * The type of the control widget.\n       * Supported types:\n       *\n       * * 'text'\n       * * 'checkbox'\n       * * 'radio'\n       * * 'switch'\n       * * 'textarea'\n       * * any other type will use an input tag with the `controlType` value as the type attribute (for e.g. HTML5 input\n       * types like 'email'), and the same layout as the 'text' type\n       *\n       * @property controlType\n       * @type string\n       * @default 'text'\n       * @public\n       */\n      _initializerDefineProperty(this, \"controlType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showMultipleErrors\", _descriptor3, this);\n      /**\n       * Array of options for control types that show a selection (e.g. radio button groups)\n       * Can be an array of simple strings or objects. For objects use `optionLabelPath` to specify the path containing the\n       * label.\n       *\n       * @property options\n       * @type {Array}\n       * @public\n       */\n      /**\n       * Property path (e.g. 'title' or 'related.name') to render the label of a selection option. See `options`.\n       *\n       * @property optionLabelPath\n       * @type {String}\n       * @public\n       */\n      /**\n       * The array of error messages from the `model`'s validation.\n       *\n       * @property errors\n       * @type array\n       * @protected\n       */\n      // This shouldn't be an argument. It's only an argument because tests rely on\n      // setting it as an argument. See https://github.com/kaliber5/ember-bootstrap/issues/1338\n      // for details.\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"warnings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isValidating\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showOwnValidation\", _descriptor7, this);\n      /**\n       * @property showAllValidations\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"showAllValidations\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showValidationOn\", _descriptor9, this);\n      _initializerDefineProperty(this, \"doNotShowValidationForEventTargets\", _descriptor10, this);\n      _defineProperty(this, \"_elementId\", (0, _internals.guidFor)(this));\n      if (!(0, _utils.isBlank)(this.args.property)) {\n        this.setupValidations?.();\n      }\n    }\n    doChange(value) {\n      let {\n        onChange,\n        model,\n        property,\n        _onChange\n      } = this.args;\n      onChange?.(value, model, property);\n      _onChange?.();\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"controlType\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'text';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showMultipleErrors\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"warnings\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isValidating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"showOwnValidation\", [_trackedToolbox.dedupeTracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"showAllValidations\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleShowAllValidationsChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleShowAllValidationsChange\"), _class.prototype), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showValidationOn\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return ['focusOut'];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showValidationOnHandler\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showValidationOnHandler\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"doNotShowValidationForEventTargets\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return ['.input-group-append', '.input-group-prepend'];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"doChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"doChange\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElement);\n});","define(\"ember-bootstrap/components/bs-form/element/control\", [\"exports\", \"@glimmer/component\", \"ember-bootstrap/utils/form-validation-class\"], function (_exports, _component, _formValidationClass) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-bootstrap/utils/form-validation-class\"eaimeta@70e063a35619d71f\n  /**\n  \n   @class FormElementControl\n   @namespace Components\n   @extends Ember.Component\n   @private\n   */\n  class FormElementControl extends _component.default {\n    /**\n     * @property value\n     * @public\n     */\n\n    get formValidationClass() {\n      return (0, _formValidationClass.default)(this.args.validationType);\n    }\n\n    /**\n     * This action is called whenever the `value` changes\n     *\n     * @event onChange\n     * @param {*} value\n     * @public\n     */\n  }\n  _exports.default = FormElementControl;\n});","define(\"ember-bootstrap/components/bs-form/element/control/checkbox\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-bootstrap/components/bs-form/element/control\", \"@ember/template-factory\"], function (_exports, _component, _object, _control, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-bootstrap/components/bs-form/element/control\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <input\n    type=\"checkbox\"\n    id={{@id}}\n    disabled={{@disabled}}\n    readonly={{@readonly}}\n    aria-describedby={{@ariaDescribedBy}}\n    checked={{@value}}\n    class=\"form-check-input {{this.formValidationClass}}\"\n    ...attributes\n    {{on \"click\" this.handleClick}}\n  >\n  \n  \n  */\n  {\n    \"id\": \"kggVqlM7\",\n    \"block\": \"[[[11,\\\"input\\\"],[24,4,\\\"checkbox\\\"],[16,1,[30,1]],[16,\\\"disabled\\\",[30,2]],[16,\\\"readonly\\\",[30,3]],[16,\\\"aria-describedby\\\",[30,4]],[16,\\\"checked\\\",[30,5]],[16,0,[29,[\\\"form-check-input \\\",[30,0,[\\\"formValidationClass\\\"]]]]],[17,6],[4,[38,1],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"]],[\\\"@id\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@ariaDescribedBy\\\",\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/control/checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementControlCheckbox\n   @namespace Components\n   @extends Components.FormElementControl\n   @private\n   */\n  let FormElementControlCheckbox = _exports.default = (_class = class FormElementControlCheckbox extends _control.default {\n    handleClick(event) {\n      this.args.onChange(event.target.checked);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementControlCheckbox);\n});","define(\"ember-bootstrap/components/bs-form/element/control/input\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-bootstrap/components/bs-form/element/control\", \"ember-bootstrap/utils/size-class\", \"@ember/template-factory\"], function (_exports, _component, _object, _control, _sizeClass, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-bootstrap/components/bs-form/element/control\",0,\"ember-bootstrap/utils/size-class\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <input\n    type={{bs-default @type \"text\"}}\n    id={{@id}}\n    disabled={{@disabled}}\n    readonly={{@readonly}}\n    aria-describedby={{@ariaDescribedBy}}\n    value={{@value}}\n    class=\"form-control {{this.formValidationClass}} {{this.sizeClass}}\"\n    ...attributes\n    {{on \"change\" this.handleChange}}\n    {{on \"input\" this.handleInput}}\n  >\n  */\n  {\n    \"id\": \"acC9dqrr\",\n    \"block\": \"[[[11,\\\"input\\\"],[16,4,[28,[37,1],[[30,1],\\\"text\\\"],null]],[16,1,[30,2]],[16,\\\"disabled\\\",[30,3]],[16,\\\"readonly\\\",[30,4]],[16,\\\"aria-describedby\\\",[30,5]],[16,2,[30,6]],[16,0,[29,[\\\"form-control \\\",[30,0,[\\\"formValidationClass\\\"]],\\\" \\\",[30,0,[\\\"sizeClass\\\"]]]]],[17,7],[4,[38,2],[\\\"change\\\",[30,0,[\\\"handleChange\\\"]]],null],[4,[38,2],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null],[12],[13]],[\\\"@type\\\",\\\"@id\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@ariaDescribedBy\\\",\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"bs-default\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/control/input.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementControlInput\n   @namespace Components\n   @extends Components.FormElementControl\n   @private\n   */\n  let FormElementControlInput = _exports.default = (_class = class FormElementControlInput extends _control.default {\n    /**\n     * @property type\n     * @type {String}\n     * @public\n     */\n\n    handleChange(event) {\n      this.args.onChange(event.target.value);\n    }\n    handleInput(event) {\n      this.args.onChange(event.target.value);\n    }\n\n    /**\n     * [BS4 only] Property for size styling, set to 'lg', 'sm' or 'xs'\n     *\n     * Also see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/forms/#sizing)\n     *\n     * @property size\n     * @type String\n     * @public\n     */\n\n    get sizeClass() {\n      return (0, _sizeClass.default)('form-control', this.args.size);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementControlInput);\n});","define(\"ember-bootstrap/components/bs-form/element/control/radio\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-form/element/control\", \"@ember/template-factory\"], function (_exports, _component, _control, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-form/element/control\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{!-- template-lint-disable no-positive-tabindex no-autofocus-attribute --}}\n  {{#each @options as |option index|}}\n    {{#let (concat @id \"-\" index) as |id|}}\n      <div class=\"form-check{{if @inline \" form-check-inline\"}}\">\n        <input\n          type=\"radio\"\n          class=\"form-check-input\"\n          id={{id}}\n          checked={{bs-eq option @value}}\n          onclick={{fn @onChange option}}\n          name={{@name}}\n          required={{@required}}\n          disabled={{@disabled}}\n          autofocus={{@autofocus}}\n          tabindex={{@tabindex}}\n          form={{@form}}\n          title={{@title}}\n          ...attributes\n        >\n        <label\n          for={{id}}\n          class=\"form-check-label\"\n        >\n          {{#if (has-block)}}\n            {{yield option index}}\n          {{else}}\n            {{#if @optionLabelPath}}\n              {{get option @optionLabelPath}}\n            {{else}}\n              {{option}}\n            {{/if}}\n          {{/if}}\n        </label>\n      </div>\n    {{/let}}\n  {{/each}}\n  \n  */\n  {\n    \"id\": \"92wcpLoW\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[44,[[28,[37,3],[[30,4],\\\"-\\\",[30,3]],null]],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[\\\"form-check\\\",[52,[30,6],\\\" form-check-inline\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[24,4,\\\"radio\\\"],[24,0,\\\"form-check-input\\\"],[16,1,[30,5]],[16,\\\"checked\\\",[28,[37,7],[[30,2],[30,7]],null]],[16,\\\"onclick\\\",[28,[37,8],[[30,8],[30,2]],null]],[16,3,[30,9]],[16,\\\"required\\\",[30,10]],[16,\\\"disabled\\\",[30,11]],[16,\\\"autofocus\\\",[30,12]],[16,\\\"tabindex\\\",[30,13]],[16,\\\"form\\\",[30,14]],[16,\\\"title\\\",[30,15]],[17,16],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,5]],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,18]],[[[1,\\\"          \\\"],[18,18,[[30,2],[30,3]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,17],[[[1,\\\"            \\\"],[1,[28,[35,12],[[30,2],[30,17]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[2,3]],null]],[\\\"@options\\\",\\\"option\\\",\\\"index\\\",\\\"@id\\\",\\\"id\\\",\\\"@inline\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@name\\\",\\\"@required\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@tabindex\\\",\\\"@form\\\",\\\"@title\\\",\\\"&attrs\\\",\\\"@optionLabelPath\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"concat\\\",\\\"div\\\",\\\"if\\\",\\\"input\\\",\\\"bs-eq\\\",\\\"fn\\\",\\\"label\\\",\\\"has-block\\\",\\\"yield\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/control/radio.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementControlRadio\n   @namespace Components\n   @extends Components.FormElementControl\n   @private\n   */\n  class FormElementControlRadio extends _control.default {\n    /**\n     * @property inline\n     * @type {Boolean}\n     * @default false\n     * @public\n     */\n  }\n  _exports.default = FormElementControlRadio;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementControlRadio);\n});","define(\"ember-bootstrap/components/bs-form/element/control/switch\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-bootstrap/components/bs-form/element/control\", \"@ember/template-factory\"], function (_exports, _component, _object, _control, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-bootstrap/components/bs-form/element/control\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <input\n    type=\"checkbox\"\n    id={{@id}}\n    disabled={{@disabled}}\n    readonly={{@readonly}}\n    aria-describedby={{@ariaDescribedBy}}\n    checked={{@value}}\n    class=\"{{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-check-input\" \"custom-control-input\"}} {{this.formValidationClass}}\"\n    ...attributes\n    {{on \"click\" this.handleClick}}\n  >\n  \n  */\n  {\n    \"id\": \"+/3+dyza\",\n    \"block\": \"[[[11,\\\"input\\\"],[24,4,\\\"checkbox\\\"],[16,1,[30,1]],[16,\\\"disabled\\\",[30,2]],[16,\\\"readonly\\\",[30,3]],[16,\\\"aria-describedby\\\",[30,4]],[16,\\\"checked\\\",[30,5]],[16,0,[29,[\\\"form-check-input\\\",\\\" \\\",[30,0,[\\\"formValidationClass\\\"]]]]],[17,6],[4,[38,1],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[\\\"@id\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@ariaDescribedBy\\\",\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/control/switch.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementControlSwitch\n   @namespace Components\n   @extends Components.FormElementControl\n   @private\n   */\n  let FormElementControlSwitch = _exports.default = (_class = class FormElementControlSwitch extends _control.default {\n    handleClick(event) {\n      this.args.onChange(event.target.checked);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementControlSwitch);\n});","define(\"ember-bootstrap/components/bs-form/element/control/textarea\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-bootstrap/components/bs-form/element/control\", \"@ember/template-factory\"], function (_exports, _component, _object, _control, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-bootstrap/components/bs-form/element/control\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <textarea\n    id={{@id}}\n    disabled={{@disabled}}\n    readonly={{@readonly}}\n    aria-describedby={{@ariaDescribedBy}}\n    value={{@value}}\n    class=\"form-control {{this.formValidationClass}}\"\n    ...attributes\n    {{on \"change\" this.handleChange}}\n    {{on \"input\" this.handleInput}}>\n  </textarea>\n  */\n  {\n    \"id\": \"aXgMkAsp\",\n    \"block\": \"[[[11,\\\"textarea\\\"],[16,1,[30,1]],[16,\\\"disabled\\\",[30,2]],[16,\\\"readonly\\\",[30,3]],[16,\\\"aria-describedby\\\",[30,4]],[16,2,[30,5]],[16,0,[29,[\\\"form-control \\\",[30,0,[\\\"formValidationClass\\\"]]]]],[17,6],[4,[38,1],[\\\"change\\\",[30,0,[\\\"handleChange\\\"]]],null],[4,[38,1],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null],[12],[1,\\\"\\\"],[13]],[\\\"@id\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@ariaDescribedBy\\\",\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"textarea\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/control/textarea.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementControlTextarea\n   @namespace Components\n   @extends Components.FormElementControl\n   @private\n   */\n  let FormElementControlTextarea = _exports.default = (_class = class FormElementControlTextarea extends _control.default {\n    handleChange(event) {\n      this.args.onChange(event.target.value);\n    }\n    handleInput(event) {\n      this.args.onChange(event.target.value);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementControlTextarea);\n});","define(\"ember-bootstrap/components/bs-form/element/errors\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @show}}\n    {{#if @showMultipleErrors}}\n      <div class=\"pre-scrollable\">\n        {{#each @messages as |message|}}\n          <div class=\"invalid-feedback d-block\">{{message}}</div>\n        {{/each}}\n      </div>\n    {{else}}\n      <div class=\"invalid-feedback d-block\">{{get @messages \"0\"}}</div>\n    {{/if}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"pNBSk0kO\",\n    \"block\": \"[[[41,[30,1],[[[41,[30,2],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pre-scrollable\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,[28,[35,4],[[30,3],\\\"0\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@show\\\",\\\"@showMultipleErrors\\\",\\\"@messages\\\",\\\"message\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/errors.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/feedback-icon\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @show}}\n    <span class=\"form-control-feedback {{@iconName}}\" aria-hidden=\"true\"></span>\n  {{/if}}\n  */\n  {\n    \"id\": \"VTQzmjr3\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[15,0,[29,[\\\"form-control-feedback \\\",[30,2]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@show\\\",\\\"@iconName\\\"],false,[\\\"if\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/feedback-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/help-text\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div\n    id={{@id}}\n    class=\"form-text\"\n    ...attributes\n  >\n    {{@text}}\n  </div>\n  */\n  {\n    \"id\": \"pukHwtLV\",\n    \"block\": \"[[[11,0],[16,1,[30,1]],[24,0,\\\"form-text\\\"],[17,2],[12],[1,\\\"\\\\n  \\\"],[1,[30,3]],[1,\\\"\\\\n\\\"],[13]],[\\\"@id\\\",\\\"&attrs\\\",\\\"@text\\\"],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/help-text.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/label\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _component2, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <label\n    class=\"\n      {{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-label\"}}\n      {{if @invisibleLabel (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\")}}\n      {{@labelClass}}\n      {{if this.isHorizontalAndNotCheckbox \"col-form-label\"}}\n      {{if this.isCheckbox \"form-check-label\"}}\n      {{if (bs-eq \"switch\" @controlType) (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-check-label\" \"custom-control-label\")}}\n      {{if this.isHorizontal (bs-size-class \"col-form-label\" @size)}}\"\n    for={{@formElementId}}\n    ...attributes\n  >\n    {{#if (has-block)}}\n      {{yield}}\n    {{/if}}\n    {{@label}}\n  </label>\n  \n  */\n  {\n    \"id\": \"R+cQvG8K\",\n    \"block\": \"[[[11,\\\"label\\\"],[16,0,[29,[\\\"\\\\n    \\\",\\\"form-label\\\",\\\"\\\\n    \\\",[52,[30,1],\\\"visually-hidden\\\"],\\\"\\\\n    \\\",[30,2],\\\"\\\\n    \\\",[52,[30,0,[\\\"isHorizontalAndNotCheckbox\\\"]],\\\"col-form-label\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"isCheckbox\\\"]],\\\"form-check-label\\\"],\\\"\\\\n    \\\",[52,[28,[37,2],[\\\"switch\\\",[30,3]],null],\\\"form-check-label\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"isHorizontal\\\"]],[28,[37,3],[\\\"col-form-label\\\",[30,4]],null]]]]],[16,\\\"for\\\",[30,5]],[17,6],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,8]],[[[1,\\\"    \\\"],[18,8,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[1,[30,7]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@invisibleLabel\\\",\\\"@labelClass\\\",\\\"@controlType\\\",\\\"@size\\\",\\\"@formElementId\\\",\\\"&attrs\\\",\\\"@label\\\",\\\"&default\\\"],false,[\\\"label\\\",\\\"if\\\",\\\"bs-eq\\\",\\\"bs-size-class\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/label.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n  \n   @class FormElementLabel\n   @namespace Components\n   @extends Ember.Component\n   @private\n   */\n  let FormElementLabel = _exports.default = (_class = class FormElementLabel extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * [BS4 only] Property for size styling, set to 'lg', 'sm'\n       *\n       * @property size\n       * @type String\n       * @public\n       */\n      /**\n       * @property formElementId\n       * @type {String}\n       * @public\n       */\n      /**\n       * @property labelClass\n       * @type {String}\n       * @public\n       */\n      /**\n       * The form layout used for the markup generation (see http://getbootstrap.com/css/#forms):\n       *\n       * * 'horizontal'\n       * * 'vertical'\n       * * 'inline'\n       *\n       * Defaults to the parent `form`'s `formLayout` property.\n       *\n       * @property formLayout\n       * @type string\n       * @default 'vertical'\n       * @public\n       */\n      _initializerDefineProperty(this, \"formLayout\", _descriptor, this);\n      /**\n       * The type of the control widget.\n       * Supported types:\n       *\n       * * 'text'\n       * * 'checkbox'\n       * * 'textarea'\n       * * any other type will use an input tag with the `controlType` value as the type attribute (for e.g. HTML5 input\n       * types like 'email'), and the same layout as the 'text' type\n       *\n       * @property controlType\n       * @type string\n       * @default 'text'\n       * @public\n       */\n      _initializerDefineProperty(this, \"controlType\", _descriptor2, this);\n    }\n    /**\n     * @property label\n     * @type string\n     * @public\n     */\n\n    /**\n     * @property invisibleLabel\n     * @type boolean\n     * @public\n     */\n\n    get isHorizontalAndNotCheckbox() {\n      return this.isHorizontal && !this.isCheckbox;\n    }\n    /**\n     * Indicates whether the type of the control widget equals `checkbox`\n     *\n     * @property isCheckbox\n     * @type boolean\n     * @private\n     */\n    get isCheckbox() {\n      return this.args.controlType === 'checkbox';\n    }\n\n    /**\n     * Indicates whether the form type equals `horizontal`\n     *\n     * @property isHorizontal\n     * @type boolean\n     * @private\n     */\n    get isHorizontal() {\n      return this.args.formLayout === 'horizontal';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"formLayout\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'vertical';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"controlType\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'text';\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementLabel);\n});","define(\"ember-bootstrap/components/bs-form/element/layout/horizontal\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @hasLabel}}\n    <@labelComponent @labelClass={{@horizontalLabelGridClass}}/>\n    <div class={{bs-form-horiz-input-class @horizontalLabelGridClass}}>\n      {{yield}}\n      <@errorsComponent/>\n      <@helpTextComponent/>\n    </div>\n  {{else}}\n    <div class=\"{{bs-form-horiz-input-class @horizontalLabelGridClass}} {{bs-form-horiz-offset-class @horizontalLabelGridClass}}\">\n      {{yield}}\n      <@errorsComponent/>\n      <@helpTextComponent/>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"yvcLiQKp\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[30,2],null,[[\\\"@labelClass\\\"],[[30,3]]],null],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[28,[37,2],[[30,3]],null]],[12],[1,\\\"\\\\n    \\\"],[18,6,null],[1,\\\"\\\\n    \\\"],[8,[30,4],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,5],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[15,0,[29,[[28,[37,2],[[30,3]],null],\\\" \\\",[28,[37,4],[[30,3]],null]]]],[12],[1,\\\"\\\\n    \\\"],[18,6,null],[1,\\\"\\\\n    \\\"],[8,[30,4],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,5],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@hasLabel\\\",\\\"@labelComponent\\\",\\\"@horizontalLabelGridClass\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"bs-form-horiz-input-class\\\",\\\"yield\\\",\\\"bs-form-horiz-offset-class\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/horizontal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/layout/horizontal/checkbox\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div class=\"{{bs-form-horiz-input-class @horizontalLabelGridClass}} {{bs-form-horiz-offset-class @horizontalLabelGridClass}}\">\n    <div class=\"{{if (bs-eq \"switch\" @controlType) (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-check form-switch\" \"custom-control custom-switch\") \"form-check\"}}\">\n      {{yield}}\n      <@labelComponent/>\n      <@errorsComponent/>\n      <@helpTextComponent/>\n    </div>\n  </div>\n  \n  */\n  {\n    \"id\": \"kD4skmB7\",\n    \"block\": \"[[[10,0],[15,0,[29,[[28,[37,1],[[30,1]],null],\\\" \\\",[28,[37,2],[[30,1]],null]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[[52,[28,[37,4],[\\\"switch\\\",[30,2]],null],\\\"form-check form-switch\\\",\\\"form-check\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[18,6,null],[1,\\\"\\\\n    \\\"],[8,[30,3],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,4],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,5],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@horizontalLabelGridClass\\\",\\\"@controlType\\\",\\\"@labelComponent\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"bs-form-horiz-input-class\\\",\\\"bs-form-horiz-offset-class\\\",\\\"if\\\",\\\"bs-eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/horizontal/checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/layout/inline\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @hasLabel}}\n    <@labelComponent/>\n  {{/if}}\n  {{yield}}\n  <@errorsComponent/>\n  <@helpTextComponent/>\n  */\n  {\n    \"id\": \"+Tqw45qJ\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[30,2],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[18,5,null],[1,\\\"\\\\n\\\"],[8,[30,3],null,null,null],[1,\\\"\\\\n\\\"],[8,[30,4],null,null,null]],[\\\"@hasLabel\\\",\\\"@labelComponent\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/inline.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/layout/inline/checkbox\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div class=\"{{if (bs-eq \"switch\" @controlType) (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-check form-switch\" \"custom-control custom-switch\") \"form-check\"}}\">\n    {{yield}}\n    <@labelComponent/>\n    <@errorsComponent/>\n    <@helpTextComponent/>\n  </div>\n  \n  */\n  {\n    \"id\": \"LIWjV7fj\",\n    \"block\": \"[[[10,0],[15,0,[29,[[52,[28,[37,2],[\\\"switch\\\",[30,1]],null],\\\"form-check form-switch\\\",\\\"form-check\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[8,[30,2],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,3],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,4],null,null,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@controlType\\\",\\\"@labelComponent\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"bs-eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/inline/checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/layout/vertical\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @hasLabel}}\n    <@labelComponent/>\n  {{/if}}\n  {{yield}}\n  <@errorsComponent/>\n  <@helpTextComponent/>\n  */\n  {\n    \"id\": \"7Kb27cj4\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[30,2],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[18,5,null],[1,\\\"\\\\n\\\"],[8,[30,3],null,null,null],[1,\\\"\\\\n\\\"],[8,[30,4],null,null,null]],[\\\"@hasLabel\\\",\\\"@labelComponent\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/vertical.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/layout/vertical/checkbox\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div class=\"{{if (bs-eq \"switch\" @controlType) (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"form-check form-switch\" \"custom-control custom-switch\") \"form-check\"}}\">\n    {{yield}}\n    <@labelComponent/>\n    <@errorsComponent/>\n    <@helpTextComponent/>\n  </div>\n  \n  */\n  {\n    \"id\": \"i3yPJaf1\",\n    \"block\": \"[[[10,0],[15,0,[29,[[52,[28,[37,2],[\\\"switch\\\",[30,1]],null],\\\"form-check form-switch\\\",\\\"form-check\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[8,[30,2],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,3],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,4],null,null,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@controlType\\\",\\\"@labelComponent\\\",\\\"@errorsComponent\\\",\\\"@helpTextComponent\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"bs-eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/layout/vertical/checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-form/element/legend\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-form/element/label\", \"@ember/template-factory\"], function (_exports, _component, _label, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-form/element/label\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <legend\n    class=\"\n      {{if @invisibleLabel (if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\")}}\n      {{@labelClass}}\n      {{if this.isHorizontalAndNotCheckbox \"col-form-label\"}}\n      {{if this.isHorizontal (bs-size-class \"col-form-label\" @size)}}\"\n  >\n    {{#if (has-block)}}\n      {{yield}}\n    {{/if}}\n    {{@label}}\n  </legend>\n  */\n  {\n    \"id\": \"HfWhvDyx\",\n    \"block\": \"[[[10,\\\"legend\\\"],[15,0,[29,[\\\"\\\\n    \\\",[52,[30,1],\\\"visually-hidden\\\"],\\\"\\\\n    \\\",[30,2],\\\"\\\\n    \\\",[52,[30,0,[\\\"isHorizontalAndNotCheckbox\\\"]],\\\"col-form-label\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"isHorizontal\\\"]],[28,[37,2],[\\\"col-form-label\\\",[30,3]],null]]]]],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,5]],[[[1,\\\"    \\\"],[18,5,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[1,[30,4]],[1,\\\"\\\\n\\\"],[13]],[\\\"@invisibleLabel\\\",\\\"@labelClass\\\",\\\"@size\\\",\\\"@label\\\",\\\"&default\\\"],false,[\\\"legend\\\",\\\"if\\\",\\\"bs-size-class\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-form/element/legend.hbs\",\n    \"isStrictMode\": false\n  });\n  class FormElementLegend extends _label.default {}\n  _exports.default = FormElementLegend;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FormElementLegend);\n});","define(\"ember-bootstrap/components/bs-link-to\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/debug\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _debug, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LinkTo\n    @route={{@route}}\n    @models={{this.models}}\n    @query={{this.query}}\n    @disabled={{@disabled}}\n    class={{@attrClassInternal}}\n    ...attributes\n  >\n    {{yield}}\n  </LinkTo>\n  */\n  {\n    \"id\": \"cXT3cfe8\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,1]],[17,2]],[[\\\"@route\\\",\\\"@models\\\",\\\"@query\\\",\\\"@disabled\\\"],[[30,3],[30,0,[\\\"models\\\"]],[30,0,[\\\"query\\\"]],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@attrClassInternal\\\",\\\"&attrs\\\",\\\"@route\\\",\\\"@disabled\\\",\\\"&default\\\"],false,[\\\"link-to\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-link-to.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   This is largely copied from Ember.LinkComponent. It is used as extending from Ember.LinkComponent has been deprecated.\n   We need this to\n   * register ourselves to a parent component that needs to know `active` state due to Bootstrap markup requirements, see Nav/LinkTo\n   * continue supporting positional params until we can remove support\n  \n   @class LinkComponent\n   @namespace Components\n   @extends Component\n   @private\n  */\n  let LinkComponent = _exports.default = (_class = class LinkComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    get active() {\n      if (!this.args.route) {\n        return false;\n      }\n      return this.router.isActive(this.args.route, ...this.models, {\n        queryParams: this.query\n      });\n    }\n    get models() {\n      const {\n        model,\n        models\n      } = this.args;\n      if (model !== undefined) {\n        return [model];\n      } else if (models !== undefined) {\n        (false && !(Array.isArray(models)) && (0, _debug.assert)('The `@models` argument must be an array.', Array.isArray(models)));\n        return models;\n      } else {\n        return [];\n      }\n    }\n    get query() {\n      return this.args.query ?? {};\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, LinkComponent);\n});","define(\"ember-bootstrap/components/bs-list-group\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _component2, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#let (element this.htmlTag) as |Tag|}}\n    <Tag\n      class=\"list-group {{this.horizontalClass}} {{if this.numbered \"list-group-numbered\"}} {{if this.flush \"list-group-flush\"}}\"\n      ...attributes>\n      {{yield\n        (hash\n          item=(component (ensure-safe-component (bs-default @listGroupItemComponent (component \"bs-list-group/item\"))))\n        )\n      }}\n    </Tag>\n  {{/let}}\n  */\n  {\n    \"id\": \"7RcCkdZP\",\n    \"block\": \"[[[44,[[28,[37,1],[[30,0,[\\\"htmlTag\\\"]]],null]],[[[1,\\\"  \\\"],[8,[30,1],[[16,0,[29,[\\\"list-group \\\",[30,0,[\\\"horizontalClass\\\"]],\\\" \\\",[52,[30,0,[\\\"numbered\\\"]],\\\"list-group-numbered\\\"],\\\" \\\",[52,[30,0,[\\\"flush\\\"]],\\\"list-group-flush\\\"]]]],[17,2]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[18,4,[[28,[37,4],null,[[\\\"item\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,3],[50,\\\"bs-list-group/item\\\",0,null,null]],null]],null],0,null,null]]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]],[\\\"Tag\\\",\\\"&attrs\\\",\\\"@listGroupItemComponent\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"element\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-list-group.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Component for creating [Bootstrap List Groups](https://getbootstrap.com/docs/5.2/components/list-group/) with custom markup.\n  \n   ### Usage\n  \n   ```hbs\n   <BsListGroup as |ListGroup|>\n    <ListGroup.item>An item</ListGroup.item>\n    <ListGroup.item>A second item</ListGroup.item>\n    <ListGroup.item>A third item</ListGroup.item>\n   </BsListGroup>\n   ```\n  \n   ### Advanced Usage\n  \n   ```hbs\n   <BsListGroup as |ListGroup|>\n    {{#let (component ListGroup.item htmlTag=\"a\" actionable=true) as |ListGroupItem|}}\n      <ListGroupItem @active={{true}}>An item</ListGroupItem>\n      <ListGroupItem>A second item</ListGroupItem>\n      <ListGroupItem @disabled={{true}}>A third item</ListGroupItem>\n    {{/let}}\n   </BsListGroup>\n   ```\n  \n   The component yields references to the following contextual components, that you can use to further customize the output:\n  \n   * [ListGroup.item](Components.ListGroupItem.html)\n  \n   @class ListGroup\n   @namespace Components\n   @extends Glimmer.Component\n   @public\n   */\n  let BsListGroupComponent = _exports.default = (_class = class BsListGroupComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * Determines if list should be numbered (e.g. `ol` or `ul` should be used)\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#numbered)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"numbered\", _descriptor, this);\n      /**\n       * If `true` then some borders and rounded corners are removed\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#flush)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"flush\", _descriptor2, this);\n      /**\n       * If `true` list group layout will be horizontal\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#horizontal)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"horizontal\", _descriptor3, this);\n      /**\n       * Determines the responsive variant to make a list group horizontal starting at that breakpoint’s `min-width`.\n       *\n       * Supported values are `{sm|md|lg|xl|xxl}`\n       *\n       * Live this property empty to change the layout of list group items to horizontal across all breakpoints.\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#horizontal)\n       *\n       * @default ''\n       * @type string\n       * @public\n       */\n      _initializerDefineProperty(this, \"horizontalSize\", _descriptor4, this);\n      _defineProperty(this, \"htmlTag\", this.numbered ? 'ol' : 'ul');\n    }\n    get horizontalClass() {\n      if (this.horizontal) {\n        return this.horizontalSize ? `list-group-horizontal-${this.horizontalSize}` : 'list-group-horizontal';\n      }\n      return '';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"numbered\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"flush\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"horizontal\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"horizontalSize\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BsListGroupComponent);\n});","define(\"ember-bootstrap/components/bs-list-group/item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _component2, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#let (element this.htmlTag) as |Tag|}}\n    <Tag\n      class=\"list-group-item {{if @type (bs-type-class \"list-group-item\" @type default=\"\")}} {{if @actionable \"list-group-item-action\"}} {{if @disabled \"disabled\"}} {{if @active \"active\"}}\"\n      aria-current=\"{{if @active true}}\"\n      aria-disabled=\"{{if @disabled true}}\"\n      type=\"{{if (bs-eq this.htmlTag \"button\") \"button\"}}\"\n       ...attributes>\n      {{yield}}\n    </Tag>\n  {{/let}}\n  */\n  {\n    \"id\": \"uHi0tqrN\",\n    \"block\": \"[[[44,[[28,[37,1],[[30,0,[\\\"htmlTag\\\"]]],null]],[[[1,\\\"  \\\"],[8,[30,1],[[16,0,[29,[\\\"list-group-item \\\",[52,[30,2],[28,[37,3],[\\\"list-group-item\\\",[30,2]],[[\\\"default\\\"],[\\\"\\\"]]]],\\\" \\\",[52,[30,3],\\\"list-group-item-action\\\"],\\\" \\\",[52,[30,4],\\\"disabled\\\"],\\\" \\\",[52,[30,5],\\\"active\\\"]]]],[16,\\\"aria-current\\\",[29,[[52,[30,5],true]]]],[16,\\\"aria-disabled\\\",[29,[[52,[30,4],true]]]],[16,4,[29,[[52,[28,[37,4],[[30,0,[\\\"htmlTag\\\"]],\\\"button\\\"],null],\\\"button\\\"]]]],[17,6]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[18,7,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]],[\\\"Tag\\\",\\\"@type\\\",\\\"@actionable\\\",\\\"@disabled\\\",\\\"@active\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"element\\\",\\\"if\\\",\\\"bs-type-class\\\",\\\"bs-eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-list-group/item.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   * Component to create the items for [List Group](Components.ListGroup.html).\n   *\n   * @class ListGroupItem\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @public\n   */\n  let BsListGroupItemComponent = _exports.default = (_class = class BsListGroupItemComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * On of the allowed bs-types, e.g. `primary`, `secondary` etc.\n       *\n       * Used to add contextual classes to style list items with a stateful background and color.\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#contextual-classes)\n       *\n       * @default ''\n       * @type string\n       * @public\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor, this);\n      /**\n       * Used to create actionable list group items with hover, disabled, and active states.\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#links-and-buttons)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"actionable\", _descriptor2, this);\n      /**\n       * Indicate the current active selection.\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#active-items)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"active\", _descriptor3, this);\n      /**\n       * Set `true` to make list group item appear disabled.\n       *\n       * Also see the [Bootstrap Docs](https://getbootstrap.com/docs/5.2/components/list-group/#disabled-items)\n       *\n       * @default false\n       * @type boolean\n       * @public\n       */\n      _initializerDefineProperty(this, \"disabled\", _descriptor4, this);\n    }\n    /**\n     * HTML-tag used for list-group item\n     *\n     * It depends on `actionable`.\n     *\n     * @type string\n     * @default 'li'\n     * @public\n     */\n    get htmlTag() {\n      return this.args.actionable ? 'button' : 'li';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"type\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"actionable\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"disabled\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BsListGroupItemComponent);\n});","define(\"ember-bootstrap/components/bs-modal-simple\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <BsModal\n    @open={{@open}}\n    @fade={{@fade}}\n    @backdrop={{@backdrop}}\n    @keyboard={{@keyboard}}\n    @position={{@position}}\n    @scrollable={{@scrollable}}\n    @size={{@size}}\n    @backdropClose={{@backdropClose}}\n    @renderInPlace={{@renderInPlace}}\n    @transitionDuration={{@transitionDuration}}\n    @backdropTransitionDuration={{@backdropTransitionDuration}}\n    @onSubmit={{@onSubmit}}\n    @onHide={{@onHide}}\n    @onHidden={{@onHidden}}\n    @onShow={{@onShow}}\n    @onShown={{@onShown}}\n    ...attributes\n    as |modal|\n  >\n    <modal.header @title={{@title}} @closeButton={{@closeButton}} />\n    <modal.body>\n      {{yield\n        (hash\n          close=modal.close\n          submit=modal.submit\n        )\n      }}\n    </modal.body>\n    <modal.footer\n      @closeTitle={{@closeTitle}}\n      @submitTitle={{@submitTitle}}\n      @submitButtonType={{@submitButtonType}}\n    />\n  </BsModal>\n  \n  */\n  {\n    \"id\": \"iZMJEKKu\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@open\\\",\\\"@fade\\\",\\\"@backdrop\\\",\\\"@keyboard\\\",\\\"@position\\\",\\\"@scrollable\\\",\\\"@size\\\",\\\"@backdropClose\\\",\\\"@renderInPlace\\\",\\\"@transitionDuration\\\",\\\"@backdropTransitionDuration\\\",\\\"@onSubmit\\\",\\\"@onHide\\\",\\\"@onHidden\\\",\\\"@onShow\\\",\\\"@onShown\\\"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,18,[\\\"header\\\"]],null,[[\\\"@title\\\",\\\"@closeButton\\\"],[[30,19],[30,20]]],null],[1,\\\"\\\\n  \\\"],[8,[30,18,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[18,24,[[28,[37,2],null,[[\\\"close\\\",\\\"submit\\\"],[[30,18,[\\\"close\\\"]],[30,18,[\\\"submit\\\"]]]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,18,[\\\"footer\\\"]],null,[[\\\"@closeTitle\\\",\\\"@submitTitle\\\",\\\"@submitButtonType\\\"],[[30,21],[30,22],[30,23]]],null],[1,\\\"\\\\n\\\"]],[18]]]]],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@open\\\",\\\"@fade\\\",\\\"@backdrop\\\",\\\"@keyboard\\\",\\\"@position\\\",\\\"@scrollable\\\",\\\"@size\\\",\\\"@backdropClose\\\",\\\"@renderInPlace\\\",\\\"@transitionDuration\\\",\\\"@backdropTransitionDuration\\\",\\\"@onSubmit\\\",\\\"@onHide\\\",\\\"@onHidden\\\",\\\"@onShow\\\",\\\"@onShown\\\",\\\"modal\\\",\\\"@title\\\",\\\"@closeButton\\\",\\\"@closeTitle\\\",\\\"@submitTitle\\\",\\\"@submitButtonType\\\",\\\"&default\\\"],false,[\\\"bs-modal\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal-simple.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Component for creating [Bootstrap modals](http://getbootstrap.com/javascript/#modals) with a some common default markup\n    including a header, footer and body. Creating a simple modal is easy:\n  \n    ```hbs\n    <BsModalSimple @title=\"Simple Dialog\">\n      Hello world!\n    </BsModalSimple>\n    ```\n  \n    This will automatically create the appropriate markup, with a modal header containing the title, and a footer containing\n    a default \"Ok\" button, that will close the modal automatically (unless you return `false` from `onHide`).\n  \n    A modal created this way will be visible at once. You can use the `{{#if ...}}` helper to hide all modal elements from\n    the DOM until needed. Or you can bind the `open` argument to trigger showing and hiding the modal:\n  \n    ```hbs\n    <BsModalSimple @open={{this.openModal}} @title=\"Simple Dialog\">\n      Hello world!\n    </BsModalSimple>\n    ```\n  \n    ### Custom Markup\n  \n    To customize the markup within the modal you can use the [<BsModal>](Components.Modal.html) component.\n  \n    ### Modals with forms\n  \n    There is a special case when you have a form inside your modals body: you probably do not want to have a submit button\n    within your form but instead in your modal footer. Hover pressing the submit button outside your form would not\n    trigger the form data to be submitted. In the example below this would not trigger the submit action of the form, and\n    thus bypass the form validation feature of the form component.\n  \n    ```hbs\n    <BsModalSimple @title=\"Form Example\" @closeTitle=\"Cancel\" @submitTitle=\"Ok\">\n      <BsForm @model={{this}} @onSubmit={{this.submit}} @submitOnEnter={{true}} as |Form|>\n        <Form.element @label=\"first name\" @property=\"firstname\" />\n        <Form.element @label=\"last name\" @property=\"lastname\" />\n      </BsForm>\n    </BsModalSimple>\n    ```\n  \n    The modal component supports this common case by triggering the submit event programmatically on the body's form if\n    present whenever the footer's submit button is pressed. To allow the form to be submitted by pressing the enter key\n    also, you must either set `@submitOnEnter={{true}}` on the `<BsForm>` or include an invisible submit button in the\n    form (`<button type=\"submit\" class=\"d-hidden\">Submit</button>`).\n  \n    ### Auto-focus\n  \n    In order to allow key handling to function, the modal's root element is given focus once the modal is shown. If your\n    modal contains an element such as a text input and you would like it to be given focus rather than the modal element,\n    then give it the HTML5 autofocus attribute:\n  \n    ```hbs\n    <BsModalSimple @title=\"Form Example\" @closeTitle=\"Cancel\" @submitTitle=\"Ok\">\n      <BsForm @model={{this}} @onSubmit={{this.submit}} @submitOnEnter={{true}} as |Form|>\n        <Form.element @label=\"first name\" @property=\"firstname\" @autofocus={{true}} />\n        <Form.element @label=\"last name\" @property=\"lastname\" />\n      </BsForm>\n    </BsModalSimple>\n    ```\n  \n    ### Modals inside wormhole\n  \n    Modals make use of the [ember-wormhole](https://github.com/yapplabs/ember-wormhole) addon, which will be installed\n    automatically alongside ember-bootstrap. This is used to allow the modal to be placed in deeply nested\n    components/templates where it belongs to logically, but to have the actual DOM elements within a special container\n    element, which is a child of ember's root element. This will make sure that modals always overlay the whole app, and\n    are not effected by parent elements with `overflow: hidden` for example.\n  \n    If you want the modal to render in place, rather than being wormholed, you can set `@renderInPlace={{true}}`.\n  \n    @class ModalSimple\n    @namespace Components\n    @public\n  */\n\n  /**\n   * The title of the modal, visible in the modal header. Is ignored if `header` is false.\n   *\n   * @property title\n   * @type string\n   * @public\n   */\n\n  /**\n   * Visibility of the modal. Toggle to show/hide with CSS transitions.\n   *\n   * When the modal is closed by user interaction this property will not update by using two-way bindings in order\n   * to follow DDAU best practices. If you want to react to such changes, subscribe to the `onHide` action\n   *\n   * @property open\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * Set to false to disable fade animations.\n   *\n   * @property fade\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * Use a semi-transparent modal background to hide the rest of the page.\n   *\n   * @property backdrop\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * Closes the modal when escape key is pressed.\n   *\n   * @property keyboard\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * [BS4 only!] Vertical position, either 'top' (default) or 'center'\n   * 'center' will apply the `modal-dialog-centered` class\n   *\n   * @property position\n   * @type {string}\n   * @default 'top'\n   * @public\n   */\n\n  /**\n   * [BS4 only!] Allows scrolling within the modal body\n   * 'true' will apply the `modal-dialog-scrollable` class\n   *\n   * @property scrollable\n   * @type boolean\n   * @default false\n   * @public\n   */\n\n  /**\n   * Property for size styling, set to null (default), 'lg' or 'sm'\n   *\n   * Also see the [Bootstrap docs](http://getbootstrap.com/javascript/#modals-sizes)\n   *\n   * @property size\n   * @type String\n   * @public\n   */\n\n  /**\n   * If true clicking on the backdrop will close the modal.\n   *\n   * @property backdropClose\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * If true component will render in place, rather than be wormholed.\n   *\n   * @property renderInPlace\n   * @type boolean\n   * @default false\n   * @public\n   */\n\n  /**\n   * The duration of the fade transition\n   *\n   * @property transitionDuration\n   * @type number\n   * @default 300\n   * @public\n   */\n\n  /**\n   * The duration of the backdrop fade transition\n   *\n   * @property backdropTransitionDuration\n   * @type number\n   * @default 150\n   * @public\n   */\n\n  /**\n   * The action to be sent when the modal footer's submit button (if present) is pressed.\n   * Note that if your modal body contains a form (e.g. [Components.Form](Components.Form.html)) this action will\n   * not be triggered. Instead, a submit event will be triggered on the form itself. See the class description for an\n   * example.\n   *\n   * @property onSubmit\n   * @type function\n   * @public\n   */\n\n  /**\n   * The action to be sent when the modal is closing.\n   * This will be triggered by pressing the modal header's close button (x button) or the modal footer's close button.\n   * Note that this will happen before the modal is hidden from the DOM, as the fade transitions will still need some\n   * time to finish. Use the `onHidden` if you need the modal to be hidden when the action triggers.\n   *\n   * You can return `false` to prevent closing the modal automatically, and do that in your action by\n   * setting `@open` to `false`.\n   *\n   * @property onHide\n   * @type function\n   * @public\n   */\n\n  /**\n   * The action to be sent after the modal has been completely hidden (including the CSS transition).\n   *\n   * @property onHidden\n   * @type function\n   * @default null\n   * @public\n   */\n\n  /**\n   * The action to be sent when the modal is opening.\n   * This will be triggered immediately after the modal is shown (so it's safe to access the DOM for\n   * size calculations and the like). This means that if `@fade={{true}}`, it will be shown in between the\n   * backdrop animation and the fade animation.\n   *\n   * @property onShow\n   * @type function\n   * @default null\n   * @public\n   */\n\n  /**\n   * The action to be sent after the modal has been completely shown (including the CSS transition).\n   *\n   * @property onShown\n   * @type function\n   * @public\n   */\n\n  /**\n   * Display a close button (x icon) in the corner of the modal header.\n   *\n   * @property closeButton\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * The title of the default close button.\n   *\n   * @property closeTitle\n   * @type string\n   * @default 'Ok'\n   * @public\n   */\n\n  /**\n   * The type of the submit button (primary button).\n   *\n   * @property submitButtonType\n   * @type string\n   * @default 'primary'\n   * @public\n   */\n\n  /**\n   * The title of the submit button (primary button). Will be ignored (i.e. no button) if set to null.\n   *\n   * @property submitTitle\n   * @type string\n   * @default null\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-modal\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/debug\", \"@glimmer/component\", \"@ember/runloop\", \"@ember/service\", \"ember-bootstrap/utils/transition-end\", \"ember-bootstrap/utils/dom\", \"ember-bootstrap/utils/decorators/uses-transition\", \"ember-bootstrap/utils/is-fastboot\", \"ember-bootstrap/utils/decorators/arg\", \"@glimmer/tracking\", \"ember-ref-bucket\", \"ember-bootstrap/components/bs-modal/header\", \"ember-bootstrap/components/bs-modal/dialog\", \"ember-bootstrap/components/bs-modal/body\", \"ember-bootstrap/components/bs-modal/footer\", \"@ember/template-factory\"], function (_exports, _component, _object, _debug, _component2, _runloop, _service, _transitionEnd, _dom, _usesTransition, _isFastboot, _arg, _tracking, _emberRefBucket, _header, _dialog, _body, _footer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"ember-bootstrap/utils/transition-end\",0,\"ember-bootstrap/utils/dom\",0,\"ember-bootstrap/utils/decorators/uses-transition\",0,\"ember-bootstrap/utils/is-fastboot\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@glimmer/tracking\",0,\"ember-ref-bucket\",0,\"ember-bootstrap/components/bs-modal/header\",0,\"ember-bootstrap/components/bs-modal/dialog\",0,\"ember-bootstrap/components/bs-modal/body\",0,\"ember-bootstrap/components/bs-modal/footer\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{did-insert-helper this.handleVisibilityChanges}}\n  {{did-update-helper this.handleVisibilityChanges @open}}\n  \n  {{#if this.inDom}}\n    {{!\n      ember-on-helper do not support FastBoot yet. This guard can be removed as\n      soon as ember-on-helper guards for FastBoot itself. It is tracked in this\n      GitHub issue: https://github.com/buschtoens/ember-on-helper/issues/3\n    }}\n    {{#unless this.isFastBoot}}\n      {{on-window \"resize\" this.adjustDialog}}\n    {{/unless}}\n  \n    {{#let (component (ensure-safe-component this.dialogComponent)\n      onClose=this.close\n      fade=this._fade\n      showModal=this.showModal\n      keyboard=this.keyboard\n      size=@size\n      backdropClose=this.backdropClose\n      inDom=this.inDom\n      paddingLeft=this.paddingLeft\n      paddingRight=this.paddingRight\n      centered=(bs-eq this.position \"center\")\n      scrollable=this.scrollable\n      fullscreen=@fullscreen\n    ) as |Dialog|}}\n      {{#if this._renderInPlace}}\n        <Dialog\n          {{create-ref \"modalElement\"}}\n          ...attributes\n        >\n          {{yield\n            (hash\n              header=(component (ensure-safe-component this.headerComponent) onClose=this.close)\n              body=(ensure-safe-component this.bodyComponent)\n              footer=(component (ensure-safe-component this.footerComponent) onClose=this.close onSubmit=this.doSubmit)\n              close=this.close\n              submit=this.doSubmit\n            )\n          }}\n        </Dialog>\n        <div>\n          {{#if this.shouldShowBackdrop}}\n            <div class=\"modal-backdrop {{if this._fade \"fade\"}} {{if this.showModal \"show\"}}\" {{create-ref \"backdropElement\"}}></div>\n          {{/if}}\n        </div>\n      {{else if this.destinationElement}}\n        {{#in-element this.destinationElement insertBefore=null}}\n          <Dialog\n            {{create-ref \"modalElement\"}}\n            ...attributes\n          >\n            {{yield\n              (hash\n                header=(component (ensure-safe-component this.headerComponent) onClose=this.close)\n                body=(ensure-safe-component this.bodyComponent)\n                footer=(component (ensure-safe-component this.footerComponent) onClose=this.close onSubmit=this.doSubmit)\n                close=this.close\n                submit=this.doSubmit\n              )\n            }}\n          </Dialog>\n          <div>\n            {{#if this.shouldShowBackdrop}}\n              <div class=\"modal-backdrop {{if this._fade \"fade\"}} {{if this.showModal \"show\"}}\" {{create-ref \"backdropElement\"}}></div>\n            {{/if}}\n          </div>\n        {{/in-element}}\n      {{/if}}\n    {{/let}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"z/aV/YTg\",\n    \"block\": \"[[[1,[28,[35,0],[[30,0,[\\\"handleVisibilityChanges\\\"]]],null]],[1,\\\"\\\\n\\\"],[1,[28,[35,1],[[30,0,[\\\"handleVisibilityChanges\\\"]],[30,1]],null]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"inDom\\\"]],[[[41,[51,[30,0,[\\\"isFastBoot\\\"]]],[[[1,\\\"    \\\"],[1,[28,[35,4],[\\\"resize\\\",[30,0,[\\\"adjustDialog\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[44,[[50,[28,[37,7],[[30,0,[\\\"dialogComponent\\\"]]],null],0,null,[[\\\"onClose\\\",\\\"fade\\\",\\\"showModal\\\",\\\"keyboard\\\",\\\"size\\\",\\\"backdropClose\\\",\\\"inDom\\\",\\\"paddingLeft\\\",\\\"paddingRight\\\",\\\"centered\\\",\\\"scrollable\\\",\\\"fullscreen\\\"],[[30,0,[\\\"close\\\"]],[30,0,[\\\"_fade\\\"]],[30,0,[\\\"showModal\\\"]],[30,0,[\\\"keyboard\\\"]],[30,2],[30,0,[\\\"backdropClose\\\"]],[30,0,[\\\"inDom\\\"]],[30,0,[\\\"paddingLeft\\\"]],[30,0,[\\\"paddingRight\\\"]],[28,[37,8],[[30,0,[\\\"position\\\"]],\\\"center\\\"],null],[30,0,[\\\"scrollable\\\"]],[30,3]]]]],[[[41,[30,0,[\\\"_renderInPlace\\\"]],[[[1,\\\"      \\\"],[8,[30,4],[[17,5],[4,[38,9],[\\\"modalElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[18,6,[[28,[37,11],null,[[\\\"header\\\",\\\"body\\\",\\\"footer\\\",\\\"close\\\",\\\"submit\\\"],[[50,[28,[37,7],[[30,0,[\\\"headerComponent\\\"]]],null],0,null,[[\\\"onClose\\\"],[[30,0,[\\\"close\\\"]]]]],[28,[37,7],[[30,0,[\\\"bodyComponent\\\"]]],null],[50,[28,[37,7],[[30,0,[\\\"footerComponent\\\"]]],null],0,null,[[\\\"onClose\\\",\\\"onSubmit\\\"],[[30,0,[\\\"close\\\"]],[30,0,[\\\"doSubmit\\\"]]]]],[30,0,[\\\"close\\\"]],[30,0,[\\\"doSubmit\\\"]]]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldShowBackdrop\\\"]],[[[1,\\\"          \\\"],[11,0],[16,0,[29,[\\\"modal-backdrop \\\",[52,[30,0,[\\\"_fade\\\"]],\\\"fade\\\"],\\\" \\\",[52,[30,0,[\\\"showModal\\\"]],\\\"show\\\"]]]],[4,[38,9],[\\\"backdropElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"destinationElement\\\"]],[[[40,[[[1,\\\"        \\\"],[8,[30,4],[[17,5],[4,[38,9],[\\\"modalElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[18,6,[[28,[37,11],null,[[\\\"header\\\",\\\"body\\\",\\\"footer\\\",\\\"close\\\",\\\"submit\\\"],[[50,[28,[37,7],[[30,0,[\\\"headerComponent\\\"]]],null],0,null,[[\\\"onClose\\\"],[[30,0,[\\\"close\\\"]]]]],[28,[37,7],[[30,0,[\\\"bodyComponent\\\"]]],null],[50,[28,[37,7],[[30,0,[\\\"footerComponent\\\"]]],null],0,null,[[\\\"onClose\\\",\\\"onSubmit\\\"],[[30,0,[\\\"close\\\"]],[30,0,[\\\"doSubmit\\\"]]]]],[30,0,[\\\"close\\\"]],[30,0,[\\\"doSubmit\\\"]]]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldShowBackdrop\\\"]],[[[1,\\\"            \\\"],[11,0],[16,0,[29,[\\\"modal-backdrop \\\",[52,[30,0,[\\\"_fade\\\"]],\\\"fade\\\"],\\\" \\\",[52,[30,0,[\\\"showModal\\\"]],\\\"show\\\"]]]],[4,[38,9],[\\\"backdropElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,14],[[30,0,[\\\"destinationElement\\\"]]],null],null],[1,\\\"    \\\"]],[]],null]],[]]]],[4]]]],[]],null]],[\\\"@open\\\",\\\"@size\\\",\\\"@fullscreen\\\",\\\"Dialog\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"did-insert-helper\\\",\\\"did-update-helper\\\",\\\"if\\\",\\\"unless\\\",\\\"on-window\\\",\\\"let\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-eq\\\",\\\"create-ref\\\",\\\"yield\\\",\\\"hash\\\",\\\"div\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  function nextRunloop() {\n    return new Promise(resolve => (0, _runloop.next)(resolve, undefined));\n  }\n  function afterRender() {\n    return new Promise(resolve => (0, _runloop.schedule)('afterRender', resolve, undefined));\n  }\n  /**\n    Component for creating [Bootstrap modals](http://getbootstrap.com/javascript/#modals) with custom markup.\n  \n    ### Usage\n  \n    ```hbs\n    <BsModal @onSubmit={{this.submit}} as |modal|>\n      <modal.header>\n        <h4 class=\"modal-title\"><i class=\"glyphicon glyphicon-alert\"></i> Alert</h4>\n      </modal.header>\n      <modal.body>\n        Are you absolutely sure you want to do that???\n      </modal.body>\n      <modal.footer as |footer|>\n        <BsButton @onClick={{modal.close}} @type=\"danger\">Oh no, forget it!</BsButton>\n        <BsButton @onClick={{modal.submit}} @type=\"success\">Yeah!</BsButton>\n      </modal.footer>\n    </BsModal>\n    ```\n  \n    The component yields references to the following contextual components, that you can use to further customize the output:\n  \n    * [modal.body](Components.ModalBody.html)\n    * [modal.header](Components.ModalHeader.html)\n    * [modal.footer](Components.ModalFooter.html)\n  \n    Furthermore references to the following actions are yielded:\n  \n    * `close`: triggers the `onHide` action and closes the modal\n    * `submit`: triggers the `onSubmit` action (or the submit event on a form if present in the body element)\n  \n    ### Further reading\n  \n    See the documentation of the [bs-modal-simple](Components.ModalSimple.html) component for further examples.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Modal\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let Modal = _exports.default = (_dec = (0, _service.inject)('-document'), _dec2 = (0, _usesTransition.default)('_fade'), _dec3 = (0, _emberRefBucket.ref)('modalElement'), _dec4 = (0, _emberRefBucket.ref)('backdropElement'), (_class = class Modal extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"document\", _descriptor, this);\n      /**\n       * @property _isOpen\n       * @private\n       */\n      _defineProperty(this, \"_isOpen\", false);\n      /**\n       * Visibility of the modal. Toggle to show/hide with CSS transitions.\n       *\n       * When the modal is closed by user interaction this property will not update by using two-way bindings in order\n       * to follow DDAU best practices. If you want to react to such changes, subscribe to the `onHide` action\n       *\n       * @property open\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"open\", _descriptor2, this);\n      /**\n       * Used to apply Bootstrap's visibility classes.\n       *\n       * @property showModal\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"showModal\", _descriptor3, this);\n      /**\n       * Render modal markup?\n       *\n       * @property inDom\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"inDom\", _descriptor4, this);\n      /**\n       * @property paddingLeft\n       * @type number|undefined\n       * @private\n       */\n      _initializerDefineProperty(this, \"paddingLeft\", _descriptor5, this);\n      /**\n       * @property paddingRight\n       * @type number|undefined\n       * @private\n       */\n      _initializerDefineProperty(this, \"paddingRight\", _descriptor6, this);\n      /**\n       * Use a semi-transparent modal background to hide the rest of the page.\n       *\n       * @property backdrop\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"backdrop\", _descriptor7, this);\n      /**\n       * @property shouldShowBackdrop\n       * @type boolean\n       * @private\n       */\n      _initializerDefineProperty(this, \"shouldShowBackdrop\", _descriptor8, this);\n      /**\n       * Closes the modal when escape key is pressed.\n       *\n       * @property keyboard\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"keyboard\", _descriptor9, this);\n      /**\n       * [BS4 only!] Vertical position, either 'top' (default) or 'center'\n       * 'center' will apply the `modal-dialog-centered` class\n       *\n       * @property position\n       * @type {string}\n       * @default 'top'\n       * @public\n       */\n      _initializerDefineProperty(this, \"position\", _descriptor10, this);\n      /**\n       * [BS4 only!] Allows scrolling within the modal body\n       * 'true' will apply the `modal-dialog-scrollable` class\n       *\n       * @property scrollable\n       * @type boolean\n       * @default false\n       * @public\n       */\n      _initializerDefineProperty(this, \"scrollable\", _descriptor11, this);\n      /**\n       *  [BS5 only!] Allows adding fullscreen mode for modals. It will\n       *  apply the `modal-fullscreen` class when using `true` and\n       *  `modal-fullscreen-[x]-down` class when using BS breakpoints\n       *   ([x] = `sm`, `md`, `lg`, `xl`, `xxl`).\n       *\n       * Also see the [Bootstrap docs](https://getbootstrap.com/docs/5.1/components/modal/#fullscreen-modal)\n       *\n       * @property fullscreen\n       * @type {(Boolean|String)}\n       * @default false\n       * @public\n       */\n      /**\n       * @property dialogComponent\n       * @type {String}\n       * @private\n       */\n      /**\n       * @property headerComponent\n       * @type {String}\n       * @private\n       */\n      /**\n       * @property bodyComponent\n       * @type {String}\n       * @private\n       */\n      /**\n       * @property footerComponent\n       * @type {String}\n       * @private\n       */\n      /**\n       * Property for size styling, set to null (default), 'lg' or 'sm'\n       *\n       * Also see the [Bootstrap docs](http://getbootstrap.com/javascript/#modals-sizes)\n       *\n       * @property size\n       * @type String\n       * @public\n       */\n      /**\n       * If true clicking on the backdrop will close the modal.\n       *\n       * @property backdropClose\n       * @type boolean\n       * @default true\n       * @public\n       */\n      _initializerDefineProperty(this, \"backdropClose\", _descriptor12, this);\n      /**\n       * If true component will render in place, rather than be wormholed.\n       *\n       * @property renderInPlace\n       * @type boolean\n       * @default false\n       * @public\n       */\n      _initializerDefineProperty(this, \"renderInPlace\", _descriptor13, this);\n      /**\n       * The duration of the fade transition\n       *\n       * @property transitionDuration\n       * @type number\n       * @default 300\n       * @public\n       */\n      _initializerDefineProperty(this, \"transitionDuration\", _descriptor14, this);\n      /**\n       * The duration of the backdrop fade transition\n       *\n       * @property backdropTransitionDuration\n       * @type number\n       * @default 150\n       * @public\n       */\n      _initializerDefineProperty(this, \"backdropTransitionDuration\", _descriptor15, this);\n      /**\n       * Use CSS transitions?\n       *\n       * @property usesTransition\n       * @type boolean\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"usesTransition\", _descriptor16, this);\n      _defineProperty(this, \"destinationElement\", (0, _dom.getDestinationElement)(this));\n      /**\n       * The DOM element of the `.modal` element.\n       *\n       * @property modalElement\n       * @type HTMLElement\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"modalElement\", _descriptor17, this);\n      /**\n       * The DOM element of the backdrop element.\n       *\n       * @property backdropElement\n       * @type HTMLElement\n       * @readonly\n       * @private\n       */\n      _initializerDefineProperty(this, \"backdropElement\", _descriptor18, this);\n      /**\n       * @type boolean\n       * @readonly\n       * @private\n       */\n      _defineProperty(this, \"isFastBoot\", (0, _isFastboot.default)(this));\n      /**\n       * The action to be sent when the modal footer's submit button (if present) is pressed.\n       * Note that if your modal body contains a form (e.g. [Components.Form](Components.Form.html)) this action will\n       * not be triggered. Instead, a submit event will be triggered on the form itself. See the class description for an\n       * example.\n       *\n       * @property onSubmit\n       * @type function\n       * @public\n       */\n      /**\n       * The action to be sent when the modal is closing.\n       * This will be triggered by pressing the modal header's close button (x button) or the modal footer's close button.\n       * Note that this will happen before the modal is hidden from the DOM, as the fade transitions will still need some\n       * time to finish. Use the `onHidden` if you need the modal to be hidden when the action triggers.\n       *\n       * You can return false to prevent closing the modal automatically, and do that in your action by\n       * setting `open` to false.\n       *\n       * @property onHide\n       * @type function\n       * @public\n       */\n      /**\n       * The action to be sent after the modal has been completely hidden (including the CSS transition).\n       *\n       * @property onHidden\n       * @type function\n       * @default null\n       * @public\n       */\n      /**\n       * The action to be sent when the modal is opening.\n       * This will be triggered immediately after the modal is shown (so it's safe to access the DOM for\n       * size calculations and the like). This means that if fade=true, it will be shown in between the\n       * backdrop animation and the fade animation.\n       *\n       * @property onShow\n       * @type function\n       * @default null\n       * @public\n       */\n      /**\n       * The action to be sent after the modal has been completely shown (including the CSS transition).\n       *\n       * @property onShown\n       * @type function\n       * @public\n       */\n      /**\n       * @private\n       */\n      _defineProperty(this, \"bodyIsOverflowing\", false);\n      /**\n       * @private\n       */\n      _defineProperty(this, \"_originalBodyPad\", '');\n    }\n    /**\n     * Set to false to disable fade animations.\n     *\n     * @property fade\n     * @type boolean\n     * @default true\n     * @public\n     */\n\n    get _fade() {\n      const isFB = (0, _isFastboot.default)(this);\n      return this.args.fade === undefined ? !isFB : this.args.fade;\n    }\n    /**\n     * @property _renderInPlace\n     * @type boolean\n     * @private\n     */\n    get _renderInPlace() {\n      return this.renderInPlace || !this.destinationElement;\n    }\n    close() {\n      if (this.args.onHide?.() !== false) {\n        this.hide();\n      }\n    }\n    doSubmit() {\n      const forms = this.modalElement.querySelectorAll('.modal-body form');\n      if (forms.length > 0) {\n        // trigger submit event on body forms\n        const event = document.createEvent('Events');\n        event.initEvent('submit', true, true);\n        Array.prototype.slice.call(forms).forEach(form => form.dispatchEvent(event));\n      } else {\n        // if we have no form, we send a submit action\n        this.args.onSubmit?.();\n      }\n    }\n\n    /**\n     * Show the modal\n     *\n     * @method show\n     * @private\n     */\n    async show() {\n      if (this._isOpen) {\n        return;\n      }\n      this._isOpen = true;\n      this.addBodyClass();\n      this.inDom = true;\n      await this.showBackdrop();\n      if (this.isDestroyed) {\n        return;\n      }\n      if (!(0, _isFastboot.default)(this)) {\n        this.checkScrollbar();\n        this.setScrollbar();\n      }\n      await afterRender();\n      const {\n        modalElement\n      } = this;\n      if (!modalElement) {\n        return;\n      }\n      if (!(0, _isFastboot.default)(this)) {\n        modalElement.scrollTop = 0;\n        this.adjustDialog();\n      }\n      this.showModal = true;\n      this.args.onShow?.();\n      if (this.usesTransition) {\n        await (0, _transitionEnd.default)(modalElement, this.transitionDuration);\n      }\n      this.args.onShown?.();\n    }\n\n    /**\n     * Hide the modal\n     *\n     * @method hide\n     * @private\n     */\n    async hide() {\n      if (!this._isOpen) {\n        return;\n      }\n      this._isOpen = false;\n      this.showModal = false;\n      if (this.usesTransition) {\n        await (0, _transitionEnd.default)(this.modalElement, this.transitionDuration);\n      }\n      await this.hideModal();\n    }\n\n    /**\n     * Clean up after modal is hidden and call onHidden\n     *\n     * @method hideModal\n     * @private\n     */\n    async hideModal() {\n      if (this.isDestroyed) {\n        return;\n      }\n      await this.hideBackdrop();\n      this.removeBodyClass();\n      if (!(0, _isFastboot.default)(this)) {\n        this.resetAdjustments();\n        this.resetScrollbar();\n      }\n      this.inDom = false;\n      this.args.onHidden?.();\n    }\n\n    /**\n     * Show the backdrop\n     *\n     * @method showBackdrop\n     * @async\n     * @private\n     */\n    async showBackdrop() {\n      if (!this.backdrop || !this.usesTransition) {\n        return;\n      }\n      this.shouldShowBackdrop = true;\n      await nextRunloop();\n      const {\n        backdropElement\n      } = this;\n      (false && !(backdropElement) && (0, _debug.assert)('Backdrop element should be in DOM', backdropElement));\n      await (0, _transitionEnd.default)(backdropElement, this.backdropTransitionDuration);\n    }\n\n    /**\n     * Hide the backdrop\n     *\n     * @method hideBackdrop\n     * @async\n     * @private\n     */\n    async hideBackdrop() {\n      if (!this.backdrop) {\n        return;\n      }\n      if (this.usesTransition) {\n        const {\n          backdropElement\n        } = this;\n        (false && !(backdropElement) && (0, _debug.assert)('Backdrop element should be in DOM', backdropElement));\n        await (0, _transitionEnd.default)(backdropElement, this.backdropTransitionDuration);\n      }\n      if (this.isDestroyed) {\n        return;\n      }\n      this.shouldShowBackdrop = false;\n    }\n\n    /**\n     * @method adjustDialog\n     * @private\n     */\n    adjustDialog() {\n      const modalIsOverflowing = this.modalElement.scrollHeight > document.documentElement.clientHeight;\n      this.paddingLeft = !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : undefined;\n      this.paddingRight = this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : undefined;\n    }\n\n    /**\n     * @method resetAdjustments\n     * @private\n     */\n    resetAdjustments() {\n      this.paddingLeft = undefined;\n      this.paddingRight = undefined;\n    }\n\n    /**\n     * @method checkScrollbar\n     * @private\n     */\n    checkScrollbar() {\n      const fullWindowWidth = window.innerWidth;\n      this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth;\n    }\n\n    /**\n     * @method setScrollbar\n     * @private\n     */\n    setScrollbar() {\n      const bodyPad = parseInt(document.body.style.paddingRight || '0', 10);\n      this._originalBodyPad = document.body.style.paddingRight || '';\n      if (this.bodyIsOverflowing) {\n        document.body.style.paddingRight = `${bodyPad + this.scrollbarWidth}`;\n      }\n    }\n\n    /**\n     * @method resetScrollbar\n     * @private\n     */\n    resetScrollbar() {\n      document.body.style.paddingRight = this._originalBodyPad;\n    }\n    addBodyClass() {\n      // special handling for FastBoot, where real `document` is not available\n      if ((0, _isFastboot.default)(this)) {\n        // a SimpleDOM instance with just a subset of the DOM API!\n        const document = this.document;\n        const existingClasses = document.body.getAttribute('class') || '';\n        if (!existingClasses.includes('modal-open')) {\n          document.body.setAttribute('class', `modal-open ${existingClasses}`);\n        }\n      } else {\n        document.body.classList.add('modal-open');\n      }\n    }\n    removeBodyClass() {\n      if ((0, _isFastboot.default)(this)) {\n        // no need for FastBoot support here\n        return;\n      }\n      document.body.classList.remove('modal-open');\n    }\n\n    /**\n     * @property scrollbarWidth\n     * @type number\n     * @readonly\n     * @private\n     */\n    get scrollbarWidth() {\n      const scrollDiv = document.createElement('div');\n      scrollDiv.className = 'modal-scrollbar-measure';\n      const modalEl = this.modalElement;\n      if (!modalEl.parentNode || !scrollDiv.parentNode) {\n        return 0;\n      }\n      modalEl.parentNode.insertBefore(scrollDiv, modalEl.nextSibling);\n      const scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n      scrollDiv.parentNode.removeChild(scrollDiv);\n      return scrollbarWidth;\n    }\n    get dialogComponent() {\n      return this.args.dialogComponent ?? _dialog.default;\n    }\n    get headerComponent() {\n      return this.args.headerComponent ?? _header.default;\n    }\n    get footerComponent() {\n      return this.args.footerComponent ?? _footer.default;\n    }\n    get bodyComponent() {\n      return this.args.bodyComponent ?? _body.default;\n    }\n    willDestroy(...rest) {\n      super.willDestroy(...rest);\n      this.removeBodyClass();\n      if (!(0, _isFastboot.default)(this)) {\n        this.resetScrollbar();\n      }\n    }\n    handleVisibilityChanges() {\n      if (this.open) {\n        this.show();\n      } else {\n        this.hide();\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"document\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"open\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.open && (!this._fade || (0, _isFastboot.default)(this));\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"inDom\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.open;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"paddingLeft\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"paddingRight\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"backdrop\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"shouldShowBackdrop\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.open && this.backdrop;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"keyboard\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"position\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'top';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"scrollable\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"backdropClose\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"renderInPlace\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"transitionDuration\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 300;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"backdropTransitionDuration\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 150;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"usesTransition\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"modalElement\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"backdropElement\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"doSubmit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"doSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"adjustDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"adjustDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"scrollbarWidth\", [_tracking.cached], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollbarWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleVisibilityChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleVisibilityChanges\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Modal);\n});","define(\"ember-bootstrap/components/bs-modal/body\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"modal-body\" ...attributes>\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"LxLYUoML\",\n    \"block\": \"[[[11,0],[24,0,\\\"modal-body\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/body.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *\n   * Modal body element used within [Components.Modal](Components.Modal.html) components. See there for examples.\n   *\n   * @class ModalBody\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-modal/dialog\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@glimmer/component\", \"@ember/runloop\", \"ember-ref-bucket\", \"@glimmer/tracking\", \"@ember/object/internals\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _component2, _runloop, _emberRefBucket, _tracking, _internals, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/utils\",0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"ember-ref-bucket\",0,\"@glimmer/tracking\",0,\"@ember/object/internals\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    role=\"dialog\"\n    tabindex=\"-1\"\n    aria-labelledby={{this.titleId}}\n    class=\"modal {{if @fade \"fade\"}} {{if @showModal \"show\"}} {{if @inDom \"d-block\"}}\"\n    ...attributes\n    {{on \"keydown\" this.handleKeyDown}}\n    {{on \"mousedown\" this.handleMouseDown}}\n    {{on \"mouseup\" this.handleMouseUp}}\n    {{on \"click\" this.handleClick}}\n    {{style\n      paddingLeft=(concat @paddingLeft \"px\")\n      paddingRight=(concat @paddingRight \"px\")\n      display=(if @inDom \"block\" \"\")\n    }}\n    {{create-ref \"mainNode\"}}\n    {{did-insert this.getOrSetTitleId}}\n    {{did-insert this.setInitialFocus}}\n  >\n    <div\n      class=\"modal-dialog\n        {{this.sizeClass}}\n        {{if @centered \"modal-dialog-centered\"}}\n        {{if @scrollable \"modal-dialog-scrollable\"}}\n        {{if\n          (macroCondition (macroGetOwnConfig \"isBS5\"))\n          (if\n            @fullscreen (if (bs-eq @fullscreen true) \"modal-fullscreen\" (concat \"modal-fullscreen-\" @fullscreen \"-down\"))\n          )\n        }}\n        \"\n      role=\"document\"\n    >\n      <div\n        class=\"modal-content\"\n        tabindex=\"-1\"\n        {{focus-trap shouldSelfFocus=true focusTrapOptions=(hash clickOutsideDeactivates=@backdropClose fallbackFocus=\".modal\" escapeDeactivates=@keyboard)}}\n      >\n        {{yield}}\n      </div>\n    </div>\n  </div>\n  \n  */\n  {\n    \"id\": \"xbaaMYd4\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"dialog\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[16,\\\"aria-labelledby\\\",[30,0,[\\\"titleId\\\"]]],[16,0,[29,[\\\"modal \\\",[52,[30,1],\\\"fade\\\"],\\\" \\\",[52,[30,2],\\\"show\\\"],\\\" \\\",[52,[30,3],\\\"d-block\\\"]]]],[17,4],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleKeyDown\\\"]]],null],[4,[38,2],[\\\"mousedown\\\",[30,0,[\\\"handleMouseDown\\\"]]],null],[4,[38,2],[\\\"mouseup\\\",[30,0,[\\\"handleMouseUp\\\"]]],null],[4,[38,2],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[4,[38,3],null,[[\\\"paddingLeft\\\",\\\"paddingRight\\\",\\\"display\\\"],[[28,[37,4],[[30,5],\\\"px\\\"],null],[28,[37,4],[[30,6],\\\"px\\\"],null],[52,[30,3],\\\"block\\\",\\\"\\\"]]]],[4,[38,5],[\\\"mainNode\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[4,[38,6],[[30,0,[\\\"getOrSetTitleId\\\"]]],null],[4,[38,6],[[30,0,[\\\"setInitialFocus\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"modal-dialog\\\\n      \\\",[30,0,[\\\"sizeClass\\\"]],\\\"\\\\n      \\\",[52,[30,7],\\\"modal-dialog-centered\\\"],\\\"\\\\n      \\\",[52,[30,8],\\\"modal-dialog-scrollable\\\"],\\\"\\\\n      \\\",[52,[30,9],[52,[28,[37,7],[[30,9],true],null],\\\"modal-fullscreen\\\",[28,[37,4],[\\\"modal-fullscreen-\\\",[30,9],\\\"-down\\\"],null]]],\\\"\\\\n      \\\"]]],[14,\\\"role\\\",\\\"document\\\"],[12],[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,8],null,[[\\\"shouldSelfFocus\\\",\\\"focusTrapOptions\\\"],[true,[28,[37,9],null,[[\\\"clickOutsideDeactivates\\\",\\\"fallbackFocus\\\",\\\"escapeDeactivates\\\"],[[30,10],\\\".modal\\\",[30,11]]]]]]],[12],[1,\\\"\\\\n      \\\"],[18,12,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@fade\\\",\\\"@showModal\\\",\\\"@inDom\\\",\\\"&attrs\\\",\\\"@paddingLeft\\\",\\\"@paddingRight\\\",\\\"@centered\\\",\\\"@scrollable\\\",\\\"@fullscreen\\\",\\\"@backdropClose\\\",\\\"@keyboard\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"style\\\",\\\"concat\\\",\\\"create-ref\\\",\\\"did-insert\\\",\\\"bs-eq\\\",\\\"focus-trap\\\",\\\"hash\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Internal component for modal's markup and event handling. Should not be used directly.\n   *\n   * @class ModalDialog\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @private\n   */\n  let ModalDialog = _exports.default = (_dec = (0, _emberRefBucket.ref)('mainNode'), (_class = class ModalDialog extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property id\n       * @type null | HTMLElement\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      /**\n       * The id of the `.modal-title` element\n       *\n       * @property titleId\n       * @type string\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"titleId\", _descriptor2, this);\n      /**\n       * If true clicking on the backdrop will be ignored and will not close modal.\n       *\n       * @property ignoreBackdropClick\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _defineProperty(this, \"ignoreBackdropClick\", false);\n      /**\n       * The target DOM element of mouse down event.\n       *\n       * @property mouseDownElement\n       * @type object\n       * @default null\n       * @private\n       */\n      _defineProperty(this, \"mouseDownElement\", null);\n    }\n    /**\n     * Name of the size class\n     *\n     * @property sizeClass\n     * @type string\n     * @readOnly\n     * @private\n     */\n    get sizeClass() {\n      const size = this.args.size;\n      return (0, _utils.isBlank)(size) ? null : `modal-${size}`;\n    }\n    /**\n     * Gets or sets the id of the title element for aria accessibility tags\n     *\n     * @method getSetTitleID\n     * @private\n     */\n    getOrSetTitleId(modalNode) {\n      // Title element may be set by user, so we have to try and find it to set the id\n      let nodeId = null;\n      if (modalNode) {\n        const titleNode = modalNode.querySelector('.modal-title');\n        if (titleNode) {\n          //Get title id of .modal-title\n          nodeId = titleNode.id;\n          if (!nodeId) {\n            //no title id so we set one\n            nodeId = `${(0, _internals.guidFor)(this)}-title`;\n            titleNode.id = nodeId;\n          }\n        }\n      }\n      this.titleId = nodeId;\n    }\n    setInitialFocus(element) {\n      const autofocus = element && element.querySelector('[autofocus]');\n      if (autofocus instanceof HTMLElement) {\n        (0, _runloop.next)(() => autofocus.focus());\n      }\n    }\n    /**\n     * @event onClose\n     * @public\n     */\n\n    handleKeyDown(e) {\n      const code = e.keyCode || e.which;\n      if (code === 27 && this.args.keyboard) {\n        this.args.onClose?.();\n      }\n    }\n    handleClick(e) {\n      if (this.ignoreBackdropClick) {\n        this.ignoreBackdropClick = false;\n        return;\n      }\n      if (e.target !== this._element || !this.args.backdropClose) {\n        return;\n      }\n      this.args.onClose?.();\n    }\n    handleMouseDown(e) {\n      this.mouseDownElement = e.target;\n    }\n    handleMouseUp(e) {\n      if (this.mouseDownElement !== this._element && e.target === this._element) {\n        this.ignoreBackdropClick = true;\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"titleId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getOrSetTitleId\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"getOrSetTitleId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInitialFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInitialFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseUp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseUp\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ModalDialog);\n});","define(\"ember-bootstrap/components/bs-modal/footer\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let (ensure-safe-component (bs-default @buttonComponent (component \"bs-button\"))) as |Button|}}\n    <div class=\"modal-footer\" ...attributes {{on \"submit\" (bs-default @onSubmit (bs-noop))}}>\n      {{#if (has-block)}}\n        {{yield}}\n      {{else}}\n        {{#if @submitTitle}}\n          <Button @onClick={{@onClose}}>{{bs-default @closeTitle \"Ok\"}}</Button>\n          <Button\n            @type={{bs-default @submitButtonType \"primary\"}}\n            @onClick={{@onSubmit}}\n            {{bs-conditional-attribute \"disabled\" @submitDisabled \"disabled\"}}\n          >\n            {{@submitTitle}}\n          </Button>\n        {{else}}\n          <Button @type=\"primary\" @onClick={{@onClose}}>{{bs-default @closeTitle \"Ok\"}}</Button>\n        {{/if}}\n      {{/if}}\n    </div>\n  {{/let}}\n  \n  */\n  {\n    \"id\": \"gam01l0y\",\n    \"block\": \"[[[44,[[28,[37,1],[[28,[37,2],[[30,1],[50,\\\"bs-button\\\",0,null,null]],null]],null]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"modal-footer\\\"],[17,3],[4,[38,5],[\\\"submit\\\",[28,[37,2],[[30,4],[28,[37,6],null,null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,10]],[[[1,\\\"      \\\"],[18,10,null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,5],[[[1,\\\"        \\\"],[8,[30,2],null,[[\\\"@onClick\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,[28,[35,2],[[30,7],\\\"Ok\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,2],[[4,[38,10],[\\\"disabled\\\",[30,9],\\\"disabled\\\"],null]],[[\\\"@type\\\",\\\"@onClick\\\"],[[28,[37,2],[[30,8],\\\"primary\\\"],null],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,5]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,2],null,[[\\\"@type\\\",\\\"@onClick\\\"],[\\\"primary\\\",[30,6]]],[[\\\"default\\\"],[[[[1,[28,[35,2],[[30,7],\\\"Ok\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[\\\"@buttonComponent\\\",\\\"Button\\\",\\\"&attrs\\\",\\\"@onSubmit\\\",\\\"@submitTitle\\\",\\\"@onClose\\\",\\\"@closeTitle\\\",\\\"@submitButtonType\\\",\\\"@submitDisabled\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\",\\\"div\\\",\\\"on\\\",\\\"bs-noop\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"bs-conditional-attribute\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/footer.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *\n   * Modal footer element used within [Components.Modal](Components.Modal.html) components. See there for examples.\n   *\n   * @class ModalFooter\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @public\n   */\n\n  /**\n   * The title of the default close button. Will be ignored (i.e. no close button) if you provide your own block\n   * template.\n   *\n   * @property closeTitle\n   * @type string\n   * @default 'Ok'\n   * @public\n   */\n\n  /**\n   * The title of the submit button (primary button). Will be ignored (i.e. no button) if set to `null` or if you provide\n   * your own block template.\n   *\n   * @property submitTitle\n   * @type string\n   * @default null\n   * @public\n   */\n\n  /**\n   * Set to `true` to disable the submit button. If you bind this to some property that indicates if submitting is allowed\n   * (form validation for example) this can be used to prevent the user from pressing the submit button.\n   *\n   * @property submitDisabled\n   * @type boolean\n   * @default false\n   * @public\n   */\n\n  /**\n   * The type of the submit button (primary button).\n   *\n   * @property submitButtonType\n   * @type string\n   * @default 'primary'\n   * @public\n   */\n\n  /**\n   * @property buttonComponent\n   * @type {String}\n   * @private\n   */\n\n  /**\n   * The action to send to the parent modal component when the modal footer's form is submitted\n   *\n   * @event onSubmit\n   * @public\n   */\n\n  /**\n   * @event onClose\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-modal/header\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let\n    (ensure-safe-component (bs-default @titleComponent (component \"bs-modal/header/title\")))\n    (component (ensure-safe-component (bs-default @closeComponent (component \"bs-modal/header/close\"))) onClick=@onClose)\n  as |Title Close|\n  }}\n    <div class=\"modal-header\" ...attributes>\n      {{#if (has-block-params)}}\n        {{yield\n          (hash\n            title=Title\n            close=Close\n          )\n        }}\n      {{else}}\n        {{#if (has-block)}}\n          {{yield\n            (hash\n              title=Title\n              close=Close\n            )\n          }}\n        {{else}}\n          <Title>{{@title}}</Title>\n        {{/if}}\n        {{#if (bs-default @closeButton true)}}\n          <Close/>\n        {{/if}}\n      {{/if}}\n    </div>\n  {{/let}}\n  */\n  {\n    \"id\": \"WiuThVkK\",\n    \"block\": \"[[[44,[[28,[37,1],[[28,[37,2],[[30,1],[50,\\\"bs-modal/header/title\\\",0,null,null]],null]],null],[50,[28,[37,1],[[28,[37,2],[[30,2],[50,\\\"bs-modal/header/close\\\",0,null,null]],null]],null],0,null,[[\\\"onClick\\\"],[[30,3]]]]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"modal-header\\\"],[17,6],[12],[1,\\\"\\\\n\\\"],[41,[49,[30,9]],[[[1,\\\"      \\\"],[18,9,[[28,[37,8],null,[[\\\"title\\\",\\\"close\\\"],[[30,4],[30,5]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,9]],[[[1,\\\"        \\\"],[18,9,[[28,[37,8],null,[[\\\"title\\\",\\\"close\\\"],[[30,4],[30,5]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,4],null,null,[[\\\"default\\\"],[[[[1,[30,7]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,2],[[30,8],true],null],[[[1,\\\"        \\\"],[8,[30,5],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]]]],[\\\"@titleComponent\\\",\\\"@closeComponent\\\",\\\"@onClose\\\",\\\"Title\\\",\\\"Close\\\",\\\"&attrs\\\",\\\"@title\\\",\\\"@closeButton\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"has-block-params\\\",\\\"yield\\\",\\\"hash\\\",\\\"has-block\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/header.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *\n   * Modal header element used within [Components.Modal](Components.Modal.html) components. See there for examples.\n   *\n   * @class ModalHeader\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @public\n   */\n\n  /**\n   * Show a close button (x icon)\n   *\n   * @property closeButton\n   * @type boolean\n   * @default true\n   * @public\n   */\n\n  /**\n   * The title to display in the modal header\n   *\n   * @property title\n   * @type string\n   * @default null\n   * @public\n   */\n\n  /**\n   * @property titleComponent\n   * @type {String}\n   * @private\n   */\n\n  /**\n   * @property closeComponent\n   * @type {String}\n   * @private\n   */\n\n  /**\n   * @event onClose\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-modal/header/close\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <button type=\"button\" aria-label=\"Close\" class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"btn-close\" \"close\"}} ...attributes {{on \"click\" (bs-default @onClick (bs-noop))}}>\n    {{#if (macroCondition (macroGetOwnConfig \"isBS4\"))}}<span aria-hidden=\"true\">&times;</span>{{/if}}\n  </button>\n  */\n  {\n    \"id\": \"N85YEY0y\",\n    \"block\": \"[[[11,\\\"button\\\"],[24,4,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,0,\\\"btn-close\\\"],[17,1],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,2],[28,[37,3],null,null]],null]],null],[12],[1,\\\"\\\\n  \\\"],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@onClick\\\"],false,[\\\"button\\\",\\\"on\\\",\\\"bs-default\\\",\\\"bs-noop\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/header/close.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *\n   * @class ModalHeaderClose\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @private\n   */\n\n  /**\n   * @event onClick\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-modal/header/title\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h5 class=\"modal-title\" ...attributes>\n    {{yield}}\n  </h5>\n  \n  */\n  {\n    \"id\": \"CTRjE56V\",\n    \"block\": \"[[[11,\\\"h5\\\"],[24,0,\\\"modal-title\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"h5\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-modal/header/title.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *\n   * @class ModalHeaderTitle\n   * @namespace Components\n   * @extends Glimmer.Component\n   * @private\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-nav\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <ul class=\"nav {{this.typeClass}} {{this.additionalClass}} {{if this.justified \"nav-justified\"}} {{if this.stacked \"flex-column\"}} {{if this.fill \"nav-fill\"}}\" ...attributes>\n    {{yield\n      (hash\n        item=(ensure-safe-component (bs-default @itemComponent (component \"bs-nav/item\")))\n        link-to=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"nav-link\")))\n        linkTo=(ensure-safe-component (bs-default @linkToComponent (component \"bs-link-to\" attrClassInternal=\"nav-link\")))\n        dropdown=(component (ensure-safe-component (bs-default @dropdownComponent (component \"bs-dropdown\"))) inNav=true htmlTag=\"li\")\n      )\n    }}\n  </ul>\n  */\n  {\n    \"id\": \"ln9xq0fE\",\n    \"block\": \"[[[11,\\\"ul\\\"],[16,0,[29,[\\\"nav \\\",[30,0,[\\\"typeClass\\\"]],\\\" \\\",[30,0,[\\\"additionalClass\\\"]],\\\" \\\",[52,[30,0,[\\\"justified\\\"]],\\\"nav-justified\\\"],\\\" \\\",[52,[30,0,[\\\"stacked\\\"]],\\\"flex-column\\\"],\\\" \\\",[52,[30,0,[\\\"fill\\\"]],\\\"nav-fill\\\"]]]],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,5,[[28,[37,3],null,[[\\\"item\\\",\\\"link-to\\\",\\\"linkTo\\\",\\\"dropdown\\\"],[[28,[37,4],[[28,[37,5],[[30,2],[50,\\\"bs-nav/item\\\",0,null,null]],null]],null],[28,[37,4],[[28,[37,5],[[30,3],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"nav-link\\\"]]]],null]],null],[28,[37,4],[[28,[37,5],[[30,3],[50,\\\"bs-link-to\\\",0,null,[[\\\"attrClassInternal\\\"],[\\\"nav-link\\\"]]]],null]],null],[50,[28,[37,4],[[28,[37,5],[[30,4],[50,\\\"bs-dropdown\\\",0,null,null]],null]],null],0,null,[[\\\"inNav\\\",\\\"htmlTag\\\"],[true,\\\"li\\\"]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@itemComponent\\\",\\\"@linkToComponent\\\",\\\"@dropdownComponent\\\",\\\"&default\\\"],false,[\\\"ul\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-nav.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Component to generate [bootstrap navs](http://getbootstrap.com/components/#nav)\n  \n    ### Usage\n  \n    Use in combination with the yielded components\n  \n    * [Components.NavItem](Components.NavItem.html)\n    * [`nav.dropdown`](Components.Dropdown.html)\n  \n    ```hbs\n    <BsNav @type=\"pills\" as |nav|>\n      <nav.item>\n        <nav.linkTo @route=\"foo\">\n          Foo\n        </nav.linkTo>\n      </nav.item>\n      <nav.item>\n        <nav.linkTo @route=\"bar\" @model={{this.model}}>\n          Bar\n        </nav.linkTo>\n      </nav.item>\n    </BsNav>\n    ```\n  \n    > Note: the use of angle brackets `<nav.linkTo>` as shown above is only supported for Ember >= 3.10, as it relies on\n    > Ember's native implementation of the [`LinkComponent`](https://api.emberjs.com/ember/3.12/classes/Ember.Templates.helpers/methods/link-to?anchor=link-to).\n    > For older Ember versions please use the legacy syntax with positional arguments: `{{#nav.link-to \"bar\" this.model}}Bar{{/nav.link-to}}`\n  \n    ### Nav styles\n  \n    The component supports the default bootstrap nav styling options \"pills\" and \"tabs\" through the `type`\n    property, as well as the `justified`, `fill` and `stacked` properties.\n  \n    ### Active items\n  \n    Bootstrap 3 expects to have the `active` class on the `<li>` element that should be the active (highlighted)\n    navigation item. To achieve that use the `@route` and optionally `@model` (or `@models`) and `@query` properties\n    of the yielded `nav.linkTo` component just as you would for Ember's `<LinkTo>` component to create a link with proper\n    `active` class support.\n  \n    ### Dropdowns\n  \n    Use the `nav.dropdown` contextual version of the [Components.Dropdown](Components.Dropdown.html) component\n    with a `tagName` of \"li\" to integrate a dropdown into your nav:\n  \n    ```hbs\n    <BsNav @type=\"pills\" as |nav|>\n      <nav.item>\n        <nav.linkTo @route=\"index\">\n          Home\n        </nav.linkTo>\n      </nav.item>\n      <nav.dropdown as |dd|>\n        <dd.toggle>Dropdown <span class=\"caret\"></span></dd.toggle>\n        <dd.menu as |ddm|>\n          <ddm.item><ddm.linkTo @route=\"foo\">Foo</ddm.linkTo></ddm.item>\n          <ddm.item><ddm.linkTo @route=\"bar\">Bar</ddm.linkTo></ddm.item>\n        </dd.menu>\n      </nav.dropdown>\n    </BsNav>\n    ```\n  \n    ### Bootstrap 3/4 Notes\n  \n    Use [`nav.linkTo`](Components.NavLinkTo.html) for in-app links to ensure proper styling regardless of\n    Bootstrap version. Explicit use of `<a>` tags in Bootstrap 4 must apply the `nav-link` class and manage\n    the `active` state explicitly.\n  \n    The `fill` styling is only available with Bootstrap 4\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Nav\n    @namespace Components\n    @extends Component\n    @public\n  \n   */\n  class Nav extends _component2.default {\n    get typeClass() {\n      let type = this.type;\n      return type ? `nav-${type}` : undefined;\n    }\n\n    /**\n     * Special type of nav, either \"pills\" or \"tabs\"\n     *\n     * @property type\n     * @type String\n     * @default null\n     * @public\n     */\n    get type() {\n      return this.args.type ?? null;\n    }\n\n    /**\n     * Make the nav justified, see [bootstrap docs](http://getbootstrap.com/components/#nav-justified)\n     *\n     * @property justified\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get justified() {\n      return this.args.justified ?? false;\n    }\n\n    /**\n     * Make the nav pills stacked, see [bootstrap docs](http://getbootstrap.com/components/#nav-pills)\n     *\n     * @property stacked\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get stacked() {\n      return this.args.stacked ?? false;\n    }\n\n    /**\n     * Make the nav flex fill (BS4 only), see [bootstrap docs](http://getbootstrap.com/docs/4.1/components/navs/#fill-and-justify)\n     *\n     * @property fill\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get fill() {\n      return this.args.fill ?? false;\n    }\n\n    /**\n     * @property itemComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property linkToComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property dropdownComponent\n     * @type {String}\n     * @private\n     */\n  }\n  _exports.default = Nav;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Nav);\n});","define(\"ember-bootstrap/components/bs-nav/item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/debug\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _debug, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{!-- template-lint-disable no-invalid-interactive --}}\n  <li class=\"nav-item\" ...attributes {{on \"click\" this.handleClick}}>\n    {{yield}}\n  </li>\n  \n  */\n  {\n    \"id\": \"6wRb+OhH\",\n    \"block\": \"[[[11,\\\"li\\\"],[24,0,\\\"nav-item\\\"],[17,1],[4,[38,1],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"li\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-nav/item.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Component for each item within a [Components.Nav](Components.Nav.html) component. Have a look there for examples.\n  \n   @class NavItem\n   @namespace Components\n   @extends Component\n   @public\n   */\n  let NavItem = _exports.default = (_class = class NavItem extends _component2.default {\n    /**\n     * Called when clicking the nav item\n     *\n     * @event onClick\n     * @public\n     */\n\n    handleClick() {\n      this.args.onClick?.();\n    }\n    constructor(owner, args) {\n      super(owner, args);\n      let {\n        model,\n        models\n      } = this;\n      (false && !(!model || !models) && (0, _debug.assert)('You cannot pass both `@model` and `@models` to a nav item component!', !model || !models));\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, NavItem);\n});","define(\"ember-bootstrap/components/bs-navbar\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/debug\", \"@ember/utils\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _tracking, _debug, _utils, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/debug\",0,\"@ember/utils\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{!-- template-lint-disable no-duplicate-landmark-elements --}}\n  {{#let\n    (hash\n      toggle=(component (ensure-safe-component (bs-default @toggleComponent (component \"bs-navbar/toggle\"))) onClick=this.toggleNavbar collapsed=this.collapsed)\n      content=(component (ensure-safe-component (bs-default @contentComponent (component \"bs-navbar/content\"))) collapsed=this.collapsed onHidden=this.onCollapsed onShown=this.onExpanded)\n      nav=(component\n        (ensure-safe-component (bs-default @navComponent (component \"bs-navbar/nav\")))\n        linkToComponent=(component \"bs-navbar/link-to\" onCollapse=this.collapse attrClassInternal=\"nav-link\")\n      )\n      collapse=this.collapse\n      expand=this.expand\n      toggleNavbar=this.toggleNavbar\n    ) as |yieldedHash|}}\n    <nav class=\"navbar {{this.positionClass}} {{this.typeClass}} {{this.breakpointClass}} {{this.backgroundClass}}\" ...attributes>\n      {{#if (macroCondition (macroGetOwnConfig \"isBS4\"))}}\n        {{#if this.fluid}}\n          {{yield yieldedHash}}\n        {{else}}\n          <div class=\"container\">\n            {{yield yieldedHash}}\n          </div>\n        {{/if}}\n      {{else}}\n        <div class={{this.containerClass}}>\n          {{yield yieldedHash}}\n        </div>\n      {{/if}}\n    </nav>\n  {{/let}}\n  */\n  {\n    \"id\": \"vU1Ltc0S\",\n    \"block\": \"[[[44,[[28,[37,1],null,[[\\\"toggle\\\",\\\"content\\\",\\\"nav\\\",\\\"collapse\\\",\\\"expand\\\",\\\"toggleNavbar\\\"],[[50,[28,[37,3],[[28,[37,4],[[30,1],[50,\\\"bs-navbar/toggle\\\",0,null,null]],null]],null],0,null,[[\\\"onClick\\\",\\\"collapsed\\\"],[[30,0,[\\\"toggleNavbar\\\"]],[30,0,[\\\"collapsed\\\"]]]]],[50,[28,[37,3],[[28,[37,4],[[30,2],[50,\\\"bs-navbar/content\\\",0,null,null]],null]],null],0,null,[[\\\"collapsed\\\",\\\"onHidden\\\",\\\"onShown\\\"],[[30,0,[\\\"collapsed\\\"]],[30,0,[\\\"onCollapsed\\\"]],[30,0,[\\\"onExpanded\\\"]]]]],[50,[28,[37,3],[[28,[37,4],[[30,3],[50,\\\"bs-navbar/nav\\\",0,null,null]],null]],null],0,null,[[\\\"linkToComponent\\\"],[[50,\\\"bs-navbar/link-to\\\",0,null,[[\\\"onCollapse\\\",\\\"attrClassInternal\\\"],[[30,0,[\\\"collapse\\\"]],\\\"nav-link\\\"]]]]]],[30,0,[\\\"collapse\\\"]],[30,0,[\\\"expand\\\"]],[30,0,[\\\"toggleNavbar\\\"]]]]]],[[[1,\\\"  \\\"],[11,\\\"nav\\\"],[16,0,[29,[\\\"navbar \\\",[30,0,[\\\"positionClass\\\"]],\\\" \\\",[30,0,[\\\"typeClass\\\"]],\\\" \\\",[30,0,[\\\"breakpointClass\\\"]],\\\" \\\",[30,0,[\\\"backgroundClass\\\"]]]]],[17,5],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[15,0,[30,0,[\\\"containerClass\\\"]]],[12],[1,\\\"\\\\n        \\\"],[18,6,[[30,4]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]]],[\\\"@toggleComponent\\\",\\\"@contentComponent\\\",\\\"@navComponent\\\",\\\"yieldedHash\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"nav\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-navbar.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Component to generate [Bootstrap navbars](http://getbootstrap.com/components/#navbar).\n  \n    ### Usage\n  \n    Uses the following components by a contextual reference:\n  \n    ```hbs\n    <BsNavbar as |navbar|>\n      <a class=\"navbar-brand\" href=\"#\">Brand</a>\n      <navbar.toggle />\n      <navbar.content>\n        <navbar.nav as |nav|>\n          <nav.item>\n            <nav.linkTo @route=\"home\">Home</nav.linkTo>\n          </nav.item>\n          <nav.item>\n            <nav.linkTo @route=\"navbars\">Navbars</nav.linkTo>\n          </nav.item>\n        </navbar.nav>\n      </navbar.content>\n    </BsNavbar>\n    ```\n  \n    The component yields references to the following contextual components:\n  \n    * [Components.NavbarContent](Components.NavbarContent.html)\n    * [Components.NavbarToggle](Components.NavbarToggle.html)\n    * [Components.NavbarNav](Components.NavbarNav.html)\n  \n    Furthermore, references to the following actions are yielded:\n  \n    * `collapse`: triggers the `onCollapse` action and collapses the navbar (mobile)\n    * `expand`: triggers the `onExpand` action and expands the navbar (mobile)\n    * `toggleNavbar`: triggers the `toggleNavbar` action and toggles the navbar (mobile)\n  \n    ### Responsive Design\n  \n    For the mobile breakpoint the Bootstrap styles will hide the navbar content (`{{navbar.content}}`). Clicking on the\n    navbar toggle button (`{{navbar.toggle}}`) will expand the menu. By default, all nav links (`<nav.linkTo @route=\"...\">`) are already\n    wired up to call the navbar's `collapse` action, so clicking any of them will collapse the navbar. To selectively\n    prevent that, you can set its `collapseNavbar` property to false:\n  \n    ```hbs\n    <nav.item>\n      <nav.linkTo @route=\"index\" @collapseNavbar={{false}}>Don't collapse</nav.linkTo>\n    </nav.item>\n    ```\n  \n    To collapse the navbar when clicking on some nav items that are not internal links, you can use the yielded `collapse`\n    action:\n  \n    ```hbs\n    <BsNavbar as |navbar|>\n      <navbar.content>\n        <navbar.nav as |nav|>\n          <nav.item>\n            <a {{on \"click\" navbar.collapse}}>Collapse</a>\n          </nav.item>\n        </navbar.nav>\n      </navbar.content>\n    </BsNavbar>\n    ```\n  \n    ### Navbar styles\n  \n    The component supports the default bootstrap navbar styling options through the `type`\n    property. Bootstrap navbars [do not currently support justified nav links](http://getbootstrap.com/components/#navbar-default),\n    so those are explicitly disallowed.\n  \n    Other bootstrap navbar variations, such as forms, buttons, etc. can be supported through direct use of\n    bootstrap styles applied through the `class` attribute on the components.\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Navbar\n    @namespace Components\n    @extends Component\n    @public\n  */\n  let Navbar = _exports.default = (_class = class Navbar extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property _toggledCollapse\n       * @private\n       */\n      _initializerDefineProperty(this, \"_toggledCollapse\", _descriptor, this);\n    }\n    /**\n     * Manages the state for the responsive menu between the toggle and the content.\n     *\n     * @property collapsed\n     * @type boolean\n     * @default true\n     * @public\n     */\n    get collapsed() {\n      return this._toggledCollapse ?? this.args.collapsed ?? true;\n    }\n    /**\n     * Controls whether the wrapping div is a fluid container or not.\n     *\n     * @property fluid\n     * @type boolean\n     * @default true\n     * @public\n     */\n    get fluid() {\n      return this.args.fluid ?? true;\n    }\n\n    /**\n     * BS5 only: Allows to override the container layout, see https://getbootstrap.com/docs/5.0/components/navbar/#containers.\n     * Allowed values: `'sm'`, `'md'`, `'lg'`, `'xl'`, `'xxl'`, `'fluid'`, see https://getbootstrap.com/docs/5.0/layout/containers/.\n     * By default, it is `.container-fluid`, or `.container` if the `@fluid` argument is set to false.\n     *\n     * @property container\n     * @type string\n     * @public\n     */\n\n    get containerClass() {\n      const {\n        container\n      } = this.args;\n      if (container) {\n        return `container-${container}`;\n      }\n      return this.fluid ? 'container-fluid' : 'container';\n    }\n\n    /**\n     * Specifies the position classes for the navbar, currently supporting none, \"fixed-top\", \"fixed-bottom\", and\n     * \"sticky-top\".\n     * See the [bootstrap docs](http://getbootstrap.com/components/#navbar-fixed-top) for details.\n     *\n     * @property position\n     * @type String\n     * @default null\n     * @public\n     */\n    get position() {\n      return this.args.position ?? null;\n    }\n    get positionClass() {\n      let position = this.position;\n      let validPositions = ['fixed-top', 'fixed-bottom', 'sticky-top'];\n      if (validPositions.indexOf(position) === -1) {\n        return null;\n      }\n      return position;\n    }\n\n    /**\n     * Property for type styling\n     *\n     * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/navbar/#color-schemes)\n     *\n     * @property type\n     * @type String\n     * @default 'light'\n     * @public\n     */\n    get type() {\n      return this.args.type ?? 'light';\n    }\n    get typeClass() {\n      let type = this.type || 'light';\n      (false && !(typeof type === 'string' && type !== '') && (0, _debug.assert)('The value of `type` must be a string', typeof type === 'string' && type !== ''));\n      return `navbar-${type}`;\n    }\n\n    /**\n     * The action to be sent when the navbar is about to be collapsed.\n     *\n     * You can return false to prevent collapsing the navbar automatically, and do that in your action by\n     * setting `collapsed` to true.\n     *\n     * @event onCollapse\n     * @public\n     */\n\n    /**\n     * The action to be sent after the navbar has been collapsed (including the CSS transition).\n     *\n     * @event onCollapsed\n     * @public\n     */\n    get onCollapsed() {\n      return this.args.onCollapsed ?? (() => {});\n    }\n\n    /**\n     * The action to be sent when the navbar is about to be expanded.\n     *\n     * You can return false to prevent expanding the navbar automatically, and do that in your action by\n     * setting `collapsed` to false.\n     *\n     * @event onExpand\n     * @public\n     */\n\n    /**\n     * The action to be sent after the navbar has been expanded (including the CSS transition).\n     *\n     * @event onExpanded\n     * @public\n     */\n    get onExpanded() {\n      return this.args.onExpanded ?? (() => {});\n    }\n\n    /**\n     * @method expand\n     * @private\n     */\n    expand() {\n      if (this.args.onExpand?.() === false) {\n        return;\n      }\n      this._toggledCollapse = false;\n    }\n\n    /**\n     * @method collapse\n     * @private\n     */\n    collapse() {\n      if (this.args.onCollapse?.() === false) {\n        return;\n      }\n      this._toggledCollapse = true;\n    }\n    toggleNavbar() {\n      if (this.collapsed) {\n        this.expand();\n      } else {\n        this.collapse();\n      }\n    }\n\n    /**\n     * Bootstrap 4 Only: Defines the responsive toggle breakpoint size. Options are the standard\n     * two character Bootstrap size abbreviations. Used to set the `navbar-expand-*`\n     * class. Set to `null` to disable collapsing.\n     *\n     * @property toggleBreakpoint\n     * @type String\n     * @default 'lg'\n     * @public\n     */\n    get toggleBreakpoint() {\n      if (this.args.toggleBreakpoint === undefined) {\n        return 'lg';\n      }\n      return this.args.toggleBreakpoint;\n    }\n\n    /**\n     * Bootstrap 4 Only: Sets the background color for the navbar. Can be any color\n     * in the set that composes the `bg-*` classes and can be extended by creating your\n     * own `bg-*` classes.\n     *\n     * @property backgroundColor\n     * @type String\n     * @default 'light'\n     * @public\n     */\n    get backgroundColor() {\n      return this.args.backgroundColor ?? 'light';\n    }\n    get breakpointClass() {\n      let toggleBreakpoint = this.toggleBreakpoint;\n      if ((0, _utils.isBlank)(toggleBreakpoint)) {\n        return 'navbar-expand';\n      } else {\n        return `navbar-expand-${toggleBreakpoint}`;\n      }\n    }\n    get backgroundClass() {\n      return `bg-${this.backgroundColor}`;\n    }\n\n    /**\n     * @property toggleComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property contentComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property navComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property linkToComponent\n     * @type {String}\n     * @private\n     */\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_toggledCollapse\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"expand\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"expand\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"collapse\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"collapse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleNavbar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleNavbar\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Navbar);\n});","define(\"ember-bootstrap/components/bs-navbar/content\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <BsCollapse\n    @collapsed={{@collapsed}}\n    @onHidden={{@onHidden}}\n    @onShown={{@onShown}}\n    class=\"navbar-collapse\"\n    ...attributes\n  >\n    {{yield}}\n  </BsCollapse>\n  \n  */\n  {\n    \"id\": \"UA5o+uis\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"navbar-collapse\\\"],[17,1]],[[\\\"@collapsed\\\",\\\"@onHidden\\\",\\\"@onShown\\\"],[[30,2],[30,3],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@collapsed\\\",\\\"@onHidden\\\",\\\"@onShown\\\",\\\"&default\\\"],false,[\\\"bs-collapse\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-navbar/content.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   * Component to wrap the collapsible content of a [Components.Navbar](Components.Navbar.html) component.\n   * Have a look there for examples.\n   *\n   * @class NavbarContent\n   * @namespace Components\n   * @extends Components.Collapse\n   * @public\n   */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-bootstrap/components/bs-navbar/link-to\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <BsLinkTo\n    @route={{@route}}\n    @model={{@model}}\n    @models={{@models}}\n    @query={{@query}}\n    @disabled={{@disabled}}\n    {{on 'click' this.onClick}}\n    class={{@attrClassInternal}}\n    ...attributes\n  >\n    {{yield}}\n  </BsLinkTo>\n  */\n  {\n    \"id\": \"JGa2+8r5\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,1]],[17,2],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onClick\\\"]]],null]],[[\\\"@route\\\",\\\"@model\\\",\\\"@models\\\",\\\"@query\\\",\\\"@disabled\\\"],[[30,3],[30,4],[30,5],[30,6],[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,8,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@attrClassInternal\\\",\\\"&attrs\\\",\\\"@route\\\",\\\"@model\\\",\\\"@models\\\",\\\"@query\\\",\\\"@disabled\\\",\\\"&default\\\"],false,[\\\"bs-link-to\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-navbar/link-to.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   * Extended `{{link-to}}` component for use within Navbars.\n   *\n   * @class NavbarLinkTo\n   * @namespace Components\n   * @extends Components.NavLinkTo\n   * @public\n   */\n  let NavbarLinkTo = _exports.default = (_class = class NavbarLinkTo extends _component2.default {\n    /**\n     * @property collapseNavbar\n     * @type {Boolean}\n     * @default true\n     * @public\n     */\n\n    onClick() {\n      if (this.args.collapseNavbar ?? true) {\n        this.args.onCollapse();\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, NavbarLinkTo);\n});","define(\"ember-bootstrap/components/bs-navbar/nav\", [\"exports\", \"ember-bootstrap/components/bs-nav\"], function (_exports, _bsNav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-nav\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  /**\n   * Component for the `.nav` element within a [Components.Navbar](Components.Navbar.html)\n   * component. Have a look there for examples.\n   *\n   * Per [the bootstrap docs](http://getbootstrap.com/components/#navbar),\n   * justified navbar nav links are not supported.\n   *\n   * @class NavbarNav\n   * @namespace Components\n   * @extends Components.Nav\n   * @public\n   */\n  class NavbarNav extends _bsNav.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"additionalClass\", 'navbar-nav');\n    }\n    get justified() {\n      return this.args.justified ?? false;\n    }\n  }\n  _exports.default = NavbarNav;\n});","define(\"ember-bootstrap/components/bs-navbar/toggle\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/modifier\", \"@ember/template-factory\"], function (_exports, _component, _component2, _modifier, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <button\n    type=\"button\"\n    class=\"navbar-toggler\n    {{if (bs-default @collapsed true) \"collapsed\"}}\"\n    ...attributes\n    {{(if @onClick (modifier this.on \"click\" @onClick))}}\n  >\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      <span class=\"navbar-toggler-icon\"></span>\n    {{/if}}\n  </button>\n  \n  */\n  {\n    \"id\": \"BywmEww5\",\n    \"block\": \"[[[11,\\\"button\\\"],[24,4,\\\"button\\\"],[16,0,[29,[\\\"navbar-toggler\\\\n  \\\",[52,[28,[37,2],[[30,1],true],null],\\\"collapsed\\\"]]]],[17,2],[4,[52,[30,3],[50,[28,[37,4],[[30,0,[\\\"on\\\"]]],[[\\\"type\\\",\\\"loc\\\",\\\"original\\\"],[\\\"modifier\\\",\\\"('ember-bootstrap/components/bs-navbar/toggle.hbs' @ L7:C17) \\\",\\\"this.on\\\"]]],2,[\\\"click\\\",[30,3]],null]],null,null],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,4]],[[[1,\\\"    \\\"],[18,4,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"navbar-toggler-icon\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"]],[\\\"@collapsed\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"&default\\\"],false,[\\\"button\\\",\\\"if\\\",\\\"bs-default\\\",\\\"modifier\\\",\\\"-disallow-dynamic-resolution\\\",\\\"has-block\\\",\\\"yield\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-navbar/toggle.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   * Component to implement the responsive menu toggle behavior in a [Components.Navbar](Components.Navbar.html)\n   * component. Have a look there for examples.\n   *\n   * ### Bootstrap 3/4 Notes\n   *\n   * The inline version of the component uses the triple `icon-bar` styling for Bootstrap 3 and the\n   * `navbar-toggler-icon` styling for Bootstrap 4.\n   *\n   * @class NavbarToggle\n   * @namespace Components\n   * @extends Ember.Component\n   * @public\n   */\n  class NavbarToggle extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"on\", _modifier.on);\n    }\n  }\n  _exports.default = NavbarToggle;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, NavbarToggle);\n});","define(\"ember-bootstrap/components/bs-popover\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-contextual-help\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _bsContextualHelp, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-contextual-help\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{! template-lint-disable no-unbound }}\n  {{unbound this._parentFinder}}\n  {{#if this.inDom}}\n    {{#let (ensure-safe-component (bs-default @elementComponent (component \"bs-popover/element\"))) as |Element|}}\n      <Element\n        @placement={{this.placement}}\n        @fade={{this.fade}}\n        @showHelp={{this.showHelp}}\n        @title={{@title}}\n        @renderInPlace={{this._renderInPlace}}\n        @popperTarget={{this.triggerTargetElement}}\n        @destinationElement={{this.destinationElement}}\n        @autoPlacement={{this.autoPlacement}}\n        @viewportElement={{this.viewportElement}}\n        @viewportPadding={{this.viewportPadding}}\n  \n        {{create-ref \"overlayElement\"}}\n        ...attributes\n      >\n        {{yield\n          (hash\n            close=this.close\n          )\n        }}\n      </Element>\n    {{/let}}\n  {{/if}}\n  {{did-insert-helper this.setup}}\n  {{did-update-helper this.showOrHide @visible}}\n  */\n  {\n    \"id\": \"rcbcoADK\",\n    \"block\": \"[[[1,[28,[35,0],[[30,0,[\\\"_parentFinder\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"inDom\\\"]],[[[44,[[28,[37,3],[[28,[37,4],[[30,1],[50,\\\"bs-popover/element\\\",0,null,null]],null]],null]],[[[1,\\\"    \\\"],[8,[30,2],[[17,3],[4,[38,6],[\\\"overlayElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]]],[[\\\"@placement\\\",\\\"@fade\\\",\\\"@showHelp\\\",\\\"@title\\\",\\\"@renderInPlace\\\",\\\"@popperTarget\\\",\\\"@destinationElement\\\",\\\"@autoPlacement\\\",\\\"@viewportElement\\\",\\\"@viewportPadding\\\"],[[30,0,[\\\"placement\\\"]],[30,0,[\\\"fade\\\"]],[30,0,[\\\"showHelp\\\"]],[30,4],[30,0,[\\\"_renderInPlace\\\"]],[30,0,[\\\"triggerTargetElement\\\"]],[30,0,[\\\"destinationElement\\\"]],[30,0,[\\\"autoPlacement\\\"]],[30,0,[\\\"viewportElement\\\"]],[30,0,[\\\"viewportPadding\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,6,[[28,[37,8],null,[[\\\"close\\\"],[[30,0,[\\\"close\\\"]]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]],[]],null],[1,[28,[35,9],[[30,0,[\\\"setup\\\"]]],null]],[1,\\\"\\\\n\\\"],[1,[28,[35,10],[[30,0,[\\\"showOrHide\\\"]],[30,5]],null]]],[\\\"@elementComponent\\\",\\\"Element\\\",\\\"&attrs\\\",\\\"@title\\\",\\\"@visible\\\",\\\"&default\\\"],false,[\\\"unbound\\\",\\\"if\\\",\\\"let\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\",\\\"create-ref\\\",\\\"yield\\\",\\\"hash\\\",\\\"did-insert-helper\\\",\\\"did-update-helper\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-popover.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Component that implements Bootstrap [popovers](http://getbootstrap.com/javascript/#popovers).\n  \n    By default, it will attach its listeners (click) to the parent DOM element to trigger\n    the popover:\n  \n    ```hbs\n    <button class=\"btn\">\n      <BsPopover @title=\"this is a title\">and this the body</BsPopover>\n    </button>\n    ```\n  \n    ### Trigger\n  \n    The trigger element is the DOM element that will cause the popover to be shown when one of the trigger events occur on\n    that element. By default, the trigger element is the parent DOM element of the component, and the trigger event will be\n    \"click\".\n  \n    The `triggerElement` property accepts any CSS selector to attach the popover to any other existing DOM element.\n  \n    To customize the events that will trigger the popover use the `triggerEvents` property, that accepts an array or a\n    string of events, with \"hover\", \"focus\" and \"click\" being supported.\n  \n    ### Placement options\n  \n    By default, the popover will show up to the right of the trigger element. Use the `placement` property to change that\n    (\"top\", \"bottom\", \"left\" and \"right\"). To make sure the popover will not exceed the viewport (see Advanced customization)\n    you can set `autoPlacement` to true. A popover with `placement=\"right\" will be placed to the right if there is enough\n    space, otherwise to the left.\n  \n    ### Advanced customization\n  \n    Several other properties allow for some advanced customization:\n    * `visible` to show/hide the popover programmatically\n    * `fade` to disable the fade in transition\n    * `delay` (or `delayShow` and `delayHide`) to add a delay\n    * `viewportSelector` and `viewportPadding` to customize the viewport that affects `autoPlacement`\n    *  a `close` action is yielded, that allows you to close the tooltip:\n  \n    ```hbs\n    <BsPopover as |po| >This is a popover <button {{on \"click\" po.close}}>Close</button></BsPopover>\n    ```\n  \n    See the individual API docs for each property.\n  \n    ### Actions\n  \n    When you want to react on the popover being shown or hidden, you can use one of the following supported actions:\n    * `onShow`\n    * `onShown`\n    * `onHide`\n    * `onHidden`\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Popover\n    @namespace Components\n    @extends Components.ContextualHelp\n    @public\n  */\n  let Popover = _exports.default = (_class = class Popover extends _bsContextualHelp.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property placement\n       * @type string\n       * @default 'right'\n       * @public\n       */\n      _initializerDefineProperty(this, \"placement\", _descriptor, this);\n      /**\n       * @property triggerEvents\n       * @type array|string\n       * @default 'click'\n       * @public\n       */\n      _initializerDefineProperty(this, \"triggerEvents\", _descriptor2, this);\n    }\n    /**\n     * @property elementComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * The DOM element of the arrow element.\n     *\n     * @property arrowElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    get arrowElement() {\n      return this.overlayElement.querySelector('.arrow');\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"placement\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'right';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"triggerEvents\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'click';\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Popover);\n});","define(\"ember-bootstrap/components/bs-popover/element\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-contextual-help/element\", \"@ember/template-factory\"], function (_exports, _component, _element, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-contextual-help/element\",0,\"@embroider/macros\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @renderInPlace}}\n    <div\n      class=\"popover {{if this.fade \"fade\"}} {{this.actualPlacementClass}} {{if this.showHelp \"show\"}}\"\n      role=\"tooltip\"\n      ...attributes\n      {{popper-tooltip @popperTarget this.popperOptions}}\n      {{create-ref \"popperElement\"}}\n    >\n      <div class={{this.arrowClass}}></div>\n      {{#if @title}}\n        <h3 class=\"popover-header\">{{@title}}</h3>\n      {{/if}}\n      <div class=\"popover-body\">{{yield}}</div>\n    </div>\n  {{else}}\n    {{#in-element @destinationElement insertBefore=null}}\n      <div\n        class=\"popover {{if this.fade \"fade\"}} {{this.actualPlacementClass}} {{if this.showHelp \"show\"}}\"\n        role=\"tooltip\"\n        ...attributes\n        {{popper-tooltip @popperTarget this.popperOptions}}\n        {{create-ref \"popperElement\"}}\n      >\n        <div class={{this.arrowClass}}></div>\n        {{#if @title}}\n          <h3 class=\"popover-header\">{{@title}}</h3>\n        {{/if}}\n        <div class=\"popover-body\">{{yield}}</div>\n      </div>\n    {{/in-element}}\n  {{/if}}\n  \n  \n  */\n  {\n    \"id\": \"LXUo+xLT\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[16,0,[29,[\\\"popover \\\",[52,[30,0,[\\\"fade\\\"]],\\\"fade\\\"],\\\" \\\",[30,0,[\\\"actualPlacementClass\\\"]],\\\" \\\",[52,[30,0,[\\\"showHelp\\\"]],\\\"show\\\"]]]],[24,\\\"role\\\",\\\"tooltip\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[\\\"popperElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[30,0,[\\\"arrowClass\\\"]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[10,\\\"h3\\\"],[14,0,\\\"popover-header\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"popover-body\\\"],[12],[18,6,null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[40,[[[1,\\\"    \\\"],[11,0],[16,0,[29,[\\\"popover \\\",[52,[30,0,[\\\"fade\\\"]],\\\"fade\\\"],\\\" \\\",[30,0,[\\\"actualPlacementClass\\\"]],\\\" \\\",[52,[30,0,[\\\"showHelp\\\"]],\\\"show\\\"]]]],[24,\\\"role\\\",\\\"tooltip\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[\\\"popperElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[15,0,[30,0,[\\\"arrowClass\\\"]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"popover-header\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"popover-body\\\"],[12],[18,6,null],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,7],[[30,5]],null],null]],[]]],[1,\\\"\\\\n\\\"]],[\\\"@renderInPlace\\\",\\\"&attrs\\\",\\\"@popperTarget\\\",\\\"@title\\\",\\\"@destinationElement\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"popper-tooltip\\\",\\\"create-ref\\\",\\\"h3\\\",\\\"yield\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-popover/element.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   Internal component for popover's markup. Should not be used directly.\n  \n   @class PopoverElement\n   @namespace Components\n   @extends Components.ContextualHelpElement\n   @private\n   */\n  class PopoverElement extends _element.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * @property title\n       * @type string\n       * @public\n       */\n      _defineProperty(this, \"arrowClass\", 'popover-arrow');\n      _defineProperty(this, \"placementClassPrefix\", 'bs-popover-');\n      _defineProperty(this, \"offset\", [0, 8]);\n    }\n  }\n  _exports.default = PopoverElement;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PopoverElement);\n});","define(\"ember-bootstrap/components/bs-progress\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"progress\" ...attributes>\n    {{yield\n      (hash\n        bar=(bs-default @progressBarComponent (component \"bs-progress/bar\"))\n      )\n    }}\n  </div>\n  \n  */\n  {\n    \"id\": \"pjdZyOGJ\",\n    \"block\": \"[[[11,0],[24,0,\\\"progress\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,3,[[28,[37,2],null,[[\\\"bar\\\"],[[28,[37,3],[[30,2],[50,\\\"bs-progress/bar\\\",0,null,null]],null]]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@progressBarComponent\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"hash\\\",\\\"bs-default\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-progress.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Component to display a Bootstrap progress bar, see http://getbootstrap.com/components/#progress.\n  \n    ### Usage\n  \n    The component yields a [Components.ProgressBar](Components.ProgressBar.html) component that represents a single bar.\n    Use the `value` property to control the progress bar's width. To apply the different styling options supplied by\n    Bootstrap, use the appropriate properties like `type`, `showLabel`, `striped` or `animate`.\n  \n    ```hbs\n    <BsProgress as |pg| >\n      <pg.bar @value={{this.progressValue}} @minValue={{0}} @maxValue={{10}} @showLabel={{true}} @type=\"danger\" aria-label=\"Loading\" />\n    </BsProgress>\n    ```\n  \n    > Don't forget to add a `aria-label` attribute to the progress bar for accessibility!\n  \n    ### Stacked\n  \n    You can place multiple progress bar components in a single progress component to\n    create a stack of progress bars as seen in http://getbootstrap.com/components/#progress-stacked.\n  \n    ```hbs\n    <BsProgress as |pg| >\n      <pg.bar @value={{this.progressValue1}} @type=\"success\" />\n      <pg.bar @value={{this.progressValue2}} @type=\"warning\" />\n      <pg.bar @value={{this.progressValue3}} @type=\"danger\" />\n    </BsProgress>\n    ```\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Progress\n    @namespace Components\n    @extends Ember.Component\n    @public\n  */\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n  /**\n   * @property progressBarComponent\n   * @type {String}\n   * @private\n   */\n});","define(\"ember-bootstrap/components/bs-progress/bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    role=\"progressbar\"\n    aria-valuenow={{this.value}}\n    aria-valuemin={{this.minValue}}\n    aria-valuemax={{this.maxValue}}\n    class=\"progress-bar {{if this.striped \"progress-bar-striped\"}} {{this.typeClass}} {{if this.animate \"progress-bar-animated\"}}\"\n    ...attributes\n    {{style width=this.percentStyleValue}}\n  >\n    {{#if this.showLabel}}\n      {{#if (has-block)}}\n        {{yield this.percentRounded}}\n      {{else}}\n        {{this.percentRounded}}%\n      {{/if}}\n    {{else}}\n      {{#if (has-block)}}\n        <span class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\"}}>{{yield this.percentRounded}}</span>\n      {{else}}\n        <span class={{if (macroCondition (macroGetOwnConfig \"isBS5\")) \"visually-hidden\" \"sr-only\"}}>{{this.percentRounded}}%</span>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"2DCDMsD+\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"progressbar\\\"],[16,\\\"aria-valuenow\\\",[30,0,[\\\"value\\\"]]],[16,\\\"aria-valuemin\\\",[30,0,[\\\"minValue\\\"]]],[16,\\\"aria-valuemax\\\",[30,0,[\\\"maxValue\\\"]]],[16,0,[29,[\\\"progress-bar \\\",[52,[30,0,[\\\"striped\\\"]],\\\"progress-bar-striped\\\"],\\\" \\\",[30,0,[\\\"typeClass\\\"]],\\\" \\\",[52,[30,0,[\\\"animate\\\"]],\\\"progress-bar-animated\\\"]]]],[17,1],[4,[38,2],null,[[\\\"width\\\"],[[30,0,[\\\"percentStyleValue\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showLabel\\\"]],[[[41,[48,[30,2]],[[[1,\\\"      \\\"],[18,2,[[30,0,[\\\"percentRounded\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[30,0,[\\\"percentRounded\\\"]]],[1,\\\"%\\\\n\\\"]],[]]]],[]],[[[41,[48,[30,2]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"visually-hidden\\\"],[12],[18,2,[[30,0,[\\\"percentRounded\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"visually-hidden\\\"],[12],[1,[30,0,[\\\"percentRounded\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"style\\\",\\\"has-block\\\",\\\"yield\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-progress/bar.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   Component for a single progress bar, see [Components.Progress](Components.Progress.html) for more examples.\n  \n   @class ProgressBar\n   @namespace Components\n   @extends Ember.Component\n   @public\n   */\n  class ProgressBar extends _component2.default {\n    /**\n     * The lower limit of the value range\n     *\n     * @property minValue\n     * @type number\n     * @default 0\n     * @public\n     */\n    get minValue() {\n      return this.args.minValue ?? 0;\n    }\n\n    /**\n     * The upper limit of the value range\n     *\n     * @property maxValue\n     * @type number\n     * @default 100\n     * @public\n     */\n    get maxValue() {\n      return this.args.maxValue ?? 100;\n    }\n\n    /**\n     * The value the progress bar should represent\n     *\n     * @property value\n     * @type number\n     * @default 0\n     * @public\n     */\n    get value() {\n      return this.args.value ?? 0;\n    }\n\n    /**\n     If true a label will be shown inside the progress bar.\n      By default, it will be the percentage corresponding to the `value` property, rounded to `roundDigits` digits.\n     You can customize it by using the component with a block template, which the component yields the percentage\n     value to:\n      ```hbs\n     {{#bs-progress}}\n     {{#bs-progress-bar value=progressValue as |percent|}}{{progressValue}} ({{percent}}%){{/bs-progress-bar}}\n     {{/bs-progress}}\n     ```\n      @property showLabel\n     @type boolean\n     @default false\n     @public\n     */\n    get showLabel() {\n      return this.args.showLabel ?? false;\n    }\n\n    /**\n     * Create a striped effect, see http://getbootstrap.com/components/#progress-striped\n     *\n     * @property striped\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get striped() {\n      return this.args.striped ?? false;\n    }\n\n    /**\n     * Animate the stripes, see http://getbootstrap.com/components/#progress-animated\n     *\n     * @property animate\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get animate() {\n      return this.args.animate ?? false;\n    }\n\n    /**\n     * Specify to how many digits the progress bar label should be rounded.\n     *\n     * @property roundDigits\n     * @type number\n     * @default 0\n     * @public\n     */\n    get roundDigits() {\n      return this.args.roundDigits ?? 0;\n    }\n\n    /**\n     * Property for type styling\n     *\n     * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/progress/#backgrounds)\n     *\n     * @property type\n     * @type String\n     * @default 'default'\n     * @public\n     */\n    get type() {\n      return this.args.type ?? 'default';\n    }\n    get typeClass() {\n      return `bg-${this.type}`;\n    }\n\n    /**\n     * The percentage of `value`\n     *\n     * @property percent\n     * @type number\n     * @protected\n     * @readonly\n     */\n    get percent() {\n      // `parseFloat`'s types only accepts string values, but will handle numbers just fine.\n      // The casting here is meant to keep the type checking active without changing behaviour for\n      // consumers that still expect these values can be strings.\n      const value = parseFloat(this.value);\n      const minValue = parseFloat(this.minValue);\n      const maxValue = parseFloat(this.maxValue);\n      return Math.min(Math.max((value - minValue) / (maxValue - minValue), 0), 1) * 100;\n    }\n\n    /**\n     * The percentage of `value`, rounded to `roundDigits` digits\n     *\n     * @property percentRounded\n     * @type number\n     * @protected\n     * @readonly\n     */\n    get percentRounded() {\n      const roundFactor = Math.pow(10, this.roundDigits);\n      return Math.round(this.percent * roundFactor) / roundFactor;\n    }\n    get percentStyleValue() {\n      const percent = this.percent;\n      return !isNaN(percent) ? `${percent}%` : '';\n    }\n  }\n  _exports.default = ProgressBar;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ProgressBar);\n});","define(\"ember-bootstrap/components/bs-spinner\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"ember-bootstrap/utils/decorators/arg\", \"@ember/template-factory\"], function (_exports, _component, _component2, _arg, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-bootstrap/utils/decorators/arg\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"{{this.spinnerClass}} {{if @size (bs-size-class this.spinnerClass @size)}} {{bs-type-class 'text' @type default=\"primary\" outline=false}}\"\n    role=\"status\"\n    ...attributes\n  >\n    {{#if (has-block)}}\n      <span\n        class={{if\n          (macroCondition (macroGetOwnConfig \"isBS5\"))\n          \"visually-hidden\"\n          \"sr-only\"\n        }}\n      >{{yield}}</span>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"jogz6SUe\",\n    \"block\": \"[[[11,0],[16,0,[29,[[30,0,[\\\"spinnerClass\\\"]],\\\" \\\",[52,[30,1],[28,[37,2],[[30,0,[\\\"spinnerClass\\\"]],[30,1]],null]],\\\" \\\",[28,[37,3],[\\\"text\\\",[30,2]],[[\\\"default\\\",\\\"outline\\\"],[\\\"primary\\\",false]]]]]],[24,\\\"role\\\",\\\"status\\\"],[17,3],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,4]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"visually-hidden\\\"],[12],[18,4,null],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@size\\\",\\\"@type\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"bs-size-class\\\",\\\"bs-type-class\\\",\\\"has-block\\\",\\\"span\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-spinner.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Implements a [Spinner element](https://getbootstrap.com/docs/5.2/components/spinners/).\n  \n    ### Basic Usage\n  \n    ```hbs\n    <BsSpinner/>\n    <BsSpinner>Loading...</BsSpinner>\n    ```\n  \n    The (optional) component's block will render as visually invisible but accessible text for assistive technology like screen readers.\n  \n    ### Advanced Usage\n  \n    ```hbs\n    <BsSpinner @spinnerType=\"grow\" @size=\"sm\" @type=\"warning\"/>\n    ```\n  \n    ### Usage with `BsButton`\n  \n    ```hbs\n    <BsButton @onClick={{this.download}} as |button|>\n      Download\n      {{#if button.isPending}}\n        <BsSpinner @size=\"sm\"/>\n      {{/if}}\n    </BsButton>\n    ```\n  \n    @class Spinner\n    @namespace Components\n    @extends Glimmer.Component\n    @public\n  */\n  let BsSpinner = _exports.default = (_class = class BsSpinner extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      /**\n       * Property for size styling, set to 'sm'\n       *\n       * Also see the [Bootstrap docs](https://getbootstrap.com/docs/5.2/components/spinners/#size)\n       *\n       * @property size\n       * @type String\n       * @public\n       */\n      /**\n       * Property for type styling\n       *\n       * For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/5.2/components/spinners/#colors)\n       *\n       * @property type\n       * @type String\n       * @default 'primary'\n       * @public\n       */\n      /**\n       * Spinner type - 'border' or 'grow'\n       *\n       * @property spinnerType\n       * @type string\n       * @default 'border'\n       * @public\n       */\n      _initializerDefineProperty(this, \"spinnerType\", _descriptor, this);\n    }\n    get spinnerClass() {\n      return `spinner-${this.spinnerType}`;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"spinnerType\", [_arg.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'border';\n    }\n  })), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BsSpinner);\n});","define(\"ember-bootstrap/components/bs-tab\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@ember/utils\", \"ember-bootstrap/components/bs-tab/pane\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _utils, _pane, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/utils\",0,\"ember-bootstrap/components/bs-tab/pane\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div ...attributes {{did-update this.listenToActiveId @activeId}}>\n    {{#if this.customTabs}}\n      {{yield\n        (hash\n          pane=(component (ensure-safe-component (bs-default @paneComponent (component \"bs-tab/pane\"))) parent=this activeId=this.activeId fade=this.fade fadeTransition=this.fadeTransition registerChild=this.registerChild unregisterChild=this.unregisterChild)\n          activeId=this.activeId\n          select=this.select\n        )\n      }}\n    {{else}}\n      {{#let (ensure-safe-component (bs-default @navComponent (component \"bs-nav\"))) as |NavComponent|}}\n        <NavComponent @type={{this.type}} role=\"tablist\" as |Nav|>\n          {{#each this.navItems as |item|}}\n            {{#if item.isGroup}}\n              <Nav.dropdown class={{if (bs-contains item.childIds this.activeId) \"active\"}} role=\"presentation\" as |DD|>\n                <DD.toggle>{{item.groupTitle}} <span class=\"caret\"></span></DD.toggle>\n                <DD.menu as |Menu|>\n                  {{#each item.children as |subItem|}}\n                    <Menu.item>\n                      {{!-- template-lint-disable require-context-role --}}\n                      <a\n                        href=\"#{{subItem.id}}\"\n                        role=\"tab\"\n                        class=\"dropdown-item {{if (bs-eq this.activeId subItem.id) \"active\"}}\"\n                        {{on \"click\" (fn this.select subItem.id)}}\n                      >\n                        {{subItem.title}}\n                      </a>\n                    </Menu.item>\n                  {{/each}}\n                </DD.menu>\n              </Nav.dropdown>\n            {{else}}\n              <Nav.item @active={{bs-eq item.id this.activeId}} role=\"presentation\">\n                <a\n                  href=\"#{{item.id}}\"\n                  role=\"tab\"\n                  class=\"nav-link {{if (bs-eq this.activeId item.id) \"active\"}}\"\n                  aria-selected={{if (bs-eq this.activeId item.id) \"true\" \"false\"}}\n                  {{on \"click\" (fn this.select item.id)}}\n                >\n                  {{item.title}}\n                </a>\n              </Nav.item>\n            {{/if}}\n          {{/each}}\n        </NavComponent>\n      {{/let}}\n  \n      <div class=\"tab-content\">\n        {{yield\n          (hash\n            pane=(component (ensure-safe-component (bs-default @paneComponent (component \"bs-tab/pane\"))) parent=this activeId=this.activeId fade=this.fade fadeTransition=this.fadeTransition registerChild=this.registerChild unregisterChild=this.unregisterChild)\n            activeId=this.activeId\n            select=this.select\n          )\n        }}\n      </div>\n    {{/if}}\n  \n  </div>\n  \n  */\n  {\n    \"id\": \"NHFpKOHz\",\n    \"block\": \"[[[11,0],[17,1],[4,[38,1],[[30,0,[\\\"listenToActiveId\\\"]],[30,2]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"customTabs\\\"]],[[[1,\\\"    \\\"],[18,11,[[28,[37,4],null,[[\\\"pane\\\",\\\"activeId\\\",\\\"select\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,3],[50,\\\"bs-tab/pane\\\",0,null,null]],null]],null],0,null,[[\\\"parent\\\",\\\"activeId\\\",\\\"fade\\\",\\\"fadeTransition\\\",\\\"registerChild\\\",\\\"unregisterChild\\\"],[[30,0],[30,0,[\\\"activeId\\\"]],[30,0,[\\\"fade\\\"]],[30,0,[\\\"fadeTransition\\\"]],[30,0,[\\\"registerChild\\\"]],[30,0,[\\\"unregisterChild\\\"]]]]],[30,0,[\\\"activeId\\\"]],[30,0,[\\\"select\\\"]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[44,[[28,[37,6],[[28,[37,7],[[30,4],[50,\\\"bs-nav\\\",0,null,null]],null]],null]],[[[1,\\\"      \\\"],[8,[30,5],[[24,\\\"role\\\",\\\"tablist\\\"]],[[\\\"@type\\\"],[[30,0,[\\\"type\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"navItems\\\"]]],null]],null],null,[[[41,[30,7,[\\\"isGroup\\\"]],[[[1,\\\"            \\\"],[8,[30,6,[\\\"dropdown\\\"]],[[16,0,[52,[28,[37,11],[[30,7,[\\\"childIds\\\"]],[30,0,[\\\"activeId\\\"]]],null],\\\"active\\\"]],[24,\\\"role\\\",\\\"presentation\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,8,[\\\"toggle\\\"]],null,null,[[\\\"default\\\"],[[[[1,[30,7,[\\\"groupTitle\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"caret\\\"],[12],[13]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,8,[\\\"menu\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,7,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[8,[30,9,[\\\"item\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[11,3],[16,6,[29,[\\\"#\\\",[30,10,[\\\"id\\\"]]]]],[24,\\\"role\\\",\\\"tab\\\"],[16,0,[29,[\\\"dropdown-item \\\",[52,[28,[37,14],[[30,0,[\\\"activeId\\\"]],[30,10,[\\\"id\\\"]]],null],\\\"active\\\"]]]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"select\\\"]],[30,10,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[30,10,[\\\"title\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"              \\\"]],[9]]]]],[1,\\\"\\\\n            \\\"]],[8]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[30,6,[\\\"item\\\"]],[[24,\\\"role\\\",\\\"presentation\\\"]],[[\\\"@active\\\"],[[28,[37,14],[[30,7,[\\\"id\\\"]],[30,0,[\\\"activeId\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[11,3],[16,6,[29,[\\\"#\\\",[30,7,[\\\"id\\\"]]]]],[24,\\\"role\\\",\\\"tab\\\"],[16,0,[29,[\\\"nav-link \\\",[52,[28,[37,14],[[30,0,[\\\"activeId\\\"]],[30,7,[\\\"id\\\"]]],null],\\\"active\\\"]]]],[16,\\\"aria-selected\\\",[52,[28,[37,14],[[30,0,[\\\"activeId\\\"]],[30,7,[\\\"id\\\"]]],null],\\\"true\\\",\\\"false\\\"]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"select\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"title\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[7]],null],[1,\\\"      \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tab-content\\\"],[12],[1,\\\"\\\\n      \\\"],[18,11,[[28,[37,4],null,[[\\\"pane\\\",\\\"activeId\\\",\\\"select\\\"],[[50,[28,[37,6],[[28,[37,7],[[30,3],[50,\\\"bs-tab/pane\\\",0,null,null]],null]],null],0,null,[[\\\"parent\\\",\\\"activeId\\\",\\\"fade\\\",\\\"fadeTransition\\\",\\\"registerChild\\\",\\\"unregisterChild\\\"],[[30,0],[30,0,[\\\"activeId\\\"]],[30,0,[\\\"fade\\\"]],[30,0,[\\\"fadeTransition\\\"]],[30,0,[\\\"registerChild\\\"]],[30,0,[\\\"unregisterChild\\\"]]]]],[30,0,[\\\"activeId\\\"]],[30,0,[\\\"select\\\"]]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@activeId\\\",\\\"@paneComponent\\\",\\\"@navComponent\\\",\\\"NavComponent\\\",\\\"Nav\\\",\\\"item\\\",\\\"DD\\\",\\\"Menu\\\",\\\"subItem\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"let\\\",\\\"each\\\",\\\"-track-array\\\",\\\"bs-contains\\\",\\\"span\\\",\\\"a\\\",\\\"bs-eq\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-tab.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n    Tab component for dynamic tab functionality that mimics the behaviour of Bootstrap's tab.js plugin,\n    see http://getbootstrap.com/javascript/#tabs\n  \n    ### Usage\n  \n    Just nest any number of yielded [Components.TabPane](Components.TabPane.html) components that hold the tab content.\n    The tab navigation is automatically generated from the tab panes' `title` property:\n  \n    ```hbs\n    <BsTab as |tab|>\n      <tab.pane @title=\"Tab 1\">\n        <p> ... </p>\n      </tab.pane>\n      <tab.pane @title=\"Tab 2\">\n        <p> ... </p>\n      </tab.pane>\n    </BsTab>\n    ```\n  \n    ### Groupable (dropdown) tabs\n  \n    Bootstrap's support for dropdown menus as tab navigation is mimiced by the use of the `groupTitle` property.\n    All panes with the same `groupTitle` will be put inside the menu of a [Components.Dropdown](Components.Dropdown.html)\n    component with `groupTitle` being the dropdown's title:\n  \n    ```hbs\n    <BsTab as |tab|>\n      <tab.pane @title=\"Tab 1\">\n        <p> ... </p>\n      </tab.pane>\n      <tab.pane @title=\"Tab 2\">\n        <p> ... </p>\n      </tab.pane>\n      <tab.pane @title=\"Tab 3\" @groupTitle=\"Dropdown\">\n        <p> ... </p>\n      </tab.pane>\n      <tab.pane @title=\"Tab 4\" @groupTitle=\"Dropdown\">\n        <p> ... </p>\n      </tab.pane>\n    </BsTab>\n    ```\n  \n    ### Custom tabs\n  \n    When having the tab pane's `title` as the tab navigation title is not sufficient, for example because you want to\n    integrate some other dynamic content, maybe even other components in the tab navigation item, then you have to set up\n    your navigation by yourself.\n  \n    Set `customTabs` to true to deactivate the automatic tab navigation generation. Then set up your navigation, probably\n    using a [Components.Nav](Components.Nav.html) component. The tab component yields the `activeId` property as well as\n    its `select` action, which you would have to use to manually set the `active` state of the navigation items and to\n    trigger the selection of the different tab panes, using their ids:\n  \n    ```hbs\n    <BsTab @customTabs={{true}} as |tab|>\n      <BsNav @type=\"tabs\" as |nav|>\n        <nav.item @active={{bs-eq tab.activeId \"pane1\"}}><a href=\"#pane1\" role=\"tab\" {{on \"click\" (fn tab.select \"pane1\")}}>Tab 1</a></nav.item>\n        <nav.item @active={{bs-eq tab.activeId \"pane2\"}}><a href=\"#pane2\" role=\"tab\" {{on \"click\" (fn tab.select \"pane2\")}}>Tab 2 <span class=\"badge\">{{badge}}</span></a></nav.item>\n      </BsNav>\n      <div class=\"tab-content\">\n        <tab.pane @id=\"pane1\" @title=\"Tab 1\">\n          <p> ... </p>\n        </tab.pane>\n        <tab.pane @id=\"pane2\" @title=\"Tab 2\">\n          <p> ... </p>\n        </tab.pane>\n      </div>\n    </BsTab>\n    ```\n  \n    Note that the `bs-eq` helper used in the example above is a private helper, which is not guaranteed to be available for\n    the future. Better use the corresponding `eq` helper of the\n    [ember-truth-helpers](https://github.com/jmurphyau/ember-truth-helpers) addon for example!\n  \n    ### Routable tabs\n  \n    The tab component purpose is to have panes of content, that are all in DOM at the same time and that are activated and\n    deactivated dynamically, just as the  original Bootstrap implementation.\n  \n    If you want to have the content delivered through individual sub routes, just use\n    the [Components.Nav](Components.Nav.html) component and an `{{outlet}}` that show the nested routes' content:\n  \n    ```hbs\n    <div>\n      <BsNav @type=\"tabs\" as |nav|>\n        <nav.item>\n          <nav.linkTo @route=\"tabs.index\">Tab 1</nav.linkTo>\n        </nav.item>\n        <nav.item>\n          <nav.linkTo @route=\"tabs.other\">Tab 3</nav.linkTo>\n        </nav.item>\n      </BsNav>\n    </div>\n    ```\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Tab\n    @namespace Components\n    @extends Component\n    @public\n  */\n  let Tab = _exports.default = (_class = class Tab extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      /**\n       * @property selectedId\n       * @private\n       */\n      _initializerDefineProperty(this, \"selectedId\", _descriptor2, this);\n    }\n    /**\n     * Type of nav, either \"pills\" or \"tabs\"\n     *\n     * @property type\n     * @type String\n     * @default 'tabs'\n     * @public\n     */\n    get type() {\n      return this.args.type ?? 'tabs';\n    }\n\n    /**\n     * @property paneComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * @property navComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * By default, the tabs will be automatically generated using the available [TabPane](Components.TabPane.html)\n     * components. If set to true, you can deactivate this and set up the tabs manually. See the example above.\n     *\n     * @property customTabs\n     * @type boolean\n     * @default false\n     * @public\n     */\n    get customTabs() {\n      return this.args.customTabs ?? false;\n    }\n    /**\n     * The id (`id`) of the active [TabPane](Components.TabPane.html).\n     * By default, the first tab will be active, but this can be changed by setting this property\n     *\n     * ```hbs\n     * {{#bs-tab activeId=\"pane2\"}}\n     *   {{#tab.pane id=\"pane1\" title=\"Tab 1\"}}\n     *      ...\n     *   {{/tab.pane}}\n     *   {{#tab.pane id=\"pane1\" title=\"Tab 1\"}}\n     *     ...\n     *   {{/tab.pane}}\n     * {{/bs-tab}}\n     * ```\n     *\n     * When the selection is changed by user interaction this property will not update by using two-way bindings in order\n     * to follow DDAU best practices. If you want to react to such changes, subscribe to the `onChange` action\n     *\n     * @property activeId\n     * @type string\n     * @public\n     */\n    get activeId() {\n      return this.selectedId ?? this.childPanes[0]?.id;\n    }\n    /**\n     * Set to false to disable the fade animation when switching tabs.\n     *\n     * @property fade\n     * @type boolean\n     * @default true\n     * @public\n     */\n    get fade() {\n      return this.args.fade ?? true;\n    }\n\n    /**\n     * The duration of the fade animation\n     *\n     * @property fadeDuration\n     * @type number\n     * @default 150\n     * @public\n     */\n    get fadeDuration() {\n      return this.args.fadeDuration ?? 150;\n    }\n\n    /**\n     * This action is called when switching the active tab, with the new and previous pane id\n     *\n     * You can return false to prevent changing the active tab automatically, and do that in your action by\n     * setting `activeId`.\n     *\n     * @event onChange\n     * @public\n     */\n\n    /**\n     * All `TabPane` child components\n     *\n     * @property childPanes\n     * @type array\n     * @readonly\n     * @private\n     */\n    get childPanes() {\n      return this.children.filter(child => child instanceof _pane.default);\n    }\n\n    /**\n     * Array of objects that define the tab structure\n     *\n     * @property navItems\n     * @type array\n     * @readonly\n     * @private\n     */\n    get navItems() {\n      let items = [];\n      this.childPanes.forEach(pane => {\n        let groupTitle = pane.groupTitle;\n        let item = {\n          id: pane.id,\n          title: pane.title\n        };\n        if ((0, _utils.isPresent)(groupTitle)) {\n          let group = items.find(item => item.groupTitle === groupTitle);\n          if (group) {\n            group.children.push(item);\n            group.childIds.push(item.id);\n          } else {\n            items.push({\n              isGroup: true,\n              groupTitle,\n              children: [item],\n              childIds: [item.id]\n            });\n          }\n        } else {\n          items.push(item);\n        }\n      });\n      return items;\n    }\n    select(id) {\n      let previous = this.activeId;\n      if (this.args.onChange?.(id, previous) !== false) {\n        // change active tab when `onChange` does not return false\n        this.selectedId = id;\n      }\n    }\n    registerChild(element) {\n      (0, _runloop.schedule)('actions', this, () => {\n        this.children = [...this.children, element];\n      });\n    }\n    unregisterChild(element) {\n      (0, _runloop.schedule)('actions', this, () => {\n        this.children = this.children.filter(value => value !== element);\n      });\n    }\n    listenToActiveId() {\n      this.selectedId = this.args.activeId;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"select\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerChild\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerChild\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unregisterChild\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"unregisterChild\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listenToActiveId\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"listenToActiveId\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Tab);\n});","define(\"ember-bootstrap/components/bs-tab/pane\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/runloop\", \"ember-bootstrap/utils/transition-end\", \"ember-bootstrap/utils/decorators/uses-transition\", \"@ember/object/internals\", \"ember-ref-bucket\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _runloop, _transitionEnd, _usesTransition, _internals, _emberRefBucket, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"ember-bootstrap/utils/transition-end\",0,\"ember-bootstrap/utils/decorators/uses-transition\",0,\"@ember/object/internals\",0,\"ember-ref-bucket\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  <div\n    class=\"tab-pane {{if this.showContent \"show\"}} {{if this.active \"active\"}} {{if this.usesTransition \"fade\"}}\"\n    role=\"tabpanel\"\n    ...attributes\n    {{create-ref \"mainNode\"}}\n    {{did-insert this.updateActive @active}}\n    {{did-update this.showHide this.isActive}}\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"+TPblSlN\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"tab-pane \\\",[52,[30,0,[\\\"showContent\\\"]],\\\"show\\\"],\\\" \\\",[52,[30,0,[\\\"active\\\"]],\\\"active\\\"],\\\" \\\",[52,[30,0,[\\\"usesTransition\\\"]],\\\"fade\\\"]]]],[24,\\\"role\\\",\\\"tabpanel\\\"],[17,1],[4,[38,2],[\\\"mainNode\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[4,[38,3],[[30,0,[\\\"updateActive\\\"]],[30,2]],null],[4,[38,4],[[30,0,[\\\"showHide\\\"]],[30,0,[\\\"isActive\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@active\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"create-ref\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-tab/pane.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   The tab pane of a tab component.\n   See [Components.Tab](Components.Tab.html) for examples.\n  \n   @class TabPane\n   @namespace Components\n   @extends Component\n   @public\n   */\n  let TabPane = _exports.default = (_dec = (0, _emberRefBucket.ref)('mainNode'), _dec2 = (0, _usesTransition.default)('fade'), (_class = class TabPane extends _component2.default {\n    /**\n     * @property id\n     * @type string\n     * @public\n     */\n    get id() {\n      return this.args.id ?? (0, _internals.guidFor)(this);\n    }\n\n    /**\n     * @property activeId\n     * @private\n     */\n    get activeId() {\n      return this.args.activeId ?? null;\n    }\n\n    /**\n     * True if this pane is active (visible)\n     *\n     * @property isActive\n     * @type boolean\n     * @readonly\n     * @private\n     */\n    get isActive() {\n      return this.activeId === this.id;\n    }\n\n    /**\n     * Used to apply Bootstrap's \"active\" class\n     *\n     * @property active\n     * @type boolean\n     * @default false\n     * @private\n     */\n\n    /**\n     * The title for this tab pane. This is used by the `bs-tab` component to automatically generate\n     * the tab navigation.\n     * See the [Components.Tab](Components.Tab.html) for examples.\n     *\n     * @property title\n     * @type string\n     * @default null\n     * @public\n     */\n    get title() {\n      return this.args.title ?? null;\n    }\n\n    /**\n     * An optional group title used by the `bs-tab` component to group all panes with the same group title\n     * under a common drop down in the tab navigation.\n     * See the [Components.Tab](Components.Tab.html) for examples.\n     *\n     * @property groupTitle\n     * @type string\n     * @default null\n     * @public\n     */\n    get groupTitle() {\n      return this.args.groupTitle ?? null;\n    }\n\n    /**\n     * Use fade animation when switching tabs.\n     *\n     * @property fade\n     * @type boolean\n     * @private\n     */\n    get fade() {\n      return this.args.fade ?? true;\n    }\n\n    /**\n     * The duration of the fade out animation\n     *\n     * @property fadeDuration\n     * @type number\n     * @default 150\n     * @private\n     */\n    get fadeDuration() {\n      return this.args.fadeDuration ?? 150;\n    }\n\n    /**\n     * Use CSS transitions?\n     *\n     * @property usesTransition\n     * @type boolean\n     * @readonly\n     * @private\n     */\n\n    /**\n     * Show the pane\n     *\n     * @method show\n     * @protected\n     */\n    show() {\n      if (this.usesTransition) {\n        if (!this._element) {\n          // _element is initially set by `{{create-ref}}` which happens in next run loop, so can be undefined here.\n          this.active = true;\n          this.showContent = true;\n        } else {\n          (0, _transitionEnd.default)(this._element, this.fadeDuration).then(() => {\n            if (!this.isDestroyed) {\n              this.active = true;\n              this.showContent = true;\n            }\n          });\n        }\n      } else {\n        this.active = true;\n      }\n    }\n\n    /**\n     * Hide the pane\n     *\n     * @method hide\n     * @protected\n     */\n    hide() {\n      if (this.usesTransition) {\n        (0, _transitionEnd.default)(this._element, this.fadeDuration).then(() => {\n          if (!this.isDestroyed) {\n            this.active = false;\n          }\n        });\n        this.showContent = false;\n      } else {\n        this.active = false;\n      }\n    }\n    showHide() {\n      if (this.isActive) {\n        this.show();\n      } else {\n        this.hide();\n      }\n    }\n    _setActive() {\n      this.active = this.isActive;\n      this.showContent = this.isActive && this.fade;\n    }\n    constructor(owner, args) {\n      super(owner, args);\n      /**\n       * @property id\n       * @type null | HTMLElement\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n      _initializerDefineProperty(this, \"active\", _descriptor2, this);\n      /**\n       * Used to trigger the Bootstrap visibility classes.\n       *\n       * @property showContent\n       * @type boolean\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"showContent\", _descriptor3, this);\n      _initializerDefineProperty(this, \"usesTransition\", _descriptor4, this);\n      args.registerChild?.(this);\n\n      // isActive comes from parent component, so only available after render...\n      (0, _runloop.scheduleOnce)('afterRender', this, this._setActive);\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.args.unregisterChild?.(this);\n    }\n    updateActive() {\n      this.active = this.args.active;\n    }\n    updateShowContent() {\n      this.showContent = this.args.showContent;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.active ?? false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showContent\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.showContent ?? false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"usesTransition\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"showHide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showHide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateActive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateActive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateShowContent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateShowContent\"), _class.prototype)), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, TabPane);\n});","define(\"ember-bootstrap/components/bs-tooltip\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-contextual-help\", \"@ember/template-factory\"], function (_exports, _component, _bsContextualHelp, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-contextual-help\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{! template-lint-disable no-unbound }}\n  {{unbound this._parentFinder}}\n  {{#if this.inDom}}\n    {{#let (ensure-safe-component (bs-default @elementComponent (component \"bs-tooltip/element\"))) as |Element|}}\n      <Element\n        @placement={{this.placement}}\n        @fade={{this.fade}}\n        @showHelp={{this.showHelp}}\n        @renderInPlace={{this._renderInPlace}}\n        @destinationElement={{this.destinationElement}}\n        @popperTarget={{this.triggerTargetElement}}\n        @autoPlacement={{this.autoPlacement}}\n        @viewportElement={{this.viewportElement}}\n        @viewportPadding={{this.viewportPadding}}\n  \n        {{create-ref \"overlayElement\"}}\n        ...attributes\n      >\n        {{#if (has-block)}}\n          {{yield\n            (hash\n              close=this.close\n            )\n          }}\n        {{else}}\n          {{@title}}\n        {{/if}}\n      </Element>\n    {{/let}}\n  {{/if}}\n  {{did-insert-helper this.setup}}\n  {{did-update-helper this.showOrHide @visible}}\n  */\n  {\n    \"id\": \"HWb4QJAN\",\n    \"block\": \"[[[1,[28,[35,0],[[30,0,[\\\"_parentFinder\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"inDom\\\"]],[[[44,[[28,[37,3],[[28,[37,4],[[30,1],[50,\\\"bs-tooltip/element\\\",0,null,null]],null]],null]],[[[1,\\\"    \\\"],[8,[30,2],[[17,3],[4,[38,6],[\\\"overlayElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]]],[[\\\"@placement\\\",\\\"@fade\\\",\\\"@showHelp\\\",\\\"@renderInPlace\\\",\\\"@destinationElement\\\",\\\"@popperTarget\\\",\\\"@autoPlacement\\\",\\\"@viewportElement\\\",\\\"@viewportPadding\\\"],[[30,0,[\\\"placement\\\"]],[30,0,[\\\"fade\\\"]],[30,0,[\\\"showHelp\\\"]],[30,0,[\\\"_renderInPlace\\\"]],[30,0,[\\\"destinationElement\\\"]],[30,0,[\\\"triggerTargetElement\\\"]],[30,0,[\\\"autoPlacement\\\"]],[30,0,[\\\"viewportElement\\\"]],[30,0,[\\\"viewportPadding\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[48,[30,6]],[[[1,\\\"        \\\"],[18,6,[[28,[37,9],null,[[\\\"close\\\"],[[30,0,[\\\"close\\\"]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[30,4]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]],[]],null],[1,[28,[35,10],[[30,0,[\\\"setup\\\"]]],null]],[1,\\\"\\\\n\\\"],[1,[28,[35,11],[[30,0,[\\\"showOrHide\\\"]],[30,5]],null]]],[\\\"@elementComponent\\\",\\\"Element\\\",\\\"&attrs\\\",\\\"@title\\\",\\\"@visible\\\",\\\"&default\\\"],false,[\\\"unbound\\\",\\\"if\\\",\\\"let\\\",\\\"ensure-safe-component\\\",\\\"bs-default\\\",\\\"component\\\",\\\"create-ref\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\",\\\"did-insert-helper\\\",\\\"did-update-helper\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-tooltip.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n    Component that implements Bootstrap [tooltips](http://getbootstrap.com/javascript/#tooltips).\n  \n    By default, it will attach its listeners (mouseover and focus) to the parent DOM element to trigger\n    the tooltip:\n  \n    ```hbs\n    <button class=\"btn\">\n      <BsTooltip @title=\"This is a tooltip\" />\n    </button>\n    ```\n  \n    You can also use the component in a block form to set the title:\n  \n    ```hbs\n    <button class=\"btn\">\n      <BsTooltip>\n        This is a tooltip\n      </BsTooltip>\n    </button>\n    ```\n  \n    ### Trigger\n  \n    The trigger element is the DOM element that will cause the tooltip to be shown when one of the trigger events occur on\n    that element. By default, the trigger element is the parent DOM element of the component, and the trigger events will be\n    \"hover\" and \"focus\".\n  \n    The `triggerElement` property accepts any CSS selector to attach the tooltip to any other existing DOM element.\n  \n    To customize the events that will trigger the tooltip use the `triggerEvents` property, that accepts an array or a\n    string of events, with \"hover\", \"focus\" and \"click\" being supported.\n  \n    ### Placement options\n  \n    By default, the tooltip will show up on top of the trigger element. Use the `placement` property to change that\n    (\"top\", \"bottom\", \"left\" and \"right\"). To make sure the tooltip will not exceed the viewport (see Advanced customization)\n    you can set `autoPlacement` to true. A tooltip with `placement=\"right\" will be placed to the right if there is enough\n    space, otherwise to the left.\n  \n    ### Advanced customization\n  \n    Several other properties allow for some advanced customization:\n    * `visible` to show/hide the tooltip programmatically\n    * `fade` to disable the fade in transition\n    * `delay` (or `delayShow` and `delayHide`) to add a delay\n    * `viewportSelector` and `viewportPadding` to customize the viewport that affects `autoPlacement`\n    * a `close` action is yielded, that allows you to close the tooltip:\n  \n    ```hbs\n    <BsTooltip as |tt|>This is a tooltip <button {{on \"click\" tt.close}}>Close</button></BsTooltip>\n    ```\n  \n    See the individual API docs for each property.\n  \n    ### Actions\n  \n    When you want to react on the tooltip being shown or hidden, you can use one of the following supported actions:\n    * `onShow`\n    * `onShown`\n    * `onHide`\n    * `onHidden`\n  \n    *Note that only invoking the component in a template as shown above is considered part of its public API. Extending from it (subclassing) is generally not supported, and may break at any time.*\n  \n    @class Tooltip\n    @namespace Components\n    @extends Components.ContextualHelp\n    @public\n  */\n  class Tooltip extends _bsContextualHelp.default {\n    /**\n     * @property elementComponent\n     * @type {String}\n     * @private\n     */\n\n    /**\n     * The DOM element of the arrow element.\n     *\n     * @property arrowElement\n     * @type object\n     * @readonly\n     * @private\n     */\n    get arrowElement() {\n      return this.overlayElement.querySelector('.tooltip-arrow');\n    }\n  }\n  _exports.default = Tooltip;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Tooltip);\n});","define(\"ember-bootstrap/components/bs-tooltip/element\", [\"exports\", \"@ember/component\", \"ember-bootstrap/components/bs-contextual-help/element\", \"@ember/template-factory\"], function (_exports, _component, _element, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/components/bs-contextual-help/element\",0,\"@embroider/macros\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! @glint-nocheck }}\n  {{#if @renderInPlace}}\n    <div\n      class=\"tooltip {{if this.fade \"fade\"}} {{this.actualPlacementClass}} {{if this.showHelp \"show\"}}\"\n      role=\"tooltip\"\n      ...attributes\n      {{popper-tooltip @popperTarget this.popperOptions}}\n      {{create-ref \"popperElement\"}}\n    >\n      <div class={{this.arrowClass}}></div>\n      <div class=\"tooltip-inner\">\n        {{yield}}\n      </div>\n    </div>\n  {{else}}\n    {{#in-element @destinationElement insertBefore=null}}\n      <div\n        class=\"tooltip {{if this.fade \"fade\"}} {{this.actualPlacementClass}} {{if this.showHelp \"show\"}}\"\n        role=\"tooltip\"\n        ...attributes\n        {{popper-tooltip @popperTarget this.popperOptions}}\n        {{create-ref \"popperElement\"}}\n      >\n        <div class={{this.arrowClass}}></div>\n        <div class=\"tooltip-inner\">\n          {{yield}}\n        </div>\n      </div>\n    {{/in-element}}\n  {{/if}}\n  \n  \n  */\n  {\n    \"id\": \"K4fAHetq\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[16,0,[29,[\\\"tooltip \\\",[52,[30,0,[\\\"fade\\\"]],\\\"fade\\\"],\\\" \\\",[30,0,[\\\"actualPlacementClass\\\"]],\\\" \\\",[52,[30,0,[\\\"showHelp\\\"]],\\\"show\\\"]]]],[24,\\\"role\\\",\\\"tooltip\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[\\\"popperElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[30,0,[\\\"arrowClass\\\"]]],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tooltip-inner\\\"],[12],[1,\\\"\\\\n      \\\"],[18,5,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[40,[[[1,\\\"    \\\"],[11,0],[16,0,[29,[\\\"tooltip \\\",[52,[30,0,[\\\"fade\\\"]],\\\"fade\\\"],\\\" \\\",[30,0,[\\\"actualPlacementClass\\\"]],\\\" \\\",[52,[30,0,[\\\"showHelp\\\"]],\\\"show\\\"]]]],[24,\\\"role\\\",\\\"tooltip\\\"],[17,2],[4,[38,2],[[30,3],[30,0,[\\\"popperOptions\\\"]]],null],[4,[38,3],[\\\"popperElement\\\"],[[\\\"debugName\\\",\\\"bucket\\\"],[\\\"create-ref\\\",[30,0]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[15,0,[30,0,[\\\"arrowClass\\\"]]],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tooltip-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[18,5,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,6],[[30,4]],null],null]],[]]],[1,\\\"\\\\n\\\"]],[\\\"@renderInPlace\\\",\\\"&attrs\\\",\\\"@popperTarget\\\",\\\"@destinationElement\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"popper-tooltip\\\",\\\"create-ref\\\",\\\"yield\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"ember-bootstrap/components/bs-tooltip/element.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   Internal component for tooltip's markup. Should not be used directly.\n  \n   @class TooltipElement\n   @namespace Components\n   @extends Components.ContextualHelpElement\n   @private\n   */\n  class TooltipElement extends _element.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"arrowClass\", 'tooltip-arrow');\n      _defineProperty(this, \"placementClassPrefix\", 'bs-tooltip-');\n      _defineProperty(this, \"offset\", [0, 6]);\n    }\n  }\n  _exports.default = TooltipElement;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, TooltipElement);\n});","define(\"ember-bootstrap/config\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  class Config extends _object.default {}\n  Config.reopenClass({\n    formValidationSuccessIcon: 'glyphicon glyphicon-ok',\n    formValidationErrorIcon: 'glyphicon glyphicon-remove',\n    formValidationWarningIcon: 'glyphicon glyphicon-warning-sign',\n    formValidationInfoIcon: 'glyphicon glyphicon-info-sign',\n    insertEmberWormholeElementToDom: true,\n    load(config = {}) {\n      for (let property in config) {\n        if (Object.prototype.hasOwnProperty.call(this, property) && typeof this[property] !== 'function') {\n          this[property] = config[property];\n        }\n      }\n    }\n  });\n  var _default = _exports.default = Config;\n});","define(\"ember-bootstrap/helpers/bs-contains\", [\"exports\", \"@ember/component/helper\", \"@ember/array\"], function (_exports, _helper, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.bsContains = bsContains;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function bsContains(params /* , hash*/) {\n    return (0, _array.isArray)(params[0]) ? (0, _array.A)(params[0]).includes(params[1]) : false;\n  }\n  var _default = _exports.default = (0, _helper.helper)(bsContains);\n});","define(\"ember-bootstrap/helpers/bs-default\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.bsDefault = bsDefault;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function bsDefault(params) {\n    return params[0] ?? params[1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(bsDefault);\n});","define(\"ember-bootstrap/helpers/bs-eq\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = eq;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function eq(one, other) {\n    return one === other;\n  }\n});","define(\"ember-bootstrap/helpers/bs-form-horiz-input-class\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"@ember/utils\"], function (_exports, _helper, _debug, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/debug\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bsFormHorizInputClass([horizontalLabelGridClass] /*, named*/) {\n    if ((0, _utils.isBlank)(horizontalLabelGridClass)) {\n      return undefined;\n    }\n    let originalClasses = horizontalLabelGridClass.split(' ');\n    let inputClasses = originalClasses.map(originalClass => {\n      let parts = originalClass.split('-');\n      (false && !(parts.length === 3) && (0, _debug.assert)('horizontalInputGridClass must match format bootstrap grid column class', parts.length === 3));\n      parts[2] = 12 - parts[2];\n      return parts.join('-');\n    });\n    return inputClasses.join(' ');\n  });\n});","define(\"ember-bootstrap/helpers/bs-form-horiz-offset-class\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bsFormHorizOffsetClass([horizontalLabelGridClass] /*, named*/) {\n    if ((0, _utils.isBlank)(horizontalLabelGridClass)) {\n      return undefined;\n    }\n    let originalClasses = horizontalLabelGridClass.split(' ');\n    let offsetClasses = originalClasses.map(originalClass => {\n      let parts = originalClass.split('-');\n      parts.splice(0, 1, 'offset');\n      return parts.join('-');\n    });\n    return offsetClasses.join(' ');\n  });\n});","define(\"ember-bootstrap/helpers/bs-noop\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = bsNoopHelper;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const noop = () => {};\n  function bsNoopHelper() {\n    return noop;\n  }\n});","define(\"ember-bootstrap/helpers/bs-size-class\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.sizeClassHelper = sizeClassHelper;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  function sizeClassHelper([prefix, size], {\n    default: defaultValue\n  }) {\n    size = size ?? defaultValue;\n    return (0, _utils.isBlank)(size) ? null : `${prefix}-${size}`;\n  }\n  var _default = _exports.default = (0, _helper.helper)(sizeClassHelper);\n});","define(\"ember-bootstrap/helpers/bs-type-class\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.typeClassHelper = typeClassHelper;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function typeClassHelper([prefix, type], {\n    default: defaultValue,\n    outline = false\n  }) {\n    type = type ?? defaultValue;\n    if (outline) {\n      return `${prefix}-outline-${type}`;\n    }\n    return `${prefix}-${type}`;\n  }\n  var _default = _exports.default = (0, _helper.helper)(typeClassHelper);\n});","define(\"ember-bootstrap/modifiers/bs-conditional-attribute\", [\"exports\", \"ember-modifier\"], function (_exports, _emberModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _emberModifier.modifier)((element, [attribute, condition, value]) => {\n    if (condition) {\n      element.setAttribute(attribute, value);\n    } else {\n      element.removeAttribute(attribute);\n    }\n  });\n});","define(\"ember-bootstrap/template-registry\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"ember-bootstrap/utils/decorators/arg\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @internal\n   */\n\n  function arg(target, key, descriptor) {\n    return {\n      get() {\n        const argValue = this.args[key];\n        return argValue !== undefined ? argValue : descriptor.initializer ? descriptor.initializer.call(this) : undefined;\n      }\n    };\n  }\n  var _default = _exports.default = arg;\n});","define(\"ember-bootstrap/utils/decorators/uses-transition\", [\"exports\", \"ember-bootstrap/utils/is-fastboot\", \"@ember/debug\"], function (_exports, _isFastboot, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-bootstrap/utils/is-fastboot\",0,\"@ember/debug\"eaimeta@70e063a35619d71f\n  /**\n   * @internal\n   */\n  function arg(fadeProperty) {\n    (false && !(typeof fadeProperty === 'string') && (0, _debug.assert)('You have to provide a fadeProperty for typeClass', typeof fadeProperty === 'string'));\n    return function () {\n      return {\n        get() {\n          return !(0, _isFastboot.default)(this) && this.args[fadeProperty] !== false;\n        }\n      };\n    };\n  }\n  var _default = _exports.default = arg;\n});","define(\"ember-bootstrap/utils/dom\", [\"exports\", \"@ember/application\", \"require\", \"@ember/debug\"], function (_exports, _application, _require, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.findElemementByIdInShadowDom = findElemementByIdInShadowDom;\n  _exports.findElementById = findElementById;\n  _exports.getDOM = getDOM;\n  _exports.getDestinationElement = getDestinationElement;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@glimmer/env\",0,\"require\",0,\"@ember/debug\"eaimeta@70e063a35619d71f\n  /*\n   * Implement some helpers methods for interacting with the DOM,\n   * be it Fastboot's SimpleDOM or the browser's version.\n   *\n   * Credit to https://github.com/yapplabs/ember-wormhole, from where this has been shamelessly stolen.\n   */\n  function childNodesOfElement(element) {\n    let children = [];\n    let child = element.firstChild;\n    while (child) {\n      children.push(child);\n      child = child.nextSibling;\n    }\n    return children;\n  }\n  function findElementById(doc, id) {\n    if (doc.getElementById) {\n      return doc.getElementById(id);\n    }\n    let nodes = childNodesOfElement(doc);\n    let node;\n    while (nodes.length) {\n      node = nodes.shift();\n      if (node.getAttribute && node.getAttribute('id') === id) {\n        return node;\n      }\n      nodes = childNodesOfElement(node).concat(nodes);\n    }\n  }\n\n  // Private Ember API usage. Get the dom implementation used by the current\n  // renderer, be it native browser DOM or Fastboot SimpleDOM\n  function getDOM(context) {\n    let {\n      renderer\n    } = context;\n    if (!renderer?._dom) {\n      // pre glimmer2\n      let container = _application.getOwner ? (0, _application.getOwner)(context) : context.container;\n      let documentService = container.lookup('service:-document');\n      if (documentService) {\n        return documentService;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n    if (renderer._dom && renderer._dom.document) {\n      return renderer._dom.document;\n    } else {\n      throw new Error('Could not get DOM');\n    }\n  }\n  function getDestinationElement(context) {\n    let dom = getDOM(context);\n    const id = 'ember-bootstrap-wormhole';\n    let destinationElement = findElementById(dom, id) || findElemementByIdInShadowDom(context, id);\n    if (false /* DEBUG */ && !destinationElement) {\n      let config = (0, _application.getOwner)(context).resolveRegistration('config:environment');\n      if (config.environment === 'test' && typeof FastBoot === 'undefined') {\n        let id;\n        if (_require.default.has('@ember/test-helpers/dom/get-root-element')) {\n          try {\n            id = (0, _require.default)('@ember/test-helpers/dom/get-root-element').default().id;\n          } catch (ex) {\n            // no op\n          }\n        }\n        if (!id) {\n          return document.querySelector('#ember-testing');\n        }\n        return document.getElementById(id);\n      }\n      (false && (0, _debug.warn)(`No wormhole destination element found for component ${context}. Add \\`<div id=\"ember-bootstrap-wormhole\"></div>\\` to \\`app/index.html\\` or \\`app/templates/application.hbs\\`!`, false, {\n        id: 'ember-bootstrap.no-destination-element'\n      }));\n    }\n    return destinationElement;\n  }\n  function findElemementByIdInShadowDom(context, id) {\n    const owner = (0, _application.getOwner)(context);\n    return owner.rootElement.querySelector && owner.rootElement.querySelector(`[id=\"${id}\"]`);\n  }\n});","define(\"ember-bootstrap/utils/form-validation-class\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = formValidationClass;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formValidationClass(validationType) {\n    switch (validationType) {\n      case 'error':\n        return 'is-invalid';\n      case 'success':\n        return 'is-valid';\n      case 'warning':\n        return 'is-warning';\n      // not officially supported in BS4 :(\n      default:\n        return undefined;\n    }\n  }\n});","define(\"ember-bootstrap/utils/is-fastboot\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isFastBoot;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\"eaimeta@70e063a35619d71f\n  function isFastBoot(context) {\n    const owner = (0, _application.getOwner)(context);\n    if (!owner) {\n      return false;\n    }\n    const fastbootService = owner.lookup('service:fastboot');\n    return fastbootService ? fastbootService.isFastBoot : false;\n  }\n});","define(\"ember-bootstrap/utils/size-class\", [\"exports\", \"@ember/utils\", \"@ember/debug\"], function (_exports, _utils, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sizeClass;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/debug\"eaimeta@70e063a35619d71f\n  function sizeClass(prefix, size) {\n    (false && !(typeof prefix === 'string') && (0, _debug.assert)('You have to provide a prefix for sizeClass', typeof prefix === 'string'));\n    (false && !(!size || typeof size === 'string' && size !== '') && (0, _debug.assert)('The value of `size` must be a string', !size || typeof size === 'string' && size !== ''));\n    return (0, _utils.isBlank)(size) ? null : `${prefix}-${size}`;\n  }\n});","define(\"ember-bootstrap/utils/transition-end\", [\"exports\", \"ember\", \"@ember/runloop\"], function (_exports, _ember, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitForTransitionEnd;\n  _exports.skipTransition = skipTransition;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  let _skipTransition;\n  function skipTransition(bool) {\n    _skipTransition = bool;\n  }\n  function _isSkipped() {\n    return _skipTransition === true || _skipTransition !== false && _ember.default.testing;\n  }\n  function waitForTransitionEnd(node, duration = 0) {\n    if (!node) {\n      return Promise.reject();\n    }\n    let backup;\n    if (_isSkipped()) {\n      duration = 0;\n    }\n    return new Promise(function (resolve) {\n      const done = function () {\n        if (backup) {\n          (0, _runloop.cancel)(backup);\n          backup = null;\n        }\n        node.removeEventListener('transitionend', done);\n        resolve();\n      };\n      node.addEventListener('transitionend', done, false);\n      backup = (0, _runloop.later)(this, done, duration);\n    });\n  }\n});","define(\"ember-bootstrap/version\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.VERSION = void 0;\n  _exports.registerLibrary = registerLibrary;\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\",0,\"ember\"eaimeta@70e063a35619d71f\n  const VERSION = _exports.VERSION = \"6.5.0\";\n  function registerLibrary() {\n    _ember.default.libraries.register('Ember Bootstrap', VERSION);\n  }\n});","define(\"ember-cli-app-version/initializer-factory\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = initializerFactory;\n  const {\n    libraries\n  } = _ember.default;\n  function initializerFactory(name, version) {\n    let registered = false;\n    return function () {\n      if (!registered && name && version) {\n        libraries.register(name, version);\n        registered = true;\n      }\n    };\n  }\n});","define(\"ember-cli-app-version/utils/regexp\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.versionRegExp = _exports.versionExtendedRegExp = _exports.shaRegExp = void 0;\n  const versionRegExp = _exports.versionRegExp = /\\d+[.]\\d+[.]\\d+/; // Match any number of 3 sections of digits separated by .\n  const versionExtendedRegExp = _exports.versionExtendedRegExp = /\\d+[.]\\d+[.]\\d+-[a-z]*([.]\\d+)?/; // Match the above but also hyphen followed by any number of lowercase letters, then optionally period and digits\n  const shaRegExp = _exports.shaRegExp = /[a-z\\d]{8}$/; // Match 8 lowercase letters and digits, at the end of the string only (to avoid matching with version extended part)\n});","define(\"ember-cli-clipboard/components/copy-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object/internals\", \"ember-arg-types\", \"prop-types\", \"@ember/template-factory\"], function (_exports, _component, _component2, _internals, _emberArgTypes, _propTypes, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object/internals\",0,\"ember-arg-types\",0,\"prop-types\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <button\n    class='copy-btn'\n    type={{this.buttonType}}\n    data-clipboard-id={{this.guid}}\n    ...attributes\n    {{clipboard\n      text=this.text\n      target=this.target\n      action=this.action\n      delegateClickEvent=this.delegateClickEvent\n      container=this.container\n      onError=this.onError\n      onSuccess=this.onSuccess\n    }}\n  >\n    {{yield}}\n  </button>\n  */\n  {\n    \"id\": \"moR2Yo5E\",\n    \"block\": \"[[[11,\\\"button\\\"],[24,0,\\\"copy-btn\\\"],[16,4,[30,0,[\\\"buttonType\\\"]]],[16,\\\"data-clipboard-id\\\",[30,0,[\\\"guid\\\"]]],[17,1],[4,[38,1],null,[[\\\"text\\\",\\\"target\\\",\\\"action\\\",\\\"delegateClickEvent\\\",\\\"container\\\",\\\"onError\\\",\\\"onSuccess\\\"],[[30,0,[\\\"text\\\"]],[30,0,[\\\"target\\\"]],[30,0,[\\\"action\\\"]],[30,0,[\\\"delegateClickEvent\\\"]],[30,0,[\\\"container\\\"]],[30,0,[\\\"onError\\\"]],[30,0,[\\\"onSuccess\\\"]]]]],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"button\\\",\\\"clipboard\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-cli-clipboard/components/copy-button.hbs\",\n    \"isStrictMode\": false\n  });\n  // eslint-disable-next-line ember/no-classic-components\n  let CopyButtonComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)((0, _propTypes.oneOfType)([_propTypes.string, _propTypes.func])), _dec2 = (0, _emberArgTypes.arg)((0, _propTypes.oneOfType)([_propTypes.string, _propTypes.func])), _dec3 = (0, _emberArgTypes.arg)((0, _propTypes.oneOf)(['copy', 'cut'])), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)((0, _propTypes.oneOfType)([_propTypes.string, _propTypes.element])), _dec6 = (0, _emberArgTypes.arg)(_propTypes.string), _dec7 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec8 = (0, _emberArgTypes.arg)(_propTypes.boolean), (0, _emberArgTypes.forbidExtraArgs)(_class = (_class2 = class CopyButtonComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"guid\", (0, _internals.guidFor)(this));\n      _initializerDefineProperty(this, \"text\", _descriptor, this);\n      _initializerDefineProperty(this, \"target\", _descriptor2, this);\n      _initializerDefineProperty(this, \"action\", _descriptor3, this);\n      _initializerDefineProperty(this, \"delegateClickEvent\", _descriptor4, this);\n      _initializerDefineProperty(this, \"container\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buttonType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"onError\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onSuccess\", _descriptor8, this);\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"text\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"target\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"action\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"delegateClickEvent\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"container\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buttonType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'button';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"onError\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"onSuccess\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class2)) || _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CopyButtonComponent);\n});","define(\"ember-cli-clipboard/helpers/is-clipboard-supported\", [\"exports\", \"@ember/component/helper\", \"clipboard\", \"@ember/application\"], function (_exports, _helper, _clipboard, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"clipboard\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  class IsClipboardSupportedHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      const service = (0, _application.getOwner)(this).lookup('service:fastboot');\n      this.isFastBoot = service ? service.isFastBoot : false;\n    }\n    compute([action]) {\n      const {\n        isFastBoot\n      } = this;\n      return isFastBoot ? false : _clipboard.default.isSupported(action);\n    }\n  }\n  _exports.default = IsClipboardSupportedHelper;\n});","define(\"ember-cli-clipboard/modifiers/clipboard\", [\"exports\", \"ember-modifier\", \"clipboard\", \"@ember/utils\", \"@ember/object/internals\"], function (_exports, _emberModifier, _clipboard, _utils, _internals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"clipboard\",0,\"@ember/utils\",0,\"@ember/object/internals\",0,\"@embroider/macros\"eaimeta@70e063a35619d71f\n  const CLIPBOARD_EVENTS = ['success', 'error'];\n  function capitalize(string) {\n    return string.charAt(0).toUpperCase() + string.slice(1);\n  }\n  function clipboard(element, params, hash) {\n    const {\n      action = 'copy',\n      container,\n      /*\n       * delegateClickEvent true - scope event listener to this element\n       * delegateClickEvent false - scope event listener to document.body (ClipboardJS)\n       */\n      delegateClickEvent = true,\n      target,\n      text\n    } = hash;\n    element.setAttribute('data-clipboard-action', action);\n    if (!(0, _utils.isBlank)(text)) {\n      element.setAttribute('data-clipboard-text', text);\n    }\n    if (!(0, _utils.isBlank)(target)) {\n      element.setAttribute('data-clipboard-target', target);\n    }\n    if ((0, _utils.isBlank)(element.dataset.clipboardId)) {\n      element.setAttribute('data-clipboard-id', (0, _internals.guidFor)(element));\n    }\n    const trigger = delegateClickEvent === false ? element : `[data-clipboard-id=${element.dataset.clipboardId}]`;\n    const clipboard = new _clipboard.default(trigger, {\n      text: typeof text === 'function' ? text : undefined,\n      container: typeof container === 'string' ? document.querySelector(container) : container,\n      target\n    });\n    CLIPBOARD_EVENTS.forEach(event => {\n      clipboard.on(event, () => {\n        if (!element.disabled) {\n          const action = hash[`on${capitalize(event)}`];\n          action?.(...arguments);\n        }\n      });\n    });\n    return () => clipboard.destroy();\n  }\n  let clipboardModifier;\n  {\n    clipboardModifier = (0, _emberModifier.modifier)(clipboard, {\n      eager: false\n    });\n  }\n  var _default = _exports.default = clipboardModifier;\n});","define(\"ember-cli-string-helpers/-private/create-string-helper\", [\"exports\", \"@ember/template\"], function (_exports, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(stringFunction) {\n    return function ([string]) {\n      if ((0, _template.isHTMLSafe)(string)) {\n        string = string.string;\n      }\n      string = string || '';\n      return stringFunction(string);\n    };\n  }\n});","define(\"ember-cli-string-helpers/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _helper, _template, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.htmlSafe = _exports.default = void 0;\n  const htmlSafe = _exports.htmlSafe = (0, _createStringHelper.default)(_template.htmlSafe);\n  var _default = _exports.default = (0, _helper.helper)(htmlSafe);\n});","define(\"ember-cli-string-helpers/helpers/uppercase\", [\"exports\", \"@ember/component/helper\", \"ember-cli-string-helpers/utils/uppercase\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _helper, _uppercase, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.uppercase = _exports.default = void 0;\n  const uppercase = _exports.uppercase = (0, _createStringHelper.default)(_uppercase.default);\n  var _default = _exports.default = (0, _helper.helper)(uppercase);\n});","define(\"ember-cli-string-helpers/utils/lowercase\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = lowercase;\n  function lowercase(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n    return string.toLowerCase();\n  }\n});","define(\"ember-cli-string-helpers/utils/titleize\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = titleize;\n  function titleize(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n    return string.toLowerCase().replace(/(?:^|\\s|-|\\/)\\S/g, function (m) {\n      return m.toUpperCase();\n    });\n  }\n});","define(\"ember-cli-string-helpers/utils/trim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = trim;\n  function trim(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n    return string.trim();\n  }\n});","define(\"ember-cli-string-helpers/utils/uppercase\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = uppercase;\n  function uppercase(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n    return string.toUpperCase();\n  }\n});","define(\"ember-composable-helpers/-private/closure-action\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    __loader\n  } = _ember.default;\n  let ClosureActionModule = {\n    ACTION: null\n  };\n  if ('ember-htmlbars/keywords/closure-action' in __loader.registry) {\n    ClosureActionModule = __loader.require('ember-htmlbars/keywords/closure-action');\n  } else if ('ember-routing-htmlbars/keywords/closure-action' in __loader.registry) {\n    ClosureActionModule = __loader.require('ember-routing-htmlbars/keywords/closure-action');\n  }\n  var _default = _exports.default = ClosureActionModule.ACTION;\n});","define(\"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getValueArrayAndUseDeepEqualFromParams;\n  function getValueArrayAndUseDeepEqualFromParams(params) {\n    let currentValue = params[0];\n    let array;\n    let useDeepEqual = false;\n    if (params.length === 2) {\n      array = params[1];\n    } else {\n      useDeepEqual = params[1];\n      array = params[2];\n    }\n    return {\n      currentValue,\n      array,\n      useDeepEqual\n    };\n  }\n});","define(\"ember-composable-helpers/helpers/call\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.call = call;\n  _exports.default = void 0;\n  /**\n   * Calls a function passed within a template and returns its value.\n   * In order to pass arguments to the function being called, you must\n   * curry the function using the `fn` helper.\n   *\n   ```example\n      <div data-metrics={{call (fn this.myMetrics (hash item=@item))}}\n    ```\n   *\n   * @function apply\n   * @param {Array<Function>} fn - The function to be called\n   * @param {*=} thisArg - An optional `this` context\n   */\n  function call([fn, thisArg]) {\n    if (fn) {\n      if (thisArg) {\n        return fn.apply(thisArg);\n      } else {\n        return fn();\n      }\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(call);\n});","define(\"ember-composable-helpers/index\", [], function () {\n  \"use strict\";\n});","define(\"ember-composable-helpers/utils/as-array\", [\"exports\", \"@ember/array\", \"@ember/object\"], function (_exports, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = asArray;\n  function isIterable(value) {\n    return Symbol.iterator in Object(value);\n  }\n\n  // from https://github.com/flexyford/ember-power-select/blob/78a5430c1ac89daf315d0801fd5201e444e82434/addon/components/power-select.ts\n  function isArrayable(thing) {\n    return typeof thing.toArray === 'function';\n  }\n  function isPromiseLike(thing) {\n    return typeof thing.then === 'function';\n  }\n  function isPromiseProxyLike(thing) {\n    return isPromiseLike(thing) && Object.hasOwnProperty.call(thing, 'content');\n  }\n  function toExtendable(array) {\n    if (!Object.isExtensible(array)) {\n      return Array.from(array);\n    } else {\n      return array;\n    }\n  }\n  function asArray(maybeArray) {\n    return toExtendable(_asArray(maybeArray));\n  }\n  function _asArray(maybeArray) {\n    if (typeof maybeArray === 'number') {\n      throw new Error('Numbers not supported as arrays [ember-composable-helpers]');\n    }\n    if (typeof maybeArray === 'string') {\n      return maybeArray.split('');\n    }\n    // for perf-reasons falling back to e-array, instead of using it first\n    if (Array.isArray(maybeArray)) {\n      return maybeArray;\n    } else if ((0, _array.isArray)(maybeArray)) {\n      return maybeArray;\n    } else if (typeof maybeArray === 'object' && maybeArray === null) {\n      return [];\n    } else if (typeof maybeArray === 'undefined') {\n      return [];\n    } else if (maybeArray instanceof Set) {\n      return Array.from(maybeArray.values());\n    } else if (maybeArray instanceof Map) {\n      return Array.from(maybeArray.values());\n    } else if (maybeArray instanceof WeakMap) {\n      throw new Error('WeakMaps is not supported as arrays [ember-composable-helpers]');\n    } else if (maybeArray instanceof WeakSet) {\n      throw new Error('WeakSets is not supported as arrays [ember-composable-helpers]');\n    }\n    if (typeof maybeArray === 'object') {\n      if (isPromiseProxyLike(maybeArray)) {\n        const content = (0, _object.get)(maybeArray, 'content');\n        if (typeof content !== 'object' || content === null) {\n          throw new Error('Unknown content type in array-like object [ember-composable-helpers]');\n        }\n        if (isArrayable(content)) {\n          return content.toArray();\n        } else {\n          return _asArray(content);\n        }\n      }\n      if (isPromiseLike(maybeArray)) {\n        throw new Error('Promise-like objects is not supported as arrays [ember-composable-helpers]');\n      }\n      if (isArrayable(maybeArray)) {\n        return maybeArray.toArray();\n      }\n      if (maybeArray instanceof _object.default) {\n        throw new Error('EmberObjects is not supported as arrays [ember-composable-helpers]');\n      }\n      return Array.from(Object.values(maybeArray));\n    }\n    if (!maybeArray) {\n      return [];\n    }\n    if (!isIterable(maybeArray)) {\n      throw new Error('Argument, passed as array is not iterable [ember-composable-helpers]');\n    }\n    return maybeArray;\n  }\n});","define(\"ember-composable-helpers/utils/comparison\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.gt = gt;\n  _exports.gte = gte;\n  _exports.lt = lt;\n  _exports.lte = lte;\n  function lte(a, b) {\n    return a <= b;\n  }\n  function lt(a, b) {\n    return a < b;\n  }\n  function gte(a, b) {\n    return a >= b;\n  }\n  function gt(a, b) {\n    return a > b;\n  }\n});","define(\"ember-composable-helpers/utils/get-index\", [\"exports\", \"@ember/array\", \"ember-composable-helpers/utils/is-equal\"], function (_exports, _array, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getIndex;\n  function getIndex(array, currentValue, useDeepEqual) {\n    let needle = currentValue;\n    if (useDeepEqual) {\n      needle = (0, _array.A)(array).find(object => {\n        return (0, _isEqual.default)(object, currentValue, useDeepEqual);\n      });\n    }\n    let index = (0, _array.A)(array).indexOf(needle);\n    return index >= 0 ? index : null;\n  }\n});","define(\"ember-composable-helpers/utils/is-equal\", [\"exports\", \"@ember/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isEqual;\n  function isEqual(firstValue, secondValue, useDeepEqual = false) {\n    if (useDeepEqual) {\n      return JSON.stringify(firstValue) === JSON.stringify(secondValue);\n    } else {\n      return (0, _utils.isEqual)(firstValue, secondValue) || (0, _utils.isEqual)(secondValue, firstValue);\n    }\n  }\n});","define(\"ember-composable-helpers/utils/is-object\", [\"exports\", \"@ember/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isObject;\n  function isObject(val) {\n    return (0, _utils.typeOf)(val) === 'object' || (0, _utils.typeOf)(val) === 'instance';\n  }\n});","define(\"ember-composable-helpers/utils/is-promise\", [\"exports\", \"@ember/utils\", \"ember-composable-helpers/utils/is-object\"], function (_exports, _utils, _isObject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isPromise;\n  function isPromiseLike(obj = {}) {\n    return (0, _utils.typeOf)(obj.then) === 'function' && (0, _utils.typeOf)(obj.catch) === 'function';\n  }\n  function isPromise(obj) {\n    return (0, _isObject.default)(obj) && isPromiseLike(obj);\n  }\n});","define(\"ember-concurrency/-private/async-arrow-runtime\", [\"exports\", \"ember-concurrency/-private/task-factory\"], function (_exports, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.buildTask = buildTask;\n  /**\n   * This builder function is called by the transpiled code from\n   * `task(async () => {})`. See lib/babel-plugin-transform-ember-concurrency-async-tasks.js\n   *\n   * @private\n   */\n  function buildTask(contextFn, options, taskName, bufferPolicyName) {\n    let optionsWithBufferPolicy = options;\n    if (bufferPolicyName) {\n      optionsWithBufferPolicy = Object.assign({}, optionsWithBufferPolicy);\n      optionsWithBufferPolicy[bufferPolicyName] = true;\n    }\n    const result = contextFn();\n    const taskFactory = new _taskFactory.TaskFactory(taskName || '<unknown>', result.generator, optionsWithBufferPolicy);\n    return taskFactory.createTask(result.context);\n  }\n});","define(\"ember-concurrency/-private/cancelable-promise-helpers\", [\"exports\", \"@ember/debug\", \"rsvp\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _debug, _rsvp, _taskInstance, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.race = _exports.hashSettled = _exports.hash = _exports.allSettled = _exports.all = void 0;\n  /**\n   * A cancelation-aware variant of [Promise.all](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).\n   * The normal version of a `Promise.all` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `all()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `all()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `all` will be canceled\n   * - if any of the {@linkcode TaskInstance}s (or regular promises) passed in reject (or\n   *   are canceled), all of the other unfinished `TaskInstance`s will\n   *   be automatically canceled.\n   *\n   * [Check out the \"Awaiting Multiple Child Tasks example\"](/docs/examples/joining-tasks)\n   */\n  const all = _exports.all = taskAwareVariantOf(_rsvp.default.Promise, 'all', identity);\n\n  /**\n   * A cancelation-aware variant of [RSVP.allSettled](https://api.emberjs.com/ember/release/functions/rsvp/allSettled).\n   * The normal version of a `RSVP.allSettled` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `allSettled()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `allSettled()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `allSettled` will be canceled\n   */\n  const allSettled = _exports.allSettled = taskAwareVariantOf(_rsvp.default, 'allSettled', identity);\n\n  /**\n   * A cancelation-aware variant of [Promise.race](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race).\n   * The normal version of a `Promise.race` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `race()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `race()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `race` will be canceled\n   * - once any of the tasks/promises passed in complete (either success, failure,\n   *   or cancelation), any of the {@linkcode TaskInstance}s passed in will be canceled\n   *\n   * [Check out the \"Awaiting Multiple Child Tasks example\"](/docs/examples/joining-tasks)\n   */\n  const race = _exports.race = taskAwareVariantOf(_rsvp.Promise, 'race', identity);\n\n  /**\n   * A cancelation-aware variant of [RSVP.hash](https://api.emberjs.com/ember/release/functions/rsvp/hash).\n   * The normal version of a `RSVP.hash` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `hash()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `hash()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `hash` will be canceled\n   * - if any of the items rejects/cancels, all other cancelable items\n   *   (e.g. {@linkcode TaskInstance}s) will be canceled\n   */\n  const hash = _exports.hash = taskAwareVariantOf(_rsvp.default, 'hash', getValues);\n\n  /**\n   * A cancelation-aware variant of [RSVP.hashSettled](https://api.emberjs.com/ember/release/functions/rsvp/hashSettled).\n   * The normal version of a `RSVP.hashSettled` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `hashSettled()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `hashSettled()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `hashSettled` will be canceled\n   */\n  const hashSettled = _exports.hashSettled = taskAwareVariantOf(_rsvp.default, 'hashSettled', getValues);\n  function identity(obj) {\n    return obj;\n  }\n  function getValues(obj) {\n    return Object.keys(obj).map(k => obj[k]);\n  }\n  function castForPromiseHelper(castable) {\n    if (castable) {\n      if (castable instanceof _taskInstance.TaskInstance) {\n        // Mark TaskInstances, including those that performed synchronously and\n        // have finished already, as having their errors handled, as if they had\n        // been then'd, which this is emulating.\n        castable.executor.asyncErrorsHandled = true;\n      } else if (castable instanceof _yieldables.Yieldable) {\n        // Cast to promise\n        return castable._toPromise();\n      }\n    }\n    return castable;\n  }\n  function castAwaitables(arrOrHash, callback) {\n    if (Array.isArray(arrOrHash)) {\n      return arrOrHash.map(callback);\n    } else if (typeof arrOrHash === 'object' && arrOrHash !== null) {\n      let obj = {};\n      Object.keys(arrOrHash).forEach(key => {\n        obj[key] = callback(arrOrHash[key]);\n      });\n      return obj;\n    } else {\n      // :shruggie:\n      return arrOrHash;\n    }\n  }\n  function taskAwareVariantOf(obj, method, getItems) {\n    return function (awaitable) {\n      let awaitables = castAwaitables(awaitable, castForPromiseHelper);\n      let items = getItems(awaitables);\n      (false && !(Array.isArray(items)) && (0, _debug.assert)(`'${method}' expects an array.`, Array.isArray(items)));\n      let defer = _rsvp.default.defer();\n      obj[method](awaitables).then(defer.resolve, defer.reject);\n      let hasCancelled = false;\n      let cancelAll = () => {\n        if (hasCancelled) {\n          return;\n        }\n        hasCancelled = true;\n        items.forEach(it => {\n          if (it) {\n            if (it instanceof _taskInstance.TaskInstance) {\n              it.cancel();\n            } else if (typeof it[_yieldables.cancelableSymbol] === 'function') {\n              it[_yieldables.cancelableSymbol]();\n            }\n          }\n        });\n      };\n      let promise = defer.promise.finally(cancelAll);\n      promise[_yieldables.cancelableSymbol] = cancelAll;\n      return promise;\n    };\n  }\n});","define(\"ember-concurrency/-private/ember-environment\", [\"exports\", \"ember\", \"rsvp\", \"ember-concurrency/-private/external/environment\", \"@ember/debug\", \"@ember/runloop\"], function (_exports, _ember, _rsvp, _environment, _debug, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmberEnvironment = _exports.EMBER_ENVIRONMENT = void 0;\n  class EmberEnvironment extends _environment.Environment {\n    assert(...args) {\n      (false && !(false) && (0, _debug.assert)(...args));\n    }\n    async(callback) {\n      (0, _runloop.join)(() => (0, _runloop.schedule)('actions', callback));\n    }\n    reportUncaughtRejection(error) {\n      (0, _runloop.next)(null, function () {\n        if (_ember.default.onerror) {\n          _ember.default.onerror(error);\n        } else {\n          throw error;\n        }\n      });\n    }\n    defer() {\n      return (0, _rsvp.defer)();\n    }\n    globalDebuggingEnabled() {\n      return _ember.default.ENV.DEBUG_TASKS;\n    }\n  }\n  _exports.EmberEnvironment = EmberEnvironment;\n  const EMBER_ENVIRONMENT = _exports.EMBER_ENVIRONMENT = new EmberEnvironment();\n});","define(\"ember-concurrency/-private/external/environment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Environment = _exports.DEFAULT_ENVIRONMENT = void 0;\n  class Environment {\n    assert() {}\n    async(callback) {\n      Promise.resolve().then(callback);\n    }\n    reportUncaughtRejection() {\n      this.async(error => {\n        throw error;\n      });\n    }\n    defer() {\n      let deferable = {\n        promise: null,\n        resolve: null,\n        reject: null\n      };\n      let promise = new Promise((resolve, reject) => {\n        deferable.resolve = resolve;\n        deferable.reject = reject;\n      });\n      deferable.promise = promise;\n      return deferable;\n    }\n    globalDebuggingEnabled() {\n      return false;\n    }\n  }\n  _exports.Environment = Environment;\n  const DEFAULT_ENVIRONMENT = _exports.DEFAULT_ENVIRONMENT = new Environment();\n});","define(\"ember-concurrency/-private/external/generator-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.GeneratorStepResult = _exports.GeneratorState = void 0;\n  class GeneratorStepResult {\n    constructor(value, done, errored) {\n      this.value = value;\n      this.done = done;\n      this.errored = errored;\n    }\n  }\n  _exports.GeneratorStepResult = GeneratorStepResult;\n  class GeneratorState {\n    constructor(generatorFactory) {\n      this.done = false;\n      this.generatorFactory = generatorFactory;\n      this.iterator = null;\n    }\n    step(resolvedValue, iteratorMethod) {\n      try {\n        let iterator = this.getIterator();\n        let {\n          value,\n          done\n        } = iterator[iteratorMethod](resolvedValue);\n        if (done) {\n          return this.finalize(value, false);\n        } else {\n          return new GeneratorStepResult(value, false, false);\n        }\n      } catch (e) {\n        return this.finalize(e, true);\n      }\n    }\n    getIterator() {\n      if (!this.iterator && !this.done) {\n        this.iterator = this.generatorFactory();\n      }\n      return this.iterator;\n    }\n    finalize(value, errored) {\n      this.done = true;\n      this.iterator = null;\n      return new GeneratorStepResult(value, true, errored);\n    }\n  }\n  _exports.GeneratorState = GeneratorState;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class BoundedPolicy {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency || 1;\n    }\n  }\n  var _default = _exports.default = BoundedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/drop-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'drop' Task that was already running`);\n  class DropReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      }\n      return CANCELLED;\n    }\n  }\n  class DropPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new DropReducer(this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = DropPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class EnqueuedReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      } else {\n        return _executionStates.QUEUED;\n      }\n    }\n  }\n  class EnqueuedPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new EnqueuedReducer(this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = EnqueuedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/execution-states\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.makeCancelState = _exports.TYPE_STARTED = _exports.TYPE_QUEUED = _exports.TYPE_CANCELLED = _exports.STARTED = _exports.QUEUED = void 0;\n  const TYPE_CANCELLED = _exports.TYPE_CANCELLED = 'CANCELLED';\n  const TYPE_STARTED = _exports.TYPE_STARTED = 'STARTED';\n  const TYPE_QUEUED = _exports.TYPE_QUEUED = 'QUEUED';\n  const STARTED = _exports.STARTED = {\n    type: TYPE_STARTED\n  };\n  const QUEUED = _exports.QUEUED = {\n    type: TYPE_QUEUED\n  };\n  const makeCancelState = reason => ({\n    type: TYPE_CANCELLED,\n    reason\n  });\n  _exports.makeCancelState = makeCancelState;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'keepLatest' Task that was already running`);\n\n  // Given:\n  // - started tasks: [a,b,_]\n  // - queued tasks:  [c,d,e,f]\n  // KeepLatest will cancel all but the last queued task instance, producing:\n  // - started tasks: [a,b,c]\n  // - queued tasks: [f]\n\n  // TODO: perhaps we should expose another config for the number to keep enqueued.\n  //       this would also make sense for enqueued, e.g. perform a max of maxConcurrency\n  //       concurrent task instances, but after a number of queued instances has been\n  //       reached, they should be cancelled.\n\n  class KeepLatestReducer {\n    constructor(remainingSlots, numToCancel) {\n      this.remainingSlots = remainingSlots;\n      this.numToCancel = numToCancel;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      } else {\n        if (this.numToCancel > 0) {\n          this.numToCancel--;\n          return CANCELLED;\n        } else {\n          return _executionStates.QUEUED;\n        }\n      }\n    }\n  }\n  class KeepLatestPolicy extends _boundedPolicy.default {\n    makeReducer(numRunning, numQueued) {\n      let maxEnqueued = 1;\n      let totalRunning = numRunning + numQueued;\n      return new KeepLatestReducer(this.maxConcurrency, totalRunning - this.maxConcurrency - maxEnqueued);\n    }\n  }\n  var _default = _exports.default = KeepLatestPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/restartable-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'restartable' Task that was .perform()ed again`);\n  class RestartableReducer {\n    constructor(numToCancel) {\n      this.numToCancel = numToCancel;\n    }\n    step() {\n      if (this.numToCancel > 0) {\n        this.numToCancel--;\n        return CANCELLED;\n      } else {\n        return _executionStates.STARTED;\n      }\n    }\n  }\n  class RestartablePolicy extends _boundedPolicy.default {\n    makeReducer(numRunning, numQueued) {\n      return new RestartableReducer(numRunning + numQueued - this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = RestartablePolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/unbounded-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class UnboundedReducer {\n    step() {\n      return _executionStates.STARTED;\n    }\n  }\n  const SINGLETON_REDUCER = new UnboundedReducer();\n  class UnboundedPolicy {\n    makeReducer() {\n      return SINGLETON_REDUCER;\n    }\n  }\n  var _default = _exports.default = UnboundedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/refresh\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const LAST_APPLIED_TAGS = new Map();\n  class Refresh {\n    constructor(schedulerPolicy, stateTracker, taskInstances) {\n      this.stateTracker = stateTracker;\n      this.schedulerPolicy = schedulerPolicy;\n      this.initialTaskInstances = taskInstances;\n      this.startingInstances = [];\n    }\n    process() {\n      let [taskInstances, numRunning, numQueued] = this.filterFinishedTaskInstances();\n      let reducer = this.schedulerPolicy.makeReducer(numRunning, numQueued);\n      let finalTaskInstances = taskInstances.filter(taskInstance => {\n        return this.setTaskInstanceExecutionState(taskInstance, reducer.step());\n      });\n      this.stateTracker.computeFinalStates(state => this.applyState(state));\n      this.startingInstances.forEach(taskInstance => taskInstance.start());\n      return finalTaskInstances;\n    }\n    filterFinishedTaskInstances() {\n      let numRunning = 0,\n        numQueued = 0;\n      let taskInstances = this.initialTaskInstances.filter(taskInstance => {\n        let taskState = this.stateTracker.stateFor(taskInstance.task);\n        let executorState = taskInstance.executor.state;\n        if (executorState.isFinished) {\n          taskState.onCompletion(taskInstance);\n          return false;\n        }\n        if (executorState.hasStarted) {\n          numRunning += 1;\n        } else {\n          numQueued += 1;\n        }\n        return true;\n      });\n      return [taskInstances, numRunning, numQueued];\n    }\n    setTaskInstanceExecutionState(taskInstance, desiredState) {\n      let taskState = this.stateTracker.stateFor(taskInstance.task);\n      if (!taskInstance.executor.counted) {\n        taskInstance.executor.counted = true;\n        taskState.onPerformed(taskInstance);\n      }\n      switch (desiredState.type) {\n        case _executionStates.TYPE_CANCELLED:\n          // this will cause a follow up flush which will detect and recompute cancellation state\n          taskInstance.cancel(desiredState.reason);\n          return false;\n        case _executionStates.TYPE_STARTED:\n          if (!taskInstance.executor.state.hasStarted) {\n            this.startingInstances.push(taskInstance);\n            taskState.onStart(taskInstance);\n          }\n          taskState.onRunning(taskInstance);\n          return true;\n        case _executionStates.TYPE_QUEUED:\n          taskState.onQueued(taskInstance);\n          // TODO: assert taskInstance hasn't started?\n          // Or perhaps this can be a way to pause a task?\n          return true;\n      }\n    }\n    applyState(state) {\n      let {\n        taskable\n      } = state;\n      if (!taskable.onState) {\n        return;\n      }\n      const {\n        guid\n      } = taskable;\n      if (LAST_APPLIED_TAGS.has(guid) && state.tag < LAST_APPLIED_TAGS.get(guid)) {\n        return;\n      }\n      let props = Object.assign({\n        numRunning: state.numRunning,\n        numQueued: state.numQueued,\n        numPerformedInc: state.numPerformedInc\n      }, state.attrs);\n      taskable.onState(props, taskable);\n      LAST_APPLIED_TAGS.set(guid, state.tag);\n    }\n  }\n  var _default = _exports.default = Refresh;\n});","define(\"ember-concurrency/-private/external/scheduler/scheduler\", [\"exports\", \"ember-concurrency/-private/external/scheduler/refresh\", \"ember-concurrency/-private/external/scheduler/state-tracker/state-tracker\", \"ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker\"], function (_exports, _refresh, _stateTracker, _nullStateTracker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Scheduler base class\n\n  // When a Task is performed, it creates an unstarted TaskInstance and\n  // passes it to the Scheduler to determine when it should run. The\n  // scheduler consults the schedulerPolicy (e.g. DropPolicy, RestartablePolicy, etc)\n  // to determine whether the task instance should start executing, be enqueued\n  // for later execution, or be immediately cancelled. As TaskInstances start\n  // and run to completion, the Scheduler's `refresh()` method is called to\n  // give it an opportunity to start (or cancel) previously enqueued task instances,\n  // as well as update the derived state on Tasks and TaskGroups.\n\n  // Every Task has its own Scheduler instance, unless it is part of a group,\n  // in which case all the Tasks in a group share a single Scheduler.\n\n  class Scheduler {\n    constructor(schedulerPolicy, stateTrackingEnabled) {\n      this.schedulerPolicy = schedulerPolicy;\n      this.stateTrackingEnabled = stateTrackingEnabled;\n      this.taskInstances = [];\n    }\n    cancelAll(guid, cancelRequest) {\n      let cancelations = this.taskInstances.map(taskInstance => {\n        if (taskInstance.task.guids[guid]) {\n          taskInstance.executor.cancel(cancelRequest);\n        }\n      }).filter(cancelation => !!cancelation);\n      return Promise.all(cancelations);\n    }\n    perform(taskInstance) {\n      taskInstance.onFinalize(() => this.scheduleRefresh());\n      this.taskInstances.push(taskInstance);\n      this.refresh();\n    }\n    scheduleRefresh() {\n      Promise.resolve().then(() => this.refresh());\n    }\n    refresh() {\n      let stateTracker = this.stateTrackingEnabled ? new _stateTracker.default() : new _nullStateTracker.default();\n      let refresh = new _refresh.default(this.schedulerPolicy, stateTracker, this.taskInstances);\n      this.taskInstances = refresh.process();\n    }\n  }\n  var _default = _exports.default = Scheduler;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker\", [\"exports\", \"ember-concurrency/-private/external/scheduler/state-tracker/null-state\"], function (_exports, _nullState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const NULL_STATE = new _nullState.default();\n  class NullStateTracker {\n    stateFor() {\n      return NULL_STATE;\n    }\n    computeFinalStates() {}\n  }\n  var _default = _exports.default = NullStateTracker;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/null-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class NullState {\n    onCompletion() {}\n    onPerformed() {}\n    onStart() {}\n    onRunning() {}\n    onQueued() {}\n  }\n  var _default = _exports.default = NullState;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/state-tracker\", [\"exports\", \"ember-concurrency/-private/external/scheduler/state-tracker/state\"], function (_exports, _state) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CURRENT_REFRESH_TAGS = new Map();\n  class StateTracker {\n    constructor() {\n      this.states = new Map();\n    }\n    stateFor(taskable) {\n      let guid = taskable.guid;\n      let taskState = this.states.get(guid);\n      if (!taskState) {\n        let currentTag = CURRENT_REFRESH_TAGS.has(guid) ? CURRENT_REFRESH_TAGS.get(guid) : 0;\n        taskState = new _state.default(taskable, ++currentTag);\n        this.states.set(guid, taskState);\n        CURRENT_REFRESH_TAGS.set(guid, currentTag);\n      }\n      return taskState;\n    }\n\n    // After cancelling/queueing task instances, we have to recompute the derived state\n    // of all the tasks that had/have task instances in this scheduler. We do this by\n    // looping through all the Tasks that we've accumulated state for, and then recursively\n    // applying/adding to the state of any TaskGroups they belong to.\n    computeFinalStates(callback) {\n      this.computeRecursiveState();\n      this.forEachState(state => callback(state));\n    }\n    computeRecursiveState() {\n      this.forEachState(taskState => {\n        let lastState = taskState;\n        taskState.recurseTaskGroups(taskGroup => {\n          let state = this.stateFor(taskGroup);\n          state.applyStateFrom(lastState);\n          lastState = state;\n        });\n      });\n    }\n    forEachState(callback) {\n      this.states.forEach(state => callback(state));\n    }\n  }\n  var _default = _exports.default = StateTracker;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/state\", [\"exports\", \"ember-concurrency/-private/external/task-instance/completion-states\"], function (_exports, _completionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class RefreshState {\n    constructor(taskable, tag) {\n      this.taskable = taskable;\n      this.group = taskable.group;\n      this.numRunning = 0;\n      this.numQueued = 0;\n      this.numPerformedInc = 0;\n      this.attrs = {};\n      this.tag = tag;\n    }\n    onCompletion(taskInstance) {\n      let state = taskInstance.completionState;\n      this.attrs.lastRunning = null;\n      this.attrs.lastComplete = taskInstance;\n      if (state === _completionStates.COMPLETION_SUCCESS) {\n        this.attrs.lastSuccessful = taskInstance;\n      } else {\n        if (state === _completionStates.COMPLETION_ERROR) {\n          this.attrs.lastErrored = taskInstance;\n        } else if (state === _completionStates.COMPLETION_CANCEL) {\n          this.attrs.lastCanceled = taskInstance;\n        }\n        this.attrs.lastIncomplete = taskInstance;\n      }\n    }\n    onPerformed(taskInstance) {\n      this.numPerformedInc += 1;\n      this.attrs.lastPerformed = taskInstance;\n    }\n    onStart(taskInstance) {\n      this.attrs.last = taskInstance;\n    }\n    onRunning(taskInstance) {\n      this.attrs.lastRunning = taskInstance;\n      this.numRunning += 1;\n    }\n    onQueued() {\n      this.numQueued += 1;\n    }\n    recurseTaskGroups(callback) {\n      let group = this.group;\n      while (group) {\n        callback(group);\n        group = group.group;\n      }\n    }\n    applyStateFrom(other) {\n      Object.assign(this.attrs, other.attrs);\n      this.numRunning += other.numRunning;\n      this.numQueued += other.numQueued;\n      this.numPerformedInc += other.numPerformedInc;\n    }\n  }\n  var _default = _exports.default = RefreshState;\n});","define(\"ember-concurrency/-private/external/task-decorators\", [\"exports\", \"ember-concurrency/-private/external/task-factory\"], function (_exports, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createTaskDecorator = createTaskDecorator;\n  _exports.createTaskGroupDecorator = createTaskGroupDecorator;\n  _exports.decoratorWithParams = decoratorWithParams;\n  _exports.lastValue = void 0;\n  function taskFromPropertyDescriptor(target, key, descriptor, params = [], factoryClass = _taskFactory.TaskFactory) {\n    let {\n      initializer,\n      get,\n      value\n    } = descriptor;\n    let taskFn;\n    if (initializer) {\n      taskFn = initializer.call(undefined);\n    } else if (get) {\n      taskFn = get.call(undefined);\n    } else if (value) {\n      taskFn = value;\n    }\n    taskFn.displayName = `${key} (task)`;\n    let tasks = new WeakMap();\n    let options = params[0] || {};\n    let factory = new factoryClass(key, taskFn, options);\n    factory._setupEmberKVO(target);\n    return {\n      get() {\n        let task = tasks.get(this);\n        if (!task) {\n          task = factory.createTask(this);\n          tasks.set(this, task);\n        }\n        return task;\n      }\n    };\n  }\n  function taskGroupPropertyDescriptor(_target, key, _descriptor, params = [], factoryClass = _taskFactory.TaskFactory) {\n    let taskGroups = new WeakMap();\n    let options = params[0] || {};\n    let factory = new factoryClass(key, null, options);\n    return {\n      get() {\n        let task = taskGroups.get(this);\n        if (!task) {\n          task = factory.createTaskGroup(this);\n          taskGroups.set(this, task);\n        }\n        return task;\n      }\n    };\n  }\n\n  // Cribbed from @ember-decorators/utils\n  function isFieldDescriptor(possibleDesc) {\n    let [target, key, desc] = possibleDesc;\n    return possibleDesc.length === 3 && typeof target === 'object' && target !== null && typeof key === 'string' && (typeof desc === 'object' && desc !== null && 'enumerable' in desc && 'configurable' in desc || desc === undefined) // TS compatibility ???\n    ;\n  }\n  function decoratorWithParams(descriptorFn) {\n    return function (...params) {\n      if (isFieldDescriptor(params)) {\n        return descriptorFn(...params);\n      } else {\n        return (...desc) => descriptorFn(...desc, params);\n      }\n    };\n  }\n  function createDecorator(fn, baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return decoratorWithParams((target, key, descriptor, [userOptions] = []) => {\n      let mergedOptions = Object.assign({}, {\n        ...baseOptions,\n        ...userOptions\n      });\n      return fn(target, key, descriptor, [mergedOptions], factoryClass);\n    });\n  }\n  function createTaskDecorator(baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return createDecorator(taskFromPropertyDescriptor, baseOptions, factoryClass);\n  }\n  function createTaskGroupDecorator(baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return createDecorator(taskGroupPropertyDescriptor, baseOptions, factoryClass);\n  }\n  const lastValue = _exports.lastValue = decoratorWithParams((_target, _key, descriptor, [taskName] = []) => {\n    const {\n      initializer\n    } = descriptor;\n    delete descriptor.initializer;\n    return {\n      get() {\n        let lastInstance = this[taskName].lastSuccessful;\n        if (lastInstance) {\n          return lastInstance.value;\n        }\n        if (initializer) {\n          return initializer.call(this);\n        }\n        return undefined;\n      }\n    };\n  });\n});","define(\"ember-concurrency/-private/external/task-factory\", [\"exports\", \"ember-concurrency/-private/external/scheduler/scheduler\", \"ember-concurrency/-private/external/scheduler/policies/unbounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", \"ember-concurrency/-private/external/scheduler/policies/drop-policy\", \"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", \"ember-concurrency/-private/external/scheduler/policies/restartable-policy\", \"ember-concurrency/-private/external/task/task\", \"ember-concurrency/-private/external/task/task-group\", \"ember-concurrency/-private/external/environment\"], function (_exports, _scheduler, _unboundedPolicy, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy, _task, _taskGroup, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskFactory = void 0;\n  _exports.getModifier = getModifier;\n  _exports.hasModifier = hasModifier;\n  _exports.registerModifier = registerModifier;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function assertModifiersNotMixedWithGroup(obj) {\n    if (obj._hasSetConcurrencyConstraint && obj._taskGroupPath) {\n      throw new Error(`Cannot use both 'group' and other concurrency-constraining task modifiers (e.g. 'drop', 'enqueue', 'restartable')`);\n    }\n  }\n  function assertUnsetBufferPolicy(obj) {\n    if (obj._hasSetBufferPolicy) {\n      throw new Error(`Cannot set multiple buffer policies on a task or task group. ${obj._schedulerPolicyClass} has already been set for task or task group '${obj.name}'`);\n    }\n  }\n  const MODIFIER_REGISTRY = {\n    enqueue: (factory, value) => value && factory.setBufferPolicy(_enqueuedPolicy.default),\n    evented: (factory, value) => value && factory.setEvented(value),\n    debug: (factory, value) => value && factory.setDebug(value),\n    drop: (factory, value) => value && factory.setBufferPolicy(_dropPolicy.default),\n    group: (factory, groupName) => factory.setGroup(groupName),\n    keepLatest: (factory, value) => value && factory.setBufferPolicy(_keepLatestPolicy.default),\n    maxConcurrency: (factory, maxConcurrency) => factory.setMaxConcurrency(maxConcurrency),\n    onState: (factory, onStateCallback) => factory.setOnState(onStateCallback),\n    restartable: (factory, value) => value && factory.setBufferPolicy(_restartablePolicy.default)\n  };\n\n  /**\n   * Callback type defining a task modifier\n   *\n   * @callback TaskFactory~TaskModifier\n   * @param {TaskFactory} factory\n   * @param {*} taskModifierOption\n   */\n\n  /**\n   * Registers a new modifier with the modifier registry\n   *\n   * @param {string} name Name of the modifier\n   * @param {TaskFactory~TaskModifier} callback\n   */\n  function registerModifier(name, callback) {\n    if (MODIFIER_REGISTRY[name]) {\n      throw new Error(`A modifier with the name '${name}' has already been defined.`);\n    }\n    MODIFIER_REGISTRY[name] = callback;\n  }\n\n  /**\n   * Returns a specified modifier, if it exists in the registry\n   *\n   * @param {string} name Name of the modifier\n   * @returns {TaskFactory~TaskModifier?}\n   */\n  function getModifier(name) {\n    return MODIFIER_REGISTRY[name];\n  }\n\n  /**\n   * Returns whether a specified modifier exists in the registry\n   *\n   * @param {string} name Name of the modifier\n   * @returns {boolean}\n   */\n  function hasModifier(name) {\n    return name in MODIFIER_REGISTRY;\n  }\n\n  /**\n   * Factory used for instantiating Tasks and Task Groups. Mostly for internal\n   * use, but some public APIs exposed via the Task Modifier APIs.\n   *\n   * <style>\n   *  .ignore-this--this-is-here-to-hide-constructor,\n   *  #TaskFactory { display: none }\n   * </style>\n   *\n   * @class TaskFactory\n   */\n  class TaskFactory {\n    constructor(name = '<unknown>', taskDefinition = null, options = {}) {\n      _defineProperty(this, \"env\", _environment.DEFAULT_ENVIRONMENT);\n      _defineProperty(this, \"_debug\", null);\n      _defineProperty(this, \"_enabledModifiers\", []);\n      _defineProperty(this, \"_hasSetConcurrencyConstraint\", false);\n      _defineProperty(this, \"_hasSetBufferPolicy\", false);\n      _defineProperty(this, \"_hasEnabledEvents\", false);\n      _defineProperty(this, \"_maxConcurrency\", null);\n      _defineProperty(this, \"_onStateCallback\", (state, taskable) => taskable.setState(state));\n      _defineProperty(this, \"_schedulerPolicyClass\", _unboundedPolicy.default);\n      _defineProperty(this, \"_taskGroupPath\", null);\n      this.name = name;\n      this.taskDefinition = taskDefinition;\n      this.options = options;\n      this._processModifierOptions(options);\n    }\n\n    /**\n     * Returns a new Task bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n    createTask(context) {\n      let options = this.getTaskOptions(context);\n      return new _task.Task(Object.assign({\n        generatorFactory: args => this.taskDefinition.apply(context, args)\n      }, options));\n    }\n\n    /**\n     * Returns a new TaskGroup bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n    createTaskGroup(context) {\n      let options = this.getTaskOptions(context);\n      return new _taskGroup.TaskGroup(options);\n    }\n\n    /**\n     * Returns a modifier callback with the given name bound to this TaskFactory,\n     * if registered.\n     *\n     * @protected\n     * @param {string} name\n     * @returns {TaskFactory~TaskModifier?}\n     */\n    getModifier(name) {\n      if (hasModifier(name)) {\n        return MODIFIER_REGISTRY[name].bind(null, this);\n      }\n    }\n\n    /**\n     * Returns the options provided to TaskFactory\n     *\n     * @public\n     * @returns {object}\n     */\n    getOptions() {\n      return this.options;\n    }\n\n    /**\n     * Returns a new Scheduler instance\n     *\n     * @protected\n     * @param {*} schedulerPolicy\n     * @param {boolean} stateTrackingEnabled\n     * @returns {Scheduler}\n     */\n    getScheduler(schedulerPolicy, stateTrackingEnabled) {\n      return new _scheduler.default(schedulerPolicy, stateTrackingEnabled);\n    }\n\n    /**\n     * Returns the options to pass to a Task or TaskGroup constructor\n     *\n     * @protected\n     * @param {*} context\n     * @returns {object}\n     */\n    getTaskOptions(context) {\n      let group, scheduler;\n      let onStateCallback = this._onStateCallback;\n      if (this._taskGroupPath) {\n        group = context[this._taskGroupPath];\n        if (!(group instanceof _taskGroup.TaskGroup)) {\n          throw new Error(`Expected group '${this._taskGroupPath}' to be defined but was not found.`);\n        }\n        scheduler = group.scheduler;\n      } else {\n        let schedulerPolicy = new this._schedulerPolicyClass(this._maxConcurrency);\n        scheduler = this.getScheduler(schedulerPolicy, onStateCallback && typeof onStateCallback === 'function');\n      }\n      return {\n        context,\n        debug: this._debug,\n        env: this.env,\n        name: this.name,\n        group,\n        scheduler,\n        hasEnabledEvents: this._hasEnabledEvents,\n        onStateCallback,\n        enabledModifiers: this._enabledModifiers,\n        modifierOptions: this.getOptions()\n      };\n    }\n\n    /**\n     * Sets the Scheduler buffer policy class to the specified value.\n     *\n     * Will raise an assertion if a buffer policy has already been specified\n     *\n     * @param {*} policy\n     * @returns {TaskFactory}\n     */\n    setBufferPolicy(policy) {\n      assertUnsetBufferPolicy(this);\n      this._hasSetBufferPolicy = true;\n      this._hasSetConcurrencyConstraint = true;\n      this._schedulerPolicyClass = policy;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    }\n\n    /**\n     * Sets debug mode\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n    setDebug(enabled) {\n      this._debug = enabled;\n      return this;\n    }\n\n    /**\n     * Sets whether Task will dispatch Task events or not\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n    setEvented(enabled) {\n      this._hasEnabledEvents = enabled;\n      return this;\n    }\n\n    /**\n     * Sets Scheduling policy's `maxConcurrency`\n     *\n     * @param {number} maxConcurrency\n     * @returns {TaskFactory}\n     */\n    setMaxConcurrency(maxConcurrency) {\n      this._hasSetConcurrencyConstraint = true;\n      this._maxConcurrency = maxConcurrency;\n      return this;\n    }\n\n    /**\n     * Assigns Task created from this factory to the specified group name\n     *\n     * @param {string} group\n     * @returns {TaskFactory}\n     */\n    setGroup(group) {\n      this._taskGroupPath = group;\n      return this;\n    }\n\n    /**\n     * Sets the name of tasks created from this factory\n     *\n     * @param {string} name\n     * @returns {TaskFactory}\n     */\n    setName(name) {\n      this.name = name;\n      return this;\n    }\n\n    /**\n     * Sets the callback used on state updates. Can be set to null to disable\n     * state tracking on tasks.\n     *\n     * @param {function} onStateCallback\n     * @returns {TaskFactory}\n     */\n    setOnState(onStateCallback) {\n      this._onStateCallback = onStateCallback;\n      return this;\n    }\n\n    /**\n     * Sets the definition for tasks created from this factory\n     *\n     * @param {*} taskDefinition\n     * @returns {TaskFactory}\n     */\n    setTaskDefinition(taskDefinition) {\n      this.taskDefinition = taskDefinition;\n      return this;\n    }\n    _processModifierOptions(options) {\n      if (!options) {\n        return;\n      }\n      for (let key of Object.keys(options)) {\n        let value = options[key];\n        let modifier = this.getModifier(key);\n        if (typeof modifier === 'function' && modifier(value)) {\n          this._enabledModifiers.push(key);\n        }\n      }\n    }\n  }\n  _exports.TaskFactory = TaskFactory;\n});","define(\"ember-concurrency/-private/external/task-instance/base\", [\"exports\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _initialState, _yieldables, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BaseTaskInstance = void 0;\n  const EXPLICIT_CANCEL_REASON = '.cancel() was explicitly called';\n  class BaseTaskInstance {\n    constructor({\n      task,\n      args,\n      executor,\n      performType,\n      hasEnabledEvents\n    }) {\n      this.task = task;\n      this.args = args;\n      this.performType = performType;\n      this.executor = executor;\n      this.executor.taskInstance = this;\n      this.hasEnabledEvents = hasEnabledEvents;\n    }\n    setState() {}\n    onStarted() {}\n    onSuccess() {}\n    onError() {}\n    onCancel() {}\n    formatCancelReason() {}\n    selfCancelLoopWarning() {}\n    onFinalize(callback) {\n      this.executor.onFinalize(callback);\n    }\n    proceed(index, yieldResumeType, value) {\n      this.executor.proceedChecked(index, yieldResumeType, value);\n    }\n    [_yieldables.yieldableSymbol](parentTaskInstance, resumeIndex) {\n      return this.executor.onYielded(parentTaskInstance, resumeIndex);\n    }\n    cancel(cancelReason = EXPLICIT_CANCEL_REASON) {\n      this.executor.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_EXPLICIT, cancelReason));\n    }\n    then(...args) {\n      return this.executor.promise().then(...args);\n    }\n    catch(...args) {\n      return this.executor.promise().catch(...args);\n    }\n    finally(...args) {\n      return this.executor.promise().finally(...args);\n    }\n    toString() {\n      return `${this.task} TaskInstance`;\n    }\n    start() {\n      this.executor.start();\n      return this;\n    }\n  }\n  _exports.BaseTaskInstance = BaseTaskInstance;\n  Object.assign(BaseTaskInstance.prototype, _initialState.INITIAL_STATE);\n  Object.assign(BaseTaskInstance.prototype, {\n    state: 'waiting',\n    isDropped: false,\n    isRunning: true\n  });\n});","define(\"ember-concurrency/-private/external/task-instance/cancelation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TASK_CANCELATION_NAME = _exports.CancelRequest = _exports.CANCEL_KIND_YIELDABLE_CANCEL = _exports.CANCEL_KIND_PARENT_CANCEL = _exports.CANCEL_KIND_LIFESPAN_END = _exports.CANCEL_KIND_EXPLICIT = void 0;\n  _exports.didCancel = didCancel;\n  const TASK_CANCELATION_NAME = _exports.TASK_CANCELATION_NAME = 'TaskCancelation';\n\n  /**\n   * Returns true if the object passed to it is a TaskCancelation error.\n   * If you call `someTask.perform().catch(...)` or otherwise treat\n   * a {@linkcode TaskInstance} like a promise, you may need to\n   * handle the cancelation of a TaskInstance differently from\n   * other kinds of errors it might throw, and you can use this\n   * convenience function to distinguish cancelation from errors.\n   *\n   * ```js\n   * click() {\n   *   this.myTask.perform().catch(e => {\n   *     if (!didCancel(e)) { throw e; }\n   *   });\n   * }\n   * ```\n   *\n   * @param {object} error the caught error, which might be a TaskCancelation\n   * @returns {boolean}\n   */\n  function didCancel(e) {\n    return e && e.name === TASK_CANCELATION_NAME;\n  }\n  const CANCEL_KIND_EXPLICIT = _exports.CANCEL_KIND_EXPLICIT = 'explicit';\n  const CANCEL_KIND_YIELDABLE_CANCEL = _exports.CANCEL_KIND_YIELDABLE_CANCEL = 'yielded';\n  const CANCEL_KIND_LIFESPAN_END = _exports.CANCEL_KIND_LIFESPAN_END = 'lifespan_end';\n  const CANCEL_KIND_PARENT_CANCEL = _exports.CANCEL_KIND_PARENT_CANCEL = 'parent_cancel';\n  class CancelRequest {\n    constructor(kind, reason) {\n      this.kind = kind;\n      this.reason = reason;\n      this.promise = new Promise(resolve => {\n        this.finalize = resolve;\n      });\n    }\n  }\n  _exports.CancelRequest = CancelRequest;\n});","define(\"ember-concurrency/-private/external/task-instance/completion-states\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.COMPLETION_SUCCESS = _exports.COMPLETION_PENDING = _exports.COMPLETION_ERROR = _exports.COMPLETION_CANCEL = void 0;\n  const COMPLETION_PENDING = _exports.COMPLETION_PENDING = 0;\n  const COMPLETION_SUCCESS = _exports.COMPLETION_SUCCESS = 1;\n  const COMPLETION_ERROR = _exports.COMPLETION_ERROR = 2;\n  const COMPLETION_CANCEL = _exports.COMPLETION_CANCEL = 3;\n});","define(\"ember-concurrency/-private/external/task-instance/executor\", [\"exports\", \"ember-concurrency/-private/external/generator-state\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/external/task-instance/completion-states\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _generatorState, _initialState, _yieldables, _completionStates, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskInstanceExecutor = _exports.PERFORM_TYPE_UNLINKED = _exports.PERFORM_TYPE_LINKED = _exports.PERFORM_TYPE_DEFAULT = void 0;\n  _exports.getRunningInstance = getRunningInstance;\n  const PERFORM_TYPE_DEFAULT = _exports.PERFORM_TYPE_DEFAULT = 'PERFORM_TYPE_DEFAULT';\n  const PERFORM_TYPE_UNLINKED = _exports.PERFORM_TYPE_UNLINKED = 'PERFORM_TYPE_UNLINKED';\n  const PERFORM_TYPE_LINKED = _exports.PERFORM_TYPE_LINKED = 'PERFORM_TYPE_LINKED';\n  const CANCEL_RETURN_VALUE_SENTINEL = {};\n  let TASK_INSTANCE_STACK = [];\n  function getRunningInstance() {\n    return TASK_INSTANCE_STACK[TASK_INSTANCE_STACK.length - 1];\n  }\n  class TaskInstanceExecutor {\n    constructor({\n      generatorFactory,\n      env,\n      debug\n    }) {\n      this.generatorState = new _generatorState.GeneratorState(generatorFactory);\n      this.state = Object.assign({}, _initialState.INITIAL_STATE);\n      this.index = 1;\n      this.disposers = [];\n      this.finalizeCallbacks = [];\n      this.env = env;\n      this.debug = debug;\n      this.cancelRequest = null;\n    }\n    start() {\n      if (this.state.hasStarted || this.cancelRequest) {\n        return;\n      }\n      this.setState({\n        hasStarted: true\n      });\n      this.proceedSync(_yieldables.YIELDABLE_CONTINUE, undefined);\n      this.taskInstance.onStarted();\n    }\n    cancel(cancelRequest) {\n      if (!this.requestCancel(cancelRequest)) {\n        cancelRequest.finalize();\n        return cancelRequest.promise;\n      }\n      if (this.state.hasStarted) {\n        this.proceedWithCancelAsync();\n      } else {\n        this.finalizeWithCancel();\n      }\n      return this.cancelRequest.promise;\n    }\n    setState(state) {\n      Object.assign(this.state, state);\n      this.taskInstance.setState(this.state);\n    }\n    proceedChecked(index, yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n      if (!this.advanceIndex(index)) {\n        return;\n      }\n      if (yieldResumeType === _yieldables.YIELDABLE_CANCEL) {\n        this.requestCancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_YIELDABLE_CANCEL), value);\n        this.proceedWithCancelAsync();\n      } else {\n        this.proceedAsync(yieldResumeType, value);\n      }\n    }\n    proceedWithCancelAsync() {\n      this.proceedAsync(_yieldables.YIELDABLE_RETURN, CANCEL_RETURN_VALUE_SENTINEL);\n    }\n    proceedAsync(yieldResumeType, value) {\n      this.advanceIndex(this.index);\n      this.env.async(() => this.proceedSync(yieldResumeType, value));\n    }\n    proceedSync(yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n      this.dispose();\n      if (this.generatorState.done) {\n        this.handleResolvedReturnedValue(yieldResumeType, value);\n      } else {\n        this.handleResolvedContinueValue(yieldResumeType, value);\n      }\n    }\n\n    /**\n     * This method is called when a previously yielded value from\n     * the generator has been resolved, and now it's time to pass\n     * it back into the generator. There are 3 ways to \"resume\" a\n     * generator:\n     *\n     * - call `.next(value)` on it, which is used to pass in a resolved\n     *   value (the fulfilled value of a promise), e.g. if a task generator fn\n     *   does `yield Promise.resolve(5)`, then we take that promise yielded\n     *   by the generator, detect that it's a promise, resolve it, and then\n     *   pass its fulfilled value `5` back into the generator function so\n     *   that it can continue executing.\n     * - call `.throw(error)` on it, which throw an exception from where the\n     *   the generator previously yielded. We do this when the previously\n     *   yielded value resolves to an error value (e.g. a rejected promise\n     *   or a TaskInstance that finished with an error). Note that when you\n     *   resume a generator with a `.throw()`, it can still recover from that\n     *   thrown error and continue executing normally so long as the `yield`\n     *   was inside a `try/catch` statement.\n     * - call `.return(value)` on it, causes the generator function to return\n     *   from where it previously `yield`ed. We use `.return()` when cancelling\n     *   a TaskInstance; by `.return`ing, rather than `.throw`ing, it allows\n     *   the generator function to skip `catch(e) {}` blocks, which is usually\n     *   reserved for actual errors/exceptions; if we `.throw`'d cancellations,\n     *   it would require all tasks that used try/catch to conditionally ignore\n     *   cancellations, which is annoying. So we `.return()` from generator functions\n     *   in the case of errors as a matter of convenience.\n     *\n     * @private\n     */\n    handleResolvedContinueValue(iteratorMethod, resumeValue) {\n      let beforeIndex = this.index;\n      let stepResult = this.generatorStep(resumeValue, iteratorMethod);\n\n      // TODO: what is this doing? write breaking test.\n      if (!this.advanceIndex(beforeIndex)) {\n        return;\n      }\n      if (stepResult.errored) {\n        this.finalize(stepResult.value, _completionStates.COMPLETION_ERROR);\n        return;\n      }\n      this.handleYieldedValue(stepResult);\n    }\n\n    /**\n     * This method is called when the generator function is all\n     * out of values, and the last value returned from the function\n     * (possible a thenable/yieldable/promise/etc) has been resolved.\n     *\n     * Possible cases:\n     * - `return \"simple value\";` // resolved value is \"simple value\"\n     * - `return undefined;` // (or omitted return) resolved value is undefined\n     * - `return someTask.perform()` // resolved value is the value returned/resolved from someTask\n     *\n     * @private\n     */\n    handleResolvedReturnedValue(yieldResumeType, value) {\n      switch (yieldResumeType) {\n        case _yieldables.YIELDABLE_CONTINUE:\n        case _yieldables.YIELDABLE_RETURN:\n          this.finalize(value, _completionStates.COMPLETION_SUCCESS);\n          break;\n        case _yieldables.YIELDABLE_THROW:\n          this.finalize(value, _completionStates.COMPLETION_ERROR);\n          break;\n      }\n    }\n    handleYieldedUnknownThenable(thenable) {\n      let resumeIndex = this.index;\n      thenable.then(value => {\n        this.proceedChecked(resumeIndex, _yieldables.YIELDABLE_CONTINUE, value);\n      }, error => {\n        this.proceedChecked(resumeIndex, _yieldables.YIELDABLE_THROW, error);\n      });\n    }\n\n    /**\n     * The TaskInstance internally tracks an index/sequence number\n     * (the `index` property) which gets incremented every time the\n     * task generator function iterator takes a step. When a task\n     * function is paused at a `yield`, there are two events that\n     * cause the TaskInstance to take a step: 1) the yielded value\n     * \"resolves\", thus resuming the TaskInstance's execution, or\n     * 2) the TaskInstance is canceled. We need some mechanism to prevent\n     * stale yielded value resolutions from resuming the TaskFunction\n     * after the TaskInstance has already moved on (either because\n     * the TaskInstance has since been canceled or because an\n     * implementation of the Yieldable API tried to resume the\n     * TaskInstance more than once). The `index` serves as\n     * that simple mechanism: anyone resuming a TaskInstance\n     * needs to pass in the `index` they were provided that acts\n     * as a ticket to resume the TaskInstance that expires once\n     * the TaskInstance has moved on.\n     *\n     * @private\n     */\n    advanceIndex(index) {\n      if (this.index === index) {\n        return ++this.index;\n      }\n    }\n    handleYieldedValue(stepResult) {\n      let yieldedValue = stepResult.value;\n      if (!yieldedValue) {\n        this.proceedWithSimpleValue(yieldedValue);\n        return;\n      }\n      this.addDisposer(yieldedValue[_yieldables.cancelableSymbol]);\n      if (yieldedValue[_yieldables.yieldableSymbol]) {\n        this.invokeYieldable(yieldedValue);\n      } else if (typeof yieldedValue.then === 'function') {\n        this.handleYieldedUnknownThenable(yieldedValue);\n      } else {\n        this.proceedWithSimpleValue(yieldedValue);\n      }\n    }\n    proceedWithSimpleValue(yieldedValue) {\n      this.proceedAsync(_yieldables.YIELDABLE_CONTINUE, yieldedValue);\n    }\n    addDisposer(maybeDisposer) {\n      if (typeof maybeDisposer !== 'function') {\n        return;\n      }\n      this.disposers.push(maybeDisposer);\n    }\n\n    /**\n     * Runs any disposers attached to the task's most recent `yield`.\n     * For instance, when a task yields a TaskInstance, it registers that\n     * child TaskInstance's disposer, so that if the parent task is canceled,\n     * dispose() will run that disposer and cancel the child TaskInstance.\n     *\n     * @private\n     */\n    dispose() {\n      let disposers = this.disposers;\n      if (disposers.length === 0) {\n        return;\n      }\n      this.disposers = [];\n      disposers.forEach(disposer => disposer());\n    }\n\n    /**\n     * Calls .next()/.throw()/.return() on the task's generator function iterator,\n     * essentially taking a single step of execution on the task function.\n     *\n     * @private\n     */\n    generatorStep(nextValue, iteratorMethod) {\n      TASK_INSTANCE_STACK.push(this);\n      let stepResult = this.generatorState.step(nextValue, iteratorMethod);\n      TASK_INSTANCE_STACK.pop();\n\n      // TODO: fix this!\n      if (this._expectsLinkedYield) {\n        let value = stepResult.value;\n        if (!value || value.performType !== PERFORM_TYPE_LINKED) {\n          // eslint-disable-next-line no-console\n          console.warn('You performed a .linked() task without immediately yielding/returning it. This is currently unsupported (but might be supported in future version of ember-concurrency).');\n        }\n        this._expectsLinkedYield = false;\n      }\n      return stepResult;\n    }\n    maybeResolveDefer() {\n      if (!this.defer || !this.state.isFinished) {\n        return;\n      }\n      if (this.state.completionState === _completionStates.COMPLETION_SUCCESS) {\n        this.defer.resolve(this.state.value);\n      } else {\n        this.defer.reject(this.state.error);\n      }\n    }\n    onFinalize(callback) {\n      this.finalizeCallbacks.push(callback);\n      if (this.state.isFinished) {\n        this.runFinalizeCallbacks();\n      }\n    }\n    runFinalizeCallbacks() {\n      this.finalizeCallbacks.forEach(cb => cb());\n      this.finalizeCallbacks = [];\n      this.maybeResolveDefer();\n      this.maybeThrowUnhandledTaskErrorLater();\n    }\n    promise() {\n      if (!this.defer) {\n        this.defer = this.env.defer();\n        this.asyncErrorsHandled = true;\n        this.maybeResolveDefer();\n      }\n      return this.defer.promise;\n    }\n    maybeThrowUnhandledTaskErrorLater() {\n      if (!this.asyncErrorsHandled && this.state.completionState === _completionStates.COMPLETION_ERROR && !(0, _cancelation.didCancel)(this.state.error)) {\n        this.env.async(() => {\n          if (!this.asyncErrorsHandled) {\n            this.env.reportUncaughtRejection(this.state.error);\n          }\n        });\n      }\n    }\n    requestCancel(request) {\n      if (this.cancelRequest || this.state.isFinished) {\n        return false;\n      }\n      this.cancelRequest = request;\n      return true;\n    }\n    finalize(value, completionState) {\n      if (this.cancelRequest) {\n        return this.finalizeWithCancel();\n      }\n      let state = {\n        completionState\n      };\n      if (completionState === _completionStates.COMPLETION_SUCCESS) {\n        state.isSuccessful = true;\n        state.value = value;\n      } else if (completionState === _completionStates.COMPLETION_ERROR) {\n        state.isError = true;\n        state.error = value;\n      } else if (completionState === _completionStates.COMPLETION_CANCEL) {\n        state.error = value;\n      }\n      this.finalizeShared(state);\n    }\n    finalizeWithCancel() {\n      let cancelReason = this.taskInstance.formatCancelReason(this.cancelRequest.reason);\n      let error = new Error(cancelReason);\n      if (this.debugEnabled()) {\n        // eslint-disable-next-line no-console\n        console.log(cancelReason);\n      }\n      error.name = _cancelation.TASK_CANCELATION_NAME;\n      this.finalizeShared({\n        isCanceled: true,\n        completionState: _completionStates.COMPLETION_CANCEL,\n        error,\n        cancelReason\n      });\n      this.cancelRequest.finalize();\n    }\n    debugEnabled() {\n      return this.debug || this.env.globalDebuggingEnabled();\n    }\n    finalizeShared(state) {\n      this.index++;\n      state.isFinished = true;\n      this.setState(state);\n      this.runFinalizeCallbacks();\n      this.dispatchFinalizeEvents(state.completionState);\n    }\n    dispatchFinalizeEvents(completionState) {\n      switch (completionState) {\n        case _completionStates.COMPLETION_SUCCESS:\n          this.taskInstance.onSuccess();\n          break;\n        case _completionStates.COMPLETION_ERROR:\n          this.taskInstance.onError(this.state.error);\n          break;\n        case _completionStates.COMPLETION_CANCEL:\n          this.taskInstance.onCancel(this.state.cancelReason);\n          break;\n      }\n    }\n    invokeYieldable(yieldedValue) {\n      try {\n        let maybeDisposer = yieldedValue[_yieldables.yieldableSymbol](this.taskInstance, this.index);\n        this.addDisposer(maybeDisposer);\n      } catch (e) {\n        this.env.reportUncaughtRejection(e);\n      }\n    }\n\n    /**\n     * `onYielded` is called when this task instance has been\n     * yielded in another task instance's execution. We take\n     * this opportunity to conditionally link up the tasks\n     * so that when the parent or child cancels, the other\n     * is cancelled.\n     *\n     * Given the following case:\n     *\n     * ```js\n     * parentTask: task(function * () {\n     *   yield otherTask.perform();\n     * })\n     * ```\n     *\n     * Then the `parent` param is the task instance that is executing, `this`\n     * is the `otherTask` task instance that was yielded.\n     *\n     * @private\n     */\n    onYielded(parent, resumeIndex) {\n      this.asyncErrorsHandled = true;\n      this.onFinalize(() => {\n        let completionState = this.state.completionState;\n        if (completionState === _completionStates.COMPLETION_SUCCESS) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_CONTINUE, this.state.value);\n        } else if (completionState === _completionStates.COMPLETION_ERROR) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_THROW, this.state.error);\n        } else if (completionState === _completionStates.COMPLETION_CANCEL) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_CANCEL, null);\n        }\n      });\n      let performType = this.getPerformType();\n      if (performType === PERFORM_TYPE_UNLINKED) {\n        return;\n      }\n      return () => {\n        this.detectSelfCancelLoop(performType, parent);\n        this.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_PARENT_CANCEL));\n      };\n    }\n    getPerformType() {\n      return this.taskInstance.performType || PERFORM_TYPE_DEFAULT;\n    }\n    detectSelfCancelLoop(performType, parent) {\n      if (performType !== PERFORM_TYPE_DEFAULT) {\n        return;\n      }\n      let parentCancelRequest = parent.executor && parent.executor.cancelRequest;\n\n      // Detect that the parent was cancelled by a lifespan ending and\n      // that the child is still running and not cancelled.\n      if (parentCancelRequest && parentCancelRequest.kind === _cancelation.CANCEL_KIND_LIFESPAN_END && !this.cancelRequest && !this.state.isFinished) {\n        this.taskInstance.selfCancelLoopWarning(parent);\n      }\n    }\n  }\n  _exports.TaskInstanceExecutor = TaskInstanceExecutor;\n});","define(\"ember-concurrency/-private/external/task-instance/initial-state\", [\"exports\", \"ember-concurrency/-private/external/task-instance/completion-states\"], function (_exports, _completionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.INITIAL_STATE = void 0;\n  const INITIAL_STATE = _exports.INITIAL_STATE = {\n    completionState: _completionStates.COMPLETION_PENDING,\n    /**\n     * If this TaskInstance runs to completion by returning a property\n     * other than a rejecting promise, this property will be set\n     * with that value.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    value: null,\n    /**\n     * If this TaskInstance is canceled or throws an error (or yields\n     * a promise that rejects), this property will be set with that error.\n     * Otherwise, it is null.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    error: null,\n    /**\n     * True if the task instance is fulfilled.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isSuccessful: false,\n    /**\n     * True if the task instance resolves to a rejection.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isError: false,\n    /**\n     * True if the task instance is canceled\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isCanceled: false,\n    /**\n     * True if the task instance has started, else false.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    hasStarted: false,\n    /**\n     * True if the task has run to completion.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isFinished: false\n  };\n});","define(\"ember-concurrency/-private/external/task/default-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DEFAULT_STATE = void 0;\n  const DEFAULT_STATE = _exports.DEFAULT_STATE = {\n    last: null,\n    lastRunning: null,\n    lastPerformed: null,\n    lastSuccessful: null,\n    lastComplete: null,\n    lastErrored: null,\n    lastCanceled: null,\n    lastIncomplete: null,\n    performCount: 0\n  };\n  Object.freeze(DEFAULT_STATE);\n});","define(\"ember-concurrency/-private/external/task/task-group\", [\"exports\", \"ember-concurrency/-private/external/task/taskable\"], function (_exports, _taskable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroup = void 0;\n  class TaskGroup extends _taskable.Taskable {}\n  _exports.TaskGroup = TaskGroup;\n});","define(\"ember-concurrency/-private/external/task/task\", [\"exports\", \"ember-concurrency/-private/external/task/taskable\", \"ember-concurrency/-private/external/task-instance/executor\"], function (_exports, _taskable, _executor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Task = void 0;\n  class TaskLinkProxy {\n    constructor(task, performType, linkedObject) {\n      this.task = task;\n      this.performType = performType;\n      this.linkedObject = linkedObject;\n    }\n    perform(...args) {\n      return this.task._performShared(args, this.performType, this.linkedObject);\n    }\n  }\n  class Task extends _taskable.Taskable {\n    constructor(options) {\n      super(options);\n      this.generatorFactory = options.generatorFactory;\n      this.perform = this._perform.bind(this);\n    }\n    linked() {\n      let linkedObject = (0, _executor.getRunningInstance)();\n      if (!linkedObject) {\n        throw new Error(`You can only call .linked() from within a task.`);\n      }\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_LINKED, linkedObject);\n    }\n    unlinked() {\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_UNLINKED, null);\n    }\n    toString() {\n      return `<Task:${this.name}>`;\n    }\n    _clone() {\n      return new Task({\n        context: this.context,\n        debug: this.debug,\n        env: this.env,\n        generatorFactory: this.generatorFactory,\n        group: this.group,\n        hasEnabledEvents: this.hasEnabledEvents,\n        name: this.name,\n        onStateCallback: this.onStateCallback,\n        scheduler: this.scheduler\n      });\n    }\n    _curry(...args) {\n      let task = this._clone();\n      task._curryArgs = [...(this._curryArgs || []), ...args];\n      return task;\n    }\n    _perform(...args) {\n      return this._performShared(args, _executor.PERFORM_TYPE_DEFAULT, null);\n    }\n    _performShared(args, performType, linkedObject) {\n      let fullArgs = this._curryArgs ? [...this._curryArgs, ...args] : args;\n      let taskInstance = this._taskInstanceFactory(fullArgs, performType, linkedObject);\n      if (performType === _executor.PERFORM_TYPE_LINKED) {\n        linkedObject._expectsLinkedYield = true;\n      }\n      if (!this._isAlive) {\n        // a task linked to a dead lifetime should immediately cancel.\n        taskInstance.cancel();\n      }\n      this.scheduler.perform(taskInstance);\n      return taskInstance;\n    }\n\n    // eslint-disable-next-line no-unused-vars\n    _taskInstanceOptions(args, performType, _linkedObject) {\n      let generatorFactory = () => this.generatorFactory(args);\n      let taskInstanceOptions = {\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: this.env,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      };\n      return taskInstanceOptions;\n    }\n  }\n  _exports.Task = Task;\n});","define(\"ember-concurrency/-private/external/task/taskable\", [\"exports\", \"ember-concurrency/-private/external/task/default-state\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _defaultState, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Taskable = void 0;\n  let guidId = 0;\n  function makeGuid() {\n    return `ec_${guidId++}`;\n  }\n  class Taskable {\n    constructor(options) {\n      this.context = options.context;\n      this.debug = options.debug || false;\n      this.enabledModifiers = options.enabledModifiers;\n      this.env = options.env;\n      this.group = options.group;\n      this.hasEnabledEvents = options.hasEnabledEvents;\n      this.modifierOptions = options.modifierOptions;\n      this.name = options.name;\n      this.onStateCallback = options.onStateCallback;\n      this.scheduler = options.scheduler;\n      this.guid = makeGuid();\n      this.guids = {};\n      this.guids[this.guid] = true;\n      if (this.group) {\n        Object.assign(this.guids, this.group.guids);\n      }\n    }\n    cancelAll(options) {\n      let {\n        reason,\n        cancelRequestKind,\n        resetState\n      } = options || {};\n      reason = reason || '.cancelAll() was explicitly called on the Task';\n      let cancelRequest = new _cancelation.CancelRequest(cancelRequestKind || _cancelation.CANCEL_KIND_EXPLICIT, reason);\n      return this.scheduler.cancelAll(this.guid, cancelRequest).then(() => {\n        if (resetState) {\n          this._resetState();\n        }\n      });\n    }\n    get _isAlive() {\n      return true;\n    }\n    _resetState() {\n      this.setState(_defaultState.DEFAULT_STATE);\n    }\n\n    // override\n    setState() {}\n  }\n  _exports.Taskable = Taskable;\n  Object.assign(Taskable.prototype, _defaultState.DEFAULT_STATE);\n  Object.assign(Taskable.prototype, {\n    numRunning: 0,\n    numQueued: 0,\n    isRunning: false,\n    isQueued: false,\n    isIdle: true,\n    state: 'idle'\n  });\n});","define(\"ember-concurrency/-private/external/yieldables\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Yieldable = _exports.YIELDABLE_THROW = _exports.YIELDABLE_RETURN = _exports.YIELDABLE_CONTINUE = _exports.YIELDABLE_CANCEL = void 0;\n  _exports.animationFrame = animationFrame;\n  _exports.forever = _exports.cancelableSymbol = void 0;\n  _exports.rawTimeout = rawTimeout;\n  _exports.yieldableSymbol = void 0;\n  const cancelableSymbol = _exports.cancelableSymbol = '__ec_cancel__';\n  const yieldableSymbol = _exports.yieldableSymbol = '__ec_yieldable__';\n  const YIELDABLE_CONTINUE = _exports.YIELDABLE_CONTINUE = 'next';\n  const YIELDABLE_THROW = _exports.YIELDABLE_THROW = 'throw';\n  const YIELDABLE_RETURN = _exports.YIELDABLE_RETURN = 'return';\n  const YIELDABLE_CANCEL = _exports.YIELDABLE_CANCEL = 'cancel';\n\n  /**\n   * @class YieldableState\n   * @hideconstructor\n   */\n  class YieldableState {\n    constructor(taskInstance, resumeIndex) {\n      this._taskInstance = taskInstance;\n      this._resumeIndex = resumeIndex;\n    }\n\n    /**\n     * Return yielded TaskInstance. Useful for introspection on instance state.\n     * @method getTaskInstance\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n    getTaskInstance() {\n      return this._taskInstance;\n    }\n\n    /**\n     * Cancel the yielded TaskInstance.\n     * @method cancel\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n    cancel() {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CANCEL);\n    }\n\n    /**\n     * Cause the TaskInstance to return from its yield with an optional value,\n     * and continue executing.\n     * @method next\n     * @memberof YieldableState\n     * @param value\n     * @public\n     * @instance\n     */\n    next(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CONTINUE, value);\n    }\n\n    /**\n     * Short-circuit TaskInstance execution and have it return with an optional\n     * value.\n     * @method return\n     * @memberof YieldableState\n     * @param value\n     * @public\n     * @instance\n     */\n    return(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_RETURN, value);\n    }\n\n    /**\n     * Raise a given error within the given task instance and halt execution\n     * @method throw\n     * @memberof YieldableState\n     * @param error\n     * @public\n     * @instance\n     */\n    throw(error) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_THROW, error);\n    }\n  }\n\n  /**\n   * Yieldables are a primitive for building safe, cancelation-aware ways to\n   * instrument and introspect the runtime of a task. Many Yieldables are built-in\n   * to ember-concurrency today, such as `timeout`, `animationFrame`, and\n   * `rawTimeout`.\n   *\n   * For example, if I wanted to implement a yieldable for `requestIdleCallback`,\n   * I could do the following:\n   *\n   * ```javascript\n   * import Component from '@glimmer/component';\n   * import { task, Yieldable } from 'ember-concurrency';\n   *\n   * class IdleCallbackYieldable extends Yieldable {\n   *   onYield(state) {\n   *     let callbackId = requestIdleCallback(() => state.next());\n   *\n   *     return () => cancelIdleCallback(callbackId);\n   *   }\n   * }\n   *\n   * const idleCallback = () => new IdleCallbackYieldable();\n   *\n   * class MyComponent extends Component {\n   *   &#64;task *backgroundTask() {\n   *     while (1) {\n   *       yield idleCallback();\n   *\n   *       const data = this.complicatedNumberCrunching();\n   *       yield this.sendData(data);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * In general, `Yieldable` instances **should** be reusable across calls, and thus\n   * care should be taken to ensure that teardown is provided and state not\n   * intended to be shared across calls stay inside `onYield`.\n   *\n   * `Yieldable` also provides automatic Promise-casting.\n   *\n   * <style>\n   *   .ignore-this--this-is-here-to-hide-constructor,\n   *   #Yieldable { display: none }\n   * </style>\n   *\n   * @class Yieldable\n   */\n  class Yieldable {\n    constructor() {\n      this[yieldableSymbol] = this[yieldableSymbol].bind(this);\n    }\n\n    /**\n     * Defines what happens when the task encounters `yield myYieldable` and returns\n     * a disposer function that handles any cleanup.\n     *\n     * The state parameter is provided by the runtime, and provides operations for\n     * interacting with the yielding task instance and advancing, returning,\n     * throwing, or canceling its execution.\n     *\n     * @method onYield\n     * @memberof Yieldable\n     * @param {YieldableState} state\n     * @instance\n     * @public\n     */\n    onYield() {}\n    _deferable() {\n      let def = {\n        resolve: undefined,\n        reject: undefined\n      };\n      def.promise = new Promise((resolve, reject) => {\n        def.resolve = resolve;\n        def.reject = reject;\n      });\n      return def;\n    }\n    _toPromise() {\n      let def = this._deferable();\n      let thinInstance = {\n        proceed(_index, resumeType, value) {\n          if (resumeType == YIELDABLE_CONTINUE || resumeType == YIELDABLE_RETURN) {\n            def.resolve(value);\n          } else {\n            def.reject(value);\n          }\n        }\n      };\n      let maybeDisposer = this[yieldableSymbol](thinInstance, 0);\n      def.promise[cancelableSymbol] = maybeDisposer;\n      return def.promise;\n    }\n\n    /**\n     * Returns a promise that resolves with the value yielded back to or returned\n     * to the yielded task, or rejects with either the exception thrown from the\n     * Yieldable, or an error with a `.name` property with value `\"TaskCancelation\"`.\n     *\n     * @method then\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    then(...args) {\n      return this._toPromise().then(...args);\n    }\n\n    /**\n     * @method catch\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    catch(...args) {\n      return this._toPromise().catch(...args);\n    }\n\n    /**\n     * @method finally\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    finally(...args) {\n      return this._toPromise().finally(...args);\n    }\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      let state = new YieldableState(taskInstance, resumeIndex);\n      return this.onYield(state);\n    }\n  }\n  _exports.Yieldable = Yieldable;\n  class AnimationFrameYieldable extends Yieldable {\n    onYield(state) {\n      let timerId = requestAnimationFrame(() => state.next());\n      return () => cancelAnimationFrame(timerId);\n    }\n  }\n  class ForeverYieldable extends Yieldable {\n    onYield() {}\n  }\n  class RawTimeoutYieldable extends Yieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\n    onYield(state) {\n      let timerId = setTimeout(() => state.next(), this.ms);\n      return () => clearTimeout(timerId);\n    }\n  }\n\n  /**\n   * Yielding `animationFrame()` will pause a task until after the next animation\n   * frame using the native `requestAnimationFrame()` browser API.\n   *\n   * The task below, when performed, will print the time since the last loop run\n   * for every animation frame.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     let lastNow = performance.now();\n   *     while (true) {\n   *       yield animationFrame();\n   *\n   *       let now = performance.now();\n   *       let dt = now - lastNow;\n   *       lastNow = now;\n   *\n   *       console.log(dt);\n   *     }\n   *   }\n   * }\n   * ```\n   */\n  function animationFrame() {\n    return new AnimationFrameYieldable();\n  }\n\n  /**\n   *\n   * Yielding `forever` will pause a task indefinitely until\n   * it is cancelled (i.e. via host object destruction, the restartable modifier,\n   * or manual cancellation).\n   *\n   * This is often useful in cases involving animation: if you're\n   * using Liquid Fire, or some other animation scheme, sometimes you'll\n   * notice buttons visibly reverting to their inactive states during\n   * a route transition. By yielding `forever` in a Component task that drives a\n   * button's active state, you can keep a task indefinitely running\n   * until the animation runs to completion.\n   *\n   * NOTE: Liquid Fire also includes a useful `waitUntilIdle()` method\n   * on the `liquid-fire-transitions` service that you can use in a lot\n   * of these cases, but it won't cover cases of asynchrony that are\n   * unrelated to animation, in which case `forever` might be better suited\n   * to your needs.\n   *\n   * ```js\n   * import { task, forever } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;service myService;\n   *   &#64;task *myTask() {\n   *     yield this.myService.doSomethingThatCausesATransition();\n   *     yield forever;\n   *   }\n   * }\n   * ```\n   */\n  const forever = _exports.forever = new ForeverYieldable();\n\n  /**\n   *\n   * Yielding `rawTimeout(ms)` will pause a task for the duration\n   * of time passed in, in milliseconds.\n   *\n   * The timeout will use the native `setTimeout()` browser API,\n   * instead of the Ember runloop, which means that test helpers\n   * will *not* wait for it to complete.\n   *\n   * The task below, when performed, will print a message to the\n   * console every second.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     while (true) {\n   *       console.log(\"Hello!\");\n   *       yield rawTimeout(1000);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * @param {number} ms - the amount of time to sleep before resuming\n   *   the task, in milliseconds\n   */\n  function rawTimeout(ms) {\n    return new RawTimeoutYieldable(ms);\n  }\n});","define(\"ember-concurrency/-private/helpers\", [\"exports\", \"@ember/object\", \"@ember/debug\"], function (_exports, _object, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskHelperClosure = taskHelperClosure;\n  function taskHelperClosure(helperName, taskMethod, _args, hash) {\n    let task = _args[0];\n    let outerArgs = _args.slice(1);\n    return function (...innerArgs) {\n      if (!task || typeof task[taskMethod] !== 'function') {\n        (false && !(false) && (0, _debug.assert)(`The first argument passed to the \\`${helperName}\\` helper should be a Task object (without quotes); you passed ${task}`, false));\n        return;\n      }\n      if (hash && hash.value) {\n        let event = innerArgs.pop();\n        innerArgs.push((0, _object.get)(event, hash.value));\n      }\n      return task[taskMethod](...outerArgs, ...innerArgs);\n    };\n  }\n});","define(\"ember-concurrency/-private/scheduler/ember-scheduler\", [\"exports\", \"ember-concurrency/-private/external/scheduler/scheduler\", \"@ember/runloop\"], function (_exports, _scheduler, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class EmberScheduler extends _scheduler.default {\n    scheduleRefresh() {\n      (0, _runloop.once)(this, this.refresh);\n    }\n  }\n  var _default = _exports.default = EmberScheduler;\n});","define(\"ember-concurrency/-private/task-decorators\", [\"exports\", \"@ember/object\", \"ember-concurrency/-private/external/task-decorators\", \"ember-concurrency/-private/task-factory\", \"ember-concurrency/-private/utils\"], function (_exports, _object, _taskDecorators, _taskFactory, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskGroup = _exports.task = _exports.restartableTaskGroup = _exports.restartableTask = _exports.lastValue = _exports.keepLatestTaskGroup = _exports.keepLatestTask = _exports.enqueueTaskGroup = _exports.enqueueTask = _exports.dropTaskGroup = _exports.dropTask = void 0;\n  const computedLastValue = (0, _taskDecorators.decoratorWithParams)((target, key, descriptor, [taskName] = []) => {\n    const {\n      initializer\n    } = descriptor;\n    delete descriptor.initializer;\n    let cp = (0, _object.computed)(`${taskName}.lastSuccessful`, function () {\n      let lastInstance = (0, _object.get)(this, `${taskName}.lastSuccessful`);\n      if (lastInstance) {\n        // eslint-disable-next-line ember/no-get\n        return (0, _object.get)(lastInstance, 'value');\n      }\n      if (initializer) {\n        return initializer.call(this);\n      }\n      return undefined;\n    });\n    return cp(target, key, descriptor);\n  });\n  const lastValue = _exports.lastValue = _utils.USE_TRACKED ? _taskDecorators.lastValue : computedLastValue;\n\n  /**\n   * A Task is a cancelable, restartable, asynchronous operation that\n   * is driven by a generator function. Tasks are automatically canceled\n   * when the object they live on is destroyed (e.g. a Component\n   * is unrendered).\n   *\n   * Turns the decorated generator function into a task.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, `group` or `keepLatest`.\n   *\n   * By default, tasks have no concurrency constraints\n   * (multiple instances of a task can be running at the same time)\n   * but much of a power of tasks lies in proper usage of Task Modifiers\n   * that you can apply to a task.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;task({ maxConcurrency: 5, keepLatest: true, cancelOn: 'click' })\n   *   *taskWithModifiers() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options\n   * @param {string|string[]} [options.cancelOn] Events to cancel task on. Applies only to `&#64;ember/component`\n   * @param {boolean} [options.enqueue] Sets `enqueue` modifier on task if `true`\n   * @param {boolean} [options.evented] Enables [task lifecycle events](/docs/advanced/lifecycle-events) for this Task, if `true`\n   * @param {boolean} [options.debug] Enables task debugging if `true`\n   * @param {boolean} [options.drop] Sets `drop` modifier on task if `true`\n   * @param {string} [options.group] Associates task with the group specified\n   * @param {boolean} [options.keepLatest] Sets `keepLatest` modifier on task if `true`\n   * @param {number} [options.maxConcurrency] Sets the maximum number of running task instances for the task\n   * @param {string|string[]} [options.observes] Properties to watch and cause task to be performed when they change\n   * @param {string|string[]} [options.on] Events to perform task on. Applies only to `&#64;ember/component`\n   * @param {function?} [options.onState] Callback to use for state tracking. May be set to `null` to disable state tracking.\n   * @param {boolean} [options.restartable] Sets `restartable` modifier on task if `true`\n   * @return {Task}\n   */\n  const task = _exports.task = (0, _taskDecorators.createTaskDecorator)({}, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `drop` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, dropTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;dropTask({ cancelOn: 'click' })\n   *   *myDropTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const dropTask = _exports.dropTask = (0, _taskDecorators.createTaskDecorator)({\n    drop: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `enqueue` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, enqueueTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;enqueueTask({ cancelOn: 'click' })\n   *   *myEnqueueTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const enqueueTask = _exports.enqueueTask = (0, _taskDecorators.createTaskDecorator)({\n    enqueue: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `keepLatest` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, keepLatestTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;keepLatestTask({ cancelOn: 'click' })\n   *   *myKeepLatestTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const keepLatestTask = _exports.keepLatestTask = (0, _taskDecorators.createTaskDecorator)({\n    keepLatest: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `restartable` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, restartableTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;restartableTask({ cancelOn: 'click' })\n   *   *myRestartableTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const restartableTask = _exports.restartableTask = (0, _taskDecorators.createTaskDecorator)({\n    restartable: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * Turns the decorated property into a task group.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task group. For instance `maxConcurrency` or `keepLatest`.\n   *\n   * ```js\n   * import Component from '@glimmer/component';\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;taskGroup({ maxConcurrency: 5 }) chores;\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *mowLawn() {}\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *doDishes() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const taskGroup = _exports.taskGroup = (0, _taskDecorators.createTaskGroupDecorator)({}, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `drop` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const dropTaskGroup = _exports.dropTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    drop: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `enqueue` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const enqueueTaskGroup = _exports.enqueueTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    enqueue: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `keepLatest` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const keepLatestTaskGroup = _exports.keepLatestTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    keepLatest: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `restartable` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const restartableTaskGroup = _exports.restartableTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    restartable: true\n  }, _taskFactory.TaskFactory);\n});","define(\"ember-concurrency/-private/task-factory\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember/object/events\", \"@ember/object/observers\", \"@ember/runloop\", \"ember-concurrency/-private/external/task-factory\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-group\", \"ember-concurrency/-private/scheduler/ember-scheduler\", \"ember-concurrency/-private/ember-environment\"], function (_exports, _debug, _object, _events, _observers, _runloop, _taskFactory, _task, _taskProperties, _taskGroup, _emberScheduler, _emberEnvironment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskFactory = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  let handlerCounter = 0;\n  function registerOnPrototype(addListenerOrObserver, proto, names, taskName, taskMethod, once) {\n    if (names && names.length > 0) {\n      for (let i = 0; i < names.length; ++i) {\n        let name = names[i];\n        let handlerName = `__ember_concurrency_handler_${handlerCounter++}`;\n        proto[handlerName] = makeTaskCallback(taskName, taskMethod, once);\n        addListenerOrObserver(proto, name, null, handlerName);\n      }\n    }\n  }\n  function makeTaskCallback(taskName, method, once) {\n    return function () {\n      let task = (0, _object.get)(this, taskName);\n      if (once) {\n        (0, _runloop.scheduleOnce)('actions', task, method, ...arguments);\n      } else {\n        task[method].apply(task, arguments);\n      }\n    };\n  }\n  const ensureArray = possibleArr => Array.isArray(possibleArr) ? possibleArr : [possibleArr];\n  (0, _taskFactory.registerModifier)('cancelOn', (factory, eventNames) => factory.addCancelEvents(...ensureArray(eventNames)));\n  (0, _taskFactory.registerModifier)('observes', (factory, propertyPaths) => factory.addObserverKeys(...ensureArray(propertyPaths)));\n  (0, _taskFactory.registerModifier)('on', (factory, eventNames) => factory.addPerformEvents(...ensureArray(eventNames)));\n  class TaskFactory extends _taskFactory.TaskFactory {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"env\", _emberEnvironment.EMBER_ENVIRONMENT);\n    }\n    createTask(context) {\n      (false && !(this.taskDefinition) && (0, _debug.assert)(`Cannot create task if a task definition is not provided as generator function or encapsulated task.`, this.taskDefinition));\n      let options = this.getTaskOptions(context);\n      if (typeof this.taskDefinition === 'object') {\n        return new _task.EncapsulatedTask(Object.assign({\n          taskObj: this.taskDefinition\n        }, options));\n      } else {\n        return new _task.Task(Object.assign({\n          generatorFactory: args => this.taskDefinition.apply(context, args)\n        }, options));\n      }\n    }\n    createTaskGroup(context) {\n      (false && !(!this.taskDefinition) && (0, _debug.assert)(`A task definition is not expected for a task group.`, !this.taskDefinition));\n      let options = this.getTaskOptions(context);\n      return new _taskGroup.TaskGroup(options);\n    }\n    addCancelEvents(...cancelEventNames) {\n      this._cancelEventNames = this._cancelEventNames || [];\n      this._cancelEventNames.push(...cancelEventNames);\n      return this;\n    }\n    addObserverKeys(...keys) {\n      this._observes = this._observes || [];\n      this._observes.push(...keys);\n      return this;\n    }\n    addPerformEvents(...eventNames) {\n      this._eventNames = this._eventNames || [];\n      this._eventNames.push(...eventNames);\n      return this;\n    }\n    getModifier(name) {\n      let modifier = super.getModifier(name);\n      if (!modifier && typeof _taskProperties.TaskProperty.prototype[name] === 'function') {\n        // Shim for compatibility with user-defined TaskProperty prototype\n        // extensions. To be removed when replaced with proper public API.\n        modifier = _taskProperties.TaskProperty.prototype[name].bind(this);\n      }\n      (false && !(modifier) && (0, _debug.assert)(`Task option '${name}' is not recognized as a supported option.`, modifier));\n      return modifier;\n    }\n    getScheduler(schedulerPolicy, stateTrackingEnabled) {\n      return new _emberScheduler.default(schedulerPolicy, stateTrackingEnabled);\n    }\n    _setupEmberKVO(proto) {\n      // TODO: Does this make sense in a post-Ember object world?\n\n      registerOnPrototype(_events.addListener, proto, this._eventNames, this.name, 'perform', false);\n      registerOnPrototype(_events.addListener, proto, this._cancelEventNames, this.name, 'cancelAll', false);\n      registerOnPrototype(_observers.addObserver, proto, this._observes, this.name, 'perform', true);\n    }\n\n    // Provided for compatibility with ember-concurrency TaskProperty extension\n    // methods\n    get taskFn() {\n      return this.taskDefinition;\n    }\n    set taskFn(fn) {\n      this.setTaskDefinition(fn);\n    }\n  }\n  _exports.TaskFactory = TaskFactory;\n});","define(\"ember-concurrency/-private/task-group\", [\"exports\", \"ember-concurrency/-private/external/task/task-group\", \"ember-concurrency/-private/taskable-mixin\", \"ember-concurrency/-private/tracked-state\"], function (_exports, _taskGroup, _taskableMixin, _trackedState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroup = void 0;\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * Turns the decorated property into a task group.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task group. For instance `maxConcurrency` or `keepLatest`.\n   *\n   * ```js\n   * import Component from '@glimmer/component';\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;taskGroup({ maxConcurrency: 5 }) chores;\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *mowLawn() {}\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *doDishes() {}\n   * }\n   * ```\n   *\n   * <style>\n   *  .ignore-this--this-is-here-to-hide-constructor,\n   *  #TaskGroup { display: none }\n   * </style>\n   *\n   * @class TaskGroup\n   */\n  class TaskGroup extends _taskGroup.TaskGroup {\n    /**\n     * Cancels all running or queued `TaskInstance`s for this task group.\n     * If you're trying to cancel a specific TaskInstance (rather\n     * than all of the instances running under this task group) call\n     * `.cancel()` on the specific TaskInstance.\n     *\n     * @method cancelAll\n     * @memberof TaskGroup\n     * @param options.reason A descriptive reason the task group was\n     *   cancelled. Defaults to `\".cancelAll() was explicitly called\n     *   on the Task\"`.\n     * @param options.resetState If true, will clear the task group state\n     *   (`last*` and `performCount` properties will be set to initial\n     *   values). Defaults to false.\n     * @instance\n     * @async\n     *\n     */\n    /**\n     * `true` if any current task instances are running.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if the task is not in the running or queued state.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isIdle\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The current state of the task: `\"running\"`, `\"queued\"` or `\"idle\"`.\n     *\n     * @memberof TaskGroup\n     * @member {string} state\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently started task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is currently running.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently performed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that succeeded.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastSuccessful\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently completed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that errored.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastErrored\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is incomplete.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastIncomplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The number of times this task has been performed.\n     *\n     * @memberof TaskGroup\n     * @member {number} performCount\n     * @instance\n     * @readOnly\n     */\n  }\n  _exports.TaskGroup = TaskGroup;\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(TaskGroup.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\n  Object.assign(TaskGroup.prototype, _taskableMixin.TASKABLE_MIXIN);\n});","define(\"ember-concurrency/-private/task-instance\", [\"exports\", \"ember-concurrency/-private/external/task-instance/base\", \"ember-concurrency/-private/tracked-state\", \"ember-concurrency/-private/utils\"], function (_exports, _base, _trackedState, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskInstance = void 0;\n  /**\n    A `TaskInstance` represent a single execution of a\n    {@linkcode Task}. Every call to {@linkcode Task#perform} returns\n    a `TaskInstance`.\n  \n    `TaskInstance`s are cancelable, either explicitly\n    via {@linkcode TaskInstance#cancel} or {@linkcode Task#cancelAll},\n    or automatically due to the host object being destroyed, or\n    because concurrency policy enforced by a\n    {@linkcode TaskProperty Task Modifier} canceled the task instance.\n  \n    <style>\n      .ignore-this--this-is-here-to-hide-constructor,\n      #TaskInstance { display: none }\n    </style>\n  \n    @class TaskInstance\n  */\n\n  class TaskInstance extends _base.BaseTaskInstance {\n    setState(props) {\n      let state = this._recomputeState(props);\n      (0, _utils.assignProperties)(this, {\n        ...props,\n        isRunning: !props.isFinished,\n        isDropped: state === 'dropped',\n        state\n      });\n    }\n    _recomputeState(props) {\n      if (props.isDropped) {\n        return 'dropped';\n      } else if (props.isCanceled) {\n        if (props.hasStarted) {\n          return 'canceled';\n        } else {\n          return 'dropped';\n        }\n      } else if (props.isFinished) {\n        return 'finished';\n      } else if (props.hasStarted) {\n        return 'running';\n      } else {\n        return 'waiting';\n      }\n    }\n    onStarted() {\n      this.triggerEvent('started', this);\n    }\n    onSuccess() {\n      this.triggerEvent('succeeded', this);\n    }\n    onError(error) {\n      this.triggerEvent('errored', this, error);\n    }\n    onCancel(cancelReason) {\n      this.triggerEvent('canceled', this, cancelReason);\n    }\n    formatCancelReason(reason) {\n      return `TaskInstance '${this.getName()}' was canceled because ${reason}. For more information, see: http://ember-concurrency.com/docs/task-cancelation-help`;\n    }\n    getName() {\n      if (!this.name) {\n        this.name = this.task && this.task.name || '<unknown>';\n      }\n      return this.name;\n    }\n    selfCancelLoopWarning(parent) {\n      let parentName = `\\`${parent.getName()}\\``;\n      let childName = `\\`${this.getName()}\\``;\n      // eslint-disable-next-line no-console\n      console.warn(`ember-concurrency detected a potentially hazardous \"self-cancel loop\" between parent task ${parentName} and child task ${childName}. If you want child task ${childName} to be canceled when parent task ${parentName} is canceled, please change \\`.perform()\\` to \\`.linked().perform()\\`. If you want child task ${childName} to keep running after parent task ${parentName} is canceled, change it to \\`.unlinked().perform()\\``);\n    }\n    triggerEvent(...allArgs) {\n      if (!this.hasEnabledEvents) {\n        return;\n      }\n      let taskInstance = this;\n      let task = taskInstance.task;\n      let host = task.context;\n      let eventNamespace = task && task.name;\n      if (host && host.trigger && eventNamespace) {\n        let [eventType, ...args] = allArgs;\n        host.trigger(`${eventNamespace}:${eventType}`, ...args);\n      }\n    }\n\n    /**\n     * Describes the state that the task instance is in. Can be used for debugging,\n     * or potentially driving some UI state. Possible values are:\n     *\n     * - `\"dropped\"`: task instance was canceled before it started\n     * - `\"canceled\"`: task instance was canceled before it could finish\n     * - `\"finished\"`: task instance ran to completion (even if an exception was thrown)\n     * - `\"running\"`: task instance is currently running (returns true even if\n     *     is paused on a yielded promise)\n     * - `\"waiting\"`: task instance hasn't begun running yet (usually\n     *     because the task is using the {@linkcode TaskProperty#enqueue enqueue}\n     *     task modifier)\n     *\n     * The animated timeline examples on the [Task Concurrency](/docs/task-concurrency)\n     * docs page make use of this property.\n     *\n     * @name state\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * True if the TaskInstance was canceled before it could\n     * ever start running. For example, calling\n     * {@linkcode Task#perform .perform()} twice on a\n     * task with the {@linkcode TaskProperty#drop drop} modifier applied\n     * will result in the second task instance being dropped.\n     *\n     * @name isDropped\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * True if the task is still running.\n     *\n     * @name isRunning\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * Event emitted when a new {@linkcode TaskInstance} starts executing.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingStarted: on('doSomething:started', function (taskInstance) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:started\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} succeeds.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingSucceeded: on('doSomething:succeeded', function (taskInstance) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:succeeded\n     * @param {TaskInstance} taskInstance - Task instance that was succeeded\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} throws an an error that is\n     * not handled within the task itself.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingErrored: on('doSomething:errored', function (taskInstance, error) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:errored\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     * @param {Error} error - Error that was thrown by the task instance\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} is canceled.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingCanceled: on('doSomething:canceled', function (taskInstance, cancelationReason) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:canceled\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     * @param {string} cancelationReason - Cancelation reason that was was provided to {@linkcode TaskInstance#cancel}\n     */\n\n    /**\n     * Cancels the task instance. Has no effect if the task instance has\n     * already been canceled or has already finished running.\n     *\n     * @method cancel\n     * @memberof TaskInstance\n     * @instance\n     * @async\n     */\n\n    /**\n     * Returns a promise that resolves with the value returned\n     * from the task's (generator) function, or rejects with\n     * either the exception thrown from the task function, or\n     * an error with a `.name` property with value `\"TaskCancelation\"`.\n     *\n     * @method then\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n\n    /**\n     * @method catch\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n\n    /**\n     * @method finally\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n  }\n  _exports.TaskInstance = TaskInstance;\n  if (_trackedState.TRACKED_INITIAL_INSTANCE_STATE) {\n    Object.defineProperties(TaskInstance.prototype, _trackedState.TRACKED_INITIAL_INSTANCE_STATE);\n  }\n});","define(\"ember-concurrency/-private/task-properties\", [\"exports\", \"ember\", \"@ember/object\", \"@ember/object/computed\", \"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", \"ember-concurrency/-private/external/scheduler/policies/drop-policy\", \"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", \"ember-concurrency/-private/external/scheduler/policies/restartable-policy\"], function (_exports, _ember, _object, _computed, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.propertyModifiers = _exports.TaskProperty = _exports.TaskGroupProperty = void 0;\n  _exports.taskComputed = taskComputed;\n  _exports.taskFactorySymbol = void 0;\n  let taskFactorySymbol = _exports.taskFactorySymbol = '__ec_task_factory';\n  const propertyModifiers = _exports.propertyModifiers = {\n    /**\n     * Configures the task to cancel old currently task instances\n     * to make room for a new one to perform. Sets default\n     * maxConcurrency to 1.\n     *\n     * [See the Live Example](/docs/examples/route-tasks/1)\n     *\n     * @method restartable\n     * @memberof TaskProperty\n     * @instance\n     */\n    restartable() {\n      this[taskFactorySymbol].setBufferPolicy(_restartablePolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to run task instances one-at-a-time in\n     * the order they were `.perform()`ed. Sets default\n     * maxConcurrency to 1.\n     *\n     * @method enqueue\n     * @memberof TaskProperty\n     * @instance\n     */\n    enqueue() {\n      this[taskFactorySymbol].setBufferPolicy(_enqueuedPolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to immediately cancel (i.e. drop) any\n     * task instances performed when the task is already running\n     * at maxConcurrency. Sets default maxConcurrency to 1.\n     *\n     * @method drop\n     * @memberof TaskProperty\n     * @instance\n     */\n    drop() {\n      this[taskFactorySymbol].setBufferPolicy(_dropPolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to drop all but the most recently\n     * performed {@linkcode TaskInstance }.\n     *\n     * @method keepLatest\n     * @memberof TaskProperty\n     * @instance\n     */\n    keepLatest() {\n      this[taskFactorySymbol].setBufferPolicy(_keepLatestPolicy.default);\n      return this;\n    },\n    /**\n     * Sets the maximum number of task instances that are allowed\n     * to run at the same time. By default, with no task modifiers\n     * applied, this number is Infinity (there is no limit\n     * to the number of tasks that can run at the same time).\n     * {@linkcode TaskProperty#restartable .restartable},\n     * {@linkcode TaskProperty#enqueue .enqueue}, and\n     * {@linkcode TaskProperty#drop .drop} set the default\n     * maxConcurrency to 1, but you can override this value\n     * to set the maximum number of concurrently running tasks\n     * to a number greater than 1.\n     *\n     * [See the AJAX Throttling example](/docs/examples/ajax-throttling)\n     *\n     * The example below uses a task with `maxConcurrency(3)` to limit\n     * the number of concurrent AJAX requests (for anyone using this task)\n     * to 3.\n     *\n     * ```js\n     * doSomeAjax: task(function * (url) {\n     *   return fetch(url);\n     * }).maxConcurrency(3),\n     *\n     * elsewhere() {\n     *   this.doSomeAjax.perform(\"http://www.example.com/json\");\n     * },\n     * ```\n     *\n     * @method maxConcurrency\n     * @memberof TaskProperty\n     * @param {Number} n The maximum number of concurrently running tasks\n     * @instance\n     */\n    maxConcurrency(n) {\n      this[taskFactorySymbol].setMaxConcurrency(n);\n      return this;\n    },\n    /**\n     * Adds this task to a TaskGroup so that concurrency constraints\n     * can be shared between multiple tasks.\n     *\n     * [See the Task Group docs for more information](/docs/task-groups)\n     *\n     * @method group\n     * @memberof TaskProperty\n     * @param {String} groupPath A path to the TaskGroup property\n     * @instance\n     */\n    group(taskGroupPath) {\n      this[taskFactorySymbol].setGroup(taskGroupPath);\n      return this;\n    },\n    /**\n     * Activates lifecycle events, allowing Evented host objects to react to task state\n     * changes.\n     *\n     * ```js\n     *\n     * export default Component.extend({\n     *   uploadTask: task(function* (file) {\n     *     // ... file upload stuff\n     *   }).evented(),\n     *\n     *   uploadedStarted: on('uploadTask:started', function(taskInstance) {\n     *     this.analytics.track(\"User Photo: upload started\");\n     *   }),\n     * });\n     * ```\n     *\n     * @method evented\n     * @memberof TaskProperty\n     * @instance\n     */\n    evented() {\n      this[taskFactorySymbol].setEvented(true);\n      return this;\n    },\n    /**\n     * Logs lifecycle events to aid in debugging unexpected Task behavior.\n     * Presently only logs cancelation events and the reason for the cancelation,\n     * e.g. \"TaskInstance 'doStuff' was canceled because the object it lives on was destroyed or unrendered\"\n     *\n     * @method debug\n     * @memberof TaskProperty\n     * @instance\n     */\n    debug() {\n      this[taskFactorySymbol].setDebug(true);\n      return this;\n    },\n    /**\n     * Configures the task to call the passed in callback for derived state updates,\n     * overriding the default derived state tracking. You may call with `null` to\n     * completely opt-out of derived state tracking.\n     *\n     * @method onState\n     * @memberof TaskProperty\n     * @param {function?} callback Callback to be called. Receives an object argument with the new state.\n     * @instance\n     */\n    onState(callback) {\n      this[taskFactorySymbol].setOnState(callback);\n      return this;\n    }\n  };\n\n  /**\n    A {@link TaskProperty} is the Computed Property-like object returned\n    from the {@linkcode task} function. You can call Task Modifier methods\n    on this object to configure the behavior of the {@link Task}.\n  \n    See [Managing Task Concurrency](/docs/task-concurrency) for an\n    overview of all the different task modifiers you can use and how\n    they impact automatic cancelation / enqueueing of task instances.\n  \n    {@link TaskProperty} is only used for supporting \"classic\" Ember objects.\n    When using Native JavaScript or TypeScript classes, you will use [task decorators](/docs/task-decorators)\n    on methods instead.\n  \n    @class TaskProperty\n  */\n  let TaskProperty = _exports.TaskProperty = void 0;\n  let TaskGroupProperty = _exports.TaskGroupProperty = void 0;\n  if (true) {\n    _exports.TaskProperty = TaskProperty = class {};\n    _exports.TaskGroupProperty = TaskGroupProperty = class {};\n  } else {\n    // Prior to the 3.10.0 refactors, we had to extend the _ComputedProperty class\n    // for a classic decorator/descriptor to run correctly.\n    _exports.TaskProperty = TaskProperty = class extends _computed.default {\n      callSuperSetup() {\n        if (super.setup) {\n          super.setup(...arguments);\n        }\n      }\n    };\n    _exports.TaskGroupProperty = TaskGroupProperty = class extends _computed.default {};\n  }\n  Object.assign(TaskGroupProperty.prototype, propertyModifiers);\n  Object.assign(TaskProperty.prototype, propertyModifiers, {\n    setup(proto, key) {\n      if (this.callSuperSetup) {\n        this.callSuperSetup(...arguments);\n      }\n      this[taskFactorySymbol].setName(key);\n      this[taskFactorySymbol]._setupEmberKVO(proto);\n    },\n    /**\n     * Calling `task(...).on(eventName)` configures the task to be\n     * automatically performed when the specified events fire. In\n     * this way, it behaves like\n     * [Ember.on](http://emberjs.com/api/classes/Ember.html#method_on).\n     *\n     * You can use `task(...).on('init')` to perform the task\n     * when the host object is initialized.\n     *\n     * ```js\n     * export default Component.extend({\n     *   pollForUpdates: task(function * () {\n     *     // ... this runs when the Component is first created\n     *     // because we specified .on('init')\n     *   }).on('init'),\n     *\n     *   handleFoo: task(function * (a, b, c) {\n     *     // this gets performed automatically if the 'foo'\n     *     // event fires on this Component,\n     *     // e.g., if someone called component.trigger('foo')\n     *   }).on('foo'),\n     * });\n     * ```\n     *\n     * [See the Writing Tasks Docs for more info](/docs/writing-tasks)\n     *\n     * @method on\n     * @memberof TaskProperty\n     * @param {String} eventNames*\n     * @instance\n     */\n    on() {\n      this[taskFactorySymbol].addPerformEvents(...arguments);\n      return this;\n    },\n    /**\n     * This behaves like the {@linkcode TaskProperty#on task(...).on() modifier},\n     * but instead will cause the task to be canceled if any of the\n     * specified events fire on the parent object.\n     *\n     * [See the Live Example](/docs/examples/route-tasks/1)\n     *\n     * @method cancelOn\n     * @memberof TaskProperty\n     * @param {String} eventNames*\n     * @instance\n     */\n    cancelOn() {\n      this[taskFactorySymbol].addCancelEvents(...arguments);\n      return this;\n    },\n    /**\n     * This behaves like the {@linkcode TaskProperty#on task(...).on() modifier},\n     * but instead will cause the task to be performed if any of the\n     * specified properties on the parent object change.\n     *\n     * @method observes\n     * @memberof TaskProperty\n     * @param {String} keys*\n     * @instance\n     */\n    observes() {\n      this[taskFactorySymbol].addObserverKeys(...arguments);\n      return this;\n    }\n  });\n  const setDecorator = _ember.default._setClassicDecorator || _ember.default._setComputedDecorator;\n  function taskComputed(fn) {\n    if (true) {\n      let cp = function (proto, key) {\n        if (cp.setup !== undefined) {\n          cp.setup(proto, key);\n        }\n        return (0, _object.computed)(fn)(...arguments);\n      };\n      setDecorator(cp);\n      return cp;\n    } else {\n      return (0, _object.computed)(fn);\n    }\n  }\n});","define(\"ember-concurrency/-private/task-public-api\", [\"exports\", \"ember-concurrency/-private/task-factory\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-decorators\", \"@ember/debug\"], function (_exports, _taskFactory, _taskProperties, _taskDecorators, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.task = task;\n  _exports.taskGroup = taskGroup;\n  /**\n   * TODO: update docs to reflect both old and new ES6 styles\n   *\n   * A Task is a cancelable, restartable, asynchronous operation that\n   * is driven by a generator function. Tasks are automatically canceled\n   * when the object they live on is destroyed (e.g. a Component\n   * is unrendered).\n   *\n   * To define a task, use the `task(...)` function, and pass in\n   * a generator function, which will be invoked when the task\n   * is performed. The reason generator functions are used is\n   * that they (like the proposed ES7 async-await syntax) can\n   * be used to elegantly express asynchronous, cancelable\n   * operations.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by passing in an object that defined a `perform` generator\n   * function property.\n   *\n   * The following Component defines a task called `myTask` that,\n   * when performed, prints a message to the console, sleeps for 1 second,\n   * prints a final message to the console, and then completes.\n   *\n   * ```js\n   * import { task, timeout } from 'ember-concurrency';\n   * export default Component.extend({\n   *   myTask: task(function * () {\n   *     console.log(\"Pausing for a second...\");\n   *     yield timeout(1000);\n   *     console.log(\"Done!\");\n   *   })\n   * });\n   * ```\n   *\n   * ```hbs\n   * <button {{action myTask.perform}}>Perform Task</button>\n   * ```\n   *\n   * By default, tasks have no concurrency constraints\n   * (multiple instances of a task can be running at the same time)\n   * but much of a power of tasks lies in proper usage of Task Modifiers\n   * that you can apply to a task.\n   *\n   * @param {function} generatorFunction the generator function backing the task.\n   * @returns {TaskProperty}\n   */\n  function task(taskFnOrProtoOrDecoratorOptions, key, descriptor) {\n    (false && !(!isUntranspiledAsyncFn(arguments[arguments.length - 1])) && (0, _debug.assert)(`It appears you're attempting to use the new task(async () => { ... }) syntax, but the async arrow task function you've provided is not being properly compiled by Babel.\\n\\nPossible causes / remedies:\\n\\n1. You must pass the async function expression directly to the task() function (it is not currently supported to pass in a variable containing the async arrow fn, or any other kind of indirection)\\n2. The new task syntax is only supported by native classes. Ensure that this is one.\\n3. If this code is in an addon, please ensure the addon specifies ember-concurrency \"2.3.0\" or higher in \"dependencies\" (not \"devDependencies\")\\n4. Ensure that there is only one version of ember-concurrency v2.3.0+ being used in your project (including nested dependencies) and consider using npm/yarn/pnpm resolutions to enforce a single version is used`, !isUntranspiledAsyncFn(arguments[arguments.length - 1])));\n    if (isDecoratorOptions(taskFnOrProtoOrDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.task)(...arguments);\n    } else {\n      return buildClassicTaskProperty(taskFnOrProtoOrDecoratorOptions);\n    }\n  }\n  function isUntranspiledAsyncFn(obj) {\n    return obj && obj.constructor && obj.constructor.name === 'AsyncFunction';\n  }\n\n  /**\n   * Build and return a \"classic\" TaskProperty, which is essentially a subclass of a Computed Property\n   * descriptor that can be used to define Tasks on classic Ember.Objects.\n   *\n   * @private\n   */\n  function buildClassicTaskProperty(taskFn) {\n    const taskProperty = (0, _taskProperties.taskComputed)(function () {\n      taskProperty[_taskProperties.taskFactorySymbol].setTaskDefinition(taskProperty.taskFn);\n      return taskProperty[_taskProperties.taskFactorySymbol].createTask(this);\n    });\n    taskProperty.taskFn = taskFn;\n    taskProperty[_taskProperties.taskFactorySymbol] = new _taskFactory.TaskFactory();\n    Object.setPrototypeOf(taskProperty, _taskProperties.TaskProperty.prototype);\n    return taskProperty;\n  }\n\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * ```js\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * export default class MyController extends Controller {\n   *   &#64;taskGroup({ drop: true }) chores;\n   *\n   *   &#64;task({ group: 'chores' }) mowLawn = taskFn;\n   *   &#64;task({ group: 'chores' }) doDishes = taskFn;\n   *   &#64;task({ group: 'chores' }) changeDiapers = taskFn;\n   * }\n   * ```\n   *\n   * @returns {TaskGroup}\n   */\n  function taskGroup(possibleDecoratorOptions, key, descriptor) {\n    if (isDecoratorOptions(possibleDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.taskGroup)(...arguments);\n    } else {\n      let tp = (0, _taskProperties.taskComputed)(function (key) {\n        tp[_taskProperties.taskFactorySymbol].setName(key);\n        return tp[_taskProperties.taskFactorySymbol].createTaskGroup(this);\n      });\n      tp[_taskProperties.taskFactorySymbol] = new _taskFactory.TaskFactory();\n      Object.setPrototypeOf(tp, _taskProperties.TaskGroupProperty.prototype);\n      return tp;\n    }\n  }\n  function isDecoratorOptions(possibleOptions) {\n    if (!possibleOptions) {\n      return false;\n    }\n    if (typeof possibleOptions === 'function') {\n      return false;\n    }\n    if (typeof possibleOptions === 'object' && 'perform' in possibleOptions && typeof possibleOptions.perform === 'function') {\n      return false;\n    }\n    return Object.getPrototypeOf(possibleOptions) === Object.prototype;\n  }\n});","define(\"ember-concurrency/-private/task\", [\"exports\", \"@ember/application\", \"@ember/object\", \"@ember/destroyable\", \"ember-concurrency/-private/external/task/task\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/task-instance/executor\", \"ember-concurrency/-private/taskable-mixin\", \"ember-concurrency/-private/tracked-state\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _application, _object, _destroyable, _task, _taskInstance, _executor, _taskableMixin, _trackedState, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Task = _exports.EncapsulatedTask = void 0;\n  /**\n    The `Task` object lives on a host Ember object (e.g.\n    a Component, Route, or Controller). You call the\n    {@linkcode Task#perform .perform()} method on this object\n    to create run individual {@linkcode TaskInstance}s,\n    and at any point, you can call the {@linkcode Task#cancelAll .cancelAll()}\n    method on this object to cancel all running or enqueued\n    {@linkcode TaskInstance}s.\n  \n    <style>\n      .ignore-this--this-is-here-to-hide-constructor,\n      #Task { display: none }\n    </style>\n  \n    @class Task\n  */\n  class Task extends _task.Task {\n    /**\n     * `true` if any current task instances are running.\n     *\n     * @memberof Task\n     * @member {boolean} isRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof Task\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if the task is not in the running or queued state.\n     *\n     * @memberof Task\n     * @member {boolean} isIdle\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The current state of the task: `\"running\"`, `\"queued\"` or `\"idle\"`.\n     *\n     * @memberof Task\n     * @member {string} state\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently started task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is currently running.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently performed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that succeeded.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastSuccessful\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently completed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that errored.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastErrored\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is incomplete.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastIncomplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The number of times this task has been performed.\n     *\n     * @memberof Task\n     * @member {number} performCount\n     * @instance\n     * @readOnly\n     */\n\n    constructor(options) {\n      super(options);\n      if (!(0, _destroyable.isDestroying)(this.context)) {\n        (0, _destroyable.registerDestructor)(this.context, () => {\n          this.cancelAll({\n            reason: 'the object it lives on was destroyed or unrendered',\n            cancelRequestKind: _cancelation.CANCEL_KIND_LIFESPAN_END\n          });\n        });\n      }\n    }\n\n    /**\n     * Flags the task as linked to the parent task's lifetime. Must be called\n     * within another task's perform function. The task will be cancelled if the\n     * parent task is canceled as well.\n     *\n     * ember-concurrency will indicate when this may be needed.\n     *\n     * @method linked\n     * @memberof Task\n     * @instance\n     *\n     */\n\n    /**\n     * Flags the task as not linked to the parent task's lifetime. Must be called\n     * within another task's perform function. The task will NOT be cancelled if the\n     * parent task is canceled.\n     *\n     * This is useful for avoiding the so-called \"self-cancel loop\" for tasks.\n     * ember-concurrency will indicate when this may be needed.\n     *\n     * @method unlinked\n     * @memberof Task\n     * @instance\n     *\n     */\n\n    /**\n     * Creates a new {@linkcode TaskInstance} and attempts to run it right away.\n     * If running this task instance would increase the task's concurrency\n     * to a number greater than the task's maxConcurrency, this task\n     * instance might be immediately canceled (dropped), or enqueued\n     * to run at later time, after the currently running task(s) have finished.\n     *\n     * @method perform\n     * @memberof Task\n     * @param {*} arg* - args to pass to the task function\n     * @instance\n     *\n     * @fires TaskInstance#TASK_NAME:started\n     * @fires TaskInstance#TASK_NAME:succeeded\n     * @fires TaskInstance#TASK_NAME:errored\n     * @fires TaskInstance#TASK_NAME:canceled\n     *\n     */\n\n    /**\n     * Cancels all running or queued `TaskInstance`s for this Task.\n     * If you're trying to cancel a specific TaskInstance (rather\n     * than all of the instances running under this task) call\n     * `.cancel()` on the specific TaskInstance.\n     *\n     * @method cancelAll\n     * @memberof Task\n     * @param options.reason A descriptive reason the task was\n     *   cancelled. Defaults to `\".cancelAll() was explicitly called\n     *   on the Task\"`.\n     * @param options.resetState If true, will clear the task state\n     *   (`last*` and `performCount` properties will be set to initial\n     *   values). Defaults to false.\n     * @instance\n     * @async\n     *\n     */\n\n    get _isAlive() {\n      return !(0, _destroyable.isDestroying)(this.context);\n    }\n    _taskInstanceFactory(args, performType, linkedObject) {\n      let options = this._taskInstanceOptions(args, performType, linkedObject);\n      let taskInstance = new _taskInstance.TaskInstance(options);\n      return taskInstance;\n    }\n    _clone() {\n      return new Task({\n        context: this.context,\n        debug: this.debug,\n        env: this.env,\n        generatorFactory: this.generatorFactory,\n        group: this.group,\n        hasEnabledEvents: this.hasEnabledEvents,\n        name: this.name,\n        onStateCallback: this.onStateCallback,\n        scheduler: this.scheduler\n      });\n    }\n  }\n  _exports.Task = Task;\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(Task.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\n  Object.assign(Task.prototype, _taskableMixin.TASKABLE_MIXIN);\n  const currentTaskInstanceSymbol = '__ec__encap_current_ti';\n  class EncapsulatedTask extends Task {\n    constructor(options) {\n      super(options);\n      this.taskObj = options.taskObj;\n      this._encapsulatedTaskStates = new WeakMap();\n      this._encapsulatedTaskInstanceProxies = new WeakMap();\n    }\n    _getEncapsulatedTaskClass() {\n      let encapsulatedTaskImplClass = this._encapsulatedTaskImplClass;\n      if (!encapsulatedTaskImplClass) {\n        // eslint-disable-next-line ember/no-classic-classes\n        encapsulatedTaskImplClass = _object.default.extend(this.taskObj, {\n          unknownProperty(key) {\n            let currentInstance = this[currentTaskInstanceSymbol];\n            return currentInstance ? currentInstance[key] : undefined;\n          }\n        });\n      }\n      return encapsulatedTaskImplClass;\n    }\n    _taskInstanceFactory(args, performType) {\n      let owner = (0, _application.getOwner)(this.context);\n      let taskInstanceProxy;\n      let encapsulatedTaskImpl = this._getEncapsulatedTaskClass().create({\n        context: this.context\n      });\n      (0, _application.setOwner)(encapsulatedTaskImpl, owner);\n      let generatorFactory = () => encapsulatedTaskImpl.perform.apply(taskInstanceProxy, args);\n      let taskInstance = new _taskInstance.TaskInstance({\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: this.env,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      });\n      encapsulatedTaskImpl[currentTaskInstanceSymbol] = taskInstance;\n      this._encapsulatedTaskStates.set(taskInstance, encapsulatedTaskImpl);\n      taskInstanceProxy = this._wrappedEncapsulatedTaskInstance(taskInstance);\n      return taskInstanceProxy;\n    }\n    _wrappedEncapsulatedTaskInstance(taskInstance) {\n      if (!taskInstance) {\n        return null;\n      }\n      let _encapsulatedTaskInstanceProxies = this._encapsulatedTaskInstanceProxies;\n      let proxy = _encapsulatedTaskInstanceProxies.get(taskInstance);\n      if (!proxy) {\n        let encapsulatedTaskImpl = this._encapsulatedTaskStates.get(taskInstance);\n        proxy = new Proxy(taskInstance, {\n          get(obj, prop) {\n            return prop in obj ? obj[prop] : (0, _object.get)(encapsulatedTaskImpl, prop.toString());\n          },\n          set(obj, prop, value) {\n            if (prop in obj) {\n              obj[prop] = value;\n            } else {\n              (0, _object.set)(encapsulatedTaskImpl, prop.toString(), value);\n            }\n            return true;\n          },\n          has(obj, prop) {\n            return prop in obj || prop in encapsulatedTaskImpl;\n          },\n          ownKeys(obj) {\n            return Reflect.ownKeys(obj).concat(Reflect.ownKeys(encapsulatedTaskImpl));\n          },\n          defineProperty(obj, prop, descriptor) {\n            // Ember < 3.16 uses a WeakMap for value storage, keyed to the proxy.\n            // We need to ensure that when we use setProperties to update it, and\n            // it creates Meta, that it uses the proxy to key, otherwise we'll\n            // have two different values stores in Meta, one which won't render.\n            let proxy = _encapsulatedTaskInstanceProxies.get(taskInstance);\n            if (proxy) {\n              if (descriptor.get) {\n                descriptor.get = descriptor.get.bind(proxy);\n              } else if (proxy && descriptor.set) {\n                descriptor.set = descriptor.set.bind(proxy);\n              }\n            }\n            return Reflect.defineProperty(encapsulatedTaskImpl, prop, descriptor);\n          },\n          getOwnPropertyDescriptor(obj, prop) {\n            return prop in obj ? Reflect.getOwnPropertyDescriptor(obj, prop) : Reflect.getOwnPropertyDescriptor(encapsulatedTaskImpl, prop);\n          }\n        });\n        _encapsulatedTaskInstanceProxies.set(taskInstance, proxy);\n      }\n      return proxy;\n    }\n  }\n  _exports.EncapsulatedTask = EncapsulatedTask;\n});","define(\"ember-concurrency/-private/taskable-mixin\", [\"exports\", \"ember-concurrency/-private/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TASKABLE_MIXIN = void 0;\n  const TASKABLE_MIXIN = _exports.TASKABLE_MIXIN = {\n    _performCount: 0,\n    setState(state) {\n      this._performCount = this._performCount + (state.numPerformedInc || 0);\n      let isRunning = state.numRunning > 0;\n      let isQueued = state.numQueued > 0;\n      let derivedState = Object.assign({}, state, {\n        performCount: this._performCount,\n        isRunning,\n        isQueued,\n        isIdle: !isRunning && !isQueued,\n        state: isRunning ? 'running' : 'idle'\n      });\n      (0, _utils.assignProperties)(this, derivedState);\n    },\n    onState(state, task) {\n      if (task.onStateCallback) {\n        task.onStateCallback(state, task);\n      }\n    }\n  };\n});","define(\"ember-concurrency/-private/tracked-state\", [\"exports\", \"@glimmer/tracking\", \"ember-concurrency/-private/external/task/default-state\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/utils\"], function (_exports, _tracking, _defaultState, _initialState, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TRACKED_INITIAL_TASK_STATE = _exports.TRACKED_INITIAL_INSTANCE_STATE = void 0;\n  function trackMixin(proto, obj, key) {\n    const propDesc = Object.getOwnPropertyDescriptor(proto, key);\n    propDesc.initializer = propDesc.initializer || (() => proto[key]);\n    delete propDesc.value;\n    const desc = (0, _tracking.tracked)(obj, key, propDesc);\n    obj[key] = desc;\n    return obj;\n  }\n  function applyTracked(proto, initial) {\n    return Object.keys(proto).reduce((acc, key) => {\n      return trackMixin(proto, acc, key);\n    }, initial);\n  }\n  let TRACKED_INITIAL_TASK_STATE = _exports.TRACKED_INITIAL_TASK_STATE = void 0;\n  let TRACKED_INITIAL_INSTANCE_STATE = _exports.TRACKED_INITIAL_INSTANCE_STATE = void 0;\n  if (_utils.USE_TRACKED) {\n    _exports.TRACKED_INITIAL_TASK_STATE = TRACKED_INITIAL_TASK_STATE = applyTracked(_defaultState.DEFAULT_STATE, {});\n    _exports.TRACKED_INITIAL_TASK_STATE = TRACKED_INITIAL_TASK_STATE = applyTracked({\n      numRunning: 0,\n      numQueued: 0,\n      isRunning: false,\n      isQueued: false,\n      isIdle: true,\n      state: 'idle'\n    }, TRACKED_INITIAL_TASK_STATE);\n    _exports.TRACKED_INITIAL_INSTANCE_STATE = TRACKED_INITIAL_INSTANCE_STATE = applyTracked(_initialState.INITIAL_STATE, {});\n    _exports.TRACKED_INITIAL_INSTANCE_STATE = TRACKED_INITIAL_INSTANCE_STATE = applyTracked({\n      state: 'waiting',\n      isDropped: false,\n      isRunning: false\n    }, TRACKED_INITIAL_INSTANCE_STATE);\n    Object.freeze(TRACKED_INITIAL_TASK_STATE);\n    Object.freeze(TRACKED_INITIAL_INSTANCE_STATE);\n  }\n});","define(\"ember-concurrency/-private/utils\", [\"exports\", \"@ember/object\", \"@ember/runloop\", \"ember-concurrency/-private/ember-environment\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _object, _runloop, _emberEnvironment, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assignProperties = _exports.USE_TRACKED = _exports.EmberYieldable = void 0;\n  _exports.deprecatePrivateModule = deprecatePrivateModule;\n  _exports.isEventedObject = isEventedObject;\n  _exports.timeout = timeout;\n  const USE_TRACKED = _exports.USE_TRACKED = true;\n  const assignProperties = _exports.assignProperties = USE_TRACKED ? Object.assign : _object.setProperties;\n  function isEventedObject(c) {\n    return c && (typeof c.one === 'function' && typeof c.off === 'function' || typeof c.on === 'function' && typeof c.off === 'function' || typeof c.addEventListener === 'function' && typeof c.removeEventListener === 'function');\n  }\n  class EmberYieldable extends _yieldables.Yieldable {\n    _deferable() {\n      return _emberEnvironment.EMBER_ENVIRONMENT.defer();\n    }\n  }\n  _exports.EmberYieldable = EmberYieldable;\n  class TimeoutYieldable extends EmberYieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\n    onYield(state) {\n      let timerId = (0, _runloop.later)(() => state.next(), this.ms);\n      return () => (0, _runloop.cancel)(timerId);\n    }\n  }\n\n  /**\n   *\n   * Yielding `timeout(ms)` will pause a task for the duration\n   * of time passed in, in milliseconds.\n   *\n   * This timeout will be scheduled on the Ember runloop, which\n   * means that test helpers will wait for it to complete before\n   * continuing with the test. See `rawTimeout()` if you need\n   * different behavior.\n   *\n   * The task below, when performed, will print a message to the\n   * console every second.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     while (true) {\n   *       console.log(\"Hello!\");\n   *       yield timeout(1000);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * @param {number} ms - the amount of time to sleep before resuming\n   *   the task, in milliseconds\n   */\n  function timeout(ms) {\n    return new TimeoutYieldable(ms);\n  }\n  function deprecatePrivateModule(moduleName) {\n    // eslint-disable-next-line no-console\n    console.warn(`an Ember addon is importing a private ember-concurrency module '${moduleName}' that has moved`);\n  }\n});","define(\"ember-concurrency/-private/wait-for\", [\"exports\", \"@ember/debug\", \"@ember/runloop\", \"@ember/object\", \"@ember/object/observers\", \"ember-concurrency/-private/utils\"], function (_exports, _debug, _runloop, _object, _observers, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.waitForEvent = waitForEvent;\n  _exports.waitForProperty = waitForProperty;\n  _exports.waitForQueue = waitForQueue;\n  class WaitForQueueYieldable extends _utils.EmberYieldable {\n    constructor(queueName) {\n      super();\n      this.queueName = queueName;\n    }\n    onYield(state) {\n      let timerId;\n      try {\n        timerId = (0, _runloop.schedule)(this.queueName, () => state.next());\n      } catch (error) {\n        state.throw(error);\n      }\n      return () => (0, _runloop.cancel)(timerId);\n    }\n  }\n  class WaitForEventYieldable extends _utils.EmberYieldable {\n    constructor(object, eventName) {\n      super();\n      this.object = object;\n      this.eventName = eventName;\n      this.usesDOMEvents = false;\n    }\n    on(callback) {\n      if (typeof this.object.addEventListener === 'function') {\n        // assume that we're dealing with a DOM `EventTarget`.\n        this.usesDOMEvents = true;\n        this.object.addEventListener(this.eventName, callback);\n      } else {\n        this.object.on(this.eventName, callback);\n      }\n    }\n    off(callback) {\n      if (this.usesDOMEvents) {\n        this.object.removeEventListener(this.eventName, callback);\n      } else {\n        this.object.off(this.eventName, callback);\n      }\n    }\n    onYield(state) {\n      let fn = null;\n      let disposer = () => {\n        fn && this.off(fn);\n        fn = null;\n      };\n      fn = event => {\n        disposer();\n        state.next(event);\n      };\n      this.on(fn);\n      return disposer;\n    }\n  }\n  class WaitForPropertyYieldable extends _utils.EmberYieldable {\n    constructor(object, key, predicateCallback = Boolean) {\n      super();\n      this.object = object;\n      this.key = key;\n      if (typeof predicateCallback === 'function') {\n        this.predicateCallback = predicateCallback;\n      } else {\n        this.predicateCallback = v => v === predicateCallback;\n      }\n    }\n    onYield(state) {\n      let observerBound = false;\n      let observerFn = () => {\n        let value = (0, _object.get)(this.object, this.key);\n        let predicateValue = this.predicateCallback(value);\n        if (predicateValue) {\n          state.next(value);\n          return true;\n        }\n      };\n      if (!observerFn()) {\n        // eslint-disable-next-line ember/no-observers\n        (0, _observers.addObserver)(this.object, this.key, null, observerFn);\n        observerBound = true;\n      }\n      return () => {\n        if (observerBound && observerFn) {\n          (0, _observers.removeObserver)(this.object, this.key, null, observerFn);\n        }\n      };\n    }\n  }\n\n  /**\n   * Use `waitForQueue` to pause the task until a certain run loop queue is reached.\n   *\n   * ```js\n   * import { task, waitForQueue } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     yield waitForQueue('afterRender');\n   *     console.log(\"now we're in the afterRender queue\");\n   *   }\n   * }\n   * ```\n   *\n   * @param {string} queueName the name of the Ember run loop queue\n   */\n  function waitForQueue(queueName) {\n    return new WaitForQueueYieldable(queueName);\n  }\n\n  /**\n   * Use `waitForEvent` to pause the task until an event is fired. The event\n   * can either be a jQuery event or an Ember.Evented event (or any event system\n   * where the object supports `.on()` `.one()` and `.off()`).\n   *\n   * ```js\n   * import { task, waitForEvent } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     console.log(\"Please click anywhere..\");\n   *     let clickEvent = yield waitForEvent($('body'), 'click');\n   *     console.log(\"Got event\", clickEvent);\n   *\n   *     let emberEvent = yield waitForEvent(this, 'foo');\n   *     console.log(\"Got foo event\", emberEvent);\n   *\n   *     // somewhere else: component.trigger('foo', { value: 123 });\n   *   }\n   * }\n   * ```\n   *\n   * @param {object} object the Ember Object, jQuery element, or other object with .on() and .off() APIs\n   *                 that the event fires from\n   * @param {function} eventName the name of the event to wait for\n   */\n  function waitForEvent(object, eventName) {\n    (false && !((0, _utils.isEventedObject)(object)) && (0, _debug.assert)(`${object} must include Ember.Evented (or support \\`.on()\\` and \\`.off()\\`) or DOM EventTarget (or support \\`addEventListener\\` and  \\`removeEventListener\\`) to be able to use \\`waitForEvent\\``, (0, _utils.isEventedObject)(object)));\n    return new WaitForEventYieldable(object, eventName);\n  }\n\n  /**\n   * Use `waitForProperty` to pause the task until a property on an object\n   * changes to some expected value. This can be used for a variety of use\n   * cases, including synchronizing with another task by waiting for it\n   * to become idle, or change state in some other way. If you omit the\n   * callback, `waitForProperty` will resume execution when the observed\n   * property becomes truthy. If you provide a callback, it'll be called\n   * immediately with the observed property's current value, and multiple\n   * times thereafter whenever the property changes, until you return\n   * a truthy value from the callback, or the current task is canceled.\n   * You can also pass in a non-Function value in place of the callback,\n   * in which case the task will continue executing when the property's\n   * value becomes the value that you passed in.\n   *\n   * ```js\n   * import { task, waitForProperty } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;tracked foo = 0;\n   *\n   *   &#64;task *myTask() {\n   *     console.log(\"Waiting for `foo` to become 5\");\n   *\n   *     yield waitForProperty(this, 'foo', v => v === 5);\n   *     // alternatively: yield waitForProperty(this, 'foo', 5);\n   *\n   *     // somewhere else: this.foo = 5;\n   *\n   *     console.log(\"`foo` is 5!\");\n   *\n   *     // wait for another task to be idle before running:\n   *     yield waitForProperty(this, 'otherTask.isIdle');\n   *     console.log(\"otherTask is idle!\");\n   *   }\n   * }\n   * ```\n   *\n   * @param {object} object an object (most likely an Ember Object)\n   * @param {string} key the property name that is observed for changes\n   * @param {function} callbackOrValue a Function that should return a truthy value\n   *                                   when the task should continue executing, or\n   *                                   a non-Function value that the watched property\n   *                                   needs to equal before the task will continue running\n   */\n  function waitForProperty(object, key, predicateCallback) {\n    return new WaitForPropertyYieldable(object, key, predicateCallback);\n  }\n});","define(\"ember-concurrency/-task-instance\", [\"exports\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/utils\"], function (_exports, _taskInstance, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (0, _utils.deprecatePrivateModule)('ember-concurrency/-task-instance');\n  var _default = _exports.default = _taskInstance.TaskInstance;\n});","define(\"ember-concurrency/-task-property\", [\"exports\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/utils\"], function (_exports, _task, _taskProperties, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Task\", {\n    enumerable: true,\n    get: function () {\n      return _task.Task;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskProperty;\n    }\n  });\n  (0, _utils.deprecatePrivateModule)('ember-concurrency/-task-property');\n});","define(\"ember-concurrency/helpers/cancel-all\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"ember-concurrency/-private/helpers\"], function (_exports, _helper, _debug, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cancelHelper = cancelHelper;\n  _exports.default = void 0;\n  const CANCEL_REASON = \"the 'cancel-all' template helper was invoked\";\n  function cancelHelper(args) {\n    let cancelable = args[0];\n    if (!cancelable || typeof cancelable.cancelAll !== 'function') {\n      (false && !(false) && (0, _debug.assert)(`The first argument passed to the \\`cancel-all\\` helper should be a Task or TaskGroup (without quotes); you passed ${cancelable}`, false));\n    }\n    return (0, _helpers.taskHelperClosure)('cancel-all', 'cancelAll', [cancelable, {\n      reason: CANCEL_REASON\n    }]);\n  }\n  var _default = _exports.default = (0, _helper.helper)(cancelHelper);\n});","define(\"ember-concurrency/helpers/perform\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"ember-concurrency/-private/helpers\"], function (_exports, _helper, _debug, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.performHelper = performHelper;\n  function maybeReportError(onError) {\n    return function (e) {\n      if (typeof onError === 'function') {\n        onError(e);\n      } else if (onError === null) {\n        // Do nothing\n      } else {\n        (false && !(false) && (0, _debug.assert)(`The onError argument passed to the \\`perform\\` helper should be a function or null; you passed ${onError}`, false));\n      }\n    };\n  }\n  function performHelper(args, hash) {\n    let perform = (0, _helpers.taskHelperClosure)('perform', 'perform', args, hash);\n    if (hash && typeof hash.onError !== 'undefined') {\n      return function (...innerArgs) {\n        try {\n          let taskInstance = perform(...innerArgs);\n          return taskInstance.catch(maybeReportError(hash.onError));\n          // eslint-disable-next-line no-empty\n        } catch {\n          maybeReportError(hash.onError);\n        }\n      };\n    } else {\n      return perform;\n    }\n  }\n  var _default = _exports.default = (0, _helper.helper)(performHelper);\n});","define(\"ember-concurrency/helpers/task\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function taskHelper([task, ...args]) {\n    return task._curry(...args);\n  }\n  var _default = _exports.default = (0, _helper.helper)(taskHelper);\n});","define(\"ember-concurrency/index\", [\"exports\", \"ember-concurrency/-private/utils\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-public-api\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/cancelable-promise-helpers\", \"ember-concurrency/-private/wait-for\", \"ember-concurrency/-private/external/task-instance/cancelation\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-group\", \"ember-concurrency/-private/task-decorators\", \"ember-concurrency/-private/external/task-factory\"], function (_exports, _utils, _taskProperties, _taskPublicApi, _taskInstance, _cancelablePromiseHelpers, _waitFor, _cancelation, _yieldables, _task, _taskGroup, _taskDecorators, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Task\", {\n    enumerable: true,\n    get: function () {\n      return _task.Task;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskGroup.TaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskGroupProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskGroupProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskInstance\", {\n    enumerable: true,\n    get: function () {\n      return _taskInstance.TaskInstance;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"Yieldable\", {\n    enumerable: true,\n    get: function () {\n      return _utils.EmberYieldable;\n    }\n  });\n  Object.defineProperty(_exports, \"all\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.all;\n    }\n  });\n  Object.defineProperty(_exports, \"allSettled\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.allSettled;\n    }\n  });\n  Object.defineProperty(_exports, \"animationFrame\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.animationFrame;\n    }\n  });\n  Object.defineProperty(_exports, \"didCancel\", {\n    enumerable: true,\n    get: function () {\n      return _cancelation.didCancel;\n    }\n  });\n  Object.defineProperty(_exports, \"dropTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.dropTask;\n    }\n  });\n  Object.defineProperty(_exports, \"dropTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.dropTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"enqueueTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.enqueueTask;\n    }\n  });\n  Object.defineProperty(_exports, \"enqueueTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.enqueueTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"forever\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.forever;\n    }\n  });\n  Object.defineProperty(_exports, \"getModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.getModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"hasModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.hasModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"hash\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.hash;\n    }\n  });\n  Object.defineProperty(_exports, \"hashSettled\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.hashSettled;\n    }\n  });\n  Object.defineProperty(_exports, \"keepLatestTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.keepLatestTask;\n    }\n  });\n  Object.defineProperty(_exports, \"keepLatestTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.keepLatestTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"lastValue\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.lastValue;\n    }\n  });\n  Object.defineProperty(_exports, \"race\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.race;\n    }\n  });\n  Object.defineProperty(_exports, \"rawTimeout\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.rawTimeout;\n    }\n  });\n  Object.defineProperty(_exports, \"registerModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.registerModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"restartableTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.restartableTask;\n    }\n  });\n  Object.defineProperty(_exports, \"restartableTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.restartableTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"task\", {\n    enumerable: true,\n    get: function () {\n      return _taskPublicApi.task;\n    }\n  });\n  Object.defineProperty(_exports, \"taskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskPublicApi.taskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"timeout\", {\n    enumerable: true,\n    get: function () {\n      return _utils.timeout;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForEvent\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForEvent;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForProperty\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForQueue\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForQueue;\n    }\n  });\n});","define(\"ember-content-loader/components/content-loader\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template\", \"@ember/object/internals\", \"@ember/template-factory\"], function (_exports, _component, _component2, _template, _internals, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <svg\n    role=\"img\"\n    style={{if this.rtl \"transform: scaleX(-1)\"}}\n    aria-label={{this.ariaLabel}}\n    viewBox={{this.viewBox}}\n    preserveAspectRatio={{this.preserveAspectRatio}}\n    ...attributes\n  >\n    {{#if this.ariaLabel}}\n      <title>{{this.ariaLabel}}</title>\n    {{/if}}\n    <rect\n      x=\"0\"\n      y=\"0\"\n      width={{this.width}}\n      height={{this.height}}\n      clip-path={{this.rectClipPath}}\n      style={{this.rectStyle}}\n    ></rect>\n  \n    <defs>\n      <clipPath id={{this.idClip}}>\n        {{#if (has-block)}}\n          {{yield}}\n        {{else}}\n          <rect\n            x=\"0\"\n            y=\"0\"\n            rx=\"5\"\n            ry=\"5\"\n            width={{this.width}}\n            height={{this.height}}\n          ></rect>\n        {{/if}}\n      </clipPath>\n      <linearGradient id={{this.idGradient}}>\n        <stop\n          offset=\"0%\"\n          stop-color={{this.primaryColor}}\n          stop-opacity={{this.primaryOpacity}}\n        >\n          {{#if this.animate}}\n            <animate\n              attributeName=\"offset\"\n              values={{this.animateValues1}}\n              keyTimes={{this.keyTimes}}\n              dur={{this.dur}}\n              repeatCount=\"indefinite\"\n            ></animate>\n          {{/if}}\n        </stop>\n  \n        <stop\n          offset=\"50%\"\n          stop-color={{this.secondaryColor}}\n          stop-opacity={{this.secondaryOpacity}}\n        >\n          {{#if this.animate}}\n            <animate\n              attributeName=\"offset\"\n              values={{this.animateValues2}}\n              keyTimes={{this.keyTimes}}\n              dur={{this.dur}}\n              repeatCount=\"indefinite\"\n            ></animate>\n          {{/if}}\n        </stop>\n  \n        <stop\n          offset=\"100%\"\n          stop-color={{this.primaryColor}}\n          stop-opacity={{this.primaryOpacity}}\n        >\n          {{#if this.animate}}\n            <animate\n              attributeName=\"offset\"\n              values={{this.animateValues3}}\n              keyTimes={{this.keyTimes}}\n              dur={{this.dur}}\n              repeatCount=\"indefinite\"\n            ></animate>\n          {{/if}}\n        </stop>\n      </linearGradient>\n    </defs>\n  </svg>\n  */\n  {\n    \"id\": \"UkL9A4l3\",\n    \"block\": \"[[[11,\\\"svg\\\"],[24,\\\"role\\\",\\\"img\\\"],[16,5,[52,[30,0,[\\\"rtl\\\"]],\\\"transform: scaleX(-1)\\\"]],[16,\\\"aria-label\\\",[30,0,[\\\"ariaLabel\\\"]]],[16,\\\"viewBox\\\",[30,0,[\\\"viewBox\\\"]]],[16,\\\"preserveAspectRatio\\\",[30,0,[\\\"preserveAspectRatio\\\"]]],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ariaLabel\\\"]],[[[1,\\\"    \\\"],[10,\\\"title\\\"],[12],[1,[30,0,[\\\"ariaLabel\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"rect\\\"],[14,\\\"x\\\",\\\"0\\\"],[14,\\\"y\\\",\\\"0\\\"],[15,\\\"width\\\",[30,0,[\\\"width\\\"]]],[15,\\\"height\\\",[30,0,[\\\"height\\\"]]],[15,\\\"clip-path\\\",[30,0,[\\\"rectClipPath\\\"]]],[15,5,[30,0,[\\\"rectStyle\\\"]]],[12],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"defs\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"clipPath\\\"],[15,1,[30,0,[\\\"idClip\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,2]],[[[1,\\\"        \\\"],[18,2,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"rect\\\"],[14,\\\"x\\\",\\\"0\\\"],[14,\\\"y\\\",\\\"0\\\"],[14,\\\"rx\\\",\\\"5\\\"],[14,\\\"ry\\\",\\\"5\\\"],[15,\\\"width\\\",[30,0,[\\\"width\\\"]]],[15,\\\"height\\\",[30,0,[\\\"height\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"linearGradient\\\"],[15,1,[30,0,[\\\"idGradient\\\"]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"stop\\\"],[14,\\\"offset\\\",\\\"0%\\\"],[15,\\\"stop-color\\\",[30,0,[\\\"primaryColor\\\"]]],[15,\\\"stop-opacity\\\",[30,0,[\\\"primaryOpacity\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"animate\\\"]],[[[1,\\\"          \\\"],[10,\\\"animate\\\"],[14,\\\"attributeName\\\",\\\"offset\\\"],[15,\\\"values\\\",[30,0,[\\\"animateValues1\\\"]]],[15,\\\"keyTimes\\\",[30,0,[\\\"keyTimes\\\"]]],[15,\\\"dur\\\",[30,0,[\\\"dur\\\"]]],[14,\\\"repeatCount\\\",\\\"indefinite\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"stop\\\"],[14,\\\"offset\\\",\\\"50%\\\"],[15,\\\"stop-color\\\",[30,0,[\\\"secondaryColor\\\"]]],[15,\\\"stop-opacity\\\",[30,0,[\\\"secondaryOpacity\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"animate\\\"]],[[[1,\\\"          \\\"],[10,\\\"animate\\\"],[14,\\\"attributeName\\\",\\\"offset\\\"],[15,\\\"values\\\",[30,0,[\\\"animateValues2\\\"]]],[15,\\\"keyTimes\\\",[30,0,[\\\"keyTimes\\\"]]],[15,\\\"dur\\\",[30,0,[\\\"dur\\\"]]],[14,\\\"repeatCount\\\",\\\"indefinite\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"stop\\\"],[14,\\\"offset\\\",\\\"100%\\\"],[15,\\\"stop-color\\\",[30,0,[\\\"primaryColor\\\"]]],[15,\\\"stop-opacity\\\",[30,0,[\\\"primaryOpacity\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"animate\\\"]],[[[1,\\\"          \\\"],[10,\\\"animate\\\"],[14,\\\"attributeName\\\",\\\"offset\\\"],[15,\\\"values\\\",[30,0,[\\\"animateValues3\\\"]]],[15,\\\"keyTimes\\\",[30,0,[\\\"keyTimes\\\"]]],[15,\\\"dur\\\",[30,0,[\\\"dur\\\"]]],[14,\\\"repeatCount\\\",\\\"indefinite\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"svg\\\",\\\"if\\\",\\\"title\\\",\\\"rect\\\",\\\"defs\\\",\\\"clipPath\\\",\\\"has-block\\\",\\\"yield\\\",\\\"linearGradient\\\",\\\"stop\\\",\\\"animate\\\"]]\",\n    \"moduleName\": \"ember-content-loader/components/content-loader.hbs\",\n    \"isStrictMode\": false\n  });\n\n  /**\n   * This is the main component\n   *\n   * @class ContentLoader\n   * @public\n   */\n  class ContentLoader extends _component2.default {\n    constructor() {\n      super(...arguments);\n      this.elementId = (0, _internals.guidFor)(this);\n    }\n\n    /**\n     * Defaults to `true`.\n     *\n     * Opt-out of animations with `false`\n     *\n     * @argument animate\n     * @type Boolean\n     * @default true\n     */\n    get animate() {\n      return this.args.animate ?? true;\n    }\n\n    /**\n     * Defaults to `Loading interface...`\n     *\n     * It's used to describe what element it is. Use `false` to remove.\n     *\n     * @argument ariaLabel\n     * @type String|Boolean\n     * @default \"Loading interface...\"\n     */\n    get ariaLabel() {\n      return this.args.ariaLabel ?? 'Loading interface...';\n    }\n\n    /**\n     * Required if you're using `<base url=\"/\" />` in your `<head/>`.\n     *\n     * Defaults to an empty string.\n     *\n     * This prop is common used as: <ContentLoader baseUrl={{window.location.pathname}} />\n     * which will fill the SVG attribute with the relative path. Related https://github.com/danilowoz/react-content-loader/issues/93.\n     * It's used to describe what element it is. Use `false` to remove.\n     *\n     * @argument baseUrl\n     * @type String\n     * @default \"\"\n     */\n    get baseUrl() {\n      return this.args.baseUrl ?? '';\n    }\n\n    /**\n     * Defaults to `2`.\n     *\n     * Animation speed in seconds.\n     *\n     * @argument speed\n     * @type Number\n     * @default 2\n     */\n    get speed() {\n      return this.args.speed ?? 2;\n    }\n\n    /**\n     * Defaults to `0.25`.\n     *\n     * Interval of time between runs of the animation, as a fraction of the animation speed.\n     *\n     * @argument interval\n     * @type Number\n     * @default 0.25\n     */\n    get interval() {\n      return this.args.interval ?? 0.25;\n    }\n\n    /**\n     * Defaults to `400`.\n     *\n     * It will be set in the viewbox attr in the `<svg />`.\n     *\n     * @argument width\n     * @type Number\n     * @default 400\n     */\n    get width() {\n      return this.args.width ?? 400;\n    }\n\n    /**\n     * Defaults to `130`.\n     *\n     * It will be set in the viewbox attr in the `<svg />`.\n     *\n     * @argument height\n     * @type Number\n     * @default 130\n     */\n    get height() {\n      return this.args.height ?? 130;\n    }\n\n    /**\n     * Defaults to `2`.\n     *\n     * Width of the animated gradient as a fraction of the viewbox width.\n     *\n     * @argument gradientRatio\n     * @type Number\n     * @default 2\n     */\n    get gradientRatio() {\n      return this.args.gradientRatio ?? 2;\n    }\n\n    /**\n     * Defaults to `false`.\n     *\n     * Content right-to-left.\n     *\n     * @argument rtl\n     * @type Boolean\n     * @default false\n     */\n    get rtl() {\n      return this.args.rtl ?? false;\n    }\n\n    /**\n     * Defaults to `none`.\n     *\n     * Aspect ratio option of `<svg/>`.\n     * Avaible options [here](https://developer.mozilla.org/fr/docs/Web/SVG/Attribute/preserveAspectRatio#Syntaxe)\n     *\n     * @argument preserveAspectRatio\n     * @type String\n     * @default \"none\"\n     */\n    get preserveAspectRatio() {\n      return this.args.preserveAspectRatio ?? 'none';\n    }\n\n    /**\n     * Defaults to `#f0f0f0`.\n     *\n     * Background of animation.\n     *\n     * @argument primaryColor\n     * @type String\n     * @default \"#f0f0f0\"\n     */\n    get primaryColor() {\n      return this.args.primaryColor ?? '#f0f0f0';\n    }\n\n    /**\n     * Defaults to `#e0e0e0`.\n     *\n     * Placeholder/layer of animation.\n     *\n     * @argument secondaryColor\n     * @type String\n     * @default \"#e0e0e0\"\n     */\n    get secondaryColor() {\n      return this.args.secondaryColor ?? '#e0e0e0';\n    }\n\n    /**\n     * Defaults to `1`.\n     *\n     * Background opacity (0 = transparent, 1 = opaque) used to solve a issue in [Safari](#safari--ios)\n     *\n     * @argument primaryOpacity\n     * @type Number\n     * @default 1\n     */\n    get primaryOpacity() {\n      return this.args.primaryOpacity ?? 1;\n    }\n\n    /**\n     * Defaults to `1`.\n     *\n     * Animation opacity (0 = transparent, 1 = opaque) used to solve a issue in [Safari](#safari--ios)\n     *\n     * @argument secondaryOpacity\n     * @type Number\n     * @default 1\n     */\n    get secondaryOpacity() {\n      return this.args.secondaryOpacity ?? 1;\n    }\n    get viewBox() {\n      return `0 0 ${this.width} ${this.height}`;\n    }\n    get rectClipPath() {\n      return `url(${this.baseUrl}#${this.idClip})`;\n    }\n    get rectStyle() {\n      return (0, _template.htmlSafe)(`fill: url(${this.baseUrl}#${this.idGradient})`);\n    }\n    get animateValues1() {\n      return `${-this.gradientRatio}; ${-this.gradientRatio}; 1`;\n    }\n    get animateValues2() {\n      let div2 = this.gradientRatio / 2;\n      return `${-div2}; ${-div2}; ${1 + div2}`;\n    }\n    get animateValues3() {\n      return `0; 0; ${1 + this.gradientRatio}`;\n    }\n    get idClip() {\n      return `${this.elementId}-idClip`;\n    }\n    get idGradient() {\n      return `${this.elementId}-idGradient`;\n    }\n    get keyTimes() {\n      return `0; ${this.interval}; 1`;\n    }\n    get dur() {\n      return `${this.speed}s`;\n    }\n  }\n  _exports.default = ContentLoader;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ContentLoader);\n});","define(\"ember-get-config/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global require */\n\n  let configModulePath = `${\"cryptofiscafacile-gui\"}/config/environment`;\n  var _default = _exports.default = require(configModulePath).default;\n});","define(\"ember-intl/-private/formatjs/format-date-range\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDateRange = formatDateRange;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDateRange(intlShape, ...[from, to, formatOptions]) {\n    return intlShape.formatDateTimeRange(from, to, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDate = formatDate;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDate(intlShape, ...[value, formatOptions]) {\n    return intlShape.formatDate(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatList = formatList;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatList(intlShape, ...[value, formatOptions]) {\n    return intlShape.formatList(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatMessage = formatMessage;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatMessage(intlShape, ...[descriptor, parameters]) {\n    return intlShape.formatMessage(descriptor, parameters, {\n      ignoreTag: true\n    });\n  }\n});","define(\"ember-intl/-private/formatjs/format-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatNumber = formatNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatNumber(intlShape, ...[value, formatOptions]) {\n    return intlShape.formatNumber(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-relative\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatRelative = formatRelative;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatRelative(intlShape, ...[value, unit, formatOptions]) {\n    return intlShape.formatRelativeTime(value, unit, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatTime = formatTime;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatTime(intlShape, ...[value, formatOptions]) {\n    return intlShape.formatTime(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/index\", [\"exports\", \"ember-intl/-private/formatjs/format-date\", \"ember-intl/-private/formatjs/format-date-range\", \"ember-intl/-private/formatjs/format-list\", \"ember-intl/-private/formatjs/format-message\", \"ember-intl/-private/formatjs/format-number\", \"ember-intl/-private/formatjs/format-relative\", \"ember-intl/-private/formatjs/format-time\", \"@formatjs/intl\"], function (_exports, _formatDate, _formatDateRange, _formatList, _formatMessage, _formatNumber, _formatRelative, _formatTime, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  var _exportNames = {\n    createIntl: true,\n    createIntlCache: true\n  };\n  Object.defineProperty(_exports, \"createIntl\", {\n    enumerable: true,\n    get: function () {\n      return _intl.createIntl;\n    }\n  });\n  Object.defineProperty(_exports, \"createIntlCache\", {\n    enumerable: true,\n    get: function () {\n      return _intl.createIntlCache;\n    }\n  });\n  Object.keys(_formatDate).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatDate[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatDate[key];\n      }\n    });\n  });\n  Object.keys(_formatDateRange).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatDateRange[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatDateRange[key];\n      }\n    });\n  });\n  Object.keys(_formatList).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatList[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatList[key];\n      }\n    });\n  });\n  Object.keys(_formatMessage).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatMessage[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatMessage[key];\n      }\n    });\n  });\n  Object.keys(_formatNumber).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatNumber[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatNumber[key];\n      }\n    });\n  });\n  Object.keys(_formatRelative).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatRelative[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatRelative[key];\n      }\n    });\n  });\n  Object.keys(_formatTime).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _formatTime[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatTime[key];\n      }\n    });\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatjs/format-date\",0,\"ember-intl/-private/formatjs/format-date-range\",0,\"ember-intl/-private/formatjs/format-list\",0,\"ember-intl/-private/formatjs/format-message\",0,\"ember-intl/-private/formatjs/format-number\",0,\"ember-intl/-private/formatjs/format-relative\",0,\"ember-intl/-private/formatjs/format-time\",0,\"@formatjs/intl\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/-private/utils/escape-format-message-options\", [\"exports\", \"@ember/template\"], function (_exports, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.escapeFormatMessageOptions = escapeFormatMessageOptions;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template\"eaimeta@70e063a35619d71f\n  const escaped = {\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;',\n    '\"': '&quot;',\n    \"'\": '&#x27;',\n    '`': '&#x60;',\n    '=': '&#x3D;'\n  };\n  const needToEscape = /[&<>\"'`=]/;\n  const badCharacters = /[&<>\"'`=]/g;\n\n  // https://github.com/emberjs/ember.js/blob/v5.12.0/packages/%40ember/-internals/glimmer/lib/utils/string.ts#L103-L118\n  function escapeExpression(value) {\n    if (!needToEscape.test(value)) {\n      return value;\n    }\n    return value.replace(badCharacters, character => {\n      return escaped[character];\n    });\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function escapeFormatMessageOptions(options) {\n    const escapedOptions = {};\n    for (const [key, value] of Object.entries(options)) {\n      let newValue;\n      if ((0, _template.isHTMLSafe)(value)) {\n        /*\n          Cast `value`, an instance of `SafeString`, to a string\n          using `.toHTML()`. Since `value` is assumed to be safe,\n          we don't need to call `escapeExpression()`.\n        */\n        newValue = value.toHTML();\n      } else if (typeof value === 'string') {\n        newValue = escapeExpression(value);\n      } else {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n        newValue = value;\n      }\n\n      // @ts-expect-error: Type not specific enough\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      escapedOptions[key] = newValue;\n    }\n    return escapedOptions;\n  }\n});","define(\"ember-intl/-private/utils/get-dom\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDOM = getDOM;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\"eaimeta@70e063a35619d71f\n  /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */\n  // https://github.com/yapplabs/ember-wormhole/blob/0.6.0/addon/utils/dom.js#L45-L63\n  /**\n   * @private\n   * @hide\n   */\n  function getDOM(context) {\n    // @ts-expect-error: Property 'renderer' does not exist on type 'unknown'.\n    let {\n      renderer\n    } = context;\n\n    // Pre-glimmer 2\n    if (!renderer || !renderer._dom) {\n      // @ts-expect-error: 'context' is of type 'unknown'.\n      const container = _application.getOwner ? (0, _application.getOwner)(context) : context.container;\n      const document = container.lookup('service:-document');\n      if (document) {\n        return document;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n\n    // Pre-Ember 2.6\n    if (renderer._dom && renderer._dom.document) {\n      return renderer._dom.document;\n    }\n    return null;\n  }\n});","define(\"ember-intl/-private/utils/locale\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToArray = convertToArray;\n  _exports.convertToString = convertToString;\n  _exports.hasLocaleChanged = hasLocaleChanged;\n  _exports.normalizeLocale = normalizeLocale;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function convertToArray(locale) {\n    if (Array.isArray(locale)) {\n      return locale;\n    }\n    return [locale];\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function convertToString(locale) {\n    if (Array.isArray(locale)) {\n      return locale[0];\n    }\n    return locale;\n  }\n  /**\n   * @private\n   * @hide\n   */\n  function hasLocaleChanged(locale1, locale2) {\n    if (!Array.isArray(locale2)) {\n      return true;\n    }\n    return locale1.toString() !== locale2.toString();\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function normalizeLocale(locale) {\n    return locale.replace(/_/g, '-').toLowerCase();\n  }\n});","define(\"ember-intl/-private/utils/service\", [\"exports\", \"@ember/service\"], function (_exports, s) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = s.service ?? s.inject;\n});","define(\"ember-intl/-private/utils/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.flattenKeys = flattenKeys;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function flattenKeys(object) {\n    const result = {};\n    for (const key in object) {\n      if (!Object.prototype.hasOwnProperty.call(object, key)) {\n        continue;\n      }\n      const value = object[key];\n\n      // If `value` is not `null`\n      if (value && typeof value === 'object') {\n        const hash = flattenKeys(value);\n        for (const suffix in hash) {\n          const translation = hash[suffix];\n          if (typeof translation !== 'undefined') {\n            result[`${key}.${suffix}`] = translation;\n          }\n        }\n      } else {\n        if (typeof value !== 'undefined') {\n          result[key] = value;\n        }\n      }\n    }\n    return result;\n  }\n});","define(\"ember-intl/helpers/format-date-range\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatDateRangeHelper = _exports.default = (_class = class FormatDateRangeHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([from, to], options) {\n      return this.intl.formatDateRange(from, to, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-date\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatDateHelper = _exports.default = (_class = class FormatDateHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatDate(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-list\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatListHelper = _exports.default = (_class = class FormatListHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatList(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-message\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatMessageHelper = _exports.default = (_class = class FormatMessageHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatMessage(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-number\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatNumberHelper = _exports.default = (_class = class FormatNumberHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatNumber(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-relative\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatRelativeHelper = _exports.default = (_class = class FormatRelativeHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatRelative(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-time\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatTimeHelper = _exports.default = (_class = class FormatTimeHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([value], options) {\n      return this.intl.formatTime(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/t\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let THelper = _exports.default = (_class = class THelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([key, positionalOptions], namedOptions) {\n      const options = positionalOptions ? Object.assign({}, positionalOptions, namedOptions) : namedOptions;\n      return this.intl.t(key, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/index\", [\"exports\", \"ember-intl/helpers/format-date\", \"ember-intl/helpers/format-date-range\", \"ember-intl/helpers/format-list\", \"ember-intl/helpers/format-message\", \"ember-intl/helpers/format-number\", \"ember-intl/helpers/format-relative\", \"ember-intl/helpers/format-time\", \"ember-intl/helpers/t\"], function (_exports, _formatDate, _formatDateRange, _formatList, _formatMessage, _formatNumber, _formatRelative, _formatTime, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"formatDate\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatDateRange\", {\n    enumerable: true,\n    get: function () {\n      return _formatDateRange.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatList\", {\n    enumerable: true,\n    get: function () {\n      return _formatList.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatMessage\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatNumber\", {\n    enumerable: true,\n    get: function () {\n      return _formatNumber.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatRelative\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatTime\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  Object.defineProperty(_exports, \"t\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\",0,\"ember-intl/helpers/format-date-range\",0,\"ember-intl/helpers/format-list\",0,\"ember-intl/helpers/format-message\",0,\"ember-intl/helpers/format-number\",0,\"ember-intl/helpers/format-relative\",0,\"ember-intl/helpers/format-time\",0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/services/intl\", [\"exports\", \"@ember/application\", \"@ember/runloop\", \"@ember/service\", \"@ember/template\", \"@glimmer/tracking\", \"ember-intl/-private/formatjs/index\", \"ember-intl/-private/utils/escape-format-message-options\", \"ember-intl/-private/utils/get-dom\", \"ember-intl/-private/utils/locale\", \"ember-intl/-private/utils/translations\", \"ember-intl/translations\"], function (_exports, _application, _runloop, _service, _template, _tracking, _index, _escapeFormatMessageOptions, _getDom, _locale, _translations, _translations2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/template\",0,\"@glimmer/tracking\",0,\"ember-intl/-private/formatjs/index\",0,\"ember-intl/-private/utils/escape-format-message-options\",0,\"ember-intl/-private/utils/get-dom\",0,\"ember-intl/-private/utils/locale\",0,\"ember-intl/-private/utils/translations\",0,\"ember-intl/translations\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IntlService = _exports.default = (_class = class IntlService extends _service.default {\n    get locales() {\n      return Object.keys(this._intls);\n    }\n    get primaryLocale() {\n      if (!this._locale) {\n        return;\n      }\n      return this._locale[0];\n    }\n    constructor() {\n      // eslint-disable-next-line prefer-rest-params\n      super(...arguments);\n      _defineProperty(this, \"_cache\", (0, _index.createIntlCache)());\n      _defineProperty(this, \"_formats\", void 0);\n      _defineProperty(this, \"_onFormatjsError\", error => {\n        switch (error.code) {\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison\n          case 'MISSING_DATA':\n            {\n              console.warn(error.message);\n              break;\n            }\n\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison\n          case 'MISSING_TRANSLATION':\n            {\n              // Do nothing\n              break;\n            }\n          default:\n            {\n              throw error;\n            }\n        }\n      });\n      _defineProperty(this, \"_onMissingTranslation\", (key, locales) => {\n        const locale = locales.join(', ');\n        return `Missing translation \"${key}\" for locale \"${locale}\"`;\n      });\n      _defineProperty(this, \"_timer\", void 0);\n      _initializerDefineProperty(this, \"_intls\", _descriptor, this);\n      _initializerDefineProperty(this, \"_locale\", _descriptor2, this);\n      this.getDefaultFormats();\n\n      // Hydrate\n      _translations2.default.forEach(([locale, translations]) => {\n        this.addTranslations(locale, translations);\n      });\n    }\n    addTranslations(locale, translations) {\n      const messages = (0, _translations.flattenKeys)(translations);\n      this.updateIntl(locale, messages);\n    }\n    createIntl(locale, messages = {}) {\n      const resolvedLocale = (0, _locale.convertToString)(locale);\n      const formats = this._formats;\n      return (0, _index.createIntl)({\n        defaultFormats: formats,\n        defaultLocale: resolvedLocale,\n        formats,\n        locale: resolvedLocale,\n        // @ts-expect-error: Type 'Record<string, unknown>' is not assignable\n        messages,\n        onError: this._onFormatjsError\n      }, this._cache);\n    }\n    exists(key, locale) {\n      const locales = locale ? (0, _locale.convertToArray)(locale) : this._locale;\n      return locales.some(locale => {\n        return this.getTranslation(key, locale) !== undefined;\n      });\n    }\n    formatDate(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatDate)(intlShape, value, options);\n    }\n    formatDateRange(from, to, options) {\n      if (from === undefined || from === null) {\n        return '';\n      }\n      if (to === undefined || to === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatDateRange)(intlShape, from, to, options);\n    }\n    formatList(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatList)(intlShape, value, options);\n    }\n    formatMessage(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      const descriptor = typeof value === 'object' ? value : {\n        defaultMessage: value,\n        description: undefined,\n        id: value\n      };\n      if (options?.htmlSafe) {\n        const output = (0, _index.formatMessage)(intlShape, descriptor, (0, _escapeFormatMessageOptions.escapeFormatMessageOptions)(options));\n        return (0, _template.htmlSafe)(output);\n      }\n      return (0, _index.formatMessage)(intlShape, descriptor, options);\n    }\n    formatNumber(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatNumber)(intlShape, value, options);\n    }\n    formatRelative(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatRelative)(intlShape, value, options?.unit, options);\n    }\n    formatTime(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options?.locale);\n      return (0, _index.formatTime)(intlShape, value, options);\n    }\n    getDefaultFormats() {\n      // @ts-expect-error: Property 'resolveRegistration' does not exist on type 'Owner'\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call\n      this._formats = (0, _application.getOwner)(this).resolveRegistration('formats:main') ?? {};\n    }\n    getIntl(locale) {\n      const resolvedLocale = (0, _locale.normalizeLocale)((0, _locale.convertToString)(locale));\n      return this._intls[resolvedLocale];\n    }\n    getIntlShape(locale) {\n      if (locale) {\n        return this.createIntl(locale);\n      }\n      return this.getIntl(this._locale);\n    }\n    getTranslation(key, locale) {\n      const messages = this.getIntl(locale)?.messages;\n      if (!messages) {\n        return;\n      }\n      return messages[key];\n    }\n    setLocale(locale) {\n      const proposedLocale = (0, _locale.convertToArray)(locale);\n      if ((0, _locale.hasLocaleChanged)(proposedLocale, this._locale)) {\n        this._locale = proposedLocale;\n\n        // eslint-disable-next-line ember/no-runloop\n        (0, _runloop.cancel)(this._timer);\n\n        // eslint-disable-next-line ember/no-runloop\n        this._timer = (0, _runloop.next)(() => {\n          this.updateDocumentLanguage();\n        });\n      }\n      this.updateIntl(proposedLocale);\n    }\n    setOnFormatjsError(onFormatjsError) {\n      this._onFormatjsError = onFormatjsError;\n\n      // Call `updateIntl` to update `onError` for each locale\n      this.locales.forEach(locale => {\n        this.updateIntl(locale, {});\n      });\n    }\n    setOnMissingTranslation(onMissingTranslation) {\n      this._onMissingTranslation = onMissingTranslation;\n    }\n    t(key, options) {\n      const locales = options?.locale ? [options.locale] : this._locale;\n      let translation;\n      for (const locale of locales) {\n        translation = this.getTranslation(key, locale);\n        if (translation !== undefined) {\n          break;\n        }\n      }\n      if (translation === undefined) {\n        return this._onMissingTranslation(key, this._locale, options);\n      }\n\n      // Bypass @formatjs/intl\n      if (translation === '') {\n        return '';\n      }\n      return this.formatMessage({\n        defaultMessage: translation,\n        id: key\n      }, options);\n    }\n    updateDocumentLanguage() {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const dom = (0, _getDom.getDOM)(this);\n      if (dom) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n        const html = dom.documentElement;\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access\n        html.setAttribute('lang', this.primaryLocale);\n      }\n    }\n    updateIntl(locale, messages) {\n      const resolvedLocale = (0, _locale.normalizeLocale)((0, _locale.convertToString)(locale));\n      const intl = this._intls[resolvedLocale];\n      let newIntl;\n      if (!intl) {\n        newIntl = this.createIntl(resolvedLocale, messages);\n      } else if (messages) {\n        newIntl = this.createIntl(resolvedLocale, {\n          ...(intl.messages ?? {}),\n          ...messages\n        });\n      }\n      if (!newIntl) {\n        return;\n      }\n      this._intls = {\n        ...this._intls,\n        [resolvedLocale]: newIntl\n      };\n    }\n    willDestroy() {\n      super.willDestroy();\n\n      // eslint-disable-next-line ember/no-runloop\n      (0, _runloop.cancel)(this._timer);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_intls\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_locale\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class); // DO NOT DELETE: this is how TypeScript knows how to look up your services.\n});","define(\"ember-intl/template-registry\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"ember-intl/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [[\"fr\", {\n    \"components.tx-table.categ-update-modal.categories\": {\n      \"AirDrop\": \"AirDrop\",\n      \"CashIn\": \"CashIn\",\n      \"CashOut\": \"CashOut\",\n      \"Don\": \"Don\",\n      \"Dépôt\": \"Dépôt\",\n      \"Echange\": \"Echange\",\n      \"Fork\": \"Fork\",\n      \"Frais\": \"Frais\",\n      \"ICO\": \"ICO\",\n      \"Ignoré\": \"*TX à Ignorer*\",\n      \"Intérêt\": \"Intérêt\",\n      \"Minage\": \"Minage\",\n      \"Parrainage\": \"Parrainage\",\n      \"Remise Commerciale\": \"Remise Commerciale\",\n      \"Retrait\": \"Retrait\",\n      \"Transfert\": \"Transfert\"\n    },\n    \"wasm.error.api.solscan\": {\n      \"invalid.address\": \"Adresse invalide\",\n      \"only.system.account.allowed\": \"Seulement des addresses pouvant stocker des actifs sont autorisés\"\n    },\n    \"wasm.error.reports.cashouts.global.wallet.zero\": \"Portefeuille sans valeur lors de la cession du {date, date, full} à {date, time, full}\",\n    \"wasm.error.reports.cashouts.negative.amount\": \"Montant négatif le {date, date} avec {quantity, number, ::maximumFractionDigits/8} {code} à {eurPrice, number, ::currency/EUR} / {code}\"\n  }]];\n});","define(\"ember-load-initializers/index\", [\"exports\", \"require\"], function (_exports, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadInitializers;\n  function resolveInitializer(moduleName) {\n    var module = (0, _require.default)(moduleName, null, null, true);\n    if (!module) {\n      throw new Error(moduleName + ' must export an initializer.');\n    }\n    var initializer = module['default'];\n    if (!initializer) {\n      throw new Error(moduleName + ' must have a default export');\n    }\n    if (!initializer.name) {\n      initializer.name = moduleName.slice(moduleName.lastIndexOf('/') + 1);\n    }\n    return initializer;\n  }\n  function registerInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.initializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function registerInstanceInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.instanceInitializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function _endsWith(str, suffix) {\n    return str.indexOf(suffix, str.length - suffix.length) !== -1;\n  }\n\n  /**\n   * Configure your application as it boots\n   */\n  function loadInitializers(app, prefix) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = [];\n    // this is 2 pass because generally the first pass is the problem\n    // and is reduced, and resolveInitializer has potential to deopt\n    var moduleNames = Object.keys(requirejs._eak_seen);\n    for (var i = 0; i < moduleNames.length; i++) {\n      var moduleName = moduleNames[i];\n      if (moduleName.lastIndexOf(initializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          initializers.push(moduleName);\n        }\n      } else if (moduleName.lastIndexOf(instanceInitializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          instanceInitializers.push(moduleName);\n        }\n      }\n    }\n    registerInitializers(app, initializers);\n    registerInstanceInitializers(app, instanceInitializers);\n  }\n});","define(\"ember-on-helper/helpers/on-document\", [\"exports\", \"ember-on-helper/helpers/on\"], function (_exports, _on) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _on.default.extend({\n    compute(positional, named) {\n      return this._super([document, ...positional], named);\n    }\n  });\n});","define(\"ember-on-helper/helpers/on-window\", [\"exports\", \"ember-on-helper/helpers/on\"], function (_exports, _on) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _on.default.extend({\n    compute(positional, named) {\n      return this._super([window, ...positional], named);\n    }\n  });\n});","define(\"ember-on-helper/helpers/on\", [\"exports\", \"@ember/component/helper\", \"ember-on-helper/utils/event-listener\", \"@ember/debug\"], function (_exports, _helper, _eventListener, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.__counts = __counts;\n  _exports.default = void 0;\n  /* eslint no-param-reassign: \"off\" */\n\n  /**\n   * These are private API and only used for testing instrumentation.\n   */\n  let adds = 0;\n  let removes = 0;\n  function __counts() {\n    return {\n      adds,\n      removes\n    };\n  }\n  const assertValidEventOptions = false /* DEBUG */ && (() => {\n    const ALLOWED_EVENT_OPTIONS = ['capture', 'once', 'passive'];\n    const joinOptions = options => options.map(o => `'${o}'`).join(', ');\n    return function (eventOptions, eventName) {\n      const invalidOptions = Object.keys(eventOptions).filter(o => !ALLOWED_EVENT_OPTIONS.includes(o));\n      (false && !(invalidOptions.length === 0) && (0, _debug.assert)(`ember-on-helper: Provided invalid event options (${joinOptions(invalidOptions)}) to '${eventName}' event listener. Only these options are valid: ${joinOptions(ALLOWED_EVENT_OPTIONS)}`, invalidOptions.length === 0));\n    };\n  })();\n  function setupListener(eventTarget, eventName, callback, eventOptions) {\n    if (false /* DEBUG */) assertValidEventOptions(eventOptions, eventName);\n    (false && !(eventTarget && typeof eventTarget.addEventListener === 'function' && typeof eventTarget.removeEventListener === 'function') && (0, _debug.assert)(`ember-on-helper: '${eventTarget}' is not a valid event target. It has to be an Element or an object that conforms to the EventTarget interface.`, eventTarget && typeof eventTarget.addEventListener === 'function' && typeof eventTarget.removeEventListener === 'function'));\n    (false && !(typeof eventName === 'string' && eventName.length > 1) && (0, _debug.assert)(`ember-on-helper: '${eventName}' is not a valid event name. It has to be a string with a minimum length of 1 character.`, typeof eventName === 'string' && eventName.length > 1));\n    (false && !(typeof callback === 'function') && (0, _debug.assert)(`ember-on-helper: '${callback}' is not a valid callback. Provide a function.`, typeof callback === 'function'));\n    adds++;\n    (0, _eventListener.addEventListener)(eventTarget, eventName, callback, eventOptions);\n    return callback;\n  }\n  function destroyListener(eventTarget, eventName, callback, eventOptions) {\n    if (eventTarget && eventName && callback) {\n      removes++;\n      (0, _eventListener.removeEventListener)(eventTarget, eventName, callback, eventOptions);\n    }\n  }\n  var _default = _exports.default = _helper.default.extend({\n    eventTarget: null,\n    eventName: undefined,\n    callback: undefined,\n    eventOptions: undefined,\n    compute([eventTarget, eventName, callback], eventOptions) {\n      destroyListener(this.eventTarget, this.eventName, this.callback, this.eventOptions);\n      this.eventTarget = eventTarget;\n      this.callback = setupListener(this.eventTarget, eventName, callback, eventOptions);\n      this.eventName = eventName;\n      this.eventOptions = eventOptions;\n    },\n    willDestroy() {\n      this._super();\n      destroyListener(this.eventTarget, this.eventName, this.callback, this.eventOptions);\n    }\n  });\n});","define(\"ember-on-helper/utils/event-listener\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SUPPORTS_EVENT_OPTIONS = void 0;\n  _exports.addEventListener = addEventListener;\n  _exports.addEventListenerOnce = addEventListenerOnce;\n  _exports.removeEventListener = removeEventListener;\n  /* eslint no-param-reassign: \"off\" */\n\n  /**\n   * Internet Explorer 11 does not support `once` and also does not support\n   * passing `eventOptions`. In some situations it then throws a weird script\n   * error, like:\n   *\n   * ```\n   * Could not complete the operation due to error 80020101\n   * ```\n   *\n   * This flag determines, whether `{ once: true }` and thus also event options in\n   * general are supported.\n   */\n  const SUPPORTS_EVENT_OPTIONS = _exports.SUPPORTS_EVENT_OPTIONS = (() => {\n    try {\n      const div = document.createElement('div');\n      let counter = 0;\n      div.addEventListener('click', () => counter++, {\n        once: true\n      });\n      let event;\n      if (typeof Event === 'function') {\n        event = new Event('click');\n      } else {\n        event = document.createEvent('Event');\n        event.initEvent('click', true, true);\n      }\n      div.dispatchEvent(event);\n      div.dispatchEvent(event);\n      return counter === 1;\n    } catch (error) {\n      return false;\n    }\n  })();\n\n  /**\n   * Registers an event for an `element` that is called exactly once and then\n   * unregistered again. This is effectively a polyfill for `{ once: true }`.\n   *\n   * It also accepts a fourth optional argument `useCapture`, that will be passed\n   * through to `addEventListener`.\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {boolean} [useCapture=false]\n   */\n  function addEventListenerOnce(element, eventName, callback, useCapture = false) {\n    function listener() {\n      element.removeEventListener(eventName, listener, useCapture);\n      callback();\n    }\n    element.addEventListener(eventName, listener, useCapture);\n  }\n\n  /**\n   * Safely invokes `addEventListener` for IE11 and also polyfills the\n   * `{ once: true }` and `{ capture: true }` options.\n   *\n   * All other options are discarded for IE11. Currently this is only `passive`.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function addEventListener(element, eventName, callback, eventOptions) {\n    const _callback = false /* DEBUG */ && eventOptions && eventOptions.passive ? function (event) {\n      event.preventDefault = () => {\n        (false && !(false) && (0, _debug.assert)(`ember-on-helper: You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()'.`));\n      };\n      return callback.call(this, event);\n    } : callback;\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.addEventListener(eventName, _callback, eventOptions);\n    } else if (eventOptions && eventOptions.once) {\n      addEventListenerOnce(element, eventName, _callback, Boolean(eventOptions.capture));\n    } else {\n      element.addEventListener(eventName, _callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n\n  /**\n   * Since the same `capture` event option that was used to add the event listener\n   * needs to be used when removing the listener, it needs to be polyfilled as\n   * `useCapture` for IE11.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function removeEventListener(element, eventName, callback, eventOptions) {\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.removeEventListener(eventName, callback, eventOptions);\n    } else {\n      element.removeEventListener(eventName, callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n});","define(\"ember-popper-modifier/-base-popper-modifier\", [\"exports\", \"ember-modifier\", \"@ember/destroyable\", \"@ember/array\", \"@ember/utils\", \"@popperjs/core\", \"ember-popper-modifier/index\", \"ember-popper-modifier/in-runloop-modifier\"], function (_exports, _emberModifier, _destroyable, _array, _utils, _core, _index, _inRunloopModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/destroyable\",0,\"@ember/array\",0,\"@ember/utils\",0,\"@popperjs/core\",0,\"ember-popper-modifier/index\",0,\"ember-popper-modifier/in-runloop-modifier\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function getPopperOptions(positional, named) {\n    // Get an array of just positional \"options\"; first item is an element reference\n    const [, ...positionalArguments] = positional;\n\n    // Positional args that are not modifiers should be treated as full \"options\" objects\n    const allPositionalOptions = positionalArguments.filter(arg => !(0, _index.isModifier)(arg));\n\n    // Positional args that are modifiers will extend the rest of the configuration\n    const allPositionalModifiers = positionalArguments.filter(arg => (0, _index.isModifier)(arg));\n    const {\n      ...namedOptions\n    } = named;\n    const customOptions = {\n      ...allPositionalOptions.reduce((acc, curr) => {\n        return {\n          ...acc,\n          ...curr\n        };\n      }, {}),\n      ...namedOptions\n    };\n    const options = {\n      ...customOptions,\n      // Ensure that the `modifiers` is always an array\n      modifiers: customOptions.modifiers === undefined || (0, _utils.isEmpty)(customOptions.modifiers) ? [] : (0, _array.isArray)(customOptions.modifiers) ? customOptions.modifiers : [customOptions.modifiers]\n    };\n\n    // Add runloop integration and positional modifiers to the array of modifiers\n    options.modifiers?.push(...allPositionalModifiers, _inRunloopModifier.beginRunLoopModifier, _inRunloopModifier.endRunLoopModifier);\n    return options;\n  }\n  class PopperModifier extends _emberModifier.default {\n    modify(element, positionalArgs, namedArgs) {\n      this.primaryElement = element;\n      this.secondaryElement = positionalArgs[0];\n      const popperOptions = getPopperOptions(positionalArgs, namedArgs);\n\n      // Create the popper once all required arguments are present\n      if (!this.popper && this.referenceElement && this.tooltipElement) {\n        this.popper = (0, _core.createPopper)(this.referenceElement, this.tooltipElement, popperOptions);\n        (0, _index.setPopperForElement)(this.primaryElement, this.popper);\n      }\n      this.popper?.setOptions(popperOptions);\n    }\n    constructor(owner, args) {\n      super(owner, args);\n      _defineProperty(this, \"popper\", null);\n      _defineProperty(this, \"primaryElement\", null);\n      _defineProperty(this, \"secondaryElement\", null);\n      _defineProperty(this, \"cleanup\", () => {\n        this.popper?.destroy();\n      });\n      (0, _destroyable.registerDestructor)(this, this.cleanup);\n    }\n  }\n  _exports.default = PopperModifier;\n});","define(\"ember-popper-modifier/helpers/popper-modifier\", [\"exports\", \"@ember/component/helper\", \"ember-popper-modifier/index\"], function (_exports, _helper, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.buildPopperModifier = buildPopperModifier;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-popper-modifier/index\"eaimeta@70e063a35619d71f\n  function buildPopperModifier([name, positionalOptions], optionsHash) {\n    const options = {\n      ...positionalOptions,\n      ...optionsHash\n    };\n    return (0, _index.createModifier)({\n      name,\n      options\n    });\n  }\n  var _default = _exports.default = (0, _helper.helper)(buildPopperModifier);\n});","define(\"ember-popper-modifier/in-runloop-modifier\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.endRunLoopModifier = _exports.beginRunLoopModifier = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  // This set keeps track of whether a particular Popper instance is currently in an update\n  // loop that is tracked by the Ember Run Loop\n  //\n  // This is necessary in order to ensure that Popper changes are known to the Ember run loop,\n  // and helps make sure that, for example, Ember's test helpers wait for any re-positioning to\n  // take place before advancing\n  //\n  // We need to keep track of whether a run loop has already been started for an update cycle\n  // because the number of \"starts\" and \"ends\" of the Popper update look do not always match;\n  // if we \"start\" again before we have \"ended\", then we can open an Ember run loop that is never\n  // closed, which will cause our application to hang.\n  const POPPER_IN_RUN_LOOP = new WeakSet();\n  const FIRST_PHASE = 'beforeRead';\n  const LAST_PHASE = 'afterWrite';\n  const beginRunLoopModifier = _exports.beginRunLoopModifier = {\n    name: 'ember-runloop-begin',\n    phase: FIRST_PHASE,\n    enabled: true,\n    fn({\n      instance\n    }) {\n      if (!POPPER_IN_RUN_LOOP.has(instance)) {\n        POPPER_IN_RUN_LOOP.add(instance);\n        (0, _runloop.begin)();\n      }\n    }\n  };\n  const endRunLoopModifier = _exports.endRunLoopModifier = {\n    name: 'ember-runloop-end',\n    phase: LAST_PHASE,\n    enabled: true,\n    fn({\n      instance\n    }) {\n      if (POPPER_IN_RUN_LOOP.has(instance)) {\n        POPPER_IN_RUN_LOOP.delete(instance);\n        (0, _runloop.end)();\n      }\n    }\n  };\n});","define(\"ember-popper-modifier/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createModifier = createModifier;\n  _exports.getPopperForElement = getPopperForElement;\n  _exports.isModifier = isModifier;\n  _exports.setPopperForElement = setPopperForElement;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const ELEMENT_TO_POPPER = new WeakMap();\n  const IS_POPPER_MODIFIER = Symbol('is-popper-modifier');\n  function getPopperForElement(element) {\n    const popperInstance = ELEMENT_TO_POPPER.get(element);\n    if (!popperInstance) {\n      throw new Error('Popper instance for element does not exist in cache');\n    }\n    return popperInstance;\n  }\n  function setPopperForElement(element, popperInstance) {\n    ELEMENT_TO_POPPER.set(element, popperInstance);\n  }\n\n  /**\n   * Mark an object as a Popper modifier\n   *\n   * @param {object} configuration\n   * @return {object}\n   */\n  function createModifier(configuration) {\n    return {\n      [IS_POPPER_MODIFIER]: true,\n      ...configuration\n    };\n  }\n\n  /**\n   * Check whether an object is a Popper modifier\n   *\n   * @param {object} configuration\n   * @return {boolean}\n   */\n  function isModifier(configuration) {\n    return typeof configuration === 'object' && configuration !== null && IS_POPPER_MODIFIER in configuration && configuration[IS_POPPER_MODIFIER] === true;\n  }\n});","define(\"ember-popper-modifier/modifiers/popper-tooltip\", [\"exports\", \"ember-popper-modifier/-base-popper-modifier\"], function (_exports, _basePopperModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-popper-modifier/-base-popper-modifier\"eaimeta@70e063a35619d71f\n  class PopperModifier extends _basePopperModifier.default {\n    get tooltipElement() {\n      return this.primaryElement;\n    }\n    get referenceElement() {\n      return this.secondaryElement;\n    }\n  }\n  _exports.default = PopperModifier;\n});","define(\"ember-popper-modifier/modifiers/popper\", [\"exports\", \"ember-popper-modifier/-base-popper-modifier\"], function (_exports, _basePopperModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-popper-modifier/-base-popper-modifier\"eaimeta@70e063a35619d71f\n  class PopperModifier extends _basePopperModifier.default {\n    get tooltipElement() {\n      return this.secondaryElement;\n    }\n    get referenceElement() {\n      return this.primaryElement;\n    }\n  }\n  _exports.default = PopperModifier;\n});","define(\"ember-popper-modifier/template-registry\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"ember-ref-bucket/helpers/ref-to\", [\"exports\", \"@ember/component/helper\", \"ember-ref-bucket/utils/ref\", \"@ember/destroyable\", \"@ember/application\"], function (_exports, _helper, _ref, _destroyable, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-ref-bucket/utils/ref\",0,\"@ember/destroyable\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class RefToHelper extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"_watcher\", null);\n    }\n    compute([name], {\n      bucket,\n      tracked\n    }) {\n      const bucketRef = bucket || (0, _application.getOwner)(this);\n      if (this._name !== name) {\n        if (this._watcher) {\n          (0, _destroyable.unregisterDestructor)(this, this._watcher);\n        }\n        this._watcher = (0, _ref.watchFor)(name, bucketRef, () => {\n          this.recompute();\n        });\n        (0, _destroyable.registerDestructor)(this, this._watcher);\n        this._name = name;\n      }\n      if (tracked) {\n        return (0, _ref.bucketFor)(bucketRef).getTracked(name);\n      } else {\n        return (0, _ref.bucketFor)(bucketRef).get(name);\n      }\n    }\n  }\n  _exports.default = RefToHelper;\n});","define(\"ember-ref-bucket/index\", [\"exports\", \"ember-ref-bucket/utils/ref\", \"@ember/application\", \"ember-ref-bucket/utils/prototype-reference\"], function (_exports, _ref, _application, _prototypeReference) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.globalRef = globalRef;\n  _exports.nodeFor = nodeFor;\n  _exports.ref = ref;\n  Object.defineProperty(_exports, \"registerNodeDestructor\", {\n    enumerable: true,\n    get: function () {\n      return _ref.registerNodeDestructor;\n    }\n  });\n  Object.defineProperty(_exports, \"resolveGlobalRef\", {\n    enumerable: true,\n    get: function () {\n      return _ref.resolveGlobalRef;\n    }\n  });\n  _exports.trackedGlobalRef = trackedGlobalRef;\n  _exports.trackedRef = trackedRef;\n  Object.defineProperty(_exports, \"unregisterNodeDestructor\", {\n    enumerable: true,\n    get: function () {\n      return _ref.unregisterNodeDestructor;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-ref-bucket/utils/ref\",0,\"@ember/application\",0,\"ember-ref-bucket/utils/ref\",0,\"ember-ref-bucket/utils/prototype-reference\"eaimeta@70e063a35619d71f\n  function nodeFor(context, name) {\n    return (0, _ref.bucketFor)(context).get(name);\n  }\n  function maybeReturnCreated(value, createdValues, fn, ctx) {\n    if (value === null || value === undefined) {\n      return null;\n    }\n    if (typeof fn === 'function') {\n      if (!createdValues.has(value)) {\n        createdValues.set(value, fn.call(ctx, value));\n      }\n      return createdValues.get(value);\n    } else {\n      return value;\n    }\n  }\n  function ref(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)(this).get(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function globalRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)((0, _application.getOwner)(this) || (0, _ref.resolveGlobalRef)()).get(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function trackedRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)(this).getTracked(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function trackedGlobalRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)((0, _application.getOwner)(this) || (0, _ref.resolveGlobalRef)()).getTracked(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n});","define(\"ember-ref-bucket/instance-initializers/global-ref-cleanup\", [\"exports\", \"@ember/destroyable\", \"ember-ref-bucket/utils/ref\"], function (_exports, _destroyable, _ref) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/destroyable\",0,\"ember-ref-bucket/utils/ref\"eaimeta@70e063a35619d71f\n  function initialize(appInstance) {\n    (0, _destroyable.registerDestructor)(appInstance, () => {\n      (0, _ref.cleanGlobalRef)();\n    });\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"ember-ref-bucket/modifiers/create-ref\", [\"exports\", \"ember-modifier\", \"@ember/application\", \"@ember/object\", \"@ember/debug\", \"ember-ref-bucket/utils/ref\", \"ember-ref-bucket/utils/prototype-reference\", \"@ember/destroyable\"], function (_exports, _emberModifier, _application, _object, _debug, _ref, _prototypeReference, _destroyable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/application\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-ref-bucket/utils/ref\",0,\"ember-ref-bucket/utils/prototype-reference\",0,\"@ember/destroyable\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  let RefModifier = _exports.default = (_class = class RefModifier extends _emberModifier.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"_key\", void 0);\n      _defineProperty(this, \"_ctx\", void 0);\n      _defineProperty(this, \"_element\", void 0);\n      // to minimise overhead, user should be specific about\n      // what they want to observe\n      _defineProperty(this, \"defaultMutationObserverOptions\", {\n        attributes: false,\n        characterData: false,\n        childList: false,\n        subtree: false\n      });\n      (0, _ref.setGlobalRef)((0, _application.getOwner)(this));\n      (0, _destroyable.registerDestructor)(this, () => {\n        const element = this._element;\n        this.cleanMutationObservers();\n        this.cleanResizeObservers();\n        (0, _ref.getNodeDestructors)(element).forEach(cb => cb());\n        if (element === (0, _ref.bucketFor)(this._ctx).get(this._key)) {\n          (0, _ref.bucketFor)(this._ctx).add(this._key, null);\n        }\n        delete this._element;\n      });\n    }\n    markDirty() {\n      (0, _ref.bucketFor)(this._ctx).dirtyTrackedCell(this._key);\n    }\n    cleanMutationObservers() {\n      if (this._mutationsObserver) {\n        this._mutationsObserver.disconnect();\n      }\n    }\n    cleanResizeObservers() {\n      if (this._resizeObserver) {\n        this._resizeObserver.unobserve(this._element);\n      }\n    }\n    installMutationObservers(named = {}) {\n      this._mutationsObserver = new MutationObserver(this.markDirty);\n      const opts = this.getObserverOptions(named);\n      delete opts.resize;\n      if (opts.attributes || opts.characterData || opts.childList || opts.subtree) {\n        // mutations observer throws if observe is attempted\n        // with all these options disabled\n        this._mutationsObserver.observe(this._element, opts);\n      }\n    }\n    validateTrackedOptions(named = {}) {\n      const args = ['subtree', 'attributes', 'children', 'resize', 'character'];\n      if (args.some(name => name in named)) {\n        (false && !(this.isTracked(named)) && (0, _debug.assert)(`\"ember-ref-modifier\", looks like you trying to use {{${named.debugName}}} without tracked flag or alias, but, with properties, related to tracked modifier (${args.join(', ')})`, this.isTracked(named)));\n      }\n    }\n    getObserverOptions(named = {}) {\n      // to minimise overhead user\n      // should be specific about\n      // what they want to observe\n      let resize = false;\n      let subtree = this.defaultMutationObserverOptions.subtree;\n      let attributes = this.defaultMutationObserverOptions.attributes;\n      let character = this.defaultMutationObserverOptions.characterData;\n      let children = this.defaultMutationObserverOptions.childList;\n      if ('subtree' in named) {\n        subtree = named.subtree;\n      }\n      if ('attributes' in named) {\n        attributes = named.attributes;\n      }\n      if ('children' in named) {\n        children = named.children;\n      }\n      if ('resize' in named) {\n        resize = named.resize;\n      }\n      if ('character' in named) {\n        character = named.character;\n      }\n      return {\n        subtree,\n        attributes,\n        childList: children,\n        resize,\n        characterData: character\n      };\n    }\n    installResizeObservers(element) {\n      this._resizeObserver = new ResizeObserver(this.markDirty);\n      this._resizeObserver.observe(element);\n    }\n    modify(element, positional, named) {\n      const name = this.name(positional);\n      const ctx = this.ctx(named, positional);\n      this._key = name;\n      this._ctx = ctx;\n      this._element = element;\n      (false && (0, _debug.warn)(`Preprocessor was not executed on create-ref modifier. If the reference is not set, check that ember-ref-bucket is included in the dependencies (not devDependencies) in package.json.`, typeof named.debugName === 'string' || !!named.bucket, {\n        id: 'ember-ref-bucket.no-preprocessor'\n      }));\n      (false && !(typeof name === 'string' && name.length > 0) && (0, _debug.assert)(`You must provide string as first positional argument for {{${named.debugName}}}`, typeof name === 'string' && name.length > 0));\n      this.validateTrackedOptions(named);\n      this.cleanMutationObservers();\n      this.cleanResizeObservers();\n      if (name !== this._key || this._ctx !== ctx) {\n        (0, _ref.bucketFor)(this._ctx).add(this._key, null);\n      }\n      (0, _ref.watchFor)(name, ctx, () => {\n        const keys = (0, _prototypeReference.getReferencedKeys)(ctx, name);\n        keys.forEach(keyName => {\n          // consume keys with callbacks\n          ctx[keyName];\n        });\n      });\n      (0, _ref.bucketFor)(ctx).add(name, element);\n      if (this.isTracked(named)) {\n        this.installMutationObservers(named);\n        if (this.getObserverOptions(named).resize) {\n          this.installResizeObservers(element);\n        }\n      }\n    }\n    ctx(named = {}, positional = [undefined]) {\n      (false && !(named.bucket !== null) && (0, _debug.assert)(`ember-ref-bucket: You trying to use {{${named.debugName}}} as local reference for template-only component. Replace it to {{global-ref \"${positional[0]}\"}}`, named.bucket !== null));\n      return named.bucket || (0, _application.getOwner)(this);\n    }\n    isTracked(named = {}) {\n      return named.tracked || false;\n    }\n    name(positional) {\n      return positional[0];\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"markDirty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"markDirty\"), _class.prototype)), _class);\n});","define(\"ember-ref-bucket/utils/prototype-reference\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addPrototypeReference = addPrototypeReference;\n  _exports.getReferencedKeys = getReferencedKeys;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PrototypeReferences = new WeakMap();\n  function addPrototypeReference(klass, objectKey, referenceName) {\n    if (!PrototypeReferences.has(klass)) {\n      PrototypeReferences.set(klass, {});\n    }\n    let obj = PrototypeReferences.get(klass);\n    if (!(referenceName in obj)) {\n      obj[referenceName] = new Set();\n    }\n    obj[referenceName].add(objectKey);\n  }\n  function getReferencedKeys(klassInstance, referenceName) {\n    let proto = klassInstance;\n    while (proto.__proto__) {\n      proto = proto.__proto__;\n      if (PrototypeReferences.has(proto)) {\n        let maybeData = PrototypeReferences.get(proto);\n        if (referenceName in maybeData) {\n          return Array.from(maybeData[referenceName]);\n        }\n      }\n    }\n    return [];\n  }\n});","define(\"ember-ref-bucket/utils/ref\", [\"exports\", \"@ember/destroyable\", \"@glimmer/tracking\"], function (_exports, _destroyable, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.bucketFor = bucketFor;\n  _exports.cleanGlobalRef = cleanGlobalRef;\n  _exports.getNodeDestructors = getNodeDestructors;\n  _exports.registerNodeDestructor = registerNodeDestructor;\n  _exports.resolveGlobalRef = resolveGlobalRef;\n  _exports.setGlobalRef = setGlobalRef;\n  _exports.unregisterNodeDestructor = unregisterNodeDestructor;\n  _exports.watchFor = watchFor;\n  var _class, _descriptor; // @ts-check\n  /*eslint no-undef: \"warn\"*/\n  0; //eaimeta@70e063a35619d71f0,\"@ember/destroyable\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  /**\n   * @type {object | null}\n   */\n  let lastGlobalRef = null;\n  /**\n   * @type {WeakMap<object, ReturnType<typeof createBucket>>}\n   */\n  const buckets = new WeakMap();\n  /**\n   * @type {WeakMap<HTMLElement, Array<() => void>>}\n   */\n  const nodeDestructors = new WeakMap();\n  const hasWeakRef = typeof WeakRef !== 'undefined';\n  function fromWeakRefIfSupported(node) {\n    if (hasWeakRef && node instanceof WeakRef) {\n      return node.deref() ?? null;\n    }\n    return node;\n  }\n\n  /**\n   *\n   * @param {null | undefined | WeakRef | HTMLElement } node\n   * @returns\n   */\n  function toWeakRefIfSupported(node) {\n    if (node === null || node === undefined) {\n      return null;\n    }\n    if (hasWeakRef) {\n      if (node instanceof WeakRef) {\n        return node;\n      }\n      return new WeakRef(node);\n    }\n    return node;\n  }\n  let FieldCell = (_class = class FieldCell {\n    constructor() {\n      /**\n      /**\n       * @type {null | (WeakRef<HTMLElement> | HTMLElement)}\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n    }\n    get value() {\n      if (this._element) {\n        return fromWeakRefIfSupported(this._element);\n      } else {\n        return null;\n      }\n    }\n    set value(element) {\n      if (element) {\n        this._element = toWeakRefIfSupported(element);\n      } else {\n        this._element = null;\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  })), _class);\n  function setGlobalRef(value) {\n    lastGlobalRef = value;\n  }\n  function cleanGlobalRef() {\n    lastGlobalRef = null;\n  }\n  function resolveGlobalRef() {\n    return lastGlobalRef;\n  }\n  function createBucket() {\n    return {\n      /**\n       * @type { Record<string, HTMLElement> }\n       */\n      bucket: {},\n      /**\n       * @type { Record<string, FieldCell> }\n       */\n      keys: {},\n      /**\n       * @param {string} key\n       */\n      createTrackedCell(key) {\n        if (!(key in this.keys)) {\n          this.keys[key] = new FieldCell();\n        }\n      },\n      /**\n       * @param {string} name\n       * @returns { HTMLElement | null }\n       */\n      get(name) {\n        this.createTrackedCell(name);\n        return fromWeakRefIfSupported(this.bucket[name]) || null;\n      },\n      /**\n       * @param {string} name\n       */\n      dirtyTrackedCell(name) {\n        this.createTrackedCell(name);\n        const val = this.keys[name].value;\n        this.keys[name].value = val;\n      },\n      /**\n       * @param {string} name\n       */\n      getTracked(name) {\n        this.createTrackedCell(name);\n        return this.keys[name].value;\n      },\n      /**\n       * @param {string} name\n       * @param {HTMLElement} value\n       */\n      add(name, value) {\n        this.createTrackedCell(name);\n        this.keys[name].value = value;\n        this.bucket[name] = toWeakRefIfSupported(value);\n        if (!(name in this.notificationsFor)) {\n          this.notificationsFor[name] = [];\n        }\n        this.notificationsFor[name].forEach(fn => fn());\n      },\n      /**\n       * @param {string} name\n       * @param {() => void} fn\n       */\n      addNotificationFor(name, fn) {\n        if (!(name in this.notificationsFor)) {\n          this.notificationsFor[name] = [];\n        }\n        this.notificationsFor[name].push(fn);\n        return () => {\n          this.notificationsFor[name] = this.notificationsFor[name].filter(cb => cb !== cb);\n        };\n      },\n      /**\n       * @type { Record<string, Array<() => void>> }\n       */\n      notificationsFor: {}\n    };\n  }\n\n  /**\n   *\n   * @param {HTMLElement} node\n   * @returns {Array<() => void>}\n   */\n  function getNodeDestructors(node) {\n    return nodeDestructors.get(node) || [];\n  }\n\n  /**\n   * @param {HTMLElement} node\n   * @param {() => void} cb\n   */\n  function registerNodeDestructor(node, cb) {\n    if (!nodeDestructors.has(node)) {\n      nodeDestructors.set(node, []);\n    }\n    nodeDestructors.get(node)?.push(cb);\n  }\n  /**\n   *\n   * @param {HTMLElement} node\n   * @param {()=> void} cb\n   */\n  function unregisterNodeDestructor(node, cb) {\n    const destructors = nodeDestructors.get(node) || [];\n    nodeDestructors.set(node, destructors.filter(el => el !== cb));\n  }\n  /**\n   *\n   * @param {object} rawCtx\n   * @returns {ReturnType<typeof createBucket> | undefined}\n   */\n  function bucketFor(rawCtx) {\n    const ctx = rawCtx;\n    if (!buckets.has(ctx)) {\n      buckets.set(ctx, createBucket());\n      if ((0, _destroyable.isDestroyed)(ctx) || (0, _destroyable.isDestroying)(ctx)) {\n        try {\n          return buckets.get(ctx);\n        } finally {\n          buckets.delete(ctx);\n        }\n      }\n      (0, _destroyable.registerDestructor)(ctx, () => {\n        buckets.delete(ctx);\n      });\n    }\n    return buckets.get(ctx);\n  }\n  /**\n   *\n   * @param {string} name\n   * @param {object} bucketRef\n   * @param {()=>void} cb\n   * @returns\n   */\n  function watchFor(name, bucketRef, cb) {\n    const bucket = bucketFor(bucketRef);\n    return bucket?.addNotificationFor(name, cb);\n  }\n});","define(\"ember-resolver/container-debug-adapter\", [\"exports\", \"@ember/array\", \"@ember/debug/container-debug-adapter\", \"ember-resolver/index\", \"@ember/application\"], function (_exports, _array, _containerDebugAdapter, _index, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function getPod(type, key, prefix) {\n    let match = key.match(new RegExp('^/?' + prefix + '/(.+)/' + type + '$'));\n    if (match !== null) {\n      return match[1];\n    }\n  }\n\n  /*\n   * This module defines a subclass of Ember.ContainerDebugAdapter that adds\n   * support for resolving from modules.\n   *\n   */\n\n  /* eslint-disable ember/no-classic-classes */\n  var _default = _exports.default = _containerDebugAdapter.default.extend({\n    _moduleRegistry: null,\n    init() {\n      this._super(...arguments);\n      this.namespace = (0, _application.getOwner)(this).lookup('application:main');\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new _index.ModuleRegistry();\n      }\n    },\n    /**\n        The container of the application being debugged.\n        This property will be injected\n        on creation.\n         @property container\n        @default null\n        */\n\n    /**\n        The resolver instance of the application\n        being debugged. This property will be injected\n        on creation.\n         @property resolver\n        @default null\n        */\n\n    /**\n        Returns true if it is possible to catalog a list of available\n        classes in the resolver for a given type.\n         @method canCatalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {boolean} whether a list is available for this type.\n        */\n    canCatalogEntriesByType(type) {\n      if (type === 'model') {\n        return true;\n      }\n      return this._super(...arguments);\n    },\n    /**\n        Returns the available classes a given type.\n         @method catalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {Array} An array of classes.\n        */\n    catalogEntriesByType(type) {\n      let moduleNames = this._moduleRegistry.moduleNames();\n      let types = (0, _array.A)();\n      let prefix = this.namespace.modulePrefix;\n      for (let i = 0, l = moduleNames.length; i < l; i++) {\n        let key = moduleNames[i];\n        if (key.indexOf(type) !== -1) {\n          // Check if it's a pod module\n          let name = getPod(type, key, this.namespace.podModulePrefix || prefix);\n          if (!name) {\n            // Not pod\n            name = key.split(type + 's/').pop();\n\n            // Support for different prefix (such as ember-cli addons).\n            // Uncomment the code below when\n            // https://github.com/ember-cli/ember-resolver/pull/80 is merged.\n\n            //let match = key.match('^/?(.+)/' + type);\n            //if (match && match[1] !== prefix) {\n            // Different prefix such as an addon\n            //name = match[1] + '@' + name;\n            //}\n          }\n          types.addObject(name);\n        }\n      }\n      return types;\n    }\n  });\n});","/*\n * This is a stub file, it must be on disk b/c babel-plugin-debug-macros\n * does not strip the module require when the transpiled variable usage is\n * stripped.\n */\ndefine(\"ember-resolver/features\", [], function () {\n  \"use strict\";\n});","define(\"ember-resolver/index\", [\"exports\", \"ember\", \"@ember/debug\", \"@ember/object\", \"ember-resolver/string\", \"ember-resolver/utils/class-factory\"], function (_exports, _ember, _debug, _object, _string, _classFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ModuleRegistry = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /* globals requirejs, require */\n  if (typeof requirejs.entries === 'undefined') {\n    requirejs.entries = requirejs._eak_seen;\n  }\n  class ModuleRegistry {\n    constructor(entries) {\n      this._entries = entries || requirejs.entries;\n    }\n    moduleNames() {\n      return Object.keys(this._entries);\n    }\n    has(moduleName) {\n      return moduleName in this._entries;\n    }\n    get(...args) {\n      return require(...args);\n    }\n  }\n\n  /**\n   * This module defines a subclass of Ember.DefaultResolver that adds two\n   * important features:\n   *\n   *  1) The resolver makes the container aware of es6 modules via the AMD\n   *     output. The loader's _moduleEntries is consulted so that classes can be\n   *     resolved directly via the module loader, without needing a manual\n   *     `import`.\n   *  2) is able to provide injections to classes that implement `extend`\n   *     (as is typical with Ember).\n   */\n  _exports.ModuleRegistry = ModuleRegistry;\n  class Resolver extends _object.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"moduleBasedResolver\", true);\n      _defineProperty(this, \"_deprecatedPodModulePrefix\", false);\n      _defineProperty(this, \"_normalizeCache\", Object.create(null));\n      /**\n       A listing of functions to test for moduleName's based on the provided\n       `parsedName`. This allows easy customization of additional module based\n       lookup patterns.\n        @property moduleNameLookupPatterns\n       @returns {Ember.Array}\n       */\n      _defineProperty(this, \"moduleNameLookupPatterns\", [this.podBasedModuleName, this.podBasedComponentsInSubdir, this.mainModuleName, this.defaultModuleName, this.nestedColocationComponentModuleName]);\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new ModuleRegistry();\n      }\n      this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n      if (!this.pluralizedTypes.config) {\n        this.pluralizedTypes.config = 'config';\n      }\n    }\n    makeToString(factory, fullName) {\n      return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n    }\n    shouldWrapInClassFactory( /* module, parsedName */\n    ) {\n      return false;\n    }\n    parseName(fullName) {\n      if (fullName.parsedName === true) {\n        return fullName;\n      }\n      let prefix, type, name;\n      let fullNameParts = fullName.split('@');\n      if (fullNameParts.length === 3) {\n        if (fullNameParts[0].length === 0) {\n          // leading scoped namespace: `@scope/pkg@type:name`\n          prefix = `@${fullNameParts[1]}`;\n          let prefixParts = fullNameParts[2].split(':');\n          type = prefixParts[0];\n          name = prefixParts[1];\n        } else {\n          // interweaved scoped namespace: `type:@scope/pkg@name`\n          prefix = `@${fullNameParts[1]}`;\n          type = fullNameParts[0].slice(0, -1);\n          name = fullNameParts[2];\n        }\n        if (type === 'template:components') {\n          name = `components/${name}`;\n          type = 'template';\n        }\n      } else if (fullNameParts.length === 2) {\n        let prefixParts = fullNameParts[0].split(':');\n        if (prefixParts.length === 2) {\n          if (prefixParts[1].length === 0) {\n            type = prefixParts[0];\n            name = `@${fullNameParts[1]}`;\n          } else {\n            prefix = prefixParts[1];\n            type = prefixParts[0];\n            name = fullNameParts[1];\n          }\n        } else {\n          let nameParts = fullNameParts[1].split(':');\n          prefix = fullNameParts[0];\n          type = nameParts[0];\n          name = nameParts[1];\n        }\n        if (type === 'template' && prefix.lastIndexOf('components/', 0) === 0) {\n          name = `components/${name}`;\n          prefix = prefix.slice(11);\n        }\n      } else {\n        fullNameParts = fullName.split(':');\n        type = fullNameParts[0];\n        name = fullNameParts[1];\n      }\n      let fullNameWithoutType = name;\n      let namespace = this.namespace;\n      let root = namespace;\n      return {\n        parsedName: true,\n        fullName: fullName,\n        prefix: prefix || this.prefix({\n          type: type\n        }),\n        type: type,\n        fullNameWithoutType: fullNameWithoutType,\n        name: name,\n        root: root,\n        resolveMethodName: 'resolve' + (0, _string.classify)(type)\n      };\n    }\n    resolveOther(parsedName) {\n      (false && !(this.namespace.modulePrefix) && (0, _debug.assert)('`modulePrefix` must be defined', this.namespace.modulePrefix));\n      let normalizedModuleName = this.findModuleName(parsedName);\n      if (normalizedModuleName) {\n        let defaultExport = this._extractDefaultExport(normalizedModuleName, parsedName);\n        if (defaultExport === undefined) {\n          throw new Error(` Expected to find: '${parsedName.fullName}' within '${normalizedModuleName}' but got 'undefined'. Did you forget to 'export default' within '${normalizedModuleName}'?`);\n        }\n        if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n          defaultExport = (0, _classFactory.default)(defaultExport);\n        }\n        return defaultExport;\n      }\n    }\n    normalize(fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this._normalize(fullName));\n    }\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n      if (typeof this[resolveMethodName] === 'function') {\n        resolved = this[resolveMethodName](parsedName);\n      }\n      if (resolved == null) {\n        resolved = this.resolveOther(parsedName);\n      }\n      return resolved;\n    }\n    _normalize(fullName) {\n      // A) Convert underscores to dashes\n      // B) Convert camelCase to dash-case, except for components (their\n      //    templates) and helpers where we want to avoid shadowing camelCase\n      //    expressions\n      // C) replace `.` with `/` in order to make nested controllers work in the following cases\n      //      1. `needs: ['posts/post']`\n      //      2. `{{render \"posts/post\"}}`\n      //      3. `this.render('posts/post')` from Route\n\n      let split = fullName.split(':');\n      if (split.length > 1) {\n        let type = split[0];\n        if (type === 'component' || type === 'helper' || type === 'modifier' || type === 'template' && split[1].indexOf('components/') === 0) {\n          return type + ':' + split[1].replace(/_/g, '-');\n        } else {\n          return type + ':' + (0, _string.dasherize)(split[1].replace(/\\./g, '/'));\n        }\n      } else {\n        return fullName;\n      }\n    }\n    pluralize(type) {\n      return this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's');\n    }\n    podBasedLookupWithPrefix(podPrefix, parsedName) {\n      let fullNameWithoutType = parsedName.fullNameWithoutType;\n      if (parsedName.type === 'template') {\n        fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n      }\n      return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n    }\n    podBasedModuleName(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    }\n    podBasedComponentsInSubdir(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      podPrefix = podPrefix + '/components';\n      if (parsedName.type === 'component' || /^components/.test(parsedName.fullNameWithoutType)) {\n        return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n      }\n    }\n    resolveEngine(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineModule = engineName + '/engine';\n      if (this._moduleRegistry.has(engineModule)) {\n        return this._extractDefaultExport(engineModule);\n      }\n    }\n    resolveRouteMap(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineRoutesModule = engineName + '/routes';\n      if (this._moduleRegistry.has(engineRoutesModule)) {\n        let routeMap = this._extractDefaultExport(engineRoutesModule);\n        (false && !(routeMap.isRouteMap) && (0, _debug.assert)(`The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`, routeMap.isRouteMap));\n        return routeMap;\n      }\n    }\n    resolveTemplate(parsedName) {\n      let resolved = this.resolveOther(parsedName);\n      if (resolved == null) {\n        resolved = _ember.default.TEMPLATES[parsedName.fullNameWithoutType];\n      }\n      return resolved;\n    }\n    mainModuleName(parsedName) {\n      if (parsedName.fullNameWithoutType === 'main') {\n        // if router:main or adapter:main look for a module with just the type first\n        return parsedName.prefix + '/' + parsedName.type;\n      }\n    }\n    defaultModuleName(parsedName) {\n      return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType;\n    }\n    nestedColocationComponentModuleName(parsedName) {\n      if (parsedName.type === 'component') {\n        return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType + '/index';\n      }\n    }\n    prefix(parsedName) {\n      let tmpPrefix = this.namespace.modulePrefix;\n      if (this.namespace[parsedName.type + 'Prefix']) {\n        tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n      }\n      return tmpPrefix;\n    }\n    findModuleName(parsedName, loggingDisabled) {\n      let moduleNameLookupPatterns = this.moduleNameLookupPatterns;\n      let moduleName;\n      for (let index = 0, length = moduleNameLookupPatterns.length; index < length; index++) {\n        let item = moduleNameLookupPatterns[index];\n        let tmpModuleName = item.call(this, parsedName);\n\n        // allow treat all dashed and all underscored as the same thing\n        // supports components with dashes and other stuff with underscores.\n        if (tmpModuleName) {\n          tmpModuleName = this.chooseModuleName(tmpModuleName, parsedName);\n        }\n        if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n          moduleName = tmpModuleName;\n        }\n        if (!loggingDisabled) {\n          this._logLookup(moduleName, parsedName, tmpModuleName);\n        }\n        if (moduleName) {\n          return moduleName;\n        }\n      }\n    }\n    chooseModuleName(moduleName, parsedName) {\n      let underscoredModuleName = (0, _string.underscore)(moduleName);\n      if (moduleName !== underscoredModuleName && this._moduleRegistry.has(moduleName) && this._moduleRegistry.has(underscoredModuleName)) {\n        throw new TypeError(`Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`);\n      }\n      if (this._moduleRegistry.has(moduleName)) {\n        return moduleName;\n      } else if (this._moduleRegistry.has(underscoredModuleName)) {\n        return underscoredModuleName;\n      }\n      // workaround for dasherized partials:\n      // something/something/-something => something/something/_something\n      let partializedModuleName = moduleName.replace(/\\/-([^/]*)$/, '/_$1');\n      if (this._moduleRegistry.has(partializedModuleName)) {\n        (false && !(false) && (0, _debug.deprecate)('Modules should not contain underscores. ' + 'Attempted to lookup \"' + moduleName + '\" which ' + 'was not found. Please rename \"' + partializedModuleName + '\" ' + 'to \"' + moduleName + '\" instead.', false, {\n          id: 'ember-resolver.underscored-modules',\n          until: '3.0.0',\n          for: 'ember-resolver',\n          since: '0.1.0'\n        }));\n        return partializedModuleName;\n      }\n      if (false /* DEBUG */) {\n        let isCamelCaseHelper = parsedName.type === 'helper' && /[a-z]+[A-Z]+/.test(moduleName);\n        if (isCamelCaseHelper) {\n          this._camelCaseHelperWarnedNames = this._camelCaseHelperWarnedNames || [];\n          let alreadyWarned = this._camelCaseHelperWarnedNames.indexOf(parsedName.fullName) > -1;\n          if (!alreadyWarned && this._moduleRegistry.has((0, _string.dasherize)(moduleName))) {\n            this._camelCaseHelperWarnedNames.push(parsedName.fullName);\n            (false && (0, _debug.warn)('Attempted to lookup \"' + parsedName.fullName + '\" which ' + 'was not found. In previous versions of ember-resolver, a bug would have ' + 'caused the module at \"' + (0, _string.dasherize)(moduleName) + '\" to be ' + 'returned for this camel case helper name. This has been fixed. ' + 'Use the dasherized name to resolve the module that would have been ' + 'returned in previous versions.', false, {\n              id: 'ember-resolver.camelcase-helper-names',\n              until: '3.0.0'\n            }));\n          }\n        }\n      }\n    }\n\n    // used by Ember.DefaultResolver.prototype._logLookup\n    lookupDescription(fullName) {\n      let parsedName = this.parseName(fullName);\n      let moduleName = this.findModuleName(parsedName, true);\n      return moduleName;\n    }\n\n    // only needed until 1.6.0-beta.2 can be required\n    _logLookup(found, parsedName, description) {\n      if (!_ember.default.ENV.LOG_MODULE_RESOLVER && !parsedName.root.LOG_RESOLVER) {\n        return;\n      }\n      let padding;\n      let symbol = found ? '[✓]' : '[ ]';\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n      if (!description) {\n        description = this.lookupDescription(parsedName);\n      }\n\n      /* eslint-disable no-console */\n      if (console && console.info) {\n        console.info(symbol, parsedName.fullName, padding, description);\n      }\n    }\n    knownForType(type) {\n      let moduleKeys = this._moduleRegistry.moduleNames();\n      let items = Object.create(null);\n      for (let index = 0, length = moduleKeys.length; index < length; index++) {\n        let moduleName = moduleKeys[index];\n        let fullname = this.translateToContainerFullname(type, moduleName);\n        if (fullname) {\n          items[fullname] = true;\n        }\n      }\n      return items;\n    }\n    translateToContainerFullname(type, moduleName) {\n      let prefix = this.prefix({\n        type\n      });\n\n      // Note: using string manipulation here rather than regexes for better performance.\n      // pod modules\n      // '^' + prefix + '/(.+)/' + type + '$'\n      let podPrefix = prefix + '/';\n      let podSuffix = '/' + type;\n      let start = moduleName.indexOf(podPrefix);\n      let end = moduleName.indexOf(podSuffix);\n      if (start === 0 && end === moduleName.length - podSuffix.length && moduleName.length > podPrefix.length + podSuffix.length) {\n        return type + ':' + moduleName.slice(start + podPrefix.length, end);\n      }\n\n      // non-pod modules\n      // '^' + prefix + '/' + pluralizedType + '/(.+)$'\n      let pluralizedType = this.pluralize(type);\n      let nonPodPrefix = prefix + '/' + pluralizedType + '/';\n      if (moduleName.indexOf(nonPodPrefix) === 0 && moduleName.length > nonPodPrefix.length) {\n        return type + ':' + moduleName.slice(nonPodPrefix.length);\n      }\n    }\n    _extractDefaultExport(normalizedModuleName) {\n      let module = this._moduleRegistry.get(normalizedModuleName, null, null, true /* force sync */);\n      if (module && module['default']) {\n        module = module['default'];\n      }\n      return module;\n    }\n  }\n  _defineProperty(Resolver, \"moduleBasedResolver\", true);\n  var _default = _exports.default = Resolver;\n});","define(\"ember-resolver/string/cache\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Cache {\n    constructor(limit, func, store) {\n      this.limit = limit;\n      this.func = func;\n      this.store = store;\n      this.size = 0;\n      this.misses = 0;\n      this.hits = 0;\n      this.store = store || new Map();\n    }\n    get(key) {\n      let value = this.store.get(key);\n      if (this.store.has(key)) {\n        this.hits++;\n        return this.store.get(key);\n      } else {\n        this.misses++;\n        value = this.set(key, this.func(key));\n      }\n      return value;\n    }\n    set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        this.store.set(key, value);\n      }\n      return value;\n    }\n    purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    }\n  }\n  _exports.default = Cache;\n});","define(\"ember-resolver/string/index\", [\"exports\", \"ember-resolver/string/cache\"], function (_exports, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.classify = classify;\n  _exports.dasherize = dasherize;\n  _exports.decamelize = decamelize;\n  _exports.getString = getString;\n  _exports.getStrings = getStrings;\n  _exports.setStrings = setStrings;\n  _exports.underscore = underscore;\n  /* eslint-disable no-useless-escape */\n\n  let STRINGS = {};\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n  function getStrings() {\n    return STRINGS;\n  }\n  function getString(name) {\n    return STRINGS[name];\n  }\n  const STRING_DASHERIZE_REGEXP = /[ _]/g;\n  const STRING_DASHERIZE_CACHE = new _cache.default(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n  const STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n  const STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n  const CLASSIFY_CACHE = new _cache.default(1000, str => {\n    const replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n    const replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n    const parts = str.split('/');\n    for (let i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match /*, separator, chr */) => match.toUpperCase());\n  });\n  const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  const STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n  const UNDERSCORE_CACHE = new _cache.default(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n  const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n  const DECAMELIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n  /**\n    Converts a camelized string into all lower case separated by underscores.\n  \n    ```javascript\n    import { decamelize } from '@ember/string';\n  \n    decamelize('innerHTML');          // 'inner_html'\n    decamelize('action_name');        // 'action_name'\n    decamelize('css-class-name');     // 'css-class-name'\n    decamelize('my favorite items');  // 'my favorite items'\n    ```\n  \n    @method decamelize\n    @param {String} str The string to decamelize.\n    @return {String} the decamelized string.\n    @public\n  */\n  function decamelize(str) {\n    return DECAMELIZE_CACHE.get(str);\n  }\n  /**\n    Replaces underscores, spaces, or camelCase with dashes.\n  \n    ```javascript\n    import { dasherize } from '@ember/string';\n  \n    dasherize('innerHTML');                // 'inner-html'\n    dasherize('action_name');              // 'action-name'\n    dasherize('css-class-name');           // 'css-class-name'\n    dasherize('my favorite items');        // 'my-favorite-items'\n    dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n    ```\n  \n    @method dasherize\n    @param {String} str The string to dasherize.\n    @return {String} the dasherized string.\n    @public\n  */\n  function dasherize(str) {\n    return STRING_DASHERIZE_CACHE.get(str);\n  }\n  /**\n    Returns the UpperCamelCase form of a string.\n  \n    ```javascript\n    import { classify } from '@ember/string';\n  \n    classify('innerHTML');                   // 'InnerHTML'\n    classify('action_name');                 // 'ActionName'\n    classify('css-class-name');              // 'CssClassName'\n    classify('my favorite items');           // 'MyFavoriteItems'\n    classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n    ```\n  \n    @method classify\n    @param {String} str the string to classify\n    @return {String} the classified string\n    @public\n  */\n  function classify(str) {\n    return CLASSIFY_CACHE.get(str);\n  }\n  /**\n    More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n    form of a string.\n  \n    ```javascript\n    import { underscore } from '@ember/string';\n  \n    underscore('innerHTML');                 // 'inner_html'\n    underscore('action_name');               // 'action_name'\n    underscore('css-class-name');            // 'css_class_name'\n    underscore('my favorite items');         // 'my_favorite_items'\n    underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n    ```\n  \n    @method underscore\n    @param {String} str The string to underscore.\n    @return {String} the underscored string.\n    @public\n  */\n  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n});","define(\"ember-resolver/utils/class-factory\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = classFactory;\n  function classFactory(klass) {\n    return {\n      create(injections) {\n        if (typeof klass.extend === 'function') {\n          return klass.extend(injections);\n        } else {\n          return klass;\n        }\n      }\n    };\n  }\n});","define(\"ember-test-waiters/index\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters\"], function (_exports, _debug, _testWaiters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.keys(_testWaiters).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (key in _exports && _exports[key] === _testWaiters[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _testWaiters[key];\n      }\n    });\n  });\n  (false && !(false) && (0, _debug.deprecate)('Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters', false, {\n    id: 'ember-test-waiters-legacy-module-name',\n    until: '3.0.0',\n    for: 'ember-test-waiters',\n    since: {\n      enabled: '2.2.0'\n    }\n  }));\n});","define(\"ember-tracked-storage-polyfill/index\", [\"exports\", \"@glimmer/tracking\", \"@ember/debug\"], function (_exports, _tracking, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createStorage = createStorage;\n  _exports.getValue = getValue;\n  _exports.setValue = setValue;\n  var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {\n    var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n  };\n  class TrackedStorageImpl {\n    constructor(initialValue, isEqual) {\n      this._value = this._lastValue = initialValue;\n      this._isEqual = isEqual;\n    }\n  }\n  __decorate([_tracking.tracked], TrackedStorageImpl.prototype, \"_value\", void 0);\n  function tripleEq(a, b) {\n    return a === b;\n  }\n  function createStorage(initialValue, isEqual = tripleEq) {\n    (false && !(typeof isEqual === 'function') && (0, _debug.assert)('the second parameter to `createStorage` must be an equality function or undefined', typeof isEqual === 'function'));\n    return new TrackedStorageImpl(initialValue, isEqual);\n  }\n  function getValue(storage) {\n    (false && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('getValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    return storage._value;\n  }\n  function setValue(storage, value) {\n    (false && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('setValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    const {\n      _isEqual: isEqual,\n      _lastValue: lastValue\n    } = storage;\n    if (!isEqual(value, lastValue)) {\n      storage._value = storage._lastValue = value;\n    }\n  }\n});"],"mappings":"AAAAA,OAAAC,SAAA,SAAAA,EAAAC,GACA,QAAAC,KAAAD,EACAD,EAAAE,GAAAD,EAAA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