diff --git a/.angular/cache/20.3.3/app/.tsbuildinfo b/.angular/cache/20.3.3/app/.tsbuildinfo
deleted file mode 100644
index d47bc45..0000000
--- a/.angular/cache/20.3.3/app/.tsbuildinfo
+++ /dev/null
@@ -1 +0,0 @@
-{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../index.ngtypecheck.ts","../../../../node_modules/@angular/core/graph.d.d.ts","../../../../node_modules/@angular/core/event_dispatcher.d.d.ts","../../../../node_modules/@angular/core/chrome_dev_tools_performance.d.d.ts","../../../../node_modules/rxjs/dist/types/internal/subscription.d.ts","../../../../node_modules/rxjs/dist/types/internal/subscriber.d.ts","../../../../node_modules/rxjs/dist/types/internal/operator.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable.d.ts","../../../../node_modules/rxjs/dist/types/internal/types.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/audit.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/audittime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/buffer.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/buffercount.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/buffertime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/buffertoggle.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/bufferwhen.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/catcherror.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/combinelatestall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/combineall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/combinelatest.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/combinelatestwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/concat.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/concatall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/concatmap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/concatmapto.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/concatwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/connect.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/count.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/debounce.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/debouncetime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/defaultifempty.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/delay.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/delaywhen.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/distinct.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/distinctuntilchanged.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/distinctuntilkeychanged.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/elementat.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/endwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/every.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/exhaustall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/exhaustmap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/expand.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/filter.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/finalize.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/find.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/findindex.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/first.d.ts","../../../../node_modules/rxjs/dist/types/internal/subject.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/groupby.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/ignoreelements.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/isempty.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/last.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/map.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mapto.d.ts","../../../../node_modules/rxjs/dist/types/internal/notification.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/materialize.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/max.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/merge.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mergeall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mergemap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/flatmap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mergemapto.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mergescan.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/mergewith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/min.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/connectableobservable.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/multicast.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/observeon.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/onerrorresumenextwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/partition.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/pluck.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/publish.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/publishbehavior.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/publishlast.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/publishreplay.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/race.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/racewith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/reduce.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/repeat.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/repeatwhen.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/retry.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/retrywhen.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/refcount.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/sample.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/sampletime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/scan.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/sequenceequal.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/share.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/sharereplay.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/single.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/skip.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/skiplast.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/skipuntil.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/skipwhile.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/startwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/subscribeon.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/switchall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/switchmap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/switchmapto.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/switchscan.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/take.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/takelast.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/takeuntil.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/takewhile.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/tap.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/throttle.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/throttletime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/throwifempty.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/timeinterval.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/timeout.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/timeoutwith.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/toarray.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/window.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/windowcount.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/windowtime.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/windowtoggle.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/windowwhen.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/withlatestfrom.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/zip.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/zipall.d.ts","../../../../node_modules/rxjs/dist/types/internal/operators/zipwith.d.ts","../../../../node_modules/rxjs/dist/types/operators/index.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/action.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/testmessage.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/subscriptionlog.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/subscriptionloggable.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/coldobservable.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/hotobservable.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/asyncscheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/timerhandle.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/asyncaction.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/virtualtimescheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/testing/testscheduler.d.ts","../../../../node_modules/rxjs/dist/types/testing/index.d.ts","../../../../node_modules/rxjs/dist/types/internal/symbol/observable.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/dom/animationframes.d.ts","../../../../node_modules/rxjs/dist/types/internal/behaviorsubject.d.ts","../../../../node_modules/rxjs/dist/types/internal/replaysubject.d.ts","../../../../node_modules/rxjs/dist/types/internal/asyncsubject.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/asapscheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/async.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/queuescheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/animationframescheduler.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduler/animationframe.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/identity.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/pipe.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/noop.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/isobservable.d.ts","../../../../node_modules/rxjs/dist/types/internal/lastvaluefrom.d.ts","../../../../node_modules/rxjs/dist/types/internal/firstvaluefrom.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/argumentoutofrangeerror.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/emptyerror.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/notfounderror.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/objectunsubscribederror.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/sequenceerror.d.ts","../../../../node_modules/rxjs/dist/types/internal/util/unsubscriptionerror.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/bindcallback.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/bindnodecallback.d.ts","../../../../node_modules/rxjs/dist/types/internal/anycatcher.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/combinelatest.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/concat.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/connectable.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/defer.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/empty.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/forkjoin.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/from.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/fromevent.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/fromeventpattern.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/generate.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/iif.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/interval.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/merge.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/never.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/of.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/onerrorresumenext.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/pairs.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/partition.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/race.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/range.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/throwerror.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/timer.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/using.d.ts","../../../../node_modules/rxjs/dist/types/internal/observable/zip.d.ts","../../../../node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts","../../../../node_modules/rxjs/dist/types/internal/config.d.ts","../../../../node_modules/rxjs/dist/types/index.d.ts","../../../../node_modules/@angular/core/effect.d.d.ts","../../../../node_modules/@angular/core/primitives/di/index.d.ts","../../../../node_modules/@angular/core/discovery.d.d.ts","../../../../node_modules/@angular/core/api.d.d.ts","../../../../node_modules/@angular/core/weak_ref.d.d.ts","../../../../node_modules/@angular/core/index.d.ts","../../../../node_modules/@angular/common/platform_location.d.d.ts","../../../../node_modules/@angular/common/common_module.d.d.ts","../../../../node_modules/@angular/common/xhr.d.d.ts","../../../../node_modules/@angular/common/index.d.ts","../../../../node_modules/@angular/platform-browser/browser.d.d.ts","../../../../node_modules/@angular/common/module.d.d.ts","../../../../node_modules/@angular/common/http/index.d.ts","../../../../node_modules/@angular/platform-browser/index.d.ts","../../../../node_modules/@angular/common/locales/fr.d.ts","../../../../src/components/search-query-assistant/search-query-assistant.component.ngtypecheck.ts","../../../../src/core/search/search-history.service.ngtypecheck.ts","../../../../src/core/search/search-history.service.ts","../../../../src/core/search/search-assistant.service.ngtypecheck.ts","../../../../src/core/search/search-parser.ngtypecheck.ts","../../../../src/core/search/search-parser.types.ngtypecheck.ts","../../../../src/core/search/search-parser.types.ts","../../../../src/core/search/search-parser.ts","../../../../src/core/search/search-index.service.ngtypecheck.ts","../../../../src/services/vault.service.ngtypecheck.ts","../../../../src/types.ngtypecheck.ts","../../../../src/types/file-metadata.model.ngtypecheck.ts","../../../../src/types/file-metadata.model.ts","../../../../src/types.ts","../../../../src/services/vault-events.service.ngtypecheck.ts","../../../../src/services/vault-events.service.ts","../../../../src/services/vault.service.ts","../../../../src/core/search/search-index.service.ts","../../../../src/core/search/search-assistant.service.ts","../../../../src/components/search-query-assistant/search-query-assistant.component.ts","../../../../src/components/search-input-with-assistant/search-input-with-assistant.component.ngtypecheck.ts","../../../../node_modules/@angular/forms/index.d.ts","../../../../src/components/search-input-with-assistant/search-input-with-assistant.component.ts","../../../../src/app.component.ngtypecheck.ts","../../../../src/services/markdown.service.ngtypecheck.ts","../../../../node_modules/highlight.js/types/index.d.ts","../../../../node_modules/@types/linkify-it/index.d.mts","../../../../node_modules/@types/mdurl/lib/decode.d.mts","../../../../node_modules/@types/mdurl/lib/encode.d.mts","../../../../node_modules/@types/mdurl/lib/parse.d.mts","../../../../node_modules/@types/mdurl/lib/format.d.mts","../../../../node_modules/@types/mdurl/index.d.mts","../../../../node_modules/@types/markdown-it/lib/common/utils.d.mts","../../../../node_modules/@types/markdown-it/lib/helpers/parse_link_destination.d.mts","../../../../node_modules/@types/markdown-it/lib/token.d.mts","../../../../node_modules/@types/markdown-it/lib/rules_inline/state_inline.d.mts","../../../../node_modules/@types/markdown-it/lib/helpers/parse_link_label.d.mts","../../../../node_modules/@types/markdown-it/lib/helpers/parse_link_title.d.mts","../../../../node_modules/@types/markdown-it/lib/helpers/index.d.mts","../../../../node_modules/@types/markdown-it/lib/ruler.d.mts","../../../../node_modules/@types/markdown-it/lib/rules_block/state_block.d.mts","../../../../node_modules/@types/markdown-it/lib/parser_block.d.mts","../../../../node_modules/@types/markdown-it/lib/rules_core/state_core.d.mts","../../../../node_modules/@types/markdown-it/lib/parser_core.d.mts","../../../../node_modules/@types/markdown-it/lib/parser_inline.d.mts","../../../../node_modules/@types/markdown-it/lib/renderer.d.mts","../../../../node_modules/@types/markdown-it/lib/index.d.mts","../../../../node_modules/@types/markdown-it/index.d.mts","../../../../node_modules/markdown-it-anchor/types/index.d.ts","../../../../node_modules/markdown-it-multimd-table/index.d.ts","../../../../src/services/markdown.service.ts","../../../../src/services/markdown-viewer.service.ngtypecheck.ts","../../../../src/core/services/markdown-viewer.service.ngtypecheck.ts","../../../../src/core/services/markdown-viewer.service.ts","../../../../src/services/markdown-viewer.service.ts","../../../../src/core/services/download.service.ngtypecheck.ts","../../../../src/core/services/download.service.ts","../../../../src/app/core/services/theme.service.ngtypecheck.ts","../../../../src/app/core/services/theme.service.ts","../../../../src/components/file-explorer/file-explorer.component.ngtypecheck.ts","../../../../src/components/file-explorer/file-explorer.component.ts","../../../../src/components/tags-view/note-viewer/note-viewer.component.ngtypecheck.ts","../../../../src/services/note-preview.service.ngtypecheck.ts","../../../../node_modules/@angular/cdk/bidi-module.d.d.ts","../../../../node_modules/@angular/cdk/portal-directives.d.d.ts","../../../../node_modules/@angular/cdk/data-source.d.d.ts","../../../../node_modules/@angular/cdk/number-property.d.d.ts","../../../../node_modules/@angular/cdk/scrolling-module.d.d.ts","../../../../node_modules/@angular/cdk/scrolling/index.d.ts","../../../../node_modules/@angular/cdk/platform.d.d.ts","../../../../node_modules/@angular/cdk/style-loader.d.d.ts","../../../../node_modules/@angular/cdk/overlay-module.d.d.ts","../../../../node_modules/@angular/cdk/overlay/index.d.ts","../../../../node_modules/@angular/cdk/portal/index.d.ts","../../../../src/components/note-preview-card/note-preview-card.component.ngtypecheck.ts","../../../../src/components/note-preview-card/note-preview-card.component.ts","../../../../src/services/note-preview.service.ts","../../../../node_modules/@iconify/types/types.d.ts","../../../../node_modules/@iconify/utils/lib/colors/types.d.ts","../../../../node_modules/@iconify/utils/lib/colors/index.d.ts","../../../../node_modules/@iconify/utils/lib/colors/keywords.d.ts","../../../../node_modules/@iconify/utils/lib/css/types.d.ts","../../../../node_modules/@iconify/utils/lib/css/icon.d.ts","../../../../node_modules/@iconify/utils/lib/css/icons.d.ts","../../../../node_modules/@iconify/utils/lib/customisations/bool.d.ts","../../../../node_modules/@iconify/utils/lib/customisations/defaults.d.ts","../../../../node_modules/@iconify/utils/lib/customisations/flip.d.ts","../../../../node_modules/@iconify/utils/lib/customisations/merge.d.ts","../../../../node_modules/@iconify/utils/lib/customisations/rotate.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/cleanup.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/convert.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/format.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/parse.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/regex/create.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/replace/find.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/replace/replace.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/parse.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/data.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/components.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/name.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/similar.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/tree.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/missing.d.ts","../../../../node_modules/@iconify/utils/lib/emoji/test/variations.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/convert-info.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/expand.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/get-icon.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/get-icons.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/minify.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/parse.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/tree.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/validate-basic.d.ts","../../../../node_modules/@iconify/utils/lib/icon-set/validate.d.ts","../../../../node_modules/@iconify/utils/lib/icon/defaults.d.ts","../../../../node_modules/@iconify/utils/lib/icon/merge.d.ts","../../../../node_modules/@iconify/utils/lib/icon/name.d.ts","../../../../node_modules/@iconify/utils/lib/svg/viewbox.d.ts","../../../../node_modules/@iconify/utils/lib/icon/square.d.ts","../../../../node_modules/@iconify/utils/lib/icon/transformations.d.ts","../../../../node_modules/@iconify/utils/lib/svg/build.d.ts","../../../../node_modules/@iconify/utils/lib/svg/defs.d.ts","../../../../node_modules/@iconify/utils/lib/svg/id.d.ts","../../../../node_modules/@iconify/utils/lib/svg/size.d.ts","../../../../node_modules/@iconify/utils/lib/svg/encode-svg-for-css.d.ts","../../../../node_modules/@iconify/utils/lib/svg/trim.d.ts","../../../../node_modules/@iconify/utils/lib/svg/pretty.d.ts","../../../../node_modules/@iconify/utils/lib/svg/html.d.ts","../../../../node_modules/@iconify/utils/lib/svg/url.d.ts","../../../../node_modules/@iconify/utils/lib/svg/inner-html.d.ts","../../../../node_modules/@iconify/utils/lib/svg/parse.d.ts","../../../../node_modules/@antfu/utils/dist/index.d.mts","../../../../node_modules/@iconify/utils/lib/loader/types.d.ts","../../../../node_modules/@iconify/utils/lib/loader/utils.d.ts","../../../../node_modules/@iconify/utils/lib/loader/custom.d.ts","../../../../node_modules/@iconify/utils/lib/loader/modern.d.ts","../../../../node_modules/@iconify/utils/lib/loader/loader.d.ts","../../../../node_modules/@iconify/utils/lib/misc/strings.d.ts","../../../../node_modules/@iconify/utils/lib/misc/objects.d.ts","../../../../node_modules/@iconify/utils/lib/misc/title.d.ts","../../../../node_modules/@iconify/utils/lib/index.d.ts","../../../../node_modules/mermaid/dist/rendering-util/icons.d.ts","../../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../../node_modules/dompurify/dist/purify.es.d.mts","../../../../node_modules/mermaid/dist/config.type.d.ts","../../../../node_modules/@types/d3-array/index.d.ts","../../../../node_modules/@types/d3-selection/index.d.ts","../../../../node_modules/@types/d3-axis/index.d.ts","../../../../node_modules/@types/d3-brush/index.d.ts","../../../../node_modules/@types/d3-chord/index.d.ts","../../../../node_modules/@types/d3-color/index.d.ts","../../../../node_modules/@types/geojson/index.d.ts","../../../../node_modules/@types/d3-contour/index.d.ts","../../../../node_modules/@types/d3-delaunay/index.d.ts","../../../../node_modules/@types/d3-dispatch/index.d.ts","../../../../node_modules/@types/d3-drag/index.d.ts","../../../../node_modules/@types/d3-dsv/index.d.ts","../../../../node_modules/@types/d3-ease/index.d.ts","../../../../node_modules/@types/d3-fetch/index.d.ts","../../../../node_modules/@types/d3-force/index.d.ts","../../../../node_modules/@types/d3-format/index.d.ts","../../../../node_modules/@types/d3-geo/index.d.ts","../../../../node_modules/@types/d3-hierarchy/index.d.ts","../../../../node_modules/@types/d3-interpolate/index.d.ts","../../../../node_modules/@types/d3-path/index.d.ts","../../../../node_modules/@types/d3-polygon/index.d.ts","../../../../node_modules/@types/d3-quadtree/index.d.ts","../../../../node_modules/@types/d3-random/index.d.ts","../../../../node_modules/@types/d3-time/index.d.ts","../../../../node_modules/@types/d3-scale/index.d.ts","../../../../node_modules/@types/d3-scale-chromatic/index.d.ts","../../../../node_modules/@types/d3-shape/index.d.ts","../../../../node_modules/@types/d3-time-format/index.d.ts","../../../../node_modules/@types/d3-timer/index.d.ts","../../../../node_modules/@types/d3-transition/index.d.ts","../../../../node_modules/@types/d3-zoom/index.d.ts","../../../../node_modules/@types/d3/index.d.ts","../../../../node_modules/type-fest/source/primitive.d.ts","../../../../node_modules/type-fest/source/typed-array.d.ts","../../../../node_modules/type-fest/source/basic.d.ts","../../../../node_modules/type-fest/source/json-value.d.ts","../../../../node_modules/type-fest/source/characters.d.ts","../../../../node_modules/type-fest/source/union-to-intersection.d.ts","../../../../node_modules/type-fest/source/keys-of-union.d.ts","../../../../node_modules/type-fest/source/distributed-omit.d.ts","../../../../node_modules/type-fest/source/distributed-pick.d.ts","../../../../node_modules/type-fest/source/empty-object.d.ts","../../../../node_modules/type-fest/source/if-empty-object.d.ts","../../../../node_modules/type-fest/source/is-any.d.ts","../../../../node_modules/type-fest/source/is-optional-key-of.d.ts","../../../../node_modules/type-fest/source/optional-keys-of.d.ts","../../../../node_modules/type-fest/source/required-keys-of.d.ts","../../../../node_modules/type-fest/source/has-required-keys.d.ts","../../../../node_modules/type-fest/source/is-never.d.ts","../../../../node_modules/type-fest/source/if.d.ts","../../../../node_modules/type-fest/source/unknown-array.d.ts","../../../../node_modules/type-fest/source/internal/type.d.ts","../../../../node_modules/type-fest/source/internal/array.d.ts","../../../../node_modules/type-fest/source/internal/characters.d.ts","../../../../node_modules/type-fest/source/is-float.d.ts","../../../../node_modules/type-fest/source/is-integer.d.ts","../../../../node_modules/type-fest/source/numeric.d.ts","../../../../node_modules/tagged-tag/index.d.ts","../../../../node_modules/type-fest/source/tagged.d.ts","../../../../node_modules/type-fest/source/is-literal.d.ts","../../../../node_modules/type-fest/source/is-null.d.ts","../../../../node_modules/type-fest/source/is-unknown.d.ts","../../../../node_modules/type-fest/source/trim.d.ts","../../../../node_modules/type-fest/source/is-equal.d.ts","../../../../node_modules/type-fest/source/simplify.d.ts","../../../../node_modules/type-fest/source/omit-index-signature.d.ts","../../../../node_modules/type-fest/source/pick-index-signature.d.ts","../../../../node_modules/type-fest/source/merge.d.ts","../../../../node_modules/type-fest/source/internal/object.d.ts","../../../../node_modules/type-fest/source/or.d.ts","../../../../node_modules/type-fest/source/all-extend.d.ts","../../../../node_modules/type-fest/source/and.d.ts","../../../../node_modules/type-fest/source/greater-than.d.ts","../../../../node_modules/type-fest/source/greater-than-or-equal.d.ts","../../../../node_modules/type-fest/source/less-than.d.ts","../../../../node_modules/type-fest/source/internal/tuple.d.ts","../../../../node_modules/type-fest/source/internal/string.d.ts","../../../../node_modules/type-fest/source/internal/keys.d.ts","../../../../node_modules/type-fest/source/internal/numeric.d.ts","../../../../node_modules/type-fest/source/internal/index.d.ts","../../../../node_modules/type-fest/source/except.d.ts","../../../../node_modules/type-fest/source/require-at-least-one.d.ts","../../../../node_modules/type-fest/source/non-empty-object.d.ts","../../../../node_modules/type-fest/source/non-empty-string.d.ts","../../../../node_modules/type-fest/source/unknown-record.d.ts","../../../../node_modules/type-fest/source/unknown-set.d.ts","../../../../node_modules/type-fest/source/unknown-map.d.ts","../../../../node_modules/type-fest/source/tagged-union.d.ts","../../../../node_modules/type-fest/source/writable.d.ts","../../../../node_modules/type-fest/source/writable-deep.d.ts","../../../../node_modules/type-fest/source/conditional-simplify-deep.d.ts","../../../../node_modules/type-fest/source/non-empty-tuple.d.ts","../../../../node_modules/type-fest/source/array-tail.d.ts","../../../../node_modules/type-fest/source/enforce-optional.d.ts","../../../../node_modules/type-fest/source/simplify-deep.d.ts","../../../../node_modules/type-fest/source/merge-deep.d.ts","../../../../node_modules/type-fest/source/merge-exclusive.d.ts","../../../../node_modules/type-fest/source/require-exactly-one.d.ts","../../../../node_modules/type-fest/source/require-all-or-none.d.ts","../../../../node_modules/type-fest/source/require-one-or-none.d.ts","../../../../node_modules/type-fest/source/is-union.d.ts","../../../../node_modules/type-fest/source/single-key-object.d.ts","../../../../node_modules/type-fest/source/partial-deep.d.ts","../../../../node_modules/type-fest/source/required-deep.d.ts","../../../../node_modules/type-fest/source/subtract.d.ts","../../../../node_modules/type-fest/source/paths.d.ts","../../../../node_modules/type-fest/source/pick-deep.d.ts","../../../../node_modules/type-fest/source/array-splice.d.ts","../../../../node_modules/type-fest/source/literal-union.d.ts","../../../../node_modules/type-fest/source/union-to-tuple.d.ts","../../../../node_modules/type-fest/source/omit-deep.d.ts","../../../../node_modules/type-fest/source/partial-on-undefined-deep.d.ts","../../../../node_modules/type-fest/source/undefined-on-partial-deep.d.ts","../../../../node_modules/type-fest/source/readonly-deep.d.ts","../../../../node_modules/type-fest/source/promisable.d.ts","../../../../node_modules/type-fest/source/arrayable.d.ts","../../../../node_modules/type-fest/source/invariant-of.d.ts","../../../../node_modules/type-fest/source/set-optional.d.ts","../../../../node_modules/type-fest/source/set-readonly.d.ts","../../../../node_modules/type-fest/source/set-required.d.ts","../../../../node_modules/type-fest/source/set-required-deep.d.ts","../../../../node_modules/type-fest/source/set-non-nullable.d.ts","../../../../node_modules/type-fest/source/set-non-nullable-deep.d.ts","../../../../node_modules/type-fest/source/value-of.d.ts","../../../../node_modules/type-fest/source/async-return-type.d.ts","../../../../node_modules/type-fest/source/extends-strict.d.ts","../../../../node_modules/type-fest/source/is-tuple.d.ts","../../../../node_modules/type-fest/source/tuple-to-object.d.ts","../../../../node_modules/type-fest/source/conditional-keys.d.ts","../../../../node_modules/type-fest/source/conditional-except.d.ts","../../../../node_modules/type-fest/source/conditional-pick.d.ts","../../../../node_modules/type-fest/source/conditional-pick-deep.d.ts","../../../../node_modules/type-fest/source/stringified.d.ts","../../../../node_modules/type-fest/source/join.d.ts","../../../../node_modules/type-fest/source/sum.d.ts","../../../../node_modules/type-fest/source/less-than-or-equal.d.ts","../../../../node_modules/type-fest/source/array-slice.d.ts","../../../../node_modules/type-fest/source/string-slice.d.ts","../../../../node_modules/type-fest/source/fixed-length-array.d.ts","../../../../node_modules/type-fest/source/multidimensional-array.d.ts","../../../../node_modules/type-fest/source/multidimensional-readonly-array.d.ts","../../../../node_modules/type-fest/source/iterable-element.d.ts","../../../../node_modules/type-fest/source/entry.d.ts","../../../../node_modules/type-fest/source/entries.d.ts","../../../../node_modules/type-fest/source/set-return-type.d.ts","../../../../node_modules/type-fest/source/set-parameter-type.d.ts","../../../../node_modules/type-fest/source/asyncify.d.ts","../../../../node_modules/type-fest/source/jsonify.d.ts","../../../../node_modules/type-fest/source/jsonifiable.d.ts","../../../../node_modules/type-fest/source/find-global-type.d.ts","../../../../node_modules/type-fest/source/structured-cloneable.d.ts","../../../../node_modules/type-fest/source/schema.d.ts","../../../../node_modules/type-fest/source/literal-to-primitive.d.ts","../../../../node_modules/type-fest/source/literal-to-primitive-deep.d.ts","../../../../node_modules/type-fest/source/key-as-string.d.ts","../../../../node_modules/type-fest/source/exact.d.ts","../../../../node_modules/type-fest/source/readonly-tuple.d.ts","../../../../node_modules/type-fest/source/override-properties.d.ts","../../../../node_modules/type-fest/source/has-optional-keys.d.ts","../../../../node_modules/type-fest/source/is-required-key-of.d.ts","../../../../node_modules/type-fest/source/is-readonly-key-of.d.ts","../../../../node_modules/type-fest/source/readonly-keys-of.d.ts","../../../../node_modules/type-fest/source/has-readonly-keys.d.ts","../../../../node_modules/type-fest/source/writable-keys-of.d.ts","../../../../node_modules/type-fest/source/is-writable-key-of.d.ts","../../../../node_modules/type-fest/source/has-writable-keys.d.ts","../../../../node_modules/type-fest/source/spread.d.ts","../../../../node_modules/type-fest/source/tuple-to-union.d.ts","../../../../node_modules/type-fest/source/int-range.d.ts","../../../../node_modules/type-fest/source/int-closed-range.d.ts","../../../../node_modules/type-fest/source/if-any.d.ts","../../../../node_modules/type-fest/source/if-never.d.ts","../../../../node_modules/type-fest/source/if-unknown.d.ts","../../../../node_modules/type-fest/source/array-indices.d.ts","../../../../node_modules/type-fest/source/array-values.d.ts","../../../../node_modules/type-fest/source/set-field-type.d.ts","../../../../node_modules/type-fest/source/shared-union-fields.d.ts","../../../../node_modules/type-fest/source/all-union-fields.d.ts","../../../../node_modules/type-fest/source/shared-union-fields-deep.d.ts","../../../../node_modules/type-fest/source/if-null.d.ts","../../../../node_modules/type-fest/source/is-undefined.d.ts","../../../../node_modules/type-fest/source/is-lowercase.d.ts","../../../../node_modules/type-fest/source/is-uppercase.d.ts","../../../../node_modules/type-fest/source/is-optional.d.ts","../../../../node_modules/type-fest/source/is-nullable.d.ts","../../../../node_modules/type-fest/source/words.d.ts","../../../../node_modules/type-fest/source/camel-case.d.ts","../../../../node_modules/type-fest/source/camel-cased-properties.d.ts","../../../../node_modules/type-fest/source/camel-cased-properties-deep.d.ts","../../../../node_modules/type-fest/source/remove-prefix.d.ts","../../../../node_modules/type-fest/source/delimiter-case.d.ts","../../../../node_modules/type-fest/source/kebab-case.d.ts","../../../../node_modules/type-fest/source/delimiter-cased-properties.d.ts","../../../../node_modules/type-fest/source/kebab-cased-properties.d.ts","../../../../node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts","../../../../node_modules/type-fest/source/kebab-cased-properties-deep.d.ts","../../../../node_modules/type-fest/source/pascal-case.d.ts","../../../../node_modules/type-fest/source/pascal-cased-properties.d.ts","../../../../node_modules/type-fest/source/pascal-cased-properties-deep.d.ts","../../../../node_modules/type-fest/source/snake-case.d.ts","../../../../node_modules/type-fest/source/snake-cased-properties.d.ts","../../../../node_modules/type-fest/source/snake-cased-properties-deep.d.ts","../../../../node_modules/type-fest/source/screaming-snake-case.d.ts","../../../../node_modules/type-fest/source/split.d.ts","../../../../node_modules/type-fest/source/replace.d.ts","../../../../node_modules/type-fest/source/string-repeat.d.ts","../../../../node_modules/type-fest/source/includes.d.ts","../../../../node_modules/type-fest/source/get.d.ts","../../../../node_modules/type-fest/source/last-array-element.d.ts","../../../../node_modules/type-fest/source/conditional-simplify.d.ts","../../../../node_modules/type-fest/source/global-this.d.ts","../../../../node_modules/type-fest/source/package-json.d.ts","../../../../node_modules/type-fest/source/tsconfig-json.d.ts","../../../../node_modules/type-fest/source/extract-strict.d.ts","../../../../node_modules/type-fest/source/exclude-strict.d.ts","../../../../node_modules/type-fest/index.d.ts","../../../../node_modules/mermaid/dist/types.d.ts","../../../../node_modules/mermaid/dist/utils.d.ts","../../../../node_modules/mermaid/dist/diagram.d.ts","../../../../node_modules/mermaid/dist/diagrams/git/gitgraphtypes.d.ts","../../../../node_modules/mermaid/dist/diagram-api/types.d.ts","../../../../node_modules/mermaid/dist/diagram-api/detecttype.d.ts","../../../../node_modules/mermaid/dist/errors.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/clusters.d.ts","../../../../node_modules/mermaid/dist/rendering-util/types.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/anchor.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/bowtierect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/card.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/choice.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/circle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/crossedcircle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/curlybraceleft.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/curlybraceright.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/curlybraces.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/curvedtrapezoid.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/cylinder.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/dividedrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/doublecircle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/filledcircle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/flippedtriangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/forkjoin.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/halfroundedrectangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/hexagon.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/hourglass.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/icon.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/iconcircle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/iconrounded.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/iconsquare.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/imagesquare.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/invertedtrapezoid.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/labelrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/leanleft.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/leanright.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/lightningbolt.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/linedcylinder.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/linedwaveedgedrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/multirect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/multiwaveedgedrectangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/note.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/question.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/rectleftinvarrow.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/rectwithtitle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/roundedrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/shadedprocess.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/slopedrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/squarerect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/stadium.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/state.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/stateend.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/statestart.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/subroutine.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/taggedrect.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/taggedwaveedgedrectangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/text.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/tiltedcylinder.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/trapezoid.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/trapezoidalpentagon.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/triangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/waveedgedrectangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/waverectangle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/windowpane.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/erbox.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/classbox.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/requirementbox.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/kanbanitem.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/bang.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/cloud.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/defaultmindmapnode.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/mindmapcircle.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes.d.ts","../../../../node_modules/dagre-d3-es/src/graphlib/graph.d.ts","../../../../node_modules/dagre-d3-es/src/graphlib/index.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-node.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-circle.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-ellipse.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-polygon.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-rect.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/intersect/index.d.ts","../../../../node_modules/dagre-d3-es/src/dagre-js/render.d.ts","../../../../node_modules/dagre-d3-es/src/index.d.ts","../../../../node_modules/mermaid/dist/rendering-util/rendering-elements/nodes.d.ts","../../../../node_modules/mermaid/dist/logger.d.ts","../../../../node_modules/mermaid/dist/internals.d.ts","../../../../node_modules/mermaid/dist/mermaidapi.d.ts","../../../../node_modules/mermaid/dist/rendering-util/render.d.ts","../../../../node_modules/mermaid/dist/mermaid.d.ts","../../../../src/components/tags-view/note-viewer/note-viewer.component.ts","../../../../src/components/graph-view/graph-view.component.ngtypecheck.ts","../../../../src/components/graph-view/graph-view.component.ts","../../../../src/components/tags-view/tags-view.component.ngtypecheck.ts","../../../../src/components/tags-view/tags-view.component.ts","../../../../node_modules/calendar-utils/date-adapters/date-adapter/index.d.ts","../../../../node_modules/calendar-utils/calendar-utils.d.ts","../../../../node_modules/positioning/dist/positioning.d.ts","../../../../node_modules/positioning/dist/entry.d.ts","../../../../node_modules/angular-draggable-droppable/index.d.ts","../../../../node_modules/angular-resizable-element/index.d.ts","../../../../node_modules/angular-calendar/index.d.ts","../../../../src/components/markdown-calendar/markdown-calendar.component.ngtypecheck.ts","../../../../node_modules/angular-calendar/date-adapters/date-adapter.d.ts","../../../../node_modules/angular-calendar/date-adapters/date-fns/index.d.ts","../../../../src/services/markdown-calendar.service.ngtypecheck.ts","../../../../src/services/markdown-calendar.service.ts","../../../../node_modules/@angular/core/rxjs-interop/index.d.ts","../../../../src/components/markdown-calendar/markdown-calendar.component.ts","../../../../node_modules/@angular/cdk/unique-selection-dispatcher.d.d.ts","../../../../node_modules/@angular/cdk/accordion/index.d.ts","../../../../src/components/graph-settings/graph-settings-accordion.component.ngtypecheck.ts","../../../../src/app/graph/graph-settings.types.ngtypecheck.ts","../../../../src/app/graph/graph-settings.types.ts","../../../../src/app/graph/graph-settings.service.ngtypecheck.ts","../../../../src/app/graph/graph-settings.service.ts","../../../../src/app/graph/ui/sections/filters-section.component.ngtypecheck.ts","../../../../src/app/graph/ui/sections/filters-section.component.ts","../../../../src/app/graph/ui/sections/groups-section.component.ngtypecheck.ts","../../../../src/app/graph/ui/sections/groups-section.component.ts","../../../../src/app/graph/ui/sections/display-section.component.ngtypecheck.ts","../../../../src/app/graph/ui/sections/display-section.component.ts","../../../../src/app/graph/ui/sections/forces-section.component.ngtypecheck.ts","../../../../src/app/graph/ui/sections/forces-section.component.ts","../../../../src/components/graph-settings/graph-settings-accordion.component.ts","../../../../src/app/graph/ui/inline-settings-panel.component.ngtypecheck.ts","../../../../src/app/graph/ui/inline-settings-panel.component.ts","../../../../node_modules/@angular/cdk/list-key-manager.d.d.ts","../../../../node_modules/@angular/cdk/activedescendant-key-manager.d.d.ts","../../../../node_modules/@angular/cdk/focus-monitor.d.d.ts","../../../../node_modules/@angular/cdk/focus-key-manager.d.d.ts","../../../../node_modules/@angular/cdk/tree-key-manager-strategy.d.d.ts","../../../../node_modules/@angular/cdk/observers/index.d.ts","../../../../node_modules/@angular/cdk/a11y-module.d.d.ts","../../../../node_modules/@angular/cdk/a11y/index.d.ts","../../../../src/shared/overlays/raw-view-overlay.component.ngtypecheck.ts","../../../../src/shared/overlays/raw-view-overlay.component.ts","../../../../src/components/bookmarks-panel/bookmarks-panel.component.ngtypecheck.ts","../../../../node_modules/@angular/cdk/drag-drop/index.d.ts","../../../../src/core/bookmarks/types.ngtypecheck.ts","../../../../src/core/bookmarks/types.ts","../../../../src/core/bookmarks/bookmarks.service.ngtypecheck.ts","../../../../src/core/bookmarks/bookmarks.repository.ngtypecheck.ts","../../../../src/core/bookmarks/bookmarks.utils.ngtypecheck.ts","../../../../src/core/bookmarks/bookmarks.utils.ts","../../../../src/core/bookmarks/bookmarks.repository.ts","../../../../src/core/bookmarks/bookmarks.service.ts","../../../../src/core/services/drop-list-registry.service.ngtypecheck.ts","../../../../src/core/services/drop-list-registry.service.ts","../../../../src/components/bookmark-item/bookmark-item.component.ngtypecheck.ts","../../../../src/components/bookmark-item/bookmark-item.component.ts","../../../../src/components/bookmarks-panel/bookmarks-panel.component.ts","../../../../src/components/add-bookmark-modal/add-bookmark-modal.component.ngtypecheck.ts","../../../../src/components/add-bookmark-modal/add-bookmark-modal.component.ts","../../../../src/core/graph/graph-index.service.ngtypecheck.ts","../../../../src/core/graph/graph-index.service.ts","../../../../src/app.component.ts","../../../../index.tsx","../../../../src/app/graph/graph-runtime-adapter.ngtypecheck.ts","../../../../src/app/graph/graph-runtime-adapter.ts","../../../../src/app/graph/ui/settings-button.component.ngtypecheck.ts","../../../../src/app/graph/ui/settings-button.component.ts","../../../../src/app/graph/ui/settings-panel.component.ngtypecheck.ts","../../../../src/app/graph/ui/settings-panel.component.ts","../../../../src/components/graph-options-panel/graph-options-panel.component.ngtypecheck.ts","../../../../src/components/graph-options-panel/graph-options-panel.component.ts","../../../../src/components/graph-view-container/graph-view-container.component.ngtypecheck.ts","../../../../src/services/note-index.service.ngtypecheck.ts","../../../../src/services/wikilink-parser.service.ngtypecheck.ts","../../../../src/services/wikilink-parser.service.ts","../../../../src/services/note-index.service.ts","../../../../src/components/graph-view-container/graph-view-container.component.ts","../../../../src/components/search-bar/search-bar.component.ngtypecheck.ts","../../../../src/components/search-bar/search-bar.component.ts","../../../../src/components/search-panel/search-panel.component.ngtypecheck.ts","../../../../src/components/search-results/search-results.component.ngtypecheck.ts","../../../../src/core/search/search-evaluator.service.ngtypecheck.ts","../../../../src/core/search/search-evaluator.service.ts","../../../../src/components/search-results/search-results.component.ts","../../../../src/components/search-panel/search-panel.component.ts","../../../../src/core/bookmarks/index.ngtypecheck.ts","../../../../src/core/bookmarks/index.ts","../../../../src/types/mermaid.d.ts","../../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[816,864],[60,258,262,265,266,267,784,816,864],[258,757,760,816,864],[252,258,334,755,756,757,758,759,760,761,816,864],[252,258,737,816,864],[755,816,864],[258,816,864],[252,816,864],[252,258,331,333,334,335,336,816,864],[755,757,816,864],[252,258,816,864],[252,258,334,816,864],[252,258,262,331,332,335,336,337,338,816,864],[252,258,262,331,332,333,334,335,336,337,338,339,816,864],[258,332,816,864],[252,258,331,333,334,816,864],[252,258,331,333,334,335,816,864],[252,258,259,816,864],[252,258,261,264,816,864],[252,258,259,260,261,816,864],[63,816,864],[61,62,816,864],[61,62,63,252,253,254,816,864],[61,816,864],[61,62,63,252,253,254,255,256,257,816,864],[61,62,63,252,256,816,864],[258,262,816,864],[258,262,263,265,816,864],[346,816,864],[345,349,816,864],[345,816,864],[353,816,864],[362,816,864],[364,365,816,864],[369,816,864],[366,816,864],[364,366,367,816,864],[365,368,816,864],[381,816,864],[345,384,816,864],[347,348,350,351,352,353,354,355,356,357,358,359,360,361,363,364,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,399,400,401,402,403,404,405,406,816,864],[399,816,864],[345,399,816,864],[345,353,398,816,864],[398,399,816,864],[353,381,384,816,864],[345,387,816,864],[413,441,816,864],[412,418,816,864],[423,816,864],[418,816,864],[417,816,864],[435,816,864],[431,816,864],[413,430,441,816,864],[412,413,414,415,416,417,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,816,864],[314,816,864],[299,816,864],[301,304,305,816,864],[303,816,864],[294,300,302,306,309,311,312,313,816,864],[302,307,308,314,816,864],[307,310,816,864],[302,303,307,314,816,864],[302,314,816,864],[295,296,297,298,816,864],[297,816,864],[816,861,864],[816,863,864],[864],[816,864,869,898],[816,864,865,870,875,883,895,906],[816,864,865,866,875,883],[811,812,813,816,864],[816,864,867,907],[816,864,868,869,876,884],[816,864,869,895,903],[816,864,870,872,875,883],[816,863,864,871],[816,864,872,873],[816,864,874,875],[816,863,864,875],[816,864,875,876,877,895,906],[816,864,875,876,877,890,895,898],[816,857,864,872,875,878,883,895,906],[816,864,875,876,878,879,883,895,903,906],[816,864,878,880,895,903,906],[814,815,816,817,818,819,820,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912],[816,864,875,881],[816,864,882,906],[816,864,872,875,883,895],[816,864,884],[816,864,885],[816,863,864,886],[816,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912],[816,864,888],[816,864,889],[816,864,875,890,891],[816,864,890,892,907,909],[816,864,875,895,896,898],[816,864,897,898],[816,864,895,896],[816,864,898],[816,864,899],[816,861,864,895,900],[816,864,875,901,902],[816,864,901,902],[816,864,869,883,895,903],[816,864,904],[816,864,883,905],[816,864,878,889,906],[816,864,869,907],[816,864,895,908],[816,864,882,909],[816,864,910],[816,857,864],[816,857,864,875,877,886,895,898,906,908,909,911],[816,864,895,912],[723,816,864],[731,816,864],[252,258,723,724,726,727,728,816,864],[704,705,706,707,708,816,864],[702,816,864],[703,709,710,816,864],[409,816,864],[293,816,864],[315,816,864],[410,816,864],[411,632,816,864],[411,443,627,630,631,816,864],[629,632,816,864],[411,413,441,628,629,636,712,713,816,864],[408,411,628,629,630,632,633,634,636,714,715,716,816,864],[411,628,630,632,816,864],[345,407,816,864],[632,636,714,816,864],[636,816,864],[413,441,628,636,701,711,717,816,864],[628,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,816,864],[413,441,628,636,816,864],[411,628,635,701,816,864],[411,816,864],[411,413,441,443,628,816,864],[725,816,864],[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,80,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,187,196,198,199,200,201,202,203,205,206,208,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,816,864],[109,816,864],[65,68,816,864],[67,816,864],[67,68,816,864],[64,65,66,68,816,864],[65,67,68,225,816,864],[68,816,864],[64,67,109,816,864],[67,68,225,816,864],[67,233,816,864],[65,67,68,816,864],[77,816,864],[100,816,864],[121,816,864],[67,68,109,816,864],[68,116,816,864],[67,68,109,127,816,864],[67,68,127,816,864],[68,168,816,864],[68,109,816,864],[64,68,186,816,864],[64,68,187,816,864],[209,816,864],[193,195,816,864],[204,816,864],[193,816,864],[64,68,186,193,194,816,864],[186,187,195,816,864],[207,816,864],[64,68,193,194,195,816,864],[66,67,68,816,864],[64,68,816,864],[65,67,187,188,189,190,816,864],[109,187,188,189,190,816,864],[187,189,816,864],[67,188,189,191,192,196,816,864],[64,67,816,864],[68,211,816,864],[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,816,864],[197,816,864],[444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,466,467,468,470,471,472,473,474,475,476,477,478,479,481,482,483,484,485,486,492,493,494,495,496,497,498,499,500,501,502,503,504,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,816,864],[455,460,461,462,463,464,480,481,816,864],[450,462,476,491,588,816,864],[482,816,864],[468,475,483,484,485,491,519,546,547,816,864],[462,485,491,516,816,864],[461,462,491,816,864],[556,816,864],[491,597,816,864],[462,491,598,816,864],[491,598,816,864],[492,540,816,864],[462,463,537,539,816,864],[453,475,491,496,502,541,816,864],[540,816,864],[471,479,491,597,601,816,864],[462,491,597,602,816,864],[491,597,602,816,864],[450,816,864],[476,816,864],[554,816,864],[444,450,473,475,491,816,864],[475,491,816,864],[455,460,816,864],[448,491,517,520,566,615,816,864],[484,816,864],[468,475,481,483,491,816,864],[457,816,864],[573,816,864],[458,816,864],[575,816,864],[455,816,864],[453,816,864],[460,816,864],[472,816,864],[473,816,864],[475,816,864],[546,580,816,864],[491,516,816,864],[457,460,461,462,463,816,864],[463,464,465,480,487,488,489,490,816,864],[455,471,473,488,816,864],[460,462,463,468,488,816,864],[450,455,457,458,460,461,462,463,475,476,479,488,489,816,864],[465,468,474,487,816,864],[462,468,484,486,816,864],[444,455,460,461,816,864],[466,468,491,816,864],[444,460,468,470,491,816,864],[455,475,816,864],[455,456,463,816,864],[455,460,461,462,491,816,864],[455,463,572,816,864],[447,816,864],[445,447,453,455,460,462,468,473,491,816,864],[491,597,602,606,816,864],[491,597,602,604,816,864],[449,816,864],[485,816,864],[477,564,816,864],[444,816,864],[462,477,478,479,491,496,502,503,504,505,506,816,864],[476,477,478,816,864],[475,516,816,864],[459,493,816,864],[466,467,816,864],[460,462,475,491,506,517,519,520,521,816,864],[456,816,864],[460,461,816,864],[479,816,864],[447,520,816,864],[460,491,816,864],[461,473,479,491,816,864],[491,598,608,816,864],[455,460,462,484,491,516,816,864],[449,460,462,476,491,517,816,864],[491,816,864],[572,816,864],[463,471,480,481,816,864],[455,460,461,491,816,864],[455,460,461,491,492,816,864],[455,460,461,491,509,816,864],[457,462,463,476,480,816,864],[491,597,602,611,816,864],[476,491,816,864],[462,476,491,517,521,533,816,864],[476,491,492,816,864],[462,473,491,816,864],[455,462,491,506,515,517,521,531,816,864],[457,461,462,476,491,492,816,864],[460,462,491,816,864],[460,462,476,491,512,816,864],[491,502,816,864],[453,461,512,816,864],[471,481,483,491,816,864],[458,476,816,864],[468,471,816,864],[491,545,548,816,864],[445,561,816,864],[468,486,491,816,864],[468,491,516,816,864],[469,816,864],[455,461,462,538,816,864],[449,460,816,864],[491,593,594,816,864],[476,492,816,864],[816,829,833,864,906],[816,829,864,895,906],[816,824,864],[816,826,829,864,903,906],[816,864,883,903],[816,864,913],[816,824,864,913],[816,826,829,864,883,906],[816,821,822,825,828,864,875,895,906],[816,829,836,864],[816,821,827,864],[816,829,850,851,864],[816,825,829,864,898,906,913],[816,850,864,913],[816,823,824,864,913],[816,829,864],[816,823,824,825,826,827,828,829,830,831,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,851,852,853,854,855,856,864],[816,829,844,864],[816,829,836,837,864],[816,827,829,837,838,864],[816,828,864],[816,821,824,829,864],[816,829,833,837,838,864],[816,833,864],[816,827,829,832,864,906],[816,821,826,829,836,864],[816,864,895],[816,824,829,850,864,911,913],[258,262,290,784,816,864],[258,262,270,281,284,289,290,291,318,322,324,326,328,718,720,722,736,754,764,774,779,781,783,816,864],[258,262,325,816,864],[275,281,720,741,786,816,864],[252,258,265,741,742,816,864],[740,816,864],[258,752,754,816,864],[258,262,741,743,752,753,816,864],[258,749,816,864],[258,262,289,741,748,816,864],[258,290,745,816,864],[258,262,289,290,741,744,816,864],[258,751,816,864],[258,262,289,741,750,816,864],[258,747,816,864],[258,262,289,741,746,816,864],[258,789,816,864],[258,262,788,816,864],[258,791,816,864],[258,262,741,743,752,790,816,864],[258,289,781,816,864],[258,262,289,768,774,780,816,864],[258,778,816,864],[258,262,766,768,774,776,777,779,816,864],[258,779,816,864],[258,262,289,765,766,768,774,776,778,816,864],[258,328,816,864],[258,262,281,284,327,816,864],[258,289,290,793,816,864],[258,262,289,290,741,743,792,816,864],[258,738,752,816,864],[258,262,738,739,741,743,745,747,749,751,816,864],[258,720,791,793,799,816,864],[258,262,281,284,720,743,787,791,793,794,798,816,864],[258,720,816,864],[258,262,281,413,426,441,442,719,816,864],[258,262,729,736,816,864],[252,258,262,281,729,730,732,734,735,816,864],[258,343,816,864],[258,262,266,342,816,864],[258,262,287,289,801,816,864],[258,262,270,274,287,289,800,816,864],[258,262,287,290,816,864],[258,262,270,287,288,289,816,864],[258,801,807,816,864],[258,262,274,284,285,801,802,805,806,816,864],[258,287,816,864],[258,262,268,270,286,816,864],[258,289,806,816,864],[258,262,284,289,803,805,816,864],[258,262,718,816,864],[252,258,262,266,281,329,344,810,816,864],[258,722,816,864],[258,262,281,721,816,864],[768,770,772,816,864],[258,768,769,772,773,816,864],[768,771,816,864],[768,772,773,774,808,816,864],[767,816,864],[258,782,816,864],[258,271,275,285,816,864],[258,274,275,285,804,816,864],[258,269,816,864],[258,274,276,281,284,816,864],[272,274,816,864],[273,816,864],[258,323,816,864],[252,258,766,775,816,864],[252,258,281,320,816,864],[252,258,265,281,733,816,864],[319,321,816,864],[258,281,292,293,315,316,317,816,864],[258,281,795,797,816,864],[252,258,330,340,341,343,816,864],[252,258,282,816,864],[252,258,265,277,281,283,816,864],[258,796,816,864],[258,262,762,764,816,864],[258,262,762,763,816,864],[278,280,816,864],[279,816,864]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93",{"version":"f2d816f789f9c13c7f752f4e8944581d9f54793228838161127001a7ea5c1413","impliedFormat":99},{"version":"0b4e4f360c94324c9ac71c9467856bd98630cbfb13a30e57d59d1c8785e31485","affectsGlobalScope":true,"impliedFormat":99},{"version":"6197f7b18752cbcd66a341ce3d41244ef4b4e8afe82a463c3ac7429ccffa87a1","affectsGlobalScope":true,"impliedFormat":99},{"version":"073ca26c96184db9941b5ec0ddea6981c9b816156d9095747809e524fdd90e35","impliedFormat":1},{"version":"e41d17a2ec23306d953cda34e573ed62954ca6ea9b8c8b74e013d07a6886ce47","impliedFormat":1},{"version":"241bd4add06f06f0699dcd58f3b334718d85e3045d9e9d4fa556f11f4d1569c1","impliedFormat":1},{"version":"2ae3787e1498b20aad1b9c2ee9ea517ec30e89b70d242d8e3e52d1e091039695","impliedFormat":1},{"version":"c7c72c4cffb1bc83617eefed71ed68cc89df73cab9e19507ccdecb3e72b4967e","affectsGlobalScope":true,"impliedFormat":1},{"version":"b8bff8a60af0173430b18d9c3e5c443eaa3c515617210c0c7b3d2e1743c19ecb","impliedFormat":1},{"version":"38b38db08e7121828294dec10957a7a9ff263e33e2a904b346516d4a4acca482","impliedFormat":1},{"version":"a76ebdf2579e68e4cfe618269c47e5a12a4e045c2805ed7f7ab37af8daa6b091","impliedFormat":1},{"version":"8a2aaea564939c22be05d665cc955996721bad6d43148f8fa21ae8f64afecd37","impliedFormat":1},{"version":"e59d36b7b6e8ba2dd36d032a5f5c279d2460968c8b4e691ca384f118fb09b52a","impliedFormat":1},{"version":"e96885c0684c9042ec72a9a43ef977f6b4b4a2728f4b9e737edcbaa0c74e5bf6","impliedFormat":1},{"version":"95950a187596e206d32d5d9c7b932901088c65ed8f9040e614aa8e321e0225ef","impliedFormat":1},{"version":"89e061244da3fc21b7330f4bd32f47c1813dd4d7f1dc3d0883d88943f035b993","impliedFormat":1},{"version":"e46558c2e04d06207b080138678020448e7fc201f3d69c2601b0d1456105f29a","impliedFormat":1},{"version":"71549375db52b1163411dba383b5f4618bdf35dc57fa327a1c7d135cf9bf67d1","impliedFormat":1},{"version":"7e6b2d61d6215a4e82ea75bc31a80ebb8ad0c2b37a60c10c70dd671e8d9d6d5d","impliedFormat":1},{"version":"78bea05df2896083cca28ed75784dde46d4b194984e8fc559123b56873580a23","impliedFormat":1},{"version":"5dd04ced37b7ea09f29d277db11f160df7fd73ba8b9dba86cb25552e0653a637","impliedFormat":1},{"version":"f74b81712e06605677ae1f061600201c425430151f95b5ef4d04387ad7617e6a","impliedFormat":1},{"version":"9a72847fcf4ac937e352d40810f7b7aec7422d9178451148296cf1aa19467620","impliedFormat":1},{"version":"3ae18f60e0b96fa1e025059b7d25b3247ba4dcb5f4372f6d6e67ce2adac74eac","impliedFormat":1},{"version":"2b9260f44a2e071450ae82c110f5dc8f330c9e5c3e85567ed97248330f2bf639","impliedFormat":1},{"version":"4f196e13684186bda6f5115fc4677a87cf84a0c9c4fc17b8f51e0984f3697b6d","impliedFormat":1},{"version":"61419f2c5822b28c1ea483258437c1faab87d00c6f84481aa22afb3380d8e9a4","impliedFormat":1},{"version":"64479aee03812264e421c0bf5104a953ca7b02740ba80090aead1330d0effe91","impliedFormat":1},{"version":"0521108c9f8ddb17654a0a54dae6ba9667c99eddccfd6af5748113e022d1c37a","impliedFormat":1},{"version":"c5570e504be103e255d80c60b56c367bf45d502ca52ee35c55dec882f6563b5c","impliedFormat":1},{"version":"ee764e6e9a7f2b987cc1a2c0a9afd7a8f4d5ebc4fdb66ad557a7f14a8c2bd320","impliedFormat":1},{"version":"0520b5093712c10c6ef23b5fea2f833bf5481771977112500045e5ea7e8e2b69","impliedFormat":1},{"version":"5c3cf26654cf762ac4d7fd7b83f09acfe08eef88d2d6983b9a5a423cb4004ca3","impliedFormat":1},{"version":"e60fa19cf7911c1623b891155d7eb6b7e844e9afdf5738e3b46f3b687730a2bd","impliedFormat":1},{"version":"b1fd72ff2bb0ba91bb588f3e5329f8fc884eb859794f1c4657a2bfa122ae54d0","impliedFormat":1},{"version":"6cf42a4f3cfec648545925d43afaa8bb364ac10a839ffed88249da109361b275","impliedFormat":1},{"version":"d7058e75920120b142a9d57be25562a3cd9a936269fd52908505f530105f2ec4","impliedFormat":1},{"version":"6df52b70d7f7702202f672541a5f4a424d478ee5be51a9d37b8ccbe1dbf3c0f2","impliedFormat":1},{"version":"0ca7f997e9a4d8985e842b7c882e521b6f63233c4086e9fe79dd7a9dc4742b5e","impliedFormat":1},{"version":"91046b5c6b55d3b194c81fd4df52f687736fad3095e9d103ead92bb64dc160ee","impliedFormat":1},{"version":"db5704fdad56c74dfc5941283c1182ed471bd17598209d3ac4a49faa72e43cfc","impliedFormat":1},{"version":"758e8e89559b02b81bc0f8fd395b17ad5aff75490c862cbe369bb1a3d1577c40","impliedFormat":1},{"version":"2ee64342c077b1868f1834c063f575063051edd6e2964257d34aad032d6b657c","impliedFormat":1},{"version":"6f6b4b3d670b6a5f0e24ea001c1b3d36453c539195e875687950a178f1730fa7","impliedFormat":1},{"version":"a472a1d3f25ce13a1d44911cd3983956ac040ce2018e155435ea34afb25f864c","impliedFormat":1},{"version":"b48b83a86dd9cfe36f8776b3ff52fcd45b0e043c0538dc4a4b149ba45fe367b9","impliedFormat":1},{"version":"792de5c062444bd2ee0413fb766e57e03cce7cdaebbfc52fc0c7c8e95069c96b","impliedFormat":1},{"version":"a79e3e81094c7a04a885bad9b049c519aace53300fb8a0fe4f26727cb5a746ce","impliedFormat":1},{"version":"93181bac0d90db185bb730c95214f6118ae997fe836a98a49664147fbcaf1988","impliedFormat":1},{"version":"8a4e89564d8ea66ad87ee3762e07540f9f0656a62043c910d819b4746fc429c5","impliedFormat":1},{"version":"b9011d99942889a0f95e120d06b698c628b0b6fdc3e6b7ecb459b97ed7d5bcc6","impliedFormat":1},{"version":"4d639cbbcc2f8f9ce6d55d5d503830d6c2556251df332dc5255d75af53c8a0e7","impliedFormat":1},{"version":"cdb48277f600ab5f429ecf1c5ea046683bc6b9f73f3deab9a100adac4b34969c","impliedFormat":1},{"version":"75be84956a29040a1afbe864c0a7a369dfdb739380072484eff153905ef867ee","impliedFormat":1},{"version":"b06b4adc2ae03331a92abd1b19af8eb91ec2bf8541747ee355887a167d53145e","impliedFormat":1},{"version":"c54166a85bd60f86d1ebb90ce0117c0ecb850b8a33b366691629fdf26f1bbbd8","impliedFormat":1},{"version":"0d417c15c5c635384d5f1819cc253a540fe786cc3fda32f6a2ae266671506a21","impliedFormat":1},{"version":"80f23f1d60fbed356f726b3b26f9d348dddbb34027926d10d59fad961e70a730","impliedFormat":1},{"version":"cb59317243a11379a101eb2f27b9df1022674c3df1df0727360a0a3f963f523b","impliedFormat":1},{"version":"cc20bb2227dd5de0aab0c8d697d1572f8000550e62c7bf5c92f212f657dd88c5","impliedFormat":1},{"version":"06b8a7d46195b6b3980e523ef59746702fd210b71681a83a5cf73799623621f9","impliedFormat":1},{"version":"860e4405959f646c101b8005a191298b2381af8f33716dc5f42097e4620608f8","impliedFormat":1},{"version":"f7e32adf714b8f25d3c1783473abec3f2e82d5724538d8dcf6f51baaaff1ca7a","impliedFormat":1},{"version":"d0da80c845999a16c24d0783033fb5366ada98df17867c98ad433ede05cd87fd","impliedFormat":1},{"version":"bfbf80f9cd4558af2d7b2006065340aaaced15947d590045253ded50aabb9bc5","impliedFormat":1},{"version":"fd9a991b51870325e46ebb0e6e18722d313f60cd8e596e645ec5ac15b96dbf4e","impliedFormat":1},{"version":"c3bd2b94e4298f81743d92945b80e9b56c1cdfb2bef43c149b7106a2491b1fc9","impliedFormat":1},{"version":"a246cce57f558f9ebaffd55c1e5673da44ea603b4da3b2b47eb88915d30a9181","impliedFormat":1},{"version":"d993eacc103c5a065227153c9aae8acea3a4322fe1a169ee7c70b77015bf0bb2","impliedFormat":1},{"version":"fc2b03d0c042aa1627406e753a26a1eaad01b3c496510a78016822ef8d456bb6","impliedFormat":1},{"version":"063c7ebbe756f0155a8b453f410ca6b76ffa1bbc1048735bcaf9c7c81a1ce35f","impliedFormat":1},{"version":"314e402cd481370d08f63051ae8b8c8e6370db5ee3b8820eeeaaf8d722a6dac6","impliedFormat":1},{"version":"9669075ac38ce36b638b290ba468233980d9f38bdc62f0519213b2fd3e2552ec","impliedFormat":1},{"version":"4d123de012c24e2f373925100be73d50517ac490f9ed3578ac82d0168bfbd303","impliedFormat":1},{"version":"656c9af789629aa36b39092bee3757034009620439d9a39912f587538033ce28","impliedFormat":1},{"version":"3ac3f4bdb8c0905d4c3035d6f7fb20118c21e8a17bee46d3735195b0c2a9f39f","impliedFormat":1},{"version":"1f453e6798ed29c86f703e9b41662640d4f2e61337007f27ac1c616f20093f69","impliedFormat":1},{"version":"af43b7871ff21c62bf1a54ec5c488e31a8d3408d5b51ff2e9f8581b6c55f2fc7","impliedFormat":1},{"version":"70550511d25cbb0b6a64dcac7fffc3c1397fd4cbeb6b23ccc7f9b794ab8a6954","impliedFormat":1},{"version":"af0fbf08386603a62f2a78c42d998c90353b1f1d22e05a384545f7accf881e0a","impliedFormat":1},{"version":"cefc20054d20b85b534206dbcedd509bb74f87f3d8bc45c58c7be3a76caa45e1","impliedFormat":1},{"version":"ad6eee4877d0f7e5244d34bc5026fd6e9cf8e66c5c79416b73f9f6ebf132f924","impliedFormat":1},{"version":"4888fd2bcfee9a0ce89d0df860d233e0cee8ee9c479b6bd5a5d5f9aae98342fe","impliedFormat":1},{"version":"f4749c102ced952aa6f40f0b579865429c4869f6d83df91000e98005476bee87","impliedFormat":1},{"version":"56654d2c5923598384e71cb808fac2818ca3f07dd23bb018988a39d5e64f268b","impliedFormat":1},{"version":"8b6719d3b9e65863da5390cb26994602c10a315aa16e7d70778a63fee6c4c079","impliedFormat":1},{"version":"05f56cd4b929977d18df8f3d08a4c929a2592ef5af083e79974b20a063f30940","impliedFormat":1},{"version":"547d3c406a21b30e2b78629ecc0b2ddaf652d9e0bdb2d59ceebce5612906df33","impliedFormat":1},{"version":"b3a4f9385279443c3a5568ec914a9492b59a723386161fd5ef0619d9f8982f97","impliedFormat":1},{"version":"3fe66aba4fbe0c3ba196a4f9ed2a776fe99dc4d1567a558fb11693e9fcc4e6ed","impliedFormat":1},{"version":"140eef237c7db06fc5adcb5df434ee21e81ee3a6fd57e1a75b8b3750aa2df2d8","impliedFormat":1},{"version":"0944ec553e4744efae790c68807a461720cff9f3977d4911ac0d918a17c9dd99","impliedFormat":1},{"version":"cb46b38d5e791acaa243bf342b8b5f8491639847463ac965b93896d4fb0af0d9","impliedFormat":1},{"version":"7c7d9e116fe51100ff766703e6b5e4424f51ad8977fe474ddd8d0959aa6de257","impliedFormat":1},{"version":"af70a2567e586be0083df3938b6a6792e6821363d8ef559ad8d721a33a5bcdaf","impliedFormat":1},{"version":"006cff3a8bcb92d77953f49a94cd7d5272fef4ab488b9052ef82b6a1260d870b","impliedFormat":1},{"version":"7d44bfdc8ee5e9af70738ff652c622ae3ad81815e63ab49bdc593d34cb3a68e5","impliedFormat":1},{"version":"339814517abd4dbc7b5f013dfd3b5e37ef0ea914a8bbe65413ecffd668792bc6","impliedFormat":1},{"version":"34d5bc0a6958967ec237c99f980155b5145b76e6eb927c9ffc57d8680326b5d8","impliedFormat":1},{"version":"9eae79b70c9d8288032cbe1b21d0941f6bd4f315e14786b2c1d10bccc634e897","impliedFormat":1},{"version":"18ce015ed308ea469b13b17f99ce53bbb97975855b2a09b86c052eefa4aa013a","impliedFormat":1},{"version":"5a931bc4106194e474be141e0bc1046629510dc95b9a0e4b02a3783847222965","impliedFormat":1},{"version":"5e5f371bf23d5ced2212a5ff56675aefbd0c9b3f4d4fdda1b6123ac6e28f058c","impliedFormat":1},{"version":"907c17ad5a05eecb29b42b36cc8fec6437be27cc4986bb3a218e4f74f606911c","impliedFormat":1},{"version":"ce60a562cd2a92f37a88f2ddd99a3abfbc5848d7baf38c48fb8d3243701fcb75","impliedFormat":1},{"version":"a726ad2d0a98bfffbe8bc1cd2d90b6d831638c0adc750ce73103a471eb9a891c","impliedFormat":1},{"version":"f44c0c8ce58d3dacac016607a1a90e5342d830ea84c48d2e571408087ae55894","impliedFormat":1},{"version":"75a315a098e630e734d9bc932d9841b64b30f7a349a20cf4717bf93044eff113","impliedFormat":1},{"version":"9131d95e32b3d4611d4046a613e022637348f6cebfe68230d4e81b691e4761a1","impliedFormat":1},{"version":"b03aa292cfdcd4edc3af00a7dbd71136dd067ec70a7536b655b82f4dd444e857","impliedFormat":1},{"version":"b6e2b0448ced813b8c207810d96551a26e7d7bb73255eea4b9701698f78846d6","impliedFormat":1},{"version":"8ae10cd85c1bd94d2f2d17c4cbd25c068a4b2471c70c2d96434239f97040747a","impliedFormat":1},{"version":"9ed5b799c50467b0c9f81ddf544b6bcda3e34d92076d6cab183c84511e45c39f","impliedFormat":1},{"version":"b4fa87cc1833839e51c49f20de71230e259c15b2c9c3e89e4814acc1d1ef10de","impliedFormat":1},{"version":"e90ac9e4ac0326faa1bc39f37af38ace0f9d4a655cd6d147713c653139cf4928","impliedFormat":1},{"version":"ea27110249d12e072956473a86fd1965df8e1be985f3b686b4e277afefdde584","impliedFormat":1},{"version":"8776a368617ce51129b74db7d55c3373dadcce5d0701e61d106e99998922a239","impliedFormat":1},{"version":"5666075052877fe2fdddd5b16de03168076cf0f03fbca5c1d4a3b8f43cba570c","impliedFormat":1},{"version":"9108ab5af05418f599ab48186193b1b07034c79a4a212a7f73535903ba4ca249","impliedFormat":1},{"version":"bb4e2cdcadf9c9e6ee2820af23cee6582d47c9c9c13b0dca1baaffe01fbbcb5f","impliedFormat":1},{"version":"6e30d0b5a1441d831d19fe02300ab3d83726abd5141cbcc0e2993fa0efd33db4","impliedFormat":1},{"version":"423f28126b2fc8d8d6fa558035309000a1297ed24473c595b7dec52e5c7ebae5","impliedFormat":1},{"version":"fb30734f82083d4790775dae393cd004924ebcbfde49849d9430bf0f0229dd16","impliedFormat":1},{"version":"2c92b04a7a4a1cd9501e1be338bf435738964130fb2ad5bd6c339ee41224ac4c","impliedFormat":1},{"version":"c5c5f0157b41833180419dacfbd2bcce78fb1a51c136bd4bcba5249864d8b9b5","impliedFormat":1},{"version":"02ae43d5bae42efcd5a00d3923e764895ce056bca005a9f4e623aa6b4797c8af","impliedFormat":1},{"version":"db6e01f17012a9d7b610ae764f94a1af850f5d98c9c826ad61747dca0fb800bd","impliedFormat":1},{"version":"8a44b424edee7bb17dc35a558cc15f92555f14a0441205613e0e50452ab3a602","impliedFormat":1},{"version":"24a00d0f98b799e6f628373249ece352b328089c3383b5606214357e9107e7d5","impliedFormat":1},{"version":"33637e3bc64edd2075d4071c55d60b32bdb0d243652977c66c964021b6fc8066","impliedFormat":1},{"version":"0f0ad9f14dedfdca37260931fac1edf0f6b951c629e84027255512f06a6ebc4c","impliedFormat":1},{"version":"16ad86c48bf950f5a480dc812b64225ca4a071827d3d18ffc5ec1ae176399e36","impliedFormat":1},{"version":"8cbf55a11ff59fd2b8e39a4aa08e25c5ddce46e3af0ed71fb51610607a13c505","impliedFormat":1},{"version":"d5bc4544938741f5daf8f3a339bfbf0d880da9e89e79f44a6383aaf056fe0159","impliedFormat":1},{"version":"97f9169882d393e6f303f570168ca86b5fe9aab556e9a43672dae7e6bb8e6495","impliedFormat":1},{"version":"7c9adb3fcd7851497818120b7e151465406e711d6a596a71b807f3a17853cb58","impliedFormat":1},{"version":"6752d402f9282dd6f6317c8c048aaaac27295739a166eed27e00391b358fed9a","impliedFormat":1},{"version":"9fd7466b77020847dbc9d2165829796bf7ea00895b2520ff3752ffdcff53564b","impliedFormat":1},{"version":"fbfc12d54a4488c2eb166ed63bab0fb34413e97069af273210cf39da5280c8d6","impliedFormat":1},{"version":"85a84240002b7cf577cec637167f0383409d086e3c4443852ca248fc6e16711e","impliedFormat":1},{"version":"84794e3abd045880e0fadcf062b648faf982aa80cfc56d28d80120e298178626","impliedFormat":1},{"version":"053d8b827286a16a669a36ffc8ccc8acdf8cc154c096610aa12348b8c493c7b8","impliedFormat":1},{"version":"3cce4ce031710970fe12d4f7834375f5fd455aa129af4c11eb787935923ff551","impliedFormat":1},{"version":"8f62cbd3afbd6a07bb8c934294b6bfbe437021b89e53a4da7de2648ecfc7af25","impliedFormat":1},{"version":"62c3621d34fb2567c17a2c4b89914ebefbfbd1b1b875b070391a7d4f722e55dc","impliedFormat":1},{"version":"c05ac811542e0b59cb9c2e8f60e983461f0b0e39cea93e320fad447ff8e474f3","impliedFormat":1},{"version":"8e7a5b8f867b99cc8763c0b024068fb58e09f7da2c4810c12833e1ca6eb11c4f","impliedFormat":1},{"version":"132351cbd8437a463757d3510258d0fa98fd3ebef336f56d6f359cf3e177a3ce","impliedFormat":1},{"version":"df877050b04c29b9f8409aa10278d586825f511f0841d1ec41b6554f8362092b","impliedFormat":1},{"version":"33d1888c3c27d3180b7fd20bac84e97ecad94b49830d5dd306f9e770213027d1","impliedFormat":1},{"version":"ee942c58036a0de88505ffd7c129f86125b783888288c2389330168677d6347f","impliedFormat":1},{"version":"a3f317d500c30ea56d41501632cdcc376dae6d24770563a5e59c039e1c2a08ec","impliedFormat":1},{"version":"eb21ddc3a8136a12e69176531197def71dc28ffaf357b74d4bf83407bd845991","impliedFormat":1},{"version":"0c1651a159995dfa784c57b4ea9944f16bdf8d924ed2d8b3db5c25d25749a343","impliedFormat":1},{"version":"aaa13958e03409d72e179b5d7f6ec5c6cc666b7be14773ae7b6b5ee4921e52db","impliedFormat":1},{"version":"0a86e049843ad02977a94bb9cdfec287a6c5a0a4b6b5391a6648b1a122072c5a","impliedFormat":1},{"version":"40f06693e2e3e58526b713c937895c02e113552dc8ba81ecd49cdd9596567ddb","impliedFormat":1},{"version":"4ed5e1992aedb174fb8f5aa8796aa6d4dcb8bd819b4af1b162a222b680a37fa0","impliedFormat":1},{"version":"d7f4bd46a8b97232ea6f8c28012b8d2b995e55e729d11405f159d3e00c51420a","impliedFormat":1},{"version":"d604d413aff031f4bfbdae1560e54ebf503d374464d76d50a2c6ded4df525712","impliedFormat":1},{"version":"e4f4f9cf1e3ac9fd91ada072e4d428ecbf0aa6dc57138fb797b8a0ca3a1d521c","impliedFormat":1},{"version":"12bfd290936824373edda13f48a4094adee93239b9a73432db603127881a300d","impliedFormat":1},{"version":"340ceb3ea308f8e98264988a663640e567c553b8d6dc7d5e43a8f3b64f780374","impliedFormat":1},{"version":"c5a769564e530fba3ec696d0a5cff1709b9095a0bdf5b0826d940d2fc9786413","impliedFormat":1},{"version":"7124ef724c3fc833a17896f2d994c368230a8d4b235baed39aa8037db31de54f","impliedFormat":1},{"version":"5de1c0759a76e7710f76899dcae601386424eab11fb2efaf190f2b0f09c3d3d3","impliedFormat":1},{"version":"9c5ee8f7e581f045b6be979f062a61bf076d362bf89c7f966b993a23424e8b0d","impliedFormat":1},{"version":"1a11df987948a86aa1ec4867907c59bdf431f13ed2270444bf47f788a5c7f92d","impliedFormat":1},{"version":"8018dd2e95e7ce6e613ddd81672a54532614dc745520a2f9e3860ff7fb1be0ca","impliedFormat":1},{"version":"b756781cd40d465da57d1fc6a442c34ae61fe8c802d752aace24f6a43fedacee","impliedFormat":1},{"version":"0fe76167c87289ea094e01616dcbab795c11b56bad23e1ef8aba9aa37e93432a","impliedFormat":1},{"version":"3a45029dba46b1f091e8dc4d784e7be970e209cd7d4ff02bd15270a98a9ba24b","impliedFormat":1},{"version":"032c1581f921f8874cf42966f27fd04afcabbb7878fa708a8251cac5415a2a06","impliedFormat":1},{"version":"69c68ed9652842ce4b8e495d63d2cd425862104c9fb7661f72e7aa8a9ef836f8","impliedFormat":1},{"version":"0e704ee6e9fd8b6a5a7167886f4d8915f4bc22ed79f19cb7b32bd28458f50643","impliedFormat":1},{"version":"06f62a14599a68bcde148d1efd60c2e52e8fa540cc7dcfa4477af132bb3de271","impliedFormat":1},{"version":"904a96f84b1bcee9a7f0f258d17f8692e6652a0390566515fe6741a5c6db8c1c","impliedFormat":1},{"version":"11f19ce32d21222419cecab448fa335017ebebf4f9e5457c4fa9df42fa2dcca7","impliedFormat":1},{"version":"2e8ee2cbb5e9159764e2189cf5547aebd0e6b0d9a64d479397bb051cd1991744","impliedFormat":1},{"version":"1b0471d75f5adb7f545c1a97c02a0f825851b95fe6e069ac6ecaa461b8bb321d","impliedFormat":1},{"version":"1d157c31a02b1e5cca9bc495b3d8d39f4b42b409da79f863fb953fbe3c7d4884","impliedFormat":1},{"version":"07baaceaec03d88a4b78cb0651b25f1ae0322ac1aa0b555ae3749a79a41cba86","impliedFormat":1},{"version":"619a132f634b4ebe5b4b4179ea5870f62f2cb09916a25957bff17b408de8b56d","impliedFormat":1},{"version":"f60fa446a397eb1aead9c4e568faf2df8068b4d0306ebc075fb4be16ed26b741","impliedFormat":1},{"version":"f3cb784be4d9e91f966a0b5052a098d9b53b0af0d341f690585b0cc05c6ca412","impliedFormat":1},{"version":"350f63439f8fe2e06c97368ddc7fb6d6c676d54f59520966f7dbbe6a4586014e","impliedFormat":1},{"version":"eba613b9b357ac8c50a925fa31dc7e65ff3b95a07efbaa684b624f143d8d34ba","impliedFormat":1},{"version":"45b74185005ed45bec3f07cac6e4d68eaf02ead9ff5a66721679fb28020e5e7c","impliedFormat":1},{"version":"0f6199602df09bdb12b95b5434f5d7474b1490d2cd8cc036364ab3ba6fd24263","impliedFormat":1},{"version":"c8ca7fd9ec7a3ec82185bfc8213e4a7f63ae748fd6fced931741d23ef4ea3c0f","impliedFormat":1},{"version":"5c6a8a3c2a8d059f0592d4eab59b062210a1c871117968b10797dee36d991ef7","impliedFormat":1},{"version":"ad77fd25ece8e09247040826a777dc181f974d28257c9cd5acb4921b51967bd8","impliedFormat":1},{"version":"a38d837cf9f3927e331a0edc3359a0a1261827b5f0714dd9e73decf691e3d784","impliedFormat":99},{"version":"69f37a67d0b725ffab9ca6c8577779410bc2c2bd7e28e08497f302958cf04133","impliedFormat":99},{"version":"aa469e56f712a444cad4c8207227cd4e2ba9b7dc85f8bcce60757cc74d92ef6c","impliedFormat":99},{"version":"315ca248a164391dc8972667977c63de8cb85f56c0b3af52f5ba74511b5a1023","impliedFormat":99},{"version":"980537489494f71c114d3591d4dabf38dd510d05ec1675b7add16683f9caddee","impliedFormat":99},{"version":"3cc2a2c24616063c8d374a820ef44854420c9050c16593325a4948c90825bf1e","impliedFormat":99},{"version":"7f85441d9310989401da7669c20d3707889041dbc10342d07090624f2afe48e1","impliedFormat":99},{"version":"b9881f288ceca2785bf5011d8d71e62d0aabd2c590134bc954f86283ef296e56","impliedFormat":99},{"version":"0e5a987e300ffd30bb6d1bfe74aecd5b0a82b10930356c33e5700c4d1e6e2648","impliedFormat":99},{"version":"aff5048bb39d4af90aaf75d139d0b6ec102be301daaf69b69c9c1ecf03f684fa","impliedFormat":99},{"version":"279d6ce125419838204326214b807e01261100344be1ab7f6969a85fe5b6d136","impliedFormat":99},{"version":"8be4613ef6366ae04d7c9f66dd243441285e6c8bd25f049dc5c40cd414853ced","impliedFormat":99},{"version":"403de383dcfe1c79bfa5dae6f368d118b4741d660ade3e3e78fdb38a7e2de542","impliedFormat":99},{"version":"8c377fb0a127aca9d8c0434b40ab23621689333d7cd39473cd30bc87a8cf3a27","impliedFormat":99},{"version":"c1a2490845cba61742cc5143243976fb60ccf02a13c803d221340cb1bc3a4905","impliedFormat":99},{"version":"2a16c1d8972597d0091688dce82df7be86a934531dd111fbde6cfbcbfde06cfb","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"704292e222ff8b0dde59153ca78ba75fcc16aa936a43e23429137f18370908e1","signature":"7dd4f03d76ecdd07b110be6d4c4df4ae97ffee4384b469fd69ecb1736a4bc1e3"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"8d39167ffbc85a75f9da4c0e25853f0f07b3a3905b4a1e56fad3677c3dffbbdf","signature":"d49aef44cb9bb80c38ea1effb6a68b338e24fd7482f22e0cede620a453f15267"},{"version":"8e95f1028af19b876b555b83d6383290e4449845aa503d40ea787382cdf109bb","signature":"bf68e59262b61a4669ac529f5b73b92bf1b39d031df01da1c729d5b6048c62a9"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","2815871b6010b428a5ef286d08a89918265b6546f95277a2443021b8c7cd38f4",{"version":"f06d9bf1c9cecd06174ef64f371f275e8f325c62672e2e603322c7fc4ce4983d","signature":"93564125942db46125bd3604fbc2c8892fea3656d30baf0654d2f890e7036108"},"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","766167d83d759e31a71cb70f55c522a12bff7ed172829f526614fe4c1c07bedd","4c64f3a43aae03f008e19de1d64987f2683aad41c3f41c53d43d30474c925dbc",{"version":"dca4c1ff6a602469377be809039c276dd5767df441cbcbb2bd5845e3c0dd427f","signature":"ad5605f921eed30298463985c948b9ce17fcb01b9875928c8d0cc74b76033ab0"},{"version":"bd00f7db89ceb481bf815176bdb348c828cd294abe92b452bc189a2f0030b5b0","signature":"e86663c9172e04eae7850dac8f55d268cfe8e5ae5bdb79de1f346775a8a815c4"},"7fbfedc33bae8ef6bdcdeba92aacfd6c4547d1283aa05982e933ab7cc4850165",{"version":"b4e2866f608bf760db12cba29179e2bf10c5a4a53a0e41d597b1efc541413e61","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"2ee259d253a1444b52439db8bb134fc628e46f99c0b29679e38cdf1a24d3cb9d","impliedFormat":99},"2bfee58b8377b1ce4bc5cea2d7ce537e56eb522da561219dd4339f918f038681","b810ebaa5be103144e1c5352c9760115fd712f7df44e1c14a55e1465495e3655","ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93",{"version":"6bd987ccf12886137d96b81e48f65a7a6fa940085753c4e212c91f51555f13e5","impliedFormat":1},{"version":"01f9bade4ea5db62464fed4f6bda2abc928862000baae48a0f54cfffc1af3cc6","impliedFormat":99},{"version":"f1ed4b327880fa467f6b7b8a8f0c0a182901213ec4bc732a1de32a24f959424a","impliedFormat":99},{"version":"1f527f5aa7667cf13cd61a83327ac127bd9be0fe705517bec56abd7f93a3267d","impliedFormat":99},{"version":"930371ee0f953df416ac187dc69f9d469e1808f05023410d8864ddbe4c877731","impliedFormat":99},{"version":"fe0150ce20bc36bcc4250e562b951073a27c3665bf58c5c19defcdcb4c124307","impliedFormat":99},{"version":"1287b82bfb7169da991900975e76543c3c21c42733bee7378e5429cb367e016a","impliedFormat":99},{"version":"14cb75ba862b72eb71e62062abb678eed961d0c3cb5c5509865929187d3bc22b","impliedFormat":99},{"version":"273570ff6139f4a05a8863a933c28a6b5033b6d4dba515d06ad71a3efa766685","impliedFormat":99},{"version":"3cede24c7dbb210a05b2199edb8d37a604fd2000087a92809c5f321b96b9060e","impliedFormat":99},{"version":"56bf46d943e202a7fbdd6de1b00ce794b414b7a640bca3d1bed7e98f983df8c2","impliedFormat":99},{"version":"eb5b855ca3d65fd100bbf97317def7be3ecb5aa27003e931712550dc9d83808f","impliedFormat":99},{"version":"bb7e70394dd1808fb08a28cf74bb5a59d5e8b2e3a79f601cfe4231b6f671a8a8","impliedFormat":99},{"version":"426c7929dba2c15eef2da827c7fea629df1789865eb7774ad4ffeef819944adc","impliedFormat":99},{"version":"a42d343866ab53f3f5f23b0617e7cfcd35bded730962d1392d2b782194ce1478","impliedFormat":99},{"version":"90c0c132340dbfd22e66dd4faa648bbdd0d1bea8c84d24850d75ae02dbc85f8e","impliedFormat":99},{"version":"2f7ae32421d8c12ee799ff5861b49fdd76d9120d152a54e6731cbfb45794c00d","impliedFormat":99},{"version":"da735780043c7b7382319b246c8e39a4fa23e5b053b445404cd377f2d8c3d427","impliedFormat":99},{"version":"d25f105bc9e09d3f491a6860b12cbbad343eb7155428d0e82406b48d4295deff","impliedFormat":99},{"version":"5994371065209ea5a9cb08e454a2cde716ea935269d6801ffd55505563e70590","impliedFormat":99},{"version":"201b08fbbb3e5a5ff55ce6abe225db0f552d0e4c2a832c34851fb66e1858052f","impliedFormat":99},{"version":"a95943b4629fee65ba5f488b11648860e04c2bf1c48b2080621255f8c5a6d088","impliedFormat":99},{"version":"84fa8470a1b177773756d9f4b2e9d80e3d88725aba949b7e9d94a92ca723fb0e","impliedFormat":99},{"version":"1f6626198051a5751c9f502c9187d0b73ebf5f6597bc343515997b64786241c3","impliedFormat":99},{"version":"ee7c01346ec575d0402a13ec2e895cda308b527a764c970aae4a08be01c95406","impliedFormat":1},{"version":"3a92b27646ff7dd3d69342c54becc5ef213199df7b43621d04b0a344dc9df7a3","signature":"217a89a5903aee7557233f8bc4b4f0847ec3d4b36fb79c8ff7118eea9045cd4e"},"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","dc2718f969c3a8d1f3daf67cde56f2301df5e395087f04ece23efb1f02df5491","a59120a0acb537efb26c3fb936769d55dfbb84143bceea81a7fe831e5ca0b4c4","ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","e0ea52900c617a448f6a98b3ea9b81b40f7ded55b6fd893f9ba8620c1c85a1a9",{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"c5d63d0a55ea47db99dd26800dbb2b2ce2f6e260b5a1a073e5708d2c8709a632","signature":"4a39399b977fcec33d56f08932a226c6bb24456988060100d64e2edd070e2bb6"},{"version":"6f22bf4b63250e2ab4542e0dfe0cf361c68aef21d5e020b5e9ac1430d9c0552f","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"ad5ad256f0db537acbd6677fc89ab0f45d6727cc48b5f9aa96d2e478fc7c427e",{"version":"79756e964718448f56a2438517ae688bbdff0bd56e6395424d103027711e04f1","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"3a9323fd680c0d3d8d8fe14f8f951c1e1e1b762fea0a8de48d876f0d435e406d","impliedFormat":99},{"version":"cf41702adfda9c0cdc296d135daf549c837ddd58f18517cb43b2dc6106f8a010","impliedFormat":99},{"version":"581228c64dea7a741cd82cc867dbc74aaf333f00a415a542c94f32904ca40737","impliedFormat":99},{"version":"dc18d006527854eccef7394cfef826eb78bf2d98952401df0b94da286f7b11c6","impliedFormat":99},{"version":"e2d3d92b851b78c368e4fd7e92c503d7e4683053f9017b6a7cb0b0fe103d9bdb","impliedFormat":99},{"version":"336b589d137529f847fc4754b466f1297866cd7daf74f024a36d52f37661ef28","impliedFormat":99},{"version":"91d9de4d3888ec1767f406307b333103aeb33469f81a8f8743ece26549f8f856","impliedFormat":99},{"version":"184aeb5eaa3d273414cec3371de4bf250e9a0118f7f993a3b7073367d7f04d2b","impliedFormat":99},{"version":"8ac3f63fc0101a5604b2eb60d047b07761e85b9fc4300e3d4a0fefe928304c92","impliedFormat":99},{"version":"5bed905879da0eab8e40b1970373866e8138a01a47b16f647379f8b56cedbcae","impliedFormat":99},{"version":"770e668352851797a4adffdc7aeefabca46534ae4f867eeac581c25e3676d213","impliedFormat":99},{"version":"8a5130f84ab8a39a314b838c31ec66b9a2f83ba1da7c4c21e94380c0ba16f41b","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"3534fc34433733a6f566508d6c1717237ac7a98e915bcb4e4f635526cb36a8a2","1a152148991449c10630ad27ee0d30e5bc27bc7c952fae855ba0da5552f14088",{"version":"12baec7a4e2c3acddd09ab665e0ae262395044396e41ecde616fefdd33dc75ff","impliedFormat":99},{"version":"a5b88a3dd2d88189df04e242aa103b7d380d6f3226cb709e6231b1714ab32367","impliedFormat":99},{"version":"e0ae30ef821c679555662ef3b2fe7876550bb882351e7763658e574af8b46c70","impliedFormat":99},{"version":"7078c77d332326a372c1a2bf1a82aa5d1a75f2ef0aee6ace01c0caf509d682e6","impliedFormat":99},{"version":"3c655c148cc91a10ac5cd7e037a043225da3df41be908f5ff4970c27f5019e41","impliedFormat":99},{"version":"1c2895fbfa6cd25406f29fcdd75c2e2105e8c8df1a4944fbba9ccace6211c893","impliedFormat":99},{"version":"81e8f8a08f31dd6766ef203bfe8d9e1f2fdd42e22ddebba6607c569ee750f611","impliedFormat":99},{"version":"8cab328fafd8141b097260fa1bb4478477ccb4215b83fe710bb863d639eeaad7","impliedFormat":99},{"version":"b71c133a200ec0f58e2fed163ffd7195727fa60ad82e2f04b23f3d0358d11c69","impliedFormat":99},{"version":"2a6056297dcd95be218af4da343508fb6f669b1847a0bd0a61ab565555e9bff4","impliedFormat":99},{"version":"4f8d052e63e35abab5461f3d2243ffbfcbd5746c82d915f2eec6a56a92f2de2f","impliedFormat":99},{"version":"ea80607028bdbddc6cedd31518df127b1c1d8d36e61602c1ab087a143f6cf35e","impliedFormat":99},{"version":"190526c884bd366f0286e83f341623be7a7ff3c4d8693d565aaf5d830c5da81c","impliedFormat":99},{"version":"10514d44b1341ca2eed6ce145b5be548cd22b64a00ec35c25e52088cecc3c71e","impliedFormat":99},{"version":"b71d05a8d89c62d2e9110b16a413ccbf72a6c6c745a46b1c98684a3f5a11d9af","impliedFormat":99},{"version":"084f53ba42c54c0a929a9bbe3d0a8083214b629bce53e0eb1ddbe952e17e0943","impliedFormat":99},{"version":"dcea451fd572ddd0ed46c322042eaa0bfcf9ec27eb3c6253d60903a58463c78c","impliedFormat":99},{"version":"d2bc6aceb7e558385033d069e9b6263df719a54d17f2a9672c9c675e106c4ff2","impliedFormat":99},{"version":"3e9f400911379b8eba9a2a1346fa1cce3cc21ee2587cedb14c0636d2956ec3a5","impliedFormat":99},{"version":"2cab545dabda94fe5419bd6bdfae4d9aabd6f40b46bb0040c417ef570b32b13f","impliedFormat":99},{"version":"d0b92629d56e8bf11a5b5391daf8cb09488e4840bd17b0847760321e314748c4","impliedFormat":99},{"version":"d6b3c97a7d31d1ea76c8680ff11b0b07185e1f6222d3e6f29d7a13b6911127ab","impliedFormat":99},{"version":"0ddd9ab937cef821a908be8581c73874105b34a61b6debaaa89c5c5cf25594a1","impliedFormat":99},{"version":"f8f112dfc0427d63a94413a12bca3cc858b4359e70e1e30d3f3709bef76f1c52","impliedFormat":99},{"version":"26c42de693907fa56842e6ebf39007334e1c6dbae30388a71d715179a527edb2","impliedFormat":99},{"version":"cceba3e6626d0d5a6b743b5f7f150f92323173a42d25269e731080a3ff36d31a","impliedFormat":99},{"version":"698f3f181d2eb5a09ba7cbd78e9ffd6bd21b48873972f64764ff774c86e411c1","impliedFormat":99},{"version":"81d272285c96d6be6287c6217a6f7fd9daaa86bdb9b0592f3831bbcf149ec6c2","impliedFormat":99},{"version":"3fbed1bc84290ae6bad246a668e41aa6308cb9f54c499b29297ff639a9833b7e","impliedFormat":99},{"version":"67c4642b72f0769f2900ed67a9b004165a0821359f79dab12c9f686df9c4319c","impliedFormat":99},{"version":"02933889d4b0d3b26342b240f71c10f0ffb75fa66742b7e4c3884e6e3e134908","impliedFormat":99},{"version":"55555ba42cc8a2104c5bfe9fa1f86d2db480f7db20648eaca3d24aed203af504","impliedFormat":99},{"version":"a6b1ed3b5c123319781d5ea0e22ff29ccb13620226b6ca95c3358eeef802f57d","impliedFormat":99},{"version":"b71b43f6718d950985da7c703896d50e387bfca17da86ad5d285ffa260ac452c","impliedFormat":99},{"version":"7aeb46eb0a4c9cdcdec142780cb9adf1726f9a321ae7e648b6b164a9438beaf5","impliedFormat":99},{"version":"c53e4574eb73e3f8ba12ee417601cafa27b7f0326d80caa101e1396bc6f57a66","impliedFormat":99},{"version":"327f4c840a0bf72609a9b9f367c443adf6dcfd193e8ec97ea50ca3e91ab57dec","impliedFormat":99},{"version":"40efa8b89da5f84d101a2e11d3bde07ceba84d2151a46362d51af9fcac38a300","impliedFormat":99},{"version":"7584bebefa39b6befd2f53b682a7f78837c2bb156cdfdf45967e8849e0d55dd8","impliedFormat":99},{"version":"86f06b955ff10b08571f46f3ced5cbb8b13c1ad049d5532f7ee2956ac3f2beb1","impliedFormat":99},{"version":"85b303f253aa1ace057cb95c4877ab0284733266b2659721776c8bce3123ee52","impliedFormat":99},{"version":"d986ec1523a115dee85f6b0887b6f2fd9c442963f80bbb4ee0fc4283668c370f","impliedFormat":99},{"version":"94599e64d23ffdf775213a6d58dc5c168fdccc183b99a25638fad6cac404aed9","impliedFormat":99},{"version":"51fe1fa188fcd12d95d6bb8585f562e402ecf1cfe20468bf26b16705f601a5d3","impliedFormat":99},{"version":"dd00452f03f26720d7bae5313580be4b0ce2c61d9adb99c62a00a8ed01aff94c","impliedFormat":99},{"version":"623cfc15d5f796ad146ff31ab9f2c6b0f9a87546df41ad899ca250a49602cb73","impliedFormat":99},{"version":"153638de5f15083b920bc363ce6466625d28507e2c6ca321404d10ad394a8c68","impliedFormat":99},{"version":"aa8e3b222985e2dff4f056802cb68ef6e798f60761758a0ce2aa9be8ba964a08","impliedFormat":99},{"version":"f2f1da2c3c170f8f88b158926c9c36f3cdb9e178dfb82c76ccfcc4ce49607f7d","impliedFormat":99},{"version":"79926764aeff0993b4c5572388a26a0c8840b7019e95d0c413f8bfa28faa9a11","impliedFormat":99},{"version":"f0e4415f13da8dbcb3ca10e18aa243d97bf3448a75f14fe2ade07a3462684539","impliedFormat":99},{"version":"407894b66b2b266e4ac9f85f9d561132461b22e912a9391f86a0f5e49929d468","impliedFormat":99},{"version":"5c26337066b61988acd1cde0a41da915efa0cbd4059ca78098e356b52a61451f","impliedFormat":99},{"version":"9c993d2a22e92a8982e79502262d13f0971e5b55cafe0c16e3b2dc689632b1c5","impliedFormat":99},{"version":"a1432e2f9f50696576c7642f8d28eed730b0ea09208e015d64385ed8eab679ab","impliedFormat":99},{"version":"2e1807e5fb1e4722f02eebb012b1f0dfb9ffc3c3103dc730e25c379168178010","impliedFormat":99},{"version":"a853fefc5b7f2491746cf1c612a1eaaa00d459c3196e7ab19c851785264e8795","impliedFormat":99},{"version":"48a465f5c5355b19f0c392918c93f8b7e49aaaedb95b3834d9b4c81e0d1cd344","impliedFormat":99},{"version":"ae02342d343890e389173008232602886260a423bf0ce4050dc4f069a865387d","impliedFormat":99},{"version":"3a9add1125746158416c8fe8b07798bfe63dcf27c9fb81b07e110a80357a2f3b","impliedFormat":99},{"version":"4dc4c65d064c762de00721f3e475c72875d010a12eb00991adca4951003cae1f","impliedFormat":99},{"version":"cca32394edecf4a3e67183b41246fbfddbc5697d71acf3e838cc89deb69fea1d","impliedFormat":99},{"version":"900d74897b9f1bb17578172e82429afd0ab189a2dafaafed2c76b288573a1c8c","impliedFormat":99},{"version":"b689b467912ca0ff089a178fc46d28080324dbef440da3994d5b58c79207fa0e","impliedFormat":99},{"version":"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e","impliedFormat":1},{"version":"abeda0609e70e1530639b7731a18831e628b00bbb469c042d4994ef334a5894b","impliedFormat":99},{"version":"9d8d29eb1604f8f81839170f35609b3c8deaf84a1261e1f5c293bdb574f36297","impliedFormat":99},{"version":"b1538a92b9bae8d230267210c5db38c2eb6bdb352128a3ce3aa8c6acf9fc9622","impliedFormat":1},{"version":"469532350a366536390c6eb3bde6839ec5c81fe1227a6b7b6a70202954d70c40","impliedFormat":1},{"version":"17c9f569be89b4c3c17dc17a9fb7909b6bab34f73da5a9a02d160f502624e2e8","impliedFormat":1},{"version":"003df7b9a77eaeb7a524b795caeeb0576e624e78dea5e362b053cb96ae89132a","impliedFormat":1},{"version":"7ba17571f91993b87c12b5e4ecafe66b1a1e2467ac26fcb5b8cee900f6cf8ff4","impliedFormat":1},{"version":"6fc1a4f64372593767a9b7b774e9b3b92bf04e8785c3f9ea98973aa9f4bbe490","impliedFormat":1},{"version":"d30e67059f5c545c5f8f0cc328a36d2e03b8c4a091b4301bc1d6afb2b1491a3a","impliedFormat":1},{"version":"8b219399c6a743b7c526d4267800bd7c84cf8e27f51884c86ad032d662218a9d","impliedFormat":1},{"version":"bad6d83a581dbd97677b96ee3270a5e7d91b692d220b87aab53d63649e47b9ad","impliedFormat":1},{"version":"324726a1827e34c0c45c43c32ecf73d235b01e76ef6d0f44c2c0270628df746a","impliedFormat":1},{"version":"54e79224429e911b5d6aeb3cf9097ec9fd0f140d5a1461bbdece3066b17c232c","impliedFormat":1},{"version":"e1b666b145865bc8d0d843134b21cf589c13beba05d333c7568e7c30309d933a","impliedFormat":1},{"version":"ff09b6fbdcf74d8af4e131b8866925c5e18d225540b9b19ce9485ca93e574d84","impliedFormat":1},{"version":"c836b5d8d84d990419548574fc037c923284df05803b098fe5ddaa49f88b898a","impliedFormat":1},{"version":"3a2b8ed9d6b687ab3e1eac3350c40b1624632f9e837afe8a4b5da295acf491cb","impliedFormat":1},{"version":"189266dd5f90a981910c70d7dfa05e2bca901a4f8a2680d7030c3abbfb5b1e23","impliedFormat":1},{"version":"5ec8dcf94c99d8f1ed7bb042cdfa4ef6a9810ca2f61d959be33bcaf3f309debe","impliedFormat":1},{"version":"a80e02af710bdac31f2d8308890ac4de4b6a221aafcbce808123bfc2903c5dc2","impliedFormat":1},{"version":"d5895252efa27a50f134a9b580aa61f7def5ab73d0a8071f9b5bf9a317c01c2d","impliedFormat":1},{"version":"2c378d9368abcd2eba8c29b294d40909845f68557bc0b38117e4f04fc56e5f9c","impliedFormat":1},{"version":"0f345151cece7be8d10df068b58983ea8bcbfead1b216f0734037a6c63d8af87","impliedFormat":1},{"version":"37fd7bde9c88aa142756d15aeba872498f45ad149e0d1e56f3bccc1af405c520","impliedFormat":1},{"version":"2a920fd01157f819cf0213edfb801c3fb970549228c316ce0a4b1885020bad35","impliedFormat":1},{"version":"56208c500dcb5f42be7e18e8cb578f257a1a89b94b3280c506818fed06391805","impliedFormat":1},{"version":"0c94c2e497e1b9bcfda66aea239d5d36cd980d12a6d9d59e66f4be1fa3da5d5a","impliedFormat":1},{"version":"a67774ceb500c681e1129b50a631fa210872bd4438fae55e5e8698bac7036b19","impliedFormat":1},{"version":"bb220eaac1677e2ad82ac4e7fd3e609a0c7b6f2d6d9c673a35068c97f9fcd5cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"dd8936160e41420264a9d5fade0ff95cc92cab56032a84c74a46b4c38e43121e","impliedFormat":1},{"version":"1f366bde16e0513fa7b64f87f86689c4d36efd85afce7eb24753e9c99b91c319","impliedFormat":1},{"version":"421c3f008f6ef4a5db2194d58a7b960ef6f33e94b033415649cd557be09ef619","impliedFormat":1},{"version":"57568ff84b8ba1a4f8c817141644b49252cc39ec7b899e4bfba0ec0557c910a0","impliedFormat":1},{"version":"e6f10f9a770dedf552ca0946eef3a3386b9bfb41509233a30fc8ca47c49db71c","impliedFormat":1},{"version":"cd51ceafea7762ad639afb3ca5b68e1e4ffeaacaa402d7ef2cae17016e29e098","impliedFormat":99},{"version":"1b8357b3fef5be61b5de6d6a4805a534d68fe3e040c11f1944e27d4aec85936a","impliedFormat":99},{"version":"9bfe335059abdd8ee6b5d020eb8b31996fb9e46a559bb3e56dc33daf668a4938","impliedFormat":99},{"version":"3f71cb3d6bc7ca88035bd91d251405222c26d701a4ec64c02f76b8912855d88c","impliedFormat":99},{"version":"73d55616414a262b0514be28663732546600ce718fb5ee76631553831b2e005c","impliedFormat":99},{"version":"928f96b9948742cbaec33e1c34c406c127c2dad5906edb7df08e92b963500a41","impliedFormat":99},{"version":"5ad4e36816a7f2e69d3a23922d52a741e1a5e17061bb011d6f46e9c419988bb6","impliedFormat":99},{"version":"a085b1bae599820f7cdb1cfa4f18c7caf4002ba68824969977ae946eed7665fb","impliedFormat":99},{"version":"45e2a69a085b3ddfad84bc2ea62d4134b1ddeab886a3c13d3161c8d31aac1edf","impliedFormat":99},{"version":"86b484bcf6344a27a9ee19dd5cef1a5afbbd96aeb07708cc6d8b43d7dfa8466c","impliedFormat":99},{"version":"d02f82a00023e430371b3125954e6f7075ca7018289259358a2fcb97fdda3875","impliedFormat":99},{"version":"6ea2b54c8a3a44fc40facfc7d539911519a082549d9741f21df5d2016a9cb1ae","impliedFormat":99},{"version":"fd3c309a1cbc2468abcb518b321d52b91d5d46cd2670d7fc78e22d02e8d0af7a","impliedFormat":99},{"version":"b4083c6602ebee2c960bd07c29b7984fe7df08d6f614b584d72039030baed13c","impliedFormat":99},{"version":"6d63ddef89c73cd1493941e55bd3c5229b6265cd92e1f00fb3861d7f43b687a7","impliedFormat":99},{"version":"57ec00a8b4656cd36eaeec2279708530d9e490d37664b6ba4cbb64df81999f56","impliedFormat":99},{"version":"4e251317bb109337e4918e5d7bcda7ef2d88f106cac531dcea03f7eee1dd2240","impliedFormat":99},{"version":"cf35c1b8170b6103be66a3c90b7a87ba52b6de8da976125440c2cc4f8e291080","impliedFormat":99},{"version":"1a67ba5891772a62706335b59a50720d89905196c90719dad7cec9c81c2990e6","impliedFormat":99},{"version":"a6f2aa46ae07572e230088a84716dbf65bb0300d8495e6229ec41ae1f7fc862b","impliedFormat":99},{"version":"65f05148b8811fbffd2141719523731cad7b1130ad068174c47439f11d9d6723","impliedFormat":99},{"version":"8c94de87153ab722fab8b214bc15f33e64f1d3a98b93c465c5d34530a2dd0826","impliedFormat":99},{"version":"350ca6fc8aa030bd52c0608a4804b20b16a6c5fcf5c7a3f82368062b532dd27c","impliedFormat":99},{"version":"4de7f7ab3967f80644ab9ce8c03b5f55a64e55ba8ba157cd837f1789ff2e3dd3","impliedFormat":99},{"version":"0bd80d861af00b2462f8ce1bce1063d421699686818df9de3d1b66ca31444077","impliedFormat":99},{"version":"4af74a8e255575812dfeb09390e0cebc8a6aefaec59a7985478106f8e4a3fb1d","impliedFormat":99},{"version":"62d8e5542c212d735283d4b76e49c78bdf8b50857e85c075610748840f923b3d","impliedFormat":99},{"version":"c20844130c581429d0efcfbc8ba28f8278a6d4c70b306dbf66662153f0dd9997","impliedFormat":99},{"version":"dd9694eecd70a405490ad23940ccd8979a628f1d26928090a4b05a943ac61714","impliedFormat":99},{"version":"f2b2d651e19a6b633a609a5b7cd35f8c783170365d437bdc6961821bb15cedc2","impliedFormat":99},{"version":"5583ba15afdfe7de6d67a68ef9af8d8b809c470a794f7db796e1ff0a4d473e91","impliedFormat":99},{"version":"892abbe1081799073183bab5dc771db813938e888cf49eb166f0e0102c0c1473","impliedFormat":99},{"version":"a8289d1d525cf4a3a2d5a8db6b8e14e19f43d122cc47f8fb6b894b0aa2e2bde6","impliedFormat":99},{"version":"e6804515ba7c8f647e145ecc126138dd9d27d3e6283291d0f50050700066a0ea","impliedFormat":99},{"version":"9420a04edbe321959de3d1aab9fa88b45951a14c22d8a817f75eb4c0a80dba02","impliedFormat":99},{"version":"c2206881769e310ed6ee0e75169ee723041521c331d8a65e305970a5cbf0248f","impliedFormat":99},{"version":"b35c9597a1e8d54116f1376e3e49c0bb530edac7e822dbb3d46ed880d741da3a","impliedFormat":99},{"version":"0e6ff336de666474a63548fda7ed359c68137714184a2131bdf9fdd726d94a08","impliedFormat":99},{"version":"0bdee1b9448bc7f2bf440f66602f69553c22847b6b1333f438ce5ce39a05bbea","impliedFormat":99},{"version":"8471fc44113f5c8b80c3e6182242de8b1fc17a9c0e868f0ec1a7ba5de7f742cd","impliedFormat":99},{"version":"2825636a894458e5d7115283949a327e533ba46c788db09a441d77ac530d0833","impliedFormat":99},{"version":"94da2911acb065a3d5496423d4aa804890aed735f98de3f62125ea4dc48839f5","impliedFormat":99},{"version":"a7c956fa890533715f3b6195e65b45a212e78b8cb4bf559fa0a659825a5e69b0","impliedFormat":99},{"version":"13f1c3aaa368a71e6bd9a7150207194970ab92b43070b4c7d060510198449631","impliedFormat":99},{"version":"347a2f317e8414f1759000d1553bd5e086029c3b68da465005bb9f963374fc84","impliedFormat":99},{"version":"a6152cbae5b1b175101bfd3c6d1061db855775871f9cb9f668e0a2812263d316","impliedFormat":99},{"version":"ec80dcccae5635f965470f9514d2a99453b2621c8030ab9ea25674d11b4b1b65","impliedFormat":99},{"version":"8084d83010b476ab6a26c3ea5d8f4944373a5b886837d3c77ea1b63e629b7625","impliedFormat":99},{"version":"3d49a25964b39d9627d56f68aa273bd104dcdbb72848bc655921b76245d3b576","impliedFormat":99},{"version":"884a9e1e8673451330ffc5ee984f45d67521ddbe1bd242a6efff761a6775b916","impliedFormat":99},{"version":"ae0d910a0f66a5a26c36ecf3c946f96aefa7c8127f39f4350a300286a1bca11a","impliedFormat":99},{"version":"e53a8b6e43f20fa792479f8069c41b1a788a15ffdfd56be1ab8ef46ea01bd43e","impliedFormat":99},{"version":"ada60ff3698e7fd0c7ed0e4d93286ee28aed87f648f6748e668a57308fde5a67","impliedFormat":99},{"version":"f65e0341f11f30b47686efab11e1877b1a42cf9b1a232a61077da2bdeee6d83e","impliedFormat":99},{"version":"e6918b864e3c2f3a7d323f1bb31580412f12ab323f6c3a55fb5dc532c827e26d","impliedFormat":99},{"version":"a77730d8d0fd366716d61d0ebad60556c814ae8ada840b3904f641f91de7f898","impliedFormat":99},{"version":"2ab456ffebd3fbab2b1c666b1254c4b0360aa9db0bd913eeca3f672168aaa41b","impliedFormat":99},{"version":"0d326cdcb63183edea6ef1474ba26b91e0a79672acabc6f646ad72749d9baf8e","impliedFormat":99},{"version":"e28f118aa019c8b7b821cc79db844f4b087b5048f7729e9a0e6244c6ef313b34","impliedFormat":99},{"version":"77ff2aeb024d9e1679c00705067159c1b98ccac8310987a0bdaf0e38a6ca7333","impliedFormat":99},{"version":"b53e3dd856e87be29ecd7908781cc13efa21f11d22c9177675c2d61f6ce6c397","impliedFormat":99},{"version":"c31a7bdae416090c583cf9e8712b303b1cb160421b8c796571dade824a1d6bc5","impliedFormat":99},{"version":"1e5f1c97a1841ae35d248a79c51535432898025ef25981e56d5a414e6d82a1f9","impliedFormat":99},{"version":"d96a8ddd47af90e9bcafb0cd6dbd5d7cf64f985d057d044e0ffda12c8e87bce5","impliedFormat":99},{"version":"f981ffdbd651f67db134479a5352dac96648ca195f981284e79dc0a1dbc53fd5","impliedFormat":99},{"version":"0325f783af69bf51958af9a1b99fbeabdcf981553da0aa9c6ae828d814e4b4f0","impliedFormat":99},{"version":"bed2fd42724c6bba5312c9d7a1dbb0483c5704971f09d1a1e9c94bec45783208","impliedFormat":99},{"version":"537f78abe6221683b16003153740ab211f5d728a8b789cba7ed002dd8557d84b","impliedFormat":99},{"version":"4880b66a85ad652fbf2a8e64cd8bfc4b6c3a1a5fa826e32fb607bf91f3f7db96","impliedFormat":99},{"version":"3fc21f30a4737d077affcdfa522bfa6dd92faa3b1ad30fcdacb68ccb14c552d2","impliedFormat":99},{"version":"b2bfebfa051743b00bef1261f2afc0ac1ff43eca30f1d11de7cfc9cb2e80f06a","impliedFormat":99},{"version":"5d3e3d871a9d42e6d6f742fe8fd826ba124eeb7afe5b9f7b54fb271c199288cc","impliedFormat":99},{"version":"7bc399e39e93a7e31899ba8ab4ed277bacd0be84dae4ae204b256cc1be3a0529","impliedFormat":99},{"version":"4b8354907986a84ab7259b3dcaa14e71167a7ed3369362b80a7cae26f70db519","impliedFormat":99},{"version":"ff625ae33e645c92f0000813a68b729b5c22d873c292dfe94171a4580ab179a7","impliedFormat":99},{"version":"cc64f47453ab4f2d9b550dfbc709c20b19a7438fb9663c1bc5d20d33a68f61d8","impliedFormat":99},{"version":"a157730659ed403db3f2fac26062796f5197e2ae0c13077123aa335bee0cad11","impliedFormat":99},{"version":"29c4260365fe338e0e5b5c832c70bb8214c19c0468614a862a1983c16d72a740","impliedFormat":99},{"version":"f18e1383a1fccf98b77732e8c2928ecc8ba7ac79e4a90b25eefbdd2a37e7e6bc","impliedFormat":99},{"version":"92576d2f63fb97e3b20650ebffc9ec95d3f2de5d561b8c7028dd0efed68c6bb4","impliedFormat":99},{"version":"0e09e6199947604e316a992fdf558197471c52132f7a9ff1430a6481966a9337","impliedFormat":99},{"version":"08860cec3ae0cc20563e43fb1815e75717d7cd5d420f68f3fd2dcd4d5648427c","impliedFormat":99},{"version":"03ed68319c97cd4ce8f1c4ded110d9b40b8a283c3242b9fe934ccfa834e45572","impliedFormat":99},{"version":"f398e3d16a48be9f563d76f3c40401edbc4de5602ba98965686daa8f1ec23da0","impliedFormat":99},{"version":"c69ecf92a8a9fb3e4019e6c520260e4074dc6cb0044a71909807b8e7cc05bb65","impliedFormat":99},{"version":"188adead34dfcfbc5117b6191b8cfed55bfc81c41fb8bad2f8c416b24cfbd9bb","impliedFormat":99},{"version":"1d54f2ace0d19eee1f6d94f9e2aae51b1acb25dab78abf4070dceac695164534","impliedFormat":99},{"version":"890a03111402e49fb9fdd6d4bfe49b81a6a2ec2c8d616bb64577d72a3785e689","impliedFormat":99},{"version":"fcc8e405d8d264f67565915df87eee70bc38405d4f88069a6d4a64b45e2ddf14","impliedFormat":99},{"version":"1f0ee5ddb64540632c6f9a5b63e242b06e49dd6472f3f5bd7dfeb96d12543e15","impliedFormat":99},{"version":"f62a858f7a871557ccab4ce3a4d46876933f4a6ed3615ada505a3015a5fc74a9","impliedFormat":99},{"version":"c3ee10cd9e7c623d10541162b3c2b40f3f0a313402b6b8a98a3fccf05195a1f7","impliedFormat":99},{"version":"68434152ef6e484df25a9bd0f4c9abdfb0d743f5a39bff2b2dc2a0f94ed5f391","impliedFormat":99},{"version":"aa26815cb02465239f83d3f7442d670864fdceb5e347fd64b98d876b75a7f6fd","impliedFormat":99},{"version":"88094b658abd5ca62b06d340d5f65b3082655bbcf169326afe4ebf18d82ae20b","impliedFormat":99},{"version":"f9e10c6cd469de7ccad5b10e56eb9c07ccebeac62a8cea5f24bfa6ee37cd7761","impliedFormat":99},{"version":"e07141d5382152031e5909bd837e9b39634449d999e32af0e4fe4b734ff3249f","impliedFormat":99},{"version":"ee80e60d2976a80ee8cf05e04b9510ca6de6a371a2953833b2dec4eb7e6a7524","impliedFormat":99},{"version":"d49d31440da6cf71e0d2e8a3c7c27e3dd3b3df46ae9fa09ccbb2e067feff9503","impliedFormat":99},{"version":"280c0c63f1f34b1fa24efcbbb8bc8e0bf3d207b161ac0e1d9cfd3d7b3744e5d3","impliedFormat":99},{"version":"1848ebe5252ccb5ca1ca4ff52114516bdbbc7512589d6d0839beeea768bfb400","impliedFormat":99},{"version":"d2e3a1de4fde9291f9fb3b43672a8975a83e79896466f1af0f50066f78dbf39e","impliedFormat":99},{"version":"1845d748ca677f7208e4e54d5b4589b208a0def7c7e1ab310733ace618b49177","impliedFormat":99},{"version":"c3fe453362d2811f629701a3a64a3e4b155b755c053979319831dd34b9fef36b","impliedFormat":99},{"version":"88ae713e38e8c0847696adede4732f78842542dfec69482898d9415d714b253f","impliedFormat":99},{"version":"fcc1102012adf4de7111f3561b99f2145a2489bbeb7cfeb6ea7faec146b7ab28","impliedFormat":99},{"version":"98bd8ca263234b5e10ed08e748ddf85d145c38e663d036abd7a7fea1e65cdb8a","impliedFormat":99},{"version":"98ced63517178a7454a3d316e7cc8c88bf0013efa1f3ac0da9ab85b491943a7b","impliedFormat":99},{"version":"26b5b9b6f2d6d8efdd491a4c6230a7438f569d430b8cd8e4dcc353d0390b32a1","impliedFormat":99},{"version":"6addbb18f70100a2de900bace1c800b8d760421cdd33c1d69ee290b71e28003d","impliedFormat":99},{"version":"37569cc8f21262ca62ec9d3aa8eb5740f96e1f325fad3d6aa00a19403bd27b96","impliedFormat":99},{"version":"a3a02af6bf055a1c70671eb327990588bdd005ee05d8a68ae38ce74b9370c9c8","impliedFormat":99},{"version":"5519711f89da62881065b3b045316f75ca04d713667d7507102e9a8a55d0ab69","impliedFormat":99},{"version":"8749361478f75470618edde2955ceb9503bd6b587804a22c39ff03a345772f96","impliedFormat":99},{"version":"3cf67fb81b084ade8c59e682a0ff4215af6f339e7d16e2ac559344fb39c6c1df","impliedFormat":99},{"version":"ba2af5a33443da91f980e9f7fc75ebf4febc8f1023426f4babd898cac69ab02e","impliedFormat":99},{"version":"3753bc72141cc5d39b902b71c020dbd3e93ab43e0e215fd9715d81c0eca377c6","impliedFormat":99},{"version":"178c9db1a10e3166f78925a7598da5aff848d39b03c6c0f10f83c352c3bbbf1c","impliedFormat":99},{"version":"87f5e8d7fd03cb91bf0edb73fc3c4680b7154ac6c55e0c86c918262790d93928","impliedFormat":99},{"version":"4a87226ed9827b9a716c5378b6792039fc6452c1728ea8b1a0a87f355f0652cd","impliedFormat":99},{"version":"e79e530a8216ee171b4aca8fc7b99bd37f5e84555cba57dc3de4cd57580ff21a","impliedFormat":99},{"version":"b2b60017c317b8899e7ffdefea0b26a65bf158c3252f003bd67c470ce0af05a2","impliedFormat":99},{"version":"149aafa8a2667e7852a6d3650a73f870ee6a59d31758831d61847ae65944d500","impliedFormat":99},{"version":"c93fab83dcf272ef437af0d69e912d8de3ac2edc4c61fd01084b7f2bcfb9f5bd","impliedFormat":99},{"version":"4ce53edb8fb1d2f8b2f6814084b773cdf5846f49bf5a426fbe4029327bda95bf","impliedFormat":99},{"version":"d2262802e354ac9561763b2ba271d3a8659bc625dd96ae66fb7793f650556541","impliedFormat":99},{"version":"3f3cf725b6433be4973f5c416bd5c0f4806d80143ef2ad7f1e5989d4ad1e079f","impliedFormat":99},{"version":"a4ae532127cb8bc37e70b25c791d540045aa8cc8efd6cead4f4a2581fdf555df","impliedFormat":99},{"version":"b0d52634f58f2f492190224b83b8c33154f4a109f288b83955e46f2bcff94206","impliedFormat":99},{"version":"5e88ee54e944f85569d8b2f60126bf1eb7e9ae3615b5b664bbf232ffa09d5b25","impliedFormat":99},{"version":"c8530af67f5c25dec3a19fc9e58daca10898c4b984feb58865aa2fb09895697a","impliedFormat":99},{"version":"505a24dccd8bfd250a9715caaa4ce191bc32f006ac9cffd5165e69d55a8b77a0","impliedFormat":99},{"version":"5ecbda647e10013c76485f88f667448219705cbe94cbeab65dd2be9d401ba3f1","impliedFormat":99},{"version":"8e6b58e09d587899fd6496494e4ac181f15e352567a9ea7a7bddcea7a7339a07","impliedFormat":99},{"version":"c4324eadfa94e3c745dbade89ad0329d9f8729a70a6bd8c82d816f70d397d0ff","impliedFormat":99},{"version":"1502a23e43fd7e9976a83195dc4eaf54acaff044687e0988a3bd4f19fc26b02b","impliedFormat":99},{"version":"f4068c36e43e33efb9fc2c58ed9e133fc3cf11584b26bef613df2e091ae4386a","impliedFormat":99},{"version":"54563e5c2fd984e23bdcd70783572d936b837e43f35632d3dd0decd1d0504c82","impliedFormat":99},{"version":"f26a747621a82d625547b6ffd977472ad2fdedb25c2fafbba8dbfd99be46add9","impliedFormat":99},{"version":"cd8536cfa229f8c86d44109f3a7127d3fe0364527319d09547da4cbe0ee1b73a","impliedFormat":99},{"version":"cbde0ed7818e1d6822b288a390057d2daf8b75d12b9a20a5c50b3521610e2217","impliedFormat":99},{"version":"380b4fe5dac74984ac6a58a116f7726bede1bdca7cec5362034c0b12971ac9c1","impliedFormat":99},{"version":"00de72aa7abede86b016f0b3bfbf767a08b5cff060991b0722d78b594a4c2105","impliedFormat":99},{"version":"e883b13fb3c8b71182e2028119de184e5cbdd9206ac19d852d58e3313eeca7f4","impliedFormat":99},{"version":"addbb1c7e385c98621870d24c7ef46dc3b9a66c63dba5d85a5439c4fc19e661b","impliedFormat":99},{"version":"03b7d82eb96f279b9fd2bfacf8318744dae6e8009a1af8489daf2dc6535bd9d0","impliedFormat":99},{"version":"966632b5a5bb1cd9f00d5d10a62c92e6d9150a27f4d9df3556f85b5c37884123","impliedFormat":99},{"version":"c396fa831e0dba3dbe29301b6166d79c885ee132f4562e90f6e938cb6f5645ce","impliedFormat":99},{"version":"3c1403ee559e4cd41af82947707321ede245d7cd4485777a53bf5785835adf1c","impliedFormat":99},{"version":"b55d62d770c71e52b44d0a4ed1eaa494681dbe26f30abef7145b3d9daabe2946","impliedFormat":99},{"version":"8ccffc5e457e8c41c0fb532335739f568a87c56dc59f01b1f7e61a127e0b58cd","impliedFormat":99},{"version":"955d32f45e1efe8484a88301ff6b12fefb0f3a43e8757177c8cb02ae481ddc6f","impliedFormat":99},{"version":"2b947a180301540d535664a520c96575a33d9e0cc3e912ad023f446f861fef9f","impliedFormat":99},{"version":"19097531864528184d387945ecdb8f7e12e0b253e0a3dbf00db8f972b00c2a6c","impliedFormat":99},{"version":"43199cd23948363fb37a45d3a158341384217a981562619f7705d39be03d31e9","impliedFormat":99},{"version":"ee6c401ea86c4cbaa2c7342a0b1723ae616048e966c7612b0d7066ec3f950fe7","impliedFormat":99},{"version":"6f7601119c447358e8ff8fd3d1af36a62b8a0296ed6c29538e5481648b937185","impliedFormat":99},{"version":"0947351f22dadf13a700c06cfdac9a586c2d4d7904248de56888391fcaf5ba19","impliedFormat":99},{"version":"a7449a56f6179bfd3326e7802ef53769d792dd8e09571a8e30101888d5adafef","impliedFormat":99},{"version":"97cbd360b12ac778c4ea6d76d1cc19d7356a7463656b423f073b11df97591a63","impliedFormat":99},{"version":"f1ef390de3fafbaa9d6d01b5d0f88294552166fe965fcaa1abeb9b42252eff51","impliedFormat":99},{"version":"9c608fb8849a9c271935bbcf702a59242a0463dd4d71f6d371f083c4ea81fc1a","impliedFormat":99},{"version":"e68d8c5a46d3a67665b76a656cfb5682f0000f095c29a2e877689d8f886feac4","impliedFormat":99},{"version":"fae9363df0838d353a7582bc44cf538ec52753d493e656efaf608721d8e09386","impliedFormat":99},{"version":"aea0e96f318cd8af050e71eb274fb4ea504583192533831f024bdc15acad9c0f","impliedFormat":99},{"version":"acbf13be7611c8edf93fbd3ce586e0956e3ebf79a91b120ffd15bfd241b48c89","impliedFormat":99},{"version":"1931281c732253669af6b31cf53cc949696ebed1fae249375f8897984ffbcbc8","impliedFormat":99},{"version":"3fa5555ec7cd38935bcba24974b0f4def8822222c2cb39fa51be8eafc30a665a","impliedFormat":99},{"version":"68cc9b9173b77641a3b0b560a805c3d2d88042765b9c0c5452d43f657307316b","impliedFormat":99},{"version":"2ea70047cd289b2c353849d7364b1b2427f23ab0cc73ca87155b6ac014fc85b7","impliedFormat":99},{"version":"13414acb2579ecc5d8d16e59693c540510a23af58840046b564862c893cdf54d","impliedFormat":99},{"version":"d3aba181129dc79d950f45616f6ff2c11b80057b226cfe328d36e1e2a6bca0d8","impliedFormat":99},{"version":"224ae4c94ea223b9712dd0e68561ca8b7b8a2d21413c6becc141f26d9cc47ab8","impliedFormat":99},{"version":"8446a1603e6c88aae28e5c16baea45c4acd0d6a4c1a38a3543dcbcf8aab2befd","impliedFormat":99},{"version":"f7e96ea986e74dec1ac7b33a1a9ee0860c1c09a872d7f44678f00afae8ff5b3d","impliedFormat":99},{"version":"9afdbff962338531162a4c1e4d4ab00e5f39c8fa5ff2105dd5bccc974238dff8","impliedFormat":99},{"version":"db08c1807e3ae065930d88a3449d926273816d019e6c2a534e82da14e796686d","impliedFormat":99},{"version":"c9e7eb59820f8c22a0a6da72367772cac71386493998d564f3f2c6e76fb6280f","impliedFormat":99},{"version":"9e5c7463fc0259a38938c9afbdeda92e802cff87560277fd3e385ad24663f214","impliedFormat":99},{"version":"fe1884d16a134c0dad72c88070d1f875ed50e4bbd37b14977e2255bcdbeabf7b","impliedFormat":99},{"version":"4e5e139fba4da00bcb86c1142527fa1602dffcfb938c61857a63cad04d4872d2","impliedFormat":99},{"version":"3f4a5512615a10bc1ced95b726be40375f84801eec2736e8642e0f377fe3e0a4","impliedFormat":99},{"version":"e2bbf393de54a618ee6d06ea390a9277f8aa6c1360782302a8020a6017d1ad80","impliedFormat":99},{"version":"373835afdc3d6443f05e2636ed274bdfe4351045bf6afc2ddbcd4a9c41db39ab","impliedFormat":99},{"version":"4ba724e66bdfc294cc8e87499b42f63cdc3b354122705d8d2c7e1371fecc3e93","impliedFormat":99},{"version":"b79e98f1f013fe611b0076d6628e0766c3fd7ceff79fff061b100563486b2feb","impliedFormat":99},{"version":"5aa8b50a334af93ff1bb3da686178871a7e27e03791d07fd6107980076ddb90e","impliedFormat":99},{"version":"62423031f8a01e15a8a7141b5786fd450d57b6a921032366c09c81d11e167306","impliedFormat":99},{"version":"7879aa1a06fd399f58482958af0b7c4eb6410131d20d07d3699258013d8ff45e","impliedFormat":99},{"version":"25c1448dafc60e4ee55022d86c9deb322b669b93743a01f415c7f3974e5eb265","impliedFormat":99},{"version":"43ac78f8e0c5defecc2e501f77d1e61d078c79975af401702c16b9828ab12ca8","impliedFormat":99},{"version":"ce7fb4fdf24dcaebb1fdcf2f36cf954da3b53d8f06fca67b89ef50898eeca489","impliedFormat":99},{"version":"fb83d38e7427dd1c7b1e63e2445d99af8f4544bc2d933ba2ecd6ddc87960e3a0","impliedFormat":99},{"version":"dcab5635cd67fbabb85fff25d7cebbe7f5ab4aaecba0d076376a467a628a892d","impliedFormat":99},{"version":"c8698ce13a61d68036ac8eb97141c168b619d80f3c1a5c6c435fe5b7700a7ece","impliedFormat":99},{"version":"7b90746131607190763112f9edb5f3319b6b2a695c2fa7a8d0227d9486e934c7","impliedFormat":99},{"version":"269b06e0b7605316080b5e34602dee2f228400076950bd58c56ffad1300a1ff1","impliedFormat":99},{"version":"2000d0ab5e4203f1909f85426212757fbcd94a0e91cfb4a47d44c297a8545379","impliedFormat":99},{"version":"73e7fad963b6273a64a9db125286890871f8cf11c8e8a0c6ace94f2fa476c260","impliedFormat":99},{"version":"8496476b1f719d9f197069fe18932133870a73e3aacf7e234c460e886e33a04d","impliedFormat":99},{"version":"3cb5ccb27576538fb71adba1fa647da73fae5d80c6cf6a76e1a229a0a8580ede","impliedFormat":99},{"version":"e66490a581bea6aeaa5779a10f3b59e2d021a46c1920713ae063baaba89e9a57","impliedFormat":99},{"version":"aea830b89cbed15feb1a4f82e944a18e4de8cecc8e1fbfaf480946265714e94e","impliedFormat":99},{"version":"1600536cd61f84efed3bb5e803df52c3fc13b3e1727d3230738476bcb179f176","impliedFormat":99},{"version":"b350b567766483689603b5df1b91ccaab40bb0b1089835265c21e1c290370e7e","impliedFormat":99},{"version":"d5a3e982d9d5610f7711be40d0c5da0f06bbb6bd50c154012ac1e6ce534561da","impliedFormat":99},{"version":"ddbe1301fdf5670f0319b7fb1d2567dc08da0343cb16bf95dc63108922c781dc","impliedFormat":99},{"version":"ff5321e692b2310e1eb714e2bc787d30c45f7b47b96665549953ccfd5b0b6d55","impliedFormat":99},{"version":"8a0e4db16deae4e4d8c91ee6e5027b85899b6431ace9f2d5cec7d590170d83cd","impliedFormat":99},{"version":"c6d6182d16bf45a4875bf8e64a755eb3997faeb1dfc7ef6c5ead3096f4922cb6","impliedFormat":99},{"version":"d5585e9bae6909f69918ea370d6003887ea379663001afccca14c0f1f9e3243f","impliedFormat":99},{"version":"2103118e29cf7d25535bde1bae30667a27891aae1e6898df5f42fd84775ae852","impliedFormat":99},{"version":"58c28d9cb640cac0b9a3e46449e134b137ec132c315f8cb8041a1132202c6ff1","impliedFormat":99},{"version":"d7efb2609ff11f5b746238d42a621afcfb489a9f26ac31da9dff1ab3c55fc8f3","impliedFormat":99},{"version":"556b4615c5bf4e83a73cbf5b8670cb9b8fd46ee2439e2da75e869f29e79c4145","impliedFormat":99},{"version":"51fc38fbb3e2793ec77ef8ffa886530b1fed9118df02943679f1c4a7479f565d","impliedFormat":99},{"version":"03a4f9132fe1ffa58f1889e3a2f8ae047dcb6d0a1a52aa2454de84edc705e918","impliedFormat":99},{"version":"437dd98ff7257140b495b4ff5911da0363a26f2d59df1042d6849ecb42c1ee84","impliedFormat":99},{"version":"8345eadc4cceddc707e9e386c4ad19df40ed6a1e47f07e3f44d8ecf4fe06d37f","impliedFormat":99},{"version":"2df69f11080a8916d3d570f75ddf5c51e701fc408fd1f07629c2f9a20f37f1ea","impliedFormat":99},{"version":"2c19fb4e886b618b989d1f28d4ee4bee16296f0521d800b93fd20e7c013344fe","impliedFormat":99},{"version":"61085fe7d6889b5fc65c30c49506a240f5fbb1d51024f4b79eef12254e374e76","impliedFormat":99},{"version":"aad42bbf26fe21915c6a0f90ef5c8f1e9972771a22f0ea0e0f3658e696d01717","impliedFormat":99},{"version":"7a504df16e0b4b65f4c1f20f584df45bc75301e8e35c8a800bcdec83fc59e340","impliedFormat":99},{"version":"37077b8bf4928dcc3effd21898b9b54fa7b4b55ff40d2e0df844c11aed58197b","impliedFormat":99},{"version":"a508144cd34322c6ad98f75b909ba18fa764db86c32e7098f6a786a5dcca7e03","impliedFormat":99},{"version":"021bf96e46520559d2d9cc3d6d12fb03ca82598e910876fdb7ee2f708add4ce9","impliedFormat":99},{"version":"44cbc604b6e5c96d23704a6b3228bd7ca970b8b982f7b240b1c6d975b2753e4c","impliedFormat":99},{"version":"7bfb0450c4de8f1d62b11e05bbfdc3b25ccb9d0c39ae730233b6c93d1d47aea2","impliedFormat":99},{"version":"51696f7c8c3794dcf5f0250f43eda013d588f0db74b102def76d3055e039afff","impliedFormat":99},{"version":"1101402feff3c606f37fe36028b998e0da1b00eef9d039275d01390f462d1d69","impliedFormat":99},{"version":"39d8d14a745c2a567b8c25d24bb06d76dbffc5409ab1f348fde5bc1290abd690","impliedFormat":99},{"version":"6d9aeea6853ed156d226f2411d82cb1951c8bb81c7a882eeb92083f974f15197","impliedFormat":99},{"version":"1fed41ee4ba0fb55df2fbf9c26ec1b560179ea6227709742ec83f415cebef33e","impliedFormat":99},{"version":"d5982015553b9672974a08f12fc21dcee67d812eeb626fcaf19930bc25c2a709","impliedFormat":99},{"version":"6ad9d297c0feca586c7b55e52dbd5015f0e92001a80105059b092a1d3ecfc105","impliedFormat":99},{"version":"13fa4f4ee721c2740a26fe7058501c9ba10c34398cdf47ad73431b3951eea4e2","impliedFormat":99},{"version":"3a9b807bd0e0b0cd0e4b6028bec2301838a8d172bcc7f18f2205b9974c5d1ecc","impliedFormat":99},{"version":"8c5b994a640ef2a5f6c551d1b53b00fbbd893a1743cbae010e922ac32e207737","impliedFormat":99},{"version":"688424fbbef17ee891e1066c3fb04d61d0d0f68be31a70123415f824b633720a","impliedFormat":99},{"version":"25eafa9f24b7d938a895ab15ed5d295bc000187d4a6aa5bfd310f32ba2d4eea5","impliedFormat":99},{"version":"d9df062c57b3795e2cae045c72a881fb24c4137cea283557669d3e393aa10031","impliedFormat":99},{"version":"72f4b1dc4c34418935d4d87a90486b86d5450286139e4c25eeee8b905d2886b2","impliedFormat":99},{"version":"92efd5d38691eece63952e89297adcc9cb4c9b8878d635c76d5473c20489fd4d","impliedFormat":99},{"version":"a4b4d0ac8882e2d857f76f75ca33694d315715cdc19d275ac37e9ef2a8d8693b","impliedFormat":99},{"version":"e185a44b6e46dc9621704f471ed0a39b56ce5b5027dbc81949b67cbcb59da7d0","impliedFormat":99},{"version":"5102e449a65c1f816d6ac1199b683f9ddf21b107f4eec5ce8316e957350d1b8d","impliedFormat":99},{"version":"73397fcaa8afa955ae1ac27c8ff5473418195ecacc90b275abbac0b8099b7e91","impliedFormat":99},{"version":"3a8b3e4e8ee1784e46e8151b4b0717b8a22e045b20257ad4491815f7cdb3ab22","impliedFormat":99},{"version":"823a190056fa78cfe888a24a0679624cfc36cab0ce9cfc875b1856e8a535bc9f","impliedFormat":99},{"version":"28b5d252374af23b8db3d80154078d76ab4af7635d6f20ec892cf86651bb5f52","impliedFormat":99},{"version":"d6d72de42c0a81f3d22b71fca1ff348f4bc3a50deb9382ebdfd71214794ec58e","impliedFormat":99},{"version":"1a4fae85bd066e1f57250ecd3be398f45c0ee35fd639d1a91f2b816ad37cf4db","impliedFormat":99},{"version":"e8065cc0b1c821d3dcd8b045a03412ab03e6002bbbfd5b379e0a8e3624c1a2f7","impliedFormat":99},{"version":"8fd5a1b91763e73f5d30ecdfe66da4400b6b6c18af619e7f7230d72e49959935","impliedFormat":99},{"version":"be02a1d8cdd4905919e1a26ce668a51e726f381ed12e8f4236f000b9f8ec126b","impliedFormat":99},{"version":"8dd4181760665479df5a7b45c09142c96296fe9dee0f7df9013408b909c508bf","impliedFormat":99},{"version":"3ea52decded1435d9b57b183b74618922bfc8ef0ac6717280e5657e2a134cd50","impliedFormat":99},{"version":"3828353b7c352649166506cefb1bc4de2d98591796e4b7afda4650eadefb3c2b","impliedFormat":99},{"version":"c6fb620f7d3160662e9bae07262b192fd257259220c46b090c84b7e7f02e2da3","impliedFormat":99},{"version":"2a7bd12de58b9b8cb10dabf6c1eb933b4d4efe1d1b57dcc541f43061d0e0f70b","impliedFormat":99},{"version":"0e8e5b2568b6b1bebacc2b4a10d84badf973554f069ded173c88c59d74ce7524","impliedFormat":99},{"version":"f3159181773938d1ecd732e44ce25abe7e5c08dd1d90770e2fd9f8b92fab6c22","impliedFormat":99},{"version":"a574154c958cdaaee26294e338024932d9cc403bae2d85ff1de76363aad04bbe","impliedFormat":99},{"version":"5fa60c104a981a5430b937b09b5b9a06ceb392f6bb724d4a2f527c60f6f768b8","impliedFormat":99},{"version":"006dabdcdcc1f1fa70b71da50791f380603dd2fe2ef3da9dec4f70c8c7a72fd9","impliedFormat":99},{"version":"8fa1dc3b4a2f43c688f6f4cf1721e1d26d641ef322c14adac867ecfa41aa2109","impliedFormat":99},{"version":"e351fc610efbbdbe1d92a7df4b75e0bc4b7678ee3585f416df1e0cc8894d2b20","impliedFormat":99},{"version":"33c06a102df241666a34e69fe5f9a6808e575d684fcfcf95886d470517a456cd","impliedFormat":99},{"version":"404818f4f7cfc01054eeb0a3568da67a02b67b9ed375e745fdc20c2c22ad9f9b","impliedFormat":99},{"version":"40d820544765762c7770eba3b12c326f01d787fc3584b53cb20ce5dd813d9946","impliedFormat":99},{"version":"586f4a88fffdfa6f4d2e2fae23d55c946d4aad8c81573aa851b18884b185b67e","impliedFormat":99},{"version":"ad4b3aa66c7d3c3e7a5fb2126ca0aedafcded91b2d175fca89f50fcb6d3a1258","impliedFormat":99},{"version":"8e012265839f6acdd4a3321d7fe476c258f49a85ffe15645c5352434b68b6dac","impliedFormat":99},"f5cc36d5619df90c402cf8e7c31a37f8d3e570168496ef9dee29a0c754d1ddd1",{"version":"ea2aff3cd79f1bc08528871b2ab517ae27de6a7402573bdc00c3a16675ca4891","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"d34e7250e04a4df7be85e8ada00cb7a02eb9042a47ef66b9994b46af4b063f55",{"version":"439fe8c642a0ca3f0fef0d8410a7087fcdf7294042ade04fbfa285be59818726","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"8069b11c537824dad0d3578502bf2a2197ca61042d726562a4fa5fb62b83f6e9","signature":"ea51c820d0a14f9accf95fcd3976455f60322b95a5aa490c6f669ca3f370bb69"},{"version":"1c8516eee2f6d7c7cfe4c0f6ff27fec3a71f4f879b3fd8bab5a369795cbb8116","impliedFormat":1},{"version":"950aa6403b976269ebb3e0dd4c7162e4c7652e07993de0a7b1414511a71257cb","impliedFormat":1},{"version":"c8b43ee8063949a59d37aeffd48fcaa756cf271c313bfec11dfdde15bf58fe85","impliedFormat":1},{"version":"243aeeb39ef9a78a548318798e4d72acec54b5ded559fc731b83f8fcc829f921","impliedFormat":1},{"version":"5f9a45c42848fe4e9b95219e8933acbb6699d1b8563dc4516a458fedc0f4f632","impliedFormat":1},{"version":"bac6a388d308d38e6c2471d5f788049e30fe769bd41bae9a6ef09e03df1363da","impliedFormat":1},{"version":"4d930f93b3e8b89db9e31ad41999073eedc639efe8ef13e6c7a3d461ab614eb3","impliedFormat":1},{"version":"8377b296feb914f2f8be0f439aae110b3797f2836256c77024ffa5a9ad4b0e2a","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"875b4251f606756bc96140763ac3b23d25644fda2ac08390f15c666fa4f15cab","impliedFormat":1},{"version":"0430fdb63d75ab2ba5c9d40a74aed94c1e16d78eb37ec2e8fc5fc2a92c086bfd","impliedFormat":1},"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","2c5e2224375982d90c1ebcfb814977aa52ebb26912980e59f9d18a2ceeae4d1d",{"version":"6137249ffba67bb879fe855487264b2027d9a6ba1d893664ae497d5aef7867a9","impliedFormat":99},"a53aad593412e12d3619170bcbcf258b5886e9b56539a9eb87926e330c226fd5",{"version":"25067a844ad4063c1a5dddb8f431102ec63416ccd137a8729dbddf4670409a99","impliedFormat":99},{"version":"bcc7cfde1701cb02e9ffa887cee07c6a91be82977bcb5996b97ed71172c5866b","impliedFormat":99},{"version":"f65335e8e56180648ea77c48ef2768127423c6edf975065145ad8ddec6992582","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"e9a7457f5933b9795d1a67df9b0550ffa64576eca08362d0ebc01d69ea814687","signature":"214e4c1588f9aaf3c0554ac554b30e7c9437c0610e77d43f3ffdf88d28b0a2e5"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"91c571b7ca6774d5f1801be0d0c8014fafe41b8aec21d48d06a15389a4e0553a","signature":"e7310e34f6fe45ba773e513553b3fad21d6cc3c3bc0ed13c5330cb492a57dec7"},{"version":"cfea6ca1ecd6673353d7f0dfb6d8ab3476bcf1d471e12747a9162647149f09e5","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"11149d4d9aa7320f0fc1bad0d43e603948ebd8aa1460a6ebcfbe82aafb2ae3a0",{"version":"b272917e8e450066b8a02e611f1d78ea2c432cfaabe79a4f2b8dcac821808a5d","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"327d25a9366ea3dbfe44dc7ffe28ba0779fa1cfbc9e375b6a2e027418e6e10a9",{"version":"ca86da104dbaa7a19d10957e13b24697ad6efc852b0ab1879786ab7827474b76","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"80a518549bfa145c7ce48970af47bfdfbd1ad73cd8410826ed97f7745d3de540",{"version":"d9ae10ce59fddd87923a64d0a5eff208f4edd9cd76be978d1ad970ae2652a0eb","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"806836cb9f9fcdce4683a2225c0bd50a483015cc5b3fdcf8e76a97465cb61c01","24d931e28ae9ce90d806a824986c8fea178d7b0fc3eb333bab842421637eb123","18268cb7e0d984bf54ef0b3dee828b12f15f9f973c6313e1d929a87c6fa2e7f1",{"version":"e594d1619a737fed691ec3cc7d04339060f725bd55831a4d8619aaaa528eb492","signature":"572d330fbd1018c0d8c02617f61a65d950444a4c69ad9218ea3f8d975b1cee3a"},{"version":"bae7d4bb0100dd7aa986242ad0c0d4fccd47ced046d8247619ec5addf1ccac46","impliedFormat":99},{"version":"3723412824458f947ed83d54e5cf18bb0a3abd6a477ff27f790df5123911f4cc","impliedFormat":99},{"version":"30b0c4166fa0e157bab29cce21816262809db7d9a2d7b550b0addd8770131cb2","impliedFormat":99},{"version":"129eb3154d47765345b727dfad826dcf015b945518edc771fadd5b55fd79f8da","impliedFormat":99},{"version":"68865626693619204e5c4939bd162e4d83793af5875f2ccaa040fa9d520245f3","impliedFormat":99},{"version":"2ebc366546c04766343b893981c98cc98de25fd19780aa6e89a2b1aadae02d27","impliedFormat":99},{"version":"634780c64447037b36520420630445cba29182f98e5fb30a3be171151a98bac5","impliedFormat":99},{"version":"8ff732f7c6bbb546de0fc5fe67d9310cd0bf08bbc8b857f5ea9f8a7d1edd2091","impliedFormat":99},{"version":"e06ce656440ead1bea8e6fa218bf84461211f81557b4c91d5183f003b4a0a35d","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"82ff15c6e0680950987dc38e2e4c62a837773520d02b48789a4599dfae96e778",{"version":"65b5fba55089144f85242c9b8dc5f8df3fb0da67c32937e6e0d863e0df4f4348","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"55cacfbb2e6a6eaf78ea5d6b7bd1b9f52103e3d4ea32a9a6b7d1baee7163b4c1","impliedFormat":99},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"098307c46f47a9eea895e1d91390aee0d565ef3a9d2f82362725d36277e38402","signature":"8e1e61c0a476b11d9f8115b79d4a53e6cec71d7bd02bba5623386c2b50cbba36"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ecfc0e84b120ea61f787faf669c7cff97c3809b8712274ae854b302ec5db86e2","signature":"3d206519fc45307051d9d5c020e3b35e2879663b4643b326c957abe22148b718"},{"version":"7cd53c51290878d35d6d1a315b9bef20f9769e657709856ff40375520f500f68","signature":"7eebebbd3cae2f2943a20a7a7bf8608cbdb4bee91fa3b90f6ce3814e1702d3db"},{"version":"4e97697b6088d173988e6e69e50b964c83b8996815ce749ef271accb31492c5f","signature":"6548b5b8cf81d1489f7c3afced089e9fa61da275e2ff6f3c47eec7b7efb5b4d6"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"1f3a24bc4a1f9b9d72dcdc39e22b7dd67a8495c0789d77959be221a8f69f19e8","signature":"5b886ce8843525a2ea8b2b37be1c322325143f607b842ddb6e0ea043bb22b36b"},{"version":"554183bda5565893e5c710c71500d583c2ab16c196860eb9b13b8ec02f548661","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"7a79c73247b74321df0922b33739903bdf5de383ff6234086e0a0777bdf6c619","3923bf76259bfc0dbdd43d9029b6a7cfe142e44ccc67e5787f9f086c736d8781",{"version":"fbd898672ddf80191f9a914aa28b8ad3e5726f6524ff8d726754c26c790f625c","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"970853eddca7db3839a3fd729b610f89a62c5d50c48e17269ccfa0bfed8c193d",{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"d6ea22ba598413a17d2b9b8530e49259092eddd8c28d9ea8527f1e874840e00f","signature":"34e4ca3d1f98fb6a185faad21e22695d5a8e71e0b0eefff8edf9f6dfdad0c89f"},"2fcd3083eda67b1d8f25a93e54b2d7c0c0610fadd2fed3285e2e5226d014c5ef","af987692901a73c952fa29a7cc9b64f84d6e48298651d1a5eccb88a4b07e72d1",{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},"2d9190cac3fadf193441b0c3b3f7f10219da547396d6d3e1e1f23cde37ec1a36",{"version":"895bf1022884aac61cd430898e0d2b5df6ce6856e9cffe292466dd07cac859bb","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"066b566ebe603b637e7efe715dfe5f5e8a66b80da19c37eb1315825ead3e8112","9168e78eb236b0c0f0af5d1529189a766ae35d8b8795fc843769b30e2163a154",{"version":"8deb45f16a38e10d62e9146ba7bf592eea09561f25b73aaffa6a7ee83010508d","signature":"409d2ea20e73e4e0609d3459e7ed9e8268b3be348d127504e56dbba6b75f0934"},{"version":"290993efcc812186b5f18ef4e5d1a7beca5c6c47805288ea30d1ce9677e45af1","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"f64efc7054cc8d56db64ad07ea0be4b759f418defe3e03f968019a83c3dac369","e8df8e8a960a96af14c48f4140b23b206ad1e82e883d0fedd055914ff7998023",{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"18aaed245c5f4261a484d3d69240f4ebae7c30504bb0dc1511ba72684449d230","signature":"dc9a51d37637eb7dec11ae569cc47ae74a4634e495e15b96f86367a23fb9ffa7"},{"version":"bcd1fe76d7d52eb737a2cbe1193de524fd9ffccd56fc2f2a42adec7eb95acc4e","signature":"26a6c81bc0670e005f11fb0346fe825b5299a7ca1b1f4241ca72146d693d68e2"},"9fe4c00c003d0a91d767a92c4cbb66b740c4e7a46fd4305b7d0485725e2ea66a",{"version":"cd5f54cf9befa52e5a59657e488b39deffde52fb708512aaf509895f8ac026d6","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},"53dac11e1121eb7dfb7d62ed202ee749c058b33b541ff5d34602c297cb7d15c4",{"version":"5fe72395413eb2121bc71ddb5ec1c812e87c66fe88526f2d600df430158c3c06","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"bf36d757480aa8fc0ebdd903a4a4867d93971b579ee0ae6fadb0928b7d5f9939","signature":"b52dcd199c97746007e4589749483d8b943e6bac0bbf6a90c0b9c7be86f9b793"},{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},{"version":"508c774386521eff6ad288384601f7b297e7a40e6817af5553b3f31297b7a38a","signature":"420256067492534b8a171d109d097be6b9396ff0d65c7b7ed84550d18ea0d1c4"},"5f543ab28719bac3304494d8f80b967aa8cde70b4b3475146969274a0ea7fece","d91aa26f076f95929922559e1378a5442caab2918c9058719c0dd814c8d6639b",{"version":"ddd578018a259d1c494c834bdd8707769d07d1eb64f87f5217560cd2181b9e93","signature":"da14a67372982ca6e605fea114900b492b3316618581634e0ce72afbcb09baca"},"286139ae13b6bd2533dc52b9edd35f4b55fdbb551d150f6fea71371d626d6a29","4980a543ae6227079c803b59c8ad62af89e6f51d5778db5c73a6f18eb25f709f",{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb4105d0ea2ab2bfcb4f77ff8585691d5569c90ae15f4fa8d5ff9fb42b910b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"456fa0c0ab68731564917642b977c71c3b7682240685b118652fb9253c9a6429","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"2cbe0621042e2a68c7cbce5dfed3906a1862a16a7d496010636cdbdb91341c0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"a38efe83ff77c34e0f418a806a01ca3910c02ee7d64212a59d59bca6c2c38fa1","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"7b988bc259155186e6b09dd8b32856d9e45c8d261e63c19abaf590bb6550f922","affectsGlobalScope":true,"impliedFormat":1},{"version":"fe7b52f993f9336b595190f3c1fcc259bb2cf6dcb4ac8fdb1e0454cc5df7301e","impliedFormat":1},{"version":"e9b97d69510658d2f4199b7d384326b7c4053b9e6645f5c19e1c2a54ede427fc","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"81711af669f63d43ccb4c08e15beda796656dd46673d0def001c7055db53852d","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"bdba81959361810be44bcfdd283f4d601e406ab5ad1d2bdff0ed480cf983c9d7","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"b326f4813b90d230ec3950f66bd5b5ce3971aac5fac67cfafc54aa07b39fd07f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c8420c7c2b778b334587a4c0311833b5212ff2f684ea37b2f0e2b117f1d7210d","impliedFormat":1},{"version":"b6b08215821c9833b0e8e30ea1ed178009f2f3ff5d7fae3865ee42f97cc87784","impliedFormat":1},{"version":"3f735210f444dc3fd2d4d2f020d195fe827dad5e30a6d743807c5d1de3a2be73","impliedFormat":1},{"version":"73cf6cc19f16c0191e4e9d497ab0c11c7b38f1ca3f01ad0f09a3a5a971aac4b8","impliedFormat":1},{"version":"3e81d8b837057db6f9c82263e0ef7e5b9a55437342e7028eb8003199ccc69604","impliedFormat":1},{"version":"ed58b9974bb3114f39806c9c2c6258c4ffa6a255921976a7c53dfa94bf178f42","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"f72bc8fe16da67e4e3268599295797b202b95e54bd215a03f97e925dd1502a36","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"915e18c559321c0afaa8d34674d3eb77e1ded12c3e85bf2a9891ec48b07a1ca5","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9727a118ce60808e62457c89762fe5a4e2be8e9fd0112d12432d1bafdba942f","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"3a90b9beac4c2bfdf6517faae0940a042b81652badf747df0a7c7593456f6ebe","impliedFormat":1},{"version":"8302157cd431b3943eed09ad439b4441826c673d9f870dcb0e1f48e891a4211e","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"dba28a419aec76ed864ef43e5f577a5c99a010c32e5949fe4e17a4d57c58dd11","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"a5890565ed564c7b29eb1b1038d4e10c03a3f5231b0a8d48fea4b41ab19f4f46","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"98ffdf93dfdd206516971d28e3e473f417a5cfd41172e46b4ce45008f640588e","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"cee74f5970ffc01041e5bffc3f324c20450534af4054d2c043cb49dbbd4ec8f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a654e0d950353614ba4637a8de4f9d367903a0692b748e11fccf8c880c99735","affectsGlobalScope":true,"impliedFormat":1},{"version":"42da246c46ca3fd421b6fd88bb4466cda7137cf33e87ba5ceeded30219c428bd","impliedFormat":1},{"version":"3a051941721a7f905544732b0eb819c8d88333a96576b13af08b82c4f17581e4","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"163c03007bbc630ef15404b1ed9ca327d46236be8d7239c0565f2a3e133de0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"db3d77167a7da6c5ba0c51c5b654820e3464093f21724ccd774c0b9bc3f81bc0","impliedFormat":1},{"version":"bdf1feb266c87edbee61f12ceaaef60ab0e2e5dba70ca19360b6448911c53d52","impliedFormat":1}],"root":[60,[268,288],[290,292],[318,330],[342,344],[718,722],730,733,734,736,[739,754],[763,765],[767,810]],"options":{"allowJs":true,"composite":false,"declaration":false,"declarationMap":false,"experimentalDecorators":true,"inlineSourceMap":true,"inlineSources":true,"jsx":4,"module":99,"noEmitOnError":false,"outDir":"../../../..","removeComments":false,"skipLibCheck":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","useDefineForClassFields":false},"referencedMap":[[60,1],[785,2],[761,3],[762,4],[738,5],[756,6],[331,7],[333,8],[766,9],[758,10],[757,11],[755,11],[334,1],[760,12],[339,13],[340,14],[337,7],[332,7],[341,15],[335,16],[336,17],[338,7],[759,11],[737,7],[260,18],[265,19],[262,20],[267,1],[264,7],[259,7],[261,1],[256,21],[63,22],[255,23],[253,24],[62,1],[61,1],[258,25],[254,1],[735,26],[257,1],[289,11],[263,27],[266,28],[398,1],[345,1],[347,29],[348,29],[346,1],[350,30],[351,30],[349,1],[352,1],[353,31],[354,32],[355,32],[356,1],[357,1],[358,1],[365,1],[359,1],[360,31],[361,1],[362,1],[363,33],[366,34],[370,35],[367,36],[364,1],[368,37],[369,38],[371,1],[372,31],[373,31],[374,31],[375,31],[376,31],[377,31],[378,31],[379,31],[380,31],[381,31],[382,39],[383,1],[385,40],[386,31],[407,41],[401,42],[403,42],[402,43],[399,44],[400,45],[405,1],[404,1],[406,1],[387,46],[388,1],[391,1],[394,1],[389,1],[396,1],[397,47],[393,1],[390,1],[392,1],[395,1],[384,1],[412,1],[414,48],[415,48],[416,1],[417,1],[419,49],[420,1],[421,1],[422,48],[423,1],[424,1],[425,50],[426,1],[427,1],[428,51],[429,1],[430,52],[431,1],[432,1],[433,1],[434,1],[437,1],[436,53],[413,1],[438,54],[439,1],[435,1],[440,1],[441,48],[442,55],[443,56],[418,1],[294,1],[315,57],[300,58],[306,59],[301,1],[304,60],[305,1],[314,61],[309,62],[311,63],[312,64],[313,65],[307,1],[308,65],[310,65],[303,65],[302,1],[299,66],[295,1],[296,1],[298,67],[297,1],[861,68],[862,68],[863,69],[816,70],[864,71],[865,72],[866,73],[811,1],[814,74],[812,1],[813,1],[867,75],[868,76],[869,77],[870,78],[871,79],[872,80],[873,80],[874,81],[875,82],[876,83],[877,84],[817,1],[815,1],[878,85],[879,86],[880,87],[913,88],[881,89],[882,90],[883,91],[884,92],[885,93],[886,94],[887,95],[888,96],[889,97],[890,98],[891,98],[892,99],[893,1],[894,1],[895,100],[897,101],[896,102],[898,103],[899,104],[900,105],[901,106],[902,107],[903,108],[904,109],[905,110],[906,111],[907,112],[908,113],[909,114],[910,115],[818,1],[819,1],[820,1],[858,116],[859,1],[860,1],[911,117],[912,118],[409,1],[731,119],[732,120],[729,121],[727,11],[728,11],[724,119],[723,1],[709,122],[705,1],[706,1],[704,1],[707,1],[708,1],[710,1],[702,1],[703,123],[711,124],[410,125],[293,126],[316,127],[317,127],[411,128],[633,129],[632,130],[630,131],[631,129],[634,1],[714,132],[713,1],[717,133],[715,134],[408,135],[716,136],[635,137],[712,138],[701,139],[637,140],[697,140],[638,140],[639,140],[640,140],[641,140],[694,140],[698,140],[642,140],[643,140],[644,140],[645,140],[646,140],[647,140],[699,140],[648,140],[649,140],[693,140],[650,140],[651,140],[652,140],[653,140],[654,140],[655,140],[656,140],[657,140],[658,140],[659,140],[660,140],[661,140],[696,140],[662,140],[663,140],[664,140],[665,140],[666,140],[667,140],[700,140],[668,140],[669,140],[670,140],[671,140],[672,140],[673,140],[695,140],[674,140],[675,140],[676,140],[677,140],[678,140],[679,140],[680,140],[681,140],[682,140],[683,140],[684,140],[685,140],[686,140],[687,140],[688,140],[689,140],[690,140],[691,140],[692,140],[636,141],[628,142],[629,143],[726,144],[725,1],[252,145],[225,1],[203,146],[201,146],[251,147],[216,148],[215,148],[116,149],[67,150],[223,149],[224,149],[226,151],[227,149],[228,152],[127,153],[229,149],[200,149],[230,149],[231,154],[232,149],[233,148],[234,155],[235,149],[236,149],[237,149],[238,149],[239,148],[240,149],[241,149],[242,149],[243,149],[244,156],[245,149],[246,149],[247,149],[248,149],[249,149],[66,147],[69,152],[70,152],[71,152],[72,152],[73,152],[74,152],[75,152],[76,149],[78,157],[79,152],[77,152],[80,152],[81,152],[82,152],[83,152],[84,152],[85,152],[86,149],[87,152],[88,152],[89,152],[90,152],[91,152],[92,149],[93,152],[94,152],[95,152],[96,152],[97,152],[98,152],[99,149],[101,158],[100,152],[102,152],[103,152],[104,152],[105,152],[106,156],[107,149],[108,149],[122,159],[110,160],[111,152],[112,152],[113,149],[114,152],[115,152],[117,161],[118,152],[119,152],[120,152],[121,152],[123,152],[124,152],[125,152],[126,152],[128,162],[129,152],[130,152],[131,152],[132,149],[133,152],[134,163],[135,163],[136,163],[137,149],[138,152],[139,152],[140,152],[145,152],[141,152],[142,149],[143,152],[144,149],[146,152],[147,152],[148,152],[149,152],[150,152],[151,152],[152,149],[153,152],[154,152],[155,152],[156,152],[157,152],[158,152],[159,152],[160,152],[161,152],[162,152],[163,152],[164,152],[165,152],[166,152],[167,152],[168,152],[169,164],[170,152],[171,152],[172,152],[173,152],[174,152],[175,152],[176,149],[177,149],[178,149],[179,149],[180,149],[181,152],[182,152],[183,152],[184,152],[202,165],[250,149],[187,166],[186,167],[210,168],[209,169],[205,170],[204,169],[206,171],[195,172],[193,173],[208,174],[207,171],[194,1],[196,175],[109,176],[65,177],[64,152],[199,1],[191,178],[192,179],[189,1],[190,180],[188,152],[197,181],[68,182],[217,1],[218,1],[211,1],[214,148],[213,1],[219,1],[220,1],[212,183],[221,1],[222,1],[185,184],[198,185],[469,1],[627,186],[482,187],[589,188],[483,189],[585,1],[548,190],[519,191],[504,192],[586,1],[527,1],[536,1],[558,193],[446,1],[598,194],[600,195],[599,196],[448,1],[541,197],[540,198],[543,199],[542,200],[502,1],[621,1],[602,201],[606,202],[604,203],[451,204],[452,204],[453,1],[505,205],[555,206],[554,1],[567,207],[492,208],[626,1],[537,209],[625,1],[561,1],[550,1],[619,210],[622,1],[485,211],[484,212],[570,213],[574,214],[459,215],[577,216],[582,217],[454,218],[583,219],[591,220],[584,221],[461,219],[618,222],[581,223],[580,224],[464,225],[465,1],[491,226],[489,227],[490,228],[480,229],[488,230],[487,231],[463,232],[528,1],[455,1],[475,1],[466,1],[467,233],[471,234],[593,189],[460,1],[472,1],[596,217],[456,217],[595,217],[572,235],[571,236],[538,237],[592,1],[512,219],[473,220],[594,189],[576,238],[553,1],[545,1],[447,1],[560,239],[559,240],[603,203],[607,241],[605,242],[566,1],[450,243],[620,1],[547,211],[486,244],[565,245],[564,1],[520,246],[507,247],[508,1],[479,248],[551,249],[552,249],[494,250],[495,1],[503,1],[468,251],[522,252],[477,1],[457,253],[481,254],[569,255],[623,256],[514,257],[523,258],[608,196],[610,259],[609,259],[517,260],[518,261],[478,1],[444,1],[526,1],[525,262],[573,263],[568,1],[601,264],[616,262],[510,265],[493,266],[509,265],[511,267],[515,262],[458,213],[563,268],[614,269],[587,270],[534,271],[533,1],[529,272],[557,273],[530,272],[532,274],[531,275],[556,221],[590,276],[588,277],[506,278],[476,1],[513,279],[611,203],[613,241],[612,242],[615,280],[578,281],[617,282],[549,283],[544,1],[562,284],[516,285],[546,286],[499,1],[470,287],[474,262],[624,1],[539,288],[579,1],[445,1],[524,262],[449,1],[521,289],[462,1],[498,1],[496,1],[497,1],[535,1],[597,290],[501,262],[575,214],[500,291],[58,1],[59,1],[10,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[22,1],[23,1],[4,1],[24,1],[28,1],[25,1],[26,1],[27,1],[29,1],[30,1],[31,1],[5,1],[32,1],[33,1],[34,1],[35,1],[6,1],[39,1],[36,1],[37,1],[38,1],[40,1],[7,1],[41,1],[46,1],[47,1],[42,1],[43,1],[44,1],[45,1],[8,1],[51,1],[48,1],[49,1],[50,1],[52,1],[9,1],[53,1],[54,1],[55,1],[57,1],[56,1],[1,1],[836,292],[846,293],[835,292],[856,294],[827,295],[826,296],[855,297],[849,298],[854,299],[829,300],[843,301],[828,302],[852,303],[824,304],[823,297],[853,305],[825,306],[830,307],[831,1],[834,307],[821,1],[857,308],[847,309],[838,310],[839,311],[841,312],[837,313],[840,314],[850,297],[832,315],[833,316],[842,317],[822,318],[845,309],[844,307],[848,1],[851,319],[291,320],[784,321],[325,1],[326,322],[786,1],[787,323],[742,1],[743,324],[740,1],[741,325],[753,326],[754,327],[748,328],[749,329],[744,330],[745,331],[750,332],[751,333],[746,334],[747,335],[788,336],[789,337],[790,338],[791,339],[780,340],[781,341],[777,342],[778,343],[765,344],[779,345],[327,346],[328,347],[792,348],[793,349],[739,350],[752,351],[794,352],[799,353],[719,354],[720,355],[730,356],[736,357],[342,358],[343,359],[800,360],[801,361],[288,362],[290,363],[802,364],[807,365],[268,366],[287,367],[803,368],[806,369],[329,370],[718,371],[721,372],[722,373],[770,1],[773,374],[769,1],[774,375],[771,1],[772,376],[808,1],[809,377],[767,1],[768,378],[782,1],[783,379],[271,1],[286,380],[804,1],[805,381],[269,1],[270,382],[276,1],[285,383],[272,1],[275,384],[273,1],[274,385],[323,1],[324,386],[775,1],[776,387],[320,1],[321,388],[733,1],[734,389],[319,1],[322,390],[292,1],[318,391],[795,1],[798,392],[330,1],[344,393],[282,1],[283,394],[277,1],[284,395],[796,1],[797,396],[763,397],[764,398],[278,1],[281,399],[279,1],[280,400],[810,1]],"semanticDiagnosticsPerFile":[60,268,269,271,272,273,276,277,278,279,282,288,291,292,319,320,323,325,327,329,330,342,719,721,730,733,739,740,742,744,746,748,750,753,763,765,767,769,770,771,775,777,780,782,784,785,786,788,790,792,794,795,796,800,802,803,804,808],"version":"5.8.3"}
\ No newline at end of file
diff --git a/.angular/cache/20.3.3/app/angular-compiler.db b/.angular/cache/20.3.3/app/angular-compiler.db
deleted file mode 100644
index c85a7ae..0000000
Binary files a/.angular/cache/20.3.3/app/angular-compiler.db and /dev/null differ
diff --git a/.angular/cache/20.3.3/app/angular-compiler.db-lock b/.angular/cache/20.3.3/app/angular-compiler.db-lock
deleted file mode 100644
index 79253db..0000000
Binary files a/.angular/cache/20.3.3/app/angular-compiler.db-lock and /dev/null differ
diff --git a/.angular/cache/20.3.3/app/vite/com.chrome.devtools.json b/.angular/cache/20.3.3/app/vite/com.chrome.devtools.json
deleted file mode 100644
index 20cf734..0000000
--- a/.angular/cache/20.3.3/app/vite/com.chrome.devtools.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "workspace": {
- "root": "C:\\dev\\git\\web\\ObsiViewer",
- "uuid": "9de13f99-f164-49c7-b2f9-b707dc6490db"
- }
-}
\ No newline at end of file
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js b/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js
deleted file mode 100644
index e38c6ae..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js
+++ /dev/null
@@ -1,3085 +0,0 @@
-import {
- isFakeMousedownFromScreenReader,
- isFakeTouchstartFromScreenReader
-} from "./chunk-YLELG2JA.js";
-import {
- A,
- ALT,
- CONTROL,
- DOWN_ARROW,
- END,
- HOME,
- LEFT_ARROW,
- MAC_META,
- META,
- NINE,
- PAGE_DOWN,
- PAGE_UP,
- RIGHT_ARROW,
- SHIFT,
- TAB,
- UP_ARROW,
- Z,
- ZERO,
- hasModifierKey
-} from "./chunk-ALQK544G.js";
-import {
- Platform,
- _CdkPrivateStyleLoader,
- _getEventTarget,
- _getFocusedElementPierceShadowDom,
- _getShadowRoot,
- coerceArray,
- coerceElement,
- coerceNumberProperty
-} from "./chunk-FV6QHIHW.js";
-import {
- _IdGenerator
-} from "./chunk-USTXONGY.js";
-import "./chunk-76DXN4JH.js";
-import "./chunk-4X6VR2I6.js";
-import {
- APP_ID,
- CSP_NONCE,
- ChangeDetectionStrategy,
- Component,
- Directive,
- ElementRef,
- EventEmitter,
- Injectable,
- Input,
- NgModule,
- NgZone,
- Output,
- QueryList,
- RendererFactory2,
- ViewEncapsulation,
- afterNextRender,
- booleanAttribute,
- setClassMetadata,
- ɵɵNgOnChangesFeature,
- ɵɵdefineComponent,
- ɵɵdefineDirective,
- ɵɵdefineNgModule
-} from "./chunk-UEBPW2IJ.js";
-import {
- DOCUMENT,
- InjectionToken,
- Injector,
- effect,
- inject,
- isSignal,
- signal,
- ɵɵdefineInjectable,
- ɵɵdefineInjector
-} from "./chunk-QLJXSR7F.js";
-import {
- BehaviorSubject,
- Observable,
- Subject,
- Subscription,
- combineLatest,
- concat,
- debounceTime,
- distinctUntilChanged,
- filter,
- isObservable,
- map,
- of,
- skip,
- startWith,
- take,
- takeUntil,
- tap
-} from "./chunk-RSS3ODKE.js";
-import {
- __spreadValues
-} from "./chunk-TKSB4YUA.js";
-
-// node_modules/@angular/cdk/fesm2022/passive-listeners.mjs
-var supportsPassiveEvents;
-function supportsPassiveEventListeners() {
- if (supportsPassiveEvents == null && typeof window !== "undefined") {
- try {
- window.addEventListener("test", null, Object.defineProperty({}, "passive", {
- get: () => supportsPassiveEvents = true
- }));
- } finally {
- supportsPassiveEvents = supportsPassiveEvents || false;
- }
- }
- return supportsPassiveEvents;
-}
-function normalizePassiveListenerOptions(options) {
- return supportsPassiveEventListeners() ? options : !!options.capture;
-}
-
-// node_modules/@angular/cdk/fesm2022/focus-monitor.mjs
-var INPUT_MODALITY_DETECTOR_OPTIONS = new InjectionToken("cdk-input-modality-detector-options");
-var INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = {
- ignoreKeys: [ALT, CONTROL, MAC_META, META, SHIFT]
-};
-var TOUCH_BUFFER_MS = 650;
-var modalityEventListenerOptions = {
- passive: true,
- capture: true
-};
-var InputModalityDetector = class _InputModalityDetector {
- _platform = inject(Platform);
- _listenerCleanups;
- /** Emits whenever an input modality is detected. */
- modalityDetected;
- /** Emits when the input modality changes. */
- modalityChanged;
- /** The most recently detected input modality. */
- get mostRecentModality() {
- return this._modality.value;
- }
- /**
- * The most recently detected input modality event target. Is null if no input modality has been
- * detected or if the associated event target is null for some unknown reason.
- */
- _mostRecentTarget = null;
- /** The underlying BehaviorSubject that emits whenever an input modality is detected. */
- _modality = new BehaviorSubject(null);
- /** Options for this InputModalityDetector. */
- _options;
- /**
- * The timestamp of the last touch input modality. Used to determine whether mousedown events
- * should be attributed to mouse or touch.
- */
- _lastTouchMs = 0;
- /**
- * Handles keydown events. Must be an arrow function in order to preserve the context when it gets
- * bound.
- */
- _onKeydown = (event) => {
- if (this._options?.ignoreKeys?.some((keyCode) => keyCode === event.keyCode)) {
- return;
- }
- this._modality.next("keyboard");
- this._mostRecentTarget = _getEventTarget(event);
- };
- /**
- * Handles mousedown events. Must be an arrow function in order to preserve the context when it
- * gets bound.
- */
- _onMousedown = (event) => {
- if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) {
- return;
- }
- this._modality.next(isFakeMousedownFromScreenReader(event) ? "keyboard" : "mouse");
- this._mostRecentTarget = _getEventTarget(event);
- };
- /**
- * Handles touchstart events. Must be an arrow function in order to preserve the context when it
- * gets bound.
- */
- _onTouchstart = (event) => {
- if (isFakeTouchstartFromScreenReader(event)) {
- this._modality.next("keyboard");
- return;
- }
- this._lastTouchMs = Date.now();
- this._modality.next("touch");
- this._mostRecentTarget = _getEventTarget(event);
- };
- constructor() {
- const ngZone = inject(NgZone);
- const document2 = inject(DOCUMENT);
- const options = inject(INPUT_MODALITY_DETECTOR_OPTIONS, {
- optional: true
- });
- this._options = __spreadValues(__spreadValues({}, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS), options);
- this.modalityDetected = this._modality.pipe(skip(1));
- this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());
- if (this._platform.isBrowser) {
- const renderer = inject(RendererFactory2).createRenderer(null, null);
- this._listenerCleanups = ngZone.runOutsideAngular(() => {
- return [renderer.listen(document2, "keydown", this._onKeydown, modalityEventListenerOptions), renderer.listen(document2, "mousedown", this._onMousedown, modalityEventListenerOptions), renderer.listen(document2, "touchstart", this._onTouchstart, modalityEventListenerOptions)];
- });
- }
- }
- ngOnDestroy() {
- this._modality.complete();
- this._listenerCleanups?.forEach((cleanup) => cleanup());
- }
- static ɵfac = function InputModalityDetector_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _InputModalityDetector)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _InputModalityDetector,
- factory: _InputModalityDetector.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(InputModalityDetector, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var FocusMonitorDetectionMode;
-(function(FocusMonitorDetectionMode2) {
- FocusMonitorDetectionMode2[FocusMonitorDetectionMode2["IMMEDIATE"] = 0] = "IMMEDIATE";
- FocusMonitorDetectionMode2[FocusMonitorDetectionMode2["EVENTUAL"] = 1] = "EVENTUAL";
-})(FocusMonitorDetectionMode || (FocusMonitorDetectionMode = {}));
-var FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken("cdk-focus-monitor-default-options");
-var captureEventListenerOptions = normalizePassiveListenerOptions({
- passive: true,
- capture: true
-});
-var FocusMonitor = class _FocusMonitor {
- _ngZone = inject(NgZone);
- _platform = inject(Platform);
- _inputModalityDetector = inject(InputModalityDetector);
- /** The focus origin that the next focus event is a result of. */
- _origin = null;
- /** The FocusOrigin of the last focus event tracked by the FocusMonitor. */
- _lastFocusOrigin;
- /** Whether the window has just been focused. */
- _windowFocused = false;
- /** The timeout id of the window focus timeout. */
- _windowFocusTimeoutId;
- /** The timeout id of the origin clearing timeout. */
- _originTimeoutId;
- /**
- * Whether the origin was determined via a touch interaction. Necessary as properly attributing
- * focus events to touch interactions requires special logic.
- */
- _originFromTouchInteraction = false;
- /** Map of elements being monitored to their info. */
- _elementInfo = /* @__PURE__ */ new Map();
- /** The number of elements currently being monitored. */
- _monitoredElementCount = 0;
- /**
- * Keeps track of the root nodes to which we've currently bound a focus/blur handler,
- * as well as the number of monitored elements that they contain. We have to treat focus/blur
- * handlers differently from the rest of the events, because the browser won't emit events
- * to the document when focus moves inside of a shadow root.
- */
- _rootNodeFocusListenerCount = /* @__PURE__ */ new Map();
- /**
- * The specified detection mode, used for attributing the origin of a focus
- * event.
- */
- _detectionMode;
- /**
- * Event listener for `focus` events on the window.
- * Needs to be an arrow function in order to preserve the context when it gets bound.
- */
- _windowFocusListener = () => {
- this._windowFocused = true;
- this._windowFocusTimeoutId = setTimeout(() => this._windowFocused = false);
- };
- /** Used to reference correct document/window */
- _document = inject(DOCUMENT);
- /** Subject for stopping our InputModalityDetector subscription. */
- _stopInputModalityDetector = new Subject();
- constructor() {
- const options = inject(FOCUS_MONITOR_DEFAULT_OPTIONS, {
- optional: true
- });
- this._detectionMode = options?.detectionMode || FocusMonitorDetectionMode.IMMEDIATE;
- }
- /**
- * Event listener for `focus` and 'blur' events on the document.
- * Needs to be an arrow function in order to preserve the context when it gets bound.
- */
- _rootNodeFocusAndBlurListener = (event) => {
- const target = _getEventTarget(event);
- for (let element = target; element; element = element.parentElement) {
- if (event.type === "focus") {
- this._onFocus(event, element);
- } else {
- this._onBlur(event, element);
- }
- }
- };
- monitor(element, checkChildren = false) {
- const nativeElement = coerceElement(element);
- if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {
- return of();
- }
- const rootNode = _getShadowRoot(nativeElement) || this._document;
- const cachedInfo = this._elementInfo.get(nativeElement);
- if (cachedInfo) {
- if (checkChildren) {
- cachedInfo.checkChildren = true;
- }
- return cachedInfo.subject;
- }
- const info = {
- checkChildren,
- subject: new Subject(),
- rootNode
- };
- this._elementInfo.set(nativeElement, info);
- this._registerGlobalListeners(info);
- return info.subject;
- }
- stopMonitoring(element) {
- const nativeElement = coerceElement(element);
- const elementInfo = this._elementInfo.get(nativeElement);
- if (elementInfo) {
- elementInfo.subject.complete();
- this._setClasses(nativeElement);
- this._elementInfo.delete(nativeElement);
- this._removeGlobalListeners(elementInfo);
- }
- }
- focusVia(element, origin, options) {
- const nativeElement = coerceElement(element);
- const focusedElement = this._document.activeElement;
- if (nativeElement === focusedElement) {
- this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
- } else {
- this._setOrigin(origin);
- if (typeof nativeElement.focus === "function") {
- nativeElement.focus(options);
- }
- }
- }
- ngOnDestroy() {
- this._elementInfo.forEach((_info, element) => this.stopMonitoring(element));
- }
- /** Use defaultView of injected document if available or fallback to global window reference */
- _getWindow() {
- return this._document.defaultView || window;
- }
- _getFocusOrigin(focusEventTarget) {
- if (this._origin) {
- if (this._originFromTouchInteraction) {
- return this._shouldBeAttributedToTouch(focusEventTarget) ? "touch" : "program";
- } else {
- return this._origin;
- }
- }
- if (this._windowFocused && this._lastFocusOrigin) {
- return this._lastFocusOrigin;
- }
- if (focusEventTarget && this._isLastInteractionFromInputLabel(focusEventTarget)) {
- return "mouse";
- }
- return "program";
- }
- /**
- * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
- * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we
- * handle a focus event following a touch interaction, we need to determine whether (1) the focus
- * event was directly caused by the touch interaction or (2) the focus event was caused by a
- * subsequent programmatic focus call triggered by the touch interaction.
- * @param focusEventTarget The target of the focus event under examination.
- */
- _shouldBeAttributedToTouch(focusEventTarget) {
- return this._detectionMode === FocusMonitorDetectionMode.EVENTUAL || !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget);
- }
- /**
- * Sets the focus classes on the element based on the given focus origin.
- * @param element The element to update the classes on.
- * @param origin The focus origin.
- */
- _setClasses(element, origin) {
- element.classList.toggle("cdk-focused", !!origin);
- element.classList.toggle("cdk-touch-focused", origin === "touch");
- element.classList.toggle("cdk-keyboard-focused", origin === "keyboard");
- element.classList.toggle("cdk-mouse-focused", origin === "mouse");
- element.classList.toggle("cdk-program-focused", origin === "program");
- }
- /**
- * Updates the focus origin. If we're using immediate detection mode, we schedule an async
- * function to clear the origin at the end of a timeout. The duration of the timeout depends on
- * the origin being set.
- * @param origin The origin to set.
- * @param isFromInteraction Whether we are setting the origin from an interaction event.
- */
- _setOrigin(origin, isFromInteraction = false) {
- this._ngZone.runOutsideAngular(() => {
- this._origin = origin;
- this._originFromTouchInteraction = origin === "touch" && isFromInteraction;
- if (this._detectionMode === FocusMonitorDetectionMode.IMMEDIATE) {
- clearTimeout(this._originTimeoutId);
- const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;
- this._originTimeoutId = setTimeout(() => this._origin = null, ms);
- }
- });
- }
- /**
- * Handles focus events on a registered element.
- * @param event The focus event.
- * @param element The monitored element.
- */
- _onFocus(event, element) {
- const elementInfo = this._elementInfo.get(element);
- const focusEventTarget = _getEventTarget(event);
- if (!elementInfo || !elementInfo.checkChildren && element !== focusEventTarget) {
- return;
- }
- this._originChanged(element, this._getFocusOrigin(focusEventTarget), elementInfo);
- }
- /**
- * Handles blur events on a registered element.
- * @param event The blur event.
- * @param element The monitored element.
- */
- _onBlur(event, element) {
- const elementInfo = this._elementInfo.get(element);
- if (!elementInfo || elementInfo.checkChildren && event.relatedTarget instanceof Node && element.contains(event.relatedTarget)) {
- return;
- }
- this._setClasses(element);
- this._emitOrigin(elementInfo, null);
- }
- _emitOrigin(info, origin) {
- if (info.subject.observers.length) {
- this._ngZone.run(() => info.subject.next(origin));
- }
- }
- _registerGlobalListeners(elementInfo) {
- if (!this._platform.isBrowser) {
- return;
- }
- const rootNode = elementInfo.rootNode;
- const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;
- if (!rootNodeFocusListeners) {
- this._ngZone.runOutsideAngular(() => {
- rootNode.addEventListener("focus", this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
- rootNode.addEventListener("blur", this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
- });
- }
- this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1);
- if (++this._monitoredElementCount === 1) {
- this._ngZone.runOutsideAngular(() => {
- const window2 = this._getWindow();
- window2.addEventListener("focus", this._windowFocusListener);
- });
- this._inputModalityDetector.modalityDetected.pipe(takeUntil(this._stopInputModalityDetector)).subscribe((modality) => {
- this._setOrigin(
- modality,
- true
- /* isFromInteraction */
- );
- });
- }
- }
- _removeGlobalListeners(elementInfo) {
- const rootNode = elementInfo.rootNode;
- if (this._rootNodeFocusListenerCount.has(rootNode)) {
- const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);
- if (rootNodeFocusListeners > 1) {
- this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);
- } else {
- rootNode.removeEventListener("focus", this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
- rootNode.removeEventListener("blur", this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
- this._rootNodeFocusListenerCount.delete(rootNode);
- }
- }
- if (!--this._monitoredElementCount) {
- const window2 = this._getWindow();
- window2.removeEventListener("focus", this._windowFocusListener);
- this._stopInputModalityDetector.next();
- clearTimeout(this._windowFocusTimeoutId);
- clearTimeout(this._originTimeoutId);
- }
- }
- /** Updates all the state on an element once its focus origin has changed. */
- _originChanged(element, origin, elementInfo) {
- this._setClasses(element, origin);
- this._emitOrigin(elementInfo, origin);
- this._lastFocusOrigin = origin;
- }
- /**
- * Collects the `MonitoredElementInfo` of a particular element and
- * all of its ancestors that have enabled `checkChildren`.
- * @param element Element from which to start the search.
- */
- _getClosestElementsInfo(element) {
- const results = [];
- this._elementInfo.forEach((info, currentElement) => {
- if (currentElement === element || info.checkChildren && currentElement.contains(element)) {
- results.push([currentElement, info]);
- }
- });
- return results;
- }
- /**
- * Returns whether an interaction is likely to have come from the user clicking the `label` of
- * an `input` or `textarea` in order to focus it.
- * @param focusEventTarget Target currently receiving focus.
- */
- _isLastInteractionFromInputLabel(focusEventTarget) {
- const {
- _mostRecentTarget: mostRecentTarget,
- mostRecentModality
- } = this._inputModalityDetector;
- if (mostRecentModality !== "mouse" || !mostRecentTarget || mostRecentTarget === focusEventTarget || focusEventTarget.nodeName !== "INPUT" && focusEventTarget.nodeName !== "TEXTAREA" || focusEventTarget.disabled) {
- return false;
- }
- const labels = focusEventTarget.labels;
- if (labels) {
- for (let i = 0; i < labels.length; i++) {
- if (labels[i].contains(mostRecentTarget)) {
- return true;
- }
- }
- }
- return false;
- }
- static ɵfac = function FocusMonitor_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FocusMonitor)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _FocusMonitor,
- factory: _FocusMonitor.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FocusMonitor, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var CdkMonitorFocus = class _CdkMonitorFocus {
- _elementRef = inject(ElementRef);
- _focusMonitor = inject(FocusMonitor);
- _monitorSubscription;
- _focusOrigin = null;
- cdkFocusChange = new EventEmitter();
- constructor() {
- }
- get focusOrigin() {
- return this._focusOrigin;
- }
- ngAfterViewInit() {
- const element = this._elementRef.nativeElement;
- this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((origin) => {
- this._focusOrigin = origin;
- this.cdkFocusChange.emit(origin);
- });
- }
- ngOnDestroy() {
- this._focusMonitor.stopMonitoring(this._elementRef);
- if (this._monitorSubscription) {
- this._monitorSubscription.unsubscribe();
- }
- }
- static ɵfac = function CdkMonitorFocus_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkMonitorFocus)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkMonitorFocus,
- selectors: [["", "cdkMonitorElementFocus", ""], ["", "cdkMonitorSubtreeFocus", ""]],
- outputs: {
- cdkFocusChange: "cdkFocusChange"
- },
- exportAs: ["cdkMonitorFocus"]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkMonitorFocus, [{
- type: Directive,
- args: [{
- selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]",
- exportAs: "cdkMonitorFocus"
- }]
- }], () => [], {
- cdkFocusChange: [{
- type: Output
- }]
- });
-})();
-
-// node_modules/@angular/cdk/fesm2022/private.mjs
-var _VisuallyHiddenLoader = class __VisuallyHiddenLoader {
- static ɵfac = function _VisuallyHiddenLoader_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || __VisuallyHiddenLoader)();
- };
- static ɵcmp = ɵɵdefineComponent({
- type: __VisuallyHiddenLoader,
- selectors: [["ng-component"]],
- exportAs: ["cdkVisuallyHidden"],
- decls: 0,
- vars: 0,
- template: function _VisuallyHiddenLoader_Template(rf, ctx) {
- },
- styles: [".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],
- encapsulation: 2,
- changeDetection: 0
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(_VisuallyHiddenLoader, [{
- type: Component,
- args: [{
- exportAs: "cdkVisuallyHidden",
- encapsulation: ViewEncapsulation.None,
- template: "",
- changeDetection: ChangeDetectionStrategy.OnPush,
- styles: [".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"]
- }]
- }], null, null);
-})();
-
-// node_modules/@angular/cdk/fesm2022/breakpoints-observer.mjs
-var mediaQueriesForWebkitCompatibility = /* @__PURE__ */ new Set();
-var mediaQueryStyleNode;
-var MediaMatcher = class _MediaMatcher {
- _platform = inject(Platform);
- _nonce = inject(CSP_NONCE, {
- optional: true
- });
- /** The internal matchMedia method to return back a MediaQueryList like object. */
- _matchMedia;
- constructor() {
- this._matchMedia = this._platform.isBrowser && window.matchMedia ? (
- // matchMedia is bound to the window scope intentionally as it is an illegal invocation to
- // call it from a different scope.
- window.matchMedia.bind(window)
- ) : noopMatchMedia;
- }
- /**
- * Evaluates the given media query and returns the native MediaQueryList from which results
- * can be retrieved.
- * Confirms the layout engine will trigger for the selector query provided and returns the
- * MediaQueryList for the query provided.
- */
- matchMedia(query) {
- if (this._platform.WEBKIT || this._platform.BLINK) {
- createEmptyStyleRule(query, this._nonce);
- }
- return this._matchMedia(query);
- }
- static ɵfac = function MediaMatcher_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _MediaMatcher)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _MediaMatcher,
- factory: _MediaMatcher.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MediaMatcher, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-function createEmptyStyleRule(query, nonce) {
- if (mediaQueriesForWebkitCompatibility.has(query)) {
- return;
- }
- try {
- if (!mediaQueryStyleNode) {
- mediaQueryStyleNode = document.createElement("style");
- if (nonce) {
- mediaQueryStyleNode.setAttribute("nonce", nonce);
- }
- mediaQueryStyleNode.setAttribute("type", "text/css");
- document.head.appendChild(mediaQueryStyleNode);
- }
- if (mediaQueryStyleNode.sheet) {
- mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);
- mediaQueriesForWebkitCompatibility.add(query);
- }
- } catch (e) {
- console.error(e);
- }
-}
-function noopMatchMedia(query) {
- return {
- matches: query === "all" || query === "",
- media: query,
- addListener: () => {
- },
- removeListener: () => {
- }
- };
-}
-var BreakpointObserver = class _BreakpointObserver {
- _mediaMatcher = inject(MediaMatcher);
- _zone = inject(NgZone);
- /** A map of all media queries currently being listened for. */
- _queries = /* @__PURE__ */ new Map();
- /** A subject for all other observables to takeUntil based on. */
- _destroySubject = new Subject();
- constructor() {
- }
- /** Completes the active subject, signalling to all other observables to complete. */
- ngOnDestroy() {
- this._destroySubject.next();
- this._destroySubject.complete();
- }
- /**
- * Whether one or more media queries match the current viewport size.
- * @param value One or more media queries to check.
- * @returns Whether any of the media queries match.
- */
- isMatched(value) {
- const queries = splitQueries(coerceArray(value));
- return queries.some((mediaQuery) => this._registerQuery(mediaQuery).mql.matches);
- }
- /**
- * Gets an observable of results for the given queries that will emit new results for any changes
- * in matching of the given queries.
- * @param value One or more media queries to check.
- * @returns A stream of matches for the given queries.
- */
- observe(value) {
- const queries = splitQueries(coerceArray(value));
- const observables = queries.map((query) => this._registerQuery(query).observable);
- let stateObservable = combineLatest(observables);
- stateObservable = concat(stateObservable.pipe(take(1)), stateObservable.pipe(skip(1), debounceTime(0)));
- return stateObservable.pipe(map((breakpointStates) => {
- const response = {
- matches: false,
- breakpoints: {}
- };
- breakpointStates.forEach(({
- matches,
- query
- }) => {
- response.matches = response.matches || matches;
- response.breakpoints[query] = matches;
- });
- return response;
- }));
- }
- /** Registers a specific query to be listened for. */
- _registerQuery(query) {
- if (this._queries.has(query)) {
- return this._queries.get(query);
- }
- const mql = this._mediaMatcher.matchMedia(query);
- const queryObservable = new Observable((observer) => {
- const handler = (e) => this._zone.run(() => observer.next(e));
- mql.addListener(handler);
- return () => {
- mql.removeListener(handler);
- };
- }).pipe(startWith(mql), map(({
- matches
- }) => ({
- query,
- matches
- })), takeUntil(this._destroySubject));
- const output = {
- observable: queryObservable,
- mql
- };
- this._queries.set(query, output);
- return output;
- }
- static ɵfac = function BreakpointObserver_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _BreakpointObserver)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _BreakpointObserver,
- factory: _BreakpointObserver.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BreakpointObserver, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-function splitQueries(queries) {
- return queries.map((query) => query.split(",")).reduce((a1, a2) => a1.concat(a2)).map((query) => query.trim());
-}
-
-// node_modules/@angular/cdk/fesm2022/observers.mjs
-function shouldIgnoreRecord(record) {
- if (record.type === "characterData" && record.target instanceof Comment) {
- return true;
- }
- if (record.type === "childList") {
- for (let i = 0; i < record.addedNodes.length; i++) {
- if (!(record.addedNodes[i] instanceof Comment)) {
- return false;
- }
- }
- for (let i = 0; i < record.removedNodes.length; i++) {
- if (!(record.removedNodes[i] instanceof Comment)) {
- return false;
- }
- }
- return true;
- }
- return false;
-}
-var MutationObserverFactory = class _MutationObserverFactory {
- create(callback) {
- return typeof MutationObserver === "undefined" ? null : new MutationObserver(callback);
- }
- static ɵfac = function MutationObserverFactory_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _MutationObserverFactory)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _MutationObserverFactory,
- factory: _MutationObserverFactory.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MutationObserverFactory, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], null, null);
-})();
-var ContentObserver = class _ContentObserver {
- _mutationObserverFactory = inject(MutationObserverFactory);
- /** Keeps track of the existing MutationObservers so they can be reused. */
- _observedElements = /* @__PURE__ */ new Map();
- _ngZone = inject(NgZone);
- constructor() {
- }
- ngOnDestroy() {
- this._observedElements.forEach((_, element) => this._cleanupObserver(element));
- }
- observe(elementOrRef) {
- const element = coerceElement(elementOrRef);
- return new Observable((observer) => {
- const stream = this._observeElement(element);
- const subscription = stream.pipe(map((records) => records.filter((record) => !shouldIgnoreRecord(record))), filter((records) => !!records.length)).subscribe((records) => {
- this._ngZone.run(() => {
- observer.next(records);
- });
- });
- return () => {
- subscription.unsubscribe();
- this._unobserveElement(element);
- };
- });
- }
- /**
- * Observes the given element by using the existing MutationObserver if available, or creating a
- * new one if not.
- */
- _observeElement(element) {
- return this._ngZone.runOutsideAngular(() => {
- if (!this._observedElements.has(element)) {
- const stream = new Subject();
- const observer = this._mutationObserverFactory.create((mutations) => stream.next(mutations));
- if (observer) {
- observer.observe(element, {
- characterData: true,
- childList: true,
- subtree: true
- });
- }
- this._observedElements.set(element, {
- observer,
- stream,
- count: 1
- });
- } else {
- this._observedElements.get(element).count++;
- }
- return this._observedElements.get(element).stream;
- });
- }
- /**
- * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
- * observing this element.
- */
- _unobserveElement(element) {
- if (this._observedElements.has(element)) {
- this._observedElements.get(element).count--;
- if (!this._observedElements.get(element).count) {
- this._cleanupObserver(element);
- }
- }
- }
- /** Clean up the underlying MutationObserver for the specified element. */
- _cleanupObserver(element) {
- if (this._observedElements.has(element)) {
- const {
- observer,
- stream
- } = this._observedElements.get(element);
- if (observer) {
- observer.disconnect();
- }
- stream.complete();
- this._observedElements.delete(element);
- }
- }
- static ɵfac = function ContentObserver_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ContentObserver)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _ContentObserver,
- factory: _ContentObserver.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ContentObserver, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var CdkObserveContent = class _CdkObserveContent {
- _contentObserver = inject(ContentObserver);
- _elementRef = inject(ElementRef);
- /** Event emitted for each change in the element's content. */
- event = new EventEmitter();
- /**
- * Whether observing content is disabled. This option can be used
- * to disconnect the underlying MutationObserver until it is needed.
- */
- get disabled() {
- return this._disabled;
- }
- set disabled(value) {
- this._disabled = value;
- this._disabled ? this._unsubscribe() : this._subscribe();
- }
- _disabled = false;
- /** Debounce interval for emitting the changes. */
- get debounce() {
- return this._debounce;
- }
- set debounce(value) {
- this._debounce = coerceNumberProperty(value);
- this._subscribe();
- }
- _debounce;
- _currentSubscription = null;
- constructor() {
- }
- ngAfterContentInit() {
- if (!this._currentSubscription && !this.disabled) {
- this._subscribe();
- }
- }
- ngOnDestroy() {
- this._unsubscribe();
- }
- _subscribe() {
- this._unsubscribe();
- const stream = this._contentObserver.observe(this._elementRef);
- this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);
- }
- _unsubscribe() {
- this._currentSubscription?.unsubscribe();
- }
- static ɵfac = function CdkObserveContent_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkObserveContent)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkObserveContent,
- selectors: [["", "cdkObserveContent", ""]],
- inputs: {
- disabled: [2, "cdkObserveContentDisabled", "disabled", booleanAttribute],
- debounce: "debounce"
- },
- outputs: {
- event: "cdkObserveContent"
- },
- exportAs: ["cdkObserveContent"]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkObserveContent, [{
- type: Directive,
- args: [{
- selector: "[cdkObserveContent]",
- exportAs: "cdkObserveContent"
- }]
- }], () => [], {
- event: [{
- type: Output,
- args: ["cdkObserveContent"]
- }],
- disabled: [{
- type: Input,
- args: [{
- alias: "cdkObserveContentDisabled",
- transform: booleanAttribute
- }]
- }],
- debounce: [{
- type: Input
- }]
- });
-})();
-var ObserversModule = class _ObserversModule {
- static ɵfac = function ObserversModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ObserversModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _ObserversModule,
- imports: [CdkObserveContent],
- exports: [CdkObserveContent]
- });
- static ɵinj = ɵɵdefineInjector({
- providers: [MutationObserverFactory]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ObserversModule, [{
- type: NgModule,
- args: [{
- imports: [CdkObserveContent],
- exports: [CdkObserveContent],
- providers: [MutationObserverFactory]
- }]
- }], null, null);
-})();
-
-// node_modules/@angular/cdk/fesm2022/a11y-module.mjs
-var IsFocusableConfig = class {
- /**
- * Whether to count an element as focusable even if it is not currently visible.
- */
- ignoreVisibility = false;
-};
-var InteractivityChecker = class _InteractivityChecker {
- _platform = inject(Platform);
- constructor() {
- }
- /**
- * Gets whether an element is disabled.
- *
- * @param element Element to be checked.
- * @returns Whether the element is disabled.
- */
- isDisabled(element) {
- return element.hasAttribute("disabled");
- }
- /**
- * Gets whether an element is visible for the purposes of interactivity.
- *
- * This will capture states like `display: none` and `visibility: hidden`, but not things like
- * being clipped by an `overflow: hidden` parent or being outside the viewport.
- *
- * @returns Whether the element is visible.
- */
- isVisible(element) {
- return hasGeometry(element) && getComputedStyle(element).visibility === "visible";
- }
- /**
- * Gets whether an element can be reached via Tab key.
- * Assumes that the element has already been checked with isFocusable.
- *
- * @param element Element to be checked.
- * @returns Whether the element is tabbable.
- */
- isTabbable(element) {
- if (!this._platform.isBrowser) {
- return false;
- }
- const frameElement = getFrameElement(getWindow(element));
- if (frameElement) {
- if (getTabIndexValue(frameElement) === -1) {
- return false;
- }
- if (!this.isVisible(frameElement)) {
- return false;
- }
- }
- let nodeName = element.nodeName.toLowerCase();
- let tabIndexValue = getTabIndexValue(element);
- if (element.hasAttribute("contenteditable")) {
- return tabIndexValue !== -1;
- }
- if (nodeName === "iframe" || nodeName === "object") {
- return false;
- }
- if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {
- return false;
- }
- if (nodeName === "audio") {
- if (!element.hasAttribute("controls")) {
- return false;
- }
- return tabIndexValue !== -1;
- }
- if (nodeName === "video") {
- if (tabIndexValue === -1) {
- return false;
- }
- if (tabIndexValue !== null) {
- return true;
- }
- return this._platform.FIREFOX || element.hasAttribute("controls");
- }
- return element.tabIndex >= 0;
- }
- /**
- * Gets whether an element can be focused by the user.
- *
- * @param element Element to be checked.
- * @param config The config object with options to customize this method's behavior
- * @returns Whether the element is focusable.
- */
- isFocusable(element, config) {
- return isPotentiallyFocusable(element) && !this.isDisabled(element) && (config?.ignoreVisibility || this.isVisible(element));
- }
- static ɵfac = function InteractivityChecker_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _InteractivityChecker)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _InteractivityChecker,
- factory: _InteractivityChecker.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(InteractivityChecker, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-function getFrameElement(window2) {
- try {
- return window2.frameElement;
- } catch {
- return null;
- }
-}
-function hasGeometry(element) {
- return !!(element.offsetWidth || element.offsetHeight || typeof element.getClientRects === "function" && element.getClientRects().length);
-}
-function isNativeFormElement(element) {
- let nodeName = element.nodeName.toLowerCase();
- return nodeName === "input" || nodeName === "select" || nodeName === "button" || nodeName === "textarea";
-}
-function isHiddenInput(element) {
- return isInputElement(element) && element.type == "hidden";
-}
-function isAnchorWithHref(element) {
- return isAnchorElement(element) && element.hasAttribute("href");
-}
-function isInputElement(element) {
- return element.nodeName.toLowerCase() == "input";
-}
-function isAnchorElement(element) {
- return element.nodeName.toLowerCase() == "a";
-}
-function hasValidTabIndex(element) {
- if (!element.hasAttribute("tabindex") || element.tabIndex === void 0) {
- return false;
- }
- let tabIndex = element.getAttribute("tabindex");
- return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));
-}
-function getTabIndexValue(element) {
- if (!hasValidTabIndex(element)) {
- return null;
- }
- const tabIndex = parseInt(element.getAttribute("tabindex") || "", 10);
- return isNaN(tabIndex) ? -1 : tabIndex;
-}
-function isPotentiallyTabbableIOS(element) {
- let nodeName = element.nodeName.toLowerCase();
- let inputType = nodeName === "input" && element.type;
- return inputType === "text" || inputType === "password" || nodeName === "select" || nodeName === "textarea";
-}
-function isPotentiallyFocusable(element) {
- if (isHiddenInput(element)) {
- return false;
- }
- return isNativeFormElement(element) || isAnchorWithHref(element) || element.hasAttribute("contenteditable") || hasValidTabIndex(element);
-}
-function getWindow(node) {
- return node.ownerDocument && node.ownerDocument.defaultView || window;
-}
-var FocusTrap = class {
- _element;
- _checker;
- _ngZone;
- _document;
- _injector;
- _startAnchor;
- _endAnchor;
- _hasAttached = false;
- // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.
- startAnchorListener = () => this.focusLastTabbableElement();
- endAnchorListener = () => this.focusFirstTabbableElement();
- /** Whether the focus trap is active. */
- get enabled() {
- return this._enabled;
- }
- set enabled(value) {
- this._enabled = value;
- if (this._startAnchor && this._endAnchor) {
- this._toggleAnchorTabIndex(value, this._startAnchor);
- this._toggleAnchorTabIndex(value, this._endAnchor);
- }
- }
- _enabled = true;
- constructor(_element, _checker, _ngZone, _document, deferAnchors = false, _injector) {
- this._element = _element;
- this._checker = _checker;
- this._ngZone = _ngZone;
- this._document = _document;
- this._injector = _injector;
- if (!deferAnchors) {
- this.attachAnchors();
- }
- }
- /** Destroys the focus trap by cleaning up the anchors. */
- destroy() {
- const startAnchor = this._startAnchor;
- const endAnchor = this._endAnchor;
- if (startAnchor) {
- startAnchor.removeEventListener("focus", this.startAnchorListener);
- startAnchor.remove();
- }
- if (endAnchor) {
- endAnchor.removeEventListener("focus", this.endAnchorListener);
- endAnchor.remove();
- }
- this._startAnchor = this._endAnchor = null;
- this._hasAttached = false;
- }
- /**
- * Inserts the anchors into the DOM. This is usually done automatically
- * in the constructor, but can be deferred for cases like directives with `*ngIf`.
- * @returns Whether the focus trap managed to attach successfully. This may not be the case
- * if the target element isn't currently in the DOM.
- */
- attachAnchors() {
- if (this._hasAttached) {
- return true;
- }
- this._ngZone.runOutsideAngular(() => {
- if (!this._startAnchor) {
- this._startAnchor = this._createAnchor();
- this._startAnchor.addEventListener("focus", this.startAnchorListener);
- }
- if (!this._endAnchor) {
- this._endAnchor = this._createAnchor();
- this._endAnchor.addEventListener("focus", this.endAnchorListener);
- }
- });
- if (this._element.parentNode) {
- this._element.parentNode.insertBefore(this._startAnchor, this._element);
- this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);
- this._hasAttached = true;
- }
- return this._hasAttached;
- }
- /**
- * Waits for the zone to stabilize, then focuses the first tabbable element.
- * @returns Returns a promise that resolves with a boolean, depending
- * on whether focus was moved successfully.
- */
- focusInitialElementWhenReady(options) {
- return new Promise((resolve) => {
- this._executeOnStable(() => resolve(this.focusInitialElement(options)));
- });
- }
- /**
- * Waits for the zone to stabilize, then focuses
- * the first tabbable element within the focus trap region.
- * @returns Returns a promise that resolves with a boolean, depending
- * on whether focus was moved successfully.
- */
- focusFirstTabbableElementWhenReady(options) {
- return new Promise((resolve) => {
- this._executeOnStable(() => resolve(this.focusFirstTabbableElement(options)));
- });
- }
- /**
- * Waits for the zone to stabilize, then focuses
- * the last tabbable element within the focus trap region.
- * @returns Returns a promise that resolves with a boolean, depending
- * on whether focus was moved successfully.
- */
- focusLastTabbableElementWhenReady(options) {
- return new Promise((resolve) => {
- this._executeOnStable(() => resolve(this.focusLastTabbableElement(options)));
- });
- }
- /**
- * Get the specified boundary element of the trapped region.
- * @param bound The boundary to get (start or end of trapped region).
- * @returns The boundary element.
- */
- _getRegionBoundary(bound) {
- const markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], [cdkFocusRegion${bound}], [cdk-focus-${bound}]`);
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- for (let i = 0; i < markers.length; i++) {
- if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {
- console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', use 'cdkFocusRegion${bound}' instead. The deprecated attribute will be removed in 8.0.0.`, markers[i]);
- } else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {
- console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', use 'cdkFocusRegion${bound}' instead. The deprecated attribute will be removed in 8.0.0.`, markers[i]);
- }
- }
- }
- if (bound == "start") {
- return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
- }
- return markers.length ? markers[markers.length - 1] : this._getLastTabbableElement(this._element);
- }
- /**
- * Focuses the element that should be focused when the focus trap is initialized.
- * @returns Whether focus was moved successfully.
- */
- focusInitialElement(options) {
- const redirectToElement = this._element.querySelector(`[cdk-focus-initial], [cdkFocusInitial]`);
- if (redirectToElement) {
- if ((typeof ngDevMode === "undefined" || ngDevMode) && redirectToElement.hasAttribute(`cdk-focus-initial`)) {
- console.warn(`Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0`, redirectToElement);
- }
- if ((typeof ngDevMode === "undefined" || ngDevMode) && !this._checker.isFocusable(redirectToElement)) {
- console.warn(`Element matching '[cdkFocusInitial]' is not focusable.`, redirectToElement);
- }
- if (!this._checker.isFocusable(redirectToElement)) {
- const focusableChild = this._getFirstTabbableElement(redirectToElement);
- focusableChild?.focus(options);
- return !!focusableChild;
- }
- redirectToElement.focus(options);
- return true;
- }
- return this.focusFirstTabbableElement(options);
- }
- /**
- * Focuses the first tabbable element within the focus trap region.
- * @returns Whether focus was moved successfully.
- */
- focusFirstTabbableElement(options) {
- const redirectToElement = this._getRegionBoundary("start");
- if (redirectToElement) {
- redirectToElement.focus(options);
- }
- return !!redirectToElement;
- }
- /**
- * Focuses the last tabbable element within the focus trap region.
- * @returns Whether focus was moved successfully.
- */
- focusLastTabbableElement(options) {
- const redirectToElement = this._getRegionBoundary("end");
- if (redirectToElement) {
- redirectToElement.focus(options);
- }
- return !!redirectToElement;
- }
- /**
- * Checks whether the focus trap has successfully been attached.
- */
- hasAttached() {
- return this._hasAttached;
- }
- /** Get the first tabbable element from a DOM subtree (inclusive). */
- _getFirstTabbableElement(root) {
- if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
- return root;
- }
- const children = root.children;
- for (let i = 0; i < children.length; i++) {
- const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getFirstTabbableElement(children[i]) : null;
- if (tabbableChild) {
- return tabbableChild;
- }
- }
- return null;
- }
- /** Get the last tabbable element from a DOM subtree (inclusive). */
- _getLastTabbableElement(root) {
- if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
- return root;
- }
- const children = root.children;
- for (let i = children.length - 1; i >= 0; i--) {
- const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getLastTabbableElement(children[i]) : null;
- if (tabbableChild) {
- return tabbableChild;
- }
- }
- return null;
- }
- /** Creates an anchor element. */
- _createAnchor() {
- const anchor = this._document.createElement("div");
- this._toggleAnchorTabIndex(this._enabled, anchor);
- anchor.classList.add("cdk-visually-hidden");
- anchor.classList.add("cdk-focus-trap-anchor");
- anchor.setAttribute("aria-hidden", "true");
- return anchor;
- }
- /**
- * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
- * @param isEnabled Whether the focus trap is enabled.
- * @param anchor Anchor on which to toggle the tabindex.
- */
- _toggleAnchorTabIndex(isEnabled, anchor) {
- isEnabled ? anchor.setAttribute("tabindex", "0") : anchor.removeAttribute("tabindex");
- }
- /**
- * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
- * @param enabled: Whether the anchors should trap Tab.
- */
- toggleAnchors(enabled) {
- if (this._startAnchor && this._endAnchor) {
- this._toggleAnchorTabIndex(enabled, this._startAnchor);
- this._toggleAnchorTabIndex(enabled, this._endAnchor);
- }
- }
- /** Executes a function when the zone is stable. */
- _executeOnStable(fn) {
- if (this._injector) {
- afterNextRender(fn, {
- injector: this._injector
- });
- } else {
- setTimeout(fn);
- }
- }
-};
-var FocusTrapFactory = class _FocusTrapFactory {
- _checker = inject(InteractivityChecker);
- _ngZone = inject(NgZone);
- _document = inject(DOCUMENT);
- _injector = inject(Injector);
- constructor() {
- inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
- }
- /**
- * Creates a focus-trapped region around the given element.
- * @param element The element around which focus will be trapped.
- * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
- * manually by the user.
- * @returns The created focus trap instance.
- */
- create(element, deferCaptureElements = false) {
- return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements, this._injector);
- }
- static ɵfac = function FocusTrapFactory_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FocusTrapFactory)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _FocusTrapFactory,
- factory: _FocusTrapFactory.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FocusTrapFactory, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var CdkTrapFocus = class _CdkTrapFocus {
- _elementRef = inject(ElementRef);
- _focusTrapFactory = inject(FocusTrapFactory);
- /** Underlying FocusTrap instance. */
- focusTrap;
- /** Previously focused element to restore focus to upon destroy when using autoCapture. */
- _previouslyFocusedElement = null;
- /** Whether the focus trap is active. */
- get enabled() {
- return this.focusTrap?.enabled || false;
- }
- set enabled(value) {
- if (this.focusTrap) {
- this.focusTrap.enabled = value;
- }
- }
- /**
- * Whether the directive should automatically move focus into the trapped region upon
- * initialization and return focus to the previous activeElement upon destruction.
- */
- autoCapture;
- constructor() {
- const platform = inject(Platform);
- if (platform.isBrowser) {
- this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
- }
- }
- ngOnDestroy() {
- this.focusTrap?.destroy();
- if (this._previouslyFocusedElement) {
- this._previouslyFocusedElement.focus();
- this._previouslyFocusedElement = null;
- }
- }
- ngAfterContentInit() {
- this.focusTrap?.attachAnchors();
- if (this.autoCapture) {
- this._captureFocus();
- }
- }
- ngDoCheck() {
- if (this.focusTrap && !this.focusTrap.hasAttached()) {
- this.focusTrap.attachAnchors();
- }
- }
- ngOnChanges(changes) {
- const autoCaptureChange = changes["autoCapture"];
- if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture && this.focusTrap?.hasAttached()) {
- this._captureFocus();
- }
- }
- _captureFocus() {
- this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();
- this.focusTrap?.focusInitialElementWhenReady();
- }
- static ɵfac = function CdkTrapFocus_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkTrapFocus)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkTrapFocus,
- selectors: [["", "cdkTrapFocus", ""]],
- inputs: {
- enabled: [2, "cdkTrapFocus", "enabled", booleanAttribute],
- autoCapture: [2, "cdkTrapFocusAutoCapture", "autoCapture", booleanAttribute]
- },
- exportAs: ["cdkTrapFocus"],
- features: [ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkTrapFocus, [{
- type: Directive,
- args: [{
- selector: "[cdkTrapFocus]",
- exportAs: "cdkTrapFocus"
- }]
- }], () => [], {
- enabled: [{
- type: Input,
- args: [{
- alias: "cdkTrapFocus",
- transform: booleanAttribute
- }]
- }],
- autoCapture: [{
- type: Input,
- args: [{
- alias: "cdkTrapFocusAutoCapture",
- transform: booleanAttribute
- }]
- }]
- });
-})();
-var LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken("liveAnnouncerElement", {
- providedIn: "root",
- factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY
-});
-function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {
- return null;
-}
-var LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
-var uniqueIds = 0;
-var LiveAnnouncer = class _LiveAnnouncer {
- _ngZone = inject(NgZone);
- _defaultOptions = inject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, {
- optional: true
- });
- _liveElement;
- _document = inject(DOCUMENT);
- _previousTimeout;
- _currentPromise;
- _currentResolve;
- constructor() {
- const elementToken = inject(LIVE_ANNOUNCER_ELEMENT_TOKEN, {
- optional: true
- });
- this._liveElement = elementToken || this._createLiveElement();
- }
- announce(message, ...args) {
- const defaultOptions = this._defaultOptions;
- let politeness;
- let duration;
- if (args.length === 1 && typeof args[0] === "number") {
- duration = args[0];
- } else {
- [politeness, duration] = args;
- }
- this.clear();
- clearTimeout(this._previousTimeout);
- if (!politeness) {
- politeness = defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : "polite";
- }
- if (duration == null && defaultOptions) {
- duration = defaultOptions.duration;
- }
- this._liveElement.setAttribute("aria-live", politeness);
- if (this._liveElement.id) {
- this._exposeAnnouncerToModals(this._liveElement.id);
- }
- return this._ngZone.runOutsideAngular(() => {
- if (!this._currentPromise) {
- this._currentPromise = new Promise((resolve) => this._currentResolve = resolve);
- }
- clearTimeout(this._previousTimeout);
- this._previousTimeout = setTimeout(() => {
- this._liveElement.textContent = message;
- if (typeof duration === "number") {
- this._previousTimeout = setTimeout(() => this.clear(), duration);
- }
- this._currentResolve?.();
- this._currentPromise = this._currentResolve = void 0;
- }, 100);
- return this._currentPromise;
- });
- }
- /**
- * Clears the current text from the announcer element. Can be used to prevent
- * screen readers from reading the text out again while the user is going
- * through the page landmarks.
- */
- clear() {
- if (this._liveElement) {
- this._liveElement.textContent = "";
- }
- }
- ngOnDestroy() {
- clearTimeout(this._previousTimeout);
- this._liveElement?.remove();
- this._liveElement = null;
- this._currentResolve?.();
- this._currentPromise = this._currentResolve = void 0;
- }
- _createLiveElement() {
- const elementClass = "cdk-live-announcer-element";
- const previousElements = this._document.getElementsByClassName(elementClass);
- const liveEl = this._document.createElement("div");
- for (let i = 0; i < previousElements.length; i++) {
- previousElements[i].remove();
- }
- liveEl.classList.add(elementClass);
- liveEl.classList.add("cdk-visually-hidden");
- liveEl.setAttribute("aria-atomic", "true");
- liveEl.setAttribute("aria-live", "polite");
- liveEl.id = `cdk-live-announcer-${uniqueIds++}`;
- this._document.body.appendChild(liveEl);
- return liveEl;
- }
- /**
- * Some browsers won't expose the accessibility node of the live announcer element if there is an
- * `aria-modal` and the live announcer is outside of it. This method works around the issue by
- * pointing the `aria-owns` of all modals to the live announcer element.
- */
- _exposeAnnouncerToModals(id) {
- const modals = this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');
- for (let i = 0; i < modals.length; i++) {
- const modal = modals[i];
- const ariaOwns = modal.getAttribute("aria-owns");
- if (!ariaOwns) {
- modal.setAttribute("aria-owns", id);
- } else if (ariaOwns.indexOf(id) === -1) {
- modal.setAttribute("aria-owns", ariaOwns + " " + id);
- }
- }
- }
- static ɵfac = function LiveAnnouncer_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _LiveAnnouncer)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _LiveAnnouncer,
- factory: _LiveAnnouncer.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(LiveAnnouncer, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var CdkAriaLive = class _CdkAriaLive {
- _elementRef = inject(ElementRef);
- _liveAnnouncer = inject(LiveAnnouncer);
- _contentObserver = inject(ContentObserver);
- _ngZone = inject(NgZone);
- /** The aria-live politeness level to use when announcing messages. */
- get politeness() {
- return this._politeness;
- }
- set politeness(value) {
- this._politeness = value === "off" || value === "assertive" ? value : "polite";
- if (this._politeness === "off") {
- if (this._subscription) {
- this._subscription.unsubscribe();
- this._subscription = null;
- }
- } else if (!this._subscription) {
- this._subscription = this._ngZone.runOutsideAngular(() => {
- return this._contentObserver.observe(this._elementRef).subscribe(() => {
- const elementText = this._elementRef.nativeElement.textContent;
- if (elementText !== this._previousAnnouncedText) {
- this._liveAnnouncer.announce(elementText, this._politeness, this.duration);
- this._previousAnnouncedText = elementText;
- }
- });
- });
- }
- }
- _politeness = "polite";
- /** Time in milliseconds after which to clear out the announcer element. */
- duration;
- _previousAnnouncedText;
- _subscription;
- constructor() {
- inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
- }
- ngOnDestroy() {
- if (this._subscription) {
- this._subscription.unsubscribe();
- }
- }
- static ɵfac = function CdkAriaLive_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkAriaLive)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkAriaLive,
- selectors: [["", "cdkAriaLive", ""]],
- inputs: {
- politeness: [0, "cdkAriaLive", "politeness"],
- duration: [0, "cdkAriaLiveDuration", "duration"]
- },
- exportAs: ["cdkAriaLive"]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkAriaLive, [{
- type: Directive,
- args: [{
- selector: "[cdkAriaLive]",
- exportAs: "cdkAriaLive"
- }]
- }], () => [], {
- politeness: [{
- type: Input,
- args: ["cdkAriaLive"]
- }],
- duration: [{
- type: Input,
- args: ["cdkAriaLiveDuration"]
- }]
- });
-})();
-var HighContrastMode;
-(function(HighContrastMode2) {
- HighContrastMode2[HighContrastMode2["NONE"] = 0] = "NONE";
- HighContrastMode2[HighContrastMode2["BLACK_ON_WHITE"] = 1] = "BLACK_ON_WHITE";
- HighContrastMode2[HighContrastMode2["WHITE_ON_BLACK"] = 2] = "WHITE_ON_BLACK";
-})(HighContrastMode || (HighContrastMode = {}));
-var BLACK_ON_WHITE_CSS_CLASS = "cdk-high-contrast-black-on-white";
-var WHITE_ON_BLACK_CSS_CLASS = "cdk-high-contrast-white-on-black";
-var HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = "cdk-high-contrast-active";
-var HighContrastModeDetector = class _HighContrastModeDetector {
- _platform = inject(Platform);
- /**
- * Figuring out the high contrast mode and adding the body classes can cause
- * some expensive layouts. This flag is used to ensure that we only do it once.
- */
- _hasCheckedHighContrastMode;
- _document = inject(DOCUMENT);
- _breakpointSubscription;
- constructor() {
- this._breakpointSubscription = inject(BreakpointObserver).observe("(forced-colors: active)").subscribe(() => {
- if (this._hasCheckedHighContrastMode) {
- this._hasCheckedHighContrastMode = false;
- this._applyBodyHighContrastModeCssClasses();
- }
- });
- }
- /** Gets the current high-contrast-mode for the page. */
- getHighContrastMode() {
- if (!this._platform.isBrowser) {
- return HighContrastMode.NONE;
- }
- const testElement = this._document.createElement("div");
- testElement.style.backgroundColor = "rgb(1,2,3)";
- testElement.style.position = "absolute";
- this._document.body.appendChild(testElement);
- const documentWindow = this._document.defaultView || window;
- const computedStyle = documentWindow && documentWindow.getComputedStyle ? documentWindow.getComputedStyle(testElement) : null;
- const computedColor = (computedStyle && computedStyle.backgroundColor || "").replace(/ /g, "");
- testElement.remove();
- switch (computedColor) {
- // Pre Windows 11 dark theme.
- case "rgb(0,0,0)":
- // Windows 11 dark themes.
- case "rgb(45,50,54)":
- case "rgb(32,32,32)":
- return HighContrastMode.WHITE_ON_BLACK;
- // Pre Windows 11 light theme.
- case "rgb(255,255,255)":
- // Windows 11 light theme.
- case "rgb(255,250,239)":
- return HighContrastMode.BLACK_ON_WHITE;
- }
- return HighContrastMode.NONE;
- }
- ngOnDestroy() {
- this._breakpointSubscription.unsubscribe();
- }
- /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
- _applyBodyHighContrastModeCssClasses() {
- if (!this._hasCheckedHighContrastMode && this._platform.isBrowser && this._document.body) {
- const bodyClasses = this._document.body.classList;
- bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);
- this._hasCheckedHighContrastMode = true;
- const mode = this.getHighContrastMode();
- if (mode === HighContrastMode.BLACK_ON_WHITE) {
- bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS);
- } else if (mode === HighContrastMode.WHITE_ON_BLACK) {
- bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);
- }
- }
- }
- static ɵfac = function HighContrastModeDetector_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _HighContrastModeDetector)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _HighContrastModeDetector,
- factory: _HighContrastModeDetector.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(HighContrastModeDetector, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var A11yModule = class _A11yModule {
- constructor() {
- inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
- }
- static ɵfac = function A11yModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _A11yModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _A11yModule,
- imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
- exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]
- });
- static ɵinj = ɵɵdefineInjector({
- imports: [ObserversModule]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(A11yModule, [{
- type: NgModule,
- args: [{
- imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
- exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]
- }]
- }], () => [], null);
-})();
-
-// node_modules/@angular/cdk/fesm2022/typeahead.mjs
-var DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS = 200;
-var Typeahead = class {
- _letterKeyStream = new Subject();
- _items = [];
- _selectedItemIndex = -1;
- /** Buffer for the letters that the user has pressed */
- _pressedLetters = [];
- _skipPredicateFn;
- _selectedItem = new Subject();
- selectedItem = this._selectedItem;
- constructor(initialItems, config) {
- const typeAheadInterval = typeof config?.debounceInterval === "number" ? config.debounceInterval : DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS;
- if (config?.skipPredicate) {
- this._skipPredicateFn = config.skipPredicate;
- }
- if ((typeof ngDevMode === "undefined" || ngDevMode) && initialItems.length && initialItems.some((item) => typeof item.getLabel !== "function")) {
- throw new Error("KeyManager items in typeahead mode must implement the `getLabel` method.");
- }
- this.setItems(initialItems);
- this._setupKeyHandler(typeAheadInterval);
- }
- destroy() {
- this._pressedLetters = [];
- this._letterKeyStream.complete();
- this._selectedItem.complete();
- }
- setCurrentSelectedItemIndex(index) {
- this._selectedItemIndex = index;
- }
- setItems(items) {
- this._items = items;
- }
- handleKey(event) {
- const keyCode = event.keyCode;
- if (event.key && event.key.length === 1) {
- this._letterKeyStream.next(event.key.toLocaleUpperCase());
- } else if (keyCode >= A && keyCode <= Z || keyCode >= ZERO && keyCode <= NINE) {
- this._letterKeyStream.next(String.fromCharCode(keyCode));
- }
- }
- /** Gets whether the user is currently typing into the manager using the typeahead feature. */
- isTyping() {
- return this._pressedLetters.length > 0;
- }
- /** Resets the currently stored sequence of typed letters. */
- reset() {
- this._pressedLetters = [];
- }
- _setupKeyHandler(typeAheadInterval) {
- this._letterKeyStream.pipe(tap((letter) => this._pressedLetters.push(letter)), debounceTime(typeAheadInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join("").toLocaleUpperCase())).subscribe((inputString) => {
- for (let i = 1; i < this._items.length + 1; i++) {
- const index = (this._selectedItemIndex + i) % this._items.length;
- const item = this._items[index];
- if (!this._skipPredicateFn?.(item) && item.getLabel?.().toLocaleUpperCase().trim().indexOf(inputString) === 0) {
- this._selectedItem.next(item);
- break;
- }
- }
- this._pressedLetters = [];
- });
- }
-};
-
-// node_modules/@angular/cdk/fesm2022/list-key-manager.mjs
-var ListKeyManager = class {
- _items;
- _activeItemIndex = signal(-1, ...ngDevMode ? [{ debugName: "_activeItemIndex" }] : []);
- _activeItem = signal(null, ...ngDevMode ? [{ debugName: "_activeItem" }] : []);
- _wrap = false;
- _typeaheadSubscription = Subscription.EMPTY;
- _itemChangesSubscription;
- _vertical = true;
- _horizontal;
- _allowedModifierKeys = [];
- _homeAndEnd = false;
- _pageUpAndDown = { enabled: false, delta: 10 };
- _effectRef;
- _typeahead;
- /**
- * Predicate function that can be used to check whether an item should be skipped
- * by the key manager. By default, disabled items are skipped.
- */
- _skipPredicateFn = (item) => item.disabled;
- constructor(_items, injector) {
- this._items = _items;
- if (_items instanceof QueryList) {
- this._itemChangesSubscription = _items.changes.subscribe((newItems) => this._itemsChanged(newItems.toArray()));
- } else if (isSignal(_items)) {
- if (!injector && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw new Error("ListKeyManager constructed with a signal must receive an injector");
- }
- this._effectRef = effect(() => this._itemsChanged(_items()), ...ngDevMode ? [{ debugName: "_effectRef", injector }] : [{ injector }]);
- }
- }
- /**
- * Stream that emits any time the TAB key is pressed, so components can react
- * when focus is shifted off of the list.
- */
- tabOut = new Subject();
- /** Stream that emits whenever the active item of the list manager changes. */
- change = new Subject();
- /**
- * Sets the predicate function that determines which items should be skipped by the
- * list key manager.
- * @param predicate Function that determines whether the given item should be skipped.
- */
- skipPredicate(predicate) {
- this._skipPredicateFn = predicate;
- return this;
- }
- /**
- * Configures wrapping mode, which determines whether the active item will wrap to
- * the other end of list when there are no more items in the given direction.
- * @param shouldWrap Whether the list should wrap when reaching the end.
- */
- withWrap(shouldWrap = true) {
- this._wrap = shouldWrap;
- return this;
- }
- /**
- * Configures whether the key manager should be able to move the selection vertically.
- * @param enabled Whether vertical selection should be enabled.
- */
- withVerticalOrientation(enabled = true) {
- this._vertical = enabled;
- return this;
- }
- /**
- * Configures the key manager to move the selection horizontally.
- * Passing in `null` will disable horizontal movement.
- * @param direction Direction in which the selection can be moved.
- */
- withHorizontalOrientation(direction) {
- this._horizontal = direction;
- return this;
- }
- /**
- * Modifier keys which are allowed to be held down and whose default actions will be prevented
- * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
- */
- withAllowedModifierKeys(keys) {
- this._allowedModifierKeys = keys;
- return this;
- }
- /**
- * Turns on typeahead mode which allows users to set the active item by typing.
- * @param debounceInterval Time to wait after the last keystroke before setting the active item.
- */
- withTypeAhead(debounceInterval = 200) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- const items2 = this._getItemsArray();
- if (items2.length > 0 && items2.some((item) => typeof item.getLabel !== "function")) {
- throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");
- }
- }
- this._typeaheadSubscription.unsubscribe();
- const items = this._getItemsArray();
- this._typeahead = new Typeahead(items, {
- debounceInterval: typeof debounceInterval === "number" ? debounceInterval : void 0,
- skipPredicate: (item) => this._skipPredicateFn(item)
- });
- this._typeaheadSubscription = this._typeahead.selectedItem.subscribe((item) => {
- this.setActiveItem(item);
- });
- return this;
- }
- /** Cancels the current typeahead sequence. */
- cancelTypeahead() {
- this._typeahead?.reset();
- return this;
- }
- /**
- * Configures the key manager to activate the first and last items
- * respectively when the Home or End key is pressed.
- * @param enabled Whether pressing the Home or End key activates the first/last item.
- */
- withHomeAndEnd(enabled = true) {
- this._homeAndEnd = enabled;
- return this;
- }
- /**
- * Configures the key manager to activate every 10th, configured or first/last element in up/down direction
- * respectively when the Page-Up or Page-Down key is pressed.
- * @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item.
- * @param delta Whether pressing the Home or End key activates the first/last item.
- */
- withPageUpDown(enabled = true, delta = 10) {
- this._pageUpAndDown = { enabled, delta };
- return this;
- }
- setActiveItem(item) {
- const previousActiveItem = this._activeItem();
- this.updateActiveItem(item);
- if (this._activeItem() !== previousActiveItem) {
- this.change.next(this._activeItemIndex());
- }
- }
- /**
- * Sets the active item depending on the key event passed in.
- * @param event Keyboard event to be used for determining which element should be active.
- */
- onKeydown(event) {
- const keyCode = event.keyCode;
- const modifiers = ["altKey", "ctrlKey", "metaKey", "shiftKey"];
- const isModifierAllowed = modifiers.every((modifier) => {
- return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;
- });
- switch (keyCode) {
- case TAB:
- this.tabOut.next();
- return;
- case DOWN_ARROW:
- if (this._vertical && isModifierAllowed) {
- this.setNextItemActive();
- break;
- } else {
- return;
- }
- case UP_ARROW:
- if (this._vertical && isModifierAllowed) {
- this.setPreviousItemActive();
- break;
- } else {
- return;
- }
- case RIGHT_ARROW:
- if (this._horizontal && isModifierAllowed) {
- this._horizontal === "rtl" ? this.setPreviousItemActive() : this.setNextItemActive();
- break;
- } else {
- return;
- }
- case LEFT_ARROW:
- if (this._horizontal && isModifierAllowed) {
- this._horizontal === "rtl" ? this.setNextItemActive() : this.setPreviousItemActive();
- break;
- } else {
- return;
- }
- case HOME:
- if (this._homeAndEnd && isModifierAllowed) {
- this.setFirstItemActive();
- break;
- } else {
- return;
- }
- case END:
- if (this._homeAndEnd && isModifierAllowed) {
- this.setLastItemActive();
- break;
- } else {
- return;
- }
- case PAGE_UP:
- if (this._pageUpAndDown.enabled && isModifierAllowed) {
- const targetIndex = this._activeItemIndex() - this._pageUpAndDown.delta;
- this._setActiveItemByIndex(targetIndex > 0 ? targetIndex : 0, 1);
- break;
- } else {
- return;
- }
- case PAGE_DOWN:
- if (this._pageUpAndDown.enabled && isModifierAllowed) {
- const targetIndex = this._activeItemIndex() + this._pageUpAndDown.delta;
- const itemsLength = this._getItemsArray().length;
- this._setActiveItemByIndex(targetIndex < itemsLength ? targetIndex : itemsLength - 1, -1);
- break;
- } else {
- return;
- }
- default:
- if (isModifierAllowed || hasModifierKey(event, "shiftKey")) {
- this._typeahead?.handleKey(event);
- }
- return;
- }
- this._typeahead?.reset();
- event.preventDefault();
- }
- /** Index of the currently active item. */
- get activeItemIndex() {
- return this._activeItemIndex();
- }
- /** The active item. */
- get activeItem() {
- return this._activeItem();
- }
- /** Gets whether the user is currently typing into the manager using the typeahead feature. */
- isTyping() {
- return !!this._typeahead && this._typeahead.isTyping();
- }
- /** Sets the active item to the first enabled item in the list. */
- setFirstItemActive() {
- this._setActiveItemByIndex(0, 1);
- }
- /** Sets the active item to the last enabled item in the list. */
- setLastItemActive() {
- this._setActiveItemByIndex(this._getItemsArray().length - 1, -1);
- }
- /** Sets the active item to the next enabled item in the list. */
- setNextItemActive() {
- this._activeItemIndex() < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);
- }
- /** Sets the active item to a previous enabled item in the list. */
- setPreviousItemActive() {
- this._activeItemIndex() < 0 && this._wrap ? this.setLastItemActive() : this._setActiveItemByDelta(-1);
- }
- updateActiveItem(item) {
- const itemArray = this._getItemsArray();
- const index = typeof item === "number" ? item : itemArray.indexOf(item);
- const activeItem = itemArray[index];
- this._activeItem.set(activeItem == null ? null : activeItem);
- this._activeItemIndex.set(index);
- this._typeahead?.setCurrentSelectedItemIndex(index);
- }
- /** Cleans up the key manager. */
- destroy() {
- this._typeaheadSubscription.unsubscribe();
- this._itemChangesSubscription?.unsubscribe();
- this._effectRef?.destroy();
- this._typeahead?.destroy();
- this.tabOut.complete();
- this.change.complete();
- }
- /**
- * This method sets the active item, given a list of items and the delta between the
- * currently active item and the new active item. It will calculate differently
- * depending on whether wrap mode is turned on.
- */
- _setActiveItemByDelta(delta) {
- this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);
- }
- /**
- * Sets the active item properly given "wrap" mode. In other words, it will continue to move
- * down the list until it finds an item that is not disabled, and it will wrap if it
- * encounters either end of the list.
- */
- _setActiveInWrapMode(delta) {
- const items = this._getItemsArray();
- for (let i = 1; i <= items.length; i++) {
- const index = (this._activeItemIndex() + delta * i + items.length) % items.length;
- const item = items[index];
- if (!this._skipPredicateFn(item)) {
- this.setActiveItem(index);
- return;
- }
- }
- }
- /**
- * Sets the active item properly given the default mode. In other words, it will
- * continue to move down the list until it finds an item that is not disabled. If
- * it encounters either end of the list, it will stop and not wrap.
- */
- _setActiveInDefaultMode(delta) {
- this._setActiveItemByIndex(this._activeItemIndex() + delta, delta);
- }
- /**
- * Sets the active item to the first enabled item starting at the index specified. If the
- * item is disabled, it will move in the fallbackDelta direction until it either
- * finds an enabled item or encounters the end of the list.
- */
- _setActiveItemByIndex(index, fallbackDelta) {
- const items = this._getItemsArray();
- if (!items[index]) {
- return;
- }
- while (this._skipPredicateFn(items[index])) {
- index += fallbackDelta;
- if (!items[index]) {
- return;
- }
- }
- this.setActiveItem(index);
- }
- /** Returns the items as an array. */
- _getItemsArray() {
- if (isSignal(this._items)) {
- return this._items();
- }
- return this._items instanceof QueryList ? this._items.toArray() : this._items;
- }
- /** Callback for when the items have changed. */
- _itemsChanged(newItems) {
- this._typeahead?.setItems(newItems);
- const activeItem = this._activeItem();
- if (activeItem) {
- const newIndex = newItems.indexOf(activeItem);
- if (newIndex > -1 && newIndex !== this._activeItemIndex()) {
- this._activeItemIndex.set(newIndex);
- this._typeahead?.setCurrentSelectedItemIndex(newIndex);
- }
- }
- }
-};
-
-// node_modules/@angular/cdk/fesm2022/activedescendant-key-manager.mjs
-var ActiveDescendantKeyManager = class extends ListKeyManager {
- setActiveItem(index) {
- if (this.activeItem) {
- this.activeItem.setInactiveStyles();
- }
- super.setActiveItem(index);
- if (this.activeItem) {
- this.activeItem.setActiveStyles();
- }
- }
-};
-
-// node_modules/@angular/cdk/fesm2022/focus-key-manager.mjs
-var FocusKeyManager = class extends ListKeyManager {
- _origin = "program";
- /**
- * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
- * @param origin Focus origin to be used when focusing items.
- */
- setFocusOrigin(origin) {
- this._origin = origin;
- return this;
- }
- setActiveItem(item) {
- super.setActiveItem(item);
- if (this.activeItem) {
- this.activeItem.focus(this._origin);
- }
- }
-};
-
-// node_modules/@angular/cdk/fesm2022/coercion/private.mjs
-function coerceObservable(data) {
- if (!isObservable(data)) {
- return of(data);
- }
- return data;
-}
-
-// node_modules/@angular/cdk/fesm2022/tree-key-manager.mjs
-var TreeKeyManager = class {
- /** The index of the currently active (focused) item. */
- _activeItemIndex = -1;
- /** The currently active (focused) item. */
- _activeItem = null;
- /** Whether or not we activate the item when it's focused. */
- _shouldActivationFollowFocus = false;
- /**
- * The orientation that the tree is laid out in. In `rtl` mode, the behavior of Left and
- * Right arrow are switched.
- */
- _horizontalOrientation = "ltr";
- /**
- * Predicate function that can be used to check whether an item should be skipped
- * by the key manager.
- *
- * The default value for this doesn't skip any elements in order to keep tree items focusable
- * when disabled. This aligns with ARIA guidelines:
- * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols.
- */
- _skipPredicateFn = (_item) => false;
- /** Function to determine equivalent items. */
- _trackByFn = (item) => item;
- /** Synchronous cache of the items to manage. */
- _items = [];
- _typeahead;
- _typeaheadSubscription = Subscription.EMPTY;
- _hasInitialFocused = false;
- _initializeFocus() {
- if (this._hasInitialFocused || this._items.length === 0) {
- return;
- }
- let activeIndex = 0;
- for (let i = 0; i < this._items.length; i++) {
- if (!this._skipPredicateFn(this._items[i]) && !this._isItemDisabled(this._items[i])) {
- activeIndex = i;
- break;
- }
- }
- const activeItem = this._items[activeIndex];
- if (activeItem.makeFocusable) {
- this._activeItem?.unfocus();
- this._activeItemIndex = activeIndex;
- this._activeItem = activeItem;
- this._typeahead?.setCurrentSelectedItemIndex(activeIndex);
- activeItem.makeFocusable();
- } else {
- this.focusItem(activeIndex);
- }
- this._hasInitialFocused = true;
- }
- /**
- *
- * @param items List of TreeKeyManager options. Can be synchronous or asynchronous.
- * @param config Optional configuration options. By default, use 'ltr' horizontal orientation. By
- * default, do not skip any nodes. By default, key manager only calls `focus` method when items
- * are focused and does not call `activate`. If `typeaheadDefaultInterval` is `true`, use a
- * default interval of 200ms.
- */
- constructor(items, config) {
- if (items instanceof QueryList) {
- this._items = items.toArray();
- items.changes.subscribe((newItems) => {
- this._items = newItems.toArray();
- this._typeahead?.setItems(this._items);
- this._updateActiveItemIndex(this._items);
- this._initializeFocus();
- });
- } else if (isObservable(items)) {
- items.subscribe((newItems) => {
- this._items = newItems;
- this._typeahead?.setItems(newItems);
- this._updateActiveItemIndex(newItems);
- this._initializeFocus();
- });
- } else {
- this._items = items;
- this._initializeFocus();
- }
- if (typeof config.shouldActivationFollowFocus === "boolean") {
- this._shouldActivationFollowFocus = config.shouldActivationFollowFocus;
- }
- if (config.horizontalOrientation) {
- this._horizontalOrientation = config.horizontalOrientation;
- }
- if (config.skipPredicate) {
- this._skipPredicateFn = config.skipPredicate;
- }
- if (config.trackBy) {
- this._trackByFn = config.trackBy;
- }
- if (typeof config.typeAheadDebounceInterval !== "undefined") {
- this._setTypeAhead(config.typeAheadDebounceInterval);
- }
- }
- /** Stream that emits any time the focused item changes. */
- change = new Subject();
- /** Cleans up the key manager. */
- destroy() {
- this._typeaheadSubscription.unsubscribe();
- this._typeahead?.destroy();
- this.change.complete();
- }
- /**
- * Handles a keyboard event on the tree.
- * @param event Keyboard event that represents the user interaction with the tree.
- */
- onKeydown(event) {
- const key = event.key;
- switch (key) {
- case "Tab":
- return;
- case "ArrowDown":
- this._focusNextItem();
- break;
- case "ArrowUp":
- this._focusPreviousItem();
- break;
- case "ArrowRight":
- this._horizontalOrientation === "rtl" ? this._collapseCurrentItem() : this._expandCurrentItem();
- break;
- case "ArrowLeft":
- this._horizontalOrientation === "rtl" ? this._expandCurrentItem() : this._collapseCurrentItem();
- break;
- case "Home":
- this._focusFirstItem();
- break;
- case "End":
- this._focusLastItem();
- break;
- case "Enter":
- case " ":
- this._activateCurrentItem();
- break;
- default:
- if (event.key === "*") {
- this._expandAllItemsAtCurrentItemLevel();
- break;
- }
- this._typeahead?.handleKey(event);
- return;
- }
- this._typeahead?.reset();
- event.preventDefault();
- }
- /** Index of the currently active item. */
- getActiveItemIndex() {
- return this._activeItemIndex;
- }
- /** The currently active item. */
- getActiveItem() {
- return this._activeItem;
- }
- /** Focus the first available item. */
- _focusFirstItem() {
- this.focusItem(this._findNextAvailableItemIndex(-1));
- }
- /** Focus the last available item. */
- _focusLastItem() {
- this.focusItem(this._findPreviousAvailableItemIndex(this._items.length));
- }
- /** Focus the next available item. */
- _focusNextItem() {
- this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex));
- }
- /** Focus the previous available item. */
- _focusPreviousItem() {
- this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex));
- }
- focusItem(itemOrIndex, options = {}) {
- options.emitChangeEvent ??= true;
- let index = typeof itemOrIndex === "number" ? itemOrIndex : this._items.findIndex((item) => this._trackByFn(item) === this._trackByFn(itemOrIndex));
- if (index < 0 || index >= this._items.length) {
- return;
- }
- const activeItem = this._items[index];
- if (this._activeItem !== null && this._trackByFn(activeItem) === this._trackByFn(this._activeItem)) {
- return;
- }
- const previousActiveItem = this._activeItem;
- this._activeItem = activeItem ?? null;
- this._activeItemIndex = index;
- this._typeahead?.setCurrentSelectedItemIndex(index);
- this._activeItem?.focus();
- previousActiveItem?.unfocus();
- if (options.emitChangeEvent) {
- this.change.next(this._activeItem);
- }
- if (this._shouldActivationFollowFocus) {
- this._activateCurrentItem();
- }
- }
- _updateActiveItemIndex(newItems) {
- const activeItem = this._activeItem;
- if (!activeItem) {
- return;
- }
- const newIndex = newItems.findIndex((item) => this._trackByFn(item) === this._trackByFn(activeItem));
- if (newIndex > -1 && newIndex !== this._activeItemIndex) {
- this._activeItemIndex = newIndex;
- this._typeahead?.setCurrentSelectedItemIndex(newIndex);
- }
- }
- _setTypeAhead(debounceInterval) {
- this._typeahead = new Typeahead(this._items, {
- debounceInterval: typeof debounceInterval === "number" ? debounceInterval : void 0,
- skipPredicate: (item) => this._skipPredicateFn(item)
- });
- this._typeaheadSubscription = this._typeahead.selectedItem.subscribe((item) => {
- this.focusItem(item);
- });
- }
- _findNextAvailableItemIndex(startingIndex) {
- for (let i = startingIndex + 1; i < this._items.length; i++) {
- if (!this._skipPredicateFn(this._items[i])) {
- return i;
- }
- }
- return startingIndex;
- }
- _findPreviousAvailableItemIndex(startingIndex) {
- for (let i = startingIndex - 1; i >= 0; i--) {
- if (!this._skipPredicateFn(this._items[i])) {
- return i;
- }
- }
- return startingIndex;
- }
- /**
- * If the item is already expanded, we collapse the item. Otherwise, we will focus the parent.
- */
- _collapseCurrentItem() {
- if (!this._activeItem) {
- return;
- }
- if (this._isCurrentItemExpanded()) {
- this._activeItem.collapse();
- } else {
- const parent = this._activeItem.getParent();
- if (!parent || this._skipPredicateFn(parent)) {
- return;
- }
- this.focusItem(parent);
- }
- }
- /**
- * If the item is already collapsed, we expand the item. Otherwise, we will focus the first child.
- */
- _expandCurrentItem() {
- if (!this._activeItem) {
- return;
- }
- if (!this._isCurrentItemExpanded()) {
- this._activeItem.expand();
- } else {
- coerceObservable(this._activeItem.getChildren()).pipe(take(1)).subscribe((children) => {
- const firstChild = children.find((child) => !this._skipPredicateFn(child));
- if (!firstChild) {
- return;
- }
- this.focusItem(firstChild);
- });
- }
- }
- _isCurrentItemExpanded() {
- if (!this._activeItem) {
- return false;
- }
- return typeof this._activeItem.isExpanded === "boolean" ? this._activeItem.isExpanded : this._activeItem.isExpanded();
- }
- _isItemDisabled(item) {
- return typeof item.isDisabled === "boolean" ? item.isDisabled : item.isDisabled?.();
- }
- /** For all items that are the same level as the current item, we expand those items. */
- _expandAllItemsAtCurrentItemLevel() {
- if (!this._activeItem) {
- return;
- }
- const parent = this._activeItem.getParent();
- let itemsToExpand;
- if (!parent) {
- itemsToExpand = of(this._items.filter((item) => item.getParent() === null));
- } else {
- itemsToExpand = coerceObservable(parent.getChildren());
- }
- itemsToExpand.pipe(take(1)).subscribe((items) => {
- for (const item of items) {
- item.expand();
- }
- });
- }
- _activateCurrentItem() {
- this._activeItem?.activate();
- }
-};
-function TREE_KEY_MANAGER_FACTORY() {
- return (items, options) => new TreeKeyManager(items, options);
-}
-var TREE_KEY_MANAGER = new InjectionToken("tree-key-manager", {
- providedIn: "root",
- factory: TREE_KEY_MANAGER_FACTORY
-});
-var TREE_KEY_MANAGER_FACTORY_PROVIDER = {
- provide: TREE_KEY_MANAGER,
- useFactory: TREE_KEY_MANAGER_FACTORY
-};
-
-// node_modules/@angular/cdk/fesm2022/a11y.mjs
-var ID_DELIMITER = " ";
-function addAriaReferencedId(el, attr, id) {
- const ids = getAriaReferenceIds(el, attr);
- id = id.trim();
- if (ids.some((existingId) => existingId.trim() === id)) {
- return;
- }
- ids.push(id);
- el.setAttribute(attr, ids.join(ID_DELIMITER));
-}
-function removeAriaReferencedId(el, attr, id) {
- const ids = getAriaReferenceIds(el, attr);
- id = id.trim();
- const filteredIds = ids.filter((val) => val !== id);
- if (filteredIds.length) {
- el.setAttribute(attr, filteredIds.join(ID_DELIMITER));
- } else {
- el.removeAttribute(attr);
- }
-}
-function getAriaReferenceIds(el, attr) {
- const attrValue = el.getAttribute(attr);
- return attrValue?.match(/\S+/g) ?? [];
-}
-var MESSAGES_CONTAINER_ID = "cdk-describedby-message-container";
-var CDK_DESCRIBEDBY_ID_PREFIX = "cdk-describedby-message";
-var CDK_DESCRIBEDBY_HOST_ATTRIBUTE = "cdk-describedby-host";
-var nextId = 0;
-var AriaDescriber = class _AriaDescriber {
- _platform = inject(Platform);
- _document = inject(DOCUMENT);
- /** Map of all registered message elements that have been placed into the document. */
- _messageRegistry = /* @__PURE__ */ new Map();
- /** Container for all registered messages. */
- _messagesContainer = null;
- /** Unique ID for the service. */
- _id = `${nextId++}`;
- constructor() {
- inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
- this._id = inject(APP_ID) + "-" + nextId++;
- }
- describe(hostElement, message, role) {
- if (!this._canBeDescribed(hostElement, message)) {
- return;
- }
- const key = getKey(message, role);
- if (typeof message !== "string") {
- setMessageId(message, this._id);
- this._messageRegistry.set(key, {
- messageElement: message,
- referenceCount: 0
- });
- } else if (!this._messageRegistry.has(key)) {
- this._createMessageElement(message, role);
- }
- if (!this._isElementDescribedByMessage(hostElement, key)) {
- this._addMessageReference(hostElement, key);
- }
- }
- removeDescription(hostElement, message, role) {
- if (!message || !this._isElementNode(hostElement)) {
- return;
- }
- const key = getKey(message, role);
- if (this._isElementDescribedByMessage(hostElement, key)) {
- this._removeMessageReference(hostElement, key);
- }
- if (typeof message === "string") {
- const registeredMessage = this._messageRegistry.get(key);
- if (registeredMessage && registeredMessage.referenceCount === 0) {
- this._deleteMessageElement(key);
- }
- }
- if (this._messagesContainer?.childNodes.length === 0) {
- this._messagesContainer.remove();
- this._messagesContainer = null;
- }
- }
- /** Unregisters all created message elements and removes the message container. */
- ngOnDestroy() {
- const describedElements = this._document.querySelectorAll(`[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}="${this._id}"]`);
- for (let i = 0; i < describedElements.length; i++) {
- this._removeCdkDescribedByReferenceIds(describedElements[i]);
- describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
- }
- this._messagesContainer?.remove();
- this._messagesContainer = null;
- this._messageRegistry.clear();
- }
- /**
- * Creates a new element in the visually hidden message container element with the message
- * as its content and adds it to the message registry.
- */
- _createMessageElement(message, role) {
- const messageElement = this._document.createElement("div");
- setMessageId(messageElement, this._id);
- messageElement.textContent = message;
- if (role) {
- messageElement.setAttribute("role", role);
- }
- this._createMessagesContainer();
- this._messagesContainer.appendChild(messageElement);
- this._messageRegistry.set(getKey(message, role), {
- messageElement,
- referenceCount: 0
- });
- }
- /** Deletes the message element from the global messages container. */
- _deleteMessageElement(key) {
- this._messageRegistry.get(key)?.messageElement?.remove();
- this._messageRegistry.delete(key);
- }
- /** Creates the global container for all aria-describedby messages. */
- _createMessagesContainer() {
- if (this._messagesContainer) {
- return;
- }
- const containerClassName = "cdk-describedby-message-container";
- const serverContainers = this._document.querySelectorAll(`.${containerClassName}[platform="server"]`);
- for (let i = 0; i < serverContainers.length; i++) {
- serverContainers[i].remove();
- }
- const messagesContainer = this._document.createElement("div");
- messagesContainer.style.visibility = "hidden";
- messagesContainer.classList.add(containerClassName);
- messagesContainer.classList.add("cdk-visually-hidden");
- if (!this._platform.isBrowser) {
- messagesContainer.setAttribute("platform", "server");
- }
- this._document.body.appendChild(messagesContainer);
- this._messagesContainer = messagesContainer;
- }
- /** Removes all cdk-describedby messages that are hosted through the element. */
- _removeCdkDescribedByReferenceIds(element) {
- const originalReferenceIds = getAriaReferenceIds(element, "aria-describedby").filter((id) => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
- element.setAttribute("aria-describedby", originalReferenceIds.join(" "));
- }
- /**
- * Adds a message reference to the element using aria-describedby and increments the registered
- * message's reference count.
- */
- _addMessageReference(element, key) {
- const registeredMessage = this._messageRegistry.get(key);
- addAriaReferencedId(element, "aria-describedby", registeredMessage.messageElement.id);
- element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, this._id);
- registeredMessage.referenceCount++;
- }
- /**
- * Removes a message reference from the element using aria-describedby
- * and decrements the registered message's reference count.
- */
- _removeMessageReference(element, key) {
- const registeredMessage = this._messageRegistry.get(key);
- registeredMessage.referenceCount--;
- removeAriaReferencedId(element, "aria-describedby", registeredMessage.messageElement.id);
- element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
- }
- /** Returns true if the element has been described by the provided message ID. */
- _isElementDescribedByMessage(element, key) {
- const referenceIds = getAriaReferenceIds(element, "aria-describedby");
- const registeredMessage = this._messageRegistry.get(key);
- const messageId = registeredMessage && registeredMessage.messageElement.id;
- return !!messageId && referenceIds.indexOf(messageId) != -1;
- }
- /** Determines whether a message can be described on a particular element. */
- _canBeDescribed(element, message) {
- if (!this._isElementNode(element)) {
- return false;
- }
- if (message && typeof message === "object") {
- return true;
- }
- const trimmedMessage = message == null ? "" : `${message}`.trim();
- const ariaLabel = element.getAttribute("aria-label");
- return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;
- }
- /** Checks whether a node is an Element node. */
- _isElementNode(element) {
- return element.nodeType === this._document.ELEMENT_NODE;
- }
- static ɵfac = function AriaDescriber_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _AriaDescriber)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _AriaDescriber,
- factory: _AriaDescriber.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(AriaDescriber, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-function getKey(message, role) {
- return typeof message === "string" ? `${role || ""}/${message}` : message;
-}
-function setMessageId(element, serviceId) {
- if (!element.id) {
- element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`;
- }
-}
-var NoopTreeKeyManager = class {
- _isNoopTreeKeyManager = true;
- // Provide change as required by TreeKeyManagerStrategy. NoopTreeKeyManager is a "noop"
- // implementation that does not emit to streams.
- change = new Subject();
- destroy() {
- this.change.complete();
- }
- onKeydown() {
- }
- getActiveItemIndex() {
- return null;
- }
- getActiveItem() {
- return null;
- }
- focusItem() {
- }
-};
-function NOOP_TREE_KEY_MANAGER_FACTORY() {
- return () => new NoopTreeKeyManager();
-}
-var NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER = {
- provide: TREE_KEY_MANAGER,
- useFactory: NOOP_TREE_KEY_MANAGER_FACTORY
-};
-var ConfigurableFocusTrap = class extends FocusTrap {
- _focusTrapManager;
- _inertStrategy;
- /** Whether the FocusTrap is enabled. */
- get enabled() {
- return this._enabled;
- }
- set enabled(value) {
- this._enabled = value;
- if (this._enabled) {
- this._focusTrapManager.register(this);
- } else {
- this._focusTrapManager.deregister(this);
- }
- }
- constructor(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config, injector) {
- super(_element, _checker, _ngZone, _document, config.defer, injector);
- this._focusTrapManager = _focusTrapManager;
- this._inertStrategy = _inertStrategy;
- this._focusTrapManager.register(this);
- }
- /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
- destroy() {
- this._focusTrapManager.deregister(this);
- super.destroy();
- }
- /** @docs-private Implemented as part of ManagedFocusTrap. */
- _enable() {
- this._inertStrategy.preventFocus(this);
- this.toggleAnchors(true);
- }
- /** @docs-private Implemented as part of ManagedFocusTrap. */
- _disable() {
- this._inertStrategy.allowFocus(this);
- this.toggleAnchors(false);
- }
-};
-var EventListenerFocusTrapInertStrategy = class {
- /** Focus event handler. */
- _listener = null;
- /** Adds a document event listener that keeps focus inside the FocusTrap. */
- preventFocus(focusTrap) {
- if (this._listener) {
- focusTrap._document.removeEventListener("focus", this._listener, true);
- }
- this._listener = (e) => this._trapFocus(focusTrap, e);
- focusTrap._ngZone.runOutsideAngular(() => {
- focusTrap._document.addEventListener("focus", this._listener, true);
- });
- }
- /** Removes the event listener added in preventFocus. */
- allowFocus(focusTrap) {
- if (!this._listener) {
- return;
- }
- focusTrap._document.removeEventListener("focus", this._listener, true);
- this._listener = null;
- }
- /**
- * Refocuses the first element in the FocusTrap if the focus event target was outside
- * the FocusTrap.
- *
- * This is an event listener callback. The event listener is added in runOutsideAngular,
- * so all this code runs outside Angular as well.
- */
- _trapFocus(focusTrap, event) {
- const target = event.target;
- const focusTrapRoot = focusTrap._element;
- if (target && !focusTrapRoot.contains(target) && !target.closest?.("div.cdk-overlay-pane")) {
- setTimeout(() => {
- if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {
- focusTrap.focusFirstTabbableElement();
- }
- });
- }
- }
-};
-var FOCUS_TRAP_INERT_STRATEGY = new InjectionToken("FOCUS_TRAP_INERT_STRATEGY");
-var FocusTrapManager = class _FocusTrapManager {
- // A stack of the FocusTraps on the page. Only the FocusTrap at the
- // top of the stack is active.
- _focusTrapStack = [];
- /**
- * Disables the FocusTrap at the top of the stack, and then pushes
- * the new FocusTrap onto the stack.
- */
- register(focusTrap) {
- this._focusTrapStack = this._focusTrapStack.filter((ft) => ft !== focusTrap);
- let stack = this._focusTrapStack;
- if (stack.length) {
- stack[stack.length - 1]._disable();
- }
- stack.push(focusTrap);
- focusTrap._enable();
- }
- /**
- * Removes the FocusTrap from the stack, and activates the
- * FocusTrap that is the new top of the stack.
- */
- deregister(focusTrap) {
- focusTrap._disable();
- const stack = this._focusTrapStack;
- const i = stack.indexOf(focusTrap);
- if (i !== -1) {
- stack.splice(i, 1);
- if (stack.length) {
- stack[stack.length - 1]._enable();
- }
- }
- }
- static ɵfac = function FocusTrapManager_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FocusTrapManager)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _FocusTrapManager,
- factory: _FocusTrapManager.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FocusTrapManager, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], null, null);
-})();
-var ConfigurableFocusTrapFactory = class _ConfigurableFocusTrapFactory {
- _checker = inject(InteractivityChecker);
- _ngZone = inject(NgZone);
- _focusTrapManager = inject(FocusTrapManager);
- _document = inject(DOCUMENT);
- _inertStrategy;
- _injector = inject(Injector);
- constructor() {
- const inertStrategy = inject(FOCUS_TRAP_INERT_STRATEGY, {
- optional: true
- });
- this._inertStrategy = inertStrategy || new EventListenerFocusTrapInertStrategy();
- }
- create(element, config = {
- defer: false
- }) {
- let configObject;
- if (typeof config === "boolean") {
- configObject = {
- defer: config
- };
- } else {
- configObject = config;
- }
- return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject, this._injector);
- }
- static ɵfac = function ConfigurableFocusTrapFactory_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ConfigurableFocusTrapFactory)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _ConfigurableFocusTrapFactory,
- factory: _ConfigurableFocusTrapFactory.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ConfigurableFocusTrapFactory, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-export {
- A11yModule,
- ActiveDescendantKeyManager,
- AriaDescriber,
- CDK_DESCRIBEDBY_HOST_ATTRIBUTE,
- CDK_DESCRIBEDBY_ID_PREFIX,
- CdkAriaLive,
- CdkMonitorFocus,
- CdkTrapFocus,
- ConfigurableFocusTrap,
- ConfigurableFocusTrapFactory,
- EventListenerFocusTrapInertStrategy,
- FOCUS_MONITOR_DEFAULT_OPTIONS,
- FOCUS_TRAP_INERT_STRATEGY,
- FocusKeyManager,
- FocusMonitor,
- FocusMonitorDetectionMode,
- FocusTrap,
- FocusTrapFactory,
- HighContrastMode,
- HighContrastModeDetector,
- INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,
- INPUT_MODALITY_DETECTOR_OPTIONS,
- InputModalityDetector,
- InteractivityChecker,
- IsFocusableConfig,
- LIVE_ANNOUNCER_DEFAULT_OPTIONS,
- LIVE_ANNOUNCER_ELEMENT_TOKEN,
- LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY,
- ListKeyManager,
- LiveAnnouncer,
- MESSAGES_CONTAINER_ID,
- NOOP_TREE_KEY_MANAGER_FACTORY,
- NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER,
- NoopTreeKeyManager,
- TREE_KEY_MANAGER,
- TREE_KEY_MANAGER_FACTORY,
- TREE_KEY_MANAGER_FACTORY_PROVIDER,
- TreeKeyManager,
- _IdGenerator,
- addAriaReferencedId,
- getAriaReferenceIds,
- isFakeMousedownFromScreenReader,
- isFakeTouchstartFromScreenReader,
- removeAriaReferencedId
-};
-//# sourceMappingURL=@angular_cdk_a11y.js.map
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js.map
deleted file mode 100644
index 247afa2..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_a11y.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": ["../../../../../../node_modules/@angular/cdk/fesm2022/passive-listeners.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/focus-monitor.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/private.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/breakpoints-observer.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/observers.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/a11y-module.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/typeahead.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/list-key-manager.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/activedescendant-key-manager.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/focus-key-manager.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/coercion/private.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/tree-key-manager.mjs", "../../../../../../node_modules/@angular/cdk/fesm2022/a11y.mjs"],
- "sourcesContent": ["/** Cached result of whether the user's browser supports passive event listeners. */\nlet supportsPassiveEvents;\n/**\n * Checks whether the user's browser supports passive event listeners.\n * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n */\nfunction supportsPassiveEventListeners() {\n if (supportsPassiveEvents == null && typeof window !== 'undefined') {\n try {\n window.addEventListener('test', null, Object.defineProperty({}, 'passive', {\n get: () => (supportsPassiveEvents = true),\n }));\n }\n finally {\n supportsPassiveEvents = supportsPassiveEvents || false;\n }\n }\n return supportsPassiveEvents;\n}\n/**\n * Normalizes an `AddEventListener` object to something that can be passed\n * to `addEventListener` on any browser, no matter whether it supports the\n * `options` parameter.\n * @param options Object to be normalized.\n */\nfunction normalizePassiveListenerOptions(options) {\n return supportsPassiveEventListeners() ? options : !!options.capture;\n}\n\nexport { normalizePassiveListenerOptions, supportsPassiveEventListeners };\n\n", "import * as i0 from '@angular/core';\nimport { InjectionToken, inject, NgZone, DOCUMENT, RendererFactory2, Injectable, ElementRef, EventEmitter, Directive, Output } from '@angular/core';\nimport { BehaviorSubject, Subject, of } from 'rxjs';\nimport { skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from './fake-event-detection.mjs';\nimport { ALT, CONTROL, MAC_META, META, SHIFT } from './keycodes2.mjs';\nimport { _getEventTarget, _getShadowRoot } from './shadow-dom.mjs';\nimport { Platform } from './platform2.mjs';\nimport { normalizePassiveListenerOptions } from './passive-listeners.mjs';\nimport { coerceElement } from './element.mjs';\n\n/**\n * Injectable options for the InputModalityDetector. These are shallowly merged with the default\n * options.\n */\nconst INPUT_MODALITY_DETECTOR_OPTIONS = new InjectionToken('cdk-input-modality-detector-options');\n/**\n * Default options for the InputModalityDetector.\n *\n * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect\n * keyboard input modality) for two reasons:\n *\n * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open\n * in new tab', and are thus less representative of actual keyboard interaction.\n * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but\n * confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore\n * these keys so as to not update the input modality.\n *\n * Note that we do not by default ignore the right Meta key on Safari because it has the same key\n * code as the ContextMenu key on other browsers. When we switch to using event.key, we can\n * distinguish between the two.\n */\nconst INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = {\n ignoreKeys: [ALT, CONTROL, MAC_META, META, SHIFT]\n};\n/**\n * The amount of time needed to pass after a touchstart event in order for a subsequent mousedown\n * event to be attributed as mouse and not touch.\n *\n * This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found\n * that a value of around 650ms seems appropriate.\n */\nconst TOUCH_BUFFER_MS = 650;\n/**\n * Event listener options that enable capturing and also mark the listener as passive if the browser\n * supports it.\n */\nconst modalityEventListenerOptions = {\n passive: true,\n capture: true\n};\n/**\n * Service that detects the user's input modality.\n *\n * This service does not update the input modality when a user navigates with a screen reader\n * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC\n * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not\n * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a\n * screen reader is akin to visually scanning a page, and should not be interpreted as actual user\n * input interaction.\n *\n * When a user is not navigating but *interacting* with a screen reader, this service attempts to\n * update the input modality to keyboard, but in general this service's behavior is largely\n * undefined.\n */\nclass InputModalityDetector {\n _platform = inject(Platform);\n _listenerCleanups;\n /** Emits whenever an input modality is detected. */\n modalityDetected;\n /** Emits when the input modality changes. */\n modalityChanged;\n /** The most recently detected input modality. */\n get mostRecentModality() {\n return this._modality.value;\n }\n /**\n * The most recently detected input modality event target. Is null if no input modality has been\n * detected or if the associated event target is null for some unknown reason.\n */\n _mostRecentTarget = null;\n /** The underlying BehaviorSubject that emits whenever an input modality is detected. */\n _modality = new BehaviorSubject(null);\n /** Options for this InputModalityDetector. */\n _options;\n /**\n * The timestamp of the last touch input modality. Used to determine whether mousedown events\n * should be attributed to mouse or touch.\n */\n _lastTouchMs = 0;\n /**\n * Handles keydown events. Must be an arrow function in order to preserve the context when it gets\n * bound.\n */\n _onKeydown = event => {\n // If this is one of the keys we should ignore, then ignore it and don't update the input\n // modality to keyboard.\n if (this._options?.ignoreKeys?.some(keyCode => keyCode === event.keyCode)) {\n return;\n }\n this._modality.next('keyboard');\n this._mostRecentTarget = _getEventTarget(event);\n };\n /**\n * Handles mousedown events. Must be an arrow function in order to preserve the context when it\n * gets bound.\n */\n _onMousedown = event => {\n // Touches trigger both touch and mouse events, so we need to distinguish between mouse events\n // that were triggered via mouse vs touch. To do so, check if the mouse event occurs closely\n // after the previous touch event.\n if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) {\n return;\n }\n // Fake mousedown events are fired by some screen readers when controls are activated by the\n // screen reader. Attribute them to keyboard input modality.\n this._modality.next(isFakeMousedownFromScreenReader(event) ? 'keyboard' : 'mouse');\n this._mostRecentTarget = _getEventTarget(event);\n };\n /**\n * Handles touchstart events. Must be an arrow function in order to preserve the context when it\n * gets bound.\n */\n _onTouchstart = event => {\n // Same scenario as mentioned in _onMousedown, but on touch screen devices, fake touchstart\n // events are fired. Again, attribute to keyboard input modality.\n if (isFakeTouchstartFromScreenReader(event)) {\n this._modality.next('keyboard');\n return;\n }\n // Store the timestamp of this touch event, as it's used to distinguish between mouse events\n // triggered via mouse vs touch.\n this._lastTouchMs = Date.now();\n this._modality.next('touch');\n this._mostRecentTarget = _getEventTarget(event);\n };\n constructor() {\n const ngZone = inject(NgZone);\n const document = inject(DOCUMENT);\n const options = inject(INPUT_MODALITY_DETECTOR_OPTIONS, {\n optional: true\n });\n this._options = {\n ...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,\n ...options\n };\n // Skip the first emission as it's null.\n this.modalityDetected = this._modality.pipe(skip(1));\n this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());\n // If we're not in a browser, this service should do nothing, as there's no relevant input\n // modality to detect.\n if (this._platform.isBrowser) {\n const renderer = inject(RendererFactory2).createRenderer(null, null);\n this._listenerCleanups = ngZone.runOutsideAngular(() => {\n return [renderer.listen(document, 'keydown', this._onKeydown, modalityEventListenerOptions), renderer.listen(document, 'mousedown', this._onMousedown, modalityEventListenerOptions), renderer.listen(document, 'touchstart', this._onTouchstart, modalityEventListenerOptions)];\n });\n }\n }\n ngOnDestroy() {\n this._modality.complete();\n this._listenerCleanups?.forEach(cleanup => cleanup());\n }\n static ɵfac = function InputModalityDetector_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || InputModalityDetector)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InputModalityDetector,\n factory: InputModalityDetector.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(InputModalityDetector, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n\n/** Detection mode used for attributing the origin of a focus event. */\nvar FocusMonitorDetectionMode;\n(function (FocusMonitorDetectionMode) {\n /**\n * Any mousedown, keydown, or touchstart event that happened in the previous\n * tick or the current tick will be used to assign a focus event's origin (to\n * either mouse, keyboard, or touch). This is the default option.\n */\n FocusMonitorDetectionMode[FocusMonitorDetectionMode[\"IMMEDIATE\"] = 0] = \"IMMEDIATE\";\n /**\n * A focus event's origin is always attributed to the last corresponding\n * mousedown, keydown, or touchstart event, no matter how long ago it occurred.\n */\n FocusMonitorDetectionMode[FocusMonitorDetectionMode[\"EVENTUAL\"] = 1] = \"EVENTUAL\";\n})(FocusMonitorDetectionMode || (FocusMonitorDetectionMode = {}));\n/** InjectionToken for FocusMonitorOptions. */\nconst FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken('cdk-focus-monitor-default-options');\n/**\n * Event listener options that enable capturing and also\n * mark the listener as passive if the browser supports it.\n */\nconst captureEventListenerOptions = normalizePassiveListenerOptions({\n passive: true,\n capture: true\n});\n/** Monitors mouse and keyboard events to determine the cause of focus events. */\nclass FocusMonitor {\n _ngZone = inject(NgZone);\n _platform = inject(Platform);\n _inputModalityDetector = inject(InputModalityDetector);\n /** The focus origin that the next focus event is a result of. */\n _origin = null;\n /** The FocusOrigin of the last focus event tracked by the FocusMonitor. */\n _lastFocusOrigin;\n /** Whether the window has just been focused. */\n _windowFocused = false;\n /** The timeout id of the window focus timeout. */\n _windowFocusTimeoutId;\n /** The timeout id of the origin clearing timeout. */\n _originTimeoutId;\n /**\n * Whether the origin was determined via a touch interaction. Necessary as properly attributing\n * focus events to touch interactions requires special logic.\n */\n _originFromTouchInteraction = false;\n /** Map of elements being monitored to their info. */\n _elementInfo = new Map();\n /** The number of elements currently being monitored. */\n _monitoredElementCount = 0;\n /**\n * Keeps track of the root nodes to which we've currently bound a focus/blur handler,\n * as well as the number of monitored elements that they contain. We have to treat focus/blur\n * handlers differently from the rest of the events, because the browser won't emit events\n * to the document when focus moves inside of a shadow root.\n */\n _rootNodeFocusListenerCount = new Map();\n /**\n * The specified detection mode, used for attributing the origin of a focus\n * event.\n */\n _detectionMode;\n /**\n * Event listener for `focus` events on the window.\n * Needs to be an arrow function in order to preserve the context when it gets bound.\n */\n _windowFocusListener = () => {\n // Make a note of when the window regains focus, so we can\n // restore the origin info for the focused element.\n this._windowFocused = true;\n this._windowFocusTimeoutId = setTimeout(() => this._windowFocused = false);\n };\n /** Used to reference correct document/window */\n _document = inject(DOCUMENT);\n /** Subject for stopping our InputModalityDetector subscription. */\n _stopInputModalityDetector = new Subject();\n constructor() {\n const options = inject(FOCUS_MONITOR_DEFAULT_OPTIONS, {\n optional: true\n });\n this._detectionMode = options?.detectionMode || FocusMonitorDetectionMode.IMMEDIATE;\n }\n /**\n * Event listener for `focus` and 'blur' events on the document.\n * Needs to be an arrow function in order to preserve the context when it gets bound.\n */\n _rootNodeFocusAndBlurListener = event => {\n const target = _getEventTarget(event);\n // We need to walk up the ancestor chain in order to support `checkChildren`.\n for (let element = target; element; element = element.parentElement) {\n if (event.type === 'focus') {\n this._onFocus(event, element);\n } else {\n this._onBlur(event, element);\n }\n }\n };\n monitor(element, checkChildren = false) {\n const nativeElement = coerceElement(element);\n // Do nothing if we're not on the browser platform or the passed in node isn't an element.\n if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {\n // Note: we don't want the observable to emit at all so we don't pass any parameters.\n return of();\n }\n // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to\n // the shadow root, rather than the `document`, because the browser won't emit focus events\n // to the `document`, if focus is moving within the same shadow root.\n const rootNode = _getShadowRoot(nativeElement) || this._document;\n const cachedInfo = this._elementInfo.get(nativeElement);\n // Check if we're already monitoring this element.\n if (cachedInfo) {\n if (checkChildren) {\n // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren\n // observers into ones that behave as if `checkChildren` was turned on. We need a more\n // robust solution.\n cachedInfo.checkChildren = true;\n }\n return cachedInfo.subject;\n }\n // Create monitored element info.\n const info = {\n checkChildren: checkChildren,\n subject: new Subject(),\n rootNode\n };\n this._elementInfo.set(nativeElement, info);\n this._registerGlobalListeners(info);\n return info.subject;\n }\n stopMonitoring(element) {\n const nativeElement = coerceElement(element);\n const elementInfo = this._elementInfo.get(nativeElement);\n if (elementInfo) {\n elementInfo.subject.complete();\n this._setClasses(nativeElement);\n this._elementInfo.delete(nativeElement);\n this._removeGlobalListeners(elementInfo);\n }\n }\n focusVia(element, origin, options) {\n const nativeElement = coerceElement(element);\n const focusedElement = this._document.activeElement;\n // If the element is focused already, calling `focus` again won't trigger the event listener\n // which means that the focus classes won't be updated. If that's the case, update the classes\n // directly without waiting for an event.\n if (nativeElement === focusedElement) {\n this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));\n } else {\n this._setOrigin(origin);\n // `focus` isn't available on the server\n if (typeof nativeElement.focus === 'function') {\n nativeElement.focus(options);\n }\n }\n }\n ngOnDestroy() {\n this._elementInfo.forEach((_info, element) => this.stopMonitoring(element));\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n _getWindow() {\n return this._document.defaultView || window;\n }\n _getFocusOrigin(focusEventTarget) {\n if (this._origin) {\n // If the origin was realized via a touch interaction, we need to perform additional checks\n // to determine whether the focus origin should be attributed to touch or program.\n if (this._originFromTouchInteraction) {\n return this._shouldBeAttributedToTouch(focusEventTarget) ? 'touch' : 'program';\n } else {\n return this._origin;\n }\n }\n // If the window has just regained focus, we can restore the most recent origin from before the\n // window blurred. Otherwise, we've reached the point where we can't identify the source of the\n // focus. This typically means one of two things happened:\n //\n // 1) The element was programmatically focused, or\n // 2) The element was focused via screen reader navigation (which generally doesn't fire\n // events).\n //\n // Because we can't distinguish between these two cases, we default to setting `program`.\n if (this._windowFocused && this._lastFocusOrigin) {\n return this._lastFocusOrigin;\n }\n // If the interaction is coming from an input label, we consider it a mouse interactions.\n // This is a special case where focus moves on `click`, rather than `mousedown` which breaks\n // our detection, because all our assumptions are for `mousedown`. We need to handle this\n // special case, because it's very common for checkboxes and radio buttons.\n if (focusEventTarget && this._isLastInteractionFromInputLabel(focusEventTarget)) {\n return 'mouse';\n }\n return 'program';\n }\n /**\n * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a\n * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we\n * handle a focus event following a touch interaction, we need to determine whether (1) the focus\n * event was directly caused by the touch interaction or (2) the focus event was caused by a\n * subsequent programmatic focus call triggered by the touch interaction.\n * @param focusEventTarget The target of the focus event under examination.\n */\n _shouldBeAttributedToTouch(focusEventTarget) {\n // Please note that this check is not perfect. Consider the following edge case:\n //\n //
\n // \n //
\n //\n // Suppose there is a FocusMonitor in IMMEDIATE mode attached to #parent. When the user touches\n // #child, #parent is programmatically focused. This code will attribute the focus to touch\n // instead of program. This is a relatively minor edge-case that can be worked around by using\n // focusVia(parent, 'program') to focus #parent.\n return this._detectionMode === FocusMonitorDetectionMode.EVENTUAL || !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget);\n }\n /**\n * Sets the focus classes on the element based on the given focus origin.\n * @param element The element to update the classes on.\n * @param origin The focus origin.\n */\n _setClasses(element, origin) {\n element.classList.toggle('cdk-focused', !!origin);\n element.classList.toggle('cdk-touch-focused', origin === 'touch');\n element.classList.toggle('cdk-keyboard-focused', origin === 'keyboard');\n element.classList.toggle('cdk-mouse-focused', origin === 'mouse');\n element.classList.toggle('cdk-program-focused', origin === 'program');\n }\n /**\n * Updates the focus origin. If we're using immediate detection mode, we schedule an async\n * function to clear the origin at the end of a timeout. The duration of the timeout depends on\n * the origin being set.\n * @param origin The origin to set.\n * @param isFromInteraction Whether we are setting the origin from an interaction event.\n */\n _setOrigin(origin, isFromInteraction = false) {\n this._ngZone.runOutsideAngular(() => {\n this._origin = origin;\n this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;\n // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms\n // for a touch event). We reset the origin at the next tick because Firefox focuses one tick\n // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for\n // a touch event because when a touch event is fired, the associated focus event isn't yet in\n // the event queue. Before doing so, clear any pending timeouts.\n if (this._detectionMode === FocusMonitorDetectionMode.IMMEDIATE) {\n clearTimeout(this._originTimeoutId);\n const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;\n this._originTimeoutId = setTimeout(() => this._origin = null, ms);\n }\n });\n }\n /**\n * Handles focus events on a registered element.\n * @param event The focus event.\n * @param element The monitored element.\n */\n _onFocus(event, element) {\n // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent\n // focus event affecting the monitored element. If we want to use the origin of the first event\n // instead we should check for the cdk-focused class here and return if the element already has\n // it. (This only matters for elements that have includesChildren = true).\n // If we are not counting child-element-focus as focused, make sure that the event target is the\n // monitored element itself.\n const elementInfo = this._elementInfo.get(element);\n const focusEventTarget = _getEventTarget(event);\n if (!elementInfo || !elementInfo.checkChildren && element !== focusEventTarget) {\n return;\n }\n this._originChanged(element, this._getFocusOrigin(focusEventTarget), elementInfo);\n }\n /**\n * Handles blur events on a registered element.\n * @param event The blur event.\n * @param element The monitored element.\n */\n _onBlur(event, element) {\n // If we are counting child-element-focus as focused, make sure that we aren't just blurring in\n // order to focus another child of the monitored element.\n const elementInfo = this._elementInfo.get(element);\n if (!elementInfo || elementInfo.checkChildren && event.relatedTarget instanceof Node && element.contains(event.relatedTarget)) {\n return;\n }\n this._setClasses(element);\n this._emitOrigin(elementInfo, null);\n }\n _emitOrigin(info, origin) {\n if (info.subject.observers.length) {\n this._ngZone.run(() => info.subject.next(origin));\n }\n }\n _registerGlobalListeners(elementInfo) {\n if (!this._platform.isBrowser) {\n return;\n }\n const rootNode = elementInfo.rootNode;\n const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;\n if (!rootNodeFocusListeners) {\n this._ngZone.runOutsideAngular(() => {\n rootNode.addEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n rootNode.addEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n });\n }\n this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1);\n // Register global listeners when first element is monitored.\n if (++this._monitoredElementCount === 1) {\n // Note: we listen to events in the capture phase so we\n // can detect them even if the user stops propagation.\n this._ngZone.runOutsideAngular(() => {\n const window = this._getWindow();\n window.addEventListener('focus', this._windowFocusListener);\n });\n // The InputModalityDetector is also just a collection of global listeners.\n this._inputModalityDetector.modalityDetected.pipe(takeUntil(this._stopInputModalityDetector)).subscribe(modality => {\n this._setOrigin(modality, true /* isFromInteraction */);\n });\n }\n }\n _removeGlobalListeners(elementInfo) {\n const rootNode = elementInfo.rootNode;\n if (this._rootNodeFocusListenerCount.has(rootNode)) {\n const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);\n if (rootNodeFocusListeners > 1) {\n this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);\n } else {\n rootNode.removeEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n rootNode.removeEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n this._rootNodeFocusListenerCount.delete(rootNode);\n }\n }\n // Unregister global listeners when last element is unmonitored.\n if (! --this._monitoredElementCount) {\n const window = this._getWindow();\n window.removeEventListener('focus', this._windowFocusListener);\n // Equivalently, stop our InputModalityDetector subscription.\n this._stopInputModalityDetector.next();\n // Clear timeouts for all potentially pending timeouts to prevent the leaks.\n clearTimeout(this._windowFocusTimeoutId);\n clearTimeout(this._originTimeoutId);\n }\n }\n /** Updates all the state on an element once its focus origin has changed. */\n _originChanged(element, origin, elementInfo) {\n this._setClasses(element, origin);\n this._emitOrigin(elementInfo, origin);\n this._lastFocusOrigin = origin;\n }\n /**\n * Collects the `MonitoredElementInfo` of a particular element and\n * all of its ancestors that have enabled `checkChildren`.\n * @param element Element from which to start the search.\n */\n _getClosestElementsInfo(element) {\n const results = [];\n this._elementInfo.forEach((info, currentElement) => {\n if (currentElement === element || info.checkChildren && currentElement.contains(element)) {\n results.push([currentElement, info]);\n }\n });\n return results;\n }\n /**\n * Returns whether an interaction is likely to have come from the user clicking the `label` of\n * an `input` or `textarea` in order to focus it.\n * @param focusEventTarget Target currently receiving focus.\n */\n _isLastInteractionFromInputLabel(focusEventTarget) {\n const {\n _mostRecentTarget: mostRecentTarget,\n mostRecentModality\n } = this._inputModalityDetector;\n // If the last interaction used the mouse on an element contained by one of the labels\n // of an `input`/`textarea` that is currently focused, it is very likely that the\n // user redirected focus using the label.\n if (mostRecentModality !== 'mouse' || !mostRecentTarget || mostRecentTarget === focusEventTarget || focusEventTarget.nodeName !== 'INPUT' && focusEventTarget.nodeName !== 'TEXTAREA' || focusEventTarget.disabled) {\n return false;\n }\n const labels = focusEventTarget.labels;\n if (labels) {\n for (let i = 0; i < labels.length; i++) {\n if (labels[i].contains(mostRecentTarget)) {\n return true;\n }\n }\n }\n return false;\n }\n static ɵfac = function FocusMonitor_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || FocusMonitor)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FocusMonitor,\n factory: FocusMonitor.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(FocusMonitor, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or\n * programmatically) and adds corresponding classes to the element.\n *\n * There are two variants of this directive:\n * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is\n * focused.\n * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.\n */\nclass CdkMonitorFocus {\n _elementRef = inject(ElementRef);\n _focusMonitor = inject(FocusMonitor);\n _monitorSubscription;\n _focusOrigin = null;\n cdkFocusChange = new EventEmitter();\n constructor() {}\n get focusOrigin() {\n return this._focusOrigin;\n }\n ngAfterViewInit() {\n const element = this._elementRef.nativeElement;\n this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus')).subscribe(origin => {\n this._focusOrigin = origin;\n this.cdkFocusChange.emit(origin);\n });\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n if (this._monitorSubscription) {\n this._monitorSubscription.unsubscribe();\n }\n }\n static ɵfac = function CdkMonitorFocus_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkMonitorFocus)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkMonitorFocus,\n selectors: [[\"\", \"cdkMonitorElementFocus\", \"\"], [\"\", \"cdkMonitorSubtreeFocus\", \"\"]],\n outputs: {\n cdkFocusChange: \"cdkFocusChange\"\n },\n exportAs: [\"cdkMonitorFocus\"]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkMonitorFocus, [{\n type: Directive,\n args: [{\n selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',\n exportAs: 'cdkMonitorFocus'\n }]\n }], () => [], {\n cdkFocusChange: [{\n type: Output\n }]\n });\n})();\nexport { CdkMonitorFocus, FOCUS_MONITOR_DEFAULT_OPTIONS, FocusMonitor, FocusMonitorDetectionMode, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector };\n", "export { _CdkPrivateStyleLoader } from './style-loader.mjs';\nimport * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n/**\n * Component used to load the .cdk-visually-hidden styles.\n * @docs-private\n */\nclass _VisuallyHiddenLoader {\n static ɵfac = function _VisuallyHiddenLoader_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _VisuallyHiddenLoader)();\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: _VisuallyHiddenLoader,\n selectors: [[\"ng-component\"]],\n exportAs: [\"cdkVisuallyHidden\"],\n decls: 0,\n vars: 0,\n template: function _VisuallyHiddenLoader_Template(rf, ctx) {},\n styles: [\".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(_VisuallyHiddenLoader, [{\n type: Component,\n args: [{\n exportAs: 'cdkVisuallyHidden',\n encapsulation: ViewEncapsulation.None,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [\".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\\n\"]\n }]\n }], null, null);\n})();\nexport { _VisuallyHiddenLoader };\n", "import * as i0 from '@angular/core';\nimport { inject, CSP_NONCE, Injectable, NgZone } from '@angular/core';\nimport { Subject, combineLatest, concat, Observable } from 'rxjs';\nimport { take, skip, debounceTime, map, startWith, takeUntil } from 'rxjs/operators';\nimport { Platform } from './platform2.mjs';\nimport { coerceArray } from './array.mjs';\n\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility = new Set();\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode;\n/** A utility for calling matchMedia queries. */\nclass MediaMatcher {\n _platform = inject(Platform);\n _nonce = inject(CSP_NONCE, {\n optional: true\n });\n /** The internal matchMedia method to return back a MediaQueryList like object. */\n _matchMedia;\n constructor() {\n this._matchMedia = this._platform.isBrowser && window.matchMedia ?\n // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window) : noopMatchMedia;\n }\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n matchMedia(query) {\n if (this._platform.WEBKIT || this._platform.BLINK) {\n createEmptyStyleRule(query, this._nonce);\n }\n return this._matchMedia(query);\n }\n static ɵfac = function MediaMatcher_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MediaMatcher)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MediaMatcher,\n factory: MediaMatcher.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(MediaMatcher, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * Creates an empty stylesheet that is used to work around browser inconsistencies related to\n * `matchMedia`. At the time of writing, it handles the following cases:\n * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia`\n * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration.\n * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules\n * inside the `@media` match existing elements on the page. We work around it by having one rule\n * targeting the `body`. See https://github.com/angular/components/issues/23546.\n */\nfunction createEmptyStyleRule(query, nonce) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n if (nonce) {\n mediaQueryStyleNode.setAttribute('nonce', nonce);\n }\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head.appendChild(mediaQueryStyleNode);\n }\n if (mediaQueryStyleNode.sheet) {\n mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n } catch (e) {\n console.error(e);\n }\n}\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query) {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: () => {},\n removeListener: () => {}\n };\n}\n\n/** Utility for checking the matching state of `@media` queries. */\nclass BreakpointObserver {\n _mediaMatcher = inject(MediaMatcher);\n _zone = inject(NgZone);\n /** A map of all media queries currently being listened for. */\n _queries = new Map();\n /** A subject for all other observables to takeUntil based on. */\n _destroySubject = new Subject();\n constructor() {}\n /** Completes the active subject, signalling to all other observables to complete. */\n ngOnDestroy() {\n this._destroySubject.next();\n this._destroySubject.complete();\n }\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n isMatched(value) {\n const queries = splitQueries(coerceArray(value));\n return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n }\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n observe(value) {\n const queries = splitQueries(coerceArray(value));\n const observables = queries.map(query => this._registerQuery(query).observable);\n let stateObservable = combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = concat(stateObservable.pipe(take(1)), stateObservable.pipe(skip(1), debounceTime(0)));\n return stateObservable.pipe(map(breakpointStates => {\n const response = {\n matches: false,\n breakpoints: {}\n };\n breakpointStates.forEach(({\n matches,\n query\n }) => {\n response.matches = response.matches || matches;\n response.breakpoints[query] = matches;\n });\n return response;\n }));\n }\n /** Registers a specific query to be listened for. */\n _registerQuery(query) {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query);\n }\n const mql = this._mediaMatcher.matchMedia(query);\n // Create callback for match changes and add it is as a listener.\n const queryObservable = new Observable(observer => {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n const handler = e => this._zone.run(() => observer.next(e));\n mql.addListener(handler);\n return () => {\n mql.removeListener(handler);\n };\n }).pipe(startWith(mql), map(({\n matches\n }) => ({\n query,\n matches\n })), takeUntil(this._destroySubject));\n // Add the MediaQueryList to the set of queries.\n const output = {\n observable: queryObservable,\n mql\n };\n this._queries.set(query, output);\n return output;\n }\n static ɵfac = function BreakpointObserver_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreakpointObserver)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BreakpointObserver,\n factory: BreakpointObserver.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(BreakpointObserver, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries) {\n return queries.map(query => query.split(',')).reduce((a1, a2) => a1.concat(a2)).map(query => query.trim());\n}\nexport { BreakpointObserver, MediaMatcher };\n", "import * as i0 from '@angular/core';\nimport { Injectable, inject, NgZone, ElementRef, EventEmitter, booleanAttribute, Directive, Output, Input, NgModule } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { map, filter, debounceTime } from 'rxjs/operators';\nimport { coerceNumberProperty, coerceElement } from './element.mjs';\n\n// Angular may add, remove, or edit comment nodes during change detection. We don't care about\n// these changes because they don't affect the user-preceived content, and worse it can cause\n// infinite change detection cycles where the change detection updates a comment, triggering the\n// MutationObserver, triggering another change detection and kicking the cycle off again.\nfunction shouldIgnoreRecord(record) {\n // Ignore changes to comment text.\n if (record.type === 'characterData' && record.target instanceof Comment) {\n return true;\n }\n // Ignore addition / removal of comments.\n if (record.type === 'childList') {\n for (let i = 0; i < record.addedNodes.length; i++) {\n if (!(record.addedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n for (let i = 0; i < record.removedNodes.length; i++) {\n if (!(record.removedNodes[i] instanceof Comment)) {\n return false;\n }\n }\n return true;\n }\n // Observe everything else.\n return false;\n}\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\nclass MutationObserverFactory {\n create(callback) {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n static ɵfac = function MutationObserverFactory_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MutationObserverFactory)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MutationObserverFactory,\n factory: MutationObserverFactory.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(MutationObserverFactory, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], null, null);\n})();\n/** An injectable service that allows watching elements for changes to their content. */\nclass ContentObserver {\n _mutationObserverFactory = inject(MutationObserverFactory);\n /** Keeps track of the existing MutationObservers so they can be reused. */\n _observedElements = new Map();\n _ngZone = inject(NgZone);\n constructor() {}\n ngOnDestroy() {\n this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n }\n observe(elementOrRef) {\n const element = coerceElement(elementOrRef);\n return new Observable(observer => {\n const stream = this._observeElement(element);\n const subscription = stream.pipe(map(records => records.filter(record => !shouldIgnoreRecord(record))), filter(records => !!records.length)).subscribe(records => {\n this._ngZone.run(() => {\n observer.next(records);\n });\n });\n return () => {\n subscription.unsubscribe();\n this._unobserveElement(element);\n };\n });\n }\n /**\n * Observes the given element by using the existing MutationObserver if available, or creating a\n * new one if not.\n */\n _observeElement(element) {\n return this._ngZone.runOutsideAngular(() => {\n if (!this._observedElements.has(element)) {\n const stream = new Subject();\n const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n this._observedElements.set(element, {\n observer,\n stream,\n count: 1\n });\n } else {\n this._observedElements.get(element).count++;\n }\n return this._observedElements.get(element).stream;\n });\n }\n /**\n * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n * observing this element.\n */\n _unobserveElement(element) {\n if (this._observedElements.has(element)) {\n this._observedElements.get(element).count--;\n if (!this._observedElements.get(element).count) {\n this._cleanupObserver(element);\n }\n }\n }\n /** Clean up the underlying MutationObserver for the specified element. */\n _cleanupObserver(element) {\n if (this._observedElements.has(element)) {\n const {\n observer,\n stream\n } = this._observedElements.get(element);\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this._observedElements.delete(element);\n }\n }\n static ɵfac = function ContentObserver_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ContentObserver)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ContentObserver,\n factory: ContentObserver.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(ContentObserver, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\nclass CdkObserveContent {\n _contentObserver = inject(ContentObserver);\n _elementRef = inject(ElementRef);\n /** Event emitted for each change in the element's content. */\n event = new EventEmitter();\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = value;\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n _disabled = false;\n /** Debounce interval for emitting the changes. */\n get debounce() {\n return this._debounce;\n }\n set debounce(value) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n _debounce;\n _currentSubscription = null;\n constructor() {}\n ngAfterContentInit() {\n if (!this._currentSubscription && !this.disabled) {\n this._subscribe();\n }\n }\n ngOnDestroy() {\n this._unsubscribe();\n }\n _subscribe() {\n this._unsubscribe();\n const stream = this._contentObserver.observe(this._elementRef);\n this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);\n }\n _unsubscribe() {\n this._currentSubscription?.unsubscribe();\n }\n static ɵfac = function CdkObserveContent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkObserveContent)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkObserveContent,\n selectors: [[\"\", \"cdkObserveContent\", \"\"]],\n inputs: {\n disabled: [2, \"cdkObserveContentDisabled\", \"disabled\", booleanAttribute],\n debounce: \"debounce\"\n },\n outputs: {\n event: \"cdkObserveContent\"\n },\n exportAs: [\"cdkObserveContent\"]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkObserveContent, [{\n type: Directive,\n args: [{\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent'\n }]\n }], () => [], {\n event: [{\n type: Output,\n args: ['cdkObserveContent']\n }],\n disabled: [{\n type: Input,\n args: [{\n alias: 'cdkObserveContentDisabled',\n transform: booleanAttribute\n }]\n }],\n debounce: [{\n type: Input\n }]\n });\n})();\nclass ObserversModule {\n static ɵfac = function ObserversModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ObserversModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ObserversModule,\n imports: [CdkObserveContent],\n exports: [CdkObserveContent]\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [MutationObserverFactory]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(ObserversModule, [{\n type: NgModule,\n args: [{\n imports: [CdkObserveContent],\n exports: [CdkObserveContent],\n providers: [MutationObserverFactory]\n }]\n }], null, null);\n})();\nexport { CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule };\n", "import * as i0 from '@angular/core';\nimport { inject, Injectable, afterNextRender, NgZone, DOCUMENT, Injector, ElementRef, booleanAttribute, Directive, Input, InjectionToken, NgModule } from '@angular/core';\nimport { CdkMonitorFocus } from './focus-monitor.mjs';\nimport { Platform } from './platform2.mjs';\nimport { _getFocusedElementPierceShadowDom } from './shadow-dom.mjs';\nimport { _CdkPrivateStyleLoader } from './style-loader.mjs';\nimport { _VisuallyHiddenLoader } from './private.mjs';\nimport { BreakpointObserver } from './breakpoints-observer.mjs';\nimport { ContentObserver, ObserversModule } from './observers.mjs';\n\n/**\n * Configuration for the isFocusable method.\n */\nclass IsFocusableConfig {\n /**\n * Whether to count an element as focusable even if it is not currently visible.\n */\n ignoreVisibility = false;\n}\n// The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n// Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n// supported.\n/**\n * Utility for checking the interactivity of an element, such as whether it is focusable or\n * tabbable.\n */\nclass InteractivityChecker {\n _platform = inject(Platform);\n constructor() {}\n /**\n * Gets whether an element is disabled.\n *\n * @param element Element to be checked.\n * @returns Whether the element is disabled.\n */\n isDisabled(element) {\n // This does not capture some cases, such as a non-form control with a disabled attribute or\n // a form control inside of a disabled form, but should capture the most common cases.\n return element.hasAttribute('disabled');\n }\n /**\n * Gets whether an element is visible for the purposes of interactivity.\n *\n * This will capture states like `display: none` and `visibility: hidden`, but not things like\n * being clipped by an `overflow: hidden` parent or being outside the viewport.\n *\n * @returns Whether the element is visible.\n */\n isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }\n /**\n * Gets whether an element can be reached via Tab key.\n * Assumes that the element has already been checked with isFocusable.\n *\n * @param element Element to be checked.\n * @returns Whether the element is tabbable.\n */\n isTabbable(element) {\n // Nothing is tabbable on the server 😎\n if (!this._platform.isBrowser) {\n return false;\n }\n const frameElement = getFrameElement(getWindow(element));\n if (frameElement) {\n // Frame elements inherit their tabindex onto all child elements.\n if (getTabIndexValue(frameElement) === -1) {\n return false;\n }\n // Browsers disable tabbing to an element inside of an invisible frame.\n if (!this.isVisible(frameElement)) {\n return false;\n }\n }\n let nodeName = element.nodeName.toLowerCase();\n let tabIndexValue = getTabIndexValue(element);\n if (element.hasAttribute('contenteditable')) {\n return tabIndexValue !== -1;\n }\n if (nodeName === 'iframe' || nodeName === 'object') {\n // The frame or object's content may be tabbable depending on the content, but it's\n // not possibly to reliably detect the content of the frames. We always consider such\n // elements as non-tabbable.\n return false;\n }\n // In iOS, the browser only considers some specific elements as tabbable.\n if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n return false;\n }\n if (nodeName === 'audio') {\n // Audio elements without controls enabled are never tabbable, regardless\n // of the tabindex attribute explicitly being set.\n if (!element.hasAttribute('controls')) {\n return false;\n }\n // Audio elements with controls are by default tabbable unless the\n // tabindex attribute is set to `-1` explicitly.\n return tabIndexValue !== -1;\n }\n if (nodeName === 'video') {\n // For all video elements, if the tabindex attribute is set to `-1`, the video\n // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`\n // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The\n // tabindex attribute is the source of truth here.\n if (tabIndexValue === -1) {\n return false;\n }\n // If the tabindex is explicitly set, and not `-1` (as per check before), the\n // video element is always tabbable (regardless of whether it has controls or not).\n if (tabIndexValue !== null) {\n return true;\n }\n // Otherwise (when no explicit tabindex is set), a video is only tabbable if it\n // has controls enabled. Firefox is special as videos are always tabbable regardless\n // of whether there are controls or not.\n return this._platform.FIREFOX || element.hasAttribute('controls');\n }\n return element.tabIndex >= 0;\n }\n /**\n * Gets whether an element can be focused by the user.\n *\n * @param element Element to be checked.\n * @param config The config object with options to customize this method's behavior\n * @returns Whether the element is focusable.\n */\n isFocusable(element, config) {\n // Perform checks in order of left to most expensive.\n // Again, naive approach that does not capture many edge cases and browser quirks.\n return isPotentiallyFocusable(element) && !this.isDisabled(element) && (config?.ignoreVisibility || this.isVisible(element));\n }\n static ɵfac = function InteractivityChecker_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || InteractivityChecker)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InteractivityChecker,\n factory: InteractivityChecker.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(InteractivityChecker, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * Returns the frame element from a window object. Since browsers like MS Edge throw errors if\n * the frameElement property is being accessed from a different host address, this property\n * should be accessed carefully.\n */\nfunction getFrameElement(window) {\n try {\n return window.frameElement;\n } catch {\n return null;\n }\n}\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element) {\n // Use logic from jQuery to check for an invisible element.\n // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n return !!(element.offsetWidth || element.offsetHeight || typeof element.getClientRects === 'function' && element.getClientRects().length);\n}\n/** Gets whether an element's */\nfunction isNativeFormElement(element) {\n let nodeName = element.nodeName.toLowerCase();\n return nodeName === 'input' || nodeName === 'select' || nodeName === 'button' || nodeName === 'textarea';\n}\n/** Gets whether an element is an ``. */\nfunction isHiddenInput(element) {\n return isInputElement(element) && element.type == 'hidden';\n}\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element) {\n return isAnchorElement(element) && element.hasAttribute('href');\n}\n/** Gets whether an element is an input element. */\nfunction isInputElement(element) {\n return element.nodeName.toLowerCase() == 'input';\n}\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element) {\n return element.nodeName.toLowerCase() == 'a';\n}\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element) {\n if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n return false;\n }\n let tabIndex = element.getAttribute('tabindex');\n return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element) {\n if (!hasValidTabIndex(element)) {\n return null;\n }\n // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);\n return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element) {\n let nodeName = element.nodeName.toLowerCase();\n let inputType = nodeName === 'input' && element.type;\n return inputType === 'text' || inputType === 'password' || nodeName === 'select' || nodeName === 'textarea';\n}\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element) {\n // Inputs are potentially focusable *unless* they're type=\"hidden\".\n if (isHiddenInput(element)) {\n return false;\n }\n return isNativeFormElement(element) || isAnchorWithHref(element) || element.hasAttribute('contenteditable') || hasValidTabIndex(element);\n}\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node) {\n // ownerDocument is null if `node` itself *is* a document.\n return node.ownerDocument && node.ownerDocument.defaultView || window;\n}\n\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class currently uses a relatively simple approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.\n */\nclass FocusTrap {\n _element;\n _checker;\n _ngZone;\n _document;\n _injector;\n _startAnchor;\n _endAnchor;\n _hasAttached = false;\n // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.\n startAnchorListener = () => this.focusLastTabbableElement();\n endAnchorListener = () => this.focusFirstTabbableElement();\n /** Whether the focus trap is active. */\n get enabled() {\n return this._enabled;\n }\n set enabled(value) {\n this._enabled = value;\n if (this._startAnchor && this._endAnchor) {\n this._toggleAnchorTabIndex(value, this._startAnchor);\n this._toggleAnchorTabIndex(value, this._endAnchor);\n }\n }\n _enabled = true;\n constructor(_element, _checker, _ngZone, _document, deferAnchors = false, /** @breaking-change 20.0.0 param to become required */\n _injector) {\n this._element = _element;\n this._checker = _checker;\n this._ngZone = _ngZone;\n this._document = _document;\n this._injector = _injector;\n if (!deferAnchors) {\n this.attachAnchors();\n }\n }\n /** Destroys the focus trap by cleaning up the anchors. */\n destroy() {\n const startAnchor = this._startAnchor;\n const endAnchor = this._endAnchor;\n if (startAnchor) {\n startAnchor.removeEventListener('focus', this.startAnchorListener);\n startAnchor.remove();\n }\n if (endAnchor) {\n endAnchor.removeEventListener('focus', this.endAnchorListener);\n endAnchor.remove();\n }\n this._startAnchor = this._endAnchor = null;\n this._hasAttached = false;\n }\n /**\n * Inserts the anchors into the DOM. This is usually done automatically\n * in the constructor, but can be deferred for cases like directives with `*ngIf`.\n * @returns Whether the focus trap managed to attach successfully. This may not be the case\n * if the target element isn't currently in the DOM.\n */\n attachAnchors() {\n // If we're not on the browser, there can be no focus to trap.\n if (this._hasAttached) {\n return true;\n }\n this._ngZone.runOutsideAngular(() => {\n if (!this._startAnchor) {\n this._startAnchor = this._createAnchor();\n this._startAnchor.addEventListener('focus', this.startAnchorListener);\n }\n if (!this._endAnchor) {\n this._endAnchor = this._createAnchor();\n this._endAnchor.addEventListener('focus', this.endAnchorListener);\n }\n });\n if (this._element.parentNode) {\n this._element.parentNode.insertBefore(this._startAnchor, this._element);\n this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);\n this._hasAttached = true;\n }\n return this._hasAttached;\n }\n /**\n * Waits for the zone to stabilize, then focuses the first tabbable element.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusInitialElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusInitialElement(options)));\n });\n }\n /**\n * Waits for the zone to stabilize, then focuses\n * the first tabbable element within the focus trap region.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusFirstTabbableElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusFirstTabbableElement(options)));\n });\n }\n /**\n * Waits for the zone to stabilize, then focuses\n * the last tabbable element within the focus trap region.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusLastTabbableElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusLastTabbableElement(options)));\n });\n }\n /**\n * Get the specified boundary element of the trapped region.\n * @param bound The boundary to get (start or end of trapped region).\n * @returns The boundary element.\n */\n _getRegionBoundary(bound) {\n // Contains the deprecated version of selector, for temporary backwards comparability.\n const markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n for (let i = 0; i < markers.length; i++) {\n // @breaking-change 8.0.0\n if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated ` + `attribute will be removed in 8.0.0.`, markers[i]);\n } else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` + `will be removed in 8.0.0.`, markers[i]);\n }\n }\n }\n if (bound == 'start') {\n return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);\n }\n return markers.length ? markers[markers.length - 1] : this._getLastTabbableElement(this._element);\n }\n /**\n * Focuses the element that should be focused when the focus trap is initialized.\n * @returns Whether focus was moved successfully.\n */\n focusInitialElement(options) {\n // Contains the deprecated version of selector, for temporary backwards comparability.\n const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);\n if (redirectToElement) {\n // @breaking-change 8.0.0\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && redirectToElement.hasAttribute(`cdk-focus-initial`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` + `use 'cdkFocusInitial' instead. The deprecated attribute ` + `will be removed in 8.0.0`, redirectToElement);\n }\n // Warn the consumer if the element they've pointed to\n // isn't focusable, when not in production mode.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._checker.isFocusable(redirectToElement)) {\n console.warn(`Element matching '[cdkFocusInitial]' is not focusable.`, redirectToElement);\n }\n if (!this._checker.isFocusable(redirectToElement)) {\n const focusableChild = this._getFirstTabbableElement(redirectToElement);\n focusableChild?.focus(options);\n return !!focusableChild;\n }\n redirectToElement.focus(options);\n return true;\n }\n return this.focusFirstTabbableElement(options);\n }\n /**\n * Focuses the first tabbable element within the focus trap region.\n * @returns Whether focus was moved successfully.\n */\n focusFirstTabbableElement(options) {\n const redirectToElement = this._getRegionBoundary('start');\n if (redirectToElement) {\n redirectToElement.focus(options);\n }\n return !!redirectToElement;\n }\n /**\n * Focuses the last tabbable element within the focus trap region.\n * @returns Whether focus was moved successfully.\n */\n focusLastTabbableElement(options) {\n const redirectToElement = this._getRegionBoundary('end');\n if (redirectToElement) {\n redirectToElement.focus(options);\n }\n return !!redirectToElement;\n }\n /**\n * Checks whether the focus trap has successfully been attached.\n */\n hasAttached() {\n return this._hasAttached;\n }\n /** Get the first tabbable element from a DOM subtree (inclusive). */\n _getFirstTabbableElement(root) {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n const children = root.children;\n for (let i = 0; i < children.length; i++) {\n const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getFirstTabbableElement(children[i]) : null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n }\n /** Get the last tabbable element from a DOM subtree (inclusive). */\n _getLastTabbableElement(root) {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n // Iterate in reverse DOM order.\n const children = root.children;\n for (let i = children.length - 1; i >= 0; i--) {\n const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getLastTabbableElement(children[i]) : null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n }\n /** Creates an anchor element. */\n _createAnchor() {\n const anchor = this._document.createElement('div');\n this._toggleAnchorTabIndex(this._enabled, anchor);\n anchor.classList.add('cdk-visually-hidden');\n anchor.classList.add('cdk-focus-trap-anchor');\n anchor.setAttribute('aria-hidden', 'true');\n return anchor;\n }\n /**\n * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.\n * @param isEnabled Whether the focus trap is enabled.\n * @param anchor Anchor on which to toggle the tabindex.\n */\n _toggleAnchorTabIndex(isEnabled, anchor) {\n // Remove the tabindex completely, rather than setting it to -1, because if the\n // element has a tabindex, the user might still hit it when navigating with the arrow keys.\n isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');\n }\n /**\n * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.\n * @param enabled: Whether the anchors should trap Tab.\n */\n toggleAnchors(enabled) {\n if (this._startAnchor && this._endAnchor) {\n this._toggleAnchorTabIndex(enabled, this._startAnchor);\n this._toggleAnchorTabIndex(enabled, this._endAnchor);\n }\n }\n /** Executes a function when the zone is stable. */\n _executeOnStable(fn) {\n // TODO: remove this conditional when injector is required in the constructor.\n if (this._injector) {\n afterNextRender(fn, {\n injector: this._injector\n });\n } else {\n setTimeout(fn);\n }\n }\n}\n/**\n * Factory that allows easy instantiation of focus traps.\n */\nclass FocusTrapFactory {\n _checker = inject(InteractivityChecker);\n _ngZone = inject(NgZone);\n _document = inject(DOCUMENT);\n _injector = inject(Injector);\n constructor() {\n inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);\n }\n /**\n * Creates a focus-trapped region around the given element.\n * @param element The element around which focus will be trapped.\n * @param deferCaptureElements Defers the creation of focus-capturing elements to be done\n * manually by the user.\n * @returns The created focus trap instance.\n */\n create(element, deferCaptureElements = false) {\n return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements, this._injector);\n }\n static ɵfac = function FocusTrapFactory_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || FocusTrapFactory)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FocusTrapFactory,\n factory: FocusTrapFactory.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(FocusTrapFactory, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/** Directive for trapping focus within a region. */\nclass CdkTrapFocus {\n _elementRef = inject(ElementRef);\n _focusTrapFactory = inject(FocusTrapFactory);\n /** Underlying FocusTrap instance. */\n focusTrap;\n /** Previously focused element to restore focus to upon destroy when using autoCapture. */\n _previouslyFocusedElement = null;\n /** Whether the focus trap is active. */\n get enabled() {\n return this.focusTrap?.enabled || false;\n }\n set enabled(value) {\n if (this.focusTrap) {\n this.focusTrap.enabled = value;\n }\n }\n /**\n * Whether the directive should automatically move focus into the trapped region upon\n * initialization and return focus to the previous activeElement upon destruction.\n */\n autoCapture;\n constructor() {\n const platform = inject(Platform);\n if (platform.isBrowser) {\n this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n }\n }\n ngOnDestroy() {\n this.focusTrap?.destroy();\n // If we stored a previously focused element when using autoCapture, return focus to that\n // element now that the trapped region is being destroyed.\n if (this._previouslyFocusedElement) {\n this._previouslyFocusedElement.focus();\n this._previouslyFocusedElement = null;\n }\n }\n ngAfterContentInit() {\n this.focusTrap?.attachAnchors();\n if (this.autoCapture) {\n this._captureFocus();\n }\n }\n ngDoCheck() {\n if (this.focusTrap && !this.focusTrap.hasAttached()) {\n this.focusTrap.attachAnchors();\n }\n }\n ngOnChanges(changes) {\n const autoCaptureChange = changes['autoCapture'];\n if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture && this.focusTrap?.hasAttached()) {\n this._captureFocus();\n }\n }\n _captureFocus() {\n this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();\n this.focusTrap?.focusInitialElementWhenReady();\n }\n static ɵfac = function CdkTrapFocus_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkTrapFocus)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkTrapFocus,\n selectors: [[\"\", \"cdkTrapFocus\", \"\"]],\n inputs: {\n enabled: [2, \"cdkTrapFocus\", \"enabled\", booleanAttribute],\n autoCapture: [2, \"cdkTrapFocusAutoCapture\", \"autoCapture\", booleanAttribute]\n },\n exportAs: [\"cdkTrapFocus\"],\n features: [i0.ɵɵNgOnChangesFeature]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkTrapFocus, [{\n type: Directive,\n args: [{\n selector: '[cdkTrapFocus]',\n exportAs: 'cdkTrapFocus'\n }]\n }], () => [], {\n enabled: [{\n type: Input,\n args: [{\n alias: 'cdkTrapFocus',\n transform: booleanAttribute\n }]\n }],\n autoCapture: [{\n type: Input,\n args: [{\n alias: 'cdkTrapFocusAutoCapture',\n transform: booleanAttribute\n }]\n }]\n });\n})();\nconst LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement', {\n providedIn: 'root',\n factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY\n});\n/**\n * @docs-private\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n */\nfunction LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {\n return null;\n}\n/** Injection token that can be used to configure the default options for the LiveAnnouncer. */\nconst LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken('LIVE_ANNOUNCER_DEFAULT_OPTIONS');\nlet uniqueIds = 0;\nclass LiveAnnouncer {\n _ngZone = inject(NgZone);\n _defaultOptions = inject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, {\n optional: true\n });\n _liveElement;\n _document = inject(DOCUMENT);\n _previousTimeout;\n _currentPromise;\n _currentResolve;\n constructor() {\n const elementToken = inject(LIVE_ANNOUNCER_ELEMENT_TOKEN, {\n optional: true\n });\n this._liveElement = elementToken || this._createLiveElement();\n }\n announce(message, ...args) {\n const defaultOptions = this._defaultOptions;\n let politeness;\n let duration;\n if (args.length === 1 && typeof args[0] === 'number') {\n duration = args[0];\n } else {\n [politeness, duration] = args;\n }\n this.clear();\n clearTimeout(this._previousTimeout);\n if (!politeness) {\n politeness = defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';\n }\n if (duration == null && defaultOptions) {\n duration = defaultOptions.duration;\n }\n // TODO: ensure changing the politeness works on all environments we support.\n this._liveElement.setAttribute('aria-live', politeness);\n if (this._liveElement.id) {\n this._exposeAnnouncerToModals(this._liveElement.id);\n }\n // This 100ms timeout is necessary for some browser + screen-reader combinations:\n // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.\n // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a\n // second time without clearing and then using a non-zero delay.\n // (using JAWS 17 at time of this writing).\n return this._ngZone.runOutsideAngular(() => {\n if (!this._currentPromise) {\n this._currentPromise = new Promise(resolve => this._currentResolve = resolve);\n }\n clearTimeout(this._previousTimeout);\n this._previousTimeout = setTimeout(() => {\n this._liveElement.textContent = message;\n if (typeof duration === 'number') {\n this._previousTimeout = setTimeout(() => this.clear(), duration);\n }\n // For some reason in tests this can be undefined\n // Probably related to ZoneJS and every other thing that patches browser APIs in tests\n this._currentResolve?.();\n this._currentPromise = this._currentResolve = undefined;\n }, 100);\n return this._currentPromise;\n });\n }\n /**\n * Clears the current text from the announcer element. Can be used to prevent\n * screen readers from reading the text out again while the user is going\n * through the page landmarks.\n */\n clear() {\n if (this._liveElement) {\n this._liveElement.textContent = '';\n }\n }\n ngOnDestroy() {\n clearTimeout(this._previousTimeout);\n this._liveElement?.remove();\n this._liveElement = null;\n this._currentResolve?.();\n this._currentPromise = this._currentResolve = undefined;\n }\n _createLiveElement() {\n const elementClass = 'cdk-live-announcer-element';\n const previousElements = this._document.getElementsByClassName(elementClass);\n const liveEl = this._document.createElement('div');\n // Remove any old containers. This can happen when coming in from a server-side-rendered page.\n for (let i = 0; i < previousElements.length; i++) {\n previousElements[i].remove();\n }\n liveEl.classList.add(elementClass);\n liveEl.classList.add('cdk-visually-hidden');\n liveEl.setAttribute('aria-atomic', 'true');\n liveEl.setAttribute('aria-live', 'polite');\n liveEl.id = `cdk-live-announcer-${uniqueIds++}`;\n this._document.body.appendChild(liveEl);\n return liveEl;\n }\n /**\n * Some browsers won't expose the accessibility node of the live announcer element if there is an\n * `aria-modal` and the live announcer is outside of it. This method works around the issue by\n * pointing the `aria-owns` of all modals to the live announcer element.\n */\n _exposeAnnouncerToModals(id) {\n // TODO(http://github.com/angular/components/issues/26853): consider de-duplicating this with\n // the `SnakBarContainer` and other usages.\n //\n // Note that the selector here is limited to CDK overlays at the moment in order to reduce the\n // section of the DOM we need to look through. This should cover all the cases we support, but\n // the selector can be expanded if it turns out to be too narrow.\n const modals = this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal=\"true\"]');\n for (let i = 0; i < modals.length; i++) {\n const modal = modals[i];\n const ariaOwns = modal.getAttribute('aria-owns');\n if (!ariaOwns) {\n modal.setAttribute('aria-owns', id);\n } else if (ariaOwns.indexOf(id) === -1) {\n modal.setAttribute('aria-owns', ariaOwns + ' ' + id);\n }\n }\n }\n static ɵfac = function LiveAnnouncer_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || LiveAnnouncer)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: LiveAnnouncer,\n factory: LiveAnnouncer.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(LiveAnnouncer, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/**\n * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility\n * with a wider range of browsers and screen readers.\n */\nclass CdkAriaLive {\n _elementRef = inject(ElementRef);\n _liveAnnouncer = inject(LiveAnnouncer);\n _contentObserver = inject(ContentObserver);\n _ngZone = inject(NgZone);\n /** The aria-live politeness level to use when announcing messages. */\n get politeness() {\n return this._politeness;\n }\n set politeness(value) {\n this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';\n if (this._politeness === 'off') {\n if (this._subscription) {\n this._subscription.unsubscribe();\n this._subscription = null;\n }\n } else if (!this._subscription) {\n this._subscription = this._ngZone.runOutsideAngular(() => {\n return this._contentObserver.observe(this._elementRef).subscribe(() => {\n // Note that we use textContent here, rather than innerText, in order to avoid a reflow.\n const elementText = this._elementRef.nativeElement.textContent;\n // The `MutationObserver` fires also for attribute\n // changes which we don't want to announce.\n if (elementText !== this._previousAnnouncedText) {\n this._liveAnnouncer.announce(elementText, this._politeness, this.duration);\n this._previousAnnouncedText = elementText;\n }\n });\n });\n }\n }\n _politeness = 'polite';\n /** Time in milliseconds after which to clear out the announcer element. */\n duration;\n _previousAnnouncedText;\n _subscription;\n constructor() {\n inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);\n }\n ngOnDestroy() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n }\n static ɵfac = function CdkAriaLive_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkAriaLive)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkAriaLive,\n selectors: [[\"\", \"cdkAriaLive\", \"\"]],\n inputs: {\n politeness: [0, \"cdkAriaLive\", \"politeness\"],\n duration: [0, \"cdkAriaLiveDuration\", \"duration\"]\n },\n exportAs: [\"cdkAriaLive\"]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkAriaLive, [{\n type: Directive,\n args: [{\n selector: '[cdkAriaLive]',\n exportAs: 'cdkAriaLive'\n }]\n }], () => [], {\n politeness: [{\n type: Input,\n args: ['cdkAriaLive']\n }],\n duration: [{\n type: Input,\n args: ['cdkAriaLiveDuration']\n }]\n });\n})();\n\n/** Set of possible high-contrast mode backgrounds. */\nvar HighContrastMode;\n(function (HighContrastMode) {\n HighContrastMode[HighContrastMode[\"NONE\"] = 0] = \"NONE\";\n HighContrastMode[HighContrastMode[\"BLACK_ON_WHITE\"] = 1] = \"BLACK_ON_WHITE\";\n HighContrastMode[HighContrastMode[\"WHITE_ON_BLACK\"] = 2] = \"WHITE_ON_BLACK\";\n})(HighContrastMode || (HighContrastMode = {}));\n/** CSS class applied to the document body when in black-on-white high-contrast mode. */\nconst BLACK_ON_WHITE_CSS_CLASS = 'cdk-high-contrast-black-on-white';\n/** CSS class applied to the document body when in white-on-black high-contrast mode. */\nconst WHITE_ON_BLACK_CSS_CLASS = 'cdk-high-contrast-white-on-black';\n/** CSS class applied to the document body when in high-contrast mode. */\nconst HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';\n/**\n * Service to determine whether the browser is currently in a high-contrast-mode environment.\n *\n * Microsoft Windows supports an accessibility feature called \"High Contrast Mode\". This mode\n * changes the appearance of all applications, including web applications, to dramatically increase\n * contrast.\n *\n * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast\n * Mode. This service does not detect high-contrast mode as added by the Chrome \"High Contrast\"\n * browser extension.\n */\nclass HighContrastModeDetector {\n _platform = inject(Platform);\n /**\n * Figuring out the high contrast mode and adding the body classes can cause\n * some expensive layouts. This flag is used to ensure that we only do it once.\n */\n _hasCheckedHighContrastMode;\n _document = inject(DOCUMENT);\n _breakpointSubscription;\n constructor() {\n this._breakpointSubscription = inject(BreakpointObserver).observe('(forced-colors: active)').subscribe(() => {\n if (this._hasCheckedHighContrastMode) {\n this._hasCheckedHighContrastMode = false;\n this._applyBodyHighContrastModeCssClasses();\n }\n });\n }\n /** Gets the current high-contrast-mode for the page. */\n getHighContrastMode() {\n if (!this._platform.isBrowser) {\n return HighContrastMode.NONE;\n }\n // Create a test element with an arbitrary background-color that is neither black nor\n // white; high-contrast mode will coerce the color to either black or white. Also ensure that\n // appending the test element to the DOM does not affect layout by absolutely positioning it\n const testElement = this._document.createElement('div');\n testElement.style.backgroundColor = 'rgb(1,2,3)';\n testElement.style.position = 'absolute';\n this._document.body.appendChild(testElement);\n // Get the computed style for the background color, collapsing spaces to normalize between\n // browsers. Once we get this color, we no longer need the test element. Access the `window`\n // via the document so we can fake it in tests. Note that we have extra null checks, because\n // this logic will likely run during app bootstrap and throwing can break the entire app.\n const documentWindow = this._document.defaultView || window;\n const computedStyle = documentWindow && documentWindow.getComputedStyle ? documentWindow.getComputedStyle(testElement) : null;\n const computedColor = (computedStyle && computedStyle.backgroundColor || '').replace(/ /g, '');\n testElement.remove();\n switch (computedColor) {\n // Pre Windows 11 dark theme.\n case 'rgb(0,0,0)':\n // Windows 11 dark themes.\n case 'rgb(45,50,54)':\n case 'rgb(32,32,32)':\n return HighContrastMode.WHITE_ON_BLACK;\n // Pre Windows 11 light theme.\n case 'rgb(255,255,255)':\n // Windows 11 light theme.\n case 'rgb(255,250,239)':\n return HighContrastMode.BLACK_ON_WHITE;\n }\n return HighContrastMode.NONE;\n }\n ngOnDestroy() {\n this._breakpointSubscription.unsubscribe();\n }\n /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */\n _applyBodyHighContrastModeCssClasses() {\n if (!this._hasCheckedHighContrastMode && this._platform.isBrowser && this._document.body) {\n const bodyClasses = this._document.body.classList;\n bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);\n this._hasCheckedHighContrastMode = true;\n const mode = this.getHighContrastMode();\n if (mode === HighContrastMode.BLACK_ON_WHITE) {\n bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS);\n } else if (mode === HighContrastMode.WHITE_ON_BLACK) {\n bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);\n }\n }\n }\n static ɵfac = function HighContrastModeDetector_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || HighContrastModeDetector)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HighContrastModeDetector,\n factory: HighContrastModeDetector.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(HighContrastModeDetector, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\nclass A11yModule {\n constructor() {\n inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();\n }\n static ɵfac = function A11yModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || A11yModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: A11yModule,\n imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [ObserversModule]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(A11yModule, [{\n type: NgModule,\n args: [{\n imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]\n }]\n }], () => [], null);\n})();\nexport { A11yModule, CdkAriaLive, CdkTrapFocus, FocusTrap, FocusTrapFactory, HighContrastMode, HighContrastModeDetector, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, LiveAnnouncer };\n", "import { Subject } from 'rxjs';\nimport { tap, debounceTime, filter, map } from 'rxjs/operators';\nimport { A, Z, ZERO, NINE } from './keycodes2.mjs';\n\nconst DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS = 200;\n/**\n * Selects items based on keyboard inputs. Implements the typeahead functionality of\n * `role=\"listbox\"` or `role=\"tree\"` and other related roles.\n */\nclass Typeahead {\n _letterKeyStream = new Subject();\n _items = [];\n _selectedItemIndex = -1;\n /** Buffer for the letters that the user has pressed */\n _pressedLetters = [];\n _skipPredicateFn;\n _selectedItem = new Subject();\n selectedItem = this._selectedItem;\n constructor(initialItems, config) {\n const typeAheadInterval = typeof config?.debounceInterval === 'number'\n ? config.debounceInterval\n : DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS;\n if (config?.skipPredicate) {\n this._skipPredicateFn = config.skipPredicate;\n }\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n initialItems.length &&\n initialItems.some(item => typeof item.getLabel !== 'function')) {\n throw new Error('KeyManager items in typeahead mode must implement the `getLabel` method.');\n }\n this.setItems(initialItems);\n this._setupKeyHandler(typeAheadInterval);\n }\n destroy() {\n this._pressedLetters = [];\n this._letterKeyStream.complete();\n this._selectedItem.complete();\n }\n setCurrentSelectedItemIndex(index) {\n this._selectedItemIndex = index;\n }\n setItems(items) {\n this._items = items;\n }\n handleKey(event) {\n const keyCode = event.keyCode;\n // Attempt to use the `event.key` which also maps it to the user's keyboard language,\n // otherwise fall back to resolving alphanumeric characters via the keyCode.\n if (event.key && event.key.length === 1) {\n this._letterKeyStream.next(event.key.toLocaleUpperCase());\n }\n else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {\n this._letterKeyStream.next(String.fromCharCode(keyCode));\n }\n }\n /** Gets whether the user is currently typing into the manager using the typeahead feature. */\n isTyping() {\n return this._pressedLetters.length > 0;\n }\n /** Resets the currently stored sequence of typed letters. */\n reset() {\n this._pressedLetters = [];\n }\n _setupKeyHandler(typeAheadInterval) {\n // Debounce the presses of non-navigational keys, collect the ones that correspond to letters\n // and convert those letters back into a string. Afterwards find the first item that starts\n // with that string and select it.\n this._letterKeyStream\n .pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(typeAheadInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join('').toLocaleUpperCase()))\n .subscribe(inputString => {\n // Start at 1 because we want to start searching at the item immediately\n // following the current active item.\n for (let i = 1; i < this._items.length + 1; i++) {\n const index = (this._selectedItemIndex + i) % this._items.length;\n const item = this._items[index];\n if (!this._skipPredicateFn?.(item) &&\n item.getLabel?.().toLocaleUpperCase().trim().indexOf(inputString) === 0) {\n this._selectedItem.next(item);\n break;\n }\n }\n this._pressedLetters = [];\n });\n }\n}\n\nexport { Typeahead };\n\n", "import { signal, QueryList, isSignal, effect } from '@angular/core';\nimport { Subscription, Subject } from 'rxjs';\nimport { Typeahead } from './typeahead.mjs';\nimport { hasModifierKey } from './keycodes.mjs';\nimport { PAGE_DOWN, PAGE_UP, END, HOME, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, TAB } from './keycodes2.mjs';\n\n/**\n * This class manages keyboard events for selectable lists. If you pass it a query list\n * of items, it will set the active item correctly when arrow events occur.\n */\nclass ListKeyManager {\n _items;\n _activeItemIndex = signal(-1, ...(ngDevMode ? [{ debugName: \"_activeItemIndex\" }] : []));\n _activeItem = signal(null, ...(ngDevMode ? [{ debugName: \"_activeItem\" }] : []));\n _wrap = false;\n _typeaheadSubscription = Subscription.EMPTY;\n _itemChangesSubscription;\n _vertical = true;\n _horizontal;\n _allowedModifierKeys = [];\n _homeAndEnd = false;\n _pageUpAndDown = { enabled: false, delta: 10 };\n _effectRef;\n _typeahead;\n /**\n * Predicate function that can be used to check whether an item should be skipped\n * by the key manager. By default, disabled items are skipped.\n */\n _skipPredicateFn = (item) => item.disabled;\n constructor(_items, injector) {\n this._items = _items;\n // We allow for the items to be an array because, in some cases, the consumer may\n // not have access to a QueryList of the items they want to manage (e.g. when the\n // items aren't being collected via `ViewChildren` or `ContentChildren`).\n if (_items instanceof QueryList) {\n this._itemChangesSubscription = _items.changes.subscribe((newItems) => this._itemsChanged(newItems.toArray()));\n }\n else if (isSignal(_items)) {\n if (!injector && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error('ListKeyManager constructed with a signal must receive an injector');\n }\n this._effectRef = effect(() => this._itemsChanged(_items()), ...(ngDevMode ? [{ debugName: \"_effectRef\", injector }] : [{ injector }]));\n }\n }\n /**\n * Stream that emits any time the TAB key is pressed, so components can react\n * when focus is shifted off of the list.\n */\n tabOut = new Subject();\n /** Stream that emits whenever the active item of the list manager changes. */\n change = new Subject();\n /**\n * Sets the predicate function that determines which items should be skipped by the\n * list key manager.\n * @param predicate Function that determines whether the given item should be skipped.\n */\n skipPredicate(predicate) {\n this._skipPredicateFn = predicate;\n return this;\n }\n /**\n * Configures wrapping mode, which determines whether the active item will wrap to\n * the other end of list when there are no more items in the given direction.\n * @param shouldWrap Whether the list should wrap when reaching the end.\n */\n withWrap(shouldWrap = true) {\n this._wrap = shouldWrap;\n return this;\n }\n /**\n * Configures whether the key manager should be able to move the selection vertically.\n * @param enabled Whether vertical selection should be enabled.\n */\n withVerticalOrientation(enabled = true) {\n this._vertical = enabled;\n return this;\n }\n /**\n * Configures the key manager to move the selection horizontally.\n * Passing in `null` will disable horizontal movement.\n * @param direction Direction in which the selection can be moved.\n */\n withHorizontalOrientation(direction) {\n this._horizontal = direction;\n return this;\n }\n /**\n * Modifier keys which are allowed to be held down and whose default actions will be prevented\n * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.\n */\n withAllowedModifierKeys(keys) {\n this._allowedModifierKeys = keys;\n return this;\n }\n /**\n * Turns on typeahead mode which allows users to set the active item by typing.\n * @param debounceInterval Time to wait after the last keystroke before setting the active item.\n */\n withTypeAhead(debounceInterval = 200) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const items = this._getItemsArray();\n if (items.length > 0 && items.some(item => typeof item.getLabel !== 'function')) {\n throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');\n }\n }\n this._typeaheadSubscription.unsubscribe();\n const items = this._getItemsArray();\n this._typeahead = new Typeahead(items, {\n debounceInterval: typeof debounceInterval === 'number' ? debounceInterval : undefined,\n skipPredicate: item => this._skipPredicateFn(item),\n });\n this._typeaheadSubscription = this._typeahead.selectedItem.subscribe(item => {\n this.setActiveItem(item);\n });\n return this;\n }\n /** Cancels the current typeahead sequence. */\n cancelTypeahead() {\n this._typeahead?.reset();\n return this;\n }\n /**\n * Configures the key manager to activate the first and last items\n * respectively when the Home or End key is pressed.\n * @param enabled Whether pressing the Home or End key activates the first/last item.\n */\n withHomeAndEnd(enabled = true) {\n this._homeAndEnd = enabled;\n return this;\n }\n /**\n * Configures the key manager to activate every 10th, configured or first/last element in up/down direction\n * respectively when the Page-Up or Page-Down key is pressed.\n * @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item.\n * @param delta Whether pressing the Home or End key activates the first/last item.\n */\n withPageUpDown(enabled = true, delta = 10) {\n this._pageUpAndDown = { enabled, delta };\n return this;\n }\n setActiveItem(item) {\n const previousActiveItem = this._activeItem();\n this.updateActiveItem(item);\n if (this._activeItem() !== previousActiveItem) {\n this.change.next(this._activeItemIndex());\n }\n }\n /**\n * Sets the active item depending on the key event passed in.\n * @param event Keyboard event to be used for determining which element should be active.\n */\n onKeydown(event) {\n const keyCode = event.keyCode;\n const modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];\n const isModifierAllowed = modifiers.every(modifier => {\n return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;\n });\n switch (keyCode) {\n case TAB:\n this.tabOut.next();\n return;\n case DOWN_ARROW:\n if (this._vertical && isModifierAllowed) {\n this.setNextItemActive();\n break;\n }\n else {\n return;\n }\n case UP_ARROW:\n if (this._vertical && isModifierAllowed) {\n this.setPreviousItemActive();\n break;\n }\n else {\n return;\n }\n case RIGHT_ARROW:\n if (this._horizontal && isModifierAllowed) {\n this._horizontal === 'rtl' ? this.setPreviousItemActive() : this.setNextItemActive();\n break;\n }\n else {\n return;\n }\n case LEFT_ARROW:\n if (this._horizontal && isModifierAllowed) {\n this._horizontal === 'rtl' ? this.setNextItemActive() : this.setPreviousItemActive();\n break;\n }\n else {\n return;\n }\n case HOME:\n if (this._homeAndEnd && isModifierAllowed) {\n this.setFirstItemActive();\n break;\n }\n else {\n return;\n }\n case END:\n if (this._homeAndEnd && isModifierAllowed) {\n this.setLastItemActive();\n break;\n }\n else {\n return;\n }\n case PAGE_UP:\n if (this._pageUpAndDown.enabled && isModifierAllowed) {\n const targetIndex = this._activeItemIndex() - this._pageUpAndDown.delta;\n this._setActiveItemByIndex(targetIndex > 0 ? targetIndex : 0, 1);\n break;\n }\n else {\n return;\n }\n case PAGE_DOWN:\n if (this._pageUpAndDown.enabled && isModifierAllowed) {\n const targetIndex = this._activeItemIndex() + this._pageUpAndDown.delta;\n const itemsLength = this._getItemsArray().length;\n this._setActiveItemByIndex(targetIndex < itemsLength ? targetIndex : itemsLength - 1, -1);\n break;\n }\n else {\n return;\n }\n default:\n if (isModifierAllowed || hasModifierKey(event, 'shiftKey')) {\n this._typeahead?.handleKey(event);\n }\n // Note that we return here, in order to avoid preventing\n // the default action of non-navigational keys.\n return;\n }\n this._typeahead?.reset();\n event.preventDefault();\n }\n /** Index of the currently active item. */\n get activeItemIndex() {\n return this._activeItemIndex();\n }\n /** The active item. */\n get activeItem() {\n return this._activeItem();\n }\n /** Gets whether the user is currently typing into the manager using the typeahead feature. */\n isTyping() {\n return !!this._typeahead && this._typeahead.isTyping();\n }\n /** Sets the active item to the first enabled item in the list. */\n setFirstItemActive() {\n this._setActiveItemByIndex(0, 1);\n }\n /** Sets the active item to the last enabled item in the list. */\n setLastItemActive() {\n this._setActiveItemByIndex(this._getItemsArray().length - 1, -1);\n }\n /** Sets the active item to the next enabled item in the list. */\n setNextItemActive() {\n this._activeItemIndex() < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);\n }\n /** Sets the active item to a previous enabled item in the list. */\n setPreviousItemActive() {\n this._activeItemIndex() < 0 && this._wrap\n ? this.setLastItemActive()\n : this._setActiveItemByDelta(-1);\n }\n updateActiveItem(item) {\n const itemArray = this._getItemsArray();\n const index = typeof item === 'number' ? item : itemArray.indexOf(item);\n const activeItem = itemArray[index];\n // Explicitly check for `null` and `undefined` because other falsy values are valid.\n this._activeItem.set(activeItem == null ? null : activeItem);\n this._activeItemIndex.set(index);\n this._typeahead?.setCurrentSelectedItemIndex(index);\n }\n /** Cleans up the key manager. */\n destroy() {\n this._typeaheadSubscription.unsubscribe();\n this._itemChangesSubscription?.unsubscribe();\n this._effectRef?.destroy();\n this._typeahead?.destroy();\n this.tabOut.complete();\n this.change.complete();\n }\n /**\n * This method sets the active item, given a list of items and the delta between the\n * currently active item and the new active item. It will calculate differently\n * depending on whether wrap mode is turned on.\n */\n _setActiveItemByDelta(delta) {\n this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);\n }\n /**\n * Sets the active item properly given \"wrap\" mode. In other words, it will continue to move\n * down the list until it finds an item that is not disabled, and it will wrap if it\n * encounters either end of the list.\n */\n _setActiveInWrapMode(delta) {\n const items = this._getItemsArray();\n for (let i = 1; i <= items.length; i++) {\n const index = (this._activeItemIndex() + delta * i + items.length) % items.length;\n const item = items[index];\n if (!this._skipPredicateFn(item)) {\n this.setActiveItem(index);\n return;\n }\n }\n }\n /**\n * Sets the active item properly given the default mode. In other words, it will\n * continue to move down the list until it finds an item that is not disabled. If\n * it encounters either end of the list, it will stop and not wrap.\n */\n _setActiveInDefaultMode(delta) {\n this._setActiveItemByIndex(this._activeItemIndex() + delta, delta);\n }\n /**\n * Sets the active item to the first enabled item starting at the index specified. If the\n * item is disabled, it will move in the fallbackDelta direction until it either\n * finds an enabled item or encounters the end of the list.\n */\n _setActiveItemByIndex(index, fallbackDelta) {\n const items = this._getItemsArray();\n if (!items[index]) {\n return;\n }\n while (this._skipPredicateFn(items[index])) {\n index += fallbackDelta;\n if (!items[index]) {\n return;\n }\n }\n this.setActiveItem(index);\n }\n /** Returns the items as an array. */\n _getItemsArray() {\n if (isSignal(this._items)) {\n return this._items();\n }\n return this._items instanceof QueryList ? this._items.toArray() : this._items;\n }\n /** Callback for when the items have changed. */\n _itemsChanged(newItems) {\n this._typeahead?.setItems(newItems);\n const activeItem = this._activeItem();\n if (activeItem) {\n const newIndex = newItems.indexOf(activeItem);\n if (newIndex > -1 && newIndex !== this._activeItemIndex()) {\n this._activeItemIndex.set(newIndex);\n this._typeahead?.setCurrentSelectedItemIndex(newIndex);\n }\n }\n }\n}\n\nexport { ListKeyManager };\n\n", "import { ListKeyManager } from './list-key-manager.mjs';\n\nclass ActiveDescendantKeyManager extends ListKeyManager {\n setActiveItem(index) {\n if (this.activeItem) {\n this.activeItem.setInactiveStyles();\n }\n super.setActiveItem(index);\n if (this.activeItem) {\n this.activeItem.setActiveStyles();\n }\n }\n}\n\nexport { ActiveDescendantKeyManager };\n\n", "import { ListKeyManager } from './list-key-manager.mjs';\n\nclass FocusKeyManager extends ListKeyManager {\n _origin = 'program';\n /**\n * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.\n * @param origin Focus origin to be used when focusing items.\n */\n setFocusOrigin(origin) {\n this._origin = origin;\n return this;\n }\n setActiveItem(item) {\n super.setActiveItem(item);\n if (this.activeItem) {\n this.activeItem.focus(this._origin);\n }\n }\n}\n\nexport { FocusKeyManager };\n\n", "import { isObservable, of } from 'rxjs';\n\n/**\n * Given either an Observable or non-Observable value, returns either the original\n * Observable, or wraps it in an Observable that emits the non-Observable value.\n */\nfunction coerceObservable(data) {\n if (!isObservable(data)) {\n return of(data);\n }\n return data;\n}\n\nexport { coerceObservable };\n\n", "import { QueryList, InjectionToken } from '@angular/core';\nimport { Subscription, isObservable, Subject, of } from 'rxjs';\nimport { take } from 'rxjs/operators';\nimport { Typeahead } from './typeahead.mjs';\nimport { coerceObservable } from './coercion/private.mjs';\n\n/**\n * This class manages keyboard events for trees. If you pass it a QueryList or other list of tree\n * items, it will set the active item, focus, handle expansion and typeahead correctly when\n * keyboard events occur.\n */\nclass TreeKeyManager {\n /** The index of the currently active (focused) item. */\n _activeItemIndex = -1;\n /** The currently active (focused) item. */\n _activeItem = null;\n /** Whether or not we activate the item when it's focused. */\n _shouldActivationFollowFocus = false;\n /**\n * The orientation that the tree is laid out in. In `rtl` mode, the behavior of Left and\n * Right arrow are switched.\n */\n _horizontalOrientation = 'ltr';\n /**\n * Predicate function that can be used to check whether an item should be skipped\n * by the key manager.\n *\n * The default value for this doesn't skip any elements in order to keep tree items focusable\n * when disabled. This aligns with ARIA guidelines:\n * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols.\n */\n _skipPredicateFn = (_item) => false;\n /** Function to determine equivalent items. */\n _trackByFn = (item) => item;\n /** Synchronous cache of the items to manage. */\n _items = [];\n _typeahead;\n _typeaheadSubscription = Subscription.EMPTY;\n _hasInitialFocused = false;\n _initializeFocus() {\n if (this._hasInitialFocused || this._items.length === 0) {\n return;\n }\n let activeIndex = 0;\n for (let i = 0; i < this._items.length; i++) {\n if (!this._skipPredicateFn(this._items[i]) && !this._isItemDisabled(this._items[i])) {\n activeIndex = i;\n break;\n }\n }\n const activeItem = this._items[activeIndex];\n // Use `makeFocusable` here, because we want the item to just be focusable, not actually\n // capture the focus since the user isn't interacting with it. See #29628.\n if (activeItem.makeFocusable) {\n this._activeItem?.unfocus();\n this._activeItemIndex = activeIndex;\n this._activeItem = activeItem;\n this._typeahead?.setCurrentSelectedItemIndex(activeIndex);\n activeItem.makeFocusable();\n }\n else {\n // Backwards compatibility for items that don't implement `makeFocusable`.\n this.focusItem(activeIndex);\n }\n this._hasInitialFocused = true;\n }\n /**\n *\n * @param items List of TreeKeyManager options. Can be synchronous or asynchronous.\n * @param config Optional configuration options. By default, use 'ltr' horizontal orientation. By\n * default, do not skip any nodes. By default, key manager only calls `focus` method when items\n * are focused and does not call `activate`. If `typeaheadDefaultInterval` is `true`, use a\n * default interval of 200ms.\n */\n constructor(items, config) {\n // We allow for the items to be an array or Observable because, in some cases, the consumer may\n // not have access to a QueryList of the items they want to manage (e.g. when the\n // items aren't being collected via `ViewChildren` or `ContentChildren`).\n if (items instanceof QueryList) {\n this._items = items.toArray();\n items.changes.subscribe((newItems) => {\n this._items = newItems.toArray();\n this._typeahead?.setItems(this._items);\n this._updateActiveItemIndex(this._items);\n this._initializeFocus();\n });\n }\n else if (isObservable(items)) {\n items.subscribe(newItems => {\n this._items = newItems;\n this._typeahead?.setItems(newItems);\n this._updateActiveItemIndex(newItems);\n this._initializeFocus();\n });\n }\n else {\n this._items = items;\n this._initializeFocus();\n }\n if (typeof config.shouldActivationFollowFocus === 'boolean') {\n this._shouldActivationFollowFocus = config.shouldActivationFollowFocus;\n }\n if (config.horizontalOrientation) {\n this._horizontalOrientation = config.horizontalOrientation;\n }\n if (config.skipPredicate) {\n this._skipPredicateFn = config.skipPredicate;\n }\n if (config.trackBy) {\n this._trackByFn = config.trackBy;\n }\n if (typeof config.typeAheadDebounceInterval !== 'undefined') {\n this._setTypeAhead(config.typeAheadDebounceInterval);\n }\n }\n /** Stream that emits any time the focused item changes. */\n change = new Subject();\n /** Cleans up the key manager. */\n destroy() {\n this._typeaheadSubscription.unsubscribe();\n this._typeahead?.destroy();\n this.change.complete();\n }\n /**\n * Handles a keyboard event on the tree.\n * @param event Keyboard event that represents the user interaction with the tree.\n */\n onKeydown(event) {\n const key = event.key;\n switch (key) {\n case 'Tab':\n // Return early here, in order to allow Tab to actually tab out of the tree\n return;\n case 'ArrowDown':\n this._focusNextItem();\n break;\n case 'ArrowUp':\n this._focusPreviousItem();\n break;\n case 'ArrowRight':\n this._horizontalOrientation === 'rtl'\n ? this._collapseCurrentItem()\n : this._expandCurrentItem();\n break;\n case 'ArrowLeft':\n this._horizontalOrientation === 'rtl'\n ? this._expandCurrentItem()\n : this._collapseCurrentItem();\n break;\n case 'Home':\n this._focusFirstItem();\n break;\n case 'End':\n this._focusLastItem();\n break;\n case 'Enter':\n case ' ':\n this._activateCurrentItem();\n break;\n default:\n if (event.key === '*') {\n this._expandAllItemsAtCurrentItemLevel();\n break;\n }\n this._typeahead?.handleKey(event);\n // Return here, in order to avoid preventing the default action of non-navigational\n // keys or resetting the buffer of pressed letters.\n return;\n }\n // Reset the typeahead since the user has used a navigational key.\n this._typeahead?.reset();\n event.preventDefault();\n }\n /** Index of the currently active item. */\n getActiveItemIndex() {\n return this._activeItemIndex;\n }\n /** The currently active item. */\n getActiveItem() {\n return this._activeItem;\n }\n /** Focus the first available item. */\n _focusFirstItem() {\n this.focusItem(this._findNextAvailableItemIndex(-1));\n }\n /** Focus the last available item. */\n _focusLastItem() {\n this.focusItem(this._findPreviousAvailableItemIndex(this._items.length));\n }\n /** Focus the next available item. */\n _focusNextItem() {\n this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex));\n }\n /** Focus the previous available item. */\n _focusPreviousItem() {\n this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex));\n }\n focusItem(itemOrIndex, options = {}) {\n // Set default options\n options.emitChangeEvent ??= true;\n let index = typeof itemOrIndex === 'number'\n ? itemOrIndex\n : this._items.findIndex(item => this._trackByFn(item) === this._trackByFn(itemOrIndex));\n if (index < 0 || index >= this._items.length) {\n return;\n }\n const activeItem = this._items[index];\n // If we're just setting the same item, don't re-call activate or focus\n if (this._activeItem !== null &&\n this._trackByFn(activeItem) === this._trackByFn(this._activeItem)) {\n return;\n }\n const previousActiveItem = this._activeItem;\n this._activeItem = activeItem ?? null;\n this._activeItemIndex = index;\n this._typeahead?.setCurrentSelectedItemIndex(index);\n this._activeItem?.focus();\n previousActiveItem?.unfocus();\n if (options.emitChangeEvent) {\n this.change.next(this._activeItem);\n }\n if (this._shouldActivationFollowFocus) {\n this._activateCurrentItem();\n }\n }\n _updateActiveItemIndex(newItems) {\n const activeItem = this._activeItem;\n if (!activeItem) {\n return;\n }\n const newIndex = newItems.findIndex(item => this._trackByFn(item) === this._trackByFn(activeItem));\n if (newIndex > -1 && newIndex !== this._activeItemIndex) {\n this._activeItemIndex = newIndex;\n this._typeahead?.setCurrentSelectedItemIndex(newIndex);\n }\n }\n _setTypeAhead(debounceInterval) {\n this._typeahead = new Typeahead(this._items, {\n debounceInterval: typeof debounceInterval === 'number' ? debounceInterval : undefined,\n skipPredicate: item => this._skipPredicateFn(item),\n });\n this._typeaheadSubscription = this._typeahead.selectedItem.subscribe(item => {\n this.focusItem(item);\n });\n }\n _findNextAvailableItemIndex(startingIndex) {\n for (let i = startingIndex + 1; i < this._items.length; i++) {\n if (!this._skipPredicateFn(this._items[i])) {\n return i;\n }\n }\n return startingIndex;\n }\n _findPreviousAvailableItemIndex(startingIndex) {\n for (let i = startingIndex - 1; i >= 0; i--) {\n if (!this._skipPredicateFn(this._items[i])) {\n return i;\n }\n }\n return startingIndex;\n }\n /**\n * If the item is already expanded, we collapse the item. Otherwise, we will focus the parent.\n */\n _collapseCurrentItem() {\n if (!this._activeItem) {\n return;\n }\n if (this._isCurrentItemExpanded()) {\n this._activeItem.collapse();\n }\n else {\n const parent = this._activeItem.getParent();\n if (!parent || this._skipPredicateFn(parent)) {\n return;\n }\n this.focusItem(parent);\n }\n }\n /**\n * If the item is already collapsed, we expand the item. Otherwise, we will focus the first child.\n */\n _expandCurrentItem() {\n if (!this._activeItem) {\n return;\n }\n if (!this._isCurrentItemExpanded()) {\n this._activeItem.expand();\n }\n else {\n coerceObservable(this._activeItem.getChildren())\n .pipe(take(1))\n .subscribe(children => {\n const firstChild = children.find(child => !this._skipPredicateFn(child));\n if (!firstChild) {\n return;\n }\n this.focusItem(firstChild);\n });\n }\n }\n _isCurrentItemExpanded() {\n if (!this._activeItem) {\n return false;\n }\n return typeof this._activeItem.isExpanded === 'boolean'\n ? this._activeItem.isExpanded\n : this._activeItem.isExpanded();\n }\n _isItemDisabled(item) {\n return typeof item.isDisabled === 'boolean' ? item.isDisabled : item.isDisabled?.();\n }\n /** For all items that are the same level as the current item, we expand those items. */\n _expandAllItemsAtCurrentItemLevel() {\n if (!this._activeItem) {\n return;\n }\n const parent = this._activeItem.getParent();\n let itemsToExpand;\n if (!parent) {\n itemsToExpand = of(this._items.filter(item => item.getParent() === null));\n }\n else {\n itemsToExpand = coerceObservable(parent.getChildren());\n }\n itemsToExpand.pipe(take(1)).subscribe(items => {\n for (const item of items) {\n item.expand();\n }\n });\n }\n _activateCurrentItem() {\n this._activeItem?.activate();\n }\n}\n/**\n * @docs-private\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n */\nfunction TREE_KEY_MANAGER_FACTORY() {\n return (items, options) => new TreeKeyManager(items, options);\n}\n/** Injection token that determines the key manager to use. */\nconst TREE_KEY_MANAGER = new InjectionToken('tree-key-manager', {\n providedIn: 'root',\n factory: TREE_KEY_MANAGER_FACTORY,\n});\n/**\n * @docs-private\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n */\nconst TREE_KEY_MANAGER_FACTORY_PROVIDER = {\n provide: TREE_KEY_MANAGER,\n useFactory: TREE_KEY_MANAGER_FACTORY,\n};\n\nexport { TREE_KEY_MANAGER, TREE_KEY_MANAGER_FACTORY, TREE_KEY_MANAGER_FACTORY_PROVIDER, TreeKeyManager };\n\n", "export { CdkMonitorFocus, FOCUS_MONITOR_DEFAULT_OPTIONS, FocusMonitor, FocusMonitorDetectionMode, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector } from './focus-monitor.mjs';\nimport { FocusTrap, InteractivityChecker } from './a11y-module.mjs';\nexport { A11yModule, CdkAriaLive, CdkTrapFocus, FocusTrapFactory, HighContrastMode, HighContrastModeDetector, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, LiveAnnouncer } from './a11y-module.mjs';\nexport { _IdGenerator } from './id-generator.mjs';\nimport * as i0 from '@angular/core';\nimport { inject, DOCUMENT, APP_ID, Injectable, InjectionToken, NgZone, Injector } from '@angular/core';\nimport { Platform } from './platform2.mjs';\nimport { _CdkPrivateStyleLoader } from './style-loader.mjs';\nimport { _VisuallyHiddenLoader } from './private.mjs';\nexport { ActiveDescendantKeyManager } from './activedescendant-key-manager.mjs';\nexport { FocusKeyManager } from './focus-key-manager.mjs';\nexport { ListKeyManager } from './list-key-manager.mjs';\nimport { Subject } from 'rxjs';\nimport { TREE_KEY_MANAGER } from './tree-key-manager.mjs';\nexport { TREE_KEY_MANAGER_FACTORY, TREE_KEY_MANAGER_FACTORY_PROVIDER, TreeKeyManager } from './tree-key-manager.mjs';\nexport { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from './fake-event-detection.mjs';\nimport 'rxjs/operators';\nimport './keycodes2.mjs';\nimport './shadow-dom.mjs';\nimport './passive-listeners.mjs';\nimport './element.mjs';\nimport './breakpoints-observer.mjs';\nimport './array.mjs';\nimport './observers.mjs';\nimport '@angular/common';\nimport './typeahead.mjs';\nimport './keycodes.mjs';\nimport './coercion/private.mjs';\n\n/** IDs are delimited by an empty space, as per the spec. */\nconst ID_DELIMITER = ' ';\n/**\n * Adds the given ID to the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction addAriaReferencedId(el, attr, id) {\n const ids = getAriaReferenceIds(el, attr);\n id = id.trim();\n if (ids.some(existingId => existingId.trim() === id)) {\n return;\n }\n ids.push(id);\n el.setAttribute(attr, ids.join(ID_DELIMITER));\n}\n/**\n * Removes the given ID from the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction removeAriaReferencedId(el, attr, id) {\n const ids = getAriaReferenceIds(el, attr);\n id = id.trim();\n const filteredIds = ids.filter(val => val !== id);\n if (filteredIds.length) {\n el.setAttribute(attr, filteredIds.join(ID_DELIMITER));\n } else {\n el.removeAttribute(attr);\n }\n}\n/**\n * Gets the list of IDs referenced by the given ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction getAriaReferenceIds(el, attr) {\n // Get string array of all individual ids (whitespace delimited) in the attribute value\n const attrValue = el.getAttribute(attr);\n return attrValue?.match(/\\S+/g) ?? [];\n}\n\n/**\n * ID used for the body container where all messages are appended.\n * @deprecated No longer being used. To be removed.\n * @breaking-change 14.0.0\n */\nconst MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';\n/**\n * ID prefix used for each created message element.\n * @deprecated To be turned into a private variable.\n * @breaking-change 14.0.0\n */\nconst CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';\n/**\n * Attribute given to each host element that is described by a message element.\n * @deprecated To be turned into a private variable.\n * @breaking-change 14.0.0\n */\nconst CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';\n/** Global incremental identifier for each registered message element. */\nlet nextId = 0;\n/**\n * Utility that creates visually hidden elements with a message content. Useful for elements that\n * want to use aria-describedby to further describe themselves without adding additional visual\n * content.\n */\nclass AriaDescriber {\n _platform = inject(Platform);\n _document = inject(DOCUMENT);\n /** Map of all registered message elements that have been placed into the document. */\n _messageRegistry = new Map();\n /** Container for all registered messages. */\n _messagesContainer = null;\n /** Unique ID for the service. */\n _id = `${nextId++}`;\n constructor() {\n inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);\n this._id = inject(APP_ID) + '-' + nextId++;\n }\n describe(hostElement, message, role) {\n if (!this._canBeDescribed(hostElement, message)) {\n return;\n }\n const key = getKey(message, role);\n if (typeof message !== 'string') {\n // We need to ensure that the element has an ID.\n setMessageId(message, this._id);\n this._messageRegistry.set(key, {\n messageElement: message,\n referenceCount: 0\n });\n } else if (!this._messageRegistry.has(key)) {\n this._createMessageElement(message, role);\n }\n if (!this._isElementDescribedByMessage(hostElement, key)) {\n this._addMessageReference(hostElement, key);\n }\n }\n removeDescription(hostElement, message, role) {\n if (!message || !this._isElementNode(hostElement)) {\n return;\n }\n const key = getKey(message, role);\n if (this._isElementDescribedByMessage(hostElement, key)) {\n this._removeMessageReference(hostElement, key);\n }\n // If the message is a string, it means that it's one that we created for the\n // consumer so we can remove it safely, otherwise we should leave it in place.\n if (typeof message === 'string') {\n const registeredMessage = this._messageRegistry.get(key);\n if (registeredMessage && registeredMessage.referenceCount === 0) {\n this._deleteMessageElement(key);\n }\n }\n if (this._messagesContainer?.childNodes.length === 0) {\n this._messagesContainer.remove();\n this._messagesContainer = null;\n }\n }\n /** Unregisters all created message elements and removes the message container. */\n ngOnDestroy() {\n const describedElements = this._document.querySelectorAll(`[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}=\"${this._id}\"]`);\n for (let i = 0; i < describedElements.length; i++) {\n this._removeCdkDescribedByReferenceIds(describedElements[i]);\n describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n }\n this._messagesContainer?.remove();\n this._messagesContainer = null;\n this._messageRegistry.clear();\n }\n /**\n * Creates a new element in the visually hidden message container element with the message\n * as its content and adds it to the message registry.\n */\n _createMessageElement(message, role) {\n const messageElement = this._document.createElement('div');\n setMessageId(messageElement, this._id);\n messageElement.textContent = message;\n if (role) {\n messageElement.setAttribute('role', role);\n }\n this._createMessagesContainer();\n this._messagesContainer.appendChild(messageElement);\n this._messageRegistry.set(getKey(message, role), {\n messageElement,\n referenceCount: 0\n });\n }\n /** Deletes the message element from the global messages container. */\n _deleteMessageElement(key) {\n this._messageRegistry.get(key)?.messageElement?.remove();\n this._messageRegistry.delete(key);\n }\n /** Creates the global container for all aria-describedby messages. */\n _createMessagesContainer() {\n if (this._messagesContainer) {\n return;\n }\n const containerClassName = 'cdk-describedby-message-container';\n const serverContainers = this._document.querySelectorAll(`.${containerClassName}[platform=\"server\"]`);\n for (let i = 0; i < serverContainers.length; i++) {\n // When going from the server to the client, we may end up in a situation where there's\n // already a container on the page, but we don't have a reference to it. Clear the\n // old container so we don't get duplicates. Doing this, instead of emptying the previous\n // container, should be slightly faster.\n serverContainers[i].remove();\n }\n const messagesContainer = this._document.createElement('div');\n // We add `visibility: hidden` in order to prevent text in this container from\n // being searchable by the browser's Ctrl + F functionality.\n // Screen-readers will still read the description for elements with aria-describedby even\n // when the description element is not visible.\n messagesContainer.style.visibility = 'hidden';\n // Even though we use `visibility: hidden`, we still apply `cdk-visually-hidden` so that\n // the description element doesn't impact page layout.\n messagesContainer.classList.add(containerClassName);\n messagesContainer.classList.add('cdk-visually-hidden');\n if (!this._platform.isBrowser) {\n messagesContainer.setAttribute('platform', 'server');\n }\n this._document.body.appendChild(messagesContainer);\n this._messagesContainer = messagesContainer;\n }\n /** Removes all cdk-describedby messages that are hosted through the element. */\n _removeCdkDescribedByReferenceIds(element) {\n // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX\n const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);\n element.setAttribute('aria-describedby', originalReferenceIds.join(' '));\n }\n /**\n * Adds a message reference to the element using aria-describedby and increments the registered\n * message's reference count.\n */\n _addMessageReference(element, key) {\n const registeredMessage = this._messageRegistry.get(key);\n // Add the aria-describedby reference and set the\n // describedby_host attribute to mark the element.\n addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, this._id);\n registeredMessage.referenceCount++;\n }\n /**\n * Removes a message reference from the element using aria-describedby\n * and decrements the registered message's reference count.\n */\n _removeMessageReference(element, key) {\n const registeredMessage = this._messageRegistry.get(key);\n registeredMessage.referenceCount--;\n removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n }\n /** Returns true if the element has been described by the provided message ID. */\n _isElementDescribedByMessage(element, key) {\n const referenceIds = getAriaReferenceIds(element, 'aria-describedby');\n const registeredMessage = this._messageRegistry.get(key);\n const messageId = registeredMessage && registeredMessage.messageElement.id;\n return !!messageId && referenceIds.indexOf(messageId) != -1;\n }\n /** Determines whether a message can be described on a particular element. */\n _canBeDescribed(element, message) {\n if (!this._isElementNode(element)) {\n return false;\n }\n if (message && typeof message === 'object') {\n // We'd have to make some assumptions about the description element's text, if the consumer\n // passed in an element. Assume that if an element is passed in, the consumer has verified\n // that it can be used as a description.\n return true;\n }\n const trimmedMessage = message == null ? '' : `${message}`.trim();\n const ariaLabel = element.getAttribute('aria-label');\n // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the\n // element, because screen readers will end up reading out the same text twice in a row.\n return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;\n }\n /** Checks whether a node is an Element node. */\n _isElementNode(element) {\n return element.nodeType === this._document.ELEMENT_NODE;\n }\n static ɵfac = function AriaDescriber_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AriaDescriber)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: AriaDescriber,\n factory: AriaDescriber.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(AriaDescriber, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n/** Gets a key that can be used to look messages up in the registry. */\nfunction getKey(message, role) {\n return typeof message === 'string' ? `${role || ''}/${message}` : message;\n}\n/** Assigns a unique ID to an element, if it doesn't have one already. */\nfunction setMessageId(element, serviceId) {\n if (!element.id) {\n element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`;\n }\n}\n\n// NoopTreeKeyManager is a \"noop\" implementation of TreeKeyMangerStrategy. Methods are noops. Does\n// not emit to streams.\n//\n// Used for applications built before TreeKeyManager to opt-out of TreeKeyManager and revert to\n// legacy behavior.\n/**\n * @docs-private\n *\n * Opt-out of Tree of key manager behavior.\n *\n * When provided, Tree has same focus management behavior as before TreeKeyManager was introduced.\n * - Tree does not respond to keyboard interaction\n * - Tree node allows tabindex to be set by Input binding\n * - Tree node allows tabindex to be set by attribute binding\n *\n * @deprecated NoopTreeKeyManager deprecated. Use TreeKeyManager or inject a\n * TreeKeyManagerStrategy instead. To be removed in a future version.\n *\n * @breaking-change 21.0.0\n */\nclass NoopTreeKeyManager {\n _isNoopTreeKeyManager = true;\n // Provide change as required by TreeKeyManagerStrategy. NoopTreeKeyManager is a \"noop\"\n // implementation that does not emit to streams.\n change = new Subject();\n destroy() {\n this.change.complete();\n }\n onKeydown() {\n // noop\n }\n getActiveItemIndex() {\n // Always return null. NoopTreeKeyManager is a \"noop\" implementation that does not maintain\n // the active item.\n return null;\n }\n getActiveItem() {\n // Always return null. NoopTreeKeyManager is a \"noop\" implementation that does not maintain\n // the active item.\n return null;\n }\n focusItem() {\n // noop\n }\n}\n/**\n * @docs-private\n *\n * Opt-out of Tree of key manager behavior.\n *\n * When provided, Tree has same focus management behavior as before TreeKeyManager was introduced.\n * - Tree does not respond to keyboard interaction\n * - Tree node allows tabindex to be set by Input binding\n * - Tree node allows tabindex to be set by attribute binding\n *\n * @deprecated NoopTreeKeyManager deprecated. Use TreeKeyManager or inject a\n * TreeKeyManagerStrategy instead. To be removed in a future version.\n *\n * @breaking-change 21.0.0\n */\nfunction NOOP_TREE_KEY_MANAGER_FACTORY() {\n return () => new NoopTreeKeyManager();\n}\n/**\n * @docs-private\n *\n * Opt-out of Tree of key manager behavior.\n *\n * When provided, Tree has same focus management behavior as before TreeKeyManager was introduced.\n * - Tree does not respond to keyboard interaction\n * - Tree node allows tabindex to be set by Input binding\n * - Tree node allows tabindex to be set by attribute binding\n *\n * @deprecated NoopTreeKeyManager deprecated. Use TreeKeyManager or inject a\n * TreeKeyManagerStrategy instead. To be removed in a future version.\n *\n * @breaking-change 21.0.0\n */\nconst NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER = {\n provide: TREE_KEY_MANAGER,\n useFactory: NOOP_TREE_KEY_MANAGER_FACTORY\n};\n\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class uses a strategy pattern that determines how it traps focus.\n * See FocusTrapInertStrategy.\n */\nclass ConfigurableFocusTrap extends FocusTrap {\n _focusTrapManager;\n _inertStrategy;\n /** Whether the FocusTrap is enabled. */\n get enabled() {\n return this._enabled;\n }\n set enabled(value) {\n this._enabled = value;\n if (this._enabled) {\n this._focusTrapManager.register(this);\n } else {\n this._focusTrapManager.deregister(this);\n }\n }\n constructor(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config, injector) {\n super(_element, _checker, _ngZone, _document, config.defer, injector);\n this._focusTrapManager = _focusTrapManager;\n this._inertStrategy = _inertStrategy;\n this._focusTrapManager.register(this);\n }\n /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */\n destroy() {\n this._focusTrapManager.deregister(this);\n super.destroy();\n }\n /** @docs-private Implemented as part of ManagedFocusTrap. */\n _enable() {\n this._inertStrategy.preventFocus(this);\n this.toggleAnchors(true);\n }\n /** @docs-private Implemented as part of ManagedFocusTrap. */\n _disable() {\n this._inertStrategy.allowFocus(this);\n this.toggleAnchors(false);\n }\n}\n\n/**\n * Lightweight FocusTrapInertStrategy that adds a document focus event\n * listener to redirect focus back inside the FocusTrap.\n */\nclass EventListenerFocusTrapInertStrategy {\n /** Focus event handler. */\n _listener = null;\n /** Adds a document event listener that keeps focus inside the FocusTrap. */\n preventFocus(focusTrap) {\n // Ensure there's only one listener per document\n if (this._listener) {\n focusTrap._document.removeEventListener('focus', this._listener, true);\n }\n this._listener = e => this._trapFocus(focusTrap, e);\n focusTrap._ngZone.runOutsideAngular(() => {\n focusTrap._document.addEventListener('focus', this._listener, true);\n });\n }\n /** Removes the event listener added in preventFocus. */\n allowFocus(focusTrap) {\n if (!this._listener) {\n return;\n }\n focusTrap._document.removeEventListener('focus', this._listener, true);\n this._listener = null;\n }\n /**\n * Refocuses the first element in the FocusTrap if the focus event target was outside\n * the FocusTrap.\n *\n * This is an event listener callback. The event listener is added in runOutsideAngular,\n * so all this code runs outside Angular as well.\n */\n _trapFocus(focusTrap, event) {\n const target = event.target;\n const focusTrapRoot = focusTrap._element;\n // Don't refocus if target was in an overlay, because the overlay might be associated\n // with an element inside the FocusTrap, ex. mat-select.\n if (target && !focusTrapRoot.contains(target) && !target.closest?.('div.cdk-overlay-pane')) {\n // Some legacy FocusTrap usages have logic that focuses some element on the page\n // just before FocusTrap is destroyed. For backwards compatibility, wait\n // to be sure FocusTrap is still enabled before refocusing.\n setTimeout(() => {\n // Check whether focus wasn't put back into the focus trap while the timeout was pending.\n if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {\n focusTrap.focusFirstTabbableElement();\n }\n });\n }\n }\n}\n\n/** The injection token used to specify the inert strategy. */\nconst FOCUS_TRAP_INERT_STRATEGY = new InjectionToken('FOCUS_TRAP_INERT_STRATEGY');\n\n/** Injectable that ensures only the most recently enabled FocusTrap is active. */\nclass FocusTrapManager {\n // A stack of the FocusTraps on the page. Only the FocusTrap at the\n // top of the stack is active.\n _focusTrapStack = [];\n /**\n * Disables the FocusTrap at the top of the stack, and then pushes\n * the new FocusTrap onto the stack.\n */\n register(focusTrap) {\n // Dedupe focusTraps that register multiple times.\n this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);\n let stack = this._focusTrapStack;\n if (stack.length) {\n stack[stack.length - 1]._disable();\n }\n stack.push(focusTrap);\n focusTrap._enable();\n }\n /**\n * Removes the FocusTrap from the stack, and activates the\n * FocusTrap that is the new top of the stack.\n */\n deregister(focusTrap) {\n focusTrap._disable();\n const stack = this._focusTrapStack;\n const i = stack.indexOf(focusTrap);\n if (i !== -1) {\n stack.splice(i, 1);\n if (stack.length) {\n stack[stack.length - 1]._enable();\n }\n }\n }\n static ɵfac = function FocusTrapManager_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || FocusTrapManager)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FocusTrapManager,\n factory: FocusTrapManager.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(FocusTrapManager, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], null, null);\n})();\n\n/** Factory that allows easy instantiation of configurable focus traps. */\nclass ConfigurableFocusTrapFactory {\n _checker = inject(InteractivityChecker);\n _ngZone = inject(NgZone);\n _focusTrapManager = inject(FocusTrapManager);\n _document = inject(DOCUMENT);\n _inertStrategy;\n _injector = inject(Injector);\n constructor() {\n const inertStrategy = inject(FOCUS_TRAP_INERT_STRATEGY, {\n optional: true\n });\n // TODO split up the strategies into different modules, similar to DateAdapter.\n this._inertStrategy = inertStrategy || new EventListenerFocusTrapInertStrategy();\n }\n create(element, config = {\n defer: false\n }) {\n let configObject;\n if (typeof config === 'boolean') {\n configObject = {\n defer: config\n };\n } else {\n configObject = config;\n }\n return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject, this._injector);\n }\n static ɵfac = function ConfigurableFocusTrapFactory_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ConfigurableFocusTrapFactory)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ConfigurableFocusTrapFactory,\n factory: ConfigurableFocusTrapFactory.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(ConfigurableFocusTrapFactory, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\nexport { AriaDescriber, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, CDK_DESCRIBEDBY_ID_PREFIX, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_TRAP_INERT_STRATEGY, FocusTrap, InteractivityChecker, MESSAGES_CONTAINER_ID, NOOP_TREE_KEY_MANAGER_FACTORY, NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER, NoopTreeKeyManager, TREE_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U,KAAK,SAAS,KAAK,WAAW,KAAK,mBAAmB,KAAK,gBAAgB,cAAc,KAAK,SAAS;AAAA,EAClK;AAAA,EACA,OAAO,OAAO,SAAS,qCAAqC,mBAAmB;AAC7E,WAAO,KAAK,qBAAqB,+BAA8B;AAAA,EACjE;AAAA,EACA,OAAO,QAA0B,mBAAmB;AAAA,IAClD,OAAO;AAAA,IACP,SAAS,8BAA6B;AAAA,IACtC,YAAY;AAAA,EACd,CAAC;AACH;AAAA,CACC,MAAM;AACL,GAAC,OAAO,cAAc,eAAe,cAAiB,iBAAkB,8BAA8B,CAAC;AAAA,IACrG,MAAM;AAAA,IACN,MAAM,CAAC;AAAA,MACL,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI;AACpB,GAAG;",
- "names": ["document", "FocusMonitorDetectionMode", "window", "window", "HighContrastMode", "items"]
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js b/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js
deleted file mode 100644
index f9ce869..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js
+++ /dev/null
@@ -1,4277 +0,0 @@
-import {
- isFakeMousedownFromScreenReader,
- isFakeTouchstartFromScreenReader
-} from "./chunk-YLELG2JA.js";
-import {
- CdkScrollable,
- CdkScrollableModule,
- Directionality,
- ScrollDispatcher,
- ViewportRuler
-} from "./chunk-EO7WLVSF.js";
-import {
- _CdkPrivateStyleLoader,
- _getEventTarget,
- _getShadowRoot,
- coerceArray,
- coerceElement,
- coerceNumberProperty
-} from "./chunk-FV6QHIHW.js";
-import {
- _IdGenerator
-} from "./chunk-USTXONGY.js";
-import "./chunk-76DXN4JH.js";
-import "./chunk-4X6VR2I6.js";
-import {
- ChangeDetectionStrategy,
- ChangeDetectorRef,
- Component,
- Directive,
- ElementRef,
- EventEmitter,
- Injectable,
- Input,
- NgModule,
- NgZone,
- Output,
- RendererFactory2,
- TemplateRef,
- ViewContainerRef,
- ViewEncapsulation,
- afterNextRender,
- booleanAttribute,
- numberAttribute,
- setClassMetadata,
- ɵɵNgOnChangesFeature,
- ɵɵProvidersFeature,
- ɵɵattribute,
- ɵɵclassProp,
- ɵɵdefineComponent,
- ɵɵdefineDirective,
- ɵɵdefineNgModule
-} from "./chunk-UEBPW2IJ.js";
-import {
- DOCUMENT,
- InjectionToken,
- Injector,
- inject,
- signal,
- ɵɵdefineInjectable,
- ɵɵdefineInjector
-} from "./chunk-QLJXSR7F.js";
-import {
- BehaviorSubject,
- Observable,
- Subject,
- Subscription,
- animationFrameScheduler,
- interval,
- map,
- merge,
- startWith,
- switchMap,
- take,
- takeUntil,
- tap
-} from "./chunk-RSS3ODKE.js";
-import "./chunk-TKSB4YUA.js";
-
-// node_modules/@angular/cdk/fesm2022/drag-drop.mjs
-function deepCloneNode(node) {
- const clone = node.cloneNode(true);
- const descendantsWithId = clone.querySelectorAll("[id]");
- const nodeName = node.nodeName.toLowerCase();
- clone.removeAttribute("id");
- for (let i = 0; i < descendantsWithId.length; i++) {
- descendantsWithId[i].removeAttribute("id");
- }
- if (nodeName === "canvas") {
- transferCanvasData(node, clone);
- } else if (nodeName === "input" || nodeName === "select" || nodeName === "textarea") {
- transferInputData(node, clone);
- }
- transferData("canvas", node, clone, transferCanvasData);
- transferData("input, textarea, select", node, clone, transferInputData);
- return clone;
-}
-function transferData(selector, node, clone, callback) {
- const descendantElements = node.querySelectorAll(selector);
- if (descendantElements.length) {
- const cloneElements = clone.querySelectorAll(selector);
- for (let i = 0; i < descendantElements.length; i++) {
- callback(descendantElements[i], cloneElements[i]);
- }
- }
-}
-var cloneUniqueId = 0;
-function transferInputData(source, clone) {
- if (clone.type !== "file") {
- clone.value = source.value;
- }
- if (clone.type === "radio" && clone.name) {
- clone.name = `mat-clone-${clone.name}-${cloneUniqueId++}`;
- }
-}
-function transferCanvasData(source, clone) {
- const context = clone.getContext("2d");
- if (context) {
- try {
- context.drawImage(source, 0, 0);
- } catch {
- }
- }
-}
-function getMutableClientRect(element) {
- const rect = element.getBoundingClientRect();
- return {
- top: rect.top,
- right: rect.right,
- bottom: rect.bottom,
- left: rect.left,
- width: rect.width,
- height: rect.height,
- x: rect.x,
- y: rect.y
- };
-}
-function isInsideClientRect(clientRect, x, y) {
- const {
- top,
- bottom,
- left,
- right
- } = clientRect;
- return y >= top && y <= bottom && x >= left && x <= right;
-}
-function isOverflowingParent(parentRect, childRect) {
- const isLeftOverflowing = childRect.left < parentRect.left;
- const isRightOverflowing = childRect.left + childRect.width > parentRect.right;
- const isTopOverflowing = childRect.top < parentRect.top;
- const isBottomOverflowing = childRect.top + childRect.height > parentRect.bottom;
- return isLeftOverflowing || isRightOverflowing || isTopOverflowing || isBottomOverflowing;
-}
-function adjustDomRect(domRect, top, left) {
- domRect.top += top;
- domRect.bottom = domRect.top + domRect.height;
- domRect.left += left;
- domRect.right = domRect.left + domRect.width;
-}
-function isPointerNearDomRect(rect, threshold, pointerX, pointerY) {
- const {
- top,
- right,
- bottom,
- left,
- width,
- height
- } = rect;
- const xThreshold = width * threshold;
- const yThreshold = height * threshold;
- return pointerY > top - yThreshold && pointerY < bottom + yThreshold && pointerX > left - xThreshold && pointerX < right + xThreshold;
-}
-var ParentPositionTracker = class {
- _document;
- /** Cached positions of the scrollable parent elements. */
- positions = /* @__PURE__ */ new Map();
- constructor(_document) {
- this._document = _document;
- }
- /** Clears the cached positions. */
- clear() {
- this.positions.clear();
- }
- /** Caches the positions. Should be called at the beginning of a drag sequence. */
- cache(elements) {
- this.clear();
- this.positions.set(this._document, {
- scrollPosition: this.getViewportScrollPosition()
- });
- elements.forEach((element) => {
- this.positions.set(element, {
- scrollPosition: {
- top: element.scrollTop,
- left: element.scrollLeft
- },
- clientRect: getMutableClientRect(element)
- });
- });
- }
- /** Handles scrolling while a drag is taking place. */
- handleScroll(event) {
- const target = _getEventTarget(event);
- const cachedPosition = this.positions.get(target);
- if (!cachedPosition) {
- return null;
- }
- const scrollPosition = cachedPosition.scrollPosition;
- let newTop;
- let newLeft;
- if (target === this._document) {
- const viewportScrollPosition = this.getViewportScrollPosition();
- newTop = viewportScrollPosition.top;
- newLeft = viewportScrollPosition.left;
- } else {
- newTop = target.scrollTop;
- newLeft = target.scrollLeft;
- }
- const topDifference = scrollPosition.top - newTop;
- const leftDifference = scrollPosition.left - newLeft;
- this.positions.forEach((position, node) => {
- if (position.clientRect && target !== node && target.contains(node)) {
- adjustDomRect(position.clientRect, topDifference, leftDifference);
- }
- });
- scrollPosition.top = newTop;
- scrollPosition.left = newLeft;
- return {
- top: topDifference,
- left: leftDifference
- };
- }
- /**
- * Gets the scroll position of the viewport. Note that we use the scrollX and scrollY directly,
- * instead of going through the `ViewportRuler`, because the first value the ruler looks at is
- * the top/left offset of the `document.documentElement` which works for most cases, but breaks
- * if the element is offset by something like the `BlockScrollStrategy`.
- */
- getViewportScrollPosition() {
- return {
- top: window.scrollY,
- left: window.scrollX
- };
- }
-};
-function getRootNode(viewRef, _document) {
- const rootNodes = viewRef.rootNodes;
- if (rootNodes.length === 1 && rootNodes[0].nodeType === _document.ELEMENT_NODE) {
- return rootNodes[0];
- }
- const wrapper = _document.createElement("div");
- rootNodes.forEach((node) => wrapper.appendChild(node));
- return wrapper;
-}
-function extendStyles(dest, source, importantProperties2) {
- for (let key in source) {
- if (source.hasOwnProperty(key)) {
- const value = source[key];
- if (value) {
- dest.setProperty(key, value, importantProperties2?.has(key) ? "important" : "");
- } else {
- dest.removeProperty(key);
- }
- }
- }
- return dest;
-}
-function toggleNativeDragInteractions(element, enable) {
- const userSelect = enable ? "" : "none";
- extendStyles(element.style, {
- "touch-action": enable ? "" : "none",
- "-webkit-user-drag": enable ? "" : "none",
- "-webkit-tap-highlight-color": enable ? "" : "transparent",
- "user-select": userSelect,
- "-ms-user-select": userSelect,
- "-webkit-user-select": userSelect,
- "-moz-user-select": userSelect
- });
-}
-function toggleVisibility(element, enable, importantProperties2) {
- extendStyles(element.style, {
- position: enable ? "" : "fixed",
- top: enable ? "" : "0",
- opacity: enable ? "" : "0",
- left: enable ? "" : "-999em"
- }, importantProperties2);
-}
-function combineTransforms(transform, initialTransform) {
- return initialTransform && initialTransform != "none" ? transform + " " + initialTransform : transform;
-}
-function matchElementSize(target, sourceRect) {
- target.style.width = `${sourceRect.width}px`;
- target.style.height = `${sourceRect.height}px`;
- target.style.transform = getTransform(sourceRect.left, sourceRect.top);
-}
-function getTransform(x, y) {
- return `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)`;
-}
-function parseCssTimeUnitsToMs(value) {
- const multiplier = value.toLowerCase().indexOf("ms") > -1 ? 1 : 1e3;
- return parseFloat(value) * multiplier;
-}
-function getTransformTransitionDurationInMs(element) {
- const computedStyle = getComputedStyle(element);
- const transitionedProperties = parseCssPropertyValue(computedStyle, "transition-property");
- const property = transitionedProperties.find((prop) => prop === "transform" || prop === "all");
- if (!property) {
- return 0;
- }
- const propertyIndex = transitionedProperties.indexOf(property);
- const rawDurations = parseCssPropertyValue(computedStyle, "transition-duration");
- const rawDelays = parseCssPropertyValue(computedStyle, "transition-delay");
- return parseCssTimeUnitsToMs(rawDurations[propertyIndex]) + parseCssTimeUnitsToMs(rawDelays[propertyIndex]);
-}
-function parseCssPropertyValue(computedStyle, name) {
- const value = computedStyle.getPropertyValue(name);
- return value.split(",").map((part) => part.trim());
-}
-var importantProperties = /* @__PURE__ */ new Set([
- // Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.
- "position"
-]);
-var PreviewRef = class {
- _document;
- _rootElement;
- _direction;
- _initialDomRect;
- _previewTemplate;
- _previewClass;
- _pickupPositionOnPage;
- _initialTransform;
- _zIndex;
- _renderer;
- /** Reference to the view of the preview element. */
- _previewEmbeddedView;
- /** Reference to the preview element. */
- _preview;
- get element() {
- return this._preview;
- }
- constructor(_document, _rootElement, _direction, _initialDomRect, _previewTemplate, _previewClass, _pickupPositionOnPage, _initialTransform, _zIndex, _renderer) {
- this._document = _document;
- this._rootElement = _rootElement;
- this._direction = _direction;
- this._initialDomRect = _initialDomRect;
- this._previewTemplate = _previewTemplate;
- this._previewClass = _previewClass;
- this._pickupPositionOnPage = _pickupPositionOnPage;
- this._initialTransform = _initialTransform;
- this._zIndex = _zIndex;
- this._renderer = _renderer;
- }
- attach(parent) {
- this._preview = this._createPreview();
- parent.appendChild(this._preview);
- if (supportsPopover(this._preview)) {
- this._preview["showPopover"]();
- }
- }
- destroy() {
- this._preview.remove();
- this._previewEmbeddedView?.destroy();
- this._preview = this._previewEmbeddedView = null;
- }
- setTransform(value) {
- this._preview.style.transform = value;
- }
- getBoundingClientRect() {
- return this._preview.getBoundingClientRect();
- }
- addClass(className) {
- this._preview.classList.add(className);
- }
- getTransitionDuration() {
- return getTransformTransitionDurationInMs(this._preview);
- }
- addEventListener(name, handler) {
- return this._renderer.listen(this._preview, name, handler);
- }
- _createPreview() {
- const previewConfig = this._previewTemplate;
- const previewClass = this._previewClass;
- const previewTemplate = previewConfig ? previewConfig.template : null;
- let preview;
- if (previewTemplate && previewConfig) {
- const rootRect = previewConfig.matchSize ? this._initialDomRect : null;
- const viewRef = previewConfig.viewContainer.createEmbeddedView(previewTemplate, previewConfig.context);
- viewRef.detectChanges();
- preview = getRootNode(viewRef, this._document);
- this._previewEmbeddedView = viewRef;
- if (previewConfig.matchSize) {
- matchElementSize(preview, rootRect);
- } else {
- preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
- }
- } else {
- preview = deepCloneNode(this._rootElement);
- matchElementSize(preview, this._initialDomRect);
- if (this._initialTransform) {
- preview.style.transform = this._initialTransform;
- }
- }
- extendStyles(preview.style, {
- // It's important that we disable the pointer events on the preview, because
- // it can throw off the `document.elementFromPoint` calls in the `CdkDropList`.
- "pointer-events": "none",
- // If the preview has a margin, it can throw off our positioning so we reset it. The reset
- // value for `margin-right` needs to be `auto` when opened as a popover, because our
- // positioning is always top/left based, but native popover seems to position itself
- // to the top/right if `` or `` have `dir="rtl"` (see #29604). Setting it
- // to `auto` pushed it to the top/left corner in RTL and is a noop in LTR.
- "margin": supportsPopover(preview) ? "0 auto 0 0" : "0",
- "position": "fixed",
- "top": "0",
- "left": "0",
- "z-index": this._zIndex + ""
- }, importantProperties);
- toggleNativeDragInteractions(preview, false);
- preview.classList.add("cdk-drag-preview");
- preview.setAttribute("popover", "manual");
- preview.setAttribute("dir", this._direction);
- if (previewClass) {
- if (Array.isArray(previewClass)) {
- previewClass.forEach((className) => preview.classList.add(className));
- } else {
- preview.classList.add(previewClass);
- }
- }
- return preview;
- }
-};
-function supportsPopover(element) {
- return "showPopover" in element;
-}
-var passiveEventListenerOptions = {
- passive: true
-};
-var activeEventListenerOptions = {
- passive: false
-};
-var activeCapturingEventOptions$1 = {
- passive: false,
- capture: true
-};
-var MOUSE_EVENT_IGNORE_TIME = 800;
-var PLACEHOLDER_CLASS = "cdk-drag-placeholder";
-var dragImportantProperties = /* @__PURE__ */ new Set([
- // Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.
- "position"
-]);
-var DragRef = class {
- _config;
- _document;
- _ngZone;
- _viewportRuler;
- _dragDropRegistry;
- _renderer;
- _rootElementCleanups;
- _cleanupShadowRootSelectStart;
- /** Element displayed next to the user's pointer while the element is dragged. */
- _preview;
- /** Container into which to insert the preview. */
- _previewContainer;
- /** Reference to the view of the placeholder element. */
- _placeholderRef;
- /** Element that is rendered instead of the draggable item while it is being sorted. */
- _placeholder;
- /** Coordinates within the element at which the user picked up the element. */
- _pickupPositionInElement;
- /** Coordinates on the page at which the user picked up the element. */
- _pickupPositionOnPage;
- /**
- * Marker node used to save the place in the DOM where the element was
- * picked up so that it can be restored at the end of the drag sequence.
- */
- _marker;
- /**
- * Element indicating the position from which the item was picked up initially.
- */
- _anchor = null;
- /**
- * CSS `transform` applied to the element when it isn't being dragged. We need a
- * passive transform in order for the dragged element to retain its new position
- * after the user has stopped dragging and because we need to know the relative
- * position in case they start dragging again. This corresponds to `element.style.transform`.
- */
- _passiveTransform = {
- x: 0,
- y: 0
- };
- /** CSS `transform` that is applied to the element while it's being dragged. */
- _activeTransform = {
- x: 0,
- y: 0
- };
- /** Inline `transform` value that the element had before the first dragging sequence. */
- _initialTransform;
- /**
- * Whether the dragging sequence has been started. Doesn't
- * necessarily mean that the element has been moved.
- */
- _hasStartedDragging = signal(false, ...ngDevMode ? [{
- debugName: "_hasStartedDragging"
- }] : []);
- /** Whether the element has moved since the user started dragging it. */
- _hasMoved;
- /** Drop container in which the DragRef resided when dragging began. */
- _initialContainer;
- /** Index at which the item started in its initial container. */
- _initialIndex;
- /** Cached positions of scrollable parent elements. */
- _parentPositions;
- /** Emits when the item is being moved. */
- _moveEvents = new Subject();
- /** Keeps track of the direction in which the user is dragging along each axis. */
- _pointerDirectionDelta;
- /** Pointer position at which the last change in the delta occurred. */
- _pointerPositionAtLastDirectionChange;
- /** Position of the pointer at the last pointer event. */
- _lastKnownPointerPosition;
- /**
- * Root DOM node of the drag instance. This is the element that will
- * be moved around as the user is dragging.
- */
- _rootElement;
- /**
- * Nearest ancestor SVG, relative to which coordinates are calculated if dragging SVGElement
- */
- _ownerSVGElement;
- /**
- * Inline style value of `-webkit-tap-highlight-color` at the time the
- * dragging was started. Used to restore the value once we're done dragging.
- */
- _rootElementTapHighlight;
- /** Subscription to pointer movement events. */
- _pointerMoveSubscription = Subscription.EMPTY;
- /** Subscription to the event that is dispatched when the user lifts their pointer. */
- _pointerUpSubscription = Subscription.EMPTY;
- /** Subscription to the viewport being scrolled. */
- _scrollSubscription = Subscription.EMPTY;
- /** Subscription to the viewport being resized. */
- _resizeSubscription = Subscription.EMPTY;
- /**
- * Time at which the last touch event occurred. Used to avoid firing the same
- * events multiple times on touch devices where the browser will fire a fake
- * mouse event for each touch event, after a certain time.
- */
- _lastTouchEventTime;
- /** Time at which the last dragging sequence was started. */
- _dragStartTime;
- /** Cached reference to the boundary element. */
- _boundaryElement = null;
- /** Whether the native dragging interactions have been enabled on the root element. */
- _nativeInteractionsEnabled = true;
- /** Client rect of the root element when the dragging sequence has started. */
- _initialDomRect;
- /** Cached dimensions of the preview element. Should be read via `_getPreviewRect`. */
- _previewRect;
- /** Cached dimensions of the boundary element. */
- _boundaryRect;
- /** Element that will be used as a template to create the draggable item's preview. */
- _previewTemplate;
- /** Template for placeholder element rendered to show where a draggable would be dropped. */
- _placeholderTemplate;
- /** Elements that can be used to drag the draggable item. */
- _handles = [];
- /** Registered handles that are currently disabled. */
- _disabledHandles = /* @__PURE__ */ new Set();
- /** Droppable container that the draggable is a part of. */
- _dropContainer;
- /** Layout direction of the item. */
- _direction = "ltr";
- /** Ref that the current drag item is nested in. */
- _parentDragRef;
- /**
- * Cached shadow root that the element is placed in. `null` means that the element isn't in
- * the shadow DOM and `undefined` means that it hasn't been resolved yet. Should be read via
- * `_getShadowRoot`, not directly.
- */
- _cachedShadowRoot;
- /** Axis along which dragging is locked. */
- lockAxis = null;
- /**
- * Amount of milliseconds to wait after the user has put their
- * pointer down before starting to drag the element.
- */
- dragStartDelay = 0;
- /** Class to be added to the preview element. */
- previewClass;
- /**
- * If the parent of the dragged element has a `scale` transform, it can throw off the
- * positioning when the user starts dragging. Use this input to notify the CDK of the scale.
- */
- scale = 1;
- /** Whether starting to drag this element is disabled. */
- get disabled() {
- return this._disabled || !!(this._dropContainer && this._dropContainer.disabled);
- }
- set disabled(value) {
- if (value !== this._disabled) {
- this._disabled = value;
- this._toggleNativeDragInteractions();
- this._handles.forEach((handle) => toggleNativeDragInteractions(handle, value));
- }
- }
- _disabled = false;
- /** Emits as the drag sequence is being prepared. */
- beforeStarted = new Subject();
- /** Emits when the user starts dragging the item. */
- started = new Subject();
- /** Emits when the user has released a drag item, before any animations have started. */
- released = new Subject();
- /** Emits when the user stops dragging an item in the container. */
- ended = new Subject();
- /** Emits when the user has moved the item into a new container. */
- entered = new Subject();
- /** Emits when the user removes the item its container by dragging it into another container. */
- exited = new Subject();
- /** Emits when the user drops the item inside a container. */
- dropped = new Subject();
- /**
- * Emits as the user is dragging the item. Use with caution,
- * because this event will fire for every pixel that the user has dragged.
- */
- moved = this._moveEvents;
- /** Arbitrary data that can be attached to the drag item. */
- data;
- /**
- * Function that can be used to customize the logic of how the position of the drag item
- * is limited while it's being dragged. Gets called with a point containing the current position
- * of the user's pointer on the page, a reference to the item being dragged and its dimensions.
- * Should return a point describing where the item should be rendered.
- */
- constrainPosition;
- constructor(element, _config, _document, _ngZone, _viewportRuler, _dragDropRegistry, _renderer) {
- this._config = _config;
- this._document = _document;
- this._ngZone = _ngZone;
- this._viewportRuler = _viewportRuler;
- this._dragDropRegistry = _dragDropRegistry;
- this._renderer = _renderer;
- this.withRootElement(element).withParent(_config.parentDragRef || null);
- this._parentPositions = new ParentPositionTracker(_document);
- _dragDropRegistry.registerDragItem(this);
- }
- /**
- * Returns the element that is being used as a placeholder
- * while the current element is being dragged.
- */
- getPlaceholderElement() {
- return this._placeholder;
- }
- /** Returns the root draggable element. */
- getRootElement() {
- return this._rootElement;
- }
- /**
- * Gets the currently-visible element that represents the drag item.
- * While dragging this is the placeholder, otherwise it's the root element.
- */
- getVisibleElement() {
- return this.isDragging() ? this.getPlaceholderElement() : this.getRootElement();
- }
- /** Registers the handles that can be used to drag the element. */
- withHandles(handles) {
- this._handles = handles.map((handle) => coerceElement(handle));
- this._handles.forEach((handle) => toggleNativeDragInteractions(handle, this.disabled));
- this._toggleNativeDragInteractions();
- const disabledHandles = /* @__PURE__ */ new Set();
- this._disabledHandles.forEach((handle) => {
- if (this._handles.indexOf(handle) > -1) {
- disabledHandles.add(handle);
- }
- });
- this._disabledHandles = disabledHandles;
- return this;
- }
- /**
- * Registers the template that should be used for the drag preview.
- * @param template Template that from which to stamp out the preview.
- */
- withPreviewTemplate(template) {
- this._previewTemplate = template;
- return this;
- }
- /**
- * Registers the template that should be used for the drag placeholder.
- * @param template Template that from which to stamp out the placeholder.
- */
- withPlaceholderTemplate(template) {
- this._placeholderTemplate = template;
- return this;
- }
- /**
- * Sets an alternate drag root element. The root element is the element that will be moved as
- * the user is dragging. Passing an alternate root element is useful when trying to enable
- * dragging on an element that you might not have access to.
- */
- withRootElement(rootElement) {
- const element = coerceElement(rootElement);
- if (element !== this._rootElement) {
- this._removeRootElementListeners();
- const renderer = this._renderer;
- this._rootElementCleanups = this._ngZone.runOutsideAngular(() => [renderer.listen(element, "mousedown", this._pointerDown, activeEventListenerOptions), renderer.listen(element, "touchstart", this._pointerDown, passiveEventListenerOptions), renderer.listen(element, "dragstart", this._nativeDragStart, activeEventListenerOptions)]);
- this._initialTransform = void 0;
- this._rootElement = element;
- }
- if (typeof SVGElement !== "undefined" && this._rootElement instanceof SVGElement) {
- this._ownerSVGElement = this._rootElement.ownerSVGElement;
- }
- return this;
- }
- /**
- * Element to which the draggable's position will be constrained.
- */
- withBoundaryElement(boundaryElement) {
- this._boundaryElement = boundaryElement ? coerceElement(boundaryElement) : null;
- this._resizeSubscription.unsubscribe();
- if (boundaryElement) {
- this._resizeSubscription = this._viewportRuler.change(10).subscribe(() => this._containInsideBoundaryOnResize());
- }
- return this;
- }
- /** Sets the parent ref that the ref is nested in. */
- withParent(parent) {
- this._parentDragRef = parent;
- return this;
- }
- /** Removes the dragging functionality from the DOM element. */
- dispose() {
- this._removeRootElementListeners();
- if (this.isDragging()) {
- this._rootElement?.remove();
- }
- this._marker?.remove();
- this._destroyPreview();
- this._destroyPlaceholder();
- this._dragDropRegistry.removeDragItem(this);
- this._removeListeners();
- this.beforeStarted.complete();
- this.started.complete();
- this.released.complete();
- this.ended.complete();
- this.entered.complete();
- this.exited.complete();
- this.dropped.complete();
- this._moveEvents.complete();
- this._handles = [];
- this._disabledHandles.clear();
- this._dropContainer = void 0;
- this._resizeSubscription.unsubscribe();
- this._parentPositions.clear();
- this._boundaryElement = this._rootElement = this._ownerSVGElement = this._placeholderTemplate = this._previewTemplate = this._marker = this._parentDragRef = null;
- }
- /** Checks whether the element is currently being dragged. */
- isDragging() {
- return this._hasStartedDragging() && this._dragDropRegistry.isDragging(this);
- }
- /** Resets a standalone drag item to its initial position. */
- reset() {
- this._rootElement.style.transform = this._initialTransform || "";
- this._activeTransform = {
- x: 0,
- y: 0
- };
- this._passiveTransform = {
- x: 0,
- y: 0
- };
- }
- /** Resets drag item to end of boundary element. */
- resetToBoundary() {
- if (
- // can be null if the drag item was never dragged.
- this._boundaryElement && this._rootElement && // check if we are overflowing off our boundary element
- isOverflowingParent(this._boundaryElement.getBoundingClientRect(), this._rootElement.getBoundingClientRect())
- ) {
- const parentRect = this._boundaryElement.getBoundingClientRect();
- const childRect = this._rootElement.getBoundingClientRect();
- let offsetX = 0;
- let offsetY = 0;
- if (childRect.left < parentRect.left) {
- offsetX = parentRect.left - childRect.left;
- } else if (childRect.right > parentRect.right) {
- offsetX = parentRect.right - childRect.right;
- }
- if (childRect.top < parentRect.top) {
- offsetY = parentRect.top - childRect.top;
- } else if (childRect.bottom > parentRect.bottom) {
- offsetY = parentRect.bottom - childRect.bottom;
- }
- const currentLeft = this._activeTransform.x;
- const currentTop = this._activeTransform.y;
- let x = currentLeft + offsetX, y = currentTop + offsetY;
- this._rootElement.style.transform = getTransform(x, y);
- this._activeTransform = {
- x,
- y
- };
- this._passiveTransform = {
- x,
- y
- };
- }
- }
- /**
- * Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.
- * @param handle Handle element that should be disabled.
- */
- disableHandle(handle) {
- if (!this._disabledHandles.has(handle) && this._handles.indexOf(handle) > -1) {
- this._disabledHandles.add(handle);
- toggleNativeDragInteractions(handle, true);
- }
- }
- /**
- * Enables a handle, if it has been disabled.
- * @param handle Handle element to be enabled.
- */
- enableHandle(handle) {
- if (this._disabledHandles.has(handle)) {
- this._disabledHandles.delete(handle);
- toggleNativeDragInteractions(handle, this.disabled);
- }
- }
- /** Sets the layout direction of the draggable item. */
- withDirection(direction) {
- this._direction = direction;
- return this;
- }
- /** Sets the container that the item is part of. */
- _withDropContainer(container) {
- this._dropContainer = container;
- }
- /**
- * Gets the current position in pixels the draggable outside of a drop container.
- */
- getFreeDragPosition() {
- const position = this.isDragging() ? this._activeTransform : this._passiveTransform;
- return {
- x: position.x,
- y: position.y
- };
- }
- /**
- * Sets the current position in pixels the draggable outside of a drop container.
- * @param value New position to be set.
- */
- setFreeDragPosition(value) {
- this._activeTransform = {
- x: 0,
- y: 0
- };
- this._passiveTransform.x = value.x;
- this._passiveTransform.y = value.y;
- if (!this._dropContainer) {
- this._applyRootElementTransform(value.x, value.y);
- }
- return this;
- }
- /**
- * Sets the container into which to insert the preview element.
- * @param value Container into which to insert the preview.
- */
- withPreviewContainer(value) {
- this._previewContainer = value;
- return this;
- }
- /** Updates the item's sort order based on the last-known pointer position. */
- _sortFromLastPointerPosition() {
- const position = this._lastKnownPointerPosition;
- if (position && this._dropContainer) {
- this._updateActiveDropContainer(this._getConstrainedPointerPosition(position), position);
- }
- }
- /** Unsubscribes from the global subscriptions. */
- _removeListeners() {
- this._pointerMoveSubscription.unsubscribe();
- this._pointerUpSubscription.unsubscribe();
- this._scrollSubscription.unsubscribe();
- this._cleanupShadowRootSelectStart?.();
- this._cleanupShadowRootSelectStart = void 0;
- }
- /** Destroys the preview element and its ViewRef. */
- _destroyPreview() {
- this._preview?.destroy();
- this._preview = null;
- }
- /** Destroys the placeholder element and its ViewRef. */
- _destroyPlaceholder() {
- this._anchor?.remove();
- this._placeholder?.remove();
- this._placeholderRef?.destroy();
- this._placeholder = this._anchor = this._placeholderRef = null;
- }
- /** Handler for the `mousedown`/`touchstart` events. */
- _pointerDown = (event) => {
- this.beforeStarted.next();
- if (this._handles.length) {
- const targetHandle = this._getTargetHandle(event);
- if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {
- this._initializeDragSequence(targetHandle, event);
- }
- } else if (!this.disabled) {
- this._initializeDragSequence(this._rootElement, event);
- }
- };
- /** Handler that is invoked when the user moves their pointer after they've initiated a drag. */
- _pointerMove = (event) => {
- const pointerPosition = this._getPointerPositionOnPage(event);
- if (!this._hasStartedDragging()) {
- const distanceX = Math.abs(pointerPosition.x - this._pickupPositionOnPage.x);
- const distanceY = Math.abs(pointerPosition.y - this._pickupPositionOnPage.y);
- const isOverThreshold = distanceX + distanceY >= this._config.dragStartThreshold;
- if (isOverThreshold) {
- const isDelayElapsed = Date.now() >= this._dragStartTime + this._getDragStartDelay(event);
- const container = this._dropContainer;
- if (!isDelayElapsed) {
- this._endDragSequence(event);
- return;
- }
- if (!container || !container.isDragging() && !container.isReceiving()) {
- if (event.cancelable) {
- event.preventDefault();
- }
- this._hasStartedDragging.set(true);
- this._ngZone.run(() => this._startDragSequence(event));
- }
- }
- return;
- }
- if (event.cancelable) {
- event.preventDefault();
- }
- const constrainedPointerPosition = this._getConstrainedPointerPosition(pointerPosition);
- this._hasMoved = true;
- this._lastKnownPointerPosition = pointerPosition;
- this._updatePointerDirectionDelta(constrainedPointerPosition);
- if (this._dropContainer) {
- this._updateActiveDropContainer(constrainedPointerPosition, pointerPosition);
- } else {
- const offset = this.constrainPosition ? this._initialDomRect : this._pickupPositionOnPage;
- const activeTransform = this._activeTransform;
- activeTransform.x = constrainedPointerPosition.x - offset.x + this._passiveTransform.x;
- activeTransform.y = constrainedPointerPosition.y - offset.y + this._passiveTransform.y;
- this._applyRootElementTransform(activeTransform.x, activeTransform.y);
- }
- if (this._moveEvents.observers.length) {
- this._ngZone.run(() => {
- this._moveEvents.next({
- source: this,
- pointerPosition: constrainedPointerPosition,
- event,
- distance: this._getDragDistance(constrainedPointerPosition),
- delta: this._pointerDirectionDelta
- });
- });
- }
- };
- /** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */
- _pointerUp = (event) => {
- this._endDragSequence(event);
- };
- /**
- * Clears subscriptions and stops the dragging sequence.
- * @param event Browser event object that ended the sequence.
- */
- _endDragSequence(event) {
- if (!this._dragDropRegistry.isDragging(this)) {
- return;
- }
- this._removeListeners();
- this._dragDropRegistry.stopDragging(this);
- this._toggleNativeDragInteractions();
- if (this._handles) {
- this._rootElement.style.webkitTapHighlightColor = this._rootElementTapHighlight;
- }
- if (!this._hasStartedDragging()) {
- return;
- }
- this.released.next({
- source: this,
- event
- });
- if (this._dropContainer) {
- this._dropContainer._stopScrolling();
- this._animatePreviewToPlaceholder().then(() => {
- this._cleanupDragArtifacts(event);
- this._cleanupCachedDimensions();
- this._dragDropRegistry.stopDragging(this);
- });
- } else {
- this._passiveTransform.x = this._activeTransform.x;
- const pointerPosition = this._getPointerPositionOnPage(event);
- this._passiveTransform.y = this._activeTransform.y;
- this._ngZone.run(() => {
- this.ended.next({
- source: this,
- distance: this._getDragDistance(pointerPosition),
- dropPoint: pointerPosition,
- event
- });
- });
- this._cleanupCachedDimensions();
- this._dragDropRegistry.stopDragging(this);
- }
- }
- /** Starts the dragging sequence. */
- _startDragSequence(event) {
- if (isTouchEvent(event)) {
- this._lastTouchEventTime = Date.now();
- }
- this._toggleNativeDragInteractions();
- const shadowRoot = this._getShadowRoot();
- const dropContainer = this._dropContainer;
- if (shadowRoot) {
- this._ngZone.runOutsideAngular(() => {
- this._cleanupShadowRootSelectStart = this._renderer.listen(shadowRoot, "selectstart", shadowDomSelectStart, activeCapturingEventOptions$1);
- });
- }
- if (dropContainer) {
- const element = this._rootElement;
- const parent = element.parentNode;
- const placeholder = this._placeholder = this._createPlaceholderElement();
- const marker = this._marker = this._marker || this._document.createComment(typeof ngDevMode === "undefined" || ngDevMode ? "cdk-drag-marker" : "");
- parent.insertBefore(marker, element);
- this._initialTransform = element.style.transform || "";
- this._preview = new PreviewRef(this._document, this._rootElement, this._direction, this._initialDomRect, this._previewTemplate || null, this.previewClass || null, this._pickupPositionOnPage, this._initialTransform, this._config.zIndex || 1e3, this._renderer);
- this._preview.attach(this._getPreviewInsertionPoint(parent, shadowRoot));
- toggleVisibility(element, false, dragImportantProperties);
- this._document.body.appendChild(parent.replaceChild(placeholder, element));
- this.started.next({
- source: this,
- event
- });
- dropContainer.start();
- this._initialContainer = dropContainer;
- this._initialIndex = dropContainer.getItemIndex(this);
- } else {
- this.started.next({
- source: this,
- event
- });
- this._initialContainer = this._initialIndex = void 0;
- }
- this._parentPositions.cache(dropContainer ? dropContainer.getScrollableParents() : []);
- }
- /**
- * Sets up the different variables and subscriptions
- * that will be necessary for the dragging sequence.
- * @param referenceElement Element that started the drag sequence.
- * @param event Browser event object that started the sequence.
- */
- _initializeDragSequence(referenceElement, event) {
- if (this._parentDragRef) {
- event.stopPropagation();
- }
- const isDragging = this.isDragging();
- const isTouchSequence = isTouchEvent(event);
- const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;
- const rootElement = this._rootElement;
- const target = _getEventTarget(event);
- const isSyntheticEvent = !isTouchSequence && this._lastTouchEventTime && this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();
- const isFakeEvent = isTouchSequence ? isFakeTouchstartFromScreenReader(event) : isFakeMousedownFromScreenReader(event);
- if (target && target.draggable && event.type === "mousedown") {
- event.preventDefault();
- }
- if (isDragging || isAuxiliaryMouseButton || isSyntheticEvent || isFakeEvent) {
- return;
- }
- if (this._handles.length) {
- const rootStyles = rootElement.style;
- this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || "";
- rootStyles.webkitTapHighlightColor = "transparent";
- }
- this._hasMoved = false;
- this._hasStartedDragging.set(this._hasMoved);
- this._removeListeners();
- this._initialDomRect = this._rootElement.getBoundingClientRect();
- this._pointerMoveSubscription = this._dragDropRegistry.pointerMove.subscribe(this._pointerMove);
- this._pointerUpSubscription = this._dragDropRegistry.pointerUp.subscribe(this._pointerUp);
- this._scrollSubscription = this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe((scrollEvent) => this._updateOnScroll(scrollEvent));
- if (this._boundaryElement) {
- this._boundaryRect = getMutableClientRect(this._boundaryElement);
- }
- const previewTemplate = this._previewTemplate;
- this._pickupPositionInElement = previewTemplate && previewTemplate.template && !previewTemplate.matchSize ? {
- x: 0,
- y: 0
- } : this._getPointerPositionInElement(this._initialDomRect, referenceElement, event);
- const pointerPosition = this._pickupPositionOnPage = this._lastKnownPointerPosition = this._getPointerPositionOnPage(event);
- this._pointerDirectionDelta = {
- x: 0,
- y: 0
- };
- this._pointerPositionAtLastDirectionChange = {
- x: pointerPosition.x,
- y: pointerPosition.y
- };
- this._dragStartTime = Date.now();
- this._dragDropRegistry.startDragging(this, event);
- }
- /** Cleans up the DOM artifacts that were added to facilitate the element being dragged. */
- _cleanupDragArtifacts(event) {
- toggleVisibility(this._rootElement, true, dragImportantProperties);
- this._marker.parentNode.replaceChild(this._rootElement, this._marker);
- this._destroyPreview();
- this._destroyPlaceholder();
- this._initialDomRect = this._boundaryRect = this._previewRect = this._initialTransform = void 0;
- this._ngZone.run(() => {
- const container = this._dropContainer;
- const currentIndex = container.getItemIndex(this);
- const pointerPosition = this._getPointerPositionOnPage(event);
- const distance = this._getDragDistance(pointerPosition);
- const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
- this.ended.next({
- source: this,
- distance,
- dropPoint: pointerPosition,
- event
- });
- this.dropped.next({
- item: this,
- currentIndex,
- previousIndex: this._initialIndex,
- container,
- previousContainer: this._initialContainer,
- isPointerOverContainer,
- distance,
- dropPoint: pointerPosition,
- event
- });
- container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition, event);
- this._dropContainer = this._initialContainer;
- });
- }
- /**
- * Updates the item's position in its drop container, or moves it
- * into a new one, depending on its current drag position.
- */
- _updateActiveDropContainer({
- x,
- y
- }, {
- x: rawX,
- y: rawY
- }) {
- let newContainer = this._initialContainer._getSiblingContainerFromPosition(this, x, y);
- if (!newContainer && this._dropContainer !== this._initialContainer && this._initialContainer._isOverContainer(x, y)) {
- newContainer = this._initialContainer;
- }
- if (newContainer && newContainer !== this._dropContainer) {
- this._ngZone.run(() => {
- const exitIndex = this._dropContainer.getItemIndex(this);
- const nextItemElement = this._dropContainer.getItemAtIndex(exitIndex + 1)?.getVisibleElement() || null;
- this.exited.next({
- item: this,
- container: this._dropContainer
- });
- this._dropContainer.exit(this);
- this._conditionallyInsertAnchor(newContainer, this._dropContainer, nextItemElement);
- this._dropContainer = newContainer;
- this._dropContainer.enter(
- this,
- x,
- y,
- // If we're re-entering the initial container and sorting is disabled,
- // put item the into its starting index to begin with.
- newContainer === this._initialContainer && newContainer.sortingDisabled ? this._initialIndex : void 0
- );
- this.entered.next({
- item: this,
- container: newContainer,
- currentIndex: newContainer.getItemIndex(this)
- });
- });
- }
- if (this.isDragging()) {
- this._dropContainer._startScrollingIfNecessary(rawX, rawY);
- this._dropContainer._sortItem(this, x, y, this._pointerDirectionDelta);
- if (this.constrainPosition) {
- this._applyPreviewTransform(x, y);
- } else {
- this._applyPreviewTransform(x - this._pickupPositionInElement.x, y - this._pickupPositionInElement.y);
- }
- }
- }
- /**
- * Animates the preview element from its current position to the location of the drop placeholder.
- * @returns Promise that resolves when the animation completes.
- */
- _animatePreviewToPlaceholder() {
- if (!this._hasMoved) {
- return Promise.resolve();
- }
- const placeholderRect = this._placeholder.getBoundingClientRect();
- this._preview.addClass("cdk-drag-animating");
- this._applyPreviewTransform(placeholderRect.left, placeholderRect.top);
- const duration = this._preview.getTransitionDuration();
- if (duration === 0) {
- return Promise.resolve();
- }
- return this._ngZone.runOutsideAngular(() => {
- return new Promise((resolve) => {
- const handler = (event) => {
- if (!event || this._preview && _getEventTarget(event) === this._preview.element && event.propertyName === "transform") {
- cleanupListener();
- resolve();
- clearTimeout(timeout);
- }
- };
- const timeout = setTimeout(handler, duration * 1.5);
- const cleanupListener = this._preview.addEventListener("transitionend", handler);
- });
- });
- }
- /** Creates an element that will be shown instead of the current element while dragging. */
- _createPlaceholderElement() {
- const placeholderConfig = this._placeholderTemplate;
- const placeholderTemplate = placeholderConfig ? placeholderConfig.template : null;
- let placeholder;
- if (placeholderTemplate) {
- this._placeholderRef = placeholderConfig.viewContainer.createEmbeddedView(placeholderTemplate, placeholderConfig.context);
- this._placeholderRef.detectChanges();
- placeholder = getRootNode(this._placeholderRef, this._document);
- } else {
- placeholder = deepCloneNode(this._rootElement);
- }
- placeholder.style.pointerEvents = "none";
- placeholder.classList.add(PLACEHOLDER_CLASS);
- return placeholder;
- }
- /**
- * Figures out the coordinates at which an element was picked up.
- * @param referenceElement Element that initiated the dragging.
- * @param event Event that initiated the dragging.
- */
- _getPointerPositionInElement(elementRect, referenceElement, event) {
- const handleElement = referenceElement === this._rootElement ? null : referenceElement;
- const referenceRect = handleElement ? handleElement.getBoundingClientRect() : elementRect;
- const point = isTouchEvent(event) ? event.targetTouches[0] : event;
- const scrollPosition = this._getViewportScrollPosition();
- const x = point.pageX - referenceRect.left - scrollPosition.left;
- const y = point.pageY - referenceRect.top - scrollPosition.top;
- return {
- x: referenceRect.left - elementRect.left + x,
- y: referenceRect.top - elementRect.top + y
- };
- }
- /** Determines the point of the page that was touched by the user. */
- _getPointerPositionOnPage(event) {
- const scrollPosition = this._getViewportScrollPosition();
- const point = isTouchEvent(event) ? (
- // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
- // Also note that on real devices we're guaranteed for either `touches` or `changedTouches`
- // to have a value, but Firefox in device emulation mode has a bug where both can be empty
- // for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid
- // throwing an error. The value returned here will be incorrect, but since this only
- // breaks inside a developer tool and the value is only used for secondary information,
- // we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.
- event.touches[0] || event.changedTouches[0] || {
- pageX: 0,
- pageY: 0
- }
- ) : event;
- const x = point.pageX - scrollPosition.left;
- const y = point.pageY - scrollPosition.top;
- if (this._ownerSVGElement) {
- const svgMatrix = this._ownerSVGElement.getScreenCTM();
- if (svgMatrix) {
- const svgPoint = this._ownerSVGElement.createSVGPoint();
- svgPoint.x = x;
- svgPoint.y = y;
- return svgPoint.matrixTransform(svgMatrix.inverse());
- }
- }
- return {
- x,
- y
- };
- }
- /** Gets the pointer position on the page, accounting for any position constraints. */
- _getConstrainedPointerPosition(point) {
- const dropContainerLock = this._dropContainer ? this._dropContainer.lockAxis : null;
- let {
- x,
- y
- } = this.constrainPosition ? this.constrainPosition(point, this, this._initialDomRect, this._pickupPositionInElement) : point;
- if (this.lockAxis === "x" || dropContainerLock === "x") {
- y = this._pickupPositionOnPage.y - (this.constrainPosition ? this._pickupPositionInElement.y : 0);
- } else if (this.lockAxis === "y" || dropContainerLock === "y") {
- x = this._pickupPositionOnPage.x - (this.constrainPosition ? this._pickupPositionInElement.x : 0);
- }
- if (this._boundaryRect) {
- const {
- x: pickupX,
- y: pickupY
- } = !this.constrainPosition ? this._pickupPositionInElement : {
- x: 0,
- y: 0
- };
- const boundaryRect = this._boundaryRect;
- const {
- width: previewWidth,
- height: previewHeight
- } = this._getPreviewRect();
- const minY = boundaryRect.top + pickupY;
- const maxY = boundaryRect.bottom - (previewHeight - pickupY);
- const minX = boundaryRect.left + pickupX;
- const maxX = boundaryRect.right - (previewWidth - pickupX);
- x = clamp$1(x, minX, maxX);
- y = clamp$1(y, minY, maxY);
- }
- return {
- x,
- y
- };
- }
- /** Updates the current drag delta, based on the user's current pointer position on the page. */
- _updatePointerDirectionDelta(pointerPositionOnPage) {
- const {
- x,
- y
- } = pointerPositionOnPage;
- const delta = this._pointerDirectionDelta;
- const positionSinceLastChange = this._pointerPositionAtLastDirectionChange;
- const changeX = Math.abs(x - positionSinceLastChange.x);
- const changeY = Math.abs(y - positionSinceLastChange.y);
- if (changeX > this._config.pointerDirectionChangeThreshold) {
- delta.x = x > positionSinceLastChange.x ? 1 : -1;
- positionSinceLastChange.x = x;
- }
- if (changeY > this._config.pointerDirectionChangeThreshold) {
- delta.y = y > positionSinceLastChange.y ? 1 : -1;
- positionSinceLastChange.y = y;
- }
- return delta;
- }
- /** Toggles the native drag interactions, based on how many handles are registered. */
- _toggleNativeDragInteractions() {
- if (!this._rootElement || !this._handles) {
- return;
- }
- const shouldEnable = this._handles.length > 0 || !this.isDragging();
- if (shouldEnable !== this._nativeInteractionsEnabled) {
- this._nativeInteractionsEnabled = shouldEnable;
- toggleNativeDragInteractions(this._rootElement, shouldEnable);
- }
- }
- /** Removes the manually-added event listeners from the root element. */
- _removeRootElementListeners() {
- this._rootElementCleanups?.forEach((cleanup) => cleanup());
- this._rootElementCleanups = void 0;
- }
- /**
- * Applies a `transform` to the root element, taking into account any existing transforms on it.
- * @param x New transform value along the X axis.
- * @param y New transform value along the Y axis.
- */
- _applyRootElementTransform(x, y) {
- const scale = 1 / this.scale;
- const transform = getTransform(x * scale, y * scale);
- const styles = this._rootElement.style;
- if (this._initialTransform == null) {
- this._initialTransform = styles.transform && styles.transform != "none" ? styles.transform : "";
- }
- styles.transform = combineTransforms(transform, this._initialTransform);
- }
- /**
- * Applies a `transform` to the preview, taking into account any existing transforms on it.
- * @param x New transform value along the X axis.
- * @param y New transform value along the Y axis.
- */
- _applyPreviewTransform(x, y) {
- const initialTransform = this._previewTemplate?.template ? void 0 : this._initialTransform;
- const transform = getTransform(x, y);
- this._preview.setTransform(combineTransforms(transform, initialTransform));
- }
- /**
- * Gets the distance that the user has dragged during the current drag sequence.
- * @param currentPosition Current position of the user's pointer.
- */
- _getDragDistance(currentPosition) {
- const pickupPosition = this._pickupPositionOnPage;
- if (pickupPosition) {
- return {
- x: currentPosition.x - pickupPosition.x,
- y: currentPosition.y - pickupPosition.y
- };
- }
- return {
- x: 0,
- y: 0
- };
- }
- /** Cleans up any cached element dimensions that we don't need after dragging has stopped. */
- _cleanupCachedDimensions() {
- this._boundaryRect = this._previewRect = void 0;
- this._parentPositions.clear();
- }
- /**
- * Checks whether the element is still inside its boundary after the viewport has been resized.
- * If not, the position is adjusted so that the element fits again.
- */
- _containInsideBoundaryOnResize() {
- let {
- x,
- y
- } = this._passiveTransform;
- if (x === 0 && y === 0 || this.isDragging() || !this._boundaryElement) {
- return;
- }
- const elementRect = this._rootElement.getBoundingClientRect();
- const boundaryRect = this._boundaryElement.getBoundingClientRect();
- if (boundaryRect.width === 0 && boundaryRect.height === 0 || elementRect.width === 0 && elementRect.height === 0) {
- return;
- }
- const leftOverflow = boundaryRect.left - elementRect.left;
- const rightOverflow = elementRect.right - boundaryRect.right;
- const topOverflow = boundaryRect.top - elementRect.top;
- const bottomOverflow = elementRect.bottom - boundaryRect.bottom;
- if (boundaryRect.width > elementRect.width) {
- if (leftOverflow > 0) {
- x += leftOverflow;
- }
- if (rightOverflow > 0) {
- x -= rightOverflow;
- }
- } else {
- x = 0;
- }
- if (boundaryRect.height > elementRect.height) {
- if (topOverflow > 0) {
- y += topOverflow;
- }
- if (bottomOverflow > 0) {
- y -= bottomOverflow;
- }
- } else {
- y = 0;
- }
- if (x !== this._passiveTransform.x || y !== this._passiveTransform.y) {
- this.setFreeDragPosition({
- y,
- x
- });
- }
- }
- /** Gets the drag start delay, based on the event type. */
- _getDragStartDelay(event) {
- const value = this.dragStartDelay;
- if (typeof value === "number") {
- return value;
- } else if (isTouchEvent(event)) {
- return value.touch;
- }
- return value ? value.mouse : 0;
- }
- /** Updates the internal state of the draggable element when scrolling has occurred. */
- _updateOnScroll(event) {
- const scrollDifference = this._parentPositions.handleScroll(event);
- if (scrollDifference) {
- const target = _getEventTarget(event);
- if (this._boundaryRect && target !== this._boundaryElement && target.contains(this._boundaryElement)) {
- adjustDomRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
- }
- this._pickupPositionOnPage.x += scrollDifference.left;
- this._pickupPositionOnPage.y += scrollDifference.top;
- if (!this._dropContainer) {
- this._activeTransform.x -= scrollDifference.left;
- this._activeTransform.y -= scrollDifference.top;
- this._applyRootElementTransform(this._activeTransform.x, this._activeTransform.y);
- }
- }
- }
- /** Gets the scroll position of the viewport. */
- _getViewportScrollPosition() {
- return this._parentPositions.positions.get(this._document)?.scrollPosition || this._parentPositions.getViewportScrollPosition();
- }
- /**
- * Lazily resolves and returns the shadow root of the element. We do this in a function, rather
- * than saving it in property directly on init, because we want to resolve it as late as possible
- * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the
- * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.
- */
- _getShadowRoot() {
- if (this._cachedShadowRoot === void 0) {
- this._cachedShadowRoot = _getShadowRoot(this._rootElement);
- }
- return this._cachedShadowRoot;
- }
- /** Gets the element into which the drag preview should be inserted. */
- _getPreviewInsertionPoint(initialParent, shadowRoot) {
- const previewContainer = this._previewContainer || "global";
- if (previewContainer === "parent") {
- return initialParent;
- }
- if (previewContainer === "global") {
- const documentRef = this._document;
- return shadowRoot || documentRef.fullscreenElement || documentRef.webkitFullscreenElement || documentRef.mozFullScreenElement || documentRef.msFullscreenElement || documentRef.body;
- }
- return coerceElement(previewContainer);
- }
- /** Lazily resolves and returns the dimensions of the preview. */
- _getPreviewRect() {
- if (!this._previewRect || !this._previewRect.width && !this._previewRect.height) {
- this._previewRect = this._preview ? this._preview.getBoundingClientRect() : this._initialDomRect;
- }
- return this._previewRect;
- }
- /** Handles a native `dragstart` event. */
- _nativeDragStart = (event) => {
- if (this._handles.length) {
- const targetHandle = this._getTargetHandle(event);
- if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {
- event.preventDefault();
- }
- } else if (!this.disabled) {
- event.preventDefault();
- }
- };
- /** Gets a handle that is the target of an event. */
- _getTargetHandle(event) {
- return this._handles.find((handle) => {
- return event.target && (event.target === handle || handle.contains(event.target));
- });
- }
- /** Inserts the anchor element, if it's valid. */
- _conditionallyInsertAnchor(newContainer, exitContainer, nextItemElement) {
- if (newContainer === this._initialContainer) {
- this._anchor?.remove();
- this._anchor = null;
- } else if (exitContainer === this._initialContainer && exitContainer.hasAnchor) {
- const anchor = this._anchor ??= deepCloneNode(this._placeholder);
- anchor.classList.remove(PLACEHOLDER_CLASS);
- anchor.classList.add("cdk-drag-anchor");
- anchor.style.transform = "";
- if (nextItemElement) {
- nextItemElement.before(anchor);
- } else {
- coerceElement(exitContainer.element).appendChild(anchor);
- }
- }
- }
-};
-function clamp$1(value, min, max) {
- return Math.max(min, Math.min(max, value));
-}
-function isTouchEvent(event) {
- return event.type[0] === "t";
-}
-function shadowDomSelectStart(event) {
- event.preventDefault();
-}
-function moveItemInArray(array, fromIndex, toIndex) {
- const from = clamp(fromIndex, array.length - 1);
- const to = clamp(toIndex, array.length - 1);
- if (from === to) {
- return;
- }
- const target = array[from];
- const delta = to < from ? -1 : 1;
- for (let i = from; i !== to; i += delta) {
- array[i] = array[i + delta];
- }
- array[to] = target;
-}
-function transferArrayItem(currentArray, targetArray, currentIndex, targetIndex) {
- const from = clamp(currentIndex, currentArray.length - 1);
- const to = clamp(targetIndex, targetArray.length);
- if (currentArray.length) {
- targetArray.splice(to, 0, currentArray.splice(from, 1)[0]);
- }
-}
-function copyArrayItem(currentArray, targetArray, currentIndex, targetIndex) {
- const to = clamp(targetIndex, targetArray.length);
- if (currentArray.length) {
- targetArray.splice(to, 0, currentArray[currentIndex]);
- }
-}
-function clamp(value, max) {
- return Math.max(0, Math.min(max, value));
-}
-var SingleAxisSortStrategy = class {
- _dragDropRegistry;
- /** Root element container of the drop list. */
- _element;
- /** Function used to determine if an item can be sorted into a specific index. */
- _sortPredicate;
- /** Cache of the dimensions of all the items inside the container. */
- _itemPositions = [];
- /**
- * Draggable items that are currently active inside the container. Includes the items
- * that were there at the start of the sequence, as well as any items that have been dragged
- * in, but haven't been dropped yet.
- */
- _activeDraggables;
- /** Direction in which the list is oriented. */
- orientation = "vertical";
- /** Layout direction of the drop list. */
- direction;
- constructor(_dragDropRegistry) {
- this._dragDropRegistry = _dragDropRegistry;
- }
- /**
- * Keeps track of the item that was last swapped with the dragged item, as well as what direction
- * the pointer was moving in when the swap occurred and whether the user's pointer continued to
- * overlap with the swapped item after the swapping occurred.
- */
- _previousSwap = {
- drag: null,
- delta: 0,
- overlaps: false
- };
- /**
- * To be called when the drag sequence starts.
- * @param items Items that are currently in the list.
- */
- start(items) {
- this.withItems(items);
- }
- /**
- * To be called when an item is being sorted.
- * @param item Item to be sorted.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param pointerDelta Direction in which the pointer is moving along each axis.
- */
- sort(item, pointerX, pointerY, pointerDelta) {
- const siblings = this._itemPositions;
- const newIndex = this._getItemIndexFromPointerPosition(item, pointerX, pointerY, pointerDelta);
- if (newIndex === -1 && siblings.length > 0) {
- return null;
- }
- const isHorizontal = this.orientation === "horizontal";
- const currentIndex = siblings.findIndex((currentItem) => currentItem.drag === item);
- const siblingAtNewPosition = siblings[newIndex];
- const currentPosition = siblings[currentIndex].clientRect;
- const newPosition = siblingAtNewPosition.clientRect;
- const delta = currentIndex > newIndex ? 1 : -1;
- const itemOffset = this._getItemOffsetPx(currentPosition, newPosition, delta);
- const siblingOffset = this._getSiblingOffsetPx(currentIndex, siblings, delta);
- const oldOrder = siblings.slice();
- moveItemInArray(siblings, currentIndex, newIndex);
- siblings.forEach((sibling, index) => {
- if (oldOrder[index] === sibling) {
- return;
- }
- const isDraggedItem = sibling.drag === item;
- const offset = isDraggedItem ? itemOffset : siblingOffset;
- const elementToOffset = isDraggedItem ? item.getPlaceholderElement() : sibling.drag.getRootElement();
- sibling.offset += offset;
- const transformAmount = Math.round(sibling.offset * (1 / sibling.drag.scale));
- if (isHorizontal) {
- elementToOffset.style.transform = combineTransforms(`translate3d(${transformAmount}px, 0, 0)`, sibling.initialTransform);
- adjustDomRect(sibling.clientRect, 0, offset);
- } else {
- elementToOffset.style.transform = combineTransforms(`translate3d(0, ${transformAmount}px, 0)`, sibling.initialTransform);
- adjustDomRect(sibling.clientRect, offset, 0);
- }
- });
- this._previousSwap.overlaps = isInsideClientRect(newPosition, pointerX, pointerY);
- this._previousSwap.drag = siblingAtNewPosition.drag;
- this._previousSwap.delta = isHorizontal ? pointerDelta.x : pointerDelta.y;
- return {
- previousIndex: currentIndex,
- currentIndex: newIndex
- };
- }
- /**
- * Called when an item is being moved into the container.
- * @param item Item that was moved into the container.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param index Index at which the item entered. If omitted, the container will try to figure it
- * out automatically.
- */
- enter(item, pointerX, pointerY, index) {
- const newIndex = index == null || index < 0 ? (
- // We use the coordinates of where the item entered the drop
- // zone to figure out at which index it should be inserted.
- this._getItemIndexFromPointerPosition(item, pointerX, pointerY)
- ) : index;
- const activeDraggables = this._activeDraggables;
- const currentIndex = activeDraggables.indexOf(item);
- const placeholder = item.getPlaceholderElement();
- let newPositionReference = activeDraggables[newIndex];
- if (newPositionReference === item) {
- newPositionReference = activeDraggables[newIndex + 1];
- }
- if (!newPositionReference && (newIndex == null || newIndex === -1 || newIndex < activeDraggables.length - 1) && this._shouldEnterAsFirstChild(pointerX, pointerY)) {
- newPositionReference = activeDraggables[0];
- }
- if (currentIndex > -1) {
- activeDraggables.splice(currentIndex, 1);
- }
- if (newPositionReference && !this._dragDropRegistry.isDragging(newPositionReference)) {
- const element = newPositionReference.getRootElement();
- element.parentElement.insertBefore(placeholder, element);
- activeDraggables.splice(newIndex, 0, item);
- } else {
- this._element.appendChild(placeholder);
- activeDraggables.push(item);
- }
- placeholder.style.transform = "";
- this._cacheItemPositions();
- }
- /** Sets the items that are currently part of the list. */
- withItems(items) {
- this._activeDraggables = items.slice();
- this._cacheItemPositions();
- }
- /** Assigns a sort predicate to the strategy. */
- withSortPredicate(predicate) {
- this._sortPredicate = predicate;
- }
- /** Resets the strategy to its initial state before dragging was started. */
- reset() {
- this._activeDraggables?.forEach((item) => {
- const rootElement = item.getRootElement();
- if (rootElement) {
- const initialTransform = this._itemPositions.find((p) => p.drag === item)?.initialTransform;
- rootElement.style.transform = initialTransform || "";
- }
- });
- this._itemPositions = [];
- this._activeDraggables = [];
- this._previousSwap.drag = null;
- this._previousSwap.delta = 0;
- this._previousSwap.overlaps = false;
- }
- /**
- * Gets a snapshot of items currently in the list.
- * Can include items that we dragged in from another list.
- */
- getActiveItemsSnapshot() {
- return this._activeDraggables;
- }
- /** Gets the index of a specific item. */
- getItemIndex(item) {
- return this._getVisualItemPositions().findIndex((currentItem) => currentItem.drag === item);
- }
- /** Gets the item at a specific index. */
- getItemAtIndex(index) {
- return this._getVisualItemPositions()[index]?.drag || null;
- }
- /** Used to notify the strategy that the scroll position has changed. */
- updateOnScroll(topDifference, leftDifference) {
- this._itemPositions.forEach(({
- clientRect
- }) => {
- adjustDomRect(clientRect, topDifference, leftDifference);
- });
- this._itemPositions.forEach(({
- drag
- }) => {
- if (this._dragDropRegistry.isDragging(drag)) {
- drag._sortFromLastPointerPosition();
- }
- });
- }
- withElementContainer(container) {
- this._element = container;
- }
- /** Refreshes the position cache of the items and sibling containers. */
- _cacheItemPositions() {
- const isHorizontal = this.orientation === "horizontal";
- this._itemPositions = this._activeDraggables.map((drag) => {
- const elementToMeasure = drag.getVisibleElement();
- return {
- drag,
- offset: 0,
- initialTransform: elementToMeasure.style.transform || "",
- clientRect: getMutableClientRect(elementToMeasure)
- };
- }).sort((a, b) => {
- return isHorizontal ? a.clientRect.left - b.clientRect.left : a.clientRect.top - b.clientRect.top;
- });
- }
- _getVisualItemPositions() {
- return this.orientation === "horizontal" && this.direction === "rtl" ? this._itemPositions.slice().reverse() : this._itemPositions;
- }
- /**
- * Gets the offset in pixels by which the item that is being dragged should be moved.
- * @param currentPosition Current position of the item.
- * @param newPosition Position of the item where the current item should be moved.
- * @param delta Direction in which the user is moving.
- */
- _getItemOffsetPx(currentPosition, newPosition, delta) {
- const isHorizontal = this.orientation === "horizontal";
- let itemOffset = isHorizontal ? newPosition.left - currentPosition.left : newPosition.top - currentPosition.top;
- if (delta === -1) {
- itemOffset += isHorizontal ? newPosition.width - currentPosition.width : newPosition.height - currentPosition.height;
- }
- return itemOffset;
- }
- /**
- * Gets the offset in pixels by which the items that aren't being dragged should be moved.
- * @param currentIndex Index of the item currently being dragged.
- * @param siblings All of the items in the list.
- * @param delta Direction in which the user is moving.
- */
- _getSiblingOffsetPx(currentIndex, siblings, delta) {
- const isHorizontal = this.orientation === "horizontal";
- const currentPosition = siblings[currentIndex].clientRect;
- const immediateSibling = siblings[currentIndex + delta * -1];
- let siblingOffset = currentPosition[isHorizontal ? "width" : "height"] * delta;
- if (immediateSibling) {
- const start = isHorizontal ? "left" : "top";
- const end = isHorizontal ? "right" : "bottom";
- if (delta === -1) {
- siblingOffset -= immediateSibling.clientRect[start] - currentPosition[end];
- } else {
- siblingOffset += currentPosition[start] - immediateSibling.clientRect[end];
- }
- }
- return siblingOffset;
- }
- /**
- * Checks if pointer is entering in the first position
- * @param pointerX Position of the user's pointer along the X axis.
- * @param pointerY Position of the user's pointer along the Y axis.
- */
- _shouldEnterAsFirstChild(pointerX, pointerY) {
- if (!this._activeDraggables.length) {
- return false;
- }
- const itemPositions = this._itemPositions;
- const isHorizontal = this.orientation === "horizontal";
- const reversed = itemPositions[0].drag !== this._activeDraggables[0];
- if (reversed) {
- const lastItemRect = itemPositions[itemPositions.length - 1].clientRect;
- return isHorizontal ? pointerX >= lastItemRect.right : pointerY >= lastItemRect.bottom;
- } else {
- const firstItemRect = itemPositions[0].clientRect;
- return isHorizontal ? pointerX <= firstItemRect.left : pointerY <= firstItemRect.top;
- }
- }
- /**
- * Gets the index of an item in the drop container, based on the position of the user's pointer.
- * @param item Item that is being sorted.
- * @param pointerX Position of the user's pointer along the X axis.
- * @param pointerY Position of the user's pointer along the Y axis.
- * @param delta Direction in which the user is moving their pointer.
- */
- _getItemIndexFromPointerPosition(item, pointerX, pointerY, delta) {
- const isHorizontal = this.orientation === "horizontal";
- const index = this._itemPositions.findIndex(({
- drag,
- clientRect
- }) => {
- if (drag === item) {
- return false;
- }
- if (delta) {
- const direction = isHorizontal ? delta.x : delta.y;
- if (drag === this._previousSwap.drag && this._previousSwap.overlaps && direction === this._previousSwap.delta) {
- return false;
- }
- }
- return isHorizontal ? (
- // Round these down since most browsers report client rects with
- // sub-pixel precision, whereas the pointer coordinates are rounded to pixels.
- pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right)
- ) : pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
- });
- return index === -1 || !this._sortPredicate(index, item) ? -1 : index;
- }
-};
-var MixedSortStrategy = class {
- _document;
- _dragDropRegistry;
- /** Root element container of the drop list. */
- _element;
- /** Function used to determine if an item can be sorted into a specific index. */
- _sortPredicate;
- /** Lazily-resolved root node containing the list. Use `_getRootNode` to read this. */
- _rootNode;
- /**
- * Draggable items that are currently active inside the container. Includes the items
- * that were there at the start of the sequence, as well as any items that have been dragged
- * in, but haven't been dropped yet.
- */
- _activeItems;
- /**
- * Keeps track of the item that was last swapped with the dragged item, as well as what direction
- * the pointer was moving in when the swap occurred and whether the user's pointer continued to
- * overlap with the swapped item after the swapping occurred.
- */
- _previousSwap = {
- drag: null,
- deltaX: 0,
- deltaY: 0,
- overlaps: false
- };
- /**
- * Keeps track of the relationship between a node and its next sibling. This information
- * is used to restore the DOM to the order it was in before dragging started.
- */
- _relatedNodes = [];
- constructor(_document, _dragDropRegistry) {
- this._document = _document;
- this._dragDropRegistry = _dragDropRegistry;
- }
- /**
- * To be called when the drag sequence starts.
- * @param items Items that are currently in the list.
- */
- start(items) {
- const childNodes = this._element.childNodes;
- this._relatedNodes = [];
- for (let i = 0; i < childNodes.length; i++) {
- const node = childNodes[i];
- this._relatedNodes.push([node, node.nextSibling]);
- }
- this.withItems(items);
- }
- /**
- * To be called when an item is being sorted.
- * @param item Item to be sorted.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param pointerDelta Direction in which the pointer is moving along each axis.
- */
- sort(item, pointerX, pointerY, pointerDelta) {
- const newIndex = this._getItemIndexFromPointerPosition(item, pointerX, pointerY);
- const previousSwap = this._previousSwap;
- if (newIndex === -1 || this._activeItems[newIndex] === item) {
- return null;
- }
- const toSwapWith = this._activeItems[newIndex];
- if (previousSwap.drag === toSwapWith && previousSwap.overlaps && previousSwap.deltaX === pointerDelta.x && previousSwap.deltaY === pointerDelta.y) {
- return null;
- }
- const previousIndex = this.getItemIndex(item);
- const current = item.getPlaceholderElement();
- const overlapElement = toSwapWith.getRootElement();
- if (newIndex > previousIndex) {
- overlapElement.after(current);
- } else {
- overlapElement.before(current);
- }
- moveItemInArray(this._activeItems, previousIndex, newIndex);
- const newOverlapElement = this._getRootNode().elementFromPoint(pointerX, pointerY);
- previousSwap.deltaX = pointerDelta.x;
- previousSwap.deltaY = pointerDelta.y;
- previousSwap.drag = toSwapWith;
- previousSwap.overlaps = overlapElement === newOverlapElement || overlapElement.contains(newOverlapElement);
- return {
- previousIndex,
- currentIndex: newIndex
- };
- }
- /**
- * Called when an item is being moved into the container.
- * @param item Item that was moved into the container.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param index Index at which the item entered. If omitted, the container will try to figure it
- * out automatically.
- */
- enter(item, pointerX, pointerY, index) {
- const currentIndex = this._activeItems.indexOf(item);
- if (currentIndex > -1) {
- this._activeItems.splice(currentIndex, 1);
- }
- let enterIndex = index == null || index < 0 ? this._getItemIndexFromPointerPosition(item, pointerX, pointerY) : index;
- if (enterIndex === -1) {
- enterIndex = this._getClosestItemIndexToPointer(item, pointerX, pointerY);
- }
- const targetItem = this._activeItems[enterIndex];
- if (targetItem && !this._dragDropRegistry.isDragging(targetItem)) {
- this._activeItems.splice(enterIndex, 0, item);
- targetItem.getRootElement().before(item.getPlaceholderElement());
- } else {
- this._activeItems.push(item);
- this._element.appendChild(item.getPlaceholderElement());
- }
- }
- /** Sets the items that are currently part of the list. */
- withItems(items) {
- this._activeItems = items.slice();
- }
- /** Assigns a sort predicate to the strategy. */
- withSortPredicate(predicate) {
- this._sortPredicate = predicate;
- }
- /** Resets the strategy to its initial state before dragging was started. */
- reset() {
- const root = this._element;
- const previousSwap = this._previousSwap;
- for (let i = this._relatedNodes.length - 1; i > -1; i--) {
- const [node, nextSibling] = this._relatedNodes[i];
- if (node.parentNode === root && node.nextSibling !== nextSibling) {
- if (nextSibling === null) {
- root.appendChild(node);
- } else if (nextSibling.parentNode === root) {
- root.insertBefore(node, nextSibling);
- }
- }
- }
- this._relatedNodes = [];
- this._activeItems = [];
- previousSwap.drag = null;
- previousSwap.deltaX = previousSwap.deltaY = 0;
- previousSwap.overlaps = false;
- }
- /**
- * Gets a snapshot of items currently in the list.
- * Can include items that we dragged in from another list.
- */
- getActiveItemsSnapshot() {
- return this._activeItems;
- }
- /** Gets the index of a specific item. */
- getItemIndex(item) {
- return this._activeItems.indexOf(item);
- }
- /** Gets the item at a specific index. */
- getItemAtIndex(index) {
- return this._activeItems[index] || null;
- }
- /** Used to notify the strategy that the scroll position has changed. */
- updateOnScroll() {
- this._activeItems.forEach((item) => {
- if (this._dragDropRegistry.isDragging(item)) {
- item._sortFromLastPointerPosition();
- }
- });
- }
- withElementContainer(container) {
- if (container !== this._element) {
- this._element = container;
- this._rootNode = void 0;
- }
- }
- /**
- * Gets the index of an item in the drop container, based on the position of the user's pointer.
- * @param item Item that is being sorted.
- * @param pointerX Position of the user's pointer along the X axis.
- * @param pointerY Position of the user's pointer along the Y axis.
- * @param delta Direction in which the user is moving their pointer.
- */
- _getItemIndexFromPointerPosition(item, pointerX, pointerY) {
- const elementAtPoint = this._getRootNode().elementFromPoint(Math.floor(pointerX), Math.floor(pointerY));
- const index = elementAtPoint ? this._activeItems.findIndex((item2) => {
- const root = item2.getRootElement();
- return elementAtPoint === root || root.contains(elementAtPoint);
- }) : -1;
- return index === -1 || !this._sortPredicate(index, item) ? -1 : index;
- }
- /** Lazily resolves the list's root node. */
- _getRootNode() {
- if (!this._rootNode) {
- this._rootNode = _getShadowRoot(this._element) || this._document;
- }
- return this._rootNode;
- }
- /**
- * Finds the index of the item that's closest to the item being dragged.
- * @param item Item being dragged.
- * @param pointerX Position of the user's pointer along the X axis.
- * @param pointerY Position of the user's pointer along the Y axis.
- */
- _getClosestItemIndexToPointer(item, pointerX, pointerY) {
- if (this._activeItems.length === 0) {
- return -1;
- }
- if (this._activeItems.length === 1) {
- return 0;
- }
- let minDistance = Infinity;
- let minIndex = -1;
- for (let i = 0; i < this._activeItems.length; i++) {
- const current = this._activeItems[i];
- if (current !== item) {
- const {
- x,
- y
- } = current.getRootElement().getBoundingClientRect();
- const distance = Math.hypot(pointerX - x, pointerY - y);
- if (distance < minDistance) {
- minDistance = distance;
- minIndex = i;
- }
- }
- }
- return minIndex;
- }
-};
-var DROP_PROXIMITY_THRESHOLD = 0.05;
-var SCROLL_PROXIMITY_THRESHOLD = 0.05;
-var AutoScrollVerticalDirection;
-(function(AutoScrollVerticalDirection2) {
- AutoScrollVerticalDirection2[AutoScrollVerticalDirection2["NONE"] = 0] = "NONE";
- AutoScrollVerticalDirection2[AutoScrollVerticalDirection2["UP"] = 1] = "UP";
- AutoScrollVerticalDirection2[AutoScrollVerticalDirection2["DOWN"] = 2] = "DOWN";
-})(AutoScrollVerticalDirection || (AutoScrollVerticalDirection = {}));
-var AutoScrollHorizontalDirection;
-(function(AutoScrollHorizontalDirection2) {
- AutoScrollHorizontalDirection2[AutoScrollHorizontalDirection2["NONE"] = 0] = "NONE";
- AutoScrollHorizontalDirection2[AutoScrollHorizontalDirection2["LEFT"] = 1] = "LEFT";
- AutoScrollHorizontalDirection2[AutoScrollHorizontalDirection2["RIGHT"] = 2] = "RIGHT";
-})(AutoScrollHorizontalDirection || (AutoScrollHorizontalDirection = {}));
-var DropListRef = class {
- _dragDropRegistry;
- _ngZone;
- _viewportRuler;
- /** Element that the drop list is attached to. */
- element;
- /** Whether starting a dragging sequence from this container is disabled. */
- disabled = false;
- /** Whether sorting items within the list is disabled. */
- sortingDisabled = false;
- /** Locks the position of the draggable elements inside the container along the specified axis. */
- lockAxis = null;
- /**
- * Whether auto-scrolling the view when the user
- * moves their pointer close to the edges is disabled.
- */
- autoScrollDisabled = false;
- /** Number of pixels to scroll for each frame when auto-scrolling an element. */
- autoScrollStep = 2;
- /**
- * Whether the items in the list should leave an anchor node when leaving the initial container.
- */
- hasAnchor = false;
- /**
- * Function that is used to determine whether an item
- * is allowed to be moved into a drop container.
- */
- enterPredicate = () => true;
- /** Function that is used to determine whether an item can be sorted into a particular index. */
- sortPredicate = () => true;
- /** Emits right before dragging has started. */
- beforeStarted = new Subject();
- /**
- * Emits when the user has moved a new drag item into this container.
- */
- entered = new Subject();
- /**
- * Emits when the user removes an item from the container
- * by dragging it into another container.
- */
- exited = new Subject();
- /** Emits when the user drops an item inside the container. */
- dropped = new Subject();
- /** Emits as the user is swapping items while actively dragging. */
- sorted = new Subject();
- /** Emits when a dragging sequence is started in a list connected to the current one. */
- receivingStarted = new Subject();
- /** Emits when a dragging sequence is stopped from a list connected to the current one. */
- receivingStopped = new Subject();
- /** Arbitrary data that can be attached to the drop list. */
- data;
- /** Element that is the direct parent of the drag items. */
- _container;
- /** Whether an item in the list is being dragged. */
- _isDragging = false;
- /** Keeps track of the positions of any parent scrollable elements. */
- _parentPositions;
- /** Strategy being used to sort items within the list. */
- _sortStrategy;
- /** Cached `DOMRect` of the drop list. */
- _domRect;
- /** Draggable items in the container. */
- _draggables = [];
- /** Drop lists that are connected to the current one. */
- _siblings = [];
- /** Connected siblings that currently have a dragged item. */
- _activeSiblings = /* @__PURE__ */ new Set();
- /** Subscription to the window being scrolled. */
- _viewportScrollSubscription = Subscription.EMPTY;
- /** Vertical direction in which the list is currently scrolling. */
- _verticalScrollDirection = AutoScrollVerticalDirection.NONE;
- /** Horizontal direction in which the list is currently scrolling. */
- _horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;
- /** Node that is being auto-scrolled. */
- _scrollNode;
- /** Used to signal to the current auto-scroll sequence when to stop. */
- _stopScrollTimers = new Subject();
- /** Shadow root of the current element. Necessary for `elementFromPoint` to resolve correctly. */
- _cachedShadowRoot = null;
- /** Reference to the document. */
- _document;
- /** Elements that can be scrolled while the user is dragging. */
- _scrollableElements = [];
- /** Initial value for the element's `scroll-snap-type` style. */
- _initialScrollSnap;
- /** Direction of the list's layout. */
- _direction = "ltr";
- constructor(element, _dragDropRegistry, _document, _ngZone, _viewportRuler) {
- this._dragDropRegistry = _dragDropRegistry;
- this._ngZone = _ngZone;
- this._viewportRuler = _viewportRuler;
- const coercedElement = this.element = coerceElement(element);
- this._document = _document;
- this.withOrientation("vertical").withElementContainer(coercedElement);
- _dragDropRegistry.registerDropContainer(this);
- this._parentPositions = new ParentPositionTracker(_document);
- }
- /** Removes the drop list functionality from the DOM element. */
- dispose() {
- this._stopScrolling();
- this._stopScrollTimers.complete();
- this._viewportScrollSubscription.unsubscribe();
- this.beforeStarted.complete();
- this.entered.complete();
- this.exited.complete();
- this.dropped.complete();
- this.sorted.complete();
- this.receivingStarted.complete();
- this.receivingStopped.complete();
- this._activeSiblings.clear();
- this._scrollNode = null;
- this._parentPositions.clear();
- this._dragDropRegistry.removeDropContainer(this);
- }
- /** Whether an item from this list is currently being dragged. */
- isDragging() {
- return this._isDragging;
- }
- /** Starts dragging an item. */
- start() {
- this._draggingStarted();
- this._notifyReceivingSiblings();
- }
- /**
- * Attempts to move an item into the container.
- * @param item Item that was moved into the container.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param index Index at which the item entered. If omitted, the container will try to figure it
- * out automatically.
- */
- enter(item, pointerX, pointerY, index) {
- this._draggingStarted();
- if (index == null && this.sortingDisabled) {
- index = this._draggables.indexOf(item);
- }
- this._sortStrategy.enter(item, pointerX, pointerY, index);
- this._cacheParentPositions();
- this._notifyReceivingSiblings();
- this.entered.next({
- item,
- container: this,
- currentIndex: this.getItemIndex(item)
- });
- }
- /**
- * Removes an item from the container after it was dragged into another container by the user.
- * @param item Item that was dragged out.
- */
- exit(item) {
- this._reset();
- this.exited.next({
- item,
- container: this
- });
- }
- /**
- * Drops an item into this container.
- * @param item Item being dropped into the container.
- * @param currentIndex Index at which the item should be inserted.
- * @param previousIndex Index of the item when dragging started.
- * @param previousContainer Container from which the item got dragged in.
- * @param isPointerOverContainer Whether the user's pointer was over the
- * container when the item was dropped.
- * @param distance Distance the user has dragged since the start of the dragging sequence.
- * @param event Event that triggered the dropping sequence.
- *
- * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
- */
- drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
- this._reset();
- this.dropped.next({
- item,
- currentIndex,
- previousIndex,
- container: this,
- previousContainer,
- isPointerOverContainer,
- distance,
- dropPoint,
- event
- });
- }
- /**
- * Sets the draggable items that are a part of this list.
- * @param items Items that are a part of this list.
- */
- withItems(items) {
- const previousItems = this._draggables;
- this._draggables = items;
- items.forEach((item) => item._withDropContainer(this));
- if (this.isDragging()) {
- const draggedItems = previousItems.filter((item) => item.isDragging());
- if (draggedItems.every((item) => items.indexOf(item) === -1)) {
- this._reset();
- } else {
- this._sortStrategy.withItems(this._draggables);
- }
- }
- return this;
- }
- /** Sets the layout direction of the drop list. */
- withDirection(direction) {
- this._direction = direction;
- if (this._sortStrategy instanceof SingleAxisSortStrategy) {
- this._sortStrategy.direction = direction;
- }
- return this;
- }
- /**
- * Sets the containers that are connected to this one. When two or more containers are
- * connected, the user will be allowed to transfer items between them.
- * @param connectedTo Other containers that the current containers should be connected to.
- */
- connectedTo(connectedTo) {
- this._siblings = connectedTo.slice();
- return this;
- }
- /**
- * Sets the orientation of the container.
- * @param orientation New orientation for the container.
- */
- withOrientation(orientation) {
- if (orientation === "mixed") {
- this._sortStrategy = new MixedSortStrategy(this._document, this._dragDropRegistry);
- } else {
- const strategy = new SingleAxisSortStrategy(this._dragDropRegistry);
- strategy.direction = this._direction;
- strategy.orientation = orientation;
- this._sortStrategy = strategy;
- }
- this._sortStrategy.withElementContainer(this._container);
- this._sortStrategy.withSortPredicate((index, item) => this.sortPredicate(index, item, this));
- return this;
- }
- /**
- * Sets which parent elements are can be scrolled while the user is dragging.
- * @param elements Elements that can be scrolled.
- */
- withScrollableParents(elements) {
- const element = this._container;
- this._scrollableElements = elements.indexOf(element) === -1 ? [element, ...elements] : elements.slice();
- return this;
- }
- /**
- * Configures the drop list so that a different element is used as the container for the
- * dragged items. This is useful for the cases when one might not have control over the
- * full DOM that sets up the dragging.
- * Note that the alternate container needs to be a descendant of the drop list.
- * @param container New element container to be assigned.
- */
- withElementContainer(container) {
- if (container === this._container) {
- return this;
- }
- const element = coerceElement(this.element);
- if ((typeof ngDevMode === "undefined" || ngDevMode) && container !== element && !element.contains(container)) {
- throw new Error("Invalid DOM structure for drop list. Alternate container element must be a descendant of the drop list.");
- }
- const oldContainerIndex = this._scrollableElements.indexOf(this._container);
- const newContainerIndex = this._scrollableElements.indexOf(container);
- if (oldContainerIndex > -1) {
- this._scrollableElements.splice(oldContainerIndex, 1);
- }
- if (newContainerIndex > -1) {
- this._scrollableElements.splice(newContainerIndex, 1);
- }
- if (this._sortStrategy) {
- this._sortStrategy.withElementContainer(container);
- }
- this._cachedShadowRoot = null;
- this._scrollableElements.unshift(container);
- this._container = container;
- return this;
- }
- /** Gets the scrollable parents that are registered with this drop container. */
- getScrollableParents() {
- return this._scrollableElements;
- }
- /**
- * Figures out the index of an item in the container.
- * @param item Item whose index should be determined.
- */
- getItemIndex(item) {
- return this._isDragging ? this._sortStrategy.getItemIndex(item) : this._draggables.indexOf(item);
- }
- /**
- * Gets the item at a specific index.
- * @param index Index at which to retrieve the item.
- */
- getItemAtIndex(index) {
- return this._isDragging ? this._sortStrategy.getItemAtIndex(index) : this._draggables[index] || null;
- }
- /**
- * Whether the list is able to receive the item that
- * is currently being dragged inside a connected drop list.
- */
- isReceiving() {
- return this._activeSiblings.size > 0;
- }
- /**
- * Sorts an item inside the container based on its position.
- * @param item Item to be sorted.
- * @param pointerX Position of the item along the X axis.
- * @param pointerY Position of the item along the Y axis.
- * @param pointerDelta Direction in which the pointer is moving along each axis.
- */
- _sortItem(item, pointerX, pointerY, pointerDelta) {
- if (this.sortingDisabled || !this._domRect || !isPointerNearDomRect(this._domRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
- return;
- }
- const result = this._sortStrategy.sort(item, pointerX, pointerY, pointerDelta);
- if (result) {
- this.sorted.next({
- previousIndex: result.previousIndex,
- currentIndex: result.currentIndex,
- container: this,
- item
- });
- }
- }
- /**
- * Checks whether the user's pointer is close to the edges of either the
- * viewport or the drop list and starts the auto-scroll sequence.
- * @param pointerX User's pointer position along the x axis.
- * @param pointerY User's pointer position along the y axis.
- */
- _startScrollingIfNecessary(pointerX, pointerY) {
- if (this.autoScrollDisabled) {
- return;
- }
- let scrollNode;
- let verticalScrollDirection = AutoScrollVerticalDirection.NONE;
- let horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;
- this._parentPositions.positions.forEach((position, element) => {
- if (element === this._document || !position.clientRect || scrollNode) {
- return;
- }
- if (isPointerNearDomRect(position.clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
- [verticalScrollDirection, horizontalScrollDirection] = getElementScrollDirections(element, position.clientRect, this._direction, pointerX, pointerY);
- if (verticalScrollDirection || horizontalScrollDirection) {
- scrollNode = element;
- }
- }
- });
- if (!verticalScrollDirection && !horizontalScrollDirection) {
- const {
- width,
- height
- } = this._viewportRuler.getViewportSize();
- const domRect = {
- width,
- height,
- top: 0,
- right: width,
- bottom: height,
- left: 0
- };
- verticalScrollDirection = getVerticalScrollDirection(domRect, pointerY);
- horizontalScrollDirection = getHorizontalScrollDirection(domRect, pointerX);
- scrollNode = window;
- }
- if (scrollNode && (verticalScrollDirection !== this._verticalScrollDirection || horizontalScrollDirection !== this._horizontalScrollDirection || scrollNode !== this._scrollNode)) {
- this._verticalScrollDirection = verticalScrollDirection;
- this._horizontalScrollDirection = horizontalScrollDirection;
- this._scrollNode = scrollNode;
- if ((verticalScrollDirection || horizontalScrollDirection) && scrollNode) {
- this._ngZone.runOutsideAngular(this._startScrollInterval);
- } else {
- this._stopScrolling();
- }
- }
- }
- /** Stops any currently-running auto-scroll sequences. */
- _stopScrolling() {
- this._stopScrollTimers.next();
- }
- /** Starts the dragging sequence within the list. */
- _draggingStarted() {
- const styles = this._container.style;
- this.beforeStarted.next();
- this._isDragging = true;
- if ((typeof ngDevMode === "undefined" || ngDevMode) && // Prevent the check from running on apps not using an alternate container. Ideally we
- // would always run it, but introducing it at this stage would be a breaking change.
- this._container !== coerceElement(this.element)) {
- for (const drag of this._draggables) {
- if (!drag.isDragging() && drag.getVisibleElement().parentNode !== this._container) {
- throw new Error("Invalid DOM structure for drop list. All items must be placed directly inside of the element container.");
- }
- }
- }
- this._initialScrollSnap = styles.msScrollSnapType || styles.scrollSnapType || "";
- styles.scrollSnapType = styles.msScrollSnapType = "none";
- this._sortStrategy.start(this._draggables);
- this._cacheParentPositions();
- this._viewportScrollSubscription.unsubscribe();
- this._listenToScrollEvents();
- }
- /** Caches the positions of the configured scrollable parents. */
- _cacheParentPositions() {
- this._parentPositions.cache(this._scrollableElements);
- this._domRect = this._parentPositions.positions.get(this._container).clientRect;
- }
- /** Resets the container to its initial state. */
- _reset() {
- this._isDragging = false;
- const styles = this._container.style;
- styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;
- this._siblings.forEach((sibling) => sibling._stopReceiving(this));
- this._sortStrategy.reset();
- this._stopScrolling();
- this._viewportScrollSubscription.unsubscribe();
- this._parentPositions.clear();
- }
- /** Starts the interval that'll auto-scroll the element. */
- _startScrollInterval = () => {
- this._stopScrolling();
- interval(0, animationFrameScheduler).pipe(takeUntil(this._stopScrollTimers)).subscribe(() => {
- const node = this._scrollNode;
- const scrollStep = this.autoScrollStep;
- if (this._verticalScrollDirection === AutoScrollVerticalDirection.UP) {
- node.scrollBy(0, -scrollStep);
- } else if (this._verticalScrollDirection === AutoScrollVerticalDirection.DOWN) {
- node.scrollBy(0, scrollStep);
- }
- if (this._horizontalScrollDirection === AutoScrollHorizontalDirection.LEFT) {
- node.scrollBy(-scrollStep, 0);
- } else if (this._horizontalScrollDirection === AutoScrollHorizontalDirection.RIGHT) {
- node.scrollBy(scrollStep, 0);
- }
- });
- };
- /**
- * Checks whether the user's pointer is positioned over the container.
- * @param x Pointer position along the X axis.
- * @param y Pointer position along the Y axis.
- */
- _isOverContainer(x, y) {
- return this._domRect != null && isInsideClientRect(this._domRect, x, y);
- }
- /**
- * Figures out whether an item should be moved into a sibling
- * drop container, based on its current position.
- * @param item Drag item that is being moved.
- * @param x Position of the item along the X axis.
- * @param y Position of the item along the Y axis.
- */
- _getSiblingContainerFromPosition(item, x, y) {
- return this._siblings.find((sibling) => sibling._canReceive(item, x, y));
- }
- /**
- * Checks whether the drop list can receive the passed-in item.
- * @param item Item that is being dragged into the list.
- * @param x Position of the item along the X axis.
- * @param y Position of the item along the Y axis.
- */
- _canReceive(item, x, y) {
- if (!this._domRect || !isInsideClientRect(this._domRect, x, y) || !this.enterPredicate(item, this)) {
- return false;
- }
- const elementFromPoint = this._getShadowRoot().elementFromPoint(x, y);
- if (!elementFromPoint) {
- return false;
- }
- return elementFromPoint === this._container || this._container.contains(elementFromPoint);
- }
- /**
- * Called by one of the connected drop lists when a dragging sequence has started.
- * @param sibling Sibling in which dragging has started.
- */
- _startReceiving(sibling, items) {
- const activeSiblings = this._activeSiblings;
- if (!activeSiblings.has(sibling) && items.every((item) => {
- return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;
- })) {
- activeSiblings.add(sibling);
- this._cacheParentPositions();
- this._listenToScrollEvents();
- this.receivingStarted.next({
- initiator: sibling,
- receiver: this,
- items
- });
- }
- }
- /**
- * Called by a connected drop list when dragging has stopped.
- * @param sibling Sibling whose dragging has stopped.
- */
- _stopReceiving(sibling) {
- this._activeSiblings.delete(sibling);
- this._viewportScrollSubscription.unsubscribe();
- this.receivingStopped.next({
- initiator: sibling,
- receiver: this
- });
- }
- /**
- * Starts listening to scroll events on the viewport.
- * Used for updating the internal state of the list.
- */
- _listenToScrollEvents() {
- this._viewportScrollSubscription = this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe((event) => {
- if (this.isDragging()) {
- const scrollDifference = this._parentPositions.handleScroll(event);
- if (scrollDifference) {
- this._sortStrategy.updateOnScroll(scrollDifference.top, scrollDifference.left);
- }
- } else if (this.isReceiving()) {
- this._cacheParentPositions();
- }
- });
- }
- /**
- * Lazily resolves and returns the shadow root of the element. We do this in a function, rather
- * than saving it in property directly on init, because we want to resolve it as late as possible
- * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the
- * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.
- */
- _getShadowRoot() {
- if (!this._cachedShadowRoot) {
- const shadowRoot = _getShadowRoot(this._container);
- this._cachedShadowRoot = shadowRoot || this._document;
- }
- return this._cachedShadowRoot;
- }
- /** Notifies any siblings that may potentially receive the item. */
- _notifyReceivingSiblings() {
- const draggedItems = this._sortStrategy.getActiveItemsSnapshot().filter((item) => item.isDragging());
- this._siblings.forEach((sibling) => sibling._startReceiving(this, draggedItems));
- }
-};
-function getVerticalScrollDirection(clientRect, pointerY) {
- const {
- top,
- bottom,
- height
- } = clientRect;
- const yThreshold = height * SCROLL_PROXIMITY_THRESHOLD;
- if (pointerY >= top - yThreshold && pointerY <= top + yThreshold) {
- return AutoScrollVerticalDirection.UP;
- } else if (pointerY >= bottom - yThreshold && pointerY <= bottom + yThreshold) {
- return AutoScrollVerticalDirection.DOWN;
- }
- return AutoScrollVerticalDirection.NONE;
-}
-function getHorizontalScrollDirection(clientRect, pointerX) {
- const {
- left,
- right,
- width
- } = clientRect;
- const xThreshold = width * SCROLL_PROXIMITY_THRESHOLD;
- if (pointerX >= left - xThreshold && pointerX <= left + xThreshold) {
- return AutoScrollHorizontalDirection.LEFT;
- } else if (pointerX >= right - xThreshold && pointerX <= right + xThreshold) {
- return AutoScrollHorizontalDirection.RIGHT;
- }
- return AutoScrollHorizontalDirection.NONE;
-}
-function getElementScrollDirections(element, clientRect, direction, pointerX, pointerY) {
- const computedVertical = getVerticalScrollDirection(clientRect, pointerY);
- const computedHorizontal = getHorizontalScrollDirection(clientRect, pointerX);
- let verticalScrollDirection = AutoScrollVerticalDirection.NONE;
- let horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;
- if (computedVertical) {
- const scrollTop = element.scrollTop;
- if (computedVertical === AutoScrollVerticalDirection.UP) {
- if (scrollTop > 0) {
- verticalScrollDirection = AutoScrollVerticalDirection.UP;
- }
- } else if (element.scrollHeight - scrollTop > element.clientHeight) {
- verticalScrollDirection = AutoScrollVerticalDirection.DOWN;
- }
- }
- if (computedHorizontal) {
- const scrollLeft = element.scrollLeft;
- if (direction === "rtl") {
- if (computedHorizontal === AutoScrollHorizontalDirection.RIGHT) {
- if (scrollLeft < 0) {
- horizontalScrollDirection = AutoScrollHorizontalDirection.RIGHT;
- }
- } else if (element.scrollWidth + scrollLeft > element.clientWidth) {
- horizontalScrollDirection = AutoScrollHorizontalDirection.LEFT;
- }
- } else {
- if (computedHorizontal === AutoScrollHorizontalDirection.LEFT) {
- if (scrollLeft > 0) {
- horizontalScrollDirection = AutoScrollHorizontalDirection.LEFT;
- }
- } else if (element.scrollWidth - scrollLeft > element.clientWidth) {
- horizontalScrollDirection = AutoScrollHorizontalDirection.RIGHT;
- }
- }
- }
- return [verticalScrollDirection, horizontalScrollDirection];
-}
-var capturingEventOptions = {
- capture: true
-};
-var activeCapturingEventOptions = {
- passive: false,
- capture: true
-};
-var _ResetsLoader = class __ResetsLoader {
- static ɵfac = function _ResetsLoader_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || __ResetsLoader)();
- };
- static ɵcmp = ɵɵdefineComponent({
- type: __ResetsLoader,
- selectors: [["ng-component"]],
- hostAttrs: ["cdk-drag-resets-container", ""],
- decls: 0,
- vars: 0,
- template: function _ResetsLoader_Template(rf, ctx) {
- },
- styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"],
- encapsulation: 2,
- changeDetection: 0
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(_ResetsLoader, [{
- type: Component,
- args: [{
- encapsulation: ViewEncapsulation.None,
- template: "",
- changeDetection: ChangeDetectionStrategy.OnPush,
- host: {
- "cdk-drag-resets-container": ""
- },
- styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"]
- }]
- }], null, null);
-})();
-var DragDropRegistry = class _DragDropRegistry {
- _ngZone = inject(NgZone);
- _document = inject(DOCUMENT);
- _styleLoader = inject(_CdkPrivateStyleLoader);
- _renderer = inject(RendererFactory2).createRenderer(null, null);
- _cleanupDocumentTouchmove;
- _scroll = new Subject();
- /** Registered drop container instances. */
- _dropInstances = /* @__PURE__ */ new Set();
- /** Registered drag item instances. */
- _dragInstances = /* @__PURE__ */ new Set();
- /** Drag item instances that are currently being dragged. */
- _activeDragInstances = signal([], ...ngDevMode ? [{
- debugName: "_activeDragInstances"
- }] : []);
- /** Keeps track of the event listeners that we've bound to the `document`. */
- _globalListeners;
- /**
- * Predicate function to check if an item is being dragged. Moved out into a property,
- * because it'll be called a lot and we don't want to create a new function every time.
- */
- _draggingPredicate = (item) => item.isDragging();
- /**
- * Map tracking DOM nodes and their corresponding drag directives. Note that this is different
- * from looking through the `_dragInstances` and getting their root node, because the root node
- * isn't necessarily the node that the directive is set on.
- */
- _domNodesToDirectives = null;
- /**
- * Emits the `touchmove` or `mousemove` events that are dispatched
- * while the user is dragging a drag item instance.
- */
- pointerMove = new Subject();
- /**
- * Emits the `touchend` or `mouseup` events that are dispatched
- * while the user is dragging a drag item instance.
- */
- pointerUp = new Subject();
- constructor() {
- }
- /** Adds a drop container to the registry. */
- registerDropContainer(drop) {
- if (!this._dropInstances.has(drop)) {
- this._dropInstances.add(drop);
- }
- }
- /** Adds a drag item instance to the registry. */
- registerDragItem(drag) {
- this._dragInstances.add(drag);
- if (this._dragInstances.size === 1) {
- this._ngZone.runOutsideAngular(() => {
- this._cleanupDocumentTouchmove?.();
- this._cleanupDocumentTouchmove = this._renderer.listen(this._document, "touchmove", this._persistentTouchmoveListener, activeCapturingEventOptions);
- });
- }
- }
- /** Removes a drop container from the registry. */
- removeDropContainer(drop) {
- this._dropInstances.delete(drop);
- }
- /** Removes a drag item instance from the registry. */
- removeDragItem(drag) {
- this._dragInstances.delete(drag);
- this.stopDragging(drag);
- if (this._dragInstances.size === 0) {
- this._cleanupDocumentTouchmove?.();
- }
- }
- /**
- * Starts the dragging sequence for a drag instance.
- * @param drag Drag instance which is being dragged.
- * @param event Event that initiated the dragging.
- */
- startDragging(drag, event) {
- if (this._activeDragInstances().indexOf(drag) > -1) {
- return;
- }
- this._styleLoader.load(_ResetsLoader);
- this._activeDragInstances.update((instances) => [...instances, drag]);
- if (this._activeDragInstances().length === 1) {
- const isTouchEvent2 = event.type.startsWith("touch");
- const endEventHandler = (e) => this.pointerUp.next(e);
- const toBind = [
- // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
- // the document. See https://github.com/angular/components/issues/17144.
- ["scroll", (e) => this._scroll.next(e), capturingEventOptions],
- // Preventing the default action on `mousemove` isn't enough to disable text selection
- // on Safari so we need to prevent the selection event as well. Alternatively this can
- // be done by setting `user-select: none` on the `body`, however it has causes a style
- // recalculation which can be expensive on pages with a lot of elements.
- ["selectstart", this._preventDefaultWhileDragging, activeCapturingEventOptions]
- ];
- if (isTouchEvent2) {
- toBind.push(["touchend", endEventHandler, capturingEventOptions], ["touchcancel", endEventHandler, capturingEventOptions]);
- } else {
- toBind.push(["mouseup", endEventHandler, capturingEventOptions]);
- }
- if (!isTouchEvent2) {
- toBind.push(["mousemove", (e) => this.pointerMove.next(e), activeCapturingEventOptions]);
- }
- this._ngZone.runOutsideAngular(() => {
- this._globalListeners = toBind.map(([name, handler, options]) => this._renderer.listen(this._document, name, handler, options));
- });
- }
- }
- /** Stops dragging a drag item instance. */
- stopDragging(drag) {
- this._activeDragInstances.update((instances) => {
- const index = instances.indexOf(drag);
- if (index > -1) {
- instances.splice(index, 1);
- return [...instances];
- }
- return instances;
- });
- if (this._activeDragInstances().length === 0) {
- this._clearGlobalListeners();
- }
- }
- /** Gets whether a drag item instance is currently being dragged. */
- isDragging(drag) {
- return this._activeDragInstances().indexOf(drag) > -1;
- }
- /**
- * Gets a stream that will emit when any element on the page is scrolled while an item is being
- * dragged.
- * @param shadowRoot Optional shadow root that the current dragging sequence started from.
- * Top-level listeners won't pick up events coming from the shadow DOM so this parameter can
- * be used to include an additional top-level listener at the shadow root level.
- */
- scrolled(shadowRoot) {
- const streams = [this._scroll];
- if (shadowRoot && shadowRoot !== this._document) {
- streams.push(new Observable((observer) => {
- return this._ngZone.runOutsideAngular(() => {
- const cleanup = this._renderer.listen(shadowRoot, "scroll", (event) => {
- if (this._activeDragInstances().length) {
- observer.next(event);
- }
- }, capturingEventOptions);
- return () => {
- cleanup();
- };
- });
- }));
- }
- return merge(...streams);
- }
- /**
- * Tracks the DOM node which has a draggable directive.
- * @param node Node to track.
- * @param dragRef Drag directive set on the node.
- */
- registerDirectiveNode(node, dragRef) {
- this._domNodesToDirectives ??= /* @__PURE__ */ new WeakMap();
- this._domNodesToDirectives.set(node, dragRef);
- }
- /**
- * Stops tracking a draggable directive node.
- * @param node Node to stop tracking.
- */
- removeDirectiveNode(node) {
- this._domNodesToDirectives?.delete(node);
- }
- /**
- * Gets the drag directive corresponding to a specific DOM node, if any.
- * @param node Node for which to do the lookup.
- */
- getDragDirectiveForNode(node) {
- return this._domNodesToDirectives?.get(node) || null;
- }
- ngOnDestroy() {
- this._dragInstances.forEach((instance) => this.removeDragItem(instance));
- this._dropInstances.forEach((instance) => this.removeDropContainer(instance));
- this._domNodesToDirectives = null;
- this._clearGlobalListeners();
- this.pointerMove.complete();
- this.pointerUp.complete();
- }
- /**
- * Event listener that will prevent the default browser action while the user is dragging.
- * @param event Event whose default action should be prevented.
- */
- _preventDefaultWhileDragging = (event) => {
- if (this._activeDragInstances().length > 0) {
- event.preventDefault();
- }
- };
- /** Event listener for `touchmove` that is bound even if no dragging is happening. */
- _persistentTouchmoveListener = (event) => {
- if (this._activeDragInstances().length > 0) {
- if (this._activeDragInstances().some(this._draggingPredicate)) {
- event.preventDefault();
- }
- this.pointerMove.next(event);
- }
- };
- /** Clears out the global event listeners from the `document`. */
- _clearGlobalListeners() {
- this._globalListeners?.forEach((cleanup) => cleanup());
- this._globalListeners = void 0;
- }
- static ɵfac = function DragDropRegistry_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _DragDropRegistry)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _DragDropRegistry,
- factory: _DragDropRegistry.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DragDropRegistry, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var DEFAULT_CONFIG = {
- dragStartThreshold: 5,
- pointerDirectionChangeThreshold: 5
-};
-var DragDrop = class _DragDrop {
- _document = inject(DOCUMENT);
- _ngZone = inject(NgZone);
- _viewportRuler = inject(ViewportRuler);
- _dragDropRegistry = inject(DragDropRegistry);
- _renderer = inject(RendererFactory2).createRenderer(null, null);
- constructor() {
- }
- /**
- * Turns an element into a draggable item.
- * @param element Element to which to attach the dragging functionality.
- * @param config Object used to configure the dragging behavior.
- */
- createDrag(element, config = DEFAULT_CONFIG) {
- return new DragRef(element, config, this._document, this._ngZone, this._viewportRuler, this._dragDropRegistry, this._renderer);
- }
- /**
- * Turns an element into a drop list.
- * @param element Element to which to attach the drop list functionality.
- */
- createDropList(element) {
- return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
- }
- static ɵfac = function DragDrop_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _DragDrop)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _DragDrop,
- factory: _DragDrop.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DragDrop, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], () => [], null);
-})();
-var CDK_DRAG_PARENT = new InjectionToken("CDK_DRAG_PARENT");
-function assertElementNode(node, name) {
- if (node.nodeType !== 1) {
- throw Error(`${name} must be attached to an element node. Currently attached to "${node.nodeName}".`);
- }
-}
-var CDK_DRAG_HANDLE = new InjectionToken("CdkDragHandle");
-var CdkDragHandle = class _CdkDragHandle {
- element = inject(ElementRef);
- _parentDrag = inject(CDK_DRAG_PARENT, {
- optional: true,
- skipSelf: true
- });
- _dragDropRegistry = inject(DragDropRegistry);
- /** Emits when the state of the handle has changed. */
- _stateChanges = new Subject();
- /** Whether starting to drag through this handle is disabled. */
- get disabled() {
- return this._disabled;
- }
- set disabled(value) {
- this._disabled = value;
- this._stateChanges.next(this);
- }
- _disabled = false;
- constructor() {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- assertElementNode(this.element.nativeElement, "cdkDragHandle");
- }
- this._parentDrag?._addHandle(this);
- }
- ngAfterViewInit() {
- if (!this._parentDrag) {
- let parent = this.element.nativeElement.parentElement;
- while (parent) {
- const ref = this._dragDropRegistry.getDragDirectiveForNode(parent);
- if (ref) {
- this._parentDrag = ref;
- ref._addHandle(this);
- break;
- }
- parent = parent.parentElement;
- }
- }
- }
- ngOnDestroy() {
- this._parentDrag?._removeHandle(this);
- this._stateChanges.complete();
- }
- static ɵfac = function CdkDragHandle_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDragHandle)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDragHandle,
- selectors: [["", "cdkDragHandle", ""]],
- hostAttrs: [1, "cdk-drag-handle"],
- inputs: {
- disabled: [2, "cdkDragHandleDisabled", "disabled", booleanAttribute]
- },
- features: [ɵɵProvidersFeature([{
- provide: CDK_DRAG_HANDLE,
- useExisting: _CdkDragHandle
- }])]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDragHandle, [{
- type: Directive,
- args: [{
- selector: "[cdkDragHandle]",
- host: {
- "class": "cdk-drag-handle"
- },
- providers: [{
- provide: CDK_DRAG_HANDLE,
- useExisting: CdkDragHandle
- }]
- }]
- }], () => [], {
- disabled: [{
- type: Input,
- args: [{
- alias: "cdkDragHandleDisabled",
- transform: booleanAttribute
- }]
- }]
- });
-})();
-var CDK_DRAG_CONFIG = new InjectionToken("CDK_DRAG_CONFIG");
-var CDK_DROP_LIST = new InjectionToken("CdkDropList");
-var CdkDrag = class _CdkDrag {
- element = inject(ElementRef);
- dropContainer = inject(CDK_DROP_LIST, {
- optional: true,
- skipSelf: true
- });
- _ngZone = inject(NgZone);
- _viewContainerRef = inject(ViewContainerRef);
- _dir = inject(Directionality, {
- optional: true
- });
- _changeDetectorRef = inject(ChangeDetectorRef);
- _selfHandle = inject(CDK_DRAG_HANDLE, {
- optional: true,
- self: true
- });
- _parentDrag = inject(CDK_DRAG_PARENT, {
- optional: true,
- skipSelf: true
- });
- _dragDropRegistry = inject(DragDropRegistry);
- _destroyed = new Subject();
- _handles = new BehaviorSubject([]);
- _previewTemplate;
- _placeholderTemplate;
- /** Reference to the underlying drag instance. */
- _dragRef;
- /** Arbitrary data to attach to this drag instance. */
- data;
- /** Locks the position of the dragged element along the specified axis. */
- lockAxis = null;
- /**
- * Selector that will be used to determine the root draggable element, starting from
- * the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful
- * when trying to enable dragging on an element that you might not have access to.
- */
- rootElementSelector;
- /**
- * Node or selector that will be used to determine the element to which the draggable's
- * position will be constrained. If a string is passed in, it'll be used as a selector that
- * will be matched starting from the element's parent and going up the DOM until a match
- * has been found.
- */
- boundaryElement;
- /**
- * Amount of milliseconds to wait after the user has put their
- * pointer down before starting to drag the element.
- */
- dragStartDelay;
- /**
- * Sets the position of a `CdkDrag` that is outside of a drop container.
- * Can be used to restore the element's position for a returning user.
- */
- freeDragPosition;
- /** Whether starting to drag this element is disabled. */
- get disabled() {
- return this._disabled || !!(this.dropContainer && this.dropContainer.disabled);
- }
- set disabled(value) {
- this._disabled = value;
- this._dragRef.disabled = this._disabled;
- }
- _disabled;
- /**
- * Function that can be used to customize the logic of how the position of the drag item
- * is limited while it's being dragged. Gets called with a point containing the current position
- * of the user's pointer on the page, a reference to the item being dragged and its dimensions.
- * Should return a point describing where the item should be rendered.
- */
- constrainPosition;
- /** Class to be added to the preview element. */
- previewClass;
- /**
- * Configures the place into which the preview of the item will be inserted. Can be configured
- * globally through `CDK_DROP_LIST`. Possible values:
- * - `global` - Preview will be inserted at the bottom of the ``. The advantage is that
- * you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain
- * its inherited styles.
- * - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that
- * inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be
- * visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors
- * like `:nth-child` and some flexbox configurations.
- * - `ElementRef | HTMLElement` - Preview will be inserted into a specific element.
- * Same advantages and disadvantages as `parent`.
- */
- previewContainer;
- /**
- * If the parent of the dragged element has a `scale` transform, it can throw off the
- * positioning when the user starts dragging. Use this input to notify the CDK of the scale.
- */
- scale = 1;
- /** Emits when the user starts dragging the item. */
- started = new EventEmitter();
- /** Emits when the user has released a drag item, before any animations have started. */
- released = new EventEmitter();
- /** Emits when the user stops dragging an item in the container. */
- ended = new EventEmitter();
- /** Emits when the user has moved the item into a new container. */
- entered = new EventEmitter();
- /** Emits when the user removes the item its container by dragging it into another container. */
- exited = new EventEmitter();
- /** Emits when the user drops the item inside a container. */
- dropped = new EventEmitter();
- /**
- * Emits as the user is dragging the item. Use with caution,
- * because this event will fire for every pixel that the user has dragged.
- */
- moved = new Observable((observer) => {
- const subscription = this._dragRef.moved.pipe(map((movedEvent) => ({
- source: this,
- pointerPosition: movedEvent.pointerPosition,
- event: movedEvent.event,
- delta: movedEvent.delta,
- distance: movedEvent.distance
- }))).subscribe(observer);
- return () => {
- subscription.unsubscribe();
- };
- });
- _injector = inject(Injector);
- constructor() {
- const dropContainer = this.dropContainer;
- const config = inject(CDK_DRAG_CONFIG, {
- optional: true
- });
- const dragDrop = inject(DragDrop);
- this._dragRef = dragDrop.createDrag(this.element, {
- dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
- pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null ? config.pointerDirectionChangeThreshold : 5,
- zIndex: config?.zIndex
- });
- this._dragRef.data = this;
- this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement, this);
- if (config) {
- this._assignDefaults(config);
- }
- if (dropContainer) {
- dropContainer.addItem(this);
- dropContainer._dropListRef.beforeStarted.pipe(takeUntil(this._destroyed)).subscribe(() => {
- this._dragRef.scale = this.scale;
- });
- }
- this._syncInputs(this._dragRef);
- this._handleEvents(this._dragRef);
- }
- /**
- * Returns the element that is being used as a placeholder
- * while the current element is being dragged.
- */
- getPlaceholderElement() {
- return this._dragRef.getPlaceholderElement();
- }
- /** Returns the root draggable element. */
- getRootElement() {
- return this._dragRef.getRootElement();
- }
- /** Resets a standalone drag item to its initial position. */
- reset() {
- this._dragRef.reset();
- }
- /** Resets drag item to end of boundary element. */
- resetToBoundary() {
- this._dragRef.resetToBoundary();
- }
- /**
- * Gets the pixel coordinates of the draggable outside of a drop container.
- */
- getFreeDragPosition() {
- return this._dragRef.getFreeDragPosition();
- }
- /**
- * Sets the current position in pixels the draggable outside of a drop container.
- * @param value New position to be set.
- */
- setFreeDragPosition(value) {
- this._dragRef.setFreeDragPosition(value);
- }
- ngAfterViewInit() {
- afterNextRender(() => {
- this._updateRootElement();
- this._setupHandlesListener();
- this._dragRef.scale = this.scale;
- if (this.freeDragPosition) {
- this._dragRef.setFreeDragPosition(this.freeDragPosition);
- }
- }, {
- injector: this._injector
- });
- }
- ngOnChanges(changes) {
- const rootSelectorChange = changes["rootElementSelector"];
- const positionChange = changes["freeDragPosition"];
- if (rootSelectorChange && !rootSelectorChange.firstChange) {
- this._updateRootElement();
- }
- this._dragRef.scale = this.scale;
- if (positionChange && !positionChange.firstChange && this.freeDragPosition) {
- this._dragRef.setFreeDragPosition(this.freeDragPosition);
- }
- }
- ngOnDestroy() {
- if (this.dropContainer) {
- this.dropContainer.removeItem(this);
- }
- this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement);
- this._ngZone.runOutsideAngular(() => {
- this._handles.complete();
- this._destroyed.next();
- this._destroyed.complete();
- this._dragRef.dispose();
- });
- }
- _addHandle(handle) {
- const handles = this._handles.getValue();
- handles.push(handle);
- this._handles.next(handles);
- }
- _removeHandle(handle) {
- const handles = this._handles.getValue();
- const index = handles.indexOf(handle);
- if (index > -1) {
- handles.splice(index, 1);
- this._handles.next(handles);
- }
- }
- _setPreviewTemplate(preview) {
- this._previewTemplate = preview;
- }
- _resetPreviewTemplate(preview) {
- if (preview === this._previewTemplate) {
- this._previewTemplate = null;
- }
- }
- _setPlaceholderTemplate(placeholder) {
- this._placeholderTemplate = placeholder;
- }
- _resetPlaceholderTemplate(placeholder) {
- if (placeholder === this._placeholderTemplate) {
- this._placeholderTemplate = null;
- }
- }
- /** Syncs the root element with the `DragRef`. */
- _updateRootElement() {
- const element = this.element.nativeElement;
- let rootElement = element;
- if (this.rootElementSelector) {
- rootElement = element.closest !== void 0 ? element.closest(this.rootElementSelector) : (
- // Comment tag doesn't have closest method, so use parent's one.
- element.parentElement?.closest(this.rootElementSelector)
- );
- }
- if (rootElement && (typeof ngDevMode === "undefined" || ngDevMode)) {
- assertElementNode(rootElement, "cdkDrag");
- }
- this._dragRef.withRootElement(rootElement || element);
- }
- /** Gets the boundary element, based on the `boundaryElement` value. */
- _getBoundaryElement() {
- const boundary = this.boundaryElement;
- if (!boundary) {
- return null;
- }
- if (typeof boundary === "string") {
- return this.element.nativeElement.closest(boundary);
- }
- return coerceElement(boundary);
- }
- /** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */
- _syncInputs(ref) {
- ref.beforeStarted.subscribe(() => {
- if (!ref.isDragging()) {
- const dir = this._dir;
- const dragStartDelay = this.dragStartDelay;
- const placeholder = this._placeholderTemplate ? {
- template: this._placeholderTemplate.templateRef,
- context: this._placeholderTemplate.data,
- viewContainer: this._viewContainerRef
- } : null;
- const preview = this._previewTemplate ? {
- template: this._previewTemplate.templateRef,
- context: this._previewTemplate.data,
- matchSize: this._previewTemplate.matchSize,
- viewContainer: this._viewContainerRef
- } : null;
- ref.disabled = this.disabled;
- ref.lockAxis = this.lockAxis;
- ref.scale = this.scale;
- ref.dragStartDelay = typeof dragStartDelay === "object" && dragStartDelay ? dragStartDelay : coerceNumberProperty(dragStartDelay);
- ref.constrainPosition = this.constrainPosition;
- ref.previewClass = this.previewClass;
- ref.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(placeholder).withPreviewTemplate(preview).withPreviewContainer(this.previewContainer || "global");
- if (dir) {
- ref.withDirection(dir.value);
- }
- }
- });
- ref.beforeStarted.pipe(take(1)).subscribe(() => {
- if (this._parentDrag) {
- ref.withParent(this._parentDrag._dragRef);
- return;
- }
- let parent = this.element.nativeElement.parentElement;
- while (parent) {
- const parentDrag = this._dragDropRegistry.getDragDirectiveForNode(parent);
- if (parentDrag) {
- ref.withParent(parentDrag._dragRef);
- break;
- }
- parent = parent.parentElement;
- }
- });
- }
- /** Handles the events from the underlying `DragRef`. */
- _handleEvents(ref) {
- ref.started.subscribe((startEvent) => {
- this.started.emit({
- source: this,
- event: startEvent.event
- });
- this._changeDetectorRef.markForCheck();
- });
- ref.released.subscribe((releaseEvent) => {
- this.released.emit({
- source: this,
- event: releaseEvent.event
- });
- });
- ref.ended.subscribe((endEvent) => {
- this.ended.emit({
- source: this,
- distance: endEvent.distance,
- dropPoint: endEvent.dropPoint,
- event: endEvent.event
- });
- this._changeDetectorRef.markForCheck();
- });
- ref.entered.subscribe((enterEvent) => {
- this.entered.emit({
- container: enterEvent.container.data,
- item: this,
- currentIndex: enterEvent.currentIndex
- });
- });
- ref.exited.subscribe((exitEvent) => {
- this.exited.emit({
- container: exitEvent.container.data,
- item: this
- });
- });
- ref.dropped.subscribe((dropEvent) => {
- this.dropped.emit({
- previousIndex: dropEvent.previousIndex,
- currentIndex: dropEvent.currentIndex,
- previousContainer: dropEvent.previousContainer.data,
- container: dropEvent.container.data,
- isPointerOverContainer: dropEvent.isPointerOverContainer,
- item: this,
- distance: dropEvent.distance,
- dropPoint: dropEvent.dropPoint,
- event: dropEvent.event
- });
- });
- }
- /** Assigns the default input values based on a provided config object. */
- _assignDefaults(config) {
- const {
- lockAxis,
- dragStartDelay,
- constrainPosition,
- previewClass,
- boundaryElement,
- draggingDisabled,
- rootElementSelector,
- previewContainer
- } = config;
- this.disabled = draggingDisabled == null ? false : draggingDisabled;
- this.dragStartDelay = dragStartDelay || 0;
- this.lockAxis = lockAxis || null;
- if (constrainPosition) {
- this.constrainPosition = constrainPosition;
- }
- if (previewClass) {
- this.previewClass = previewClass;
- }
- if (boundaryElement) {
- this.boundaryElement = boundaryElement;
- }
- if (rootElementSelector) {
- this.rootElementSelector = rootElementSelector;
- }
- if (previewContainer) {
- this.previewContainer = previewContainer;
- }
- }
- /** Sets up the listener that syncs the handles with the drag ref. */
- _setupHandlesListener() {
- this._handles.pipe(
- // Sync the new handles with the DragRef.
- tap((handles) => {
- const handleElements = handles.map((handle) => handle.element);
- if (this._selfHandle && this.rootElementSelector) {
- handleElements.push(this.element);
- }
- this._dragRef.withHandles(handleElements);
- }),
- // Listen if the state of any of the handles changes.
- switchMap((handles) => {
- return merge(...handles.map((item) => item._stateChanges.pipe(startWith(item))));
- }),
- takeUntil(this._destroyed)
- ).subscribe((handleInstance) => {
- const dragRef = this._dragRef;
- const handle = handleInstance.element.nativeElement;
- handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
- });
- }
- static ɵfac = function CdkDrag_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDrag)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDrag,
- selectors: [["", "cdkDrag", ""]],
- hostAttrs: [1, "cdk-drag"],
- hostVars: 4,
- hostBindings: function CdkDrag_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵclassProp("cdk-drag-disabled", ctx.disabled)("cdk-drag-dragging", ctx._dragRef.isDragging());
- }
- },
- inputs: {
- data: [0, "cdkDragData", "data"],
- lockAxis: [0, "cdkDragLockAxis", "lockAxis"],
- rootElementSelector: [0, "cdkDragRootElement", "rootElementSelector"],
- boundaryElement: [0, "cdkDragBoundary", "boundaryElement"],
- dragStartDelay: [0, "cdkDragStartDelay", "dragStartDelay"],
- freeDragPosition: [0, "cdkDragFreeDragPosition", "freeDragPosition"],
- disabled: [2, "cdkDragDisabled", "disabled", booleanAttribute],
- constrainPosition: [0, "cdkDragConstrainPosition", "constrainPosition"],
- previewClass: [0, "cdkDragPreviewClass", "previewClass"],
- previewContainer: [0, "cdkDragPreviewContainer", "previewContainer"],
- scale: [2, "cdkDragScale", "scale", numberAttribute]
- },
- outputs: {
- started: "cdkDragStarted",
- released: "cdkDragReleased",
- ended: "cdkDragEnded",
- entered: "cdkDragEntered",
- exited: "cdkDragExited",
- dropped: "cdkDragDropped",
- moved: "cdkDragMoved"
- },
- exportAs: ["cdkDrag"],
- features: [ɵɵProvidersFeature([{
- provide: CDK_DRAG_PARENT,
- useExisting: _CdkDrag
- }]), ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDrag, [{
- type: Directive,
- args: [{
- selector: "[cdkDrag]",
- exportAs: "cdkDrag",
- host: {
- "class": "cdk-drag",
- "[class.cdk-drag-disabled]": "disabled",
- "[class.cdk-drag-dragging]": "_dragRef.isDragging()"
- },
- providers: [{
- provide: CDK_DRAG_PARENT,
- useExisting: CdkDrag
- }]
- }]
- }], () => [], {
- data: [{
- type: Input,
- args: ["cdkDragData"]
- }],
- lockAxis: [{
- type: Input,
- args: ["cdkDragLockAxis"]
- }],
- rootElementSelector: [{
- type: Input,
- args: ["cdkDragRootElement"]
- }],
- boundaryElement: [{
- type: Input,
- args: ["cdkDragBoundary"]
- }],
- dragStartDelay: [{
- type: Input,
- args: ["cdkDragStartDelay"]
- }],
- freeDragPosition: [{
- type: Input,
- args: ["cdkDragFreeDragPosition"]
- }],
- disabled: [{
- type: Input,
- args: [{
- alias: "cdkDragDisabled",
- transform: booleanAttribute
- }]
- }],
- constrainPosition: [{
- type: Input,
- args: ["cdkDragConstrainPosition"]
- }],
- previewClass: [{
- type: Input,
- args: ["cdkDragPreviewClass"]
- }],
- previewContainer: [{
- type: Input,
- args: ["cdkDragPreviewContainer"]
- }],
- scale: [{
- type: Input,
- args: [{
- alias: "cdkDragScale",
- transform: numberAttribute
- }]
- }],
- started: [{
- type: Output,
- args: ["cdkDragStarted"]
- }],
- released: [{
- type: Output,
- args: ["cdkDragReleased"]
- }],
- ended: [{
- type: Output,
- args: ["cdkDragEnded"]
- }],
- entered: [{
- type: Output,
- args: ["cdkDragEntered"]
- }],
- exited: [{
- type: Output,
- args: ["cdkDragExited"]
- }],
- dropped: [{
- type: Output,
- args: ["cdkDragDropped"]
- }],
- moved: [{
- type: Output,
- args: ["cdkDragMoved"]
- }]
- });
-})();
-var CDK_DROP_LIST_GROUP = new InjectionToken("CdkDropListGroup");
-var CdkDropListGroup = class _CdkDropListGroup {
- /** Drop lists registered inside the group. */
- _items = /* @__PURE__ */ new Set();
- /** Whether starting a dragging sequence from inside this group is disabled. */
- disabled = false;
- ngOnDestroy() {
- this._items.clear();
- }
- static ɵfac = function CdkDropListGroup_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDropListGroup)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDropListGroup,
- selectors: [["", "cdkDropListGroup", ""]],
- inputs: {
- disabled: [2, "cdkDropListGroupDisabled", "disabled", booleanAttribute]
- },
- exportAs: ["cdkDropListGroup"],
- features: [ɵɵProvidersFeature([{
- provide: CDK_DROP_LIST_GROUP,
- useExisting: _CdkDropListGroup
- }])]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDropListGroup, [{
- type: Directive,
- args: [{
- selector: "[cdkDropListGroup]",
- exportAs: "cdkDropListGroup",
- providers: [{
- provide: CDK_DROP_LIST_GROUP,
- useExisting: CdkDropListGroup
- }]
- }]
- }], null, {
- disabled: [{
- type: Input,
- args: [{
- alias: "cdkDropListGroupDisabled",
- transform: booleanAttribute
- }]
- }]
- });
-})();
-var CdkDropList = class _CdkDropList {
- element = inject(ElementRef);
- _changeDetectorRef = inject(ChangeDetectorRef);
- _scrollDispatcher = inject(ScrollDispatcher);
- _dir = inject(Directionality, {
- optional: true
- });
- _group = inject(CDK_DROP_LIST_GROUP, {
- optional: true,
- skipSelf: true
- });
- /** Refs that have been synced with the drop ref most recently. */
- _latestSortedRefs;
- /** Emits when the list has been destroyed. */
- _destroyed = new Subject();
- /** Whether the element's scrollable parents have been resolved. */
- _scrollableParentsResolved;
- /** Keeps track of the drop lists that are currently on the page. */
- static _dropLists = [];
- /** Reference to the underlying drop list instance. */
- _dropListRef;
- /**
- * Other draggable containers that this container is connected to and into which the
- * container's items can be transferred. Can either be references to other drop containers,
- * or their unique IDs.
- */
- connectedTo = [];
- /** Arbitrary data to attach to this container. */
- data;
- /** Direction in which the list is oriented. */
- orientation;
- /**
- * Unique ID for the drop zone. Can be used as a reference
- * in the `connectedTo` of another `CdkDropList`.
- */
- id = inject(_IdGenerator).getId("cdk-drop-list-");
- /** Locks the position of the draggable elements inside the container along the specified axis. */
- lockAxis = null;
- /** Whether starting a dragging sequence from this container is disabled. */
- get disabled() {
- return this._disabled || !!this._group && this._group.disabled;
- }
- set disabled(value) {
- this._dropListRef.disabled = this._disabled = value;
- }
- _disabled;
- /** Whether sorting within this drop list is disabled. */
- sortingDisabled;
- /**
- * Function that is used to determine whether an item
- * is allowed to be moved into a drop container.
- */
- enterPredicate = () => true;
- /** Functions that is used to determine whether an item can be sorted into a particular index. */
- sortPredicate = () => true;
- /** Whether to auto-scroll the view when the user moves their pointer close to the edges. */
- autoScrollDisabled;
- /** Number of pixels to scroll for each frame when auto-scrolling an element. */
- autoScrollStep;
- /**
- * Selector that will be used to resolve an alternate element container for the drop list.
- * Passing an alternate container is useful for the cases where one might not have control
- * over the parent node of the draggable items within the list (e.g. due to content projection).
- * This allows for usages like:
- *
- * ```
- *
- *
- *
- *
- *
- * ```
- */
- elementContainerSelector;
- /**
- * By default when an item leaves its initial container, its placeholder will be transferred
- * to the new container. If that's not desirable for your use case, you can enable this option
- * which will clone the placeholder and leave it inside the original container. If the item is
- * returned to the initial container, the anchor element will be removed automatically.
- *
- * The cloned placeholder can be styled by targeting the `cdk-drag-anchor` class.
- *
- * This option is useful in combination with `cdkDropListSortingDisabled` to implement copying
- * behavior in a drop list.
- */
- hasAnchor;
- /** Emits when the user drops an item inside the container. */
- dropped = new EventEmitter();
- /**
- * Emits when the user has moved a new drag item into this container.
- */
- entered = new EventEmitter();
- /**
- * Emits when the user removes an item from the container
- * by dragging it into another container.
- */
- exited = new EventEmitter();
- /** Emits as the user is swapping items while actively dragging. */
- sorted = new EventEmitter();
- /**
- * Keeps track of the items that are registered with this container. Historically we used to
- * do this with a `ContentChildren` query, however queries don't handle transplanted views very
- * well which means that we can't handle cases like dragging the headers of a `mat-table`
- * correctly. What we do instead is to have the items register themselves with the container
- * and then we sort them based on their position in the DOM.
- */
- _unsortedItems = /* @__PURE__ */ new Set();
- constructor() {
- const dragDrop = inject(DragDrop);
- const config = inject(CDK_DRAG_CONFIG, {
- optional: true
- });
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- assertElementNode(this.element.nativeElement, "cdkDropList");
- }
- this._dropListRef = dragDrop.createDropList(this.element);
- this._dropListRef.data = this;
- if (config) {
- this._assignDefaults(config);
- }
- this._dropListRef.enterPredicate = (drag, drop) => {
- return this.enterPredicate(drag.data, drop.data);
- };
- this._dropListRef.sortPredicate = (index, drag, drop) => {
- return this.sortPredicate(index, drag.data, drop.data);
- };
- this._setupInputSyncSubscription(this._dropListRef);
- this._handleEvents(this._dropListRef);
- _CdkDropList._dropLists.push(this);
- if (this._group) {
- this._group._items.add(this);
- }
- }
- /** Registers an items with the drop list. */
- addItem(item) {
- this._unsortedItems.add(item);
- item._dragRef._withDropContainer(this._dropListRef);
- if (this._dropListRef.isDragging()) {
- this._syncItemsWithRef(this.getSortedItems().map((item2) => item2._dragRef));
- }
- }
- /** Removes an item from the drop list. */
- removeItem(item) {
- this._unsortedItems.delete(item);
- if (this._latestSortedRefs) {
- const index = this._latestSortedRefs.indexOf(item._dragRef);
- if (index > -1) {
- this._latestSortedRefs.splice(index, 1);
- this._syncItemsWithRef(this._latestSortedRefs);
- }
- }
- }
- /** Gets the registered items in the list, sorted by their position in the DOM. */
- getSortedItems() {
- return Array.from(this._unsortedItems).sort((a, b) => {
- const documentPosition = a._dragRef.getVisibleElement().compareDocumentPosition(b._dragRef.getVisibleElement());
- return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
- });
- }
- ngOnDestroy() {
- const index = _CdkDropList._dropLists.indexOf(this);
- if (index > -1) {
- _CdkDropList._dropLists.splice(index, 1);
- }
- if (this._group) {
- this._group._items.delete(this);
- }
- this._latestSortedRefs = void 0;
- this._unsortedItems.clear();
- this._dropListRef.dispose();
- this._destroyed.next();
- this._destroyed.complete();
- }
- /** Syncs the inputs of the CdkDropList with the options of the underlying DropListRef. */
- _setupInputSyncSubscription(ref) {
- if (this._dir) {
- this._dir.change.pipe(startWith(this._dir.value), takeUntil(this._destroyed)).subscribe((value) => ref.withDirection(value));
- }
- ref.beforeStarted.subscribe(() => {
- const siblings = coerceArray(this.connectedTo).map((drop) => {
- if (typeof drop === "string") {
- const correspondingDropList = _CdkDropList._dropLists.find((list) => list.id === drop);
- if (!correspondingDropList && (typeof ngDevMode === "undefined" || ngDevMode)) {
- console.warn(`CdkDropList could not find connected drop list with id "${drop}"`);
- }
- return correspondingDropList;
- }
- return drop;
- });
- if (this._group) {
- this._group._items.forEach((drop) => {
- if (siblings.indexOf(drop) === -1) {
- siblings.push(drop);
- }
- });
- }
- if (!this._scrollableParentsResolved) {
- const scrollableParents = this._scrollDispatcher.getAncestorScrollContainers(this.element).map((scrollable) => scrollable.getElementRef().nativeElement);
- this._dropListRef.withScrollableParents(scrollableParents);
- this._scrollableParentsResolved = true;
- }
- if (this.elementContainerSelector) {
- const container = this.element.nativeElement.querySelector(this.elementContainerSelector);
- if (!container && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw new Error(`CdkDropList could not find an element container matching the selector "${this.elementContainerSelector}"`);
- }
- ref.withElementContainer(container);
- }
- ref.disabled = this.disabled;
- ref.lockAxis = this.lockAxis;
- ref.sortingDisabled = this.sortingDisabled;
- ref.autoScrollDisabled = this.autoScrollDisabled;
- ref.autoScrollStep = coerceNumberProperty(this.autoScrollStep, 2);
- ref.hasAnchor = this.hasAnchor;
- ref.connectedTo(siblings.filter((drop) => drop && drop !== this).map((list) => list._dropListRef)).withOrientation(this.orientation);
- });
- }
- /** Handles events from the underlying DropListRef. */
- _handleEvents(ref) {
- ref.beforeStarted.subscribe(() => {
- this._syncItemsWithRef(this.getSortedItems().map((item) => item._dragRef));
- this._changeDetectorRef.markForCheck();
- });
- ref.entered.subscribe((event) => {
- this.entered.emit({
- container: this,
- item: event.item.data,
- currentIndex: event.currentIndex
- });
- });
- ref.exited.subscribe((event) => {
- this.exited.emit({
- container: this,
- item: event.item.data
- });
- this._changeDetectorRef.markForCheck();
- });
- ref.sorted.subscribe((event) => {
- this.sorted.emit({
- previousIndex: event.previousIndex,
- currentIndex: event.currentIndex,
- container: this,
- item: event.item.data
- });
- });
- ref.dropped.subscribe((dropEvent) => {
- this.dropped.emit({
- previousIndex: dropEvent.previousIndex,
- currentIndex: dropEvent.currentIndex,
- previousContainer: dropEvent.previousContainer.data,
- container: dropEvent.container.data,
- item: dropEvent.item.data,
- isPointerOverContainer: dropEvent.isPointerOverContainer,
- distance: dropEvent.distance,
- dropPoint: dropEvent.dropPoint,
- event: dropEvent.event
- });
- this._changeDetectorRef.markForCheck();
- });
- merge(ref.receivingStarted, ref.receivingStopped).subscribe(() => this._changeDetectorRef.markForCheck());
- }
- /** Assigns the default input values based on a provided config object. */
- _assignDefaults(config) {
- const {
- lockAxis,
- draggingDisabled,
- sortingDisabled,
- listAutoScrollDisabled,
- listOrientation
- } = config;
- this.disabled = draggingDisabled == null ? false : draggingDisabled;
- this.sortingDisabled = sortingDisabled == null ? false : sortingDisabled;
- this.autoScrollDisabled = listAutoScrollDisabled == null ? false : listAutoScrollDisabled;
- this.orientation = listOrientation || "vertical";
- this.lockAxis = lockAxis || null;
- }
- /** Syncs up the registered drag items with underlying drop list ref. */
- _syncItemsWithRef(items) {
- this._latestSortedRefs = items;
- this._dropListRef.withItems(items);
- }
- static ɵfac = function CdkDropList_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDropList)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDropList,
- selectors: [["", "cdkDropList", ""], ["cdk-drop-list"]],
- hostAttrs: [1, "cdk-drop-list"],
- hostVars: 7,
- hostBindings: function CdkDropList_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("id", ctx.id);
- ɵɵclassProp("cdk-drop-list-disabled", ctx.disabled)("cdk-drop-list-dragging", ctx._dropListRef.isDragging())("cdk-drop-list-receiving", ctx._dropListRef.isReceiving());
- }
- },
- inputs: {
- connectedTo: [0, "cdkDropListConnectedTo", "connectedTo"],
- data: [0, "cdkDropListData", "data"],
- orientation: [0, "cdkDropListOrientation", "orientation"],
- id: "id",
- lockAxis: [0, "cdkDropListLockAxis", "lockAxis"],
- disabled: [2, "cdkDropListDisabled", "disabled", booleanAttribute],
- sortingDisabled: [2, "cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute],
- enterPredicate: [0, "cdkDropListEnterPredicate", "enterPredicate"],
- sortPredicate: [0, "cdkDropListSortPredicate", "sortPredicate"],
- autoScrollDisabled: [2, "cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute],
- autoScrollStep: [0, "cdkDropListAutoScrollStep", "autoScrollStep"],
- elementContainerSelector: [0, "cdkDropListElementContainer", "elementContainerSelector"],
- hasAnchor: [2, "cdkDropListHasAnchor", "hasAnchor", booleanAttribute]
- },
- outputs: {
- dropped: "cdkDropListDropped",
- entered: "cdkDropListEntered",
- exited: "cdkDropListExited",
- sorted: "cdkDropListSorted"
- },
- exportAs: ["cdkDropList"],
- features: [ɵɵProvidersFeature([
- // Prevent child drop lists from picking up the same group as their parent.
- {
- provide: CDK_DROP_LIST_GROUP,
- useValue: void 0
- },
- {
- provide: CDK_DROP_LIST,
- useExisting: _CdkDropList
- }
- ])]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDropList, [{
- type: Directive,
- args: [{
- selector: "[cdkDropList], cdk-drop-list",
- exportAs: "cdkDropList",
- providers: [
- // Prevent child drop lists from picking up the same group as their parent.
- {
- provide: CDK_DROP_LIST_GROUP,
- useValue: void 0
- },
- {
- provide: CDK_DROP_LIST,
- useExisting: CdkDropList
- }
- ],
- host: {
- "class": "cdk-drop-list",
- "[attr.id]": "id",
- "[class.cdk-drop-list-disabled]": "disabled",
- "[class.cdk-drop-list-dragging]": "_dropListRef.isDragging()",
- "[class.cdk-drop-list-receiving]": "_dropListRef.isReceiving()"
- }
- }]
- }], () => [], {
- connectedTo: [{
- type: Input,
- args: ["cdkDropListConnectedTo"]
- }],
- data: [{
- type: Input,
- args: ["cdkDropListData"]
- }],
- orientation: [{
- type: Input,
- args: ["cdkDropListOrientation"]
- }],
- id: [{
- type: Input
- }],
- lockAxis: [{
- type: Input,
- args: ["cdkDropListLockAxis"]
- }],
- disabled: [{
- type: Input,
- args: [{
- alias: "cdkDropListDisabled",
- transform: booleanAttribute
- }]
- }],
- sortingDisabled: [{
- type: Input,
- args: [{
- alias: "cdkDropListSortingDisabled",
- transform: booleanAttribute
- }]
- }],
- enterPredicate: [{
- type: Input,
- args: ["cdkDropListEnterPredicate"]
- }],
- sortPredicate: [{
- type: Input,
- args: ["cdkDropListSortPredicate"]
- }],
- autoScrollDisabled: [{
- type: Input,
- args: [{
- alias: "cdkDropListAutoScrollDisabled",
- transform: booleanAttribute
- }]
- }],
- autoScrollStep: [{
- type: Input,
- args: ["cdkDropListAutoScrollStep"]
- }],
- elementContainerSelector: [{
- type: Input,
- args: ["cdkDropListElementContainer"]
- }],
- hasAnchor: [{
- type: Input,
- args: [{
- alias: "cdkDropListHasAnchor",
- transform: booleanAttribute
- }]
- }],
- dropped: [{
- type: Output,
- args: ["cdkDropListDropped"]
- }],
- entered: [{
- type: Output,
- args: ["cdkDropListEntered"]
- }],
- exited: [{
- type: Output,
- args: ["cdkDropListExited"]
- }],
- sorted: [{
- type: Output,
- args: ["cdkDropListSorted"]
- }]
- });
-})();
-var CDK_DRAG_PREVIEW = new InjectionToken("CdkDragPreview");
-var CdkDragPreview = class _CdkDragPreview {
- templateRef = inject(TemplateRef);
- _drag = inject(CDK_DRAG_PARENT, {
- optional: true
- });
- /** Context data to be added to the preview template instance. */
- data;
- /** Whether the preview should preserve the same size as the item that is being dragged. */
- matchSize = false;
- constructor() {
- this._drag?._setPreviewTemplate(this);
- }
- ngOnDestroy() {
- this._drag?._resetPreviewTemplate(this);
- }
- static ɵfac = function CdkDragPreview_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDragPreview)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDragPreview,
- selectors: [["ng-template", "cdkDragPreview", ""]],
- inputs: {
- data: "data",
- matchSize: [2, "matchSize", "matchSize", booleanAttribute]
- },
- features: [ɵɵProvidersFeature([{
- provide: CDK_DRAG_PREVIEW,
- useExisting: _CdkDragPreview
- }])]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDragPreview, [{
- type: Directive,
- args: [{
- selector: "ng-template[cdkDragPreview]",
- providers: [{
- provide: CDK_DRAG_PREVIEW,
- useExisting: CdkDragPreview
- }]
- }]
- }], () => [], {
- data: [{
- type: Input
- }],
- matchSize: [{
- type: Input,
- args: [{
- transform: booleanAttribute
- }]
- }]
- });
-})();
-var CDK_DRAG_PLACEHOLDER = new InjectionToken("CdkDragPlaceholder");
-var CdkDragPlaceholder = class _CdkDragPlaceholder {
- templateRef = inject(TemplateRef);
- _drag = inject(CDK_DRAG_PARENT, {
- optional: true
- });
- /** Context data to be added to the placeholder template instance. */
- data;
- constructor() {
- this._drag?._setPlaceholderTemplate(this);
- }
- ngOnDestroy() {
- this._drag?._resetPlaceholderTemplate(this);
- }
- static ɵfac = function CdkDragPlaceholder_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _CdkDragPlaceholder)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _CdkDragPlaceholder,
- selectors: [["ng-template", "cdkDragPlaceholder", ""]],
- inputs: {
- data: "data"
- },
- features: [ɵɵProvidersFeature([{
- provide: CDK_DRAG_PLACEHOLDER,
- useExisting: _CdkDragPlaceholder
- }])]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDragPlaceholder, [{
- type: Directive,
- args: [{
- selector: "ng-template[cdkDragPlaceholder]",
- providers: [{
- provide: CDK_DRAG_PLACEHOLDER,
- useExisting: CdkDragPlaceholder
- }]
- }]
- }], () => [], {
- data: [{
- type: Input
- }]
- });
-})();
-var DRAG_DROP_DIRECTIVES = [CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder];
-var DragDropModule = class _DragDropModule {
- static ɵfac = function DragDropModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _DragDropModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _DragDropModule,
- imports: [CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder],
- exports: [CdkScrollableModule, CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder]
- });
- static ɵinj = ɵɵdefineInjector({
- providers: [DragDrop],
- imports: [CdkScrollableModule]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DragDropModule, [{
- type: NgModule,
- args: [{
- imports: DRAG_DROP_DIRECTIVES,
- exports: [CdkScrollableModule, ...DRAG_DROP_DIRECTIVES],
- providers: [DragDrop]
- }]
- }], null, null);
-})();
-export {
- CDK_DRAG_CONFIG,
- CDK_DRAG_HANDLE,
- CDK_DRAG_PARENT,
- CDK_DRAG_PLACEHOLDER,
- CDK_DRAG_PREVIEW,
- CDK_DROP_LIST,
- CDK_DROP_LIST_GROUP,
- CdkDrag,
- CdkDragHandle,
- CdkDragPlaceholder,
- CdkDragPreview,
- CdkDropList,
- CdkDropListGroup,
- DragDrop,
- DragDropModule,
- DragDropRegistry,
- DragRef,
- DropListRef,
- copyArrayItem,
- moveItemInArray,
- transferArrayItem,
- CdkScrollable as ɵɵCdkScrollable
-};
-//# sourceMappingURL=@angular_cdk_drag-drop.js.map
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js.map
deleted file mode 100644
index 4b0fe10..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_cdk_drag-drop.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": ["../../../../../../node_modules/@angular/cdk/fesm2022/drag-drop.mjs"],
- "sourcesContent": ["import * as i0 from '@angular/core';\nimport { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, DOCUMENT, RendererFactory2, Injectable, InjectionToken, ElementRef, booleanAttribute, Directive, Input, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';\nimport { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';\nimport { _getEventTarget, _getShadowRoot } from './shadow-dom.mjs';\nimport { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from './fake-event-detection.mjs';\nimport { coerceElement, coerceNumberProperty } from './element.mjs';\nimport { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';\nimport { _CdkPrivateStyleLoader } from './style-loader.mjs';\nimport { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from './scrolling.mjs';\nexport { CdkScrollable as ɵɵCdkScrollable } from './scrolling.mjs';\nimport { Directionality } from './directionality.mjs';\nimport { _IdGenerator } from './id-generator.mjs';\nimport { coerceArray } from './array.mjs';\nimport './platform2.mjs';\nimport '@angular/common';\nimport './scrolling2.mjs';\nimport './bidi.mjs';\nimport './recycle-view-repeater-strategy.mjs';\nimport './data-source.mjs';\n\n/** Creates a deep clone of an element. */\nfunction deepCloneNode(node) {\n const clone = node.cloneNode(true);\n const descendantsWithId = clone.querySelectorAll('[id]');\n const nodeName = node.nodeName.toLowerCase();\n // Remove the `id` to avoid having multiple elements with the same id on the page.\n clone.removeAttribute('id');\n for (let i = 0; i < descendantsWithId.length; i++) {\n descendantsWithId[i].removeAttribute('id');\n }\n if (nodeName === 'canvas') {\n transferCanvasData(node, clone);\n } else if (nodeName === 'input' || nodeName === 'select' || nodeName === 'textarea') {\n transferInputData(node, clone);\n }\n transferData('canvas', node, clone, transferCanvasData);\n transferData('input, textarea, select', node, clone, transferInputData);\n return clone;\n}\n/** Matches elements between an element and its clone and allows for their data to be cloned. */\nfunction transferData(selector, node, clone, callback) {\n const descendantElements = node.querySelectorAll(selector);\n if (descendantElements.length) {\n const cloneElements = clone.querySelectorAll(selector);\n for (let i = 0; i < descendantElements.length; i++) {\n callback(descendantElements[i], cloneElements[i]);\n }\n }\n}\n// Counter for unique cloned radio button names.\nlet cloneUniqueId = 0;\n/** Transfers the data of one input element to another. */\nfunction transferInputData(source, clone) {\n // Browsers throw an error when assigning the value of a file input programmatically.\n if (clone.type !== 'file') {\n clone.value = source.value;\n }\n // Radio button `name` attributes must be unique for radio button groups\n // otherwise original radio buttons can lose their checked state\n // once the clone is inserted in the DOM.\n if (clone.type === 'radio' && clone.name) {\n clone.name = `mat-clone-${clone.name}-${cloneUniqueId++}`;\n }\n}\n/** Transfers the data of one canvas element to another. */\nfunction transferCanvasData(source, clone) {\n const context = clone.getContext('2d');\n if (context) {\n // In some cases `drawImage` can throw (e.g. if the canvas size is 0x0).\n // We can't do much about it so just ignore the error.\n try {\n context.drawImage(source, 0, 0);\n } catch {}\n }\n}\n\n/** Gets a mutable version of an element's bounding `DOMRect`. */\nfunction getMutableClientRect(element) {\n const rect = element.getBoundingClientRect();\n // We need to clone the `clientRect` here, because all the values on it are readonly\n // and we need to be able to update them. Also we can't use a spread here, because\n // the values on a `DOMRect` aren't own properties. See:\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect#Notes\n return {\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n width: rect.width,\n height: rect.height,\n x: rect.x,\n y: rect.y\n };\n}\n/**\n * Checks whether some coordinates are within a `DOMRect`.\n * @param clientRect DOMRect that is being checked.\n * @param x Coordinates along the X axis.\n * @param y Coordinates along the Y axis.\n */\nfunction isInsideClientRect(clientRect, x, y) {\n const {\n top,\n bottom,\n left,\n right\n } = clientRect;\n return y >= top && y <= bottom && x >= left && x <= right;\n}\n/**\n * Checks if the child element is overflowing from its parent.\n * @param parentRect - The bounding rect of the parent element.\n * @param childRect - The bounding rect of the child element.\n */\nfunction isOverflowingParent(parentRect, childRect) {\n // check for horizontal overflow (left and right)\n const isLeftOverflowing = childRect.left < parentRect.left;\n const isRightOverflowing = childRect.left + childRect.width > parentRect.right;\n // check for vertical overflow (top and bottom)\n const isTopOverflowing = childRect.top < parentRect.top;\n const isBottomOverflowing = childRect.top + childRect.height > parentRect.bottom;\n return isLeftOverflowing || isRightOverflowing || isTopOverflowing || isBottomOverflowing;\n}\n/**\n * Updates the top/left positions of a `DOMRect`, as well as their bottom/right counterparts.\n * @param domRect `DOMRect` that should be updated.\n * @param top Amount to add to the `top` position.\n * @param left Amount to add to the `left` position.\n */\nfunction adjustDomRect(domRect, top, left) {\n domRect.top += top;\n domRect.bottom = domRect.top + domRect.height;\n domRect.left += left;\n domRect.right = domRect.left + domRect.width;\n}\n/**\n * Checks whether the pointer coordinates are close to a DOMRect.\n * @param rect DOMRect to check against.\n * @param threshold Threshold around the DOMRect.\n * @param pointerX Coordinates along the X axis.\n * @param pointerY Coordinates along the Y axis.\n */\nfunction isPointerNearDomRect(rect, threshold, pointerX, pointerY) {\n const {\n top,\n right,\n bottom,\n left,\n width,\n height\n } = rect;\n const xThreshold = width * threshold;\n const yThreshold = height * threshold;\n return pointerY > top - yThreshold && pointerY < bottom + yThreshold && pointerX > left - xThreshold && pointerX < right + xThreshold;\n}\n\n/** Keeps track of the scroll position and dimensions of the parents of an element. */\nclass ParentPositionTracker {\n _document;\n /** Cached positions of the scrollable parent elements. */\n positions = new Map();\n constructor(_document) {\n this._document = _document;\n }\n /** Clears the cached positions. */\n clear() {\n this.positions.clear();\n }\n /** Caches the positions. Should be called at the beginning of a drag sequence. */\n cache(elements) {\n this.clear();\n this.positions.set(this._document, {\n scrollPosition: this.getViewportScrollPosition()\n });\n elements.forEach(element => {\n this.positions.set(element, {\n scrollPosition: {\n top: element.scrollTop,\n left: element.scrollLeft\n },\n clientRect: getMutableClientRect(element)\n });\n });\n }\n /** Handles scrolling while a drag is taking place. */\n handleScroll(event) {\n const target = _getEventTarget(event);\n const cachedPosition = this.positions.get(target);\n if (!cachedPosition) {\n return null;\n }\n const scrollPosition = cachedPosition.scrollPosition;\n let newTop;\n let newLeft;\n if (target === this._document) {\n const viewportScrollPosition = this.getViewportScrollPosition();\n newTop = viewportScrollPosition.top;\n newLeft = viewportScrollPosition.left;\n } else {\n newTop = target.scrollTop;\n newLeft = target.scrollLeft;\n }\n const topDifference = scrollPosition.top - newTop;\n const leftDifference = scrollPosition.left - newLeft;\n // Go through and update the cached positions of the scroll\n // parents that are inside the element that was scrolled.\n this.positions.forEach((position, node) => {\n if (position.clientRect && target !== node && target.contains(node)) {\n adjustDomRect(position.clientRect, topDifference, leftDifference);\n }\n });\n scrollPosition.top = newTop;\n scrollPosition.left = newLeft;\n return {\n top: topDifference,\n left: leftDifference\n };\n }\n /**\n * Gets the scroll position of the viewport. Note that we use the scrollX and scrollY directly,\n * instead of going through the `ViewportRuler`, because the first value the ruler looks at is\n * the top/left offset of the `document.documentElement` which works for most cases, but breaks\n * if the element is offset by something like the `BlockScrollStrategy`.\n */\n getViewportScrollPosition() {\n return {\n top: window.scrollY,\n left: window.scrollX\n };\n }\n}\n\n/**\n * Gets the root HTML element of an embedded view.\n * If the root is not an HTML element it gets wrapped in one.\n */\nfunction getRootNode(viewRef, _document) {\n const rootNodes = viewRef.rootNodes;\n if (rootNodes.length === 1 && rootNodes[0].nodeType === _document.ELEMENT_NODE) {\n return rootNodes[0];\n }\n const wrapper = _document.createElement('div');\n rootNodes.forEach(node => wrapper.appendChild(node));\n return wrapper;\n}\n\n/**\n * Shallow-extends a stylesheet object with another stylesheet-like object.\n * Note that the keys in `source` have to be dash-cased.\n * @docs-private\n */\nfunction extendStyles(dest, source, importantProperties) {\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n const value = source[key];\n if (value) {\n dest.setProperty(key, value, importantProperties?.has(key) ? 'important' : '');\n } else {\n dest.removeProperty(key);\n }\n }\n }\n return dest;\n}\n/**\n * Toggles whether the native drag interactions should be enabled for an element.\n * @param element Element on which to toggle the drag interactions.\n * @param enable Whether the drag interactions should be enabled.\n * @docs-private\n */\nfunction toggleNativeDragInteractions(element, enable) {\n const userSelect = enable ? '' : 'none';\n extendStyles(element.style, {\n 'touch-action': enable ? '' : 'none',\n '-webkit-user-drag': enable ? '' : 'none',\n '-webkit-tap-highlight-color': enable ? '' : 'transparent',\n 'user-select': userSelect,\n '-ms-user-select': userSelect,\n '-webkit-user-select': userSelect,\n '-moz-user-select': userSelect\n });\n}\n/**\n * Toggles whether an element is visible while preserving its dimensions.\n * @param element Element whose visibility to toggle\n * @param enable Whether the element should be visible.\n * @param importantProperties Properties to be set as `!important`.\n * @docs-private\n */\nfunction toggleVisibility(element, enable, importantProperties) {\n extendStyles(element.style, {\n position: enable ? '' : 'fixed',\n top: enable ? '' : '0',\n opacity: enable ? '' : '0',\n left: enable ? '' : '-999em'\n }, importantProperties);\n}\n/**\n * Combines a transform string with an optional other transform\n * that exited before the base transform was applied.\n */\nfunction combineTransforms(transform, initialTransform) {\n return initialTransform && initialTransform != 'none' ? transform + ' ' + initialTransform : transform;\n}\n/**\n * Matches the target element's size to the source's size.\n * @param target Element that needs to be resized.\n * @param sourceRect Dimensions of the source element.\n */\nfunction matchElementSize(target, sourceRect) {\n target.style.width = `${sourceRect.width}px`;\n target.style.height = `${sourceRect.height}px`;\n target.style.transform = getTransform(sourceRect.left, sourceRect.top);\n}\n/**\n * Gets a 3d `transform` that can be applied to an element.\n * @param x Desired position of the element along the X axis.\n * @param y Desired position of the element along the Y axis.\n */\nfunction getTransform(x, y) {\n // Round the transforms since some browsers will\n // blur the elements for sub-pixel transforms.\n return `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)`;\n}\n\n/** Parses a CSS time value to milliseconds. */\nfunction parseCssTimeUnitsToMs(value) {\n // Some browsers will return it in seconds, whereas others will return milliseconds.\n const multiplier = value.toLowerCase().indexOf('ms') > -1 ? 1 : 1000;\n return parseFloat(value) * multiplier;\n}\n/** Gets the transform transition duration, including the delay, of an element in milliseconds. */\nfunction getTransformTransitionDurationInMs(element) {\n const computedStyle = getComputedStyle(element);\n const transitionedProperties = parseCssPropertyValue(computedStyle, 'transition-property');\n const property = transitionedProperties.find(prop => prop === 'transform' || prop === 'all');\n // If there's no transition for `all` or `transform`, we shouldn't do anything.\n if (!property) {\n return 0;\n }\n // Get the index of the property that we're interested in and match\n // it up to the same index in `transition-delay` and `transition-duration`.\n const propertyIndex = transitionedProperties.indexOf(property);\n const rawDurations = parseCssPropertyValue(computedStyle, 'transition-duration');\n const rawDelays = parseCssPropertyValue(computedStyle, 'transition-delay');\n return parseCssTimeUnitsToMs(rawDurations[propertyIndex]) + parseCssTimeUnitsToMs(rawDelays[propertyIndex]);\n}\n/** Parses out multiple values from a computed style into an array. */\nfunction parseCssPropertyValue(computedStyle, name) {\n const value = computedStyle.getPropertyValue(name);\n return value.split(',').map(part => part.trim());\n}\n\n/** Inline styles to be set as `!important` while dragging. */\nconst importantProperties = new Set([\n// Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.\n'position']);\nclass PreviewRef {\n _document;\n _rootElement;\n _direction;\n _initialDomRect;\n _previewTemplate;\n _previewClass;\n _pickupPositionOnPage;\n _initialTransform;\n _zIndex;\n _renderer;\n /** Reference to the view of the preview element. */\n _previewEmbeddedView;\n /** Reference to the preview element. */\n _preview;\n get element() {\n return this._preview;\n }\n constructor(_document, _rootElement, _direction, _initialDomRect, _previewTemplate, _previewClass, _pickupPositionOnPage, _initialTransform, _zIndex, _renderer) {\n this._document = _document;\n this._rootElement = _rootElement;\n this._direction = _direction;\n this._initialDomRect = _initialDomRect;\n this._previewTemplate = _previewTemplate;\n this._previewClass = _previewClass;\n this._pickupPositionOnPage = _pickupPositionOnPage;\n this._initialTransform = _initialTransform;\n this._zIndex = _zIndex;\n this._renderer = _renderer;\n }\n attach(parent) {\n this._preview = this._createPreview();\n parent.appendChild(this._preview);\n // The null check is necessary for browsers that don't support the popover API.\n // Note that we use a string access for compatibility with Closure.\n if (supportsPopover(this._preview)) {\n this._preview['showPopover']();\n }\n }\n destroy() {\n this._preview.remove();\n this._previewEmbeddedView?.destroy();\n this._preview = this._previewEmbeddedView = null;\n }\n setTransform(value) {\n this._preview.style.transform = value;\n }\n getBoundingClientRect() {\n return this._preview.getBoundingClientRect();\n }\n addClass(className) {\n this._preview.classList.add(className);\n }\n getTransitionDuration() {\n return getTransformTransitionDurationInMs(this._preview);\n }\n addEventListener(name, handler) {\n return this._renderer.listen(this._preview, name, handler);\n }\n _createPreview() {\n const previewConfig = this._previewTemplate;\n const previewClass = this._previewClass;\n const previewTemplate = previewConfig ? previewConfig.template : null;\n let preview;\n if (previewTemplate && previewConfig) {\n // Measure the element before we've inserted the preview\n // since the insertion could throw off the measurement.\n const rootRect = previewConfig.matchSize ? this._initialDomRect : null;\n const viewRef = previewConfig.viewContainer.createEmbeddedView(previewTemplate, previewConfig.context);\n viewRef.detectChanges();\n preview = getRootNode(viewRef, this._document);\n this._previewEmbeddedView = viewRef;\n if (previewConfig.matchSize) {\n matchElementSize(preview, rootRect);\n } else {\n preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);\n }\n } else {\n preview = deepCloneNode(this._rootElement);\n matchElementSize(preview, this._initialDomRect);\n if (this._initialTransform) {\n preview.style.transform = this._initialTransform;\n }\n }\n extendStyles(preview.style, {\n // It's important that we disable the pointer events on the preview, because\n // it can throw off the `document.elementFromPoint` calls in the `CdkDropList`.\n 'pointer-events': 'none',\n // If the preview has a margin, it can throw off our positioning so we reset it. The reset\n // value for `margin-right` needs to be `auto` when opened as a popover, because our\n // positioning is always top/left based, but native popover seems to position itself\n // to the top/right if `` or `` have `dir=\"rtl\"` (see #29604). Setting it\n // to `auto` pushed it to the top/left corner in RTL and is a noop in LTR.\n 'margin': supportsPopover(preview) ? '0 auto 0 0' : '0',\n 'position': 'fixed',\n 'top': '0',\n 'left': '0',\n 'z-index': this._zIndex + ''\n }, importantProperties);\n toggleNativeDragInteractions(preview, false);\n preview.classList.add('cdk-drag-preview');\n preview.setAttribute('popover', 'manual');\n preview.setAttribute('dir', this._direction);\n if (previewClass) {\n if (Array.isArray(previewClass)) {\n previewClass.forEach(className => preview.classList.add(className));\n } else {\n preview.classList.add(previewClass);\n }\n }\n return preview;\n }\n}\n/** Checks whether a specific element supports the popover API. */\nfunction supportsPopover(element) {\n return 'showPopover' in element;\n}\n\n/** Options that can be used to bind a passive event listener. */\nconst passiveEventListenerOptions = {\n passive: true\n};\n/** Options that can be used to bind an active event listener. */\nconst activeEventListenerOptions = {\n passive: false\n};\n/** Event options that can be used to bind an active, capturing event. */\nconst activeCapturingEventOptions$1 = {\n passive: false,\n capture: true\n};\n/**\n * Time in milliseconds for which to ignore mouse events, after\n * receiving a touch event. Used to avoid doing double work for\n * touch devices where the browser fires fake mouse events, in\n * addition to touch events.\n */\nconst MOUSE_EVENT_IGNORE_TIME = 800;\n/** Class applied to the drag placeholder. */\nconst PLACEHOLDER_CLASS = 'cdk-drag-placeholder';\n/** Inline styles to be set as `!important` while dragging. */\nconst dragImportantProperties = new Set([\n// Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.\n'position']);\n/**\n * Reference to a draggable item. Used to manipulate or dispose of the item.\n */\nclass DragRef {\n _config;\n _document;\n _ngZone;\n _viewportRuler;\n _dragDropRegistry;\n _renderer;\n _rootElementCleanups;\n _cleanupShadowRootSelectStart;\n /** Element displayed next to the user's pointer while the element is dragged. */\n _preview;\n /** Container into which to insert the preview. */\n _previewContainer;\n /** Reference to the view of the placeholder element. */\n _placeholderRef;\n /** Element that is rendered instead of the draggable item while it is being sorted. */\n _placeholder;\n /** Coordinates within the element at which the user picked up the element. */\n _pickupPositionInElement;\n /** Coordinates on the page at which the user picked up the element. */\n _pickupPositionOnPage;\n /**\n * Marker node used to save the place in the DOM where the element was\n * picked up so that it can be restored at the end of the drag sequence.\n */\n _marker;\n /**\n * Element indicating the position from which the item was picked up initially.\n */\n _anchor = null;\n /**\n * CSS `transform` applied to the element when it isn't being dragged. We need a\n * passive transform in order for the dragged element to retain its new position\n * after the user has stopped dragging and because we need to know the relative\n * position in case they start dragging again. This corresponds to `element.style.transform`.\n */\n _passiveTransform = {\n x: 0,\n y: 0\n };\n /** CSS `transform` that is applied to the element while it's being dragged. */\n _activeTransform = {\n x: 0,\n y: 0\n };\n /** Inline `transform` value that the element had before the first dragging sequence. */\n _initialTransform;\n /**\n * Whether the dragging sequence has been started. Doesn't\n * necessarily mean that the element has been moved.\n */\n _hasStartedDragging = signal(false, ...(ngDevMode ? [{\n debugName: \"_hasStartedDragging\"\n }] : []));\n /** Whether the element has moved since the user started dragging it. */\n _hasMoved;\n /** Drop container in which the DragRef resided when dragging began. */\n _initialContainer;\n /** Index at which the item started in its initial container. */\n _initialIndex;\n /** Cached positions of scrollable parent elements. */\n _parentPositions;\n /** Emits when the item is being moved. */\n _moveEvents = new Subject();\n /** Keeps track of the direction in which the user is dragging along each axis. */\n _pointerDirectionDelta;\n /** Pointer position at which the last change in the delta occurred. */\n _pointerPositionAtLastDirectionChange;\n /** Position of the pointer at the last pointer event. */\n _lastKnownPointerPosition;\n /**\n * Root DOM node of the drag instance. This is the element that will\n * be moved around as the user is dragging.\n */\n _rootElement;\n /**\n * Nearest ancestor SVG, relative to which coordinates are calculated if dragging SVGElement\n */\n _ownerSVGElement;\n /**\n * Inline style value of `-webkit-tap-highlight-color` at the time the\n * dragging was started. Used to restore the value once we're done dragging.\n */\n _rootElementTapHighlight;\n /** Subscription to pointer movement events. */\n _pointerMoveSubscription = Subscription.EMPTY;\n /** Subscription to the event that is dispatched when the user lifts their pointer. */\n _pointerUpSubscription = Subscription.EMPTY;\n /** Subscription to the viewport being scrolled. */\n _scrollSubscription = Subscription.EMPTY;\n /** Subscription to the viewport being resized. */\n _resizeSubscription = Subscription.EMPTY;\n /**\n * Time at which the last touch event occurred. Used to avoid firing the same\n * events multiple times on touch devices where the browser will fire a fake\n * mouse event for each touch event, after a certain time.\n */\n _lastTouchEventTime;\n /** Time at which the last dragging sequence was started. */\n _dragStartTime;\n /** Cached reference to the boundary element. */\n _boundaryElement = null;\n /** Whether the native dragging interactions have been enabled on the root element. */\n _nativeInteractionsEnabled = true;\n /** Client rect of the root element when the dragging sequence has started. */\n _initialDomRect;\n /** Cached dimensions of the preview element. Should be read via `_getPreviewRect`. */\n _previewRect;\n /** Cached dimensions of the boundary element. */\n _boundaryRect;\n /** Element that will be used as a template to create the draggable item's preview. */\n _previewTemplate;\n /** Template for placeholder element rendered to show where a draggable would be dropped. */\n _placeholderTemplate;\n /** Elements that can be used to drag the draggable item. */\n _handles = [];\n /** Registered handles that are currently disabled. */\n _disabledHandles = new Set();\n /** Droppable container that the draggable is a part of. */\n _dropContainer;\n /** Layout direction of the item. */\n _direction = 'ltr';\n /** Ref that the current drag item is nested in. */\n _parentDragRef;\n /**\n * Cached shadow root that the element is placed in. `null` means that the element isn't in\n * the shadow DOM and `undefined` means that it hasn't been resolved yet. Should be read via\n * `_getShadowRoot`, not directly.\n */\n _cachedShadowRoot;\n /** Axis along which dragging is locked. */\n lockAxis = null;\n /**\n * Amount of milliseconds to wait after the user has put their\n * pointer down before starting to drag the element.\n */\n dragStartDelay = 0;\n /** Class to be added to the preview element. */\n previewClass;\n /**\n * If the parent of the dragged element has a `scale` transform, it can throw off the\n * positioning when the user starts dragging. Use this input to notify the CDK of the scale.\n */\n scale = 1;\n /** Whether starting to drag this element is disabled. */\n get disabled() {\n return this._disabled || !!(this._dropContainer && this._dropContainer.disabled);\n }\n set disabled(value) {\n if (value !== this._disabled) {\n this._disabled = value;\n this._toggleNativeDragInteractions();\n this._handles.forEach(handle => toggleNativeDragInteractions(handle, value));\n }\n }\n _disabled = false;\n /** Emits as the drag sequence is being prepared. */\n beforeStarted = new Subject();\n /** Emits when the user starts dragging the item. */\n started = new Subject();\n /** Emits when the user has released a drag item, before any animations have started. */\n released = new Subject();\n /** Emits when the user stops dragging an item in the container. */\n ended = new Subject();\n /** Emits when the user has moved the item into a new container. */\n entered = new Subject();\n /** Emits when the user removes the item its container by dragging it into another container. */\n exited = new Subject();\n /** Emits when the user drops the item inside a container. */\n dropped = new Subject();\n /**\n * Emits as the user is dragging the item. Use with caution,\n * because this event will fire for every pixel that the user has dragged.\n */\n moved = this._moveEvents;\n /** Arbitrary data that can be attached to the drag item. */\n data;\n /**\n * Function that can be used to customize the logic of how the position of the drag item\n * is limited while it's being dragged. Gets called with a point containing the current position\n * of the user's pointer on the page, a reference to the item being dragged and its dimensions.\n * Should return a point describing where the item should be rendered.\n */\n constrainPosition;\n constructor(element, _config, _document, _ngZone, _viewportRuler, _dragDropRegistry, _renderer) {\n this._config = _config;\n this._document = _document;\n this._ngZone = _ngZone;\n this._viewportRuler = _viewportRuler;\n this._dragDropRegistry = _dragDropRegistry;\n this._renderer = _renderer;\n this.withRootElement(element).withParent(_config.parentDragRef || null);\n this._parentPositions = new ParentPositionTracker(_document);\n _dragDropRegistry.registerDragItem(this);\n }\n /**\n * Returns the element that is being used as a placeholder\n * while the current element is being dragged.\n */\n getPlaceholderElement() {\n return this._placeholder;\n }\n /** Returns the root draggable element. */\n getRootElement() {\n return this._rootElement;\n }\n /**\n * Gets the currently-visible element that represents the drag item.\n * While dragging this is the placeholder, otherwise it's the root element.\n */\n getVisibleElement() {\n return this.isDragging() ? this.getPlaceholderElement() : this.getRootElement();\n }\n /** Registers the handles that can be used to drag the element. */\n withHandles(handles) {\n this._handles = handles.map(handle => coerceElement(handle));\n this._handles.forEach(handle => toggleNativeDragInteractions(handle, this.disabled));\n this._toggleNativeDragInteractions();\n // Delete any lingering disabled handles that may have been destroyed. Note that we re-create\n // the set, rather than iterate over it and filter out the destroyed handles, because while\n // the ES spec allows for sets to be modified while they're being iterated over, some polyfills\n // use an array internally which may throw an error.\n const disabledHandles = new Set();\n this._disabledHandles.forEach(handle => {\n if (this._handles.indexOf(handle) > -1) {\n disabledHandles.add(handle);\n }\n });\n this._disabledHandles = disabledHandles;\n return this;\n }\n /**\n * Registers the template that should be used for the drag preview.\n * @param template Template that from which to stamp out the preview.\n */\n withPreviewTemplate(template) {\n this._previewTemplate = template;\n return this;\n }\n /**\n * Registers the template that should be used for the drag placeholder.\n * @param template Template that from which to stamp out the placeholder.\n */\n withPlaceholderTemplate(template) {\n this._placeholderTemplate = template;\n return this;\n }\n /**\n * Sets an alternate drag root element. The root element is the element that will be moved as\n * the user is dragging. Passing an alternate root element is useful when trying to enable\n * dragging on an element that you might not have access to.\n */\n withRootElement(rootElement) {\n const element = coerceElement(rootElement);\n if (element !== this._rootElement) {\n this._removeRootElementListeners();\n const renderer = this._renderer;\n this._rootElementCleanups = this._ngZone.runOutsideAngular(() => [renderer.listen(element, 'mousedown', this._pointerDown, activeEventListenerOptions), renderer.listen(element, 'touchstart', this._pointerDown, passiveEventListenerOptions), renderer.listen(element, 'dragstart', this._nativeDragStart, activeEventListenerOptions)]);\n this._initialTransform = undefined;\n this._rootElement = element;\n }\n if (typeof SVGElement !== 'undefined' && this._rootElement instanceof SVGElement) {\n this._ownerSVGElement = this._rootElement.ownerSVGElement;\n }\n return this;\n }\n /**\n * Element to which the draggable's position will be constrained.\n */\n withBoundaryElement(boundaryElement) {\n this._boundaryElement = boundaryElement ? coerceElement(boundaryElement) : null;\n this._resizeSubscription.unsubscribe();\n if (boundaryElement) {\n this._resizeSubscription = this._viewportRuler.change(10).subscribe(() => this._containInsideBoundaryOnResize());\n }\n return this;\n }\n /** Sets the parent ref that the ref is nested in. */\n withParent(parent) {\n this._parentDragRef = parent;\n return this;\n }\n /** Removes the dragging functionality from the DOM element. */\n dispose() {\n this._removeRootElementListeners();\n // Do this check before removing from the registry since it'll\n // stop being considered as dragged once it is removed.\n if (this.isDragging()) {\n // Since we move out the element to the end of the body while it's being\n // dragged, we have to make sure that it's removed if it gets destroyed.\n this._rootElement?.remove();\n }\n this._marker?.remove();\n this._destroyPreview();\n this._destroyPlaceholder();\n this._dragDropRegistry.removeDragItem(this);\n this._removeListeners();\n this.beforeStarted.complete();\n this.started.complete();\n this.released.complete();\n this.ended.complete();\n this.entered.complete();\n this.exited.complete();\n this.dropped.complete();\n this._moveEvents.complete();\n this._handles = [];\n this._disabledHandles.clear();\n this._dropContainer = undefined;\n this._resizeSubscription.unsubscribe();\n this._parentPositions.clear();\n this._boundaryElement = this._rootElement = this._ownerSVGElement = this._placeholderTemplate = this._previewTemplate = this._marker = this._parentDragRef = null;\n }\n /** Checks whether the element is currently being dragged. */\n isDragging() {\n return this._hasStartedDragging() && this._dragDropRegistry.isDragging(this);\n }\n /** Resets a standalone drag item to its initial position. */\n reset() {\n this._rootElement.style.transform = this._initialTransform || '';\n this._activeTransform = {\n x: 0,\n y: 0\n };\n this._passiveTransform = {\n x: 0,\n y: 0\n };\n }\n /** Resets drag item to end of boundary element. */\n resetToBoundary() {\n if (\n // can be null if the drag item was never dragged.\n this._boundaryElement && this._rootElement &&\n // check if we are overflowing off our boundary element\n isOverflowingParent(this._boundaryElement.getBoundingClientRect(), this._rootElement.getBoundingClientRect())) {\n const parentRect = this._boundaryElement.getBoundingClientRect();\n const childRect = this._rootElement.getBoundingClientRect();\n let offsetX = 0;\n let offsetY = 0;\n // check if we are overflowing from left or right\n if (childRect.left < parentRect.left) {\n offsetX = parentRect.left - childRect.left;\n } else if (childRect.right > parentRect.right) {\n offsetX = parentRect.right - childRect.right;\n }\n // check if we are overflowing from top or bottom\n if (childRect.top < parentRect.top) {\n offsetY = parentRect.top - childRect.top;\n } else if (childRect.bottom > parentRect.bottom) {\n offsetY = parentRect.bottom - childRect.bottom;\n }\n const currentLeft = this._activeTransform.x;\n const currentTop = this._activeTransform.y;\n let x = currentLeft + offsetX,\n y = currentTop + offsetY;\n this._rootElement.style.transform = getTransform(x, y);\n this._activeTransform = {\n x,\n y\n };\n this._passiveTransform = {\n x,\n y\n };\n }\n }\n /**\n * Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.\n * @param handle Handle element that should be disabled.\n */\n disableHandle(handle) {\n if (!this._disabledHandles.has(handle) && this._handles.indexOf(handle) > -1) {\n this._disabledHandles.add(handle);\n toggleNativeDragInteractions(handle, true);\n }\n }\n /**\n * Enables a handle, if it has been disabled.\n * @param handle Handle element to be enabled.\n */\n enableHandle(handle) {\n if (this._disabledHandles.has(handle)) {\n this._disabledHandles.delete(handle);\n toggleNativeDragInteractions(handle, this.disabled);\n }\n }\n /** Sets the layout direction of the draggable item. */\n withDirection(direction) {\n this._direction = direction;\n return this;\n }\n /** Sets the container that the item is part of. */\n _withDropContainer(container) {\n this._dropContainer = container;\n }\n /**\n * Gets the current position in pixels the draggable outside of a drop container.\n */\n getFreeDragPosition() {\n const position = this.isDragging() ? this._activeTransform : this._passiveTransform;\n return {\n x: position.x,\n y: position.y\n };\n }\n /**\n * Sets the current position in pixels the draggable outside of a drop container.\n * @param value New position to be set.\n */\n setFreeDragPosition(value) {\n this._activeTransform = {\n x: 0,\n y: 0\n };\n this._passiveTransform.x = value.x;\n this._passiveTransform.y = value.y;\n if (!this._dropContainer) {\n this._applyRootElementTransform(value.x, value.y);\n }\n return this;\n }\n /**\n * Sets the container into which to insert the preview element.\n * @param value Container into which to insert the preview.\n */\n withPreviewContainer(value) {\n this._previewContainer = value;\n return this;\n }\n /** Updates the item's sort order based on the last-known pointer position. */\n _sortFromLastPointerPosition() {\n const position = this._lastKnownPointerPosition;\n if (position && this._dropContainer) {\n this._updateActiveDropContainer(this._getConstrainedPointerPosition(position), position);\n }\n }\n /** Unsubscribes from the global subscriptions. */\n _removeListeners() {\n this._pointerMoveSubscription.unsubscribe();\n this._pointerUpSubscription.unsubscribe();\n this._scrollSubscription.unsubscribe();\n this._cleanupShadowRootSelectStart?.();\n this._cleanupShadowRootSelectStart = undefined;\n }\n /** Destroys the preview element and its ViewRef. */\n _destroyPreview() {\n this._preview?.destroy();\n this._preview = null;\n }\n /** Destroys the placeholder element and its ViewRef. */\n _destroyPlaceholder() {\n this._anchor?.remove();\n this._placeholder?.remove();\n this._placeholderRef?.destroy();\n this._placeholder = this._anchor = this._placeholderRef = null;\n }\n /** Handler for the `mousedown`/`touchstart` events. */\n _pointerDown = event => {\n this.beforeStarted.next();\n // Delegate the event based on whether it started from a handle or the element itself.\n if (this._handles.length) {\n const targetHandle = this._getTargetHandle(event);\n if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {\n this._initializeDragSequence(targetHandle, event);\n }\n } else if (!this.disabled) {\n this._initializeDragSequence(this._rootElement, event);\n }\n };\n /** Handler that is invoked when the user moves their pointer after they've initiated a drag. */\n _pointerMove = event => {\n const pointerPosition = this._getPointerPositionOnPage(event);\n if (!this._hasStartedDragging()) {\n const distanceX = Math.abs(pointerPosition.x - this._pickupPositionOnPage.x);\n const distanceY = Math.abs(pointerPosition.y - this._pickupPositionOnPage.y);\n const isOverThreshold = distanceX + distanceY >= this._config.dragStartThreshold;\n // Only start dragging after the user has moved more than the minimum distance in either\n // direction. Note that this is preferable over doing something like `skip(minimumDistance)`\n // in the `pointerMove` subscription, because we're not guaranteed to have one move event\n // per pixel of movement (e.g. if the user moves their pointer quickly).\n if (isOverThreshold) {\n const isDelayElapsed = Date.now() >= this._dragStartTime + this._getDragStartDelay(event);\n const container = this._dropContainer;\n if (!isDelayElapsed) {\n this._endDragSequence(event);\n return;\n }\n // Prevent other drag sequences from starting while something in the container is still\n // being dragged. This can happen while we're waiting for the drop animation to finish\n // and can cause errors, because some elements might still be moving around.\n if (!container || !container.isDragging() && !container.isReceiving()) {\n // Prevent the default action as soon as the dragging sequence is considered as\n // \"started\" since waiting for the next event can allow the device to begin scrolling.\n if (event.cancelable) {\n event.preventDefault();\n }\n this._hasStartedDragging.set(true);\n this._ngZone.run(() => this._startDragSequence(event));\n }\n }\n return;\n }\n // We prevent the default action down here so that we know that dragging has started. This is\n // important for touch devices where doing this too early can unnecessarily block scrolling,\n // if there's a dragging delay.\n if (event.cancelable) {\n event.preventDefault();\n }\n const constrainedPointerPosition = this._getConstrainedPointerPosition(pointerPosition);\n this._hasMoved = true;\n this._lastKnownPointerPosition = pointerPosition;\n this._updatePointerDirectionDelta(constrainedPointerPosition);\n if (this._dropContainer) {\n this._updateActiveDropContainer(constrainedPointerPosition, pointerPosition);\n } else {\n // If there's a position constraint function, we want the element's top/left to be at the\n // specific position on the page. Use the initial position as a reference if that's the case.\n const offset = this.constrainPosition ? this._initialDomRect : this._pickupPositionOnPage;\n const activeTransform = this._activeTransform;\n activeTransform.x = constrainedPointerPosition.x - offset.x + this._passiveTransform.x;\n activeTransform.y = constrainedPointerPosition.y - offset.y + this._passiveTransform.y;\n this._applyRootElementTransform(activeTransform.x, activeTransform.y);\n }\n // Since this event gets fired for every pixel while dragging, we only\n // want to fire it if the consumer opted into it. Also we have to\n // re-enter the zone because we run all of the events on the outside.\n if (this._moveEvents.observers.length) {\n this._ngZone.run(() => {\n this._moveEvents.next({\n source: this,\n pointerPosition: constrainedPointerPosition,\n event,\n distance: this._getDragDistance(constrainedPointerPosition),\n delta: this._pointerDirectionDelta\n });\n });\n }\n };\n /** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */\n _pointerUp = event => {\n this._endDragSequence(event);\n };\n /**\n * Clears subscriptions and stops the dragging sequence.\n * @param event Browser event object that ended the sequence.\n */\n _endDragSequence(event) {\n // Note that here we use `isDragging` from the service, rather than from `this`.\n // The difference is that the one from the service reflects whether a dragging sequence\n // has been initiated, whereas the one on `this` includes whether the user has passed\n // the minimum dragging threshold.\n if (!this._dragDropRegistry.isDragging(this)) {\n return;\n }\n this._removeListeners();\n this._dragDropRegistry.stopDragging(this);\n this._toggleNativeDragInteractions();\n if (this._handles) {\n this._rootElement.style.webkitTapHighlightColor = this._rootElementTapHighlight;\n }\n if (!this._hasStartedDragging()) {\n return;\n }\n this.released.next({\n source: this,\n event\n });\n if (this._dropContainer) {\n // Stop scrolling immediately, instead of waiting for the animation to finish.\n this._dropContainer._stopScrolling();\n this._animatePreviewToPlaceholder().then(() => {\n this._cleanupDragArtifacts(event);\n this._cleanupCachedDimensions();\n this._dragDropRegistry.stopDragging(this);\n });\n } else {\n // Convert the active transform into a passive one. This means that next time\n // the user starts dragging the item, its position will be calculated relatively\n // to the new passive transform.\n this._passiveTransform.x = this._activeTransform.x;\n const pointerPosition = this._getPointerPositionOnPage(event);\n this._passiveTransform.y = this._activeTransform.y;\n this._ngZone.run(() => {\n this.ended.next({\n source: this,\n distance: this._getDragDistance(pointerPosition),\n dropPoint: pointerPosition,\n event\n });\n });\n this._cleanupCachedDimensions();\n this._dragDropRegistry.stopDragging(this);\n }\n }\n /** Starts the dragging sequence. */\n _startDragSequence(event) {\n if (isTouchEvent(event)) {\n this._lastTouchEventTime = Date.now();\n }\n this._toggleNativeDragInteractions();\n // Needs to happen before the root element is moved.\n const shadowRoot = this._getShadowRoot();\n const dropContainer = this._dropContainer;\n if (shadowRoot) {\n // In some browsers the global `selectstart` that we maintain in the `DragDropRegistry`\n // doesn't cross the shadow boundary so we have to prevent it at the shadow root (see #28792).\n this._ngZone.runOutsideAngular(() => {\n this._cleanupShadowRootSelectStart = this._renderer.listen(shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);\n });\n }\n if (dropContainer) {\n const element = this._rootElement;\n const parent = element.parentNode;\n const placeholder = this._placeholder = this._createPlaceholderElement();\n const marker = this._marker = this._marker || this._document.createComment(typeof ngDevMode === 'undefined' || ngDevMode ? 'cdk-drag-marker' : '');\n // Insert a marker node so that we can restore the element's position in the DOM.\n parent.insertBefore(marker, element);\n // There's no risk of transforms stacking when inside a drop container so\n // we can keep the initial transform up to date any time dragging starts.\n this._initialTransform = element.style.transform || '';\n // Create the preview after the initial transform has\n // been cached, because it can be affected by the transform.\n this._preview = new PreviewRef(this._document, this._rootElement, this._direction, this._initialDomRect, this._previewTemplate || null, this.previewClass || null, this._pickupPositionOnPage, this._initialTransform, this._config.zIndex || 1000, this._renderer);\n this._preview.attach(this._getPreviewInsertionPoint(parent, shadowRoot));\n // We move the element out at the end of the body and we make it hidden, because keeping it in\n // place will throw off the consumer's `:last-child` selectors. We can't remove the element\n // from the DOM completely, because iOS will stop firing all subsequent events in the chain.\n toggleVisibility(element, false, dragImportantProperties);\n this._document.body.appendChild(parent.replaceChild(placeholder, element));\n this.started.next({\n source: this,\n event\n }); // Emit before notifying the container.\n dropContainer.start();\n this._initialContainer = dropContainer;\n this._initialIndex = dropContainer.getItemIndex(this);\n } else {\n this.started.next({\n source: this,\n event\n });\n this._initialContainer = this._initialIndex = undefined;\n }\n // Important to run after we've called `start` on the parent container\n // so that it has had time to resolve its scrollable parents.\n this._parentPositions.cache(dropContainer ? dropContainer.getScrollableParents() : []);\n }\n /**\n * Sets up the different variables and subscriptions\n * that will be necessary for the dragging sequence.\n * @param referenceElement Element that started the drag sequence.\n * @param event Browser event object that started the sequence.\n */\n _initializeDragSequence(referenceElement, event) {\n // Stop propagation if the item is inside another\n // draggable so we don't start multiple drag sequences.\n if (this._parentDragRef) {\n event.stopPropagation();\n }\n const isDragging = this.isDragging();\n const isTouchSequence = isTouchEvent(event);\n const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;\n const rootElement = this._rootElement;\n const target = _getEventTarget(event);\n const isSyntheticEvent = !isTouchSequence && this._lastTouchEventTime && this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();\n const isFakeEvent = isTouchSequence ? isFakeTouchstartFromScreenReader(event) : isFakeMousedownFromScreenReader(event);\n // If the event started from an element with the native HTML drag&drop, it'll interfere\n // with our own dragging (e.g. `img` tags do it by default). Prevent the default action\n // to stop it from happening. Note that preventing on `dragstart` also seems to work, but\n // it's flaky and it fails if the user drags it away quickly. Also note that we only want\n // to do this for `mousedown` since doing the same for `touchstart` will stop any `click`\n // events from firing on touch devices.\n if (target && target.draggable && event.type === 'mousedown') {\n event.preventDefault();\n }\n // Abort if the user is already dragging or is using a mouse button other than the primary one.\n if (isDragging || isAuxiliaryMouseButton || isSyntheticEvent || isFakeEvent) {\n return;\n }\n // If we've got handles, we need to disable the tap highlight on the entire root element,\n // otherwise iOS will still add it, even though all the drag interactions on the handle\n // are disabled.\n if (this._handles.length) {\n const rootStyles = rootElement.style;\n this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || '';\n rootStyles.webkitTapHighlightColor = 'transparent';\n }\n this._hasMoved = false;\n this._hasStartedDragging.set(this._hasMoved);\n // Avoid multiple subscriptions and memory leaks when multi touch\n // (isDragging check above isn't enough because of possible temporal and/or dimensional delays)\n this._removeListeners();\n this._initialDomRect = this._rootElement.getBoundingClientRect();\n this._pointerMoveSubscription = this._dragDropRegistry.pointerMove.subscribe(this._pointerMove);\n this._pointerUpSubscription = this._dragDropRegistry.pointerUp.subscribe(this._pointerUp);\n this._scrollSubscription = this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(scrollEvent => this._updateOnScroll(scrollEvent));\n if (this._boundaryElement) {\n this._boundaryRect = getMutableClientRect(this._boundaryElement);\n }\n // If we have a custom preview we can't know ahead of time how large it'll be so we position\n // it next to the cursor. The exception is when the consumer has opted into making the preview\n // the same size as the root element, in which case we do know the size.\n const previewTemplate = this._previewTemplate;\n this._pickupPositionInElement = previewTemplate && previewTemplate.template && !previewTemplate.matchSize ? {\n x: 0,\n y: 0\n } : this._getPointerPositionInElement(this._initialDomRect, referenceElement, event);\n const pointerPosition = this._pickupPositionOnPage = this._lastKnownPointerPosition = this._getPointerPositionOnPage(event);\n this._pointerDirectionDelta = {\n x: 0,\n y: 0\n };\n this._pointerPositionAtLastDirectionChange = {\n x: pointerPosition.x,\n y: pointerPosition.y\n };\n this._dragStartTime = Date.now();\n this._dragDropRegistry.startDragging(this, event);\n }\n /** Cleans up the DOM artifacts that were added to facilitate the element being dragged. */\n _cleanupDragArtifacts(event) {\n // Restore the element's visibility and insert it at its old position in the DOM.\n // It's important that we maintain the position, because moving the element around in the DOM\n // can throw off `NgFor` which does smart diffing and re-creates elements only when necessary,\n // while moving the existing elements in all other cases.\n toggleVisibility(this._rootElement, true, dragImportantProperties);\n this._marker.parentNode.replaceChild(this._rootElement, this._marker);\n this._destroyPreview();\n this._destroyPlaceholder();\n this._initialDomRect = this._boundaryRect = this._previewRect = this._initialTransform = undefined;\n // Re-enter the NgZone since we bound `document` events on the outside.\n this._ngZone.run(() => {\n const container = this._dropContainer;\n const currentIndex = container.getItemIndex(this);\n const pointerPosition = this._getPointerPositionOnPage(event);\n const distance = this._getDragDistance(pointerPosition);\n const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);\n this.ended.next({\n source: this,\n distance,\n dropPoint: pointerPosition,\n event\n });\n this.dropped.next({\n item: this,\n currentIndex,\n previousIndex: this._initialIndex,\n container: container,\n previousContainer: this._initialContainer,\n isPointerOverContainer,\n distance,\n dropPoint: pointerPosition,\n event\n });\n container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition, event);\n this._dropContainer = this._initialContainer;\n });\n }\n /**\n * Updates the item's position in its drop container, or moves it\n * into a new one, depending on its current drag position.\n */\n _updateActiveDropContainer({\n x,\n y\n }, {\n x: rawX,\n y: rawY\n }) {\n // Drop container that draggable has been moved into.\n let newContainer = this._initialContainer._getSiblingContainerFromPosition(this, x, y);\n // If we couldn't find a new container to move the item into, and the item has left its\n // initial container, check whether the it's over the initial container. This handles the\n // case where two containers are connected one way and the user tries to undo dragging an\n // item into a new container.\n if (!newContainer && this._dropContainer !== this._initialContainer && this._initialContainer._isOverContainer(x, y)) {\n newContainer = this._initialContainer;\n }\n if (newContainer && newContainer !== this._dropContainer) {\n this._ngZone.run(() => {\n const exitIndex = this._dropContainer.getItemIndex(this);\n const nextItemElement = this._dropContainer.getItemAtIndex(exitIndex + 1)?.getVisibleElement() || null;\n // Notify the old container that the item has left.\n this.exited.next({\n item: this,\n container: this._dropContainer\n });\n this._dropContainer.exit(this);\n this._conditionallyInsertAnchor(newContainer, this._dropContainer, nextItemElement);\n // Notify the new container that the item has entered.\n this._dropContainer = newContainer;\n this._dropContainer.enter(this, x, y,\n // If we're re-entering the initial container and sorting is disabled,\n // put item the into its starting index to begin with.\n newContainer === this._initialContainer && newContainer.sortingDisabled ? this._initialIndex : undefined);\n this.entered.next({\n item: this,\n container: newContainer,\n currentIndex: newContainer.getItemIndex(this)\n });\n });\n }\n // Dragging may have been interrupted as a result of the events above.\n if (this.isDragging()) {\n this._dropContainer._startScrollingIfNecessary(rawX, rawY);\n this._dropContainer._sortItem(this, x, y, this._pointerDirectionDelta);\n if (this.constrainPosition) {\n this._applyPreviewTransform(x, y);\n } else {\n this._applyPreviewTransform(x - this._pickupPositionInElement.x, y - this._pickupPositionInElement.y);\n }\n }\n }\n /**\n * Animates the preview element from its current position to the location of the drop placeholder.\n * @returns Promise that resolves when the animation completes.\n */\n _animatePreviewToPlaceholder() {\n // If the user hasn't moved yet, the transitionend event won't fire.\n if (!this._hasMoved) {\n return Promise.resolve();\n }\n const placeholderRect = this._placeholder.getBoundingClientRect();\n // Apply the class that adds a transition to the preview.\n this._preview.addClass('cdk-drag-animating');\n // Move the preview to the placeholder position.\n this._applyPreviewTransform(placeholderRect.left, placeholderRect.top);\n // If the element doesn't have a `transition`, the `transitionend` event won't fire. Since\n // we need to trigger a style recalculation in order for the `cdk-drag-animating` class to\n // apply its style, we take advantage of the available info to figure out whether we need to\n // bind the event in the first place.\n const duration = this._preview.getTransitionDuration();\n if (duration === 0) {\n return Promise.resolve();\n }\n return this._ngZone.runOutsideAngular(() => {\n return new Promise(resolve => {\n const handler = event => {\n if (!event || this._preview && _getEventTarget(event) === this._preview.element && event.propertyName === 'transform') {\n cleanupListener();\n resolve();\n clearTimeout(timeout);\n }\n };\n // If a transition is short enough, the browser might not fire the `transitionend` event.\n // Since we know how long it's supposed to take, add a timeout with a 50% buffer that'll\n // fire if the transition hasn't completed when it was supposed to.\n const timeout = setTimeout(handler, duration * 1.5);\n const cleanupListener = this._preview.addEventListener('transitionend', handler);\n });\n });\n }\n /** Creates an element that will be shown instead of the current element while dragging. */\n _createPlaceholderElement() {\n const placeholderConfig = this._placeholderTemplate;\n const placeholderTemplate = placeholderConfig ? placeholderConfig.template : null;\n let placeholder;\n if (placeholderTemplate) {\n this._placeholderRef = placeholderConfig.viewContainer.createEmbeddedView(placeholderTemplate, placeholderConfig.context);\n this._placeholderRef.detectChanges();\n placeholder = getRootNode(this._placeholderRef, this._document);\n } else {\n placeholder = deepCloneNode(this._rootElement);\n }\n // Stop pointer events on the preview so the user can't\n // interact with it while the preview is animating.\n placeholder.style.pointerEvents = 'none';\n placeholder.classList.add(PLACEHOLDER_CLASS);\n return placeholder;\n }\n /**\n * Figures out the coordinates at which an element was picked up.\n * @param referenceElement Element that initiated the dragging.\n * @param event Event that initiated the dragging.\n */\n _getPointerPositionInElement(elementRect, referenceElement, event) {\n const handleElement = referenceElement === this._rootElement ? null : referenceElement;\n const referenceRect = handleElement ? handleElement.getBoundingClientRect() : elementRect;\n const point = isTouchEvent(event) ? event.targetTouches[0] : event;\n const scrollPosition = this._getViewportScrollPosition();\n const x = point.pageX - referenceRect.left - scrollPosition.left;\n const y = point.pageY - referenceRect.top - scrollPosition.top;\n return {\n x: referenceRect.left - elementRect.left + x,\n y: referenceRect.top - elementRect.top + y\n };\n }\n /** Determines the point of the page that was touched by the user. */\n _getPointerPositionOnPage(event) {\n const scrollPosition = this._getViewportScrollPosition();\n const point = isTouchEvent(event) ?\n // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.\n // Also note that on real devices we're guaranteed for either `touches` or `changedTouches`\n // to have a value, but Firefox in device emulation mode has a bug where both can be empty\n // for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid\n // throwing an error. The value returned here will be incorrect, but since this only\n // breaks inside a developer tool and the value is only used for secondary information,\n // we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.\n event.touches[0] || event.changedTouches[0] || {\n pageX: 0,\n pageY: 0\n } : event;\n const x = point.pageX - scrollPosition.left;\n const y = point.pageY - scrollPosition.top;\n // if dragging SVG element, try to convert from the screen coordinate system to the SVG\n // coordinate system\n if (this._ownerSVGElement) {\n const svgMatrix = this._ownerSVGElement.getScreenCTM();\n if (svgMatrix) {\n const svgPoint = this._ownerSVGElement.createSVGPoint();\n svgPoint.x = x;\n svgPoint.y = y;\n return svgPoint.matrixTransform(svgMatrix.inverse());\n }\n }\n return {\n x,\n y\n };\n }\n /** Gets the pointer position on the page, accounting for any position constraints. */\n _getConstrainedPointerPosition(point) {\n const dropContainerLock = this._dropContainer ? this._dropContainer.lockAxis : null;\n let {\n x,\n y\n } = this.constrainPosition ? this.constrainPosition(point, this, this._initialDomRect, this._pickupPositionInElement) : point;\n if (this.lockAxis === 'x' || dropContainerLock === 'x') {\n y = this._pickupPositionOnPage.y - (this.constrainPosition ? this._pickupPositionInElement.y : 0);\n } else if (this.lockAxis === 'y' || dropContainerLock === 'y') {\n x = this._pickupPositionOnPage.x - (this.constrainPosition ? this._pickupPositionInElement.x : 0);\n }\n if (this._boundaryRect) {\n // If not using a custom constrain we need to account for the pickup position in the element\n // otherwise we do not need to do this, as it has already been accounted for\n const {\n x: pickupX,\n y: pickupY\n } = !this.constrainPosition ? this._pickupPositionInElement : {\n x: 0,\n y: 0\n };\n const boundaryRect = this._boundaryRect;\n const {\n width: previewWidth,\n height: previewHeight\n } = this._getPreviewRect();\n const minY = boundaryRect.top + pickupY;\n const maxY = boundaryRect.bottom - (previewHeight - pickupY);\n const minX = boundaryRect.left + pickupX;\n const maxX = boundaryRect.right - (previewWidth - pickupX);\n x = clamp$1(x, minX, maxX);\n y = clamp$1(y, minY, maxY);\n }\n return {\n x,\n y\n };\n }\n /** Updates the current drag delta, based on the user's current pointer position on the page. */\n _updatePointerDirectionDelta(pointerPositionOnPage) {\n const {\n x,\n y\n } = pointerPositionOnPage;\n const delta = this._pointerDirectionDelta;\n const positionSinceLastChange = this._pointerPositionAtLastDirectionChange;\n // Amount of pixels the user has dragged since the last time the direction changed.\n const changeX = Math.abs(x - positionSinceLastChange.x);\n const changeY = Math.abs(y - positionSinceLastChange.y);\n // Because we handle pointer events on a per-pixel basis, we don't want the delta\n // to change for every pixel, otherwise anything that depends on it can look erratic.\n // To make the delta more consistent, we track how much the user has moved since the last\n // delta change and we only update it after it has reached a certain threshold.\n if (changeX > this._config.pointerDirectionChangeThreshold) {\n delta.x = x > positionSinceLastChange.x ? 1 : -1;\n positionSinceLastChange.x = x;\n }\n if (changeY > this._config.pointerDirectionChangeThreshold) {\n delta.y = y > positionSinceLastChange.y ? 1 : -1;\n positionSinceLastChange.y = y;\n }\n return delta;\n }\n /** Toggles the native drag interactions, based on how many handles are registered. */\n _toggleNativeDragInteractions() {\n if (!this._rootElement || !this._handles) {\n return;\n }\n const shouldEnable = this._handles.length > 0 || !this.isDragging();\n if (shouldEnable !== this._nativeInteractionsEnabled) {\n this._nativeInteractionsEnabled = shouldEnable;\n toggleNativeDragInteractions(this._rootElement, shouldEnable);\n }\n }\n /** Removes the manually-added event listeners from the root element. */\n _removeRootElementListeners() {\n this._rootElementCleanups?.forEach(cleanup => cleanup());\n this._rootElementCleanups = undefined;\n }\n /**\n * Applies a `transform` to the root element, taking into account any existing transforms on it.\n * @param x New transform value along the X axis.\n * @param y New transform value along the Y axis.\n */\n _applyRootElementTransform(x, y) {\n const scale = 1 / this.scale;\n const transform = getTransform(x * scale, y * scale);\n const styles = this._rootElement.style;\n // Cache the previous transform amount only after the first drag sequence, because\n // we don't want our own transforms to stack on top of each other.\n // Should be excluded none because none + translate3d(x, y, x) is invalid css\n if (this._initialTransform == null) {\n this._initialTransform = styles.transform && styles.transform != 'none' ? styles.transform : '';\n }\n // Preserve the previous `transform` value, if there was one. Note that we apply our own\n // transform before the user's, because things like rotation can affect which direction\n // the element will be translated towards.\n styles.transform = combineTransforms(transform, this._initialTransform);\n }\n /**\n * Applies a `transform` to the preview, taking into account any existing transforms on it.\n * @param x New transform value along the X axis.\n * @param y New transform value along the Y axis.\n */\n _applyPreviewTransform(x, y) {\n // Only apply the initial transform if the preview is a clone of the original element, otherwise\n // it could be completely different and the transform might not make sense anymore.\n const initialTransform = this._previewTemplate?.template ? undefined : this._initialTransform;\n const transform = getTransform(x, y);\n this._preview.setTransform(combineTransforms(transform, initialTransform));\n }\n /**\n * Gets the distance that the user has dragged during the current drag sequence.\n * @param currentPosition Current position of the user's pointer.\n */\n _getDragDistance(currentPosition) {\n const pickupPosition = this._pickupPositionOnPage;\n if (pickupPosition) {\n return {\n x: currentPosition.x - pickupPosition.x,\n y: currentPosition.y - pickupPosition.y\n };\n }\n return {\n x: 0,\n y: 0\n };\n }\n /** Cleans up any cached element dimensions that we don't need after dragging has stopped. */\n _cleanupCachedDimensions() {\n this._boundaryRect = this._previewRect = undefined;\n this._parentPositions.clear();\n }\n /**\n * Checks whether the element is still inside its boundary after the viewport has been resized.\n * If not, the position is adjusted so that the element fits again.\n */\n _containInsideBoundaryOnResize() {\n let {\n x,\n y\n } = this._passiveTransform;\n if (x === 0 && y === 0 || this.isDragging() || !this._boundaryElement) {\n return;\n }\n // Note: don't use `_clientRectAtStart` here, because we want the latest position.\n const elementRect = this._rootElement.getBoundingClientRect();\n const boundaryRect = this._boundaryElement.getBoundingClientRect();\n // It's possible that the element got hidden away after dragging (e.g. by switching to a\n // different tab). Don't do anything in this case so we don't clear the user's position.\n if (boundaryRect.width === 0 && boundaryRect.height === 0 || elementRect.width === 0 && elementRect.height === 0) {\n return;\n }\n const leftOverflow = boundaryRect.left - elementRect.left;\n const rightOverflow = elementRect.right - boundaryRect.right;\n const topOverflow = boundaryRect.top - elementRect.top;\n const bottomOverflow = elementRect.bottom - boundaryRect.bottom;\n // If the element has become wider than the boundary, we can't\n // do much to make it fit so we just anchor it to the left.\n if (boundaryRect.width > elementRect.width) {\n if (leftOverflow > 0) {\n x += leftOverflow;\n }\n if (rightOverflow > 0) {\n x -= rightOverflow;\n }\n } else {\n x = 0;\n }\n // If the element has become taller than the boundary, we can't\n // do much to make it fit so we just anchor it to the top.\n if (boundaryRect.height > elementRect.height) {\n if (topOverflow > 0) {\n y += topOverflow;\n }\n if (bottomOverflow > 0) {\n y -= bottomOverflow;\n }\n } else {\n y = 0;\n }\n if (x !== this._passiveTransform.x || y !== this._passiveTransform.y) {\n this.setFreeDragPosition({\n y,\n x\n });\n }\n }\n /** Gets the drag start delay, based on the event type. */\n _getDragStartDelay(event) {\n const value = this.dragStartDelay;\n if (typeof value === 'number') {\n return value;\n } else if (isTouchEvent(event)) {\n return value.touch;\n }\n return value ? value.mouse : 0;\n }\n /** Updates the internal state of the draggable element when scrolling has occurred. */\n _updateOnScroll(event) {\n const scrollDifference = this._parentPositions.handleScroll(event);\n if (scrollDifference) {\n const target = _getEventTarget(event);\n // DOMRect dimensions are based on the scroll position of the page and its parent\n // node so we have to update the cached boundary DOMRect if the user has scrolled.\n if (this._boundaryRect && target !== this._boundaryElement && target.contains(this._boundaryElement)) {\n adjustDomRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);\n }\n this._pickupPositionOnPage.x += scrollDifference.left;\n this._pickupPositionOnPage.y += scrollDifference.top;\n // If we're in free drag mode, we have to update the active transform, because\n // it isn't relative to the viewport like the preview inside a drop list.\n if (!this._dropContainer) {\n this._activeTransform.x -= scrollDifference.left;\n this._activeTransform.y -= scrollDifference.top;\n this._applyRootElementTransform(this._activeTransform.x, this._activeTransform.y);\n }\n }\n }\n /** Gets the scroll position of the viewport. */\n _getViewportScrollPosition() {\n return this._parentPositions.positions.get(this._document)?.scrollPosition || this._parentPositions.getViewportScrollPosition();\n }\n /**\n * Lazily resolves and returns the shadow root of the element. We do this in a function, rather\n * than saving it in property directly on init, because we want to resolve it as late as possible\n * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the\n * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.\n */\n _getShadowRoot() {\n if (this._cachedShadowRoot === undefined) {\n this._cachedShadowRoot = _getShadowRoot(this._rootElement);\n }\n return this._cachedShadowRoot;\n }\n /** Gets the element into which the drag preview should be inserted. */\n _getPreviewInsertionPoint(initialParent, shadowRoot) {\n const previewContainer = this._previewContainer || 'global';\n if (previewContainer === 'parent') {\n return initialParent;\n }\n if (previewContainer === 'global') {\n const documentRef = this._document;\n // We can't use the body if the user is in fullscreen mode,\n // because the preview will render under the fullscreen element.\n // TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.\n return shadowRoot || documentRef.fullscreenElement || documentRef.webkitFullscreenElement || documentRef.mozFullScreenElement || documentRef.msFullscreenElement || documentRef.body;\n }\n return coerceElement(previewContainer);\n }\n /** Lazily resolves and returns the dimensions of the preview. */\n _getPreviewRect() {\n // Cache the preview element rect if we haven't cached it already or if\n // we cached it too early before the element dimensions were computed.\n if (!this._previewRect || !this._previewRect.width && !this._previewRect.height) {\n this._previewRect = this._preview ? this._preview.getBoundingClientRect() : this._initialDomRect;\n }\n return this._previewRect;\n }\n /** Handles a native `dragstart` event. */\n _nativeDragStart = event => {\n if (this._handles.length) {\n const targetHandle = this._getTargetHandle(event);\n if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {\n event.preventDefault();\n }\n } else if (!this.disabled) {\n // Usually this isn't necessary since the we prevent the default action in `pointerDown`,\n // but some cases like dragging of links can slip through (see #24403).\n event.preventDefault();\n }\n };\n /** Gets a handle that is the target of an event. */\n _getTargetHandle(event) {\n return this._handles.find(handle => {\n return event.target && (event.target === handle || handle.contains(event.target));\n });\n }\n /** Inserts the anchor element, if it's valid. */\n _conditionallyInsertAnchor(newContainer, exitContainer, nextItemElement) {\n // Remove the anchor when returning to the initial container.\n if (newContainer === this._initialContainer) {\n this._anchor?.remove();\n this._anchor = null;\n } else if (exitContainer === this._initialContainer && exitContainer.hasAnchor) {\n // Insert the anchor when leaving the initial container.\n const anchor = this._anchor ??= deepCloneNode(this._placeholder);\n anchor.classList.remove(PLACEHOLDER_CLASS);\n anchor.classList.add('cdk-drag-anchor');\n // Clear the transform since the single-axis strategy uses transforms to sort the items.\n anchor.style.transform = '';\n // When the item leaves the initial container, the container's DOM will be restored to\n // its original state, except for the dragged item which is removed. Insert the anchor in\n // the position from which the item left so that the list looks consistent.\n if (nextItemElement) {\n nextItemElement.before(anchor);\n } else {\n coerceElement(exitContainer.element).appendChild(anchor);\n }\n }\n }\n}\n/** Clamps a value between a minimum and a maximum. */\nfunction clamp$1(value, min, max) {\n return Math.max(min, Math.min(max, value));\n}\n/** Determines whether an event is a touch event. */\nfunction isTouchEvent(event) {\n // This function is called for every pixel that the user has dragged so we need it to be\n // as fast as possible. Since we only bind mouse events and touch events, we can assume\n // that if the event's name starts with `t`, it's a touch event.\n return event.type[0] === 't';\n}\n/** Callback invoked for `selectstart` events inside the shadow DOM. */\nfunction shadowDomSelectStart(event) {\n event.preventDefault();\n}\n\n/**\n * Moves an item one index in an array to another.\n * @param array Array in which to move the item.\n * @param fromIndex Starting index of the item.\n * @param toIndex Index to which the item should be moved.\n */\nfunction moveItemInArray(array, fromIndex, toIndex) {\n const from = clamp(fromIndex, array.length - 1);\n const to = clamp(toIndex, array.length - 1);\n if (from === to) {\n return;\n }\n const target = array[from];\n const delta = to < from ? -1 : 1;\n for (let i = from; i !== to; i += delta) {\n array[i] = array[i + delta];\n }\n array[to] = target;\n}\n/**\n * Moves an item from one array to another.\n * @param currentArray Array from which to transfer the item.\n * @param targetArray Array into which to put the item.\n * @param currentIndex Index of the item in its current array.\n * @param targetIndex Index at which to insert the item.\n */\nfunction transferArrayItem(currentArray, targetArray, currentIndex, targetIndex) {\n const from = clamp(currentIndex, currentArray.length - 1);\n const to = clamp(targetIndex, targetArray.length);\n if (currentArray.length) {\n targetArray.splice(to, 0, currentArray.splice(from, 1)[0]);\n }\n}\n/**\n * Copies an item from one array to another, leaving it in its\n * original position in current array.\n * @param currentArray Array from which to copy the item.\n * @param targetArray Array into which is copy the item.\n * @param currentIndex Index of the item in its current array.\n * @param targetIndex Index at which to insert the item.\n *\n */\nfunction copyArrayItem(currentArray, targetArray, currentIndex, targetIndex) {\n const to = clamp(targetIndex, targetArray.length);\n if (currentArray.length) {\n targetArray.splice(to, 0, currentArray[currentIndex]);\n }\n}\n/** Clamps a number between zero and a maximum. */\nfunction clamp(value, max) {\n return Math.max(0, Math.min(max, value));\n}\n\n/**\n * Strategy that only supports sorting along a single axis.\n * Items are reordered using CSS transforms which allows for sorting to be animated.\n * @docs-private\n */\nclass SingleAxisSortStrategy {\n _dragDropRegistry;\n /** Root element container of the drop list. */\n _element;\n /** Function used to determine if an item can be sorted into a specific index. */\n _sortPredicate;\n /** Cache of the dimensions of all the items inside the container. */\n _itemPositions = [];\n /**\n * Draggable items that are currently active inside the container. Includes the items\n * that were there at the start of the sequence, as well as any items that have been dragged\n * in, but haven't been dropped yet.\n */\n _activeDraggables;\n /** Direction in which the list is oriented. */\n orientation = 'vertical';\n /** Layout direction of the drop list. */\n direction;\n constructor(_dragDropRegistry) {\n this._dragDropRegistry = _dragDropRegistry;\n }\n /**\n * Keeps track of the item that was last swapped with the dragged item, as well as what direction\n * the pointer was moving in when the swap occurred and whether the user's pointer continued to\n * overlap with the swapped item after the swapping occurred.\n */\n _previousSwap = {\n drag: null,\n delta: 0,\n overlaps: false\n };\n /**\n * To be called when the drag sequence starts.\n * @param items Items that are currently in the list.\n */\n start(items) {\n this.withItems(items);\n }\n /**\n * To be called when an item is being sorted.\n * @param item Item to be sorted.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param pointerDelta Direction in which the pointer is moving along each axis.\n */\n sort(item, pointerX, pointerY, pointerDelta) {\n const siblings = this._itemPositions;\n const newIndex = this._getItemIndexFromPointerPosition(item, pointerX, pointerY, pointerDelta);\n if (newIndex === -1 && siblings.length > 0) {\n return null;\n }\n const isHorizontal = this.orientation === 'horizontal';\n const currentIndex = siblings.findIndex(currentItem => currentItem.drag === item);\n const siblingAtNewPosition = siblings[newIndex];\n const currentPosition = siblings[currentIndex].clientRect;\n const newPosition = siblingAtNewPosition.clientRect;\n const delta = currentIndex > newIndex ? 1 : -1;\n // How many pixels the item's placeholder should be offset.\n const itemOffset = this._getItemOffsetPx(currentPosition, newPosition, delta);\n // How many pixels all the other items should be offset.\n const siblingOffset = this._getSiblingOffsetPx(currentIndex, siblings, delta);\n // Save the previous order of the items before moving the item to its new index.\n // We use this to check whether an item has been moved as a result of the sorting.\n const oldOrder = siblings.slice();\n // Shuffle the array in place.\n moveItemInArray(siblings, currentIndex, newIndex);\n siblings.forEach((sibling, index) => {\n // Don't do anything if the position hasn't changed.\n if (oldOrder[index] === sibling) {\n return;\n }\n const isDraggedItem = sibling.drag === item;\n const offset = isDraggedItem ? itemOffset : siblingOffset;\n const elementToOffset = isDraggedItem ? item.getPlaceholderElement() : sibling.drag.getRootElement();\n // Update the offset to reflect the new position.\n sibling.offset += offset;\n const transformAmount = Math.round(sibling.offset * (1 / sibling.drag.scale));\n // Since we're moving the items with a `transform`, we need to adjust their cached\n // client rects to reflect their new position, as well as swap their positions in the cache.\n // Note that we shouldn't use `getBoundingClientRect` here to update the cache, because the\n // elements may be mid-animation which will give us a wrong result.\n if (isHorizontal) {\n // Round the transforms since some browsers will\n // blur the elements, for sub-pixel transforms.\n elementToOffset.style.transform = combineTransforms(`translate3d(${transformAmount}px, 0, 0)`, sibling.initialTransform);\n adjustDomRect(sibling.clientRect, 0, offset);\n } else {\n elementToOffset.style.transform = combineTransforms(`translate3d(0, ${transformAmount}px, 0)`, sibling.initialTransform);\n adjustDomRect(sibling.clientRect, offset, 0);\n }\n });\n // Note that it's important that we do this after the client rects have been adjusted.\n this._previousSwap.overlaps = isInsideClientRect(newPosition, pointerX, pointerY);\n this._previousSwap.drag = siblingAtNewPosition.drag;\n this._previousSwap.delta = isHorizontal ? pointerDelta.x : pointerDelta.y;\n return {\n previousIndex: currentIndex,\n currentIndex: newIndex\n };\n }\n /**\n * Called when an item is being moved into the container.\n * @param item Item that was moved into the container.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param index Index at which the item entered. If omitted, the container will try to figure it\n * out automatically.\n */\n enter(item, pointerX, pointerY, index) {\n const newIndex = index == null || index < 0 ?\n // We use the coordinates of where the item entered the drop\n // zone to figure out at which index it should be inserted.\n this._getItemIndexFromPointerPosition(item, pointerX, pointerY) : index;\n const activeDraggables = this._activeDraggables;\n const currentIndex = activeDraggables.indexOf(item);\n const placeholder = item.getPlaceholderElement();\n let newPositionReference = activeDraggables[newIndex];\n // If the item at the new position is the same as the item that is being dragged,\n // it means that we're trying to restore the item to its initial position. In this\n // case we should use the next item from the list as the reference.\n if (newPositionReference === item) {\n newPositionReference = activeDraggables[newIndex + 1];\n }\n // If we didn't find a new position reference, it means that either the item didn't start off\n // in this container, or that the item requested to be inserted at the end of the list.\n if (!newPositionReference && (newIndex == null || newIndex === -1 || newIndex < activeDraggables.length - 1) && this._shouldEnterAsFirstChild(pointerX, pointerY)) {\n newPositionReference = activeDraggables[0];\n }\n // Since the item may be in the `activeDraggables` already (e.g. if the user dragged it\n // into another container and back again), we have to ensure that it isn't duplicated.\n if (currentIndex > -1) {\n activeDraggables.splice(currentIndex, 1);\n }\n // Don't use items that are being dragged as a reference, because\n // their element has been moved down to the bottom of the body.\n if (newPositionReference && !this._dragDropRegistry.isDragging(newPositionReference)) {\n const element = newPositionReference.getRootElement();\n element.parentElement.insertBefore(placeholder, element);\n activeDraggables.splice(newIndex, 0, item);\n } else {\n this._element.appendChild(placeholder);\n activeDraggables.push(item);\n }\n // The transform needs to be cleared so it doesn't throw off the measurements.\n placeholder.style.transform = '';\n // Note that usually `start` is called together with `enter` when an item goes into a new\n // container. This will cache item positions, but we need to refresh them since the amount\n // of items has changed.\n this._cacheItemPositions();\n }\n /** Sets the items that are currently part of the list. */\n withItems(items) {\n this._activeDraggables = items.slice();\n this._cacheItemPositions();\n }\n /** Assigns a sort predicate to the strategy. */\n withSortPredicate(predicate) {\n this._sortPredicate = predicate;\n }\n /** Resets the strategy to its initial state before dragging was started. */\n reset() {\n // TODO(crisbeto): may have to wait for the animations to finish.\n this._activeDraggables?.forEach(item => {\n const rootElement = item.getRootElement();\n if (rootElement) {\n const initialTransform = this._itemPositions.find(p => p.drag === item)?.initialTransform;\n rootElement.style.transform = initialTransform || '';\n }\n });\n this._itemPositions = [];\n this._activeDraggables = [];\n this._previousSwap.drag = null;\n this._previousSwap.delta = 0;\n this._previousSwap.overlaps = false;\n }\n /**\n * Gets a snapshot of items currently in the list.\n * Can include items that we dragged in from another list.\n */\n getActiveItemsSnapshot() {\n return this._activeDraggables;\n }\n /** Gets the index of a specific item. */\n getItemIndex(item) {\n return this._getVisualItemPositions().findIndex(currentItem => currentItem.drag === item);\n }\n /** Gets the item at a specific index. */\n getItemAtIndex(index) {\n return this._getVisualItemPositions()[index]?.drag || null;\n }\n /** Used to notify the strategy that the scroll position has changed. */\n updateOnScroll(topDifference, leftDifference) {\n // Since we know the amount that the user has scrolled we can shift all of the\n // client rectangles ourselves. This is cheaper than re-measuring everything and\n // we can avoid inconsistent behavior where we might be measuring the element before\n // its position has changed.\n this._itemPositions.forEach(({\n clientRect\n }) => {\n adjustDomRect(clientRect, topDifference, leftDifference);\n });\n // We need two loops for this, because we want all of the cached\n // positions to be up-to-date before we re-sort the item.\n this._itemPositions.forEach(({\n drag\n }) => {\n if (this._dragDropRegistry.isDragging(drag)) {\n // We need to re-sort the item manually, because the pointer move\n // events won't be dispatched while the user is scrolling.\n drag._sortFromLastPointerPosition();\n }\n });\n }\n withElementContainer(container) {\n this._element = container;\n }\n /** Refreshes the position cache of the items and sibling containers. */\n _cacheItemPositions() {\n const isHorizontal = this.orientation === 'horizontal';\n this._itemPositions = this._activeDraggables.map(drag => {\n const elementToMeasure = drag.getVisibleElement();\n return {\n drag,\n offset: 0,\n initialTransform: elementToMeasure.style.transform || '',\n clientRect: getMutableClientRect(elementToMeasure)\n };\n }).sort((a, b) => {\n return isHorizontal ? a.clientRect.left - b.clientRect.left : a.clientRect.top - b.clientRect.top;\n });\n }\n _getVisualItemPositions() {\n // Items are sorted always by top/left in the cache, however they flow differently in RTL.\n // The rest of the logic still stands no matter what orientation we're in, however\n // we need to invert the array when determining the index.\n return this.orientation === 'horizontal' && this.direction === 'rtl' ? this._itemPositions.slice().reverse() : this._itemPositions;\n }\n /**\n * Gets the offset in pixels by which the item that is being dragged should be moved.\n * @param currentPosition Current position of the item.\n * @param newPosition Position of the item where the current item should be moved.\n * @param delta Direction in which the user is moving.\n */\n _getItemOffsetPx(currentPosition, newPosition, delta) {\n const isHorizontal = this.orientation === 'horizontal';\n let itemOffset = isHorizontal ? newPosition.left - currentPosition.left : newPosition.top - currentPosition.top;\n // Account for differences in the item width/height.\n if (delta === -1) {\n itemOffset += isHorizontal ? newPosition.width - currentPosition.width : newPosition.height - currentPosition.height;\n }\n return itemOffset;\n }\n /**\n * Gets the offset in pixels by which the items that aren't being dragged should be moved.\n * @param currentIndex Index of the item currently being dragged.\n * @param siblings All of the items in the list.\n * @param delta Direction in which the user is moving.\n */\n _getSiblingOffsetPx(currentIndex, siblings, delta) {\n const isHorizontal = this.orientation === 'horizontal';\n const currentPosition = siblings[currentIndex].clientRect;\n const immediateSibling = siblings[currentIndex + delta * -1];\n let siblingOffset = currentPosition[isHorizontal ? 'width' : 'height'] * delta;\n if (immediateSibling) {\n const start = isHorizontal ? 'left' : 'top';\n const end = isHorizontal ? 'right' : 'bottom';\n // Get the spacing between the start of the current item and the end of the one immediately\n // after it in the direction in which the user is dragging, or vice versa. We add it to the\n // offset in order to push the element to where it will be when it's inline and is influenced\n // by the `margin` of its siblings.\n if (delta === -1) {\n siblingOffset -= immediateSibling.clientRect[start] - currentPosition[end];\n } else {\n siblingOffset += currentPosition[start] - immediateSibling.clientRect[end];\n }\n }\n return siblingOffset;\n }\n /**\n * Checks if pointer is entering in the first position\n * @param pointerX Position of the user's pointer along the X axis.\n * @param pointerY Position of the user's pointer along the Y axis.\n */\n _shouldEnterAsFirstChild(pointerX, pointerY) {\n if (!this._activeDraggables.length) {\n return false;\n }\n const itemPositions = this._itemPositions;\n const isHorizontal = this.orientation === 'horizontal';\n // `itemPositions` are sorted by position while `activeDraggables` are sorted by child index\n // check if container is using some sort of \"reverse\" ordering (eg: flex-direction: row-reverse)\n const reversed = itemPositions[0].drag !== this._activeDraggables[0];\n if (reversed) {\n const lastItemRect = itemPositions[itemPositions.length - 1].clientRect;\n return isHorizontal ? pointerX >= lastItemRect.right : pointerY >= lastItemRect.bottom;\n } else {\n const firstItemRect = itemPositions[0].clientRect;\n return isHorizontal ? pointerX <= firstItemRect.left : pointerY <= firstItemRect.top;\n }\n }\n /**\n * Gets the index of an item in the drop container, based on the position of the user's pointer.\n * @param item Item that is being sorted.\n * @param pointerX Position of the user's pointer along the X axis.\n * @param pointerY Position of the user's pointer along the Y axis.\n * @param delta Direction in which the user is moving their pointer.\n */\n _getItemIndexFromPointerPosition(item, pointerX, pointerY, delta) {\n const isHorizontal = this.orientation === 'horizontal';\n const index = this._itemPositions.findIndex(({\n drag,\n clientRect\n }) => {\n // Skip the item itself.\n if (drag === item) {\n return false;\n }\n if (delta) {\n const direction = isHorizontal ? delta.x : delta.y;\n // If the user is still hovering over the same item as last time, their cursor hasn't left\n // the item after we made the swap, and they didn't change the direction in which they're\n // dragging, we don't consider it a direction swap.\n if (drag === this._previousSwap.drag && this._previousSwap.overlaps && direction === this._previousSwap.delta) {\n return false;\n }\n }\n return isHorizontal ?\n // Round these down since most browsers report client rects with\n // sub-pixel precision, whereas the pointer coordinates are rounded to pixels.\n pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right) : pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);\n });\n return index === -1 || !this._sortPredicate(index, item) ? -1 : index;\n }\n}\n\n/**\n * Strategy that only supports sorting on a list that might wrap.\n * Items are reordered by moving their DOM nodes around.\n * @docs-private\n */\nclass MixedSortStrategy {\n _document;\n _dragDropRegistry;\n /** Root element container of the drop list. */\n _element;\n /** Function used to determine if an item can be sorted into a specific index. */\n _sortPredicate;\n /** Lazily-resolved root node containing the list. Use `_getRootNode` to read this. */\n _rootNode;\n /**\n * Draggable items that are currently active inside the container. Includes the items\n * that were there at the start of the sequence, as well as any items that have been dragged\n * in, but haven't been dropped yet.\n */\n _activeItems;\n /**\n * Keeps track of the item that was last swapped with the dragged item, as well as what direction\n * the pointer was moving in when the swap occurred and whether the user's pointer continued to\n * overlap with the swapped item after the swapping occurred.\n */\n _previousSwap = {\n drag: null,\n deltaX: 0,\n deltaY: 0,\n overlaps: false\n };\n /**\n * Keeps track of the relationship between a node and its next sibling. This information\n * is used to restore the DOM to the order it was in before dragging started.\n */\n _relatedNodes = [];\n constructor(_document, _dragDropRegistry) {\n this._document = _document;\n this._dragDropRegistry = _dragDropRegistry;\n }\n /**\n * To be called when the drag sequence starts.\n * @param items Items that are currently in the list.\n */\n start(items) {\n const childNodes = this._element.childNodes;\n this._relatedNodes = [];\n for (let i = 0; i < childNodes.length; i++) {\n const node = childNodes[i];\n this._relatedNodes.push([node, node.nextSibling]);\n }\n this.withItems(items);\n }\n /**\n * To be called when an item is being sorted.\n * @param item Item to be sorted.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param pointerDelta Direction in which the pointer is moving along each axis.\n */\n sort(item, pointerX, pointerY, pointerDelta) {\n const newIndex = this._getItemIndexFromPointerPosition(item, pointerX, pointerY);\n const previousSwap = this._previousSwap;\n if (newIndex === -1 || this._activeItems[newIndex] === item) {\n return null;\n }\n const toSwapWith = this._activeItems[newIndex];\n // Prevent too many swaps over the same item.\n if (previousSwap.drag === toSwapWith && previousSwap.overlaps && previousSwap.deltaX === pointerDelta.x && previousSwap.deltaY === pointerDelta.y) {\n return null;\n }\n const previousIndex = this.getItemIndex(item);\n const current = item.getPlaceholderElement();\n const overlapElement = toSwapWith.getRootElement();\n if (newIndex > previousIndex) {\n overlapElement.after(current);\n } else {\n overlapElement.before(current);\n }\n moveItemInArray(this._activeItems, previousIndex, newIndex);\n const newOverlapElement = this._getRootNode().elementFromPoint(pointerX, pointerY);\n // Note: it's tempting to save the entire `pointerDelta` object here, however that'll\n // break this functionality, because the same object is passed for all `sort` calls.\n previousSwap.deltaX = pointerDelta.x;\n previousSwap.deltaY = pointerDelta.y;\n previousSwap.drag = toSwapWith;\n previousSwap.overlaps = overlapElement === newOverlapElement || overlapElement.contains(newOverlapElement);\n return {\n previousIndex,\n currentIndex: newIndex\n };\n }\n /**\n * Called when an item is being moved into the container.\n * @param item Item that was moved into the container.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param index Index at which the item entered. If omitted, the container will try to figure it\n * out automatically.\n */\n enter(item, pointerX, pointerY, index) {\n // Remove the item from current set of items first so that it doesn't throw off the indexes\n // further down in this method. See https://github.com/angular/components/issues/31505\n const currentIndex = this._activeItems.indexOf(item);\n if (currentIndex > -1) {\n this._activeItems.splice(currentIndex, 1);\n }\n let enterIndex = index == null || index < 0 ? this._getItemIndexFromPointerPosition(item, pointerX, pointerY) : index;\n // In some cases (e.g. when the container has padding) we might not be able to figure\n // out which item to insert the dragged item next to, because the pointer didn't overlap\n // with anything. In that case we find the item that's closest to the pointer.\n if (enterIndex === -1) {\n enterIndex = this._getClosestItemIndexToPointer(item, pointerX, pointerY);\n }\n const targetItem = this._activeItems[enterIndex];\n if (targetItem && !this._dragDropRegistry.isDragging(targetItem)) {\n this._activeItems.splice(enterIndex, 0, item);\n targetItem.getRootElement().before(item.getPlaceholderElement());\n } else {\n this._activeItems.push(item);\n this._element.appendChild(item.getPlaceholderElement());\n }\n }\n /** Sets the items that are currently part of the list. */\n withItems(items) {\n this._activeItems = items.slice();\n }\n /** Assigns a sort predicate to the strategy. */\n withSortPredicate(predicate) {\n this._sortPredicate = predicate;\n }\n /** Resets the strategy to its initial state before dragging was started. */\n reset() {\n const root = this._element;\n const previousSwap = this._previousSwap;\n // Moving elements around in the DOM can break things like the `@for` loop, because it\n // uses comment nodes to know where to insert elements. To avoid such issues, we restore\n // the DOM nodes in the list to their original order when the list is reset.\n // Note that this could be simpler if we just saved all the nodes, cleared the root\n // and then appended them in the original order. We don't do it, because it can break\n // down depending on when the snapshot was taken. E.g. we may end up snapshotting the\n // placeholder element which is removed after dragging.\n for (let i = this._relatedNodes.length - 1; i > -1; i--) {\n const [node, nextSibling] = this._relatedNodes[i];\n if (node.parentNode === root && node.nextSibling !== nextSibling) {\n if (nextSibling === null) {\n root.appendChild(node);\n } else if (nextSibling.parentNode === root) {\n root.insertBefore(node, nextSibling);\n }\n }\n }\n this._relatedNodes = [];\n this._activeItems = [];\n previousSwap.drag = null;\n previousSwap.deltaX = previousSwap.deltaY = 0;\n previousSwap.overlaps = false;\n }\n /**\n * Gets a snapshot of items currently in the list.\n * Can include items that we dragged in from another list.\n */\n getActiveItemsSnapshot() {\n return this._activeItems;\n }\n /** Gets the index of a specific item. */\n getItemIndex(item) {\n return this._activeItems.indexOf(item);\n }\n /** Gets the item at a specific index. */\n getItemAtIndex(index) {\n return this._activeItems[index] || null;\n }\n /** Used to notify the strategy that the scroll position has changed. */\n updateOnScroll() {\n this._activeItems.forEach(item => {\n if (this._dragDropRegistry.isDragging(item)) {\n // We need to re-sort the item manually, because the pointer move\n // events won't be dispatched while the user is scrolling.\n item._sortFromLastPointerPosition();\n }\n });\n }\n withElementContainer(container) {\n if (container !== this._element) {\n this._element = container;\n this._rootNode = undefined;\n }\n }\n /**\n * Gets the index of an item in the drop container, based on the position of the user's pointer.\n * @param item Item that is being sorted.\n * @param pointerX Position of the user's pointer along the X axis.\n * @param pointerY Position of the user's pointer along the Y axis.\n * @param delta Direction in which the user is moving their pointer.\n */\n _getItemIndexFromPointerPosition(item, pointerX, pointerY) {\n const elementAtPoint = this._getRootNode().elementFromPoint(Math.floor(pointerX), Math.floor(pointerY));\n const index = elementAtPoint ? this._activeItems.findIndex(item => {\n const root = item.getRootElement();\n return elementAtPoint === root || root.contains(elementAtPoint);\n }) : -1;\n return index === -1 || !this._sortPredicate(index, item) ? -1 : index;\n }\n /** Lazily resolves the list's root node. */\n _getRootNode() {\n // Resolve the root node lazily to ensure that the drop list is in its final place in the DOM.\n if (!this._rootNode) {\n this._rootNode = _getShadowRoot(this._element) || this._document;\n }\n return this._rootNode;\n }\n /**\n * Finds the index of the item that's closest to the item being dragged.\n * @param item Item being dragged.\n * @param pointerX Position of the user's pointer along the X axis.\n * @param pointerY Position of the user's pointer along the Y axis.\n */\n _getClosestItemIndexToPointer(item, pointerX, pointerY) {\n if (this._activeItems.length === 0) {\n return -1;\n }\n if (this._activeItems.length === 1) {\n return 0;\n }\n let minDistance = Infinity;\n let minIndex = -1;\n // Find the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between each\n // item and the pointer, and return the smallest one. Note that this is a bit flawed in that DOM\n // nodes are rectangles, not points, so we use the top/left coordinates. It should be enough\n // for our purposes.\n for (let i = 0; i < this._activeItems.length; i++) {\n const current = this._activeItems[i];\n if (current !== item) {\n const {\n x,\n y\n } = current.getRootElement().getBoundingClientRect();\n const distance = Math.hypot(pointerX - x, pointerY - y);\n if (distance < minDistance) {\n minDistance = distance;\n minIndex = i;\n }\n }\n }\n return minIndex;\n }\n}\n\n/**\n * Proximity, as a ratio to width/height, at which a\n * dragged item will affect the drop container.\n */\nconst DROP_PROXIMITY_THRESHOLD = 0.05;\n/**\n * Proximity, as a ratio to width/height at which to start auto-scrolling the drop list or the\n * viewport. The value comes from trying it out manually until it feels right.\n */\nconst SCROLL_PROXIMITY_THRESHOLD = 0.05;\n/** Vertical direction in which we can auto-scroll. */\nvar AutoScrollVerticalDirection;\n(function (AutoScrollVerticalDirection) {\n AutoScrollVerticalDirection[AutoScrollVerticalDirection[\"NONE\"] = 0] = \"NONE\";\n AutoScrollVerticalDirection[AutoScrollVerticalDirection[\"UP\"] = 1] = \"UP\";\n AutoScrollVerticalDirection[AutoScrollVerticalDirection[\"DOWN\"] = 2] = \"DOWN\";\n})(AutoScrollVerticalDirection || (AutoScrollVerticalDirection = {}));\n/** Horizontal direction in which we can auto-scroll. */\nvar AutoScrollHorizontalDirection;\n(function (AutoScrollHorizontalDirection) {\n AutoScrollHorizontalDirection[AutoScrollHorizontalDirection[\"NONE\"] = 0] = \"NONE\";\n AutoScrollHorizontalDirection[AutoScrollHorizontalDirection[\"LEFT\"] = 1] = \"LEFT\";\n AutoScrollHorizontalDirection[AutoScrollHorizontalDirection[\"RIGHT\"] = 2] = \"RIGHT\";\n})(AutoScrollHorizontalDirection || (AutoScrollHorizontalDirection = {}));\n/**\n * Reference to a drop list. Used to manipulate or dispose of the container.\n */\nclass DropListRef {\n _dragDropRegistry;\n _ngZone;\n _viewportRuler;\n /** Element that the drop list is attached to. */\n element;\n /** Whether starting a dragging sequence from this container is disabled. */\n disabled = false;\n /** Whether sorting items within the list is disabled. */\n sortingDisabled = false;\n /** Locks the position of the draggable elements inside the container along the specified axis. */\n lockAxis = null;\n /**\n * Whether auto-scrolling the view when the user\n * moves their pointer close to the edges is disabled.\n */\n autoScrollDisabled = false;\n /** Number of pixels to scroll for each frame when auto-scrolling an element. */\n autoScrollStep = 2;\n /**\n * Whether the items in the list should leave an anchor node when leaving the initial container.\n */\n hasAnchor = false;\n /**\n * Function that is used to determine whether an item\n * is allowed to be moved into a drop container.\n */\n enterPredicate = () => true;\n /** Function that is used to determine whether an item can be sorted into a particular index. */\n sortPredicate = () => true;\n /** Emits right before dragging has started. */\n beforeStarted = new Subject();\n /**\n * Emits when the user has moved a new drag item into this container.\n */\n entered = new Subject();\n /**\n * Emits when the user removes an item from the container\n * by dragging it into another container.\n */\n exited = new Subject();\n /** Emits when the user drops an item inside the container. */\n dropped = new Subject();\n /** Emits as the user is swapping items while actively dragging. */\n sorted = new Subject();\n /** Emits when a dragging sequence is started in a list connected to the current one. */\n receivingStarted = new Subject();\n /** Emits when a dragging sequence is stopped from a list connected to the current one. */\n receivingStopped = new Subject();\n /** Arbitrary data that can be attached to the drop list. */\n data;\n /** Element that is the direct parent of the drag items. */\n _container;\n /** Whether an item in the list is being dragged. */\n _isDragging = false;\n /** Keeps track of the positions of any parent scrollable elements. */\n _parentPositions;\n /** Strategy being used to sort items within the list. */\n _sortStrategy;\n /** Cached `DOMRect` of the drop list. */\n _domRect;\n /** Draggable items in the container. */\n _draggables = [];\n /** Drop lists that are connected to the current one. */\n _siblings = [];\n /** Connected siblings that currently have a dragged item. */\n _activeSiblings = new Set();\n /** Subscription to the window being scrolled. */\n _viewportScrollSubscription = Subscription.EMPTY;\n /** Vertical direction in which the list is currently scrolling. */\n _verticalScrollDirection = AutoScrollVerticalDirection.NONE;\n /** Horizontal direction in which the list is currently scrolling. */\n _horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;\n /** Node that is being auto-scrolled. */\n _scrollNode;\n /** Used to signal to the current auto-scroll sequence when to stop. */\n _stopScrollTimers = new Subject();\n /** Shadow root of the current element. Necessary for `elementFromPoint` to resolve correctly. */\n _cachedShadowRoot = null;\n /** Reference to the document. */\n _document;\n /** Elements that can be scrolled while the user is dragging. */\n _scrollableElements = [];\n /** Initial value for the element's `scroll-snap-type` style. */\n _initialScrollSnap;\n /** Direction of the list's layout. */\n _direction = 'ltr';\n constructor(element, _dragDropRegistry, _document, _ngZone, _viewportRuler) {\n this._dragDropRegistry = _dragDropRegistry;\n this._ngZone = _ngZone;\n this._viewportRuler = _viewportRuler;\n const coercedElement = this.element = coerceElement(element);\n this._document = _document;\n this.withOrientation('vertical').withElementContainer(coercedElement);\n _dragDropRegistry.registerDropContainer(this);\n this._parentPositions = new ParentPositionTracker(_document);\n }\n /** Removes the drop list functionality from the DOM element. */\n dispose() {\n this._stopScrolling();\n this._stopScrollTimers.complete();\n this._viewportScrollSubscription.unsubscribe();\n this.beforeStarted.complete();\n this.entered.complete();\n this.exited.complete();\n this.dropped.complete();\n this.sorted.complete();\n this.receivingStarted.complete();\n this.receivingStopped.complete();\n this._activeSiblings.clear();\n this._scrollNode = null;\n this._parentPositions.clear();\n this._dragDropRegistry.removeDropContainer(this);\n }\n /** Whether an item from this list is currently being dragged. */\n isDragging() {\n return this._isDragging;\n }\n /** Starts dragging an item. */\n start() {\n this._draggingStarted();\n this._notifyReceivingSiblings();\n }\n /**\n * Attempts to move an item into the container.\n * @param item Item that was moved into the container.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param index Index at which the item entered. If omitted, the container will try to figure it\n * out automatically.\n */\n enter(item, pointerX, pointerY, index) {\n this._draggingStarted();\n // If sorting is disabled, we want the item to return to its starting\n // position if the user is returning it to its initial container.\n if (index == null && this.sortingDisabled) {\n index = this._draggables.indexOf(item);\n }\n this._sortStrategy.enter(item, pointerX, pointerY, index);\n // Note that this usually happens inside `_draggingStarted` as well, but the dimensions\n // can change when the sort strategy moves the item around inside `enter`.\n this._cacheParentPositions();\n // Notify siblings at the end so that the item has been inserted into the `activeDraggables`.\n this._notifyReceivingSiblings();\n this.entered.next({\n item,\n container: this,\n currentIndex: this.getItemIndex(item)\n });\n }\n /**\n * Removes an item from the container after it was dragged into another container by the user.\n * @param item Item that was dragged out.\n */\n exit(item) {\n this._reset();\n this.exited.next({\n item,\n container: this\n });\n }\n /**\n * Drops an item into this container.\n * @param item Item being dropped into the container.\n * @param currentIndex Index at which the item should be inserted.\n * @param previousIndex Index of the item when dragging started.\n * @param previousContainer Container from which the item got dragged in.\n * @param isPointerOverContainer Whether the user's pointer was over the\n * container when the item was dropped.\n * @param distance Distance the user has dragged since the start of the dragging sequence.\n * @param event Event that triggered the dropping sequence.\n *\n * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.\n */\n drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {\n this._reset();\n this.dropped.next({\n item,\n currentIndex,\n previousIndex,\n container: this,\n previousContainer,\n isPointerOverContainer,\n distance,\n dropPoint,\n event\n });\n }\n /**\n * Sets the draggable items that are a part of this list.\n * @param items Items that are a part of this list.\n */\n withItems(items) {\n const previousItems = this._draggables;\n this._draggables = items;\n items.forEach(item => item._withDropContainer(this));\n if (this.isDragging()) {\n const draggedItems = previousItems.filter(item => item.isDragging());\n // If all of the items being dragged were removed\n // from the list, abort the current drag sequence.\n if (draggedItems.every(item => items.indexOf(item) === -1)) {\n this._reset();\n } else {\n this._sortStrategy.withItems(this._draggables);\n }\n }\n return this;\n }\n /** Sets the layout direction of the drop list. */\n withDirection(direction) {\n this._direction = direction;\n if (this._sortStrategy instanceof SingleAxisSortStrategy) {\n this._sortStrategy.direction = direction;\n }\n return this;\n }\n /**\n * Sets the containers that are connected to this one. When two or more containers are\n * connected, the user will be allowed to transfer items between them.\n * @param connectedTo Other containers that the current containers should be connected to.\n */\n connectedTo(connectedTo) {\n this._siblings = connectedTo.slice();\n return this;\n }\n /**\n * Sets the orientation of the container.\n * @param orientation New orientation for the container.\n */\n withOrientation(orientation) {\n if (orientation === 'mixed') {\n this._sortStrategy = new MixedSortStrategy(this._document, this._dragDropRegistry);\n } else {\n const strategy = new SingleAxisSortStrategy(this._dragDropRegistry);\n strategy.direction = this._direction;\n strategy.orientation = orientation;\n this._sortStrategy = strategy;\n }\n this._sortStrategy.withElementContainer(this._container);\n this._sortStrategy.withSortPredicate((index, item) => this.sortPredicate(index, item, this));\n return this;\n }\n /**\n * Sets which parent elements are can be scrolled while the user is dragging.\n * @param elements Elements that can be scrolled.\n */\n withScrollableParents(elements) {\n const element = this._container;\n // We always allow the current element to be scrollable\n // so we need to ensure that it's in the array.\n this._scrollableElements = elements.indexOf(element) === -1 ? [element, ...elements] : elements.slice();\n return this;\n }\n /**\n * Configures the drop list so that a different element is used as the container for the\n * dragged items. This is useful for the cases when one might not have control over the\n * full DOM that sets up the dragging.\n * Note that the alternate container needs to be a descendant of the drop list.\n * @param container New element container to be assigned.\n */\n withElementContainer(container) {\n if (container === this._container) {\n return this;\n }\n const element = coerceElement(this.element);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && container !== element && !element.contains(container)) {\n throw new Error('Invalid DOM structure for drop list. Alternate container element must be a descendant of the drop list.');\n }\n const oldContainerIndex = this._scrollableElements.indexOf(this._container);\n const newContainerIndex = this._scrollableElements.indexOf(container);\n if (oldContainerIndex > -1) {\n this._scrollableElements.splice(oldContainerIndex, 1);\n }\n if (newContainerIndex > -1) {\n this._scrollableElements.splice(newContainerIndex, 1);\n }\n if (this._sortStrategy) {\n this._sortStrategy.withElementContainer(container);\n }\n this._cachedShadowRoot = null;\n this._scrollableElements.unshift(container);\n this._container = container;\n return this;\n }\n /** Gets the scrollable parents that are registered with this drop container. */\n getScrollableParents() {\n return this._scrollableElements;\n }\n /**\n * Figures out the index of an item in the container.\n * @param item Item whose index should be determined.\n */\n getItemIndex(item) {\n return this._isDragging ? this._sortStrategy.getItemIndex(item) : this._draggables.indexOf(item);\n }\n /**\n * Gets the item at a specific index.\n * @param index Index at which to retrieve the item.\n */\n getItemAtIndex(index) {\n return this._isDragging ? this._sortStrategy.getItemAtIndex(index) : this._draggables[index] || null;\n }\n /**\n * Whether the list is able to receive the item that\n * is currently being dragged inside a connected drop list.\n */\n isReceiving() {\n return this._activeSiblings.size > 0;\n }\n /**\n * Sorts an item inside the container based on its position.\n * @param item Item to be sorted.\n * @param pointerX Position of the item along the X axis.\n * @param pointerY Position of the item along the Y axis.\n * @param pointerDelta Direction in which the pointer is moving along each axis.\n */\n _sortItem(item, pointerX, pointerY, pointerDelta) {\n // Don't sort the item if sorting is disabled or it's out of range.\n if (this.sortingDisabled || !this._domRect || !isPointerNearDomRect(this._domRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {\n return;\n }\n const result = this._sortStrategy.sort(item, pointerX, pointerY, pointerDelta);\n if (result) {\n this.sorted.next({\n previousIndex: result.previousIndex,\n currentIndex: result.currentIndex,\n container: this,\n item\n });\n }\n }\n /**\n * Checks whether the user's pointer is close to the edges of either the\n * viewport or the drop list and starts the auto-scroll sequence.\n * @param pointerX User's pointer position along the x axis.\n * @param pointerY User's pointer position along the y axis.\n */\n _startScrollingIfNecessary(pointerX, pointerY) {\n if (this.autoScrollDisabled) {\n return;\n }\n let scrollNode;\n let verticalScrollDirection = AutoScrollVerticalDirection.NONE;\n let horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;\n // Check whether we should start scrolling any of the parent containers.\n this._parentPositions.positions.forEach((position, element) => {\n // We have special handling for the `document` below. Also this would be\n // nicer with a for...of loop, but it requires changing a compiler flag.\n if (element === this._document || !position.clientRect || scrollNode) {\n return;\n }\n if (isPointerNearDomRect(position.clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {\n [verticalScrollDirection, horizontalScrollDirection] = getElementScrollDirections(element, position.clientRect, this._direction, pointerX, pointerY);\n if (verticalScrollDirection || horizontalScrollDirection) {\n scrollNode = element;\n }\n }\n });\n // Otherwise check if we can start scrolling the viewport.\n if (!verticalScrollDirection && !horizontalScrollDirection) {\n const {\n width,\n height\n } = this._viewportRuler.getViewportSize();\n const domRect = {\n width,\n height,\n top: 0,\n right: width,\n bottom: height,\n left: 0\n };\n verticalScrollDirection = getVerticalScrollDirection(domRect, pointerY);\n horizontalScrollDirection = getHorizontalScrollDirection(domRect, pointerX);\n scrollNode = window;\n }\n if (scrollNode && (verticalScrollDirection !== this._verticalScrollDirection || horizontalScrollDirection !== this._horizontalScrollDirection || scrollNode !== this._scrollNode)) {\n this._verticalScrollDirection = verticalScrollDirection;\n this._horizontalScrollDirection = horizontalScrollDirection;\n this._scrollNode = scrollNode;\n if ((verticalScrollDirection || horizontalScrollDirection) && scrollNode) {\n this._ngZone.runOutsideAngular(this._startScrollInterval);\n } else {\n this._stopScrolling();\n }\n }\n }\n /** Stops any currently-running auto-scroll sequences. */\n _stopScrolling() {\n this._stopScrollTimers.next();\n }\n /** Starts the dragging sequence within the list. */\n _draggingStarted() {\n const styles = this._container.style;\n this.beforeStarted.next();\n this._isDragging = true;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n // Prevent the check from running on apps not using an alternate container. Ideally we\n // would always run it, but introducing it at this stage would be a breaking change.\n this._container !== coerceElement(this.element)) {\n for (const drag of this._draggables) {\n if (!drag.isDragging() && drag.getVisibleElement().parentNode !== this._container) {\n throw new Error('Invalid DOM structure for drop list. All items must be placed directly inside of the element container.');\n }\n }\n }\n // We need to disable scroll snapping while the user is dragging, because it breaks automatic\n // scrolling. The browser seems to round the value based on the snapping points which means\n // that we can't increment/decrement the scroll position.\n this._initialScrollSnap = styles.msScrollSnapType || styles.scrollSnapType || '';\n styles.scrollSnapType = styles.msScrollSnapType = 'none';\n this._sortStrategy.start(this._draggables);\n this._cacheParentPositions();\n this._viewportScrollSubscription.unsubscribe();\n this._listenToScrollEvents();\n }\n /** Caches the positions of the configured scrollable parents. */\n _cacheParentPositions() {\n this._parentPositions.cache(this._scrollableElements);\n // The list element is always in the `scrollableElements`\n // so we can take advantage of the cached `DOMRect`.\n this._domRect = this._parentPositions.positions.get(this._container).clientRect;\n }\n /** Resets the container to its initial state. */\n _reset() {\n this._isDragging = false;\n const styles = this._container.style;\n styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;\n this._siblings.forEach(sibling => sibling._stopReceiving(this));\n this._sortStrategy.reset();\n this._stopScrolling();\n this._viewportScrollSubscription.unsubscribe();\n this._parentPositions.clear();\n }\n /** Starts the interval that'll auto-scroll the element. */\n _startScrollInterval = () => {\n this._stopScrolling();\n interval(0, animationFrameScheduler).pipe(takeUntil(this._stopScrollTimers)).subscribe(() => {\n const node = this._scrollNode;\n const scrollStep = this.autoScrollStep;\n if (this._verticalScrollDirection === AutoScrollVerticalDirection.UP) {\n node.scrollBy(0, -scrollStep);\n } else if (this._verticalScrollDirection === AutoScrollVerticalDirection.DOWN) {\n node.scrollBy(0, scrollStep);\n }\n if (this._horizontalScrollDirection === AutoScrollHorizontalDirection.LEFT) {\n node.scrollBy(-scrollStep, 0);\n } else if (this._horizontalScrollDirection === AutoScrollHorizontalDirection.RIGHT) {\n node.scrollBy(scrollStep, 0);\n }\n });\n };\n /**\n * Checks whether the user's pointer is positioned over the container.\n * @param x Pointer position along the X axis.\n * @param y Pointer position along the Y axis.\n */\n _isOverContainer(x, y) {\n return this._domRect != null && isInsideClientRect(this._domRect, x, y);\n }\n /**\n * Figures out whether an item should be moved into a sibling\n * drop container, based on its current position.\n * @param item Drag item that is being moved.\n * @param x Position of the item along the X axis.\n * @param y Position of the item along the Y axis.\n */\n _getSiblingContainerFromPosition(item, x, y) {\n return this._siblings.find(sibling => sibling._canReceive(item, x, y));\n }\n /**\n * Checks whether the drop list can receive the passed-in item.\n * @param item Item that is being dragged into the list.\n * @param x Position of the item along the X axis.\n * @param y Position of the item along the Y axis.\n */\n _canReceive(item, x, y) {\n if (!this._domRect || !isInsideClientRect(this._domRect, x, y) || !this.enterPredicate(item, this)) {\n return false;\n }\n const elementFromPoint = this._getShadowRoot().elementFromPoint(x, y);\n // If there's no element at the pointer position, then\n // the client rect is probably scrolled out of the view.\n if (!elementFromPoint) {\n return false;\n }\n // The `DOMRect`, that we're using to find the container over which the user is\n // hovering, doesn't give us any information on whether the element has been scrolled\n // out of the view or whether it's overlapping with other containers. This means that\n // we could end up transferring the item into a container that's invisible or is positioned\n // below another one. We use the result from `elementFromPoint` to get the top-most element\n // at the pointer position and to find whether it's one of the intersecting drop containers.\n return elementFromPoint === this._container || this._container.contains(elementFromPoint);\n }\n /**\n * Called by one of the connected drop lists when a dragging sequence has started.\n * @param sibling Sibling in which dragging has started.\n */\n _startReceiving(sibling, items) {\n const activeSiblings = this._activeSiblings;\n if (!activeSiblings.has(sibling) && items.every(item => {\n // Note that we have to add an exception to the `enterPredicate` for items that started off\n // in this drop list. The drag ref has logic that allows an item to return to its initial\n // container, if it has left the initial container and none of the connected containers\n // allow it to enter. See `DragRef._updateActiveDropContainer` for more context.\n return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;\n })) {\n activeSiblings.add(sibling);\n this._cacheParentPositions();\n this._listenToScrollEvents();\n this.receivingStarted.next({\n initiator: sibling,\n receiver: this,\n items\n });\n }\n }\n /**\n * Called by a connected drop list when dragging has stopped.\n * @param sibling Sibling whose dragging has stopped.\n */\n _stopReceiving(sibling) {\n this._activeSiblings.delete(sibling);\n this._viewportScrollSubscription.unsubscribe();\n this.receivingStopped.next({\n initiator: sibling,\n receiver: this\n });\n }\n /**\n * Starts listening to scroll events on the viewport.\n * Used for updating the internal state of the list.\n */\n _listenToScrollEvents() {\n this._viewportScrollSubscription = this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(event => {\n if (this.isDragging()) {\n const scrollDifference = this._parentPositions.handleScroll(event);\n if (scrollDifference) {\n this._sortStrategy.updateOnScroll(scrollDifference.top, scrollDifference.left);\n }\n } else if (this.isReceiving()) {\n this._cacheParentPositions();\n }\n });\n }\n /**\n * Lazily resolves and returns the shadow root of the element. We do this in a function, rather\n * than saving it in property directly on init, because we want to resolve it as late as possible\n * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the\n * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.\n */\n _getShadowRoot() {\n if (!this._cachedShadowRoot) {\n const shadowRoot = _getShadowRoot(this._container);\n this._cachedShadowRoot = shadowRoot || this._document;\n }\n return this._cachedShadowRoot;\n }\n /** Notifies any siblings that may potentially receive the item. */\n _notifyReceivingSiblings() {\n const draggedItems = this._sortStrategy.getActiveItemsSnapshot().filter(item => item.isDragging());\n this._siblings.forEach(sibling => sibling._startReceiving(this, draggedItems));\n }\n}\n/**\n * Gets whether the vertical auto-scroll direction of a node.\n * @param clientRect Dimensions of the node.\n * @param pointerY Position of the user's pointer along the y axis.\n */\nfunction getVerticalScrollDirection(clientRect, pointerY) {\n const {\n top,\n bottom,\n height\n } = clientRect;\n const yThreshold = height * SCROLL_PROXIMITY_THRESHOLD;\n if (pointerY >= top - yThreshold && pointerY <= top + yThreshold) {\n return AutoScrollVerticalDirection.UP;\n } else if (pointerY >= bottom - yThreshold && pointerY <= bottom + yThreshold) {\n return AutoScrollVerticalDirection.DOWN;\n }\n return AutoScrollVerticalDirection.NONE;\n}\n/**\n * Gets whether the horizontal auto-scroll direction of a node.\n * @param clientRect Dimensions of the node.\n * @param pointerX Position of the user's pointer along the x axis.\n */\nfunction getHorizontalScrollDirection(clientRect, pointerX) {\n const {\n left,\n right,\n width\n } = clientRect;\n const xThreshold = width * SCROLL_PROXIMITY_THRESHOLD;\n if (pointerX >= left - xThreshold && pointerX <= left + xThreshold) {\n return AutoScrollHorizontalDirection.LEFT;\n } else if (pointerX >= right - xThreshold && pointerX <= right + xThreshold) {\n return AutoScrollHorizontalDirection.RIGHT;\n }\n return AutoScrollHorizontalDirection.NONE;\n}\n/**\n * Gets the directions in which an element node should be scrolled,\n * assuming that the user's pointer is already within it scrollable region.\n * @param element Element for which we should calculate the scroll direction.\n * @param clientRect Bounding client rectangle of the element.\n * @param direction Layout direction of the drop list.\n * @param pointerX Position of the user's pointer along the x axis.\n * @param pointerY Position of the user's pointer along the y axis.\n */\nfunction getElementScrollDirections(element, clientRect, direction, pointerX, pointerY) {\n const computedVertical = getVerticalScrollDirection(clientRect, pointerY);\n const computedHorizontal = getHorizontalScrollDirection(clientRect, pointerX);\n let verticalScrollDirection = AutoScrollVerticalDirection.NONE;\n let horizontalScrollDirection = AutoScrollHorizontalDirection.NONE;\n // Note that we here we do some extra checks for whether the element is actually scrollable in\n // a certain direction and we only assign the scroll direction if it is. We do this so that we\n // can allow other elements to be scrolled, if the current element can't be scrolled anymore.\n // This allows us to handle cases where the scroll regions of two scrollable elements overlap.\n if (computedVertical) {\n const scrollTop = element.scrollTop;\n if (computedVertical === AutoScrollVerticalDirection.UP) {\n if (scrollTop > 0) {\n verticalScrollDirection = AutoScrollVerticalDirection.UP;\n }\n } else if (element.scrollHeight - scrollTop > element.clientHeight) {\n verticalScrollDirection = AutoScrollVerticalDirection.DOWN;\n }\n }\n if (computedHorizontal) {\n const scrollLeft = element.scrollLeft;\n if (direction === 'rtl') {\n if (computedHorizontal === AutoScrollHorizontalDirection.RIGHT) {\n // In RTL `scrollLeft` will be negative when scrolled.\n if (scrollLeft < 0) {\n horizontalScrollDirection = AutoScrollHorizontalDirection.RIGHT;\n }\n } else if (element.scrollWidth + scrollLeft > element.clientWidth) {\n horizontalScrollDirection = AutoScrollHorizontalDirection.LEFT;\n }\n } else {\n if (computedHorizontal === AutoScrollHorizontalDirection.LEFT) {\n if (scrollLeft > 0) {\n horizontalScrollDirection = AutoScrollHorizontalDirection.LEFT;\n }\n } else if (element.scrollWidth - scrollLeft > element.clientWidth) {\n horizontalScrollDirection = AutoScrollHorizontalDirection.RIGHT;\n }\n }\n }\n return [verticalScrollDirection, horizontalScrollDirection];\n}\n\n/** Event options that can be used to bind a capturing event. */\nconst capturingEventOptions = {\n capture: true\n};\n/** Event options that can be used to bind an active, capturing event. */\nconst activeCapturingEventOptions = {\n passive: false,\n capture: true\n};\n/**\n * Component used to load the drag&drop reset styles.\n * @docs-private\n */\nclass _ResetsLoader {\n static ɵfac = function _ResetsLoader_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _ResetsLoader)();\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: _ResetsLoader,\n selectors: [[\"ng-component\"]],\n hostAttrs: [\"cdk-drag-resets-container\", \"\"],\n decls: 0,\n vars: 0,\n template: function _ResetsLoader_Template(rf, ctx) {},\n styles: [\"@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(_ResetsLoader, [{\n type: Component,\n args: [{\n encapsulation: ViewEncapsulation.None,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'cdk-drag-resets-container': ''\n },\n styles: [\"@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\\n\"]\n }]\n }], null, null);\n})();\n/**\n * Service that keeps track of all the drag item and drop container\n * instances, and manages global event listeners on the `document`.\n * @docs-private\n */\nclass DragDropRegistry {\n _ngZone = inject(NgZone);\n _document = inject(DOCUMENT);\n _styleLoader = inject(_CdkPrivateStyleLoader);\n _renderer = inject(RendererFactory2).createRenderer(null, null);\n _cleanupDocumentTouchmove;\n _scroll = new Subject();\n /** Registered drop container instances. */\n _dropInstances = new Set();\n /** Registered drag item instances. */\n _dragInstances = new Set();\n /** Drag item instances that are currently being dragged. */\n _activeDragInstances = signal([], ...(ngDevMode ? [{\n debugName: \"_activeDragInstances\"\n }] : []));\n /** Keeps track of the event listeners that we've bound to the `document`. */\n _globalListeners;\n /**\n * Predicate function to check if an item is being dragged. Moved out into a property,\n * because it'll be called a lot and we don't want to create a new function every time.\n */\n _draggingPredicate = item => item.isDragging();\n /**\n * Map tracking DOM nodes and their corresponding drag directives. Note that this is different\n * from looking through the `_dragInstances` and getting their root node, because the root node\n * isn't necessarily the node that the directive is set on.\n */\n _domNodesToDirectives = null;\n /**\n * Emits the `touchmove` or `mousemove` events that are dispatched\n * while the user is dragging a drag item instance.\n */\n pointerMove = new Subject();\n /**\n * Emits the `touchend` or `mouseup` events that are dispatched\n * while the user is dragging a drag item instance.\n */\n pointerUp = new Subject();\n constructor() {}\n /** Adds a drop container to the registry. */\n registerDropContainer(drop) {\n if (!this._dropInstances.has(drop)) {\n this._dropInstances.add(drop);\n }\n }\n /** Adds a drag item instance to the registry. */\n registerDragItem(drag) {\n this._dragInstances.add(drag);\n // The `touchmove` event gets bound once, ahead of time, because WebKit\n // won't preventDefault on a dynamically-added `touchmove` listener.\n // See https://bugs.webkit.org/show_bug.cgi?id=184250.\n if (this._dragInstances.size === 1) {\n this._ngZone.runOutsideAngular(() => {\n // The event handler has to be explicitly active,\n // because newer browsers make it passive by default.\n this._cleanupDocumentTouchmove?.();\n this._cleanupDocumentTouchmove = this._renderer.listen(this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);\n });\n }\n }\n /** Removes a drop container from the registry. */\n removeDropContainer(drop) {\n this._dropInstances.delete(drop);\n }\n /** Removes a drag item instance from the registry. */\n removeDragItem(drag) {\n this._dragInstances.delete(drag);\n this.stopDragging(drag);\n if (this._dragInstances.size === 0) {\n this._cleanupDocumentTouchmove?.();\n }\n }\n /**\n * Starts the dragging sequence for a drag instance.\n * @param drag Drag instance which is being dragged.\n * @param event Event that initiated the dragging.\n */\n startDragging(drag, event) {\n // Do not process the same drag twice to avoid memory leaks and redundant listeners\n if (this._activeDragInstances().indexOf(drag) > -1) {\n return;\n }\n this._styleLoader.load(_ResetsLoader);\n this._activeDragInstances.update(instances => [...instances, drag]);\n if (this._activeDragInstances().length === 1) {\n // We explicitly bind __active__ listeners here, because newer browsers will default to\n // passive ones for `mousemove` and `touchmove`. The events need to be active, because we\n // use `preventDefault` to prevent the page from scrolling while the user is dragging.\n const isTouchEvent = event.type.startsWith('touch');\n const endEventHandler = e => this.pointerUp.next(e);\n const toBind = [\n // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't\n // the document. See https://github.com/angular/components/issues/17144.\n ['scroll', e => this._scroll.next(e), capturingEventOptions],\n // Preventing the default action on `mousemove` isn't enough to disable text selection\n // on Safari so we need to prevent the selection event as well. Alternatively this can\n // be done by setting `user-select: none` on the `body`, however it has causes a style\n // recalculation which can be expensive on pages with a lot of elements.\n ['selectstart', this._preventDefaultWhileDragging, activeCapturingEventOptions]];\n if (isTouchEvent) {\n toBind.push(['touchend', endEventHandler, capturingEventOptions], ['touchcancel', endEventHandler, capturingEventOptions]);\n } else {\n toBind.push(['mouseup', endEventHandler, capturingEventOptions]);\n }\n // We don't have to bind a move event for touch drag sequences, because\n // we already have a persistent global one bound from `registerDragItem`.\n if (!isTouchEvent) {\n toBind.push(['mousemove', e => this.pointerMove.next(e), activeCapturingEventOptions]);\n }\n this._ngZone.runOutsideAngular(() => {\n this._globalListeners = toBind.map(([name, handler, options]) => this._renderer.listen(this._document, name, handler, options));\n });\n }\n }\n /** Stops dragging a drag item instance. */\n stopDragging(drag) {\n this._activeDragInstances.update(instances => {\n const index = instances.indexOf(drag);\n if (index > -1) {\n instances.splice(index, 1);\n return [...instances];\n }\n return instances;\n });\n if (this._activeDragInstances().length === 0) {\n this._clearGlobalListeners();\n }\n }\n /** Gets whether a drag item instance is currently being dragged. */\n isDragging(drag) {\n return this._activeDragInstances().indexOf(drag) > -1;\n }\n /**\n * Gets a stream that will emit when any element on the page is scrolled while an item is being\n * dragged.\n * @param shadowRoot Optional shadow root that the current dragging sequence started from.\n * Top-level listeners won't pick up events coming from the shadow DOM so this parameter can\n * be used to include an additional top-level listener at the shadow root level.\n */\n scrolled(shadowRoot) {\n const streams = [this._scroll];\n if (shadowRoot && shadowRoot !== this._document) {\n // Note that this is basically the same as `fromEvent` from rxjs, but we do it ourselves,\n // because we want to guarantee that the event is bound outside of the `NgZone`. With\n // `fromEvent` it'll only happen if the subscription is outside the `NgZone`.\n streams.push(new Observable(observer => {\n return this._ngZone.runOutsideAngular(() => {\n const cleanup = this._renderer.listen(shadowRoot, 'scroll', event => {\n if (this._activeDragInstances().length) {\n observer.next(event);\n }\n }, capturingEventOptions);\n return () => {\n cleanup();\n };\n });\n }));\n }\n return merge(...streams);\n }\n /**\n * Tracks the DOM node which has a draggable directive.\n * @param node Node to track.\n * @param dragRef Drag directive set on the node.\n */\n registerDirectiveNode(node, dragRef) {\n this._domNodesToDirectives ??= new WeakMap();\n this._domNodesToDirectives.set(node, dragRef);\n }\n /**\n * Stops tracking a draggable directive node.\n * @param node Node to stop tracking.\n */\n removeDirectiveNode(node) {\n this._domNodesToDirectives?.delete(node);\n }\n /**\n * Gets the drag directive corresponding to a specific DOM node, if any.\n * @param node Node for which to do the lookup.\n */\n getDragDirectiveForNode(node) {\n return this._domNodesToDirectives?.get(node) || null;\n }\n ngOnDestroy() {\n this._dragInstances.forEach(instance => this.removeDragItem(instance));\n this._dropInstances.forEach(instance => this.removeDropContainer(instance));\n this._domNodesToDirectives = null;\n this._clearGlobalListeners();\n this.pointerMove.complete();\n this.pointerUp.complete();\n }\n /**\n * Event listener that will prevent the default browser action while the user is dragging.\n * @param event Event whose default action should be prevented.\n */\n _preventDefaultWhileDragging = event => {\n if (this._activeDragInstances().length > 0) {\n event.preventDefault();\n }\n };\n /** Event listener for `touchmove` that is bound even if no dragging is happening. */\n _persistentTouchmoveListener = event => {\n if (this._activeDragInstances().length > 0) {\n // Note that we only want to prevent the default action after dragging has actually started.\n // Usually this is the same time at which the item is added to the `_activeDragInstances`,\n // but it could be pushed back if the user has set up a drag delay or threshold.\n if (this._activeDragInstances().some(this._draggingPredicate)) {\n event.preventDefault();\n }\n this.pointerMove.next(event);\n }\n };\n /** Clears out the global event listeners from the `document`. */\n _clearGlobalListeners() {\n this._globalListeners?.forEach(cleanup => cleanup());\n this._globalListeners = undefined;\n }\n static ɵfac = function DragDropRegistry_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DragDropRegistry)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: DragDropRegistry,\n factory: DragDropRegistry.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(DragDropRegistry, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n\n/** Default configuration to be used when creating a `DragRef`. */\nconst DEFAULT_CONFIG = {\n dragStartThreshold: 5,\n pointerDirectionChangeThreshold: 5\n};\n/**\n * Service that allows for drag-and-drop functionality to be attached to DOM elements.\n */\nclass DragDrop {\n _document = inject(DOCUMENT);\n _ngZone = inject(NgZone);\n _viewportRuler = inject(ViewportRuler);\n _dragDropRegistry = inject(DragDropRegistry);\n _renderer = inject(RendererFactory2).createRenderer(null, null);\n constructor() {}\n /**\n * Turns an element into a draggable item.\n * @param element Element to which to attach the dragging functionality.\n * @param config Object used to configure the dragging behavior.\n */\n createDrag(element, config = DEFAULT_CONFIG) {\n return new DragRef(element, config, this._document, this._ngZone, this._viewportRuler, this._dragDropRegistry, this._renderer);\n }\n /**\n * Turns an element into a drop list.\n * @param element Element to which to attach the drop list functionality.\n */\n createDropList(element) {\n return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);\n }\n static ɵfac = function DragDrop_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DragDrop)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: DragDrop,\n factory: DragDrop.ɵfac,\n providedIn: 'root'\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(DragDrop, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [], null);\n})();\n\n/**\n * Injection token that can be used for a `CdkDrag` to provide itself as a parent to the\n * drag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily\n * to avoid circular imports.\n * @docs-private\n */\nconst CDK_DRAG_PARENT = new InjectionToken('CDK_DRAG_PARENT');\n\n/**\n * Asserts that a particular node is an element.\n * @param node Node to be checked.\n * @param name Name to attach to the error message.\n */\nfunction assertElementNode(node, name) {\n if (node.nodeType !== 1) {\n throw Error(`${name} must be attached to an element node. ` + `Currently attached to \"${node.nodeName}\".`);\n }\n}\n\n/**\n * Injection token that can be used to reference instances of `CdkDragHandle`. It serves as\n * alternative token to the actual `CdkDragHandle` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_HANDLE = new InjectionToken('CdkDragHandle');\n/** Handle that can be used to drag a CdkDrag instance. */\nclass CdkDragHandle {\n element = inject(ElementRef);\n _parentDrag = inject(CDK_DRAG_PARENT, {\n optional: true,\n skipSelf: true\n });\n _dragDropRegistry = inject(DragDropRegistry);\n /** Emits when the state of the handle has changed. */\n _stateChanges = new Subject();\n /** Whether starting to drag through this handle is disabled. */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = value;\n this._stateChanges.next(this);\n }\n _disabled = false;\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n assertElementNode(this.element.nativeElement, 'cdkDragHandle');\n }\n this._parentDrag?._addHandle(this);\n }\n ngAfterViewInit() {\n if (!this._parentDrag) {\n let parent = this.element.nativeElement.parentElement;\n while (parent) {\n const ref = this._dragDropRegistry.getDragDirectiveForNode(parent);\n if (ref) {\n this._parentDrag = ref;\n ref._addHandle(this);\n break;\n }\n parent = parent.parentElement;\n }\n }\n }\n ngOnDestroy() {\n this._parentDrag?._removeHandle(this);\n this._stateChanges.complete();\n }\n static ɵfac = function CdkDragHandle_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDragHandle)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDragHandle,\n selectors: [[\"\", \"cdkDragHandle\", \"\"]],\n hostAttrs: [1, \"cdk-drag-handle\"],\n inputs: {\n disabled: [2, \"cdkDragHandleDisabled\", \"disabled\", booleanAttribute]\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: CDK_DRAG_HANDLE,\n useExisting: CdkDragHandle\n }])]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDragHandle, [{\n type: Directive,\n args: [{\n selector: '[cdkDragHandle]',\n host: {\n 'class': 'cdk-drag-handle'\n },\n providers: [{\n provide: CDK_DRAG_HANDLE,\n useExisting: CdkDragHandle\n }]\n }]\n }], () => [], {\n disabled: [{\n type: Input,\n args: [{\n alias: 'cdkDragHandleDisabled',\n transform: booleanAttribute\n }]\n }]\n });\n})();\n\n/**\n * Injection token that can be used to configure the\n * behavior of the drag&drop-related components.\n */\nconst CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');\n\n/**\n * Injection token that can be used to reference instances of `CdkDropList`. It serves as\n * alternative token to the actual `CdkDropList` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DROP_LIST = new InjectionToken('CdkDropList');\n/** Element that can be moved inside a CdkDropList container. */\nclass CdkDrag {\n element = inject(ElementRef);\n dropContainer = inject(CDK_DROP_LIST, {\n optional: true,\n skipSelf: true\n });\n _ngZone = inject(NgZone);\n _viewContainerRef = inject(ViewContainerRef);\n _dir = inject(Directionality, {\n optional: true\n });\n _changeDetectorRef = inject(ChangeDetectorRef);\n _selfHandle = inject(CDK_DRAG_HANDLE, {\n optional: true,\n self: true\n });\n _parentDrag = inject(CDK_DRAG_PARENT, {\n optional: true,\n skipSelf: true\n });\n _dragDropRegistry = inject(DragDropRegistry);\n _destroyed = new Subject();\n _handles = new BehaviorSubject([]);\n _previewTemplate;\n _placeholderTemplate;\n /** Reference to the underlying drag instance. */\n _dragRef;\n /** Arbitrary data to attach to this drag instance. */\n data;\n /** Locks the position of the dragged element along the specified axis. */\n lockAxis = null;\n /**\n * Selector that will be used to determine the root draggable element, starting from\n * the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful\n * when trying to enable dragging on an element that you might not have access to.\n */\n rootElementSelector;\n /**\n * Node or selector that will be used to determine the element to which the draggable's\n * position will be constrained. If a string is passed in, it'll be used as a selector that\n * will be matched starting from the element's parent and going up the DOM until a match\n * has been found.\n */\n boundaryElement;\n /**\n * Amount of milliseconds to wait after the user has put their\n * pointer down before starting to drag the element.\n */\n dragStartDelay;\n /**\n * Sets the position of a `CdkDrag` that is outside of a drop container.\n * Can be used to restore the element's position for a returning user.\n */\n freeDragPosition;\n /** Whether starting to drag this element is disabled. */\n get disabled() {\n return this._disabled || !!(this.dropContainer && this.dropContainer.disabled);\n }\n set disabled(value) {\n this._disabled = value;\n this._dragRef.disabled = this._disabled;\n }\n _disabled;\n /**\n * Function that can be used to customize the logic of how the position of the drag item\n * is limited while it's being dragged. Gets called with a point containing the current position\n * of the user's pointer on the page, a reference to the item being dragged and its dimensions.\n * Should return a point describing where the item should be rendered.\n */\n constrainPosition;\n /** Class to be added to the preview element. */\n previewClass;\n /**\n * Configures the place into which the preview of the item will be inserted. Can be configured\n * globally through `CDK_DROP_LIST`. Possible values:\n * - `global` - Preview will be inserted at the bottom of the ``. The advantage is that\n * you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain\n * its inherited styles.\n * - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that\n * inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be\n * visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors\n * like `:nth-child` and some flexbox configurations.\n * - `ElementRef | HTMLElement` - Preview will be inserted into a specific element.\n * Same advantages and disadvantages as `parent`.\n */\n previewContainer;\n /**\n * If the parent of the dragged element has a `scale` transform, it can throw off the\n * positioning when the user starts dragging. Use this input to notify the CDK of the scale.\n */\n scale = 1;\n /** Emits when the user starts dragging the item. */\n started = new EventEmitter();\n /** Emits when the user has released a drag item, before any animations have started. */\n released = new EventEmitter();\n /** Emits when the user stops dragging an item in the container. */\n ended = new EventEmitter();\n /** Emits when the user has moved the item into a new container. */\n entered = new EventEmitter();\n /** Emits when the user removes the item its container by dragging it into another container. */\n exited = new EventEmitter();\n /** Emits when the user drops the item inside a container. */\n dropped = new EventEmitter();\n /**\n * Emits as the user is dragging the item. Use with caution,\n * because this event will fire for every pixel that the user has dragged.\n */\n moved = new Observable(observer => {\n const subscription = this._dragRef.moved.pipe(map(movedEvent => ({\n source: this,\n pointerPosition: movedEvent.pointerPosition,\n event: movedEvent.event,\n delta: movedEvent.delta,\n distance: movedEvent.distance\n }))).subscribe(observer);\n return () => {\n subscription.unsubscribe();\n };\n });\n _injector = inject(Injector);\n constructor() {\n const dropContainer = this.dropContainer;\n const config = inject(CDK_DRAG_CONFIG, {\n optional: true\n });\n const dragDrop = inject(DragDrop);\n this._dragRef = dragDrop.createDrag(this.element, {\n dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,\n pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null ? config.pointerDirectionChangeThreshold : 5,\n zIndex: config?.zIndex\n });\n this._dragRef.data = this;\n this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement, this);\n if (config) {\n this._assignDefaults(config);\n }\n // Note that usually the container is assigned when the drop list is picks up the item, but in\n // some cases (mainly transplanted views with OnPush, see #18341) we may end up in a situation\n // where there are no items on the first change detection pass, but the items get picked up as\n // soon as the user triggers another pass by dragging. This is a problem, because the item would\n // have to switch from standalone mode to drag mode in the middle of the dragging sequence which\n // is too late since the two modes save different kinds of information. We work around it by\n // assigning the drop container both from here and the list.\n if (dropContainer) {\n dropContainer.addItem(this);\n // The drop container reads this so we need to sync it here.\n dropContainer._dropListRef.beforeStarted.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._dragRef.scale = this.scale;\n });\n }\n this._syncInputs(this._dragRef);\n this._handleEvents(this._dragRef);\n }\n /**\n * Returns the element that is being used as a placeholder\n * while the current element is being dragged.\n */\n getPlaceholderElement() {\n return this._dragRef.getPlaceholderElement();\n }\n /** Returns the root draggable element. */\n getRootElement() {\n return this._dragRef.getRootElement();\n }\n /** Resets a standalone drag item to its initial position. */\n reset() {\n this._dragRef.reset();\n }\n /** Resets drag item to end of boundary element. */\n resetToBoundary() {\n this._dragRef.resetToBoundary();\n }\n /**\n * Gets the pixel coordinates of the draggable outside of a drop container.\n */\n getFreeDragPosition() {\n return this._dragRef.getFreeDragPosition();\n }\n /**\n * Sets the current position in pixels the draggable outside of a drop container.\n * @param value New position to be set.\n */\n setFreeDragPosition(value) {\n this._dragRef.setFreeDragPosition(value);\n }\n ngAfterViewInit() {\n // We need to wait until after render, in order for the reference\n // element to be in the proper place in the DOM. This is mostly relevant\n // for draggable elements inside portals since they get stamped out in\n // their original DOM position, and then they get transferred to the portal.\n afterNextRender(() => {\n this._updateRootElement();\n this._setupHandlesListener();\n this._dragRef.scale = this.scale;\n if (this.freeDragPosition) {\n this._dragRef.setFreeDragPosition(this.freeDragPosition);\n }\n }, {\n injector: this._injector\n });\n }\n ngOnChanges(changes) {\n const rootSelectorChange = changes['rootElementSelector'];\n const positionChange = changes['freeDragPosition'];\n // We don't have to react to the first change since it's being\n // handled in the `afterNextRender` queued up in the constructor.\n if (rootSelectorChange && !rootSelectorChange.firstChange) {\n this._updateRootElement();\n }\n // Scale affects the free drag position so we need to sync it up here.\n this._dragRef.scale = this.scale;\n // Skip the first change since it's being handled in the `afterNextRender` queued up in the\n // constructor.\n if (positionChange && !positionChange.firstChange && this.freeDragPosition) {\n this._dragRef.setFreeDragPosition(this.freeDragPosition);\n }\n }\n ngOnDestroy() {\n if (this.dropContainer) {\n this.dropContainer.removeItem(this);\n }\n this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement);\n // Unnecessary in most cases, but used to avoid extra change detections with `zone-paths-rxjs`.\n this._ngZone.runOutsideAngular(() => {\n this._handles.complete();\n this._destroyed.next();\n this._destroyed.complete();\n this._dragRef.dispose();\n });\n }\n _addHandle(handle) {\n const handles = this._handles.getValue();\n handles.push(handle);\n this._handles.next(handles);\n }\n _removeHandle(handle) {\n const handles = this._handles.getValue();\n const index = handles.indexOf(handle);\n if (index > -1) {\n handles.splice(index, 1);\n this._handles.next(handles);\n }\n }\n _setPreviewTemplate(preview) {\n this._previewTemplate = preview;\n }\n _resetPreviewTemplate(preview) {\n if (preview === this._previewTemplate) {\n this._previewTemplate = null;\n }\n }\n _setPlaceholderTemplate(placeholder) {\n this._placeholderTemplate = placeholder;\n }\n _resetPlaceholderTemplate(placeholder) {\n if (placeholder === this._placeholderTemplate) {\n this._placeholderTemplate = null;\n }\n }\n /** Syncs the root element with the `DragRef`. */\n _updateRootElement() {\n const element = this.element.nativeElement;\n let rootElement = element;\n if (this.rootElementSelector) {\n rootElement = element.closest !== undefined ? element.closest(this.rootElementSelector) :\n // Comment tag doesn't have closest method, so use parent's one.\n element.parentElement?.closest(this.rootElementSelector);\n }\n if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n assertElementNode(rootElement, 'cdkDrag');\n }\n this._dragRef.withRootElement(rootElement || element);\n }\n /** Gets the boundary element, based on the `boundaryElement` value. */\n _getBoundaryElement() {\n const boundary = this.boundaryElement;\n if (!boundary) {\n return null;\n }\n if (typeof boundary === 'string') {\n return this.element.nativeElement.closest(boundary);\n }\n return coerceElement(boundary);\n }\n /** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */\n _syncInputs(ref) {\n ref.beforeStarted.subscribe(() => {\n if (!ref.isDragging()) {\n const dir = this._dir;\n const dragStartDelay = this.dragStartDelay;\n const placeholder = this._placeholderTemplate ? {\n template: this._placeholderTemplate.templateRef,\n context: this._placeholderTemplate.data,\n viewContainer: this._viewContainerRef\n } : null;\n const preview = this._previewTemplate ? {\n template: this._previewTemplate.templateRef,\n context: this._previewTemplate.data,\n matchSize: this._previewTemplate.matchSize,\n viewContainer: this._viewContainerRef\n } : null;\n ref.disabled = this.disabled;\n ref.lockAxis = this.lockAxis;\n ref.scale = this.scale;\n ref.dragStartDelay = typeof dragStartDelay === 'object' && dragStartDelay ? dragStartDelay : coerceNumberProperty(dragStartDelay);\n ref.constrainPosition = this.constrainPosition;\n ref.previewClass = this.previewClass;\n ref.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(placeholder).withPreviewTemplate(preview).withPreviewContainer(this.previewContainer || 'global');\n if (dir) {\n ref.withDirection(dir.value);\n }\n }\n });\n // This only needs to be resolved once.\n ref.beforeStarted.pipe(take(1)).subscribe(() => {\n // If we managed to resolve a parent through DI, use it.\n if (this._parentDrag) {\n ref.withParent(this._parentDrag._dragRef);\n return;\n }\n // Otherwise fall back to resolving the parent by looking up the DOM. This can happen if\n // the item was projected into another item by something like `ngTemplateOutlet`.\n let parent = this.element.nativeElement.parentElement;\n while (parent) {\n const parentDrag = this._dragDropRegistry.getDragDirectiveForNode(parent);\n if (parentDrag) {\n ref.withParent(parentDrag._dragRef);\n break;\n }\n parent = parent.parentElement;\n }\n });\n }\n /** Handles the events from the underlying `DragRef`. */\n _handleEvents(ref) {\n ref.started.subscribe(startEvent => {\n this.started.emit({\n source: this,\n event: startEvent.event\n });\n // Since all of these events run outside of change detection,\n // we need to ensure that everything is marked correctly.\n this._changeDetectorRef.markForCheck();\n });\n ref.released.subscribe(releaseEvent => {\n this.released.emit({\n source: this,\n event: releaseEvent.event\n });\n });\n ref.ended.subscribe(endEvent => {\n this.ended.emit({\n source: this,\n distance: endEvent.distance,\n dropPoint: endEvent.dropPoint,\n event: endEvent.event\n });\n // Since all of these events run outside of change detection,\n // we need to ensure that everything is marked correctly.\n this._changeDetectorRef.markForCheck();\n });\n ref.entered.subscribe(enterEvent => {\n this.entered.emit({\n container: enterEvent.container.data,\n item: this,\n currentIndex: enterEvent.currentIndex\n });\n });\n ref.exited.subscribe(exitEvent => {\n this.exited.emit({\n container: exitEvent.container.data,\n item: this\n });\n });\n ref.dropped.subscribe(dropEvent => {\n this.dropped.emit({\n previousIndex: dropEvent.previousIndex,\n currentIndex: dropEvent.currentIndex,\n previousContainer: dropEvent.previousContainer.data,\n container: dropEvent.container.data,\n isPointerOverContainer: dropEvent.isPointerOverContainer,\n item: this,\n distance: dropEvent.distance,\n dropPoint: dropEvent.dropPoint,\n event: dropEvent.event\n });\n });\n }\n /** Assigns the default input values based on a provided config object. */\n _assignDefaults(config) {\n const {\n lockAxis,\n dragStartDelay,\n constrainPosition,\n previewClass,\n boundaryElement,\n draggingDisabled,\n rootElementSelector,\n previewContainer\n } = config;\n this.disabled = draggingDisabled == null ? false : draggingDisabled;\n this.dragStartDelay = dragStartDelay || 0;\n this.lockAxis = lockAxis || null;\n if (constrainPosition) {\n this.constrainPosition = constrainPosition;\n }\n if (previewClass) {\n this.previewClass = previewClass;\n }\n if (boundaryElement) {\n this.boundaryElement = boundaryElement;\n }\n if (rootElementSelector) {\n this.rootElementSelector = rootElementSelector;\n }\n if (previewContainer) {\n this.previewContainer = previewContainer;\n }\n }\n /** Sets up the listener that syncs the handles with the drag ref. */\n _setupHandlesListener() {\n // Listen for any newly-added handles.\n this._handles.pipe(\n // Sync the new handles with the DragRef.\n tap(handles => {\n const handleElements = handles.map(handle => handle.element);\n // Usually handles are only allowed to be a descendant of the drag element, but if\n // the consumer defined a different drag root, we should allow the drag element\n // itself to be a handle too.\n if (this._selfHandle && this.rootElementSelector) {\n handleElements.push(this.element);\n }\n this._dragRef.withHandles(handleElements);\n }),\n // Listen if the state of any of the handles changes.\n switchMap(handles => {\n return merge(...handles.map(item => item._stateChanges.pipe(startWith(item))));\n }), takeUntil(this._destroyed)).subscribe(handleInstance => {\n // Enabled/disable the handle that changed in the DragRef.\n const dragRef = this._dragRef;\n const handle = handleInstance.element.nativeElement;\n handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);\n });\n }\n static ɵfac = function CdkDrag_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDrag)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDrag,\n selectors: [[\"\", \"cdkDrag\", \"\"]],\n hostAttrs: [1, \"cdk-drag\"],\n hostVars: 4,\n hostBindings: function CdkDrag_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"cdk-drag-disabled\", ctx.disabled)(\"cdk-drag-dragging\", ctx._dragRef.isDragging());\n }\n },\n inputs: {\n data: [0, \"cdkDragData\", \"data\"],\n lockAxis: [0, \"cdkDragLockAxis\", \"lockAxis\"],\n rootElementSelector: [0, \"cdkDragRootElement\", \"rootElementSelector\"],\n boundaryElement: [0, \"cdkDragBoundary\", \"boundaryElement\"],\n dragStartDelay: [0, \"cdkDragStartDelay\", \"dragStartDelay\"],\n freeDragPosition: [0, \"cdkDragFreeDragPosition\", \"freeDragPosition\"],\n disabled: [2, \"cdkDragDisabled\", \"disabled\", booleanAttribute],\n constrainPosition: [0, \"cdkDragConstrainPosition\", \"constrainPosition\"],\n previewClass: [0, \"cdkDragPreviewClass\", \"previewClass\"],\n previewContainer: [0, \"cdkDragPreviewContainer\", \"previewContainer\"],\n scale: [2, \"cdkDragScale\", \"scale\", numberAttribute]\n },\n outputs: {\n started: \"cdkDragStarted\",\n released: \"cdkDragReleased\",\n ended: \"cdkDragEnded\",\n entered: \"cdkDragEntered\",\n exited: \"cdkDragExited\",\n dropped: \"cdkDragDropped\",\n moved: \"cdkDragMoved\"\n },\n exportAs: [\"cdkDrag\"],\n features: [i0.ɵɵProvidersFeature([{\n provide: CDK_DRAG_PARENT,\n useExisting: CdkDrag\n }]), i0.ɵɵNgOnChangesFeature]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDrag, [{\n type: Directive,\n args: [{\n selector: '[cdkDrag]',\n exportAs: 'cdkDrag',\n host: {\n 'class': 'cdk-drag',\n '[class.cdk-drag-disabled]': 'disabled',\n '[class.cdk-drag-dragging]': '_dragRef.isDragging()'\n },\n providers: [{\n provide: CDK_DRAG_PARENT,\n useExisting: CdkDrag\n }]\n }]\n }], () => [], {\n data: [{\n type: Input,\n args: ['cdkDragData']\n }],\n lockAxis: [{\n type: Input,\n args: ['cdkDragLockAxis']\n }],\n rootElementSelector: [{\n type: Input,\n args: ['cdkDragRootElement']\n }],\n boundaryElement: [{\n type: Input,\n args: ['cdkDragBoundary']\n }],\n dragStartDelay: [{\n type: Input,\n args: ['cdkDragStartDelay']\n }],\n freeDragPosition: [{\n type: Input,\n args: ['cdkDragFreeDragPosition']\n }],\n disabled: [{\n type: Input,\n args: [{\n alias: 'cdkDragDisabled',\n transform: booleanAttribute\n }]\n }],\n constrainPosition: [{\n type: Input,\n args: ['cdkDragConstrainPosition']\n }],\n previewClass: [{\n type: Input,\n args: ['cdkDragPreviewClass']\n }],\n previewContainer: [{\n type: Input,\n args: ['cdkDragPreviewContainer']\n }],\n scale: [{\n type: Input,\n args: [{\n alias: 'cdkDragScale',\n transform: numberAttribute\n }]\n }],\n started: [{\n type: Output,\n args: ['cdkDragStarted']\n }],\n released: [{\n type: Output,\n args: ['cdkDragReleased']\n }],\n ended: [{\n type: Output,\n args: ['cdkDragEnded']\n }],\n entered: [{\n type: Output,\n args: ['cdkDragEntered']\n }],\n exited: [{\n type: Output,\n args: ['cdkDragExited']\n }],\n dropped: [{\n type: Output,\n args: ['cdkDragDropped']\n }],\n moved: [{\n type: Output,\n args: ['cdkDragMoved']\n }]\n });\n})();\n\n/**\n * Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as\n * alternative token to the actual `CdkDropListGroup` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DROP_LIST_GROUP = new InjectionToken('CdkDropListGroup');\n/**\n * Declaratively connects sibling `cdkDropList` instances together. All of the `cdkDropList`\n * elements that are placed inside a `cdkDropListGroup` will be connected to each other\n * automatically. Can be used as an alternative to the `cdkDropListConnectedTo` input\n * from `cdkDropList`.\n */\nclass CdkDropListGroup {\n /** Drop lists registered inside the group. */\n _items = new Set();\n /** Whether starting a dragging sequence from inside this group is disabled. */\n disabled = false;\n ngOnDestroy() {\n this._items.clear();\n }\n static ɵfac = function CdkDropListGroup_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDropListGroup)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDropListGroup,\n selectors: [[\"\", \"cdkDropListGroup\", \"\"]],\n inputs: {\n disabled: [2, \"cdkDropListGroupDisabled\", \"disabled\", booleanAttribute]\n },\n exportAs: [\"cdkDropListGroup\"],\n features: [i0.ɵɵProvidersFeature([{\n provide: CDK_DROP_LIST_GROUP,\n useExisting: CdkDropListGroup\n }])]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDropListGroup, [{\n type: Directive,\n args: [{\n selector: '[cdkDropListGroup]',\n exportAs: 'cdkDropListGroup',\n providers: [{\n provide: CDK_DROP_LIST_GROUP,\n useExisting: CdkDropListGroup\n }]\n }]\n }], null, {\n disabled: [{\n type: Input,\n args: [{\n alias: 'cdkDropListGroupDisabled',\n transform: booleanAttribute\n }]\n }]\n });\n})();\n\n/** Container that wraps a set of draggable items. */\nclass CdkDropList {\n element = inject(ElementRef);\n _changeDetectorRef = inject(ChangeDetectorRef);\n _scrollDispatcher = inject(ScrollDispatcher);\n _dir = inject(Directionality, {\n optional: true\n });\n _group = inject(CDK_DROP_LIST_GROUP, {\n optional: true,\n skipSelf: true\n });\n /** Refs that have been synced with the drop ref most recently. */\n _latestSortedRefs;\n /** Emits when the list has been destroyed. */\n _destroyed = new Subject();\n /** Whether the element's scrollable parents have been resolved. */\n _scrollableParentsResolved;\n /** Keeps track of the drop lists that are currently on the page. */\n static _dropLists = [];\n /** Reference to the underlying drop list instance. */\n _dropListRef;\n /**\n * Other draggable containers that this container is connected to and into which the\n * container's items can be transferred. Can either be references to other drop containers,\n * or their unique IDs.\n */\n connectedTo = [];\n /** Arbitrary data to attach to this container. */\n data;\n /** Direction in which the list is oriented. */\n orientation;\n /**\n * Unique ID for the drop zone. Can be used as a reference\n * in the `connectedTo` of another `CdkDropList`.\n */\n id = inject(_IdGenerator).getId('cdk-drop-list-');\n /** Locks the position of the draggable elements inside the container along the specified axis. */\n lockAxis = null;\n /** Whether starting a dragging sequence from this container is disabled. */\n get disabled() {\n return this._disabled || !!this._group && this._group.disabled;\n }\n set disabled(value) {\n // Usually we sync the directive and ref state right before dragging starts, in order to have\n // a single point of failure and to avoid having to use setters for everything. `disabled` is\n // a special case, because it can prevent the `beforeStarted` event from firing, which can lock\n // the user in a disabled state, so we also need to sync it as it's being set.\n this._dropListRef.disabled = this._disabled = value;\n }\n _disabled;\n /** Whether sorting within this drop list is disabled. */\n sortingDisabled;\n /**\n * Function that is used to determine whether an item\n * is allowed to be moved into a drop container.\n */\n enterPredicate = () => true;\n /** Functions that is used to determine whether an item can be sorted into a particular index. */\n sortPredicate = () => true;\n /** Whether to auto-scroll the view when the user moves their pointer close to the edges. */\n autoScrollDisabled;\n /** Number of pixels to scroll for each frame when auto-scrolling an element. */\n autoScrollStep;\n /**\n * Selector that will be used to resolve an alternate element container for the drop list.\n * Passing an alternate container is useful for the cases where one might not have control\n * over the parent node of the draggable items within the list (e.g. due to content projection).\n * This allows for usages like:\n *\n * ```\n *
\n *
\n * \n *
\n *
\n * ```\n */\n elementContainerSelector;\n /**\n * By default when an item leaves its initial container, its placeholder will be transferred\n * to the new container. If that's not desirable for your use case, you can enable this option\n * which will clone the placeholder and leave it inside the original container. If the item is\n * returned to the initial container, the anchor element will be removed automatically.\n *\n * The cloned placeholder can be styled by targeting the `cdk-drag-anchor` class.\n *\n * This option is useful in combination with `cdkDropListSortingDisabled` to implement copying\n * behavior in a drop list.\n */\n hasAnchor;\n /** Emits when the user drops an item inside the container. */\n dropped = new EventEmitter();\n /**\n * Emits when the user has moved a new drag item into this container.\n */\n entered = new EventEmitter();\n /**\n * Emits when the user removes an item from the container\n * by dragging it into another container.\n */\n exited = new EventEmitter();\n /** Emits as the user is swapping items while actively dragging. */\n sorted = new EventEmitter();\n /**\n * Keeps track of the items that are registered with this container. Historically we used to\n * do this with a `ContentChildren` query, however queries don't handle transplanted views very\n * well which means that we can't handle cases like dragging the headers of a `mat-table`\n * correctly. What we do instead is to have the items register themselves with the container\n * and then we sort them based on their position in the DOM.\n */\n _unsortedItems = new Set();\n constructor() {\n const dragDrop = inject(DragDrop);\n const config = inject(CDK_DRAG_CONFIG, {\n optional: true\n });\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n assertElementNode(this.element.nativeElement, 'cdkDropList');\n }\n this._dropListRef = dragDrop.createDropList(this.element);\n this._dropListRef.data = this;\n if (config) {\n this._assignDefaults(config);\n }\n this._dropListRef.enterPredicate = (drag, drop) => {\n return this.enterPredicate(drag.data, drop.data);\n };\n this._dropListRef.sortPredicate = (index, drag, drop) => {\n return this.sortPredicate(index, drag.data, drop.data);\n };\n this._setupInputSyncSubscription(this._dropListRef);\n this._handleEvents(this._dropListRef);\n CdkDropList._dropLists.push(this);\n if (this._group) {\n this._group._items.add(this);\n }\n }\n /** Registers an items with the drop list. */\n addItem(item) {\n this._unsortedItems.add(item);\n item._dragRef._withDropContainer(this._dropListRef);\n // Only sync the items while dragging since this method is\n // called when items are being initialized one-by-one.\n if (this._dropListRef.isDragging()) {\n this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));\n }\n }\n /** Removes an item from the drop list. */\n removeItem(item) {\n this._unsortedItems.delete(item);\n // This method might be called on destroy so we always want to sync with the ref.\n // Note that we reuse the last set of synced items, rather than re-sorting the whole\n // list, because it can slow down re-renders of large lists (see #30737).\n if (this._latestSortedRefs) {\n const index = this._latestSortedRefs.indexOf(item._dragRef);\n if (index > -1) {\n this._latestSortedRefs.splice(index, 1);\n this._syncItemsWithRef(this._latestSortedRefs);\n }\n }\n }\n /** Gets the registered items in the list, sorted by their position in the DOM. */\n getSortedItems() {\n return Array.from(this._unsortedItems).sort((a, b) => {\n const documentPosition = a._dragRef.getVisibleElement().compareDocumentPosition(b._dragRef.getVisibleElement());\n // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n // tslint:disable-next-line:no-bitwise\n return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;\n });\n }\n ngOnDestroy() {\n const index = CdkDropList._dropLists.indexOf(this);\n if (index > -1) {\n CdkDropList._dropLists.splice(index, 1);\n }\n if (this._group) {\n this._group._items.delete(this);\n }\n this._latestSortedRefs = undefined;\n this._unsortedItems.clear();\n this._dropListRef.dispose();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Syncs the inputs of the CdkDropList with the options of the underlying DropListRef. */\n _setupInputSyncSubscription(ref) {\n if (this._dir) {\n this._dir.change.pipe(startWith(this._dir.value), takeUntil(this._destroyed)).subscribe(value => ref.withDirection(value));\n }\n ref.beforeStarted.subscribe(() => {\n const siblings = coerceArray(this.connectedTo).map(drop => {\n if (typeof drop === 'string') {\n const correspondingDropList = CdkDropList._dropLists.find(list => list.id === drop);\n if (!correspondingDropList && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n console.warn(`CdkDropList could not find connected drop list with id \"${drop}\"`);\n }\n return correspondingDropList;\n }\n return drop;\n });\n if (this._group) {\n this._group._items.forEach(drop => {\n if (siblings.indexOf(drop) === -1) {\n siblings.push(drop);\n }\n });\n }\n // Note that we resolve the scrollable parents here so that we delay the resolution\n // as long as possible, ensuring that the element is in its final place in the DOM.\n if (!this._scrollableParentsResolved) {\n const scrollableParents = this._scrollDispatcher.getAncestorScrollContainers(this.element).map(scrollable => scrollable.getElementRef().nativeElement);\n this._dropListRef.withScrollableParents(scrollableParents);\n // Only do this once since it involves traversing the DOM and the parents\n // shouldn't be able to change without the drop list being destroyed.\n this._scrollableParentsResolved = true;\n }\n if (this.elementContainerSelector) {\n const container = this.element.nativeElement.querySelector(this.elementContainerSelector);\n if (!container && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`CdkDropList could not find an element container matching the selector \"${this.elementContainerSelector}\"`);\n }\n ref.withElementContainer(container);\n }\n ref.disabled = this.disabled;\n ref.lockAxis = this.lockAxis;\n ref.sortingDisabled = this.sortingDisabled;\n ref.autoScrollDisabled = this.autoScrollDisabled;\n ref.autoScrollStep = coerceNumberProperty(this.autoScrollStep, 2);\n ref.hasAnchor = this.hasAnchor;\n ref.connectedTo(siblings.filter(drop => drop && drop !== this).map(list => list._dropListRef)).withOrientation(this.orientation);\n });\n }\n /** Handles events from the underlying DropListRef. */\n _handleEvents(ref) {\n ref.beforeStarted.subscribe(() => {\n this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));\n this._changeDetectorRef.markForCheck();\n });\n ref.entered.subscribe(event => {\n this.entered.emit({\n container: this,\n item: event.item.data,\n currentIndex: event.currentIndex\n });\n });\n ref.exited.subscribe(event => {\n this.exited.emit({\n container: this,\n item: event.item.data\n });\n this._changeDetectorRef.markForCheck();\n });\n ref.sorted.subscribe(event => {\n this.sorted.emit({\n previousIndex: event.previousIndex,\n currentIndex: event.currentIndex,\n container: this,\n item: event.item.data\n });\n });\n ref.dropped.subscribe(dropEvent => {\n this.dropped.emit({\n previousIndex: dropEvent.previousIndex,\n currentIndex: dropEvent.currentIndex,\n previousContainer: dropEvent.previousContainer.data,\n container: dropEvent.container.data,\n item: dropEvent.item.data,\n isPointerOverContainer: dropEvent.isPointerOverContainer,\n distance: dropEvent.distance,\n dropPoint: dropEvent.dropPoint,\n event: dropEvent.event\n });\n // Mark for check since all of these events run outside of change\n // detection and we're not guaranteed for something else to have triggered it.\n this._changeDetectorRef.markForCheck();\n });\n merge(ref.receivingStarted, ref.receivingStopped).subscribe(() => this._changeDetectorRef.markForCheck());\n }\n /** Assigns the default input values based on a provided config object. */\n _assignDefaults(config) {\n const {\n lockAxis,\n draggingDisabled,\n sortingDisabled,\n listAutoScrollDisabled,\n listOrientation\n } = config;\n this.disabled = draggingDisabled == null ? false : draggingDisabled;\n this.sortingDisabled = sortingDisabled == null ? false : sortingDisabled;\n this.autoScrollDisabled = listAutoScrollDisabled == null ? false : listAutoScrollDisabled;\n this.orientation = listOrientation || 'vertical';\n this.lockAxis = lockAxis || null;\n }\n /** Syncs up the registered drag items with underlying drop list ref. */\n _syncItemsWithRef(items) {\n this._latestSortedRefs = items;\n this._dropListRef.withItems(items);\n }\n static ɵfac = function CdkDropList_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDropList)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDropList,\n selectors: [[\"\", \"cdkDropList\", \"\"], [\"cdk-drop-list\"]],\n hostAttrs: [1, \"cdk-drop-list\"],\n hostVars: 7,\n hostBindings: function CdkDropList_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"id\", ctx.id);\n i0.ɵɵclassProp(\"cdk-drop-list-disabled\", ctx.disabled)(\"cdk-drop-list-dragging\", ctx._dropListRef.isDragging())(\"cdk-drop-list-receiving\", ctx._dropListRef.isReceiving());\n }\n },\n inputs: {\n connectedTo: [0, \"cdkDropListConnectedTo\", \"connectedTo\"],\n data: [0, \"cdkDropListData\", \"data\"],\n orientation: [0, \"cdkDropListOrientation\", \"orientation\"],\n id: \"id\",\n lockAxis: [0, \"cdkDropListLockAxis\", \"lockAxis\"],\n disabled: [2, \"cdkDropListDisabled\", \"disabled\", booleanAttribute],\n sortingDisabled: [2, \"cdkDropListSortingDisabled\", \"sortingDisabled\", booleanAttribute],\n enterPredicate: [0, \"cdkDropListEnterPredicate\", \"enterPredicate\"],\n sortPredicate: [0, \"cdkDropListSortPredicate\", \"sortPredicate\"],\n autoScrollDisabled: [2, \"cdkDropListAutoScrollDisabled\", \"autoScrollDisabled\", booleanAttribute],\n autoScrollStep: [0, \"cdkDropListAutoScrollStep\", \"autoScrollStep\"],\n elementContainerSelector: [0, \"cdkDropListElementContainer\", \"elementContainerSelector\"],\n hasAnchor: [2, \"cdkDropListHasAnchor\", \"hasAnchor\", booleanAttribute]\n },\n outputs: {\n dropped: \"cdkDropListDropped\",\n entered: \"cdkDropListEntered\",\n exited: \"cdkDropListExited\",\n sorted: \"cdkDropListSorted\"\n },\n exportAs: [\"cdkDropList\"],\n features: [i0.ɵɵProvidersFeature([\n // Prevent child drop lists from picking up the same group as their parent.\n {\n provide: CDK_DROP_LIST_GROUP,\n useValue: undefined\n }, {\n provide: CDK_DROP_LIST,\n useExisting: CdkDropList\n }])]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDropList, [{\n type: Directive,\n args: [{\n selector: '[cdkDropList], cdk-drop-list',\n exportAs: 'cdkDropList',\n providers: [\n // Prevent child drop lists from picking up the same group as their parent.\n {\n provide: CDK_DROP_LIST_GROUP,\n useValue: undefined\n }, {\n provide: CDK_DROP_LIST,\n useExisting: CdkDropList\n }],\n host: {\n 'class': 'cdk-drop-list',\n '[attr.id]': 'id',\n '[class.cdk-drop-list-disabled]': 'disabled',\n '[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',\n '[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()'\n }\n }]\n }], () => [], {\n connectedTo: [{\n type: Input,\n args: ['cdkDropListConnectedTo']\n }],\n data: [{\n type: Input,\n args: ['cdkDropListData']\n }],\n orientation: [{\n type: Input,\n args: ['cdkDropListOrientation']\n }],\n id: [{\n type: Input\n }],\n lockAxis: [{\n type: Input,\n args: ['cdkDropListLockAxis']\n }],\n disabled: [{\n type: Input,\n args: [{\n alias: 'cdkDropListDisabled',\n transform: booleanAttribute\n }]\n }],\n sortingDisabled: [{\n type: Input,\n args: [{\n alias: 'cdkDropListSortingDisabled',\n transform: booleanAttribute\n }]\n }],\n enterPredicate: [{\n type: Input,\n args: ['cdkDropListEnterPredicate']\n }],\n sortPredicate: [{\n type: Input,\n args: ['cdkDropListSortPredicate']\n }],\n autoScrollDisabled: [{\n type: Input,\n args: [{\n alias: 'cdkDropListAutoScrollDisabled',\n transform: booleanAttribute\n }]\n }],\n autoScrollStep: [{\n type: Input,\n args: ['cdkDropListAutoScrollStep']\n }],\n elementContainerSelector: [{\n type: Input,\n args: ['cdkDropListElementContainer']\n }],\n hasAnchor: [{\n type: Input,\n args: [{\n alias: 'cdkDropListHasAnchor',\n transform: booleanAttribute\n }]\n }],\n dropped: [{\n type: Output,\n args: ['cdkDropListDropped']\n }],\n entered: [{\n type: Output,\n args: ['cdkDropListEntered']\n }],\n exited: [{\n type: Output,\n args: ['cdkDropListExited']\n }],\n sorted: [{\n type: Output,\n args: ['cdkDropListSorted']\n }]\n });\n})();\n\n/**\n * Injection token that can be used to reference instances of `CdkDragPreview`. It serves as\n * alternative token to the actual `CdkDragPreview` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_PREVIEW = new InjectionToken('CdkDragPreview');\n/**\n * Element that will be used as a template for the preview\n * of a CdkDrag when it is being dragged.\n */\nclass CdkDragPreview {\n templateRef = inject(TemplateRef);\n _drag = inject(CDK_DRAG_PARENT, {\n optional: true\n });\n /** Context data to be added to the preview template instance. */\n data;\n /** Whether the preview should preserve the same size as the item that is being dragged. */\n matchSize = false;\n constructor() {\n this._drag?._setPreviewTemplate(this);\n }\n ngOnDestroy() {\n this._drag?._resetPreviewTemplate(this);\n }\n static ɵfac = function CdkDragPreview_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDragPreview)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDragPreview,\n selectors: [[\"ng-template\", \"cdkDragPreview\", \"\"]],\n inputs: {\n data: \"data\",\n matchSize: [2, \"matchSize\", \"matchSize\", booleanAttribute]\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: CDK_DRAG_PREVIEW,\n useExisting: CdkDragPreview\n }])]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDragPreview, [{\n type: Directive,\n args: [{\n selector: 'ng-template[cdkDragPreview]',\n providers: [{\n provide: CDK_DRAG_PREVIEW,\n useExisting: CdkDragPreview\n }]\n }]\n }], () => [], {\n data: [{\n type: Input\n }],\n matchSize: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }]\n });\n})();\n\n/**\n * Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as\n * alternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_PLACEHOLDER = new InjectionToken('CdkDragPlaceholder');\n/**\n * Element that will be used as a template for the placeholder of a CdkDrag when\n * it is being dragged. The placeholder is displayed in place of the element being dragged.\n */\nclass CdkDragPlaceholder {\n templateRef = inject(TemplateRef);\n _drag = inject(CDK_DRAG_PARENT, {\n optional: true\n });\n /** Context data to be added to the placeholder template instance. */\n data;\n constructor() {\n this._drag?._setPlaceholderTemplate(this);\n }\n ngOnDestroy() {\n this._drag?._resetPlaceholderTemplate(this);\n }\n static ɵfac = function CdkDragPlaceholder_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CdkDragPlaceholder)();\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkDragPlaceholder,\n selectors: [[\"ng-template\", \"cdkDragPlaceholder\", \"\"]],\n inputs: {\n data: \"data\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: CDK_DRAG_PLACEHOLDER,\n useExisting: CdkDragPlaceholder\n }])]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CdkDragPlaceholder, [{\n type: Directive,\n args: [{\n selector: 'ng-template[cdkDragPlaceholder]',\n providers: [{\n provide: CDK_DRAG_PLACEHOLDER,\n useExisting: CdkDragPlaceholder\n }]\n }]\n }], () => [], {\n data: [{\n type: Input\n }]\n });\n})();\nconst DRAG_DROP_DIRECTIVES = [CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder];\nclass DragDropModule {\n static ɵfac = function DragDropModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DragDropModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DragDropModule,\n imports: [CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder],\n exports: [CdkScrollableModule, CdkDropList, CdkDropListGroup, CdkDrag, CdkDragHandle, CdkDragPreview, CdkDragPlaceholder]\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [DragDrop],\n imports: [CdkScrollableModule]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(DragDropModule, [{\n type: NgModule,\n args: [{\n imports: DRAG_DROP_DIRECTIVES,\n exports: [CdkScrollableModule, ...DRAG_DROP_DIRECTIVES],\n providers: [DragDrop]\n }]\n }], null, null);\n})();\nexport { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };\n"],
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,cAAc,MAAM;AAC3B,QAAM,QAAQ,KAAK,UAAU,IAAI;AACjC,QAAM,oBAAoB,MAAM,iBAAiB,MAAM;AACvD,QAAM,WAAW,KAAK,SAAS,YAAY;AAE3C,QAAM,gBAAgB,IAAI;AAC1B,WAAS,IAAI,GAAG,IAAI,kBAAkB,QAAQ,KAAK;AACjD,sBAAkB,CAAC,EAAE,gBAAgB,IAAI;AAAA,EAC3C;AACA,MAAI,aAAa,UAAU;AACzB,uBAAmB,MAAM,KAAK;AAAA,EAChC,WAAW,aAAa,WAAW,aAAa,YAAY,aAAa,YAAY;AACnF,sBAAkB,MAAM,KAAK;AAAA,EAC/B;AACA,eAAa,UAAU,MAAM,OAAO,kBAAkB;A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AM,CAAC;AAAA,MACL,SAAS;AAAA,MACT,SAAS,CAAC,qBAAqB,GAAG,oBAAoB;AAAA,MACtD,WAAW,CAAC,QAAQ;AAAA,IACtB,CAAC;AAAA,EACH,CAAC,GAAG,MAAM,IAAI;AAChB,GAAG;",
- "names": ["importantProperties", "item", "AutoScrollVerticalDirection", "AutoScrollHorizontalDirection", "isTouchEvent"]
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common.js b/.angular/cache/20.3.3/app/vite/deps/@angular_common.js
deleted file mode 100644
index 768adee..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common.js
+++ /dev/null
@@ -1,205 +0,0 @@
-import {
- APP_BASE_HREF,
- AsyncPipe,
- BrowserPlatformLocation,
- CommonModule,
- CurrencyPipe,
- DATE_PIPE_DEFAULT_OPTIONS,
- DATE_PIPE_DEFAULT_TIMEZONE,
- DatePipe,
- DecimalPipe,
- DomAdapter,
- FormStyle,
- FormatWidth,
- HashLocationStrategy,
- I18nPluralPipe,
- I18nSelectPipe,
- IMAGE_LOADER,
- JsonPipe,
- KeyValuePipe,
- LOCATION_INITIALIZED,
- Location,
- LocationStrategy,
- LowerCasePipe,
- NgClass,
- NgComponentOutlet,
- NgForOf,
- NgForOfContext,
- NgIf,
- NgIfContext,
- NgLocaleLocalization,
- NgLocalization,
- NgOptimizedImage,
- NgPlural,
- NgPluralCase,
- NgStyle,
- NgSwitch,
- NgSwitchCase,
- NgSwitchDefault,
- NgTemplateOutlet,
- NullViewportScroller,
- NumberFormatStyle,
- NumberSymbol,
- PLATFORM_BROWSER_ID,
- PLATFORM_SERVER_ID,
- PRECONNECT_CHECK_BLOCKLIST,
- PathLocationStrategy,
- PercentPipe,
- PlatformLocation,
- PlatformNavigation,
- Plural,
- SlicePipe,
- TitleCasePipe,
- TranslationWidth,
- UpperCasePipe,
- VERSION,
- ViewportScroller,
- WeekDay,
- formatCurrency,
- formatDate,
- formatNumber,
- formatPercent,
- getCurrencySymbol,
- getDOM,
- getLocaleCurrencyCode,
- getLocaleCurrencyName,
- getLocaleCurrencySymbol,
- getLocaleDateFormat,
- getLocaleDateTimeFormat,
- getLocaleDayNames,
- getLocaleDayPeriods,
- getLocaleDirection,
- getLocaleEraNames,
- getLocaleExtraDayPeriodRules,
- getLocaleExtraDayPeriods,
- getLocaleFirstDayOfWeek,
- getLocaleId,
- getLocaleMonthNames,
- getLocaleNumberFormat,
- getLocaleNumberSymbol,
- getLocalePluralCase,
- getLocaleTimeFormat,
- getLocaleWeekEndRange,
- getNumberOfCurrencyDigits,
- isPlatformBrowser,
- isPlatformServer,
- normalizeQueryParams,
- provideCloudflareLoader,
- provideCloudinaryLoader,
- provideImageKitLoader,
- provideImgixLoader,
- provideNetlifyLoader,
- registerLocaleData,
- setRootDomAdapter
-} from "./chunk-76DXN4JH.js";
-import {
- XhrFactory,
- parseCookieValue
-} from "./chunk-4X6VR2I6.js";
-import {
- IMAGE_CONFIG
-} from "./chunk-UEBPW2IJ.js";
-import {
- DOCUMENT
-} from "./chunk-QLJXSR7F.js";
-import "./chunk-RSS3ODKE.js";
-import "./chunk-TKSB4YUA.js";
-export {
- APP_BASE_HREF,
- AsyncPipe,
- BrowserPlatformLocation,
- CommonModule,
- CurrencyPipe,
- DATE_PIPE_DEFAULT_OPTIONS,
- DATE_PIPE_DEFAULT_TIMEZONE,
- DOCUMENT,
- DatePipe,
- DecimalPipe,
- FormStyle,
- FormatWidth,
- HashLocationStrategy,
- I18nPluralPipe,
- I18nSelectPipe,
- IMAGE_CONFIG,
- IMAGE_LOADER,
- JsonPipe,
- KeyValuePipe,
- LOCATION_INITIALIZED,
- Location,
- LocationStrategy,
- LowerCasePipe,
- NgClass,
- NgComponentOutlet,
- NgForOf as NgFor,
- NgForOf,
- NgForOfContext,
- NgIf,
- NgIfContext,
- NgLocaleLocalization,
- NgLocalization,
- NgOptimizedImage,
- NgPlural,
- NgPluralCase,
- NgStyle,
- NgSwitch,
- NgSwitchCase,
- NgSwitchDefault,
- NgTemplateOutlet,
- NumberFormatStyle,
- NumberSymbol,
- PRECONNECT_CHECK_BLOCKLIST,
- PathLocationStrategy,
- PercentPipe,
- PlatformLocation,
- Plural,
- SlicePipe,
- TitleCasePipe,
- TranslationWidth,
- UpperCasePipe,
- VERSION,
- ViewportScroller,
- WeekDay,
- XhrFactory,
- formatCurrency,
- formatDate,
- formatNumber,
- formatPercent,
- getCurrencySymbol,
- getLocaleCurrencyCode,
- getLocaleCurrencyName,
- getLocaleCurrencySymbol,
- getLocaleDateFormat,
- getLocaleDateTimeFormat,
- getLocaleDayNames,
- getLocaleDayPeriods,
- getLocaleDirection,
- getLocaleEraNames,
- getLocaleExtraDayPeriodRules,
- getLocaleExtraDayPeriods,
- getLocaleFirstDayOfWeek,
- getLocaleId,
- getLocaleMonthNames,
- getLocaleNumberFormat,
- getLocaleNumberSymbol,
- getLocalePluralCase,
- getLocaleTimeFormat,
- getLocaleWeekEndRange,
- getNumberOfCurrencyDigits,
- isPlatformBrowser,
- isPlatformServer,
- provideCloudflareLoader,
- provideCloudinaryLoader,
- provideImageKitLoader,
- provideImgixLoader,
- provideNetlifyLoader,
- registerLocaleData,
- DomAdapter as ɵDomAdapter,
- NullViewportScroller as ɵNullViewportScroller,
- PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID,
- PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID,
- PlatformNavigation as ɵPlatformNavigation,
- getDOM as ɵgetDOM,
- normalizeQueryParams as ɵnormalizeQueryParams,
- parseCookieValue as ɵparseCookieValue,
- setRootDomAdapter as ɵsetRootDomAdapter
-};
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_common.js.map
deleted file mode 100644
index 9865211..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": [],
- "sourcesContent": [],
- "mappings": "",
- "names": []
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js b/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js
deleted file mode 100644
index d7b4934..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import {
- FetchBackend,
- HTTP_INTERCEPTORS,
- HTTP_ROOT_INTERCEPTOR_FNS,
- HTTP_TRANSFER_CACHE_ORIGIN_MAP,
- HttpBackend,
- HttpClient,
- HttpClientJsonpModule,
- HttpClientModule,
- HttpClientXsrfModule,
- HttpContext,
- HttpContextToken,
- HttpErrorResponse,
- HttpEventType,
- HttpFeatureKind,
- HttpHandler,
- HttpHeaderResponse,
- HttpHeaders,
- HttpInterceptorHandler,
- HttpParams,
- HttpRequest,
- HttpResponse,
- HttpResponseBase,
- HttpStatusCode,
- HttpUrlEncodingCodec,
- HttpXhrBackend,
- HttpXsrfTokenExtractor,
- JsonpClientBackend,
- JsonpInterceptor,
- REQUESTS_CONTRIBUTE_TO_STABILITY,
- httpResource,
- provideHttpClient,
- withFetch,
- withHttpTransferCache,
- withInterceptors,
- withInterceptorsFromDi,
- withJsonpSupport,
- withNoXsrfProtection,
- withRequestsMadeViaParent,
- withXsrfConfiguration
-} from "./chunk-4JODBTHE.js";
-import "./chunk-4X6VR2I6.js";
-import "./chunk-UEBPW2IJ.js";
-import "./chunk-QLJXSR7F.js";
-import "./chunk-RSS3ODKE.js";
-import "./chunk-TKSB4YUA.js";
-export {
- FetchBackend,
- HTTP_INTERCEPTORS,
- HTTP_TRANSFER_CACHE_ORIGIN_MAP,
- HttpBackend,
- HttpClient,
- HttpClientJsonpModule,
- HttpClientModule,
- HttpClientXsrfModule,
- HttpContext,
- HttpContextToken,
- HttpErrorResponse,
- HttpEventType,
- HttpFeatureKind,
- HttpHandler,
- HttpHeaderResponse,
- HttpHeaders,
- HttpParams,
- HttpRequest,
- HttpResponse,
- HttpResponseBase,
- HttpStatusCode,
- HttpUrlEncodingCodec,
- HttpXhrBackend,
- HttpXsrfTokenExtractor,
- JsonpClientBackend,
- JsonpInterceptor,
- httpResource,
- provideHttpClient,
- withFetch,
- withInterceptors,
- withInterceptorsFromDi,
- withJsonpSupport,
- withNoXsrfProtection,
- withRequestsMadeViaParent,
- withXsrfConfiguration,
- HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS,
- HttpInterceptorHandler as ɵHttpInterceptingHandler,
- HttpInterceptorHandler as ɵHttpInterceptorHandler,
- REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY,
- withHttpTransferCache as ɵwithHttpTransferCache
-};
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js.map
deleted file mode 100644
index 9865211..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common_http.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": [],
- "sourcesContent": [],
- "mappings": "",
- "names": []
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js b/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js
deleted file mode 100644
index 0e92fad..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import "./chunk-TKSB4YUA.js";
-
-// node_modules/@angular/common/locales/fr.js
-var u = void 0;
-function plural(val) {
- const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\.?/, "").length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/, "$2")) || 0;
- if (i === 0 || i === 1)
- return 1;
- if (e === 0 && (!(i === 0) && (i % 1e6 === 0 && v === 0)) || !(e >= 0 && e <= 5))
- return 4;
- return 5;
-}
-var fr_default = ["fr", [["AM", "PM"]], u, [["D", "L", "M", "M", "J", "V", "S"], ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], ["di", "lu", "ma", "me", "je", "ve", "sa"]], u, [["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."], ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"]], u, [["av. J.-C.", "ap. J.-C."], u, ["avant Jésus-Christ", "après Jésus-Christ"]], 1, [6, 0], ["dd/MM/y", "d MMM y", "d MMMM y", "EEEE d MMMM y"], ["HH:mm", "HH:mm:ss", "HH:mm:ss z", "HH:mm:ss zzzz"], ["{1} {0}", "{1}, {0}", "{1} 'à' {0}", u], [",", " ", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0 %", "#,##0.00 ¤", "#E0"], "EUR", "€", "euro", { "ARS": ["$AR", "$"], "AUD": ["$AU", "$"], "BEF": ["FB"], "BMD": ["$BM", "$"], "BND": ["$BN", "$"], "BYN": [u, "р."], "BZD": ["$BZ", "$"], "CAD": ["$CA", "$"], "CLP": ["$CL", "$"], "CNY": [u, "¥"], "COP": ["$CO", "$"], "CYP": ["£CY"], "EGP": [u, "£E"], "FJD": ["$FJ", "$"], "FKP": ["£FK", "£"], "FRF": ["F"], "GBP": ["£GB", "£"], "GIP": ["£GI", "£"], "HKD": [u, "$"], "IEP": ["£IE"], "ILP": ["£IL"], "ITL": ["₤IT"], "JPY": [u, "¥"], "KMF": [u, "FC"], "LBP": ["£LB", "£L"], "MTP": ["£MT"], "MXN": ["$MX", "$"], "NAD": ["$NA", "$"], "NIO": [u, "$C"], "NZD": ["$NZ", "$"], "PHP": [u, "₱"], "RHD": ["$RH"], "RON": [u, "L"], "RWF": [u, "FR"], "SBD": ["$SB", "$"], "SGD": ["$SG", "$"], "SRD": ["$SR", "$"], "TOP": [u, "$T"], "TTD": ["$TT", "$"], "TWD": [u, "NT$"], "USD": ["$US", "$"], "UYU": ["$UY", "$"], "WST": ["$WS"], "XCD": [u, "$"], "XPF": ["FCFP"], "ZMW": [u, "Kw"] }, "ltr", plural];
-export {
- fr_default as default
-};
-/*! Bundled license information:
-
-@angular/common/locales/fr.js:
- (**
- * @license
- * Copyright Google LLC All Rights Reserved.
- *
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://angular.dev/license
- *)
-*/
-//# sourceMappingURL=@angular_common_locales_fr.js.map
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js.map
deleted file mode 100644
index 77dfc47..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_common_locales_fr.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": ["../../../../../../node_modules/@angular/common/locales/fr.js"],
- "sourcesContent": ["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n// THIS CODE IS GENERATED - DO NOT MODIFY.\nconst u = undefined;\nfunction plural(val) {\n const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\\.?/, '').length, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n if (i === 0 || i === 1)\n return 1;\n if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n return 4;\n return 5;\n}\nexport default [\"fr\", [[\"AM\", \"PM\"]], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 1, [6, 0], [\"dd/MM/y\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"ARS\": [\"$AR\", \"$\"], \"AUD\": [\"$AU\", \"$\"], \"BEF\": [\"FB\"], \"BMD\": [\"$BM\", \"$\"], \"BND\": [\"$BN\", \"$\"], \"BYN\": [u, \"р.\"], \"BZD\": [\"$BZ\", \"$\"], \"CAD\": [\"$CA\", \"$\"], \"CLP\": [\"$CL\", \"$\"], \"CNY\": [u, \"¥\"], \"COP\": [\"$CO\", \"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FJD\": [\"$FJ\", \"$\"], \"FKP\": [\"£FK\", \"£\"], \"FRF\": [\"F\"], \"GBP\": [\"£GB\", \"£\"], \"GIP\": [\"£GI\", \"£\"], \"HKD\": [u, \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ITL\": [\"₤IT\"], \"JPY\": [u, \"¥\"], \"KMF\": [u, \"FC\"], \"LBP\": [\"£LB\", \"£L\"], \"MTP\": [\"£MT\"], \"MXN\": [\"$MX\", \"$\"], \"NAD\": [\"$NA\", \"$\"], \"NIO\": [u, \"$C\"], \"NZD\": [\"$NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SBD\": [\"$SB\", \"$\"], \"SGD\": [\"$SG\", \"$\"], \"SRD\": [\"$SR\", \"$\"], \"TOP\": [u, \"$T\"], \"TTD\": [\"$TT\", \"$\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$US\", \"$\"], \"UYU\": [\"$UY\", \"$\"], \"WST\": [\"$WS\"], \"XCD\": [u, \"$\"], \"XPF\": [\"FCFP\"], \"ZMW\": [u, \"Kw\"] }, \"ltr\", plural];\n"],
- "mappings": ";;;AAQA,IAAM,IAAI;AACV,SAAS,OAAO,KAAK;AACjB,QAAM,IAAI,KAAK,IAAI,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,IAAI,SAAS,EAAE,QAAQ,aAAa,EAAE,EAAE,QAAQ,IAAI,SAAS,IAAI,SAAS,EAAE,QAAQ,wBAAwB,IAAI,CAAC,KAAK;AACxK,MAAI,MAAM,KAAK,MAAM;AACjB,WAAO;AACX,MAAI,MAAM,MAAM,EAAE,MAAM,OAAO,IAAI,QAAY,KAAK,MAAM,OAAO,EAAE,KAAK,KAAK,KAAK;AAC9E,WAAO;AACX,SAAO;AACX;AACA,IAAO,aAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG,GAAG,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,GAAG,CAAC,YAAY,SAAS,SAAS,YAAY,SAAS,YAAY,QAAQ,GAAG,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI,CAAC,GAAG,GAAG,CAAC,CAA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O,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,KAAK,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,OAAO,MAAM;",
- "names": []
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_core.js b/.angular/cache/20.3.3/app/vite/deps/@angular_core.js
deleted file mode 100644
index 571bf78..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_core.js
+++ /dev/null
@@ -1,1000 +0,0 @@
-import {
- ANIMATIONS_DISABLED,
- ANIMATION_MODULE_TYPE,
- APP_BOOTSTRAP_LISTENER,
- APP_ID,
- APP_INITIALIZER,
- AcxChangeDetectionStrategy,
- AcxViewEncapsulation,
- AfterRenderManager,
- ApplicationInitStatus,
- ApplicationModule,
- ApplicationRef,
- Attribute,
- CLIENT_RENDER_MODE_FLAG,
- COMPILER_OPTIONS,
- CSP_NONCE,
- CUSTOM_ELEMENTS_SCHEMA,
- ChangeDetectionSchedulerImpl,
- ChangeDetectionStrategy,
- ChangeDetectorRef,
- Compiler,
- CompilerFactory,
- Component,
- ComponentFactory,
- ComponentFactory$1,
- ComponentFactoryResolver$1,
- ComponentRef,
- ComponentRef$1,
- Console,
- ContentChild,
- ContentChildren,
- DEFAULT_CURRENCY_CODE,
- DEFAULT_LOCALE_ID,
- DEFER_BLOCK_CONFIG,
- DEFER_BLOCK_DEPENDENCY_INTERCEPTOR,
- DEHYDRATED_BLOCK_REGISTRY,
- DebugElement,
- DebugEventListener,
- DebugNode,
- DefaultIterableDiffer,
- DeferBlockBehavior,
- DeferBlockState,
- Directive,
- ENABLE_ROOT_COMPONENT_BOOTSTRAP,
- ElementRef,
- EmbeddedViewRef,
- EventEmitter,
- FactoryTarget,
- Framework,
- HOST_TAG_NAME,
- Host,
- HostAttributeToken,
- HostBinding,
- HostListener,
- HydrationStatus,
- IMAGE_CONFIG,
- IMAGE_CONFIG_DEFAULTS,
- IS_ENABLED_BLOCKING_INITIAL_NAVIGATION,
- IS_HYDRATION_DOM_REUSE_ENABLED,
- IS_INCREMENTAL_HYDRATION_ENABLED,
- Inject,
- Injectable,
- Input,
- IterableDiffers,
- JSACTION_BLOCK_ELEMENT_MAP,
- JSACTION_EVENT_CONTRACT,
- KeyValueDiffers,
- LContext,
- LOCALE_ID,
- LocaleDataIndex,
- MAX_ANIMATION_TIMEOUT,
- MissingTranslationStrategy,
- ModuleWithComponentFactories,
- NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR,
- NO_CHANGE,
- NO_ERRORS_SCHEMA,
- NgModule,
- NgModuleFactory,
- NgModuleFactory$1,
- NgModuleRef,
- NgModuleRef$1,
- NgProbeToken,
- NgZone,
- NoopNgZone,
- Optional,
- Output,
- PACKAGE_ROOT_URL,
- PERFORMANCE_MARK_PREFIX,
- PLATFORM_ID,
- PLATFORM_INITIALIZER,
- PROVIDED_NG_ZONE,
- Pipe,
- PlatformRef,
- Query,
- QueryList,
- REQUEST,
- REQUEST_CONTEXT,
- RESPONSE_INIT,
- ReflectionCapabilities,
- Renderer2,
- RendererFactory2,
- RendererStyleFlags2,
- SSR_CONTENT_INTEGRITY_MARKER,
- Sanitizer,
- SecurityContext,
- Self,
- SimpleChange,
- SkipSelf,
- TESTABILITY,
- TESTABILITY_GETTER,
- TRANSLATIONS,
- TRANSLATIONS_FORMAT,
- TemplateRef,
- Testability,
- TestabilityRegistry,
- TimerScheduler,
- TracingAction,
- TracingService,
- TransferState,
- Type,
- ViewChild,
- ViewChildren,
- ViewContainerRef,
- ViewEncapsulation,
- ViewRef,
- ViewRef2,
- _sanitizeHtml,
- _sanitizeUrl,
- afterEveryRender,
- afterNextRender,
- afterRenderEffect,
- allLeavingAnimations,
- allowSanitizationBypassAndThrow,
- annotateForHydration,
- asNativeElements,
- assertPlatform,
- booleanAttribute,
- bypassSanitizationTrustHtml,
- bypassSanitizationTrustResourceUrl,
- bypassSanitizationTrustScript,
- bypassSanitizationTrustStyle,
- bypassSanitizationTrustUrl,
- clearResolutionOfComponentResourcesQueue,
- compileComponent,
- compileDirective,
- compileNgModule,
- compileNgModuleDefs,
- compileNgModuleFactory,
- compilePipe,
- contentChild,
- contentChildren,
- createComponent,
- createEnvironmentInjector,
- createNgModule,
- createNgModuleRef,
- createOrReusePlatformInjector,
- createPlatform,
- createPlatformFactory,
- defaultIterableDiffers,
- defaultKeyValueDiffers,
- depsTracker,
- destroyPlatform,
- devModeEqual,
- disableProfiling,
- enableProdMode,
- enableProfiling,
- enableProfiling2,
- findLocaleData,
- flushModuleScopingQueueAsMuchAsPossible,
- generateStandaloneInDeclarationsError,
- getAsyncClassMetadataFn,
- getClosestComponentName,
- getDebugNode,
- getDeferBlocks$1,
- getDirectives,
- getDocument,
- getHostElement,
- getLContext,
- getLocaleCurrencyCode,
- getLocalePluralCase,
- getModuleFactory,
- getNgModuleById,
- getPlatform,
- getSanitizationBypassType,
- getTransferState,
- inferTagNameFromDefinition,
- injectChangeDetectorRef,
- input,
- inputBinding,
- internalCreateApplication,
- internalProvideZoneChangeDetection,
- isBoundToModule,
- isComponentDefPendingResolution,
- isDevMode,
- isNgModule,
- isPromise,
- isSubscribable,
- isViewDirty,
- makeStateKey,
- markForRefresh,
- mergeApplicationConfig,
- model,
- noSideEffects,
- numberAttribute,
- output,
- outputBinding,
- patchComponentDefWithScope,
- performanceMarkFeature,
- platformCore,
- provideAppInitializer,
- provideCheckNoChangesConfig,
- provideNgReflectAttributes,
- providePlatformInitializer,
- provideZoneChangeDetection,
- provideZonelessChangeDetection,
- publishExternalGlobalUtil,
- readHydrationInfo,
- reflectComponentType,
- registerLocaleData,
- registerNgModuleType,
- renderDeferBlockState,
- resetCompiledComponents,
- resetJitOptions,
- resolveComponentResources,
- restoreComponentResolutionQueue,
- setAllowDuplicateNgModuleIdsForTest,
- setClassMetadata,
- setClassMetadataAsync,
- setDocument,
- setLocaleId,
- setTestabilityGetter,
- startMeasuring,
- stopMeasuring,
- transitiveScopesFor,
- triggerResourceLoading,
- twoWayBinding,
- unregisterAllLocaleData,
- unwrapSafeValue,
- viewChild,
- viewChildren,
- withDomHydration,
- withEventReplay,
- withI18nSupport,
- withIncrementalHydration,
- ɵINPUT_SIGNAL_BRAND_WRITE_TYPE,
- ɵassertType,
- ɵgetUnknownElementStrictMode,
- ɵgetUnknownPropertyStrictMode,
- ɵsetClassDebugInfo,
- ɵsetUnknownElementStrictMode,
- ɵsetUnknownPropertyStrictMode,
- ɵɵCopyDefinitionFeature,
- ɵɵExternalStylesFeature,
- ɵɵHostDirectivesFeature,
- ɵɵInheritDefinitionFeature,
- ɵɵNgOnChangesFeature,
- ɵɵProvidersFeature,
- ɵɵadvance,
- ɵɵanimateEnter,
- ɵɵanimateEnterListener,
- ɵɵanimateLeave,
- ɵɵanimateLeaveListener,
- ɵɵariaProperty,
- ɵɵattachSourceLocations,
- ɵɵattribute,
- ɵɵclassMap,
- ɵɵclassProp,
- ɵɵcomponentInstance,
- ɵɵconditional,
- ɵɵconditionalBranchCreate,
- ɵɵconditionalCreate,
- ɵɵcontentQuery,
- ɵɵcontentQuerySignal,
- ɵɵdeclareLet,
- ɵɵdefer,
- ɵɵdeferEnableTimerScheduling,
- ɵɵdeferHydrateNever,
- ɵɵdeferHydrateOnHover,
- ɵɵdeferHydrateOnIdle,
- ɵɵdeferHydrateOnImmediate,
- ɵɵdeferHydrateOnInteraction,
- ɵɵdeferHydrateOnTimer,
- ɵɵdeferHydrateOnViewport,
- ɵɵdeferHydrateWhen,
- ɵɵdeferOnHover,
- ɵɵdeferOnIdle,
- ɵɵdeferOnImmediate,
- ɵɵdeferOnInteraction,
- ɵɵdeferOnTimer,
- ɵɵdeferOnViewport,
- ɵɵdeferPrefetchOnHover,
- ɵɵdeferPrefetchOnIdle,
- ɵɵdeferPrefetchOnImmediate,
- ɵɵdeferPrefetchOnInteraction,
- ɵɵdeferPrefetchOnTimer,
- ɵɵdeferPrefetchOnViewport,
- ɵɵdeferPrefetchWhen,
- ɵɵdeferWhen,
- ɵɵdefineComponent,
- ɵɵdefineDirective,
- ɵɵdefineNgModule,
- ɵɵdefinePipe,
- ɵɵdirectiveInject,
- ɵɵdomElement,
- ɵɵdomElementContainer,
- ɵɵdomElementContainerEnd,
- ɵɵdomElementContainerStart,
- ɵɵdomElementEnd,
- ɵɵdomElementStart,
- ɵɵdomListener,
- ɵɵdomProperty,
- ɵɵdomTemplate,
- ɵɵelement,
- ɵɵelementContainer,
- ɵɵelementContainerEnd,
- ɵɵelementContainerStart,
- ɵɵelementEnd,
- ɵɵelementStart,
- ɵɵgetComponentDepsFactory,
- ɵɵgetCurrentView,
- ɵɵgetInheritedFactory,
- ɵɵgetReplaceMetadataURL,
- ɵɵi18n,
- ɵɵi18nApply,
- ɵɵi18nAttributes,
- ɵɵi18nEnd,
- ɵɵi18nExp,
- ɵɵi18nPostprocess,
- ɵɵi18nStart,
- ɵɵinjectAttribute,
- ɵɵinterpolate,
- ɵɵinterpolate1,
- ɵɵinterpolate2,
- ɵɵinterpolate3,
- ɵɵinterpolate4,
- ɵɵinterpolate5,
- ɵɵinterpolate6,
- ɵɵinterpolate7,
- ɵɵinterpolate8,
- ɵɵinterpolateV,
- ɵɵinvalidFactory,
- ɵɵlistener,
- ɵɵloadQuery,
- ɵɵnextContext,
- ɵɵngDeclareClassMetadata,
- ɵɵngDeclareClassMetadataAsync,
- ɵɵngDeclareComponent,
- ɵɵngDeclareDirective,
- ɵɵngDeclareFactory,
- ɵɵngDeclareInjectable,
- ɵɵngDeclareInjector,
- ɵɵngDeclareNgModule,
- ɵɵngDeclarePipe,
- ɵɵpipe,
- ɵɵpipeBind1,
- ɵɵpipeBind2,
- ɵɵpipeBind3,
- ɵɵpipeBind4,
- ɵɵpipeBindV,
- ɵɵprojection,
- ɵɵprojectionDef,
- ɵɵproperty,
- ɵɵpureFunction0,
- ɵɵpureFunction1,
- ɵɵpureFunction2,
- ɵɵpureFunction3,
- ɵɵpureFunction4,
- ɵɵpureFunction5,
- ɵɵpureFunction6,
- ɵɵpureFunction7,
- ɵɵpureFunction8,
- ɵɵpureFunctionV,
- ɵɵqueryAdvance,
- ɵɵqueryRefresh,
- ɵɵreadContextLet,
- ɵɵreference,
- ɵɵrepeater,
- ɵɵrepeaterCreate,
- ɵɵrepeaterTrackByIdentity,
- ɵɵrepeaterTrackByIndex,
- ɵɵreplaceMetadata,
- ɵɵresolveBody,
- ɵɵresolveDocument,
- ɵɵresolveWindow,
- ɵɵsanitizeHtml,
- ɵɵsanitizeResourceUrl,
- ɵɵsanitizeScript,
- ɵɵsanitizeStyle,
- ɵɵsanitizeUrl,
- ɵɵsanitizeUrlOrResourceUrl,
- ɵɵsetComponentScope,
- ɵɵsetNgModuleScope,
- ɵɵstoreLet,
- ɵɵstyleMap,
- ɵɵstyleProp,
- ɵɵsyntheticHostListener,
- ɵɵsyntheticHostProperty,
- ɵɵtemplate,
- ɵɵtemplateRefExtractor,
- ɵɵtext,
- ɵɵtextInterpolate,
- ɵɵtextInterpolate1,
- ɵɵtextInterpolate2,
- ɵɵtextInterpolate3,
- ɵɵtextInterpolate4,
- ɵɵtextInterpolate5,
- ɵɵtextInterpolate6,
- ɵɵtextInterpolate7,
- ɵɵtextInterpolate8,
- ɵɵtextInterpolateV,
- ɵɵtrustConstantHtml,
- ɵɵtrustConstantResourceUrl,
- ɵɵtwoWayBindingSet,
- ɵɵtwoWayListener,
- ɵɵtwoWayProperty,
- ɵɵvalidateIframeAttribute,
- ɵɵviewQuery,
- ɵɵviewQuerySignal
-} from "./chunk-UEBPW2IJ.js";
-import {
- CONTAINER_HEADER_OFFSET,
- ChangeDetectionScheduler,
- DOCUMENT,
- DestroyRef,
- ENVIRONMENT_INITIALIZER,
- EffectScheduler,
- EnvironmentInjector,
- ErrorHandler,
- INJECTOR$1,
- INJECTOR_SCOPE,
- INTERNAL_APPLICATION_ERROR_HANDLER,
- InjectionToken,
- Injector,
- NG_COMP_DEF,
- NG_DIR_DEF,
- NG_ELEMENT_ID,
- NG_INJ_DEF,
- NG_MOD_DEF,
- NG_PIPE_DEF,
- NG_PROV_DEF,
- OutputEmitterRef,
- PendingTasks,
- PendingTasksInternal,
- R3Injector,
- ResourceImpl,
- RuntimeError,
- SIGNAL,
- VERSION,
- Version,
- XSS_SECURITY_URL,
- ZONELESS_ENABLED,
- _global,
- assertInInjectionContext,
- assertNotInReactiveContext,
- computed,
- convertToBitFlags,
- createInjector,
- defineInjectable,
- effect,
- encapsulateResourceError,
- formatRuntimeError,
- forwardRef,
- getComponentDef,
- getInjectableDef,
- getOutputDestroyRef,
- importProvidersFrom,
- inject,
- isEnvironmentProviders,
- isInjectable,
- isSignal,
- isStandalone,
- linkedSignal,
- makeEnvironmentProviders,
- provideBrowserGlobalErrorListeners,
- provideEnvironmentInitializer,
- resolveForwardRef,
- resource,
- runInInjectionContext,
- setAlternateWeakRefImpl,
- setCurrentInjector,
- setInjectorProfilerContext,
- signal,
- store,
- stringify,
- truncateMiddle,
- untracked,
- ɵunwrapWritableSignal,
- ɵɵdefineInjectable,
- ɵɵdefineInjector,
- ɵɵdisableBindings,
- ɵɵenableBindings,
- ɵɵinject,
- ɵɵinvalidFactoryDep,
- ɵɵnamespaceHTML,
- ɵɵnamespaceMathML,
- ɵɵnamespaceSVG,
- ɵɵresetView,
- ɵɵrestoreView
-} from "./chunk-QLJXSR7F.js";
-import "./chunk-RSS3ODKE.js";
-import "./chunk-TKSB4YUA.js";
-export {
- ANIMATION_MODULE_TYPE,
- APP_BOOTSTRAP_LISTENER,
- APP_ID,
- APP_INITIALIZER,
- ApplicationInitStatus,
- ApplicationModule,
- ApplicationRef,
- Attribute,
- COMPILER_OPTIONS,
- CSP_NONCE,
- CUSTOM_ELEMENTS_SCHEMA,
- ChangeDetectionStrategy,
- ChangeDetectorRef,
- Compiler,
- CompilerFactory,
- Component,
- ComponentFactory$1 as ComponentFactory,
- ComponentFactoryResolver$1 as ComponentFactoryResolver,
- ComponentRef$1 as ComponentRef,
- ContentChild,
- ContentChildren,
- DEFAULT_CURRENCY_CODE,
- DOCUMENT,
- DebugElement,
- DebugEventListener,
- DebugNode,
- DefaultIterableDiffer,
- DestroyRef,
- Directive,
- ENVIRONMENT_INITIALIZER,
- ElementRef,
- EmbeddedViewRef,
- EnvironmentInjector,
- ErrorHandler,
- EventEmitter,
- HOST_TAG_NAME,
- Host,
- HostAttributeToken,
- HostBinding,
- HostListener,
- INJECTOR$1 as INJECTOR,
- Inject,
- Injectable,
- InjectionToken,
- Injector,
- Input,
- IterableDiffers,
- KeyValueDiffers,
- LOCALE_ID,
- MAX_ANIMATION_TIMEOUT,
- MissingTranslationStrategy,
- ModuleWithComponentFactories,
- NO_ERRORS_SCHEMA,
- NgModule,
- NgModuleFactory$1 as NgModuleFactory,
- NgModuleRef$1 as NgModuleRef,
- NgProbeToken,
- NgZone,
- Optional,
- Output,
- OutputEmitterRef,
- PACKAGE_ROOT_URL,
- PLATFORM_ID,
- PLATFORM_INITIALIZER,
- PendingTasks,
- Pipe,
- PlatformRef,
- Query,
- QueryList,
- REQUEST,
- REQUEST_CONTEXT,
- RESPONSE_INIT,
- Renderer2,
- RendererFactory2,
- RendererStyleFlags2,
- Sanitizer,
- SecurityContext,
- Self,
- SimpleChange,
- SkipSelf,
- TRANSLATIONS,
- TRANSLATIONS_FORMAT,
- TemplateRef,
- Testability,
- TestabilityRegistry,
- TransferState,
- Type,
- VERSION,
- Version,
- ViewChild,
- ViewChildren,
- ViewContainerRef,
- ViewEncapsulation,
- ViewRef2 as ViewRef,
- afterEveryRender,
- afterNextRender,
- afterRenderEffect,
- asNativeElements,
- assertInInjectionContext,
- assertNotInReactiveContext,
- assertPlatform,
- booleanAttribute,
- computed,
- contentChild,
- contentChildren,
- createComponent,
- createEnvironmentInjector,
- createNgModule,
- createNgModuleRef,
- createPlatform,
- createPlatformFactory,
- defineInjectable,
- destroyPlatform,
- effect,
- enableProdMode,
- enableProfiling,
- forwardRef,
- getDebugNode,
- getModuleFactory,
- getNgModuleById,
- getPlatform,
- importProvidersFrom,
- inject,
- input,
- inputBinding,
- isDevMode,
- isSignal,
- isStandalone,
- linkedSignal,
- makeEnvironmentProviders,
- makeStateKey,
- mergeApplicationConfig,
- model,
- numberAttribute,
- output,
- outputBinding,
- platformCore,
- provideAppInitializer,
- provideBrowserGlobalErrorListeners,
- provideCheckNoChangesConfig,
- provideEnvironmentInitializer,
- provideNgReflectAttributes,
- providePlatformInitializer,
- provideZoneChangeDetection,
- provideZonelessChangeDetection,
- reflectComponentType,
- resolveForwardRef,
- resource,
- runInInjectionContext,
- setTestabilityGetter,
- signal,
- twoWayBinding,
- untracked,
- viewChild,
- viewChildren,
- ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED,
- AcxChangeDetectionStrategy as ɵAcxChangeDetectionStrategy,
- AcxViewEncapsulation as ɵAcxViewEncapsulation,
- AfterRenderManager as ɵAfterRenderManager,
- CLIENT_RENDER_MODE_FLAG as ɵCLIENT_RENDER_MODE_FLAG,
- CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET,
- ChangeDetectionScheduler as ɵChangeDetectionScheduler,
- ChangeDetectionSchedulerImpl as ɵChangeDetectionSchedulerImpl,
- ComponentFactory$1 as ɵComponentFactory,
- Console as ɵConsole,
- DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID,
- DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG,
- DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR,
- DEHYDRATED_BLOCK_REGISTRY as ɵDEHYDRATED_BLOCK_REGISTRY,
- DeferBlockBehavior as ɵDeferBlockBehavior,
- DeferBlockState as ɵDeferBlockState,
- ENABLE_ROOT_COMPONENT_BOOTSTRAP as ɵENABLE_ROOT_COMPONENT_BOOTSTRAP,
- EffectScheduler as ɵEffectScheduler,
- Framework as ɵFramework,
- HydrationStatus as ɵHydrationStatus,
- IMAGE_CONFIG as ɵIMAGE_CONFIG,
- IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS,
- INJECTOR_SCOPE as ɵINJECTOR_SCOPE,
- ɵINPUT_SIGNAL_BRAND_WRITE_TYPE,
- INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER,
- IS_ENABLED_BLOCKING_INITIAL_NAVIGATION as ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION,
- IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED,
- IS_INCREMENTAL_HYDRATION_ENABLED as ɵIS_INCREMENTAL_HYDRATION_ENABLED,
- JSACTION_BLOCK_ELEMENT_MAP as ɵJSACTION_BLOCK_ELEMENT_MAP,
- JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT,
- LContext as ɵLContext,
- LocaleDataIndex as ɵLocaleDataIndex,
- NG_COMP_DEF as ɵNG_COMP_DEF,
- NG_DIR_DEF as ɵNG_DIR_DEF,
- NG_ELEMENT_ID as ɵNG_ELEMENT_ID,
- NG_INJ_DEF as ɵNG_INJ_DEF,
- NG_MOD_DEF as ɵNG_MOD_DEF,
- NG_PIPE_DEF as ɵNG_PIPE_DEF,
- NG_PROV_DEF as ɵNG_PROV_DEF,
- NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR,
- NO_CHANGE as ɵNO_CHANGE,
- NgModuleFactory as ɵNgModuleFactory,
- NoopNgZone as ɵNoopNgZone,
- PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX,
- PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE,
- PendingTasksInternal as ɵPendingTasksInternal,
- R3Injector as ɵR3Injector,
- ReflectionCapabilities as ɵReflectionCapabilities,
- ComponentFactory as ɵRender3ComponentFactory,
- ComponentRef as ɵRender3ComponentRef,
- NgModuleRef as ɵRender3NgModuleRef,
- ResourceImpl as ɵResourceImpl,
- RuntimeError as ɵRuntimeError,
- SIGNAL as ɵSIGNAL,
- SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER,
- TESTABILITY as ɵTESTABILITY,
- TESTABILITY_GETTER as ɵTESTABILITY_GETTER,
- TimerScheduler as ɵTimerScheduler,
- TracingAction as ɵTracingAction,
- TracingService as ɵTracingService,
- ViewRef as ɵViewRef,
- XSS_SECURITY_URL as ɵXSS_SECURITY_URL,
- ZONELESS_ENABLED as ɵZONELESS_ENABLED,
- _sanitizeHtml as ɵ_sanitizeHtml,
- _sanitizeUrl as ɵ_sanitizeUrl,
- allLeavingAnimations as ɵallLeavingAnimations,
- allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow,
- annotateForHydration as ɵannotateForHydration,
- ɵassertType,
- bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml,
- bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl,
- bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript,
- bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle,
- bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl,
- clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue,
- compileComponent as ɵcompileComponent,
- compileDirective as ɵcompileDirective,
- compileNgModule as ɵcompileNgModule,
- compileNgModuleDefs as ɵcompileNgModuleDefs,
- compileNgModuleFactory as ɵcompileNgModuleFactory,
- compilePipe as ɵcompilePipe,
- convertToBitFlags as ɵconvertToBitFlags,
- createInjector as ɵcreateInjector,
- createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector,
- defaultIterableDiffers as ɵdefaultIterableDiffers,
- defaultKeyValueDiffers as ɵdefaultKeyValueDiffers,
- depsTracker as ɵdepsTracker,
- devModeEqual as ɵdevModeEqual,
- disableProfiling as ɵdisableProfiling,
- enableProfiling2 as ɵenableProfiling,
- encapsulateResourceError as ɵencapsulateResourceError,
- findLocaleData as ɵfindLocaleData,
- flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible,
- formatRuntimeError as ɵformatRuntimeError,
- generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError,
- getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn,
- getClosestComponentName as ɵgetClosestComponentName,
- getComponentDef as ɵgetComponentDef,
- getDebugNode as ɵgetDebugNode,
- getDeferBlocks$1 as ɵgetDeferBlocks,
- getDirectives as ɵgetDirectives,
- getDocument as ɵgetDocument,
- getHostElement as ɵgetHostElement,
- getInjectableDef as ɵgetInjectableDef,
- getLContext as ɵgetLContext,
- getLocaleCurrencyCode as ɵgetLocaleCurrencyCode,
- getLocalePluralCase as ɵgetLocalePluralCase,
- getOutputDestroyRef as ɵgetOutputDestroyRef,
- getSanitizationBypassType as ɵgetSanitizationBypassType,
- getTransferState as ɵgetTransferState,
- ɵgetUnknownElementStrictMode,
- ɵgetUnknownPropertyStrictMode,
- _global as ɵglobal,
- inferTagNameFromDefinition as ɵinferTagNameFromDefinition,
- injectChangeDetectorRef as ɵinjectChangeDetectorRef,
- internalCreateApplication as ɵinternalCreateApplication,
- internalProvideZoneChangeDetection as ɵinternalProvideZoneChangeDetection,
- isBoundToModule as ɵisBoundToModule,
- isComponentDefPendingResolution as ɵisComponentDefPendingResolution,
- isEnvironmentProviders as ɵisEnvironmentProviders,
- isInjectable as ɵisInjectable,
- isNgModule as ɵisNgModule,
- isPromise as ɵisPromise,
- isSubscribable as ɵisSubscribable,
- isViewDirty as ɵisViewDirty,
- markForRefresh as ɵmarkForRefresh,
- noSideEffects as ɵnoSideEffects,
- patchComponentDefWithScope as ɵpatchComponentDefWithScope,
- performanceMarkFeature as ɵperformanceMarkFeature,
- publishExternalGlobalUtil as ɵpublishExternalGlobalUtil,
- readHydrationInfo as ɵreadHydrationInfo,
- registerLocaleData as ɵregisterLocaleData,
- renderDeferBlockState as ɵrenderDeferBlockState,
- resetCompiledComponents as ɵresetCompiledComponents,
- resetJitOptions as ɵresetJitOptions,
- resolveComponentResources as ɵresolveComponentResources,
- restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue,
- setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest,
- setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl,
- ɵsetClassDebugInfo,
- setClassMetadata as ɵsetClassMetadata,
- setClassMetadataAsync as ɵsetClassMetadataAsync,
- setCurrentInjector as ɵsetCurrentInjector,
- setDocument as ɵsetDocument,
- setInjectorProfilerContext as ɵsetInjectorProfilerContext,
- setLocaleId as ɵsetLocaleId,
- ɵsetUnknownElementStrictMode,
- ɵsetUnknownPropertyStrictMode,
- startMeasuring as ɵstartMeasuring,
- stopMeasuring as ɵstopMeasuring,
- store as ɵstore,
- stringify as ɵstringify,
- transitiveScopesFor as ɵtransitiveScopesFor,
- triggerResourceLoading as ɵtriggerResourceLoading,
- truncateMiddle as ɵtruncateMiddle,
- unregisterAllLocaleData as ɵunregisterLocaleData,
- unwrapSafeValue as ɵunwrapSafeValue,
- ɵunwrapWritableSignal,
- withDomHydration as ɵwithDomHydration,
- withEventReplay as ɵwithEventReplay,
- withI18nSupport as ɵwithI18nSupport,
- withIncrementalHydration as ɵwithIncrementalHydration,
- ɵɵCopyDefinitionFeature,
- ɵɵExternalStylesFeature,
- FactoryTarget as ɵɵFactoryTarget,
- ɵɵHostDirectivesFeature,
- ɵɵInheritDefinitionFeature,
- ɵɵNgOnChangesFeature,
- ɵɵProvidersFeature,
- ɵɵadvance,
- ɵɵanimateEnter,
- ɵɵanimateEnterListener,
- ɵɵanimateLeave,
- ɵɵanimateLeaveListener,
- ɵɵariaProperty,
- ɵɵattachSourceLocations,
- ɵɵattribute,
- ɵɵclassMap,
- ɵɵclassProp,
- ɵɵcomponentInstance,
- ɵɵconditional,
- ɵɵconditionalBranchCreate,
- ɵɵconditionalCreate,
- ɵɵcontentQuery,
- ɵɵcontentQuerySignal,
- ɵɵdeclareLet,
- ɵɵdefer,
- ɵɵdeferEnableTimerScheduling,
- ɵɵdeferHydrateNever,
- ɵɵdeferHydrateOnHover,
- ɵɵdeferHydrateOnIdle,
- ɵɵdeferHydrateOnImmediate,
- ɵɵdeferHydrateOnInteraction,
- ɵɵdeferHydrateOnTimer,
- ɵɵdeferHydrateOnViewport,
- ɵɵdeferHydrateWhen,
- ɵɵdeferOnHover,
- ɵɵdeferOnIdle,
- ɵɵdeferOnImmediate,
- ɵɵdeferOnInteraction,
- ɵɵdeferOnTimer,
- ɵɵdeferOnViewport,
- ɵɵdeferPrefetchOnHover,
- ɵɵdeferPrefetchOnIdle,
- ɵɵdeferPrefetchOnImmediate,
- ɵɵdeferPrefetchOnInteraction,
- ɵɵdeferPrefetchOnTimer,
- ɵɵdeferPrefetchOnViewport,
- ɵɵdeferPrefetchWhen,
- ɵɵdeferWhen,
- ɵɵdefineComponent,
- ɵɵdefineDirective,
- ɵɵdefineInjectable,
- ɵɵdefineInjector,
- ɵɵdefineNgModule,
- ɵɵdefinePipe,
- ɵɵdirectiveInject,
- ɵɵdisableBindings,
- ɵɵdomElement,
- ɵɵdomElementContainer,
- ɵɵdomElementContainerEnd,
- ɵɵdomElementContainerStart,
- ɵɵdomElementEnd,
- ɵɵdomElementStart,
- ɵɵdomListener,
- ɵɵdomProperty,
- ɵɵdomTemplate,
- ɵɵelement,
- ɵɵelementContainer,
- ɵɵelementContainerEnd,
- ɵɵelementContainerStart,
- ɵɵelementEnd,
- ɵɵelementStart,
- ɵɵenableBindings,
- ɵɵgetComponentDepsFactory,
- ɵɵgetCurrentView,
- ɵɵgetInheritedFactory,
- ɵɵgetReplaceMetadataURL,
- ɵɵi18n,
- ɵɵi18nApply,
- ɵɵi18nAttributes,
- ɵɵi18nEnd,
- ɵɵi18nExp,
- ɵɵi18nPostprocess,
- ɵɵi18nStart,
- ɵɵinject,
- ɵɵinjectAttribute,
- ɵɵinterpolate,
- ɵɵinterpolate1,
- ɵɵinterpolate2,
- ɵɵinterpolate3,
- ɵɵinterpolate4,
- ɵɵinterpolate5,
- ɵɵinterpolate6,
- ɵɵinterpolate7,
- ɵɵinterpolate8,
- ɵɵinterpolateV,
- ɵɵinvalidFactory,
- ɵɵinvalidFactoryDep,
- ɵɵlistener,
- ɵɵloadQuery,
- ɵɵnamespaceHTML,
- ɵɵnamespaceMathML,
- ɵɵnamespaceSVG,
- ɵɵnextContext,
- ɵɵngDeclareClassMetadata,
- ɵɵngDeclareClassMetadataAsync,
- ɵɵngDeclareComponent,
- ɵɵngDeclareDirective,
- ɵɵngDeclareFactory,
- ɵɵngDeclareInjectable,
- ɵɵngDeclareInjector,
- ɵɵngDeclareNgModule,
- ɵɵngDeclarePipe,
- ɵɵpipe,
- ɵɵpipeBind1,
- ɵɵpipeBind2,
- ɵɵpipeBind3,
- ɵɵpipeBind4,
- ɵɵpipeBindV,
- ɵɵprojection,
- ɵɵprojectionDef,
- ɵɵproperty,
- ɵɵpureFunction0,
- ɵɵpureFunction1,
- ɵɵpureFunction2,
- ɵɵpureFunction3,
- ɵɵpureFunction4,
- ɵɵpureFunction5,
- ɵɵpureFunction6,
- ɵɵpureFunction7,
- ɵɵpureFunction8,
- ɵɵpureFunctionV,
- ɵɵqueryAdvance,
- ɵɵqueryRefresh,
- ɵɵreadContextLet,
- ɵɵreference,
- registerNgModuleType as ɵɵregisterNgModuleType,
- ɵɵrepeater,
- ɵɵrepeaterCreate,
- ɵɵrepeaterTrackByIdentity,
- ɵɵrepeaterTrackByIndex,
- ɵɵreplaceMetadata,
- ɵɵresetView,
- ɵɵresolveBody,
- ɵɵresolveDocument,
- ɵɵresolveWindow,
- ɵɵrestoreView,
- ɵɵsanitizeHtml,
- ɵɵsanitizeResourceUrl,
- ɵɵsanitizeScript,
- ɵɵsanitizeStyle,
- ɵɵsanitizeUrl,
- ɵɵsanitizeUrlOrResourceUrl,
- ɵɵsetComponentScope,
- ɵɵsetNgModuleScope,
- ɵɵstoreLet,
- ɵɵstyleMap,
- ɵɵstyleProp,
- ɵɵsyntheticHostListener,
- ɵɵsyntheticHostProperty,
- ɵɵtemplate,
- ɵɵtemplateRefExtractor,
- ɵɵtext,
- ɵɵtextInterpolate,
- ɵɵtextInterpolate1,
- ɵɵtextInterpolate2,
- ɵɵtextInterpolate3,
- ɵɵtextInterpolate4,
- ɵɵtextInterpolate5,
- ɵɵtextInterpolate6,
- ɵɵtextInterpolate7,
- ɵɵtextInterpolate8,
- ɵɵtextInterpolateV,
- ɵɵtrustConstantHtml,
- ɵɵtrustConstantResourceUrl,
- ɵɵtwoWayBindingSet,
- ɵɵtwoWayListener,
- ɵɵtwoWayProperty,
- ɵɵvalidateIframeAttribute,
- ɵɵviewQuery,
- ɵɵviewQuerySignal
-};
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_core.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_core.js.map
deleted file mode 100644
index 9865211..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_core.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": [],
- "sourcesContent": [],
- "mappings": "",
- "names": []
-}
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js b/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js
deleted file mode 100644
index 0b79833..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js
+++ /dev/null
@@ -1,251 +0,0 @@
-import {
- DestroyRef,
- Injector,
- PendingTasks,
- RuntimeError,
- assertInInjectionContext,
- assertNotInReactiveContext,
- computed,
- effect,
- encapsulateResourceError,
- getOutputDestroyRef,
- inject,
- resource,
- signal,
- untracked
-} from "./chunk-QLJXSR7F.js";
-import {
- Observable,
- ReplaySubject,
- takeUntil
-} from "./chunk-RSS3ODKE.js";
-import {
- __spreadProps,
- __spreadValues
-} from "./chunk-TKSB4YUA.js";
-
-// node_modules/@angular/core/fesm2022/rxjs-interop.mjs
-function takeUntilDestroyed(destroyRef) {
- if (!destroyRef) {
- ngDevMode && assertInInjectionContext(takeUntilDestroyed);
- destroyRef = inject(DestroyRef);
- }
- const destroyed$ = new Observable((subscriber) => {
- if (destroyRef.destroyed) {
- subscriber.next();
- return;
- }
- const unregisterFn = destroyRef.onDestroy(subscriber.next.bind(subscriber));
- return unregisterFn;
- });
- return (source) => {
- return source.pipe(takeUntil(destroyed$));
- };
-}
-var OutputFromObservableRef = class {
- source;
- destroyed = false;
- destroyRef = inject(DestroyRef);
- constructor(source) {
- this.source = source;
- this.destroyRef.onDestroy(() => {
- this.destroyed = true;
- });
- }
- subscribe(callbackFn) {
- if (this.destroyed) {
- throw new RuntimeError(953, ngDevMode && "Unexpected subscription to destroyed `OutputRef`. The owning directive/component is destroyed.");
- }
- const subscription = this.source.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
- next: (value) => callbackFn(value)
- });
- return {
- unsubscribe: () => subscription.unsubscribe()
- };
- }
-};
-function outputFromObservable(observable, opts) {
- ngDevMode && assertInInjectionContext(outputFromObservable);
- return new OutputFromObservableRef(observable);
-}
-function outputToObservable(ref) {
- const destroyRef = getOutputDestroyRef(ref);
- return new Observable((observer) => {
- const unregisterOnDestroy = destroyRef?.onDestroy(() => observer.complete());
- const subscription = ref.subscribe((v) => observer.next(v));
- return () => {
- subscription.unsubscribe();
- unregisterOnDestroy?.();
- };
- });
-}
-function toObservable(source, options) {
- if (ngDevMode && !options?.injector) {
- assertInInjectionContext(toObservable);
- }
- const injector = options?.injector ?? inject(Injector);
- const subject = new ReplaySubject(1);
- const watcher = effect(() => {
- let value;
- try {
- value = source();
- } catch (err) {
- untracked(() => subject.error(err));
- return;
- }
- untracked(() => subject.next(value));
- }, { injector, manualCleanup: true });
- injector.get(DestroyRef).onDestroy(() => {
- watcher.destroy();
- subject.complete();
- });
- return subject.asObservable();
-}
-function toSignal(source, options) {
- typeof ngDevMode !== "undefined" && ngDevMode && assertNotInReactiveContext(toSignal, "Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");
- const requiresCleanup = !options?.manualCleanup;
- if (ngDevMode && requiresCleanup && !options?.injector) {
- assertInInjectionContext(toSignal);
- }
- const cleanupRef = requiresCleanup ? options?.injector?.get(DestroyRef) ?? inject(DestroyRef) : null;
- const equal = makeToSignalEqual(options?.equal);
- let state;
- if (options?.requireSync) {
- state = signal({
- kind: 0
- /* StateKind.NoValue */
- }, { equal });
- } else {
- state = signal({ kind: 1, value: options?.initialValue }, { equal });
- }
- let destroyUnregisterFn;
- const sub = source.subscribe({
- next: (value) => state.set({ kind: 1, value }),
- error: (error) => {
- state.set({ kind: 2, error });
- destroyUnregisterFn?.();
- },
- complete: () => {
- destroyUnregisterFn?.();
- }
- // Completion of the Observable is meaningless to the signal. Signals don't have a concept of
- // "complete".
- });
- if (options?.requireSync && state().kind === 0) {
- throw new RuntimeError(601, (typeof ngDevMode === "undefined" || ngDevMode) && "`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");
- }
- destroyUnregisterFn = cleanupRef?.onDestroy(sub.unsubscribe.bind(sub));
- return computed(() => {
- const current = state();
- switch (current.kind) {
- case 1:
- return current.value;
- case 2:
- throw current.error;
- case 0:
- throw new RuntimeError(601, (typeof ngDevMode === "undefined" || ngDevMode) && "`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");
- }
- }, { equal: options?.equal });
-}
-function makeToSignalEqual(userEquality = Object.is) {
- return (a, b) => a.kind === 1 && b.kind === 1 && userEquality(a.value, b.value);
-}
-function pendingUntilEvent(injector) {
- if (injector === void 0) {
- ngDevMode && assertInInjectionContext(pendingUntilEvent);
- injector = inject(Injector);
- }
- const taskService = injector.get(PendingTasks);
- return (sourceObservable) => {
- return new Observable((originalSubscriber) => {
- const removeTask = taskService.add();
- let cleanedUp = false;
- function cleanupTask() {
- if (cleanedUp) {
- return;
- }
- removeTask();
- cleanedUp = true;
- }
- const innerSubscription = sourceObservable.subscribe({
- next: (v) => {
- originalSubscriber.next(v);
- cleanupTask();
- },
- complete: () => {
- originalSubscriber.complete();
- cleanupTask();
- },
- error: (e) => {
- originalSubscriber.error(e);
- cleanupTask();
- }
- });
- innerSubscription.add(() => {
- originalSubscriber.unsubscribe();
- cleanupTask();
- });
- return innerSubscription;
- });
- };
-}
-function rxResource(opts) {
- if (ngDevMode && !opts?.injector) {
- assertInInjectionContext(rxResource);
- }
- return resource(__spreadProps(__spreadValues({}, opts), {
- loader: void 0,
- stream: (params) => {
- let sub;
- const onAbort = () => sub?.unsubscribe();
- params.abortSignal.addEventListener("abort", onAbort);
- const stream = signal({ value: void 0 });
- let resolve;
- const promise = new Promise((r) => resolve = r);
- function send(value) {
- stream.set(value);
- resolve?.(stream);
- resolve = void 0;
- }
- const streamFn = opts.stream ?? opts.loader;
- if (streamFn === void 0) {
- throw new RuntimeError(990, ngDevMode && `Must provide \`stream\` option.`);
- }
- sub = streamFn(params).subscribe({
- next: (value) => send({ value }),
- error: (error) => {
- send({ error: encapsulateResourceError(error) });
- params.abortSignal.removeEventListener("abort", onAbort);
- },
- complete: () => {
- if (resolve) {
- send({
- error: new RuntimeError(991, ngDevMode && "Resource completed before producing a value")
- });
- }
- params.abortSignal.removeEventListener("abort", onAbort);
- }
- });
- return promise;
- }
- }));
-}
-export {
- outputFromObservable,
- outputToObservable,
- pendingUntilEvent,
- rxResource,
- takeUntilDestroyed,
- toObservable,
- toSignal
-};
-/*! Bundled license information:
-
-@angular/core/fesm2022/rxjs-interop.mjs:
- (**
- * @license Angular v20.3.2
- * (c) 2010-2025 Google LLC. https://angular.io/
- * License: MIT
- *)
-*/
-//# sourceMappingURL=@angular_core_rxjs-interop.js.map
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js.map
deleted file mode 100644
index 6770070..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_core_rxjs-interop.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": ["../../../../../../node_modules/@angular/core/fesm2022/rxjs-interop.mjs"],
- "sourcesContent": ["/**\n * @license Angular v20.3.2\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { assertInInjectionContext, inject, DestroyRef, RuntimeError, Injector, assertNotInReactiveContext, signal, PendingTasks } from './root_effect_scheduler.mjs';\nimport { getOutputDestroyRef, effect, untracked, computed, resource, encapsulateResourceError } from './resource.mjs';\nimport './not_found.mjs';\nimport './signal.mjs';\nimport '@angular/core/primitives/signals';\nimport '@angular/core/primitives/di';\nimport './effect.mjs';\n\n/**\n * Operator which completes the Observable when the calling context (component, directive, service,\n * etc) is destroyed.\n *\n * @param destroyRef optionally, the `DestroyRef` representing the current context. This can be\n * passed explicitly to use `takeUntilDestroyed` outside of an [injection\n * context](guide/di/dependency-injection-context). Otherwise, the current `DestroyRef` is injected.\n *\n * @publicApi 19.0\n */\nfunction takeUntilDestroyed(destroyRef) {\n if (!destroyRef) {\n ngDevMode && assertInInjectionContext(takeUntilDestroyed);\n destroyRef = inject(DestroyRef);\n }\n const destroyed$ = new Observable((subscriber) => {\n if (destroyRef.destroyed) {\n subscriber.next();\n return;\n }\n const unregisterFn = destroyRef.onDestroy(subscriber.next.bind(subscriber));\n return unregisterFn;\n });\n return (source) => {\n return source.pipe(takeUntil(destroyed$));\n };\n}\n\n/**\n * Implementation of `OutputRef` that emits values from\n * an RxJS observable source.\n *\n * @internal\n */\nclass OutputFromObservableRef {\n source;\n destroyed = false;\n destroyRef = inject(DestroyRef);\n constructor(source) {\n this.source = source;\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n });\n }\n subscribe(callbackFn) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* ɵRuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected subscription to destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n // Stop yielding more values when the directive/component is already destroyed.\n const subscription = this.source.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: (value) => callbackFn(value),\n });\n return {\n unsubscribe: () => subscription.unsubscribe(),\n };\n }\n}\n/**\n * Declares an Angular output that is using an RxJS observable as a source\n * for events dispatched to parent subscribers.\n *\n * The behavior for an observable as source is defined as followed:\n * 1. New values are forwarded to the Angular output (next notifications).\n * 2. Errors notifications are not handled by Angular. You need to handle these manually.\n * For example by using `catchError`.\n * 3. Completion notifications stop the output from emitting new values.\n *\n * @usageNotes\n * Initialize an output in your directive by declaring a\n * class field and initializing it with the `outputFromObservable()` function.\n *\n * ```ts\n * @Directive({..})\n * export class MyDir {\n * nameChange$ = ;\n * nameChange = outputFromObservable(this.nameChange$);\n * }\n * ```\n *\n * @publicApi 19.0\n */\nfunction outputFromObservable(observable, opts) {\n ngDevMode && assertInInjectionContext(outputFromObservable);\n return new OutputFromObservableRef(observable);\n}\n\n/**\n * Converts an Angular output declared via `output()` or `outputFromObservable()`\n * to an observable.\n * It creates an observable that represents the stream of \"events firing\" in an output.\n *\n * You can subscribe to the output via `Observable.subscribe` then.\n *\n * @publicApi 19.0\n */\nfunction outputToObservable(ref) {\n const destroyRef = getOutputDestroyRef(ref);\n return new Observable((observer) => {\n // Complete the observable upon directive/component destroy.\n // Note: May be `undefined` if an `EventEmitter` is declared outside\n // of an injection context.\n const unregisterOnDestroy = destroyRef?.onDestroy(() => observer.complete());\n const subscription = ref.subscribe((v) => observer.next(v));\n return () => {\n subscription.unsubscribe();\n unregisterOnDestroy?.();\n };\n });\n}\n\n/**\n * Exposes the value of an Angular `Signal` as an RxJS `Observable`.\n * As it reflects a state, the observable will always emit the latest value upon subscription.\n *\n * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.\n *\n * `toObservable` must be called in an injection context unless an injector is provided via options.\n *\n * @publicApi 20.0\n */\nfunction toObservable(source, options) {\n if (ngDevMode && !options?.injector) {\n assertInInjectionContext(toObservable);\n }\n const injector = options?.injector ?? inject(Injector);\n const subject = new ReplaySubject(1);\n const watcher = effect(() => {\n let value;\n try {\n value = source();\n }\n catch (err) {\n untracked(() => subject.error(err));\n return;\n }\n untracked(() => subject.next(value));\n }, { injector, manualCleanup: true });\n injector.get(DestroyRef).onDestroy(() => {\n watcher.destroy();\n subject.complete();\n });\n return subject.asObservable();\n}\n\n/**\n * Get the current value of an `Observable` as a reactive `Signal`.\n *\n * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced\n * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always\n * have the most recent value emitted by the subscription, and will throw an error if the\n * `Observable` errors.\n *\n * With `requireSync` set to `true`, `toSignal` will assert that the `Observable` produces a value\n * immediately upon subscription. No `initialValue` is needed in this case, and the returned signal\n * does not include an `undefined` type.\n *\n * By default, the subscription will be automatically cleaned up when the current [injection\n * context](guide/di/dependency-injection-context) is destroyed. For example, when `toSignal` is\n * called during the construction of a component, the subscription will be cleaned up when the\n * component is destroyed. If an injection context is not available, an explicit `Injector` can be\n * passed instead.\n *\n * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`\n * option can be specified instead, which disables the automatic subscription teardown. No injection\n * context is needed in this configuration as well.\n */\nfunction toSignal(source, options) {\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n assertNotInReactiveContext(toSignal, 'Invoking `toSignal` causes new subscriptions every time. ' +\n 'Consider moving `toSignal` outside of the reactive context and read the signal value where needed.');\n const requiresCleanup = !options?.manualCleanup;\n if (ngDevMode && requiresCleanup && !options?.injector) {\n assertInInjectionContext(toSignal);\n }\n const cleanupRef = requiresCleanup\n ? (options?.injector?.get(DestroyRef) ?? inject(DestroyRef))\n : null;\n const equal = makeToSignalEqual(options?.equal);\n // Note: T is the Observable value type, and U is the initial value type. They don't have to be\n // the same - the returned signal gives values of type `T`.\n let state;\n if (options?.requireSync) {\n // Initially the signal is in a `NoValue` state.\n state = signal({ kind: 0 /* StateKind.NoValue */ }, { equal });\n }\n else {\n // If an initial value was passed, use it. Otherwise, use `undefined` as the initial value.\n state = signal({ kind: 1 /* StateKind.Value */, value: options?.initialValue }, { equal });\n }\n let destroyUnregisterFn;\n // Note: This code cannot run inside a reactive context (see assertion above). If we'd support\n // this, we would subscribe to the observable outside of the current reactive context, avoiding\n // that side-effect signal reads/writes are attribute to the current consumer. The current\n // consumer only needs to be notified when the `state` signal changes through the observable\n // subscription. Additional context (related to async pipe):\n // https://github.com/angular/angular/pull/50522.\n const sub = source.subscribe({\n next: (value) => state.set({ kind: 1 /* StateKind.Value */, value }),\n error: (error) => {\n state.set({ kind: 2 /* StateKind.Error */, error });\n destroyUnregisterFn?.();\n },\n complete: () => {\n destroyUnregisterFn?.();\n },\n // Completion of the Observable is meaningless to the signal. Signals don't have a concept of\n // \"complete\".\n });\n if (options?.requireSync && state().kind === 0 /* StateKind.NoValue */) {\n throw new RuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n // Unsubscribe when the current context is destroyed, if requested.\n destroyUnregisterFn = cleanupRef?.onDestroy(sub.unsubscribe.bind(sub));\n // The actual returned signal is a `computed` of the `State` signal, which maps the various states\n // to either values or errors.\n return computed(() => {\n const current = state();\n switch (current.kind) {\n case 1 /* StateKind.Value */:\n return current.value;\n case 2 /* StateKind.Error */:\n throw current.error;\n case 0 /* StateKind.NoValue */:\n // This shouldn't really happen because the error is thrown on creation.\n throw new RuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n }, { equal: options?.equal });\n}\nfunction makeToSignalEqual(userEquality = Object.is) {\n return (a, b) => a.kind === 1 /* StateKind.Value */ && b.kind === 1 /* StateKind.Value */ && userEquality(a.value, b.value);\n}\n\n/**\n * Operator which makes the application unstable until the observable emits, completes, errors, or is unsubscribed.\n *\n * Use this operator in observables whose subscriptions are important for rendering and should be included in SSR serialization.\n *\n * @param injector The `Injector` to use during creation. If this is not provided, the current injection context will be used instead (via `inject`).\n *\n * @developerPreview 20.0\n */\nfunction pendingUntilEvent(injector) {\n if (injector === undefined) {\n ngDevMode && assertInInjectionContext(pendingUntilEvent);\n injector = inject(Injector);\n }\n const taskService = injector.get(PendingTasks);\n return (sourceObservable) => {\n return new Observable((originalSubscriber) => {\n // create a new task on subscription\n const removeTask = taskService.add();\n let cleanedUp = false;\n function cleanupTask() {\n if (cleanedUp) {\n return;\n }\n removeTask();\n cleanedUp = true;\n }\n const innerSubscription = sourceObservable.subscribe({\n next: (v) => {\n originalSubscriber.next(v);\n cleanupTask();\n },\n complete: () => {\n originalSubscriber.complete();\n cleanupTask();\n },\n error: (e) => {\n originalSubscriber.error(e);\n cleanupTask();\n },\n });\n innerSubscription.add(() => {\n originalSubscriber.unsubscribe();\n cleanupTask();\n });\n return innerSubscription;\n });\n };\n}\n\nfunction rxResource(opts) {\n if (ngDevMode && !opts?.injector) {\n assertInInjectionContext(rxResource);\n }\n return resource({\n ...opts,\n loader: undefined,\n stream: (params) => {\n let sub;\n // Track the abort listener so it can be removed if the Observable completes (as a memory\n // optimization).\n const onAbort = () => sub?.unsubscribe();\n params.abortSignal.addEventListener('abort', onAbort);\n // Start off stream as undefined.\n const stream = signal({ value: undefined });\n let resolve;\n const promise = new Promise((r) => (resolve = r));\n function send(value) {\n stream.set(value);\n resolve?.(stream);\n resolve = undefined;\n }\n // TODO(alxhub): remove after g3 updated to rename loader -> stream\n const streamFn = opts.stream ?? opts.loader;\n if (streamFn === undefined) {\n throw new RuntimeError(990 /* ɵRuntimeErrorCode.MUST_PROVIDE_STREAM_OPTION */, ngDevMode && `Must provide \\`stream\\` option.`);\n }\n sub = streamFn(params).subscribe({\n next: (value) => send({ value }),\n error: (error) => {\n send({ error: encapsulateResourceError(error) });\n params.abortSignal.removeEventListener('abort', onAbort);\n },\n complete: () => {\n if (resolve) {\n send({\n error: new RuntimeError(991 /* ɵRuntimeErrorCode.RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE */, ngDevMode && 'Resource completed before producing a value'),\n });\n }\n params.abortSignal.removeEventListener('abort', onAbort);\n },\n });\n return promise;\n },\n });\n}\n\nexport { outputFromObservable, outputToObservable, pendingUntilEvent, rxResource, takeUntilDestroyed, toObservable, toSignal };\n\n"],
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAS,mBAAmB,YAAY;AACpC,MAAI,CAAC,YAAY;AACb,iBAAa,yBAAyB,kBAAkB;AACxD,iBAAa,OAAO,UAAU;AAAA,EAClC;AACA,QAAM,aAAa,IAAI,WAAW,CAAC,eAAe;AAC9C,QAAI,WAAW,WAAW;AACtB,iBAAW,KAAK;AAChB;AAAA,IACJ;AACA,UAAM,eAAe,WAAW,UAAU,WAAW,KAAK,KAAK,UAAU,CAAC;AAC1E,WAAO;AAAA,EACX,CAAC;AACD,SAAO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ps/@angular_forms.js
deleted file mode 100644
index a6b8ea9..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_forms.js
+++ /dev/null
@@ -1,6970 +0,0 @@
-import {
- getDOM
-} from "./chunk-76DXN4JH.js";
-import "./chunk-4X6VR2I6.js";
-import {
- ApplicationRef,
- ChangeDetectorRef,
- Directive,
- ElementRef,
- EventEmitter,
- Host,
- Inject,
- Injectable,
- Input,
- NgModule,
- Optional,
- Output,
- Renderer2,
- Self,
- SkipSelf,
- afterNextRender,
- booleanAttribute,
- isPromise,
- isSubscribable,
- setClassMetadata,
- ɵɵInheritDefinitionFeature,
- ɵɵNgOnChangesFeature,
- ɵɵProvidersFeature,
- ɵɵattribute,
- ɵɵclassProp,
- ɵɵdefineDirective,
- ɵɵdefineNgModule,
- ɵɵdirectiveInject,
- ɵɵgetInheritedFactory,
- ɵɵlistener
-} from "./chunk-UEBPW2IJ.js";
-import {
- DestroyRef,
- InjectionToken,
- Injector,
- RuntimeError,
- Version,
- computed,
- forwardRef,
- inject,
- signal,
- untracked,
- ɵɵdefineInjectable,
- ɵɵdefineInjector
-} from "./chunk-QLJXSR7F.js";
-import {
- Subject,
- forkJoin,
- from,
- map
-} from "./chunk-RSS3ODKE.js";
-import {
- __spreadProps,
- __spreadValues
-} from "./chunk-TKSB4YUA.js";
-
-// node_modules/@angular/forms/fesm2022/forms.mjs
-var BaseControlValueAccessor = class _BaseControlValueAccessor {
- _renderer;
- _elementRef;
- /**
- * The registered callback function called when a change or input event occurs on the input
- * element.
- * @docs-private
- */
- onChange = (_) => {
- };
- /**
- * The registered callback function called when a blur event occurs on the input element.
- * @docs-private
- */
- onTouched = () => {
- };
- constructor(_renderer, _elementRef) {
- this._renderer = _renderer;
- this._elementRef = _elementRef;
- }
- /**
- * Helper method that sets a property on a target element using the current Renderer
- * implementation.
- * @docs-private
- */
- setProperty(key, value) {
- this._renderer.setProperty(this._elementRef.nativeElement, key, value);
- }
- /**
- * Registers a function called when the control is touched.
- * @docs-private
- */
- registerOnTouched(fn) {
- this.onTouched = fn;
- }
- /**
- * Registers a function called when the control value changes.
- * @docs-private
- */
- registerOnChange(fn) {
- this.onChange = fn;
- }
- /**
- * Sets the "disabled" property on the range input element.
- * @docs-private
- */
- setDisabledState(isDisabled) {
- this.setProperty("disabled", isDisabled);
- }
- static ɵfac = function BaseControlValueAccessor_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _BaseControlValueAccessor)(ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ElementRef));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _BaseControlValueAccessor
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BaseControlValueAccessor, [{
- type: Directive
- }], () => [{
- type: Renderer2
- }, {
- type: ElementRef
- }], null);
-})();
-var BuiltInControlValueAccessor = class _BuiltInControlValueAccessor extends BaseControlValueAccessor {
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵBuiltInControlValueAccessor_BaseFactory;
- return function BuiltInControlValueAccessor_Factory(__ngFactoryType__) {
- return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_BuiltInControlValueAccessor)))(__ngFactoryType__ || _BuiltInControlValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _BuiltInControlValueAccessor,
- features: [ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BuiltInControlValueAccessor, [{
- type: Directive
- }], null, null);
-})();
-var NG_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? "NgValueAccessor" : "");
-var CHECKBOX_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => CheckboxControlValueAccessor),
- multi: true
-};
-var CheckboxControlValueAccessor = class _CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
- /**
- * Sets the "checked" property on the input element.
- * @docs-private
- */
- writeValue(value) {
- this.setProperty("checked", value);
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵCheckboxControlValueAccessor_BaseFactory;
- return function CheckboxControlValueAccessor_Factory(__ngFactoryType__) {
- return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_CheckboxControlValueAccessor)))(__ngFactoryType__ || _CheckboxControlValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _CheckboxControlValueAccessor,
- selectors: [["input", "type", "checkbox", "formControlName", ""], ["input", "type", "checkbox", "formControl", ""], ["input", "type", "checkbox", "ngModel", ""]],
- hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("change", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {
- return ctx.onChange($event.target.checked);
- })("blur", function CheckboxControlValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- standalone: false,
- features: [ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CheckboxControlValueAccessor, [{
- type: Directive,
- args: [{
- selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",
- host: {
- "(change)": "onChange($any($event.target).checked)",
- "(blur)": "onTouched()"
- },
- providers: [CHECKBOX_VALUE_ACCESSOR],
- standalone: false
- }]
- }], null, null);
-})();
-var DEFAULT_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => DefaultValueAccessor),
- multi: true
-};
-function _isAndroid() {
- const userAgent = getDOM() ? getDOM().getUserAgent() : "";
- return /android (\d+)/.test(userAgent.toLowerCase());
-}
-var COMPOSITION_BUFFER_MODE = new InjectionToken(ngDevMode ? "CompositionEventMode" : "");
-var DefaultValueAccessor = class _DefaultValueAccessor extends BaseControlValueAccessor {
- _compositionMode;
- /** Whether the user is creating a composition string (IME events). */
- _composing = false;
- constructor(renderer, elementRef, _compositionMode) {
- super(renderer, elementRef);
- this._compositionMode = _compositionMode;
- if (this._compositionMode == null) {
- this._compositionMode = !_isAndroid();
- }
- }
- /**
- * Sets the "value" property on the input element.
- * @docs-private
- */
- writeValue(value) {
- const normalizedValue = value == null ? "" : value;
- this.setProperty("value", normalizedValue);
- }
- /** @internal */
- _handleInput(value) {
- if (!this._compositionMode || this._compositionMode && !this._composing) {
- this.onChange(value);
- }
- }
- /** @internal */
- _compositionStart() {
- this._composing = true;
- }
- /** @internal */
- _compositionEnd(value) {
- this._composing = false;
- this._compositionMode && this.onChange(value);
- }
- static ɵfac = function DefaultValueAccessor_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _DefaultValueAccessor)(ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(COMPOSITION_BUFFER_MODE, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _DefaultValueAccessor,
- selectors: [["input", "formControlName", "", 3, "type", "checkbox"], ["textarea", "formControlName", ""], ["input", "formControl", "", 3, "type", "checkbox"], ["textarea", "formControl", ""], ["input", "ngModel", "", 3, "type", "checkbox"], ["textarea", "ngModel", ""], ["", "ngDefaultControl", ""]],
- hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("input", function DefaultValueAccessor_input_HostBindingHandler($event) {
- return ctx._handleInput($event.target.value);
- })("blur", function DefaultValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- })("compositionstart", function DefaultValueAccessor_compositionstart_HostBindingHandler() {
- return ctx._compositionStart();
- })("compositionend", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {
- return ctx._compositionEnd($event.target.value);
- });
- }
- },
- standalone: false,
- features: [ɵɵProvidersFeature([DEFAULT_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DefaultValueAccessor, [{
- type: Directive,
- args: [{
- selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",
- // TODO: vsavkin replace the above selector with the one below it once
- // https://github.com/angular/angular/issues/3011 is implemented
- // selector: '[ngModel],[formControl],[formControlName]',
- host: {
- "(input)": "_handleInput($any($event.target).value)",
- "(blur)": "onTouched()",
- "(compositionstart)": "_compositionStart()",
- "(compositionend)": "_compositionEnd($any($event.target).value)"
- },
- providers: [DEFAULT_VALUE_ACCESSOR],
- standalone: false
- }]
- }], () => [{
- type: Renderer2
- }, {
- type: ElementRef
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [COMPOSITION_BUFFER_MODE]
- }]
- }], null);
-})();
-function isEmptyInputValue(value) {
- return value == null || lengthOrSize(value) === 0;
-}
-function lengthOrSize(value) {
- if (value == null) {
- return null;
- } else if (Array.isArray(value) || typeof value === "string") {
- return value.length;
- } else if (value instanceof Set) {
- return value.size;
- }
- return null;
-}
-var NG_VALIDATORS = new InjectionToken(ngDevMode ? "NgValidators" : "");
-var NG_ASYNC_VALIDATORS = new InjectionToken(ngDevMode ? "NgAsyncValidators" : "");
-var EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
-var Validators = class {
- /**
- * @description
- * Validator that requires the control's value to be greater than or equal to the provided number.
- *
- * @usageNotes
- *
- * ### Validate against a minimum of 3
- *
- * ```ts
- * const control = new FormControl(2, Validators.min(3));
- *
- * console.log(control.errors); // {min: {min: 3, actual: 2}}
- * ```
- *
- * @returns A validator function that returns an error map with the
- * `min` property if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static min(min) {
- return minValidator(min);
- }
- /**
- * @description
- * Validator that requires the control's value to be less than or equal to the provided number.
- *
- * @usageNotes
- *
- * ### Validate against a maximum of 15
- *
- * ```ts
- * const control = new FormControl(16, Validators.max(15));
- *
- * console.log(control.errors); // {max: {max: 15, actual: 16}}
- * ```
- *
- * @returns A validator function that returns an error map with the
- * `max` property if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static max(max) {
- return maxValidator(max);
- }
- /**
- * @description
- * Validator that requires the control have a non-empty value.
- *
- * @usageNotes
- *
- * ### Validate that the field is non-empty
- *
- * ```ts
- * const control = new FormControl('', Validators.required);
- *
- * console.log(control.errors); // {required: true}
- * ```
- *
- * @returns An error map with the `required` property
- * if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static required(control) {
- return requiredValidator(control);
- }
- /**
- * @description
- * Validator that requires the control's value be true. This validator is commonly
- * used for required checkboxes.
- *
- * @usageNotes
- *
- * ### Validate that the field value is true
- *
- * ```ts
- * const control = new FormControl('some value', Validators.requiredTrue);
- *
- * console.log(control.errors); // {required: true}
- * ```
- *
- * @returns An error map that contains the `required` property
- * set to `true` if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static requiredTrue(control) {
- return requiredTrueValidator(control);
- }
- /**
- * @description
- * Validator that requires the control's value pass an email validation test.
- *
- * Tests the value using a [regular
- * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
- * pattern suitable for common use cases. The pattern is based on the definition of a valid email
- * address in the [WHATWG HTML
- * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
- * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
- * lengths of different parts of the address).
- *
- * The differences from the WHATWG version include:
- * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).
- * - Disallow `local-part` to be longer than 64 characters.
- * - Disallow the whole address to be longer than 254 characters.
- *
- * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to
- * validate the value against a different pattern.
- *
- * @usageNotes
- *
- * ### Validate that the field matches a valid email pattern
- *
- * ```ts
- * const control = new FormControl('bad@', Validators.email);
- *
- * console.log(control.errors); // {email: true}
- * ```
- *
- * @returns An error map with the `email` property
- * if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static email(control) {
- return emailValidator(control);
- }
- /**
- * @description
- * Validator that requires the number of items in the control's value to be greater than or equal
- * to the provided minimum length. This validator is also provided by default if you use
- * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used
- * only for types that have a numeric `length` or `size` property, such as strings, arrays or
- * sets. The `minLength` validator logic is also not invoked for values when their `length` or
- * `size` property is 0 (for example in case of an empty string or an empty array), to support
- * optional controls. You can use the standard `required` validator if empty values should not be
- * considered valid.
- *
- * @usageNotes
- *
- * ### Validate that the field has a minimum of 3 characters
- *
- * ```ts
- * const control = new FormControl('ng', Validators.minLength(3));
- *
- * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}
- * ```
- *
- * ```html
- *
- * ```
- *
- * @returns A validator function that returns an error map with the
- * `minlength` property if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static minLength(minLength) {
- return minLengthValidator(minLength);
- }
- /**
- * @description
- * Validator that requires the number of items in the control's value to be less than or equal
- * to the provided maximum length. This validator is also provided by default if you use
- * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used
- * only for types that have a numeric `length` or `size` property, such as strings, arrays or
- * sets.
- *
- * @usageNotes
- *
- * ### Validate that the field has maximum of 5 characters
- *
- * ```ts
- * const control = new FormControl('Angular', Validators.maxLength(5));
- *
- * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}
- * ```
- *
- * ```html
- *
- * ```
- *
- * @returns A validator function that returns an error map with the
- * `maxlength` property if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static maxLength(maxLength) {
- return maxLengthValidator(maxLength);
- }
- /**
- * @description
- * Validator that requires the control's value to match a regex pattern. This validator is also
- * provided by default if you use the HTML5 `pattern` attribute.
- *
- * @usageNotes
- *
- * ### Validate that the field only contains letters or spaces
- *
- * ```ts
- * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));
- *
- * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
- * ```
- *
- * ```html
- *
- * ```
- *
- * ### Pattern matching with the global or sticky flag
- *
- * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`
- * can produce different results on the same input when validations are run consecutively. This is
- * due to how the behavior of `RegExp.prototype.test` is
- * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)
- * (`RegExp` preserves the index of the last match when the global or sticky flag is used).
- * Due to this behavior, it is recommended that when using
- * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky
- * flag enabled.
- *
- * ```ts
- * // Not recommended (since the `g` flag is used)
- * const controlOne = new FormControl('1', Validators.pattern(/foo/g));
- *
- * // Good
- * const controlTwo = new FormControl('1', Validators.pattern(/foo/));
- * ```
- *
- * @param pattern A regular expression to be used as is to test the values, or a string.
- * If a string is passed, the `^` character is prepended and the `$` character is
- * appended to the provided string (if not already present), and the resulting regular
- * expression is used to test the values.
- *
- * @returns A validator function that returns an error map with the
- * `pattern` property if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static pattern(pattern) {
- return patternValidator(pattern);
- }
- /**
- * @description
- * Validator that performs no operation.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static nullValidator(control) {
- return nullValidator();
- }
- static compose(validators) {
- return compose(validators);
- }
- /**
- * @description
- * Compose multiple async validators into a single function that returns the union
- * of the individual error objects for the provided control.
- *
- * @returns A validator function that returns an error map with the
- * merged error objects of the async validators if the validation check fails, otherwise `null`.
- *
- * @see {@link /api/forms/AbstractControl#updateValueAndValidity updateValueAndValidity}
- *
- */
- static composeAsync(validators) {
- return composeAsync(validators);
- }
-};
-function minValidator(min) {
- return (control) => {
- if (control.value == null || min == null) {
- return null;
- }
- const value = parseFloat(control.value);
- return !isNaN(value) && value < min ? {
- "min": {
- "min": min,
- "actual": control.value
- }
- } : null;
- };
-}
-function maxValidator(max) {
- return (control) => {
- if (control.value == null || max == null) {
- return null;
- }
- const value = parseFloat(control.value);
- return !isNaN(value) && value > max ? {
- "max": {
- "max": max,
- "actual": control.value
- }
- } : null;
- };
-}
-function requiredValidator(control) {
- return isEmptyInputValue(control.value) ? {
- "required": true
- } : null;
-}
-function requiredTrueValidator(control) {
- return control.value === true ? null : {
- "required": true
- };
-}
-function emailValidator(control) {
- if (isEmptyInputValue(control.value)) {
- return null;
- }
- return EMAIL_REGEXP.test(control.value) ? null : {
- "email": true
- };
-}
-function minLengthValidator(minLength) {
- return (control) => {
- const length = control.value?.length ?? lengthOrSize(control.value);
- if (length === null || length === 0) {
- return null;
- }
- return length < minLength ? {
- "minlength": {
- "requiredLength": minLength,
- "actualLength": length
- }
- } : null;
- };
-}
-function maxLengthValidator(maxLength) {
- return (control) => {
- const length = control.value?.length ?? lengthOrSize(control.value);
- if (length !== null && length > maxLength) {
- return {
- "maxlength": {
- "requiredLength": maxLength,
- "actualLength": length
- }
- };
- }
- return null;
- };
-}
-function patternValidator(pattern) {
- if (!pattern) return nullValidator;
- let regex;
- let regexStr;
- if (typeof pattern === "string") {
- regexStr = "";
- if (pattern.charAt(0) !== "^") regexStr += "^";
- regexStr += pattern;
- if (pattern.charAt(pattern.length - 1) !== "$") regexStr += "$";
- regex = new RegExp(regexStr);
- } else {
- regexStr = pattern.toString();
- regex = pattern;
- }
- return (control) => {
- if (isEmptyInputValue(control.value)) {
- return null;
- }
- const value = control.value;
- return regex.test(value) ? null : {
- "pattern": {
- "requiredPattern": regexStr,
- "actualValue": value
- }
- };
- };
-}
-function nullValidator(control) {
- return null;
-}
-function isPresent(o) {
- return o != null;
-}
-function toObservable(value) {
- const obs = isPromise(value) ? from(value) : value;
- if ((typeof ngDevMode === "undefined" || ngDevMode) && !isSubscribable(obs)) {
- let errorMessage = `Expected async validator to return Promise or Observable.`;
- if (typeof value === "object") {
- errorMessage += " Are you using a synchronous validator where an async validator is expected?";
- }
- throw new RuntimeError(-1101, errorMessage);
- }
- return obs;
-}
-function mergeErrors(arrayOfErrors) {
- let res = {};
- arrayOfErrors.forEach((errors) => {
- res = errors != null ? __spreadValues(__spreadValues({}, res), errors) : res;
- });
- return Object.keys(res).length === 0 ? null : res;
-}
-function executeValidators(control, validators) {
- return validators.map((validator) => validator(control));
-}
-function isValidatorFn(validator) {
- return !validator.validate;
-}
-function normalizeValidators(validators) {
- return validators.map((validator) => {
- return isValidatorFn(validator) ? validator : (c) => validator.validate(c);
- });
-}
-function compose(validators) {
- if (!validators) return null;
- const presentValidators = validators.filter(isPresent);
- if (presentValidators.length == 0) return null;
- return function(control) {
- return mergeErrors(executeValidators(control, presentValidators));
- };
-}
-function composeValidators(validators) {
- return validators != null ? compose(normalizeValidators(validators)) : null;
-}
-function composeAsync(validators) {
- if (!validators) return null;
- const presentValidators = validators.filter(isPresent);
- if (presentValidators.length == 0) return null;
- return function(control) {
- const observables = executeValidators(control, presentValidators).map(toObservable);
- return forkJoin(observables).pipe(map(mergeErrors));
- };
-}
-function composeAsyncValidators(validators) {
- return validators != null ? composeAsync(normalizeValidators(validators)) : null;
-}
-function mergeValidators(controlValidators, dirValidator) {
- if (controlValidators === null) return [dirValidator];
- return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] : [controlValidators, dirValidator];
-}
-function getControlValidators(control) {
- return control._rawValidators;
-}
-function getControlAsyncValidators(control) {
- return control._rawAsyncValidators;
-}
-function makeValidatorsArray(validators) {
- if (!validators) return [];
- return Array.isArray(validators) ? validators : [validators];
-}
-function hasValidator(validators, validator) {
- return Array.isArray(validators) ? validators.includes(validator) : validators === validator;
-}
-function addValidators(validators, currentValidators) {
- const current = makeValidatorsArray(currentValidators);
- const validatorsToAdd = makeValidatorsArray(validators);
- validatorsToAdd.forEach((v) => {
- if (!hasValidator(current, v)) {
- current.push(v);
- }
- });
- return current;
-}
-function removeValidators(validators, currentValidators) {
- return makeValidatorsArray(currentValidators).filter((v) => !hasValidator(validators, v));
-}
-var AbstractControlDirective = class {
- /**
- * @description
- * Reports the value of the control if it is present, otherwise null.
- */
- get value() {
- return this.control ? this.control.value : null;
- }
- /**
- * @description
- * Reports whether the control is valid. A control is considered valid if no
- * validation errors exist with the current value.
- * If the control is not present, null is returned.
- */
- get valid() {
- return this.control ? this.control.valid : null;
- }
- /**
- * @description
- * Reports whether the control is invalid, meaning that an error exists in the input value.
- * If the control is not present, null is returned.
- */
- get invalid() {
- return this.control ? this.control.invalid : null;
- }
- /**
- * @description
- * Reports whether a control is pending, meaning that async validation is occurring and
- * errors are not yet available for the input value. If the control is not present, null is
- * returned.
- */
- get pending() {
- return this.control ? this.control.pending : null;
- }
- /**
- * @description
- * Reports whether the control is disabled, meaning that the control is disabled
- * in the UI and is exempt from validation checks and excluded from aggregate
- * values of ancestor controls. If the control is not present, null is returned.
- */
- get disabled() {
- return this.control ? this.control.disabled : null;
- }
- /**
- * @description
- * Reports whether the control is enabled, meaning that the control is included in ancestor
- * calculations of validity or value. If the control is not present, null is returned.
- */
- get enabled() {
- return this.control ? this.control.enabled : null;
- }
- /**
- * @description
- * Reports the control's validation errors. If the control is not present, null is returned.
- */
- get errors() {
- return this.control ? this.control.errors : null;
- }
- /**
- * @description
- * Reports whether the control is pristine, meaning that the user has not yet changed
- * the value in the UI. If the control is not present, null is returned.
- */
- get pristine() {
- return this.control ? this.control.pristine : null;
- }
- /**
- * @description
- * Reports whether the control is dirty, meaning that the user has changed
- * the value in the UI. If the control is not present, null is returned.
- */
- get dirty() {
- return this.control ? this.control.dirty : null;
- }
- /**
- * @description
- * Reports whether the control is touched, meaning that the user has triggered
- * a `blur` event on it. If the control is not present, null is returned.
- */
- get touched() {
- return this.control ? this.control.touched : null;
- }
- /**
- * @description
- * Reports the validation status of the control. Possible values include:
- * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.
- * If the control is not present, null is returned.
- */
- get status() {
- return this.control ? this.control.status : null;
- }
- /**
- * @description
- * Reports whether the control is untouched, meaning that the user has not yet triggered
- * a `blur` event on it. If the control is not present, null is returned.
- */
- get untouched() {
- return this.control ? this.control.untouched : null;
- }
- /**
- * @description
- * Returns a multicasting observable that emits a validation status whenever it is
- * calculated for the control. If the control is not present, null is returned.
- */
- get statusChanges() {
- return this.control ? this.control.statusChanges : null;
- }
- /**
- * @description
- * Returns a multicasting observable of value changes for the control that emits every time the
- * value of the control changes in the UI or programmatically.
- * If the control is not present, null is returned.
- */
- get valueChanges() {
- return this.control ? this.control.valueChanges : null;
- }
- /**
- * @description
- * Returns an array that represents the path from the top-level form to this control.
- * Each index is the string name of the control on that level.
- */
- get path() {
- return null;
- }
- /**
- * Contains the result of merging synchronous validators into a single validator function
- * (combined using `Validators.compose`).
- */
- _composedValidatorFn;
- /**
- * Contains the result of merging asynchronous validators into a single validator function
- * (combined using `Validators.composeAsync`).
- */
- _composedAsyncValidatorFn;
- /**
- * Set of synchronous validators as they were provided while calling `setValidators` function.
- * @internal
- */
- _rawValidators = [];
- /**
- * Set of asynchronous validators as they were provided while calling `setAsyncValidators`
- * function.
- * @internal
- */
- _rawAsyncValidators = [];
- /**
- * Sets synchronous validators for this directive.
- * @internal
- */
- _setValidators(validators) {
- this._rawValidators = validators || [];
- this._composedValidatorFn = composeValidators(this._rawValidators);
- }
- /**
- * Sets asynchronous validators for this directive.
- * @internal
- */
- _setAsyncValidators(validators) {
- this._rawAsyncValidators = validators || [];
- this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);
- }
- /**
- * @description
- * Synchronous validator function composed of all the synchronous validators registered with this
- * directive.
- */
- get validator() {
- return this._composedValidatorFn || null;
- }
- /**
- * @description
- * Asynchronous validator function composed of all the asynchronous validators registered with
- * this directive.
- */
- get asyncValidator() {
- return this._composedAsyncValidatorFn || null;
- }
- /*
- * The set of callbacks to be invoked when directive instance is being destroyed.
- */
- _onDestroyCallbacks = [];
- /**
- * Internal function to register callbacks that should be invoked
- * when directive instance is being destroyed.
- * @internal
- */
- _registerOnDestroy(fn) {
- this._onDestroyCallbacks.push(fn);
- }
- /**
- * Internal function to invoke all registered "on destroy" callbacks.
- * Note: calling this function also clears the list of callbacks.
- * @internal
- */
- _invokeOnDestroyCallbacks() {
- this._onDestroyCallbacks.forEach((fn) => fn());
- this._onDestroyCallbacks = [];
- }
- /**
- * @description
- * Resets the control with the provided value if the control is present.
- */
- reset(value = void 0) {
- if (this.control) this.control.reset(value);
- }
- /**
- * @description
- * Reports whether the control with the given path has the error specified.
- *
- * @param errorCode The code of the error to check
- * @param path A list of control names that designates how to move from the current control
- * to the control that should be queried for errors.
- *
- * @usageNotes
- * For example, for the following `FormGroup`:
- *
- * ```ts
- * form = new FormGroup({
- * address: new FormGroup({ street: new FormControl() })
- * });
- * ```
- *
- * The path to the 'street' control from the root form would be 'address' -> 'street'.
- *
- * It can be provided to this method in one of two formats:
- *
- * 1. An array of string control names, e.g. `['address', 'street']`
- * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
- *
- * If no path is given, this method checks for the error on the current control.
- *
- * @returns whether the given error is present in the control at the given path.
- *
- * If the control is not present, false is returned.
- */
- hasError(errorCode, path) {
- return this.control ? this.control.hasError(errorCode, path) : false;
- }
- /**
- * @description
- * Reports error data for the control with the given path.
- *
- * @param errorCode The code of the error to check
- * @param path A list of control names that designates how to move from the current control
- * to the control that should be queried for errors.
- *
- * @usageNotes
- * For example, for the following `FormGroup`:
- *
- * ```ts
- * form = new FormGroup({
- * address: new FormGroup({ street: new FormControl() })
- * });
- * ```
- *
- * The path to the 'street' control from the root form would be 'address' -> 'street'.
- *
- * It can be provided to this method in one of two formats:
- *
- * 1. An array of string control names, e.g. `['address', 'street']`
- * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
- *
- * @returns error data for that particular error. If the control or error is not present,
- * null is returned.
- */
- getError(errorCode, path) {
- return this.control ? this.control.getError(errorCode, path) : null;
- }
-};
-var ControlContainer = class extends AbstractControlDirective {
- /**
- * @description
- * The name for the control
- */
- name;
- /**
- * @description
- * The top-level form directive for the control.
- */
- get formDirective() {
- return null;
- }
- /**
- * @description
- * The path to this group.
- */
- get path() {
- return null;
- }
-};
-var NgControl = class extends AbstractControlDirective {
- /**
- * @description
- * The parent form for the control.
- *
- * @internal
- */
- _parent = null;
- /**
- * @description
- * The name for the control
- */
- name = null;
- /**
- * @description
- * The value accessor for the control
- */
- valueAccessor = null;
-};
-var AbstractControlStatus = class {
- _cd;
- constructor(cd) {
- this._cd = cd;
- }
- get isTouched() {
- this._cd?.control?._touched?.();
- return !!this._cd?.control?.touched;
- }
- get isUntouched() {
- return !!this._cd?.control?.untouched;
- }
- get isPristine() {
- this._cd?.control?._pristine?.();
- return !!this._cd?.control?.pristine;
- }
- get isDirty() {
- return !!this._cd?.control?.dirty;
- }
- get isValid() {
- this._cd?.control?._status?.();
- return !!this._cd?.control?.valid;
- }
- get isInvalid() {
- return !!this._cd?.control?.invalid;
- }
- get isPending() {
- return !!this._cd?.control?.pending;
- }
- get isSubmitted() {
- this._cd?._submitted?.();
- return !!this._cd?.submitted;
- }
-};
-var ngControlStatusHost = {
- "[class.ng-untouched]": "isUntouched",
- "[class.ng-touched]": "isTouched",
- "[class.ng-pristine]": "isPristine",
- "[class.ng-dirty]": "isDirty",
- "[class.ng-valid]": "isValid",
- "[class.ng-invalid]": "isInvalid",
- "[class.ng-pending]": "isPending"
-};
-var ngGroupStatusHost = __spreadProps(__spreadValues({}, ngControlStatusHost), {
- "[class.ng-submitted]": "isSubmitted"
-});
-var NgControlStatus = class _NgControlStatus extends AbstractControlStatus {
- constructor(cd) {
- super(cd);
- }
- static ɵfac = function NgControlStatus_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgControlStatus)(ɵɵdirectiveInject(NgControl, 2));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgControlStatus,
- selectors: [["", "formControlName", ""], ["", "ngModel", ""], ["", "formControl", ""]],
- hostVars: 14,
- hostBindings: function NgControlStatus_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵclassProp("ng-untouched", ctx.isUntouched)("ng-touched", ctx.isTouched)("ng-pristine", ctx.isPristine)("ng-dirty", ctx.isDirty)("ng-valid", ctx.isValid)("ng-invalid", ctx.isInvalid)("ng-pending", ctx.isPending);
- }
- },
- standalone: false,
- features: [ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgControlStatus, [{
- type: Directive,
- args: [{
- selector: "[formControlName],[ngModel],[formControl]",
- host: ngControlStatusHost,
- standalone: false
- }]
- }], () => [{
- type: NgControl,
- decorators: [{
- type: Self
- }]
- }], null);
-})();
-var NgControlStatusGroup = class _NgControlStatusGroup extends AbstractControlStatus {
- constructor(cd) {
- super(cd);
- }
- static ɵfac = function NgControlStatusGroup_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgControlStatusGroup)(ɵɵdirectiveInject(ControlContainer, 10));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgControlStatusGroup,
- selectors: [["", "formGroupName", ""], ["", "formArrayName", ""], ["", "ngModelGroup", ""], ["", "formGroup", ""], ["form", 3, "ngNoForm", ""], ["", "ngForm", ""]],
- hostVars: 16,
- hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵclassProp("ng-untouched", ctx.isUntouched)("ng-touched", ctx.isTouched)("ng-pristine", ctx.isPristine)("ng-dirty", ctx.isDirty)("ng-valid", ctx.isValid)("ng-invalid", ctx.isInvalid)("ng-pending", ctx.isPending)("ng-submitted", ctx.isSubmitted);
- }
- },
- standalone: false,
- features: [ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgControlStatusGroup, [{
- type: Directive,
- args: [{
- selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",
- host: ngGroupStatusHost,
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }]
- }], null);
-})();
-var formControlNameExample = `
-
-
-
-
- In your class:
-
- this.myGroup = new FormGroup({
- firstName: new FormControl()
- });`;
-var formGroupNameExample = `
-
-
-
-
-
-
- In your class:
-
- this.myGroup = new FormGroup({
- person: new FormGroup({ firstName: new FormControl() })
- });`;
-var formArrayNameExample = `
-
-
-
-
-
-
-
-
- In your class:
-
- this.cityArray = new FormArray([new FormControl('SF')]);
- this.myGroup = new FormGroup({
- cities: this.cityArray
- });`;
-var ngModelGroupExample = `
- `;
-var ngModelWithFormGroupExample = `
-
-
-
-
-`;
-function controlParentException(nameOrIndex) {
- return new RuntimeError(1050, `formControlName must be used with a parent formGroup directive. You'll want to add a formGroup
- directive and pass it an existing FormGroup instance (you can create one in your class).
-
- ${describeFormControl(nameOrIndex)}
-
- Example:
-
- ${formControlNameExample}`);
-}
-function describeFormControl(nameOrIndex) {
- if (nameOrIndex == null || nameOrIndex === "") {
- return "";
- }
- const valueType = typeof nameOrIndex === "string" ? "name" : "index";
- return `Affected Form Control ${valueType}: "${nameOrIndex}"`;
-}
-function ngModelGroupException() {
- return new RuntimeError(1051, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents
- that also have a "form" prefix: formGroupName, formArrayName, or formGroup.
-
- Option 1: Update the parent to be formGroupName (reactive form strategy)
-
- ${formGroupNameExample}
-
- Option 2: Use ngModel instead of formControlName (template-driven strategy)
-
- ${ngModelGroupExample}`);
-}
-function missingFormException() {
- return new RuntimeError(1052, `formGroup expects a FormGroup instance. Please pass one in.
-
- Example:
-
- ${formControlNameExample}`);
-}
-function groupParentException() {
- return new RuntimeError(1053, `formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup
- directive and pass it an existing FormGroup instance (you can create one in your class).
-
- Example:
-
- ${formGroupNameExample}`);
-}
-function arrayParentException() {
- return new RuntimeError(1054, `formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup
- directive and pass it an existing FormGroup instance (you can create one in your class).
-
- Example:
-
- ${formArrayNameExample}`);
-}
-var disabledAttrWarning = `
- It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
- when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
- you. We recommend using this approach to avoid 'changed after checked' errors.
-
- Example:
- // Specify the \`disabled\` property at control creation time:
- form = new FormGroup({
- first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
- last: new FormControl('Drew', Validators.required)
- });
-
- // Controls can also be enabled/disabled after creation:
- form.get('first')?.enable();
- form.get('last')?.disable();
-`;
-var asyncValidatorsDroppedWithOptsWarning = `
- It looks like you're constructing using a FormControl with both an options argument and an
- async validators argument. Mixing these arguments will cause your async validators to be dropped.
- You should either put all your validators in the options object, or in separate validators
- arguments. For example:
-
- // Using validators arguments
- fc = new FormControl(42, Validators.required, myAsyncValidator);
-
- // Using AbstractControlOptions
- fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});
-
- // Do NOT mix them: async validators will be dropped!
- fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);
-`;
-function ngModelWarning(directiveName) {
- return `
- It looks like you're using ngModel on the same form field as ${directiveName}.
- Support for using the ngModel input property and ngModelChange event with
- reactive form directives has been deprecated in Angular v6 and will be removed
- in a future version of Angular.
-
- For more information on this, see our API docs here:
- https://angular.io/api/forms/${directiveName === "formControl" ? "FormControlDirective" : "FormControlName"}#use-with-ngmodel
- `;
-}
-function describeKey(isFormGroup2, key) {
- return isFormGroup2 ? `with name: '${key}'` : `at index: ${key}`;
-}
-function noControlsError(isFormGroup2) {
- return `
- There are no form controls registered with this ${isFormGroup2 ? "group" : "array"} yet. If you're using ngModel,
- you may want to check next tick (e.g. use setTimeout).
- `;
-}
-function missingControlError(isFormGroup2, key) {
- return `Cannot find form control ${describeKey(isFormGroup2, key)}`;
-}
-function missingControlValueError(isFormGroup2, key) {
- return `Must supply a value for form control ${describeKey(isFormGroup2, key)}`;
-}
-var VALID = "VALID";
-var INVALID = "INVALID";
-var PENDING = "PENDING";
-var DISABLED = "DISABLED";
-var ControlEvent = class {
-};
-var ValueChangeEvent = class extends ControlEvent {
- value;
- source;
- constructor(value, source) {
- super();
- this.value = value;
- this.source = source;
- }
-};
-var PristineChangeEvent = class extends ControlEvent {
- pristine;
- source;
- constructor(pristine, source) {
- super();
- this.pristine = pristine;
- this.source = source;
- }
-};
-var TouchedChangeEvent = class extends ControlEvent {
- touched;
- source;
- constructor(touched, source) {
- super();
- this.touched = touched;
- this.source = source;
- }
-};
-var StatusChangeEvent = class extends ControlEvent {
- status;
- source;
- constructor(status, source) {
- super();
- this.status = status;
- this.source = source;
- }
-};
-var FormSubmittedEvent = class extends ControlEvent {
- source;
- constructor(source) {
- super();
- this.source = source;
- }
-};
-var FormResetEvent = class extends ControlEvent {
- source;
- constructor(source) {
- super();
- this.source = source;
- }
-};
-function pickValidators(validatorOrOpts) {
- return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;
-}
-function coerceToValidator(validator) {
- return Array.isArray(validator) ? composeValidators(validator) : validator || null;
-}
-function pickAsyncValidators(asyncValidator, validatorOrOpts) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- if (isOptionsObj(validatorOrOpts) && asyncValidator) {
- console.warn(asyncValidatorsDroppedWithOptsWarning);
- }
- }
- return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;
-}
-function coerceToAsyncValidator(asyncValidator) {
- return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator || null;
-}
-function isOptionsObj(validatorOrOpts) {
- return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === "object";
-}
-function assertControlPresent(parent, isGroup, key) {
- const controls = parent.controls;
- const collection = isGroup ? Object.keys(controls) : controls;
- if (!collection.length) {
- throw new RuntimeError(1e3, typeof ngDevMode === "undefined" || ngDevMode ? noControlsError(isGroup) : "");
- }
- if (!controls[key]) {
- throw new RuntimeError(1001, typeof ngDevMode === "undefined" || ngDevMode ? missingControlError(isGroup, key) : "");
- }
-}
-function assertAllValuesPresent(control, isGroup, value) {
- control._forEachChild((_, key) => {
- if (value[key] === void 0) {
- throw new RuntimeError(1002, typeof ngDevMode === "undefined" || ngDevMode ? missingControlValueError(isGroup, key) : "");
- }
- });
-}
-var AbstractControl = class {
- /** @internal */
- _pendingDirty = false;
- /**
- * Indicates that a control has its own pending asynchronous validation in progress.
- * It also stores if the control should emit events when the validation status changes.
- *
- * @internal
- */
- _hasOwnPendingAsyncValidator = null;
- /** @internal */
- _pendingTouched = false;
- /** @internal */
- _onCollectionChange = () => {
- };
- /** @internal */
- _updateOn;
- _parent = null;
- _asyncValidationSubscription;
- /**
- * Contains the result of merging synchronous validators into a single validator function
- * (combined using `Validators.compose`).
- *
- * @internal
- */
- _composedValidatorFn;
- /**
- * Contains the result of merging asynchronous validators into a single validator function
- * (combined using `Validators.composeAsync`).
- *
- * @internal
- */
- _composedAsyncValidatorFn;
- /**
- * Synchronous validators as they were provided:
- * - in `AbstractControl` constructor
- * - as an argument while calling `setValidators` function
- * - while calling the setter on the `validator` field (e.g. `control.validator = validatorFn`)
- *
- * @internal
- */
- _rawValidators;
- /**
- * Asynchronous validators as they were provided:
- * - in `AbstractControl` constructor
- * - as an argument while calling `setAsyncValidators` function
- * - while calling the setter on the `asyncValidator` field (e.g. `control.asyncValidator =
- * asyncValidatorFn`)
- *
- * @internal
- */
- _rawAsyncValidators;
- /**
- * The current value of the control.
- *
- * * For a `FormControl`, the current value.
- * * For an enabled `FormGroup`, the values of enabled controls as an object
- * with a key-value pair for each member of the group.
- * * For a disabled `FormGroup`, the values of all controls as an object
- * with a key-value pair for each member of the group.
- * * For a `FormArray`, the values of enabled controls as an array.
- *
- */
- value;
- /**
- * Initialize the AbstractControl instance.
- *
- * @param validators The function or array of functions that is used to determine the validity of
- * this control synchronously.
- * @param asyncValidators The function or array of functions that is used to determine validity of
- * this control asynchronously.
- */
- constructor(validators, asyncValidators) {
- this._assignValidators(validators);
- this._assignAsyncValidators(asyncValidators);
- }
- /**
- * Returns the function that is used to determine the validity of this control synchronously.
- * If multiple validators have been added, this will be a single composed function.
- * See `Validators.compose()` for additional information.
- */
- get validator() {
- return this._composedValidatorFn;
- }
- set validator(validatorFn) {
- this._rawValidators = this._composedValidatorFn = validatorFn;
- }
- /**
- * Returns the function that is used to determine the validity of this control asynchronously.
- * If multiple validators have been added, this will be a single composed function.
- * See `Validators.compose()` for additional information.
- */
- get asyncValidator() {
- return this._composedAsyncValidatorFn;
- }
- set asyncValidator(asyncValidatorFn) {
- this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;
- }
- /**
- * The parent control.
- */
- get parent() {
- return this._parent;
- }
- /**
- * The validation status of the control.
- *
- * @see {@link FormControlStatus}
- *
- * These status values are mutually exclusive, so a control cannot be
- * both valid AND invalid or invalid AND disabled.
- */
- get status() {
- return untracked(this.statusReactive);
- }
- set status(v) {
- untracked(() => this.statusReactive.set(v));
- }
- /** @internal */
- _status = computed(() => this.statusReactive(), ...ngDevMode ? [{
- debugName: "_status"
- }] : []);
- statusReactive = signal(void 0, ...ngDevMode ? [{
- debugName: "statusReactive"
- }] : []);
- /**
- * A control is `valid` when its `status` is `VALID`.
- *
- * @see {@link AbstractControl.status}
- *
- * @returns True if the control has passed all of its validation tests,
- * false otherwise.
- */
- get valid() {
- return this.status === VALID;
- }
- /**
- * A control is `invalid` when its `status` is `INVALID`.
- *
- * @see {@link AbstractControl.status}
- *
- * @returns True if this control has failed one or more of its validation checks,
- * false otherwise.
- */
- get invalid() {
- return this.status === INVALID;
- }
- /**
- * A control is `pending` when its `status` is `PENDING`.
- *
- * @see {@link AbstractControl.status}
- *
- * @returns True if this control is in the process of conducting a validation check,
- * false otherwise.
- */
- get pending() {
- return this.status == PENDING;
- }
- /**
- * A control is `disabled` when its `status` is `DISABLED`.
- *
- * Disabled controls are exempt from validation checks and
- * are not included in the aggregate value of their ancestor
- * controls.
- *
- * @see {@link AbstractControl.status}
- *
- * @returns True if the control is disabled, false otherwise.
- */
- get disabled() {
- return this.status === DISABLED;
- }
- /**
- * A control is `enabled` as long as its `status` is not `DISABLED`.
- *
- * @returns True if the control has any status other than 'DISABLED',
- * false if the status is 'DISABLED'.
- *
- * @see {@link AbstractControl.status}
- *
- */
- get enabled() {
- return this.status !== DISABLED;
- }
- /**
- * An object containing any errors generated by failing validation,
- * or null if there are no errors.
- */
- errors;
- /**
- * A control is `pristine` if the user has not yet changed
- * the value in the UI.
- *
- * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
- * Programmatic changes to a control's value do not mark it dirty.
- */
- get pristine() {
- return untracked(this.pristineReactive);
- }
- set pristine(v) {
- untracked(() => this.pristineReactive.set(v));
- }
- /** @internal */
- _pristine = computed(() => this.pristineReactive(), ...ngDevMode ? [{
- debugName: "_pristine"
- }] : []);
- pristineReactive = signal(true, ...ngDevMode ? [{
- debugName: "pristineReactive"
- }] : []);
- /**
- * A control is `dirty` if the user has changed the value
- * in the UI.
- *
- * @returns True if the user has changed the value of this control in the UI; compare `pristine`.
- * Programmatic changes to a control's value do not mark it dirty.
- */
- get dirty() {
- return !this.pristine;
- }
- /**
- * True if the control is marked as `touched`.
- *
- * A control is marked `touched` once the user has triggered
- * a `blur` event on it.
- */
- get touched() {
- return untracked(this.touchedReactive);
- }
- set touched(v) {
- untracked(() => this.touchedReactive.set(v));
- }
- /** @internal */
- _touched = computed(() => this.touchedReactive(), ...ngDevMode ? [{
- debugName: "_touched"
- }] : []);
- touchedReactive = signal(false, ...ngDevMode ? [{
- debugName: "touchedReactive"
- }] : []);
- /**
- * True if the control has not been marked as touched
- *
- * A control is `untouched` if the user has not yet triggered
- * a `blur` event on it.
- */
- get untouched() {
- return !this.touched;
- }
- /**
- * Exposed as observable, see below.
- *
- * @internal
- */
- _events = new Subject();
- /**
- * A multicasting observable that emits an event every time the state of the control changes.
- * It emits for value, status, pristine or touched changes.
- *
- * **Note**: On value change, the emit happens right after a value of this control is updated. The
- * value of a parent control (for example if this FormControl is a part of a FormGroup) is updated
- * later, so accessing a value of a parent control (using the `value` property) from the callback
- * of this event might result in getting a value that has not been updated yet. Subscribe to the
- * `events` of the parent control instead.
- * For other event types, the events are emitted after the parent control has been updated.
- *
- */
- events = this._events.asObservable();
- /**
- * A multicasting observable that emits an event every time the value of the control changes, in
- * the UI or programmatically. It also emits an event each time you call enable() or disable()
- * without passing along {emitEvent: false} as a function argument.
- *
- * **Note**: the emit happens right after a value of this control is updated. The value of a
- * parent control (for example if this FormControl is a part of a FormGroup) is updated later, so
- * accessing a value of a parent control (using the `value` property) from the callback of this
- * event might result in getting a value that has not been updated yet. Subscribe to the
- * `valueChanges` event of the parent control instead.
- */
- valueChanges;
- /**
- * A multicasting observable that emits an event every time the validation `status` of the control
- * recalculates.
- *
- * @see {@link FormControlStatus}
- * @see {@link AbstractControl.status}
- */
- statusChanges;
- /**
- * Reports the update strategy of the `AbstractControl` (meaning
- * the event on which the control updates itself).
- * Possible values: `'change'` | `'blur'` | `'submit'`
- * Default value: `'change'`
- */
- get updateOn() {
- return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : "change";
- }
- /**
- * Sets the synchronous validators that are active on this control. Calling
- * this overwrites any existing synchronous validators.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * If you want to add a new validator without affecting existing ones, consider
- * using `addValidators()` method instead.
- */
- setValidators(validators) {
- this._assignValidators(validators);
- }
- /**
- * Sets the asynchronous validators that are active on this control. Calling this
- * overwrites any existing asynchronous validators.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * If you want to add a new validator without affecting existing ones, consider
- * using `addAsyncValidators()` method instead.
- */
- setAsyncValidators(validators) {
- this._assignAsyncValidators(validators);
- }
- /**
- * Add a synchronous validator or validators to this control, without affecting other validators.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * Adding a validator that already exists will have no effect. If duplicate validator functions
- * are present in the `validators` array, only the first instance would be added to a form
- * control.
- *
- * @param validators The new validator function or functions to add to this control.
- */
- addValidators(validators) {
- this.setValidators(addValidators(validators, this._rawValidators));
- }
- /**
- * Add an asynchronous validator or validators to this control, without affecting other
- * validators.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * Adding a validator that already exists will have no effect.
- *
- * @param validators The new asynchronous validator function or functions to add to this control.
- */
- addAsyncValidators(validators) {
- this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));
- }
- /**
- * Remove a synchronous validator from this control, without affecting other validators.
- * Validators are compared by function reference; you must pass a reference to the exact same
- * validator function as the one that was originally set. If a provided validator is not found,
- * it is ignored.
- *
- * @usageNotes
- *
- * ### Reference to a ValidatorFn
- *
- * ```
- * // Reference to the RequiredValidator
- * const ctrl = new FormControl('', Validators.required);
- * ctrl.removeValidators(Validators.required);
- *
- * // Reference to anonymous function inside MinValidator
- * const minValidator = Validators.min(3);
- * const ctrl = new FormControl('', minValidator);
- * expect(ctrl.hasValidator(minValidator)).toEqual(true)
- * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
- *
- * ctrl.removeValidators(minValidator);
- * ```
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * @param validators The validator or validators to remove.
- */
- removeValidators(validators) {
- this.setValidators(removeValidators(validators, this._rawValidators));
- }
- /**
- * Remove an asynchronous validator from this control, without affecting other validators.
- * Validators are compared by function reference; you must pass a reference to the exact same
- * validator function as the one that was originally set. If a provided validator is not found, it
- * is ignored.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- * @param validators The asynchronous validator or validators to remove.
- */
- removeAsyncValidators(validators) {
- this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));
- }
- /**
- * Check whether a synchronous validator function is present on this control. The provided
- * validator must be a reference to the exact same function that was provided.
- *
- * @usageNotes
- *
- * ### Reference to a ValidatorFn
- *
- * ```
- * // Reference to the RequiredValidator
- * const ctrl = new FormControl(0, Validators.required);
- * expect(ctrl.hasValidator(Validators.required)).toEqual(true)
- *
- * // Reference to anonymous function inside MinValidator
- * const minValidator = Validators.min(3);
- * const ctrl = new FormControl(0, minValidator);
- * expect(ctrl.hasValidator(minValidator)).toEqual(true)
- * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
- * ```
- *
- * @param validator The validator to check for presence. Compared by function reference.
- * @returns Whether the provided validator was found on this control.
- */
- hasValidator(validator) {
- return hasValidator(this._rawValidators, validator);
- }
- /**
- * Check whether an asynchronous validator function is present on this control. The provided
- * validator must be a reference to the exact same function that was provided.
- *
- * @param validator The asynchronous validator to check for presence. Compared by function
- * reference.
- * @returns Whether the provided asynchronous validator was found on this control.
- */
- hasAsyncValidator(validator) {
- return hasValidator(this._rawAsyncValidators, validator);
- }
- /**
- * Empties out the synchronous validator list.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- */
- clearValidators() {
- this.validator = null;
- }
- /**
- * Empties out the async validator list.
- *
- * When you add or remove a validator at run time, you must call
- * `updateValueAndValidity()` for the new validation to take effect.
- *
- */
- clearAsyncValidators() {
- this.asyncValidator = null;
- }
- markAsTouched(opts = {}) {
- const changed = this.touched === false;
- this.touched = true;
- const sourceControl = opts.sourceControl ?? this;
- if (this._parent && !opts.onlySelf) {
- this._parent.markAsTouched(__spreadProps(__spreadValues({}, opts), {
- sourceControl
- }));
- }
- if (changed && opts.emitEvent !== false) {
- this._events.next(new TouchedChangeEvent(true, sourceControl));
- }
- }
- /**
- * Marks the control and all its descendant controls as `dirty`.
- * @see {@link markAsDirty()}
- *
- * @param opts Configuration options that determine how the control propagates changes
- * and emits events after marking is applied.
- * * `emitEvent`: When true or not supplied (the default), the `events`
- * observable emits a `PristineChangeEvent` with the `pristine` property being `false`.
- * When false, no events are emitted.
- */
- markAllAsDirty(opts = {}) {
- this.markAsDirty({
- onlySelf: true,
- emitEvent: opts.emitEvent,
- sourceControl: this
- });
- this._forEachChild((control) => control.markAllAsDirty(opts));
- }
- /**
- * Marks the control and all its descendant controls as `touched`.
- * @see {@link markAsTouched()}
- *
- * @param opts Configuration options that determine how the control propagates changes
- * and emits events after marking is applied.
- * * `emitEvent`: When true or not supplied (the default), the `events`
- * observable emits a `TouchedChangeEvent` with the `touched` property being `true`.
- * When false, no events are emitted.
- */
- markAllAsTouched(opts = {}) {
- this.markAsTouched({
- onlySelf: true,
- emitEvent: opts.emitEvent,
- sourceControl: this
- });
- this._forEachChild((control) => control.markAllAsTouched(opts));
- }
- markAsUntouched(opts = {}) {
- const changed = this.touched === true;
- this.touched = false;
- this._pendingTouched = false;
- const sourceControl = opts.sourceControl ?? this;
- this._forEachChild((control) => {
- control.markAsUntouched({
- onlySelf: true,
- emitEvent: opts.emitEvent,
- sourceControl
- });
- });
- if (this._parent && !opts.onlySelf) {
- this._parent._updateTouched(opts, sourceControl);
- }
- if (changed && opts.emitEvent !== false) {
- this._events.next(new TouchedChangeEvent(false, sourceControl));
- }
- }
- markAsDirty(opts = {}) {
- const changed = this.pristine === true;
- this.pristine = false;
- const sourceControl = opts.sourceControl ?? this;
- if (this._parent && !opts.onlySelf) {
- this._parent.markAsDirty(__spreadProps(__spreadValues({}, opts), {
- sourceControl
- }));
- }
- if (changed && opts.emitEvent !== false) {
- this._events.next(new PristineChangeEvent(false, sourceControl));
- }
- }
- markAsPristine(opts = {}) {
- const changed = this.pristine === false;
- this.pristine = true;
- this._pendingDirty = false;
- const sourceControl = opts.sourceControl ?? this;
- this._forEachChild((control) => {
- control.markAsPristine({
- onlySelf: true,
- emitEvent: opts.emitEvent
- });
- });
- if (this._parent && !opts.onlySelf) {
- this._parent._updatePristine(opts, sourceControl);
- }
- if (changed && opts.emitEvent !== false) {
- this._events.next(new PristineChangeEvent(true, sourceControl));
- }
- }
- markAsPending(opts = {}) {
- this.status = PENDING;
- const sourceControl = opts.sourceControl ?? this;
- if (opts.emitEvent !== false) {
- this._events.next(new StatusChangeEvent(this.status, sourceControl));
- this.statusChanges.emit(this.status);
- }
- if (this._parent && !opts.onlySelf) {
- this._parent.markAsPending(__spreadProps(__spreadValues({}, opts), {
- sourceControl
- }));
- }
- }
- disable(opts = {}) {
- const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
- this.status = DISABLED;
- this.errors = null;
- this._forEachChild((control) => {
- control.disable(__spreadProps(__spreadValues({}, opts), {
- onlySelf: true
- }));
- });
- this._updateValue();
- const sourceControl = opts.sourceControl ?? this;
- if (opts.emitEvent !== false) {
- this._events.next(new ValueChangeEvent(this.value, sourceControl));
- this._events.next(new StatusChangeEvent(this.status, sourceControl));
- this.valueChanges.emit(this.value);
- this.statusChanges.emit(this.status);
- }
- this._updateAncestors(__spreadProps(__spreadValues({}, opts), {
- skipPristineCheck
- }), this);
- this._onDisabledChange.forEach((changeFn) => changeFn(true));
- }
- /**
- * Enables the control. This means the control is included in validation checks and
- * the aggregate value of its parent. Its status recalculates based on its value and
- * its validators.
- *
- * By default, if the control has children, all children are enabled.
- *
- * @see {@link AbstractControl.status}
- *
- * @param opts Configure options that control how the control propagates changes and
- * emits events when marked as untouched
- * * `onlySelf`: When true, mark only this control. When false or not supplied,
- * marks all direct ancestors. Default is false.
- * * `emitEvent`: When true or not supplied (the default), the `statusChanges`,
- * `valueChanges` and `events`
- * observables emit events with the latest status and value when the control is enabled.
- * When false, no events are emitted.
- */
- enable(opts = {}) {
- const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
- this.status = VALID;
- this._forEachChild((control) => {
- control.enable(__spreadProps(__spreadValues({}, opts), {
- onlySelf: true
- }));
- });
- this.updateValueAndValidity({
- onlySelf: true,
- emitEvent: opts.emitEvent
- });
- this._updateAncestors(__spreadProps(__spreadValues({}, opts), {
- skipPristineCheck
- }), this);
- this._onDisabledChange.forEach((changeFn) => changeFn(false));
- }
- _updateAncestors(opts, sourceControl) {
- if (this._parent && !opts.onlySelf) {
- this._parent.updateValueAndValidity(opts);
- if (!opts.skipPristineCheck) {
- this._parent._updatePristine({}, sourceControl);
- }
- this._parent._updateTouched({}, sourceControl);
- }
- }
- /**
- * Sets the parent of the control
- *
- * @param parent The new parent.
- */
- setParent(parent) {
- this._parent = parent;
- }
- /**
- * The raw value of this control. For most control implementations, the raw value will include
- * disabled children.
- */
- getRawValue() {
- return this.value;
- }
- updateValueAndValidity(opts = {}) {
- this._setInitialStatus();
- this._updateValue();
- if (this.enabled) {
- const shouldHaveEmitted = this._cancelExistingSubscription();
- this.errors = this._runValidator();
- this.status = this._calculateStatus();
- if (this.status === VALID || this.status === PENDING) {
- this._runAsyncValidator(shouldHaveEmitted, opts.emitEvent);
- }
- }
- const sourceControl = opts.sourceControl ?? this;
- if (opts.emitEvent !== false) {
- this._events.next(new ValueChangeEvent(this.value, sourceControl));
- this._events.next(new StatusChangeEvent(this.status, sourceControl));
- this.valueChanges.emit(this.value);
- this.statusChanges.emit(this.status);
- }
- if (this._parent && !opts.onlySelf) {
- this._parent.updateValueAndValidity(__spreadProps(__spreadValues({}, opts), {
- sourceControl
- }));
- }
- }
- /** @internal */
- _updateTreeValidity(opts = {
- emitEvent: true
- }) {
- this._forEachChild((ctrl) => ctrl._updateTreeValidity(opts));
- this.updateValueAndValidity({
- onlySelf: true,
- emitEvent: opts.emitEvent
- });
- }
- _setInitialStatus() {
- this.status = this._allControlsDisabled() ? DISABLED : VALID;
- }
- _runValidator() {
- return this.validator ? this.validator(this) : null;
- }
- _runAsyncValidator(shouldHaveEmitted, emitEvent) {
- if (this.asyncValidator) {
- this.status = PENDING;
- this._hasOwnPendingAsyncValidator = {
- emitEvent: emitEvent !== false,
- shouldHaveEmitted: shouldHaveEmitted !== false
- };
- const obs = toObservable(this.asyncValidator(this));
- this._asyncValidationSubscription = obs.subscribe((errors) => {
- this._hasOwnPendingAsyncValidator = null;
- this.setErrors(errors, {
- emitEvent,
- shouldHaveEmitted
- });
- });
- }
- }
- _cancelExistingSubscription() {
- if (this._asyncValidationSubscription) {
- this._asyncValidationSubscription.unsubscribe();
- const shouldHaveEmitted = (this._hasOwnPendingAsyncValidator?.emitEvent || this._hasOwnPendingAsyncValidator?.shouldHaveEmitted) ?? false;
- this._hasOwnPendingAsyncValidator = null;
- return shouldHaveEmitted;
- }
- return false;
- }
- setErrors(errors, opts = {}) {
- this.errors = errors;
- this._updateControlsErrors(opts.emitEvent !== false, this, opts.shouldHaveEmitted);
- }
- /**
- * Retrieves a child control given the control's name or path.
- *
- * @param path A dot-delimited string or array of string/number values that define the path to the
- * control. If a string is provided, passing it as a string literal will result in improved type
- * information. Likewise, if an array is provided, passing it `as const` will cause improved type
- * information to be available.
- *
- * @usageNotes
- * ### Retrieve a nested control
- *
- * For example, to get a `name` control nested within a `person` sub-group:
- *
- * * `this.form.get('person.name');`
- *
- * -OR-
- *
- * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings
- *
- * ### Retrieve a control in a FormArray
- *
- * When accessing an element inside a FormArray, you can use an element index.
- * For example, to get a `price` control from the first element in an `items` array you can use:
- *
- * * `this.form.get('items.0.price');`
- *
- * -OR-
- *
- * * `this.form.get(['items', 0, 'price']);`
- */
- get(path) {
- let currPath = path;
- if (currPath == null) return null;
- if (!Array.isArray(currPath)) currPath = currPath.split(".");
- if (currPath.length === 0) return null;
- return currPath.reduce((control, name) => control && control._find(name), this);
- }
- /**
- * @description
- * Reports error data for the control with the given path.
- *
- * @param errorCode The code of the error to check
- * @param path A list of control names that designates how to move from the current control
- * to the control that should be queried for errors.
- *
- * @usageNotes
- * For example, for the following `FormGroup`:
- *
- * ```ts
- * form = new FormGroup({
- * address: new FormGroup({ street: new FormControl() })
- * });
- * ```
- *
- * The path to the 'street' control from the root form would be 'address' -> 'street'.
- *
- * It can be provided to this method in one of two formats:
- *
- * 1. An array of string control names, e.g. `['address', 'street']`
- * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
- *
- * @returns error data for that particular error. If the control or error is not present,
- * null is returned.
- */
- getError(errorCode, path) {
- const control = path ? this.get(path) : this;
- return control && control.errors ? control.errors[errorCode] : null;
- }
- /**
- * @description
- * Reports whether the control with the given path has the error specified.
- *
- * @param errorCode The code of the error to check
- * @param path A list of control names that designates how to move from the current control
- * to the control that should be queried for errors.
- *
- * @usageNotes
- * For example, for the following `FormGroup`:
- *
- * ```ts
- * form = new FormGroup({
- * address: new FormGroup({ street: new FormControl() })
- * });
- * ```
- *
- * The path to the 'street' control from the root form would be 'address' -> 'street'.
- *
- * It can be provided to this method in one of two formats:
- *
- * 1. An array of string control names, e.g. `['address', 'street']`
- * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
- *
- * If no path is given, this method checks for the error on the current control.
- *
- * @returns whether the given error is present in the control at the given path.
- *
- * If the control is not present, false is returned.
- */
- hasError(errorCode, path) {
- return !!this.getError(errorCode, path);
- }
- /**
- * Retrieves the top-level ancestor of this control.
- */
- get root() {
- let x = this;
- while (x._parent) {
- x = x._parent;
- }
- return x;
- }
- /** @internal */
- _updateControlsErrors(emitEvent, changedControl, shouldHaveEmitted) {
- this.status = this._calculateStatus();
- if (emitEvent) {
- this.statusChanges.emit(this.status);
- }
- if (emitEvent || shouldHaveEmitted) {
- this._events.next(new StatusChangeEvent(this.status, changedControl));
- }
- if (this._parent) {
- this._parent._updateControlsErrors(emitEvent, changedControl, shouldHaveEmitted);
- }
- }
- /** @internal */
- _initObservables() {
- this.valueChanges = new EventEmitter();
- this.statusChanges = new EventEmitter();
- }
- _calculateStatus() {
- if (this._allControlsDisabled()) return DISABLED;
- if (this.errors) return INVALID;
- if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;
- if (this._anyControlsHaveStatus(INVALID)) return INVALID;
- return VALID;
- }
- /** @internal */
- _anyControlsHaveStatus(status) {
- return this._anyControls((control) => control.status === status);
- }
- /** @internal */
- _anyControlsDirty() {
- return this._anyControls((control) => control.dirty);
- }
- /** @internal */
- _anyControlsTouched() {
- return this._anyControls((control) => control.touched);
- }
- /** @internal */
- _updatePristine(opts, changedControl) {
- const newPristine = !this._anyControlsDirty();
- const changed = this.pristine !== newPristine;
- this.pristine = newPristine;
- if (this._parent && !opts.onlySelf) {
- this._parent._updatePristine(opts, changedControl);
- }
- if (changed) {
- this._events.next(new PristineChangeEvent(this.pristine, changedControl));
- }
- }
- /** @internal */
- _updateTouched(opts = {}, changedControl) {
- this.touched = this._anyControlsTouched();
- this._events.next(new TouchedChangeEvent(this.touched, changedControl));
- if (this._parent && !opts.onlySelf) {
- this._parent._updateTouched(opts, changedControl);
- }
- }
- /** @internal */
- _onDisabledChange = [];
- /** @internal */
- _registerOnCollectionChange(fn) {
- this._onCollectionChange = fn;
- }
- /** @internal */
- _setUpdateStrategy(opts) {
- if (isOptionsObj(opts) && opts.updateOn != null) {
- this._updateOn = opts.updateOn;
- }
- }
- /**
- * Check to see if parent has been marked artificially dirty.
- *
- * @internal
- */
- _parentMarkedDirty(onlySelf) {
- const parentDirty = this._parent && this._parent.dirty;
- return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();
- }
- /** @internal */
- _find(name) {
- return null;
- }
- /**
- * Internal implementation of the `setValidators` method. Needs to be separated out into a
- * different method, because it is called in the constructor and it can break cases where
- * a control is extended.
- */
- _assignValidators(validators) {
- this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;
- this._composedValidatorFn = coerceToValidator(this._rawValidators);
- }
- /**
- * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a
- * different method, because it is called in the constructor and it can break cases where
- * a control is extended.
- */
- _assignAsyncValidators(validators) {
- this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;
- this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);
- }
-};
-var FormGroup = class extends AbstractControl {
- /**
- * Creates a new `FormGroup` instance.
- *
- * @param controls A collection of child controls. The key for each child is the name
- * under which it is registered.
- *
- * @param validatorOrOpts A synchronous validator function, or an array of
- * such functions, or an `AbstractControlOptions` object that contains validation functions
- * and a validation trigger.
- *
- * @param asyncValidator A single async validator or array of async validator functions
- *
- */
- constructor(controls, validatorOrOpts, asyncValidator) {
- super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
- (typeof ngDevMode === "undefined" || ngDevMode) && validateFormGroupControls(controls);
- this.controls = controls;
- this._initObservables();
- this._setUpdateStrategy(validatorOrOpts);
- this._setUpControls();
- this.updateValueAndValidity({
- onlySelf: true,
- // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
- // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,
- // so we set `emitEvent` to `true` to allow that during the control creation process.
- emitEvent: !!this.asyncValidator
- });
- }
- controls;
- registerControl(name, control) {
- if (this.controls[name]) return this.controls[name];
- this.controls[name] = control;
- control.setParent(this);
- control._registerOnCollectionChange(this._onCollectionChange);
- return control;
- }
- addControl(name, control, options = {}) {
- this.registerControl(name, control);
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- this._onCollectionChange();
- }
- /**
- * Remove a control from this group. In a strongly-typed group, required controls cannot be
- * removed.
- *
- * This method also updates the value and validity of the control.
- *
- * @param name The control name to remove from the collection
- * @param options Specifies whether this FormGroup instance should emit events after a
- * control is removed.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control is
- * removed. When false, no events are emitted.
- */
- removeControl(name, options = {}) {
- if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {
- });
- delete this.controls[name];
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- this._onCollectionChange();
- }
- setControl(name, control, options = {}) {
- if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {
- });
- delete this.controls[name];
- if (control) this.registerControl(name, control);
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- this._onCollectionChange();
- }
- contains(controlName) {
- return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;
- }
- /**
- * Sets the value of the `FormGroup`. It accepts an object that matches
- * the structure of the group, with control names as keys.
- *
- * @usageNotes
- * ### Set the complete value for the form group
- *
- * ```ts
- * const form = new FormGroup({
- * first: new FormControl(),
- * last: new FormControl()
- * });
- *
- * console.log(form.value); // {first: null, last: null}
- *
- * form.setValue({first: 'Nancy', last: 'Drew'});
- * console.log(form.value); // {first: 'Nancy', last: 'Drew'}
- * ```
- *
- * @throws When strict checks fail, such as setting the value of a control
- * that doesn't exist or if you exclude a value of a control that does exist.
- *
- * @param value The new value for the control that matches the structure of the group.
- * @param options Configuration options that determine how the control propagates changes
- * and emits events after the value changes.
- * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
- * updateValueAndValidity} method.
- *
- * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
- * false.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges`
- * observables emit events with the latest status and value when the control value is updated.
- * When false, no events are emitted.
- */
- setValue(value, options = {}) {
- assertAllValuesPresent(this, true, value);
- Object.keys(value).forEach((name) => {
- assertControlPresent(this, true, name);
- this.controls[name].setValue(value[name], {
- onlySelf: true,
- emitEvent: options.emitEvent
- });
- });
- this.updateValueAndValidity(options);
- }
- /**
- * Patches the value of the `FormGroup`. It accepts an object with control
- * names as keys, and does its best to match the values to the correct controls
- * in the group.
- *
- * It accepts both super-sets and sub-sets of the group without throwing an error.
- *
- * @usageNotes
- * ### Patch the value for a form group
- *
- * ```ts
- * const form = new FormGroup({
- * first: new FormControl(),
- * last: new FormControl()
- * });
- * console.log(form.value); // {first: null, last: null}
- *
- * form.patchValue({first: 'Nancy'});
- * console.log(form.value); // {first: 'Nancy', last: null}
- * ```
- *
- * @param value The object that matches the structure of the group.
- * @param options Configuration options that determine how the control propagates changes and
- * emits events after the value is patched.
- * * `onlySelf`: When true, each change only affects this control and not its parent. Default is
- * true.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control value
- * is updated. When false, no events are emitted. The configuration options are passed to
- * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.
- */
- patchValue(value, options = {}) {
- if (value == null) return;
- Object.keys(value).forEach((name) => {
- const control = this.controls[name];
- if (control) {
- control.patchValue(
- /* Guaranteed to be present, due to the outer forEach. */
- value[name],
- {
- onlySelf: true,
- emitEvent: options.emitEvent
- }
- );
- }
- });
- this.updateValueAndValidity(options);
- }
- /**
- * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets
- * the value of all descendants to their default values, or null if no defaults were provided.
- *
- * You reset to a specific form state by passing in a map of states
- * that matches the structure of your form, with control names as keys. The state
- * is a standalone value or a form state object with both a value and a disabled
- * status.
- *
- * @param value Resets the control with an initial value,
- * or an object that defines the initial value and disabled state.
- *
- * @param options Configuration options that determine how the control propagates changes
- * and emits events when the group is reset.
- * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
- * false.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges`
- * observables emit events with the latest status and value when the control is reset.
- * When false, no events are emitted.
- * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
- * updateValueAndValidity} method.
- *
- * @usageNotes
- *
- * ### Reset the form group values
- *
- * ```ts
- * const form = new FormGroup({
- * first: new FormControl('first name'),
- * last: new FormControl('last name')
- * });
- *
- * console.log(form.value); // {first: 'first name', last: 'last name'}
- *
- * form.reset({ first: 'name', last: 'last name' });
- *
- * console.log(form.value); // {first: 'name', last: 'last name'}
- * ```
- *
- * ### Reset the form group values and disabled status
- *
- * ```ts
- * const form = new FormGroup({
- * first: new FormControl('first name'),
- * last: new FormControl('last name')
- * });
- *
- * form.reset({
- * first: {value: 'name', disabled: true},
- * last: 'last'
- * });
- *
- * console.log(form.value); // {last: 'last'}
- * console.log(form.get('first').status); // 'DISABLED'
- * ```
- */
- reset(value = {}, options = {}) {
- this._forEachChild((control, name) => {
- control.reset(value ? value[name] : null, {
- onlySelf: true,
- emitEvent: options.emitEvent
- });
- });
- this._updatePristine(options, this);
- this._updateTouched(options, this);
- this.updateValueAndValidity(options);
- if (options?.emitEvent !== false) {
- this._events.next(new FormResetEvent(this));
- }
- }
- /**
- * The aggregate value of the `FormGroup`, including any disabled controls.
- *
- * Retrieves all values regardless of disabled status.
- */
- getRawValue() {
- return this._reduceChildren({}, (acc, control, name) => {
- acc[name] = control.getRawValue();
- return acc;
- });
- }
- /** @internal */
- _syncPendingControls() {
- let subtreeUpdated = this._reduceChildren(false, (updated, child) => {
- return child._syncPendingControls() ? true : updated;
- });
- if (subtreeUpdated) this.updateValueAndValidity({
- onlySelf: true
- });
- return subtreeUpdated;
- }
- /** @internal */
- _forEachChild(cb) {
- Object.keys(this.controls).forEach((key) => {
- const control = this.controls[key];
- control && cb(control, key);
- });
- }
- /** @internal */
- _setUpControls() {
- this._forEachChild((control) => {
- control.setParent(this);
- control._registerOnCollectionChange(this._onCollectionChange);
- });
- }
- /** @internal */
- _updateValue() {
- this.value = this._reduceValue();
- }
- /** @internal */
- _anyControls(condition) {
- for (const [controlName, control] of Object.entries(this.controls)) {
- if (this.contains(controlName) && condition(control)) {
- return true;
- }
- }
- return false;
- }
- /** @internal */
- _reduceValue() {
- let acc = {};
- return this._reduceChildren(acc, (acc2, control, name) => {
- if (control.enabled || this.disabled) {
- acc2[name] = control.value;
- }
- return acc2;
- });
- }
- /** @internal */
- _reduceChildren(initValue, fn) {
- let res = initValue;
- this._forEachChild((control, name) => {
- res = fn(res, control, name);
- });
- return res;
- }
- /** @internal */
- _allControlsDisabled() {
- for (const controlName of Object.keys(this.controls)) {
- if (this.controls[controlName].enabled) {
- return false;
- }
- }
- return Object.keys(this.controls).length > 0 || this.disabled;
- }
- /** @internal */
- _find(name) {
- return this.controls.hasOwnProperty(name) ? this.controls[name] : null;
- }
-};
-function validateFormGroupControls(controls) {
- const invalidKeys = Object.keys(controls).filter((key) => key.includes("."));
- if (invalidKeys.length > 0) {
- console.warn(`FormGroup keys cannot include \`.\`, please replace the keys for: ${invalidKeys.join(",")}.`);
- }
-}
-var UntypedFormGroup = FormGroup;
-var isFormGroup = (control) => control instanceof FormGroup;
-var FormRecord = class extends FormGroup {
-};
-var isFormRecord = (control) => control instanceof FormRecord;
-var CALL_SET_DISABLED_STATE = new InjectionToken(typeof ngDevMode === "undefined" || ngDevMode ? "CallSetDisabledState" : "", {
- providedIn: "root",
- factory: () => setDisabledStateDefault
-});
-var setDisabledStateDefault = "always";
-function controlPath(name, parent) {
- return [...parent.path, name];
-}
-function setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- if (!control) _throwError(dir, "Cannot find control with");
- if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);
- }
- setUpValidators(control, dir);
- dir.valueAccessor.writeValue(control.value);
- if (control.disabled || callSetDisabledState === "always") {
- dir.valueAccessor.setDisabledState?.(control.disabled);
- }
- setUpViewChangePipeline(control, dir);
- setUpModelChangePipeline(control, dir);
- setUpBlurPipeline(control, dir);
- setUpDisabledChangeHandler(control, dir);
-}
-function cleanUpControl(control, dir, validateControlPresenceOnChange = true) {
- const noop = () => {
- if (validateControlPresenceOnChange && (typeof ngDevMode === "undefined" || ngDevMode)) {
- _noControlError(dir);
- }
- };
- if (dir.valueAccessor) {
- dir.valueAccessor.registerOnChange(noop);
- dir.valueAccessor.registerOnTouched(noop);
- }
- cleanUpValidators(control, dir);
- if (control) {
- dir._invokeOnDestroyCallbacks();
- control._registerOnCollectionChange(() => {
- });
- }
-}
-function registerOnValidatorChange(validators, onChange) {
- validators.forEach((validator) => {
- if (validator.registerOnValidatorChange) validator.registerOnValidatorChange(onChange);
- });
-}
-function setUpDisabledChangeHandler(control, dir) {
- if (dir.valueAccessor.setDisabledState) {
- const onDisabledChange = (isDisabled) => {
- dir.valueAccessor.setDisabledState(isDisabled);
- };
- control.registerOnDisabledChange(onDisabledChange);
- dir._registerOnDestroy(() => {
- control._unregisterOnDisabledChange(onDisabledChange);
- });
- }
-}
-function setUpValidators(control, dir) {
- const validators = getControlValidators(control);
- if (dir.validator !== null) {
- control.setValidators(mergeValidators(validators, dir.validator));
- } else if (typeof validators === "function") {
- control.setValidators([validators]);
- }
- const asyncValidators = getControlAsyncValidators(control);
- if (dir.asyncValidator !== null) {
- control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));
- } else if (typeof asyncValidators === "function") {
- control.setAsyncValidators([asyncValidators]);
- }
- const onValidatorChange = () => control.updateValueAndValidity();
- registerOnValidatorChange(dir._rawValidators, onValidatorChange);
- registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);
-}
-function cleanUpValidators(control, dir) {
- let isControlUpdated = false;
- if (control !== null) {
- if (dir.validator !== null) {
- const validators = getControlValidators(control);
- if (Array.isArray(validators) && validators.length > 0) {
- const updatedValidators = validators.filter((validator) => validator !== dir.validator);
- if (updatedValidators.length !== validators.length) {
- isControlUpdated = true;
- control.setValidators(updatedValidators);
- }
- }
- }
- if (dir.asyncValidator !== null) {
- const asyncValidators = getControlAsyncValidators(control);
- if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {
- const updatedAsyncValidators = asyncValidators.filter((asyncValidator) => asyncValidator !== dir.asyncValidator);
- if (updatedAsyncValidators.length !== asyncValidators.length) {
- isControlUpdated = true;
- control.setAsyncValidators(updatedAsyncValidators);
- }
- }
- }
- }
- const noop = () => {
- };
- registerOnValidatorChange(dir._rawValidators, noop);
- registerOnValidatorChange(dir._rawAsyncValidators, noop);
- return isControlUpdated;
-}
-function setUpViewChangePipeline(control, dir) {
- dir.valueAccessor.registerOnChange((newValue) => {
- control._pendingValue = newValue;
- control._pendingChange = true;
- control._pendingDirty = true;
- if (control.updateOn === "change") updateControl(control, dir);
- });
-}
-function setUpBlurPipeline(control, dir) {
- dir.valueAccessor.registerOnTouched(() => {
- control._pendingTouched = true;
- if (control.updateOn === "blur" && control._pendingChange) updateControl(control, dir);
- if (control.updateOn !== "submit") control.markAsTouched();
- });
-}
-function updateControl(control, dir) {
- if (control._pendingDirty) control.markAsDirty();
- control.setValue(control._pendingValue, {
- emitModelToViewChange: false
- });
- dir.viewToModelUpdate(control._pendingValue);
- control._pendingChange = false;
-}
-function setUpModelChangePipeline(control, dir) {
- const onChange = (newValue, emitModelEvent) => {
- dir.valueAccessor.writeValue(newValue);
- if (emitModelEvent) dir.viewToModelUpdate(newValue);
- };
- control.registerOnChange(onChange);
- dir._registerOnDestroy(() => {
- control._unregisterOnChange(onChange);
- });
-}
-function setUpFormContainer(control, dir) {
- if (control == null && (typeof ngDevMode === "undefined" || ngDevMode)) _throwError(dir, "Cannot find control with");
- setUpValidators(control, dir);
-}
-function cleanUpFormContainer(control, dir) {
- return cleanUpValidators(control, dir);
-}
-function _noControlError(dir) {
- return _throwError(dir, "There is no FormControl instance attached to form control element with");
-}
-function _throwError(dir, message) {
- const messageEnd = _describeControlLocation(dir);
- throw new Error(`${message} ${messageEnd}`);
-}
-function _describeControlLocation(dir) {
- const path = dir.path;
- if (path && path.length > 1) return `path: '${path.join(" -> ")}'`;
- if (path?.[0]) return `name: '${path}'`;
- return "unspecified name attribute";
-}
-function _throwMissingValueAccessorError(dir) {
- const loc = _describeControlLocation(dir);
- throw new RuntimeError(-1203, `No value accessor for form control ${loc}.`);
-}
-function _throwInvalidValueAccessorError(dir) {
- const loc = _describeControlLocation(dir);
- throw new RuntimeError(1200, `Value accessor was not provided as an array for form control with ${loc}. Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`);
-}
-function isPropertyUpdated(changes, viewModel) {
- if (!changes.hasOwnProperty("model")) return false;
- const change = changes["model"];
- if (change.isFirstChange()) return true;
- return !Object.is(viewModel, change.currentValue);
-}
-function isBuiltInAccessor(valueAccessor) {
- return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;
-}
-function syncPendingControls(form, directives) {
- form._syncPendingControls();
- directives.forEach((dir) => {
- const control = dir.control;
- if (control.updateOn === "submit" && control._pendingChange) {
- dir.viewToModelUpdate(control._pendingValue);
- control._pendingChange = false;
- }
- });
-}
-function selectValueAccessor(dir, valueAccessors) {
- if (!valueAccessors) return null;
- if (!Array.isArray(valueAccessors) && (typeof ngDevMode === "undefined" || ngDevMode)) _throwInvalidValueAccessorError(dir);
- let defaultAccessor = void 0;
- let builtinAccessor = void 0;
- let customAccessor = void 0;
- valueAccessors.forEach((v) => {
- if (v.constructor === DefaultValueAccessor) {
- defaultAccessor = v;
- } else if (isBuiltInAccessor(v)) {
- if (builtinAccessor && (typeof ngDevMode === "undefined" || ngDevMode)) _throwError(dir, "More than one built-in value accessor matches form control with");
- builtinAccessor = v;
- } else {
- if (customAccessor && (typeof ngDevMode === "undefined" || ngDevMode)) _throwError(dir, "More than one custom value accessor matches form control with");
- customAccessor = v;
- }
- });
- if (customAccessor) return customAccessor;
- if (builtinAccessor) return builtinAccessor;
- if (defaultAccessor) return defaultAccessor;
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- _throwError(dir, "No valid value accessor for form control with");
- }
- return null;
-}
-function removeListItem$1(list, el) {
- const index = list.indexOf(el);
- if (index > -1) list.splice(index, 1);
-}
-function _ngModelWarning(name, type, instance, warningConfig) {
- if (warningConfig === "never") return;
- if ((warningConfig === null || warningConfig === "once") && !type._ngModelWarningSentOnce || warningConfig === "always" && !instance._ngModelWarningSent) {
- console.warn(ngModelWarning(name));
- type._ngModelWarningSentOnce = true;
- instance._ngModelWarningSent = true;
- }
-}
-var formDirectiveProvider$1 = {
- provide: ControlContainer,
- useExisting: forwardRef(() => NgForm)
-};
-var resolvedPromise$1 = (() => Promise.resolve())();
-var NgForm = class _NgForm extends ControlContainer {
- callSetDisabledState;
- /**
- * @description
- * Returns whether the form submission has been triggered.
- */
- get submitted() {
- return untracked(this.submittedReactive);
- }
- /** @internal */
- _submitted = computed(() => this.submittedReactive(), ...ngDevMode ? [{
- debugName: "_submitted"
- }] : []);
- submittedReactive = signal(false, ...ngDevMode ? [{
- debugName: "submittedReactive"
- }] : []);
- _directives = /* @__PURE__ */ new Set();
- /**
- * @description
- * The `FormGroup` instance created for this form.
- */
- form;
- /**
- * @description
- * Event emitter for the "ngSubmit" event
- */
- ngSubmit = new EventEmitter();
- /**
- * @description
- * Tracks options for the `NgForm` instance.
- *
- * **updateOn**: Sets the default `updateOn` value for all child `NgModels` below it
- * unless explicitly set by a child `NgModel` using `ngModelOptions`). Defaults to 'change'.
- * Possible values: `'change'` | `'blur'` | `'submit'`.
- *
- */
- options;
- constructor(validators, asyncValidators, callSetDisabledState) {
- super();
- this.callSetDisabledState = callSetDisabledState;
- this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
- }
- /** @docs-private */
- ngAfterViewInit() {
- this._setUpdateStrategy();
- }
- /**
- * @description
- * The directive instance.
- */
- get formDirective() {
- return this;
- }
- /**
- * @description
- * The internal `FormGroup` instance.
- */
- get control() {
- return this.form;
- }
- /**
- * @description
- * Returns an array representing the path to this group. Because this directive
- * always lives at the top level of a form, it is always an empty array.
- */
- get path() {
- return [];
- }
- /**
- * @description
- * Returns a map of the controls in this group.
- */
- get controls() {
- return this.form.controls;
- }
- /**
- * @description
- * Method that sets up the control directive in this group, re-calculates its value
- * and validity, and adds the instance to the internal list of directives.
- *
- * @param dir The `NgModel` directive instance.
- */
- addControl(dir) {
- resolvedPromise$1.then(() => {
- const container = this._findContainer(dir.path);
- dir.control = container.registerControl(dir.name, dir.control);
- setUpControl(dir.control, dir, this.callSetDisabledState);
- dir.control.updateValueAndValidity({
- emitEvent: false
- });
- this._directives.add(dir);
- });
- }
- /**
- * @description
- * Retrieves the `FormControl` instance from the provided `NgModel` directive.
- *
- * @param dir The `NgModel` directive instance.
- */
- getControl(dir) {
- return this.form.get(dir.path);
- }
- /**
- * @description
- * Removes the `NgModel` instance from the internal list of directives
- *
- * @param dir The `NgModel` directive instance.
- */
- removeControl(dir) {
- resolvedPromise$1.then(() => {
- const container = this._findContainer(dir.path);
- if (container) {
- container.removeControl(dir.name);
- }
- this._directives.delete(dir);
- });
- }
- /**
- * @description
- * Adds a new `NgModelGroup` directive instance to the form.
- *
- * @param dir The `NgModelGroup` directive instance.
- */
- addFormGroup(dir) {
- resolvedPromise$1.then(() => {
- const container = this._findContainer(dir.path);
- const group = new FormGroup({});
- setUpFormContainer(group, dir);
- container.registerControl(dir.name, group);
- group.updateValueAndValidity({
- emitEvent: false
- });
- });
- }
- /**
- * @description
- * Removes the `NgModelGroup` directive instance from the form.
- *
- * @param dir The `NgModelGroup` directive instance.
- */
- removeFormGroup(dir) {
- resolvedPromise$1.then(() => {
- const container = this._findContainer(dir.path);
- if (container) {
- container.removeControl(dir.name);
- }
- });
- }
- /**
- * @description
- * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance
- *
- * @param dir The `NgModelGroup` directive instance.
- */
- getFormGroup(dir) {
- return this.form.get(dir.path);
- }
- /**
- * Sets the new value for the provided `NgControl` directive.
- *
- * @param dir The `NgControl` directive instance.
- * @param value The new value for the directive's control.
- */
- updateModel(dir, value) {
- resolvedPromise$1.then(() => {
- const ctrl = this.form.get(dir.path);
- ctrl.setValue(value);
- });
- }
- /**
- * @description
- * Sets the value for this `FormGroup`.
- *
- * @param value The new value
- */
- setValue(value) {
- this.control.setValue(value);
- }
- /**
- * @description
- * Method called when the "submit" event is triggered on the form.
- * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
- *
- * @param $event The "submit" event object
- */
- onSubmit($event) {
- this.submittedReactive.set(true);
- syncPendingControls(this.form, this._directives);
- this.ngSubmit.emit($event);
- this.form._events.next(new FormSubmittedEvent(this.control));
- return $event?.target?.method === "dialog";
- }
- /**
- * @description
- * Method called when the "reset" event is triggered on the form.
- */
- onReset() {
- this.resetForm();
- }
- /**
- * @description
- * Resets the form to an initial value and resets its submitted status.
- *
- * @param value The new value for the form.
- */
- resetForm(value = void 0) {
- this.form.reset(value);
- this.submittedReactive.set(false);
- }
- _setUpdateStrategy() {
- if (this.options && this.options.updateOn != null) {
- this.form._updateOn = this.options.updateOn;
- }
- }
- _findContainer(path) {
- path.pop();
- return path.length ? this.form.get(path) : this.form;
- }
- static ɵfac = function NgForm_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgForm)(ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgForm,
- selectors: [["form", 3, "ngNoForm", "", 3, "formGroup", ""], ["ng-form"], ["", "ngForm", ""]],
- hostBindings: function NgForm_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("submit", function NgForm_submit_HostBindingHandler($event) {
- return ctx.onSubmit($event);
- })("reset", function NgForm_reset_HostBindingHandler() {
- return ctx.onReset();
- });
- }
- },
- inputs: {
- options: [0, "ngFormOptions", "options"]
- },
- outputs: {
- ngSubmit: "ngSubmit"
- },
- exportAs: ["ngForm"],
- standalone: false,
- features: [ɵɵProvidersFeature([formDirectiveProvider$1]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgForm, [{
- type: Directive,
- args: [{
- selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",
- providers: [formDirectiveProvider$1],
- host: {
- "(submit)": "onSubmit($event)",
- "(reset)": "onReset()"
- },
- outputs: ["ngSubmit"],
- exportAs: "ngForm",
- standalone: false
- }]
- }], () => [{
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [CALL_SET_DISABLED_STATE]
- }]
- }], {
- options: [{
- type: Input,
- args: ["ngFormOptions"]
- }]
- });
-})();
-function removeListItem(list, el) {
- const index = list.indexOf(el);
- if (index > -1) list.splice(index, 1);
-}
-function isFormControlState(formState) {
- return typeof formState === "object" && formState !== null && Object.keys(formState).length === 2 && "value" in formState && "disabled" in formState;
-}
-var FormControl = class FormControl2 extends AbstractControl {
- /** @publicApi */
- defaultValue = null;
- /** @internal */
- _onChange = [];
- /** @internal */
- _pendingValue;
- /** @internal */
- _pendingChange = false;
- constructor(formState = null, validatorOrOpts, asyncValidator) {
- super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
- this._applyFormState(formState);
- this._setUpdateStrategy(validatorOrOpts);
- this._initObservables();
- this.updateValueAndValidity({
- onlySelf: true,
- // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
- // `VALID` or `INVALID`.
- // The status should be broadcasted via the `statusChanges` observable, so we set
- // `emitEvent` to `true` to allow that during the control creation process.
- emitEvent: !!this.asyncValidator
- });
- if (isOptionsObj(validatorOrOpts) && (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {
- if (isFormControlState(formState)) {
- this.defaultValue = formState.value;
- } else {
- this.defaultValue = formState;
- }
- }
- }
- setValue(value, options = {}) {
- this.value = this._pendingValue = value;
- if (this._onChange.length && options.emitModelToViewChange !== false) {
- this._onChange.forEach((changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));
- }
- this.updateValueAndValidity(options);
- }
- patchValue(value, options = {}) {
- this.setValue(value, options);
- }
- reset(formState = this.defaultValue, options = {}) {
- this._applyFormState(formState);
- this.markAsPristine(options);
- this.markAsUntouched(options);
- this.setValue(this.value, options);
- this._pendingChange = false;
- if (options?.emitEvent !== false) {
- this._events.next(new FormResetEvent(this));
- }
- }
- /** @internal */
- _updateValue() {
- }
- /** @internal */
- _anyControls(condition) {
- return false;
- }
- /** @internal */
- _allControlsDisabled() {
- return this.disabled;
- }
- registerOnChange(fn) {
- this._onChange.push(fn);
- }
- /** @internal */
- _unregisterOnChange(fn) {
- removeListItem(this._onChange, fn);
- }
- registerOnDisabledChange(fn) {
- this._onDisabledChange.push(fn);
- }
- /** @internal */
- _unregisterOnDisabledChange(fn) {
- removeListItem(this._onDisabledChange, fn);
- }
- /** @internal */
- _forEachChild(cb) {
- }
- /** @internal */
- _syncPendingControls() {
- if (this.updateOn === "submit") {
- if (this._pendingDirty) this.markAsDirty();
- if (this._pendingTouched) this.markAsTouched();
- if (this._pendingChange) {
- this.setValue(this._pendingValue, {
- onlySelf: true,
- emitModelToViewChange: false
- });
- return true;
- }
- }
- return false;
- }
- _applyFormState(formState) {
- if (isFormControlState(formState)) {
- this.value = this._pendingValue = formState.value;
- formState.disabled ? this.disable({
- onlySelf: true,
- emitEvent: false
- }) : this.enable({
- onlySelf: true,
- emitEvent: false
- });
- } else {
- this.value = this._pendingValue = formState;
- }
- }
-};
-var UntypedFormControl = FormControl;
-var isFormControl = (control) => control instanceof FormControl;
-var AbstractFormGroupDirective = class _AbstractFormGroupDirective extends ControlContainer {
- /**
- * @description
- * The parent control for the group
- *
- * @internal
- */
- _parent;
- /** @docs-private */
- ngOnInit() {
- this._checkParentType();
- this.formDirective.addFormGroup(this);
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this.formDirective) {
- this.formDirective.removeFormGroup(this);
- }
- }
- /**
- * @description
- * The `FormGroup` bound to this directive.
- */
- get control() {
- return this.formDirective.getFormGroup(this);
- }
- /**
- * @description
- * The path to this group from the top-level directive.
- */
- get path() {
- return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
- }
- /**
- * @description
- * The top-level directive for this group if present, otherwise null.
- */
- get formDirective() {
- return this._parent ? this._parent.formDirective : null;
- }
- /** @internal */
- _checkParentType() {
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵAbstractFormGroupDirective_BaseFactory;
- return function AbstractFormGroupDirective_Factory(__ngFactoryType__) {
- return (ɵAbstractFormGroupDirective_BaseFactory || (ɵAbstractFormGroupDirective_BaseFactory = ɵɵgetInheritedFactory(_AbstractFormGroupDirective)))(__ngFactoryType__ || _AbstractFormGroupDirective);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _AbstractFormGroupDirective,
- standalone: false,
- features: [ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(AbstractFormGroupDirective, [{
- type: Directive,
- args: [{
- standalone: false
- }]
- }], null, null);
-})();
-function modelParentException() {
- return new RuntimeError(1350, `
- ngModel cannot be used to register form controls with a parent formGroup directive. Try using
- formGroup's partner directive "formControlName" instead. Example:
-
- ${formControlNameExample}
-
- Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:
-
- Example:
-
- ${ngModelWithFormGroupExample}`);
-}
-function formGroupNameException() {
- return new RuntimeError(1351, `
- ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
-
- Option 1: Use formControlName instead of ngModel (reactive strategy):
-
- ${formGroupNameExample}
-
- Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):
-
- ${ngModelGroupExample}`);
-}
-function missingNameException() {
- return new RuntimeError(1352, `If ngModel is used within a form tag, either the name attribute must be set or the form
- control must be defined as 'standalone' in ngModelOptions.
-
- Example 1:
- Example 2: `);
-}
-function modelGroupParentException() {
- return new RuntimeError(1353, `
- ngModelGroup cannot be used with a parent formGroup directive.
-
- Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
-
- ${formGroupNameExample}
-
- Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):
-
- ${ngModelGroupExample}`);
-}
-var modelGroupProvider = {
- provide: ControlContainer,
- useExisting: forwardRef(() => NgModelGroup)
-};
-var NgModelGroup = class _NgModelGroup extends AbstractFormGroupDirective {
- /**
- * @description
- * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds
- * to a key in the parent `NgForm`.
- */
- name = "";
- constructor(parent, validators, asyncValidators) {
- super();
- this._parent = parent;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- }
- /** @internal */
- _checkParentType() {
- if (!(this._parent instanceof _NgModelGroup) && !(this._parent instanceof NgForm) && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw modelGroupParentException();
- }
- }
- static ɵfac = function NgModelGroup_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgModelGroup)(ɵɵdirectiveInject(ControlContainer, 5), ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgModelGroup,
- selectors: [["", "ngModelGroup", ""]],
- inputs: {
- name: [0, "ngModelGroup", "name"]
- },
- exportAs: ["ngModelGroup"],
- standalone: false,
- features: [ɵɵProvidersFeature([modelGroupProvider]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgModelGroup, [{
- type: Directive,
- args: [{
- selector: "[ngModelGroup]",
- providers: [modelGroupProvider],
- exportAs: "ngModelGroup",
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Host
- }, {
- type: SkipSelf
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }], {
- name: [{
- type: Input,
- args: ["ngModelGroup"]
- }]
- });
-})();
-var formControlBinding$1 = {
- provide: NgControl,
- useExisting: forwardRef(() => NgModel)
-};
-var resolvedPromise = (() => Promise.resolve())();
-var NgModel = class _NgModel extends NgControl {
- _changeDetectorRef;
- callSetDisabledState;
- control = new FormControl();
- // At runtime we coerce arbitrary values assigned to the "disabled" input to a "boolean".
- // This is not reflected in the type of the property because outside of templates, consumers
- // should only deal with booleans. In templates, a string is allowed for convenience and to
- // match the native "disabled attribute" semantics which can be observed on input elements.
- // This static member tells the compiler that values of type "string" can also be assigned
- // to the input in a template.
- /** @docs-private */
- static ngAcceptInputType_isDisabled;
- /** @internal */
- _registered = false;
- /**
- * Internal reference to the view model value.
- * @docs-private
- */
- viewModel;
- /**
- * @description
- * Tracks the name bound to the directive. If a parent form exists, it
- * uses this name as a key to retrieve this control's value.
- */
- name = "";
- /**
- * @description
- * Tracks whether the control is disabled.
- */
- isDisabled;
- /**
- * @description
- * Tracks the value bound to this directive.
- */
- model;
- /**
- * @description
- * Tracks the configuration options for this `ngModel` instance.
- *
- * **name**: An alternative to setting the name attribute on the form control element. See
- * the [example](api/forms/NgModel#using-ngmodel-on-a-standalone-control) for using `NgModel`
- * as a standalone control.
- *
- * **standalone**: When set to true, the `ngModel` will not register itself with its parent form,
- * and acts as if it's not in the form. Defaults to false. If no parent form exists, this option
- * has no effect.
- *
- * **updateOn**: Defines the event upon which the form control value and validity update.
- * Defaults to 'change'. Possible values: `'change'` | `'blur'` | `'submit'`.
- *
- */
- options;
- /**
- * @description
- * Event emitter for producing the `ngModelChange` event after
- * the view model updates.
- */
- update = new EventEmitter();
- constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {
- super();
- this._changeDetectorRef = _changeDetectorRef;
- this.callSetDisabledState = callSetDisabledState;
- this._parent = parent;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- this.valueAccessor = selectValueAccessor(this, valueAccessors);
- }
- /** @docs-private */
- ngOnChanges(changes) {
- this._checkForErrors();
- if (!this._registered || "name" in changes) {
- if (this._registered) {
- this._checkName();
- if (this.formDirective) {
- const oldName = changes["name"].previousValue;
- this.formDirective.removeControl({
- name: oldName,
- path: this._getPath(oldName)
- });
- }
- }
- this._setUpControl();
- }
- if ("isDisabled" in changes) {
- this._updateDisabled(changes);
- }
- if (isPropertyUpdated(changes, this.viewModel)) {
- this._updateValue(this.model);
- this.viewModel = this.model;
- }
- }
- /** @docs-private */
- ngOnDestroy() {
- this.formDirective && this.formDirective.removeControl(this);
- }
- /**
- * @description
- * Returns an array that represents the path from the top-level form to this control.
- * Each index is the string name of the control on that level.
- */
- get path() {
- return this._getPath(this.name);
- }
- /**
- * @description
- * The top-level directive for this control if present, otherwise null.
- */
- get formDirective() {
- return this._parent ? this._parent.formDirective : null;
- }
- /**
- * @description
- * Sets the new value for the view model and emits an `ngModelChange` event.
- *
- * @param newValue The new value emitted by `ngModelChange`.
- */
- viewToModelUpdate(newValue) {
- this.viewModel = newValue;
- this.update.emit(newValue);
- }
- _setUpControl() {
- this._setUpdateStrategy();
- this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);
- this._registered = true;
- }
- _setUpdateStrategy() {
- if (this.options && this.options.updateOn != null) {
- this.control._updateOn = this.options.updateOn;
- }
- }
- _isStandalone() {
- return !this._parent || !!(this.options && this.options.standalone);
- }
- _setUpStandalone() {
- setUpControl(this.control, this, this.callSetDisabledState);
- this.control.updateValueAndValidity({
- emitEvent: false
- });
- }
- _checkForErrors() {
- if ((typeof ngDevMode === "undefined" || ngDevMode) && !this._isStandalone()) {
- checkParentType$1(this._parent);
- }
- this._checkName();
- }
- _checkName() {
- if (this.options && this.options.name) this.name = this.options.name;
- if (!this._isStandalone() && !this.name && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw missingNameException();
- }
- }
- _updateValue(value) {
- resolvedPromise.then(() => {
- this.control.setValue(value, {
- emitViewToModelChange: false
- });
- this._changeDetectorRef?.markForCheck();
- });
- }
- _updateDisabled(changes) {
- const disabledValue = changes["isDisabled"].currentValue;
- const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue);
- resolvedPromise.then(() => {
- if (isDisabled && !this.control.disabled) {
- this.control.disable();
- } else if (!isDisabled && this.control.disabled) {
- this.control.enable();
- }
- this._changeDetectorRef?.markForCheck();
- });
- }
- _getPath(controlName) {
- return this._parent ? controlPath(controlName, this._parent) : [controlName];
- }
- static ɵfac = function NgModel_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgModel)(ɵɵdirectiveInject(ControlContainer, 9), ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), ɵɵdirectiveInject(ChangeDetectorRef, 8), ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgModel,
- selectors: [["", "ngModel", "", 3, "formControlName", "", 3, "formControl", ""]],
- inputs: {
- name: "name",
- isDisabled: [0, "disabled", "isDisabled"],
- model: [0, "ngModel", "model"],
- options: [0, "ngModelOptions", "options"]
- },
- outputs: {
- update: "ngModelChange"
- },
- exportAs: ["ngModel"],
- standalone: false,
- features: [ɵɵProvidersFeature([formControlBinding$1]), ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgModel, [{
- type: Directive,
- args: [{
- selector: "[ngModel]:not([formControlName]):not([formControl])",
- providers: [formControlBinding$1],
- exportAs: "ngModel",
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALUE_ACCESSOR]
- }]
- }, {
- type: ChangeDetectorRef,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [ChangeDetectorRef]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [CALL_SET_DISABLED_STATE]
- }]
- }], {
- name: [{
- type: Input
- }],
- isDisabled: [{
- type: Input,
- args: ["disabled"]
- }],
- model: [{
- type: Input,
- args: ["ngModel"]
- }],
- options: [{
- type: Input,
- args: ["ngModelOptions"]
- }],
- update: [{
- type: Output,
- args: ["ngModelChange"]
- }]
- });
-})();
-function checkParentType$1(parent) {
- if (!(parent instanceof NgModelGroup) && parent instanceof AbstractFormGroupDirective) {
- throw formGroupNameException();
- } else if (!(parent instanceof NgModelGroup) && !(parent instanceof NgForm)) {
- throw modelParentException();
- }
-}
-var ɵNgNoValidate = class _ɵNgNoValidate {
- static ɵfac = function ɵNgNoValidate_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ɵNgNoValidate)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _ɵNgNoValidate,
- selectors: [["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""]],
- hostAttrs: ["novalidate", ""],
- standalone: false
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ɵNgNoValidate, [{
- type: Directive,
- args: [{
- selector: "form:not([ngNoForm]):not([ngNativeValidate])",
- host: {
- "novalidate": ""
- },
- standalone: false
- }]
- }], null, null);
-})();
-var NUMBER_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => NumberValueAccessor),
- multi: true
-};
-var NumberValueAccessor = class _NumberValueAccessor extends BuiltInControlValueAccessor {
- /**
- * Sets the "value" property on the input element.
- * @docs-private
- */
- writeValue(value) {
- const normalizedValue = value == null ? "" : value;
- this.setProperty("value", normalizedValue);
- }
- /**
- * Registers a function called when the control value changes.
- * @docs-private
- */
- registerOnChange(fn) {
- this.onChange = (value) => {
- fn(value == "" ? null : parseFloat(value));
- };
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵNumberValueAccessor_BaseFactory;
- return function NumberValueAccessor_Factory(__ngFactoryType__) {
- return (ɵNumberValueAccessor_BaseFactory || (ɵNumberValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_NumberValueAccessor)))(__ngFactoryType__ || _NumberValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _NumberValueAccessor,
- selectors: [["input", "type", "number", "formControlName", ""], ["input", "type", "number", "formControl", ""], ["input", "type", "number", "ngModel", ""]],
- hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("input", function NumberValueAccessor_input_HostBindingHandler($event) {
- return ctx.onChange($event.target.value);
- })("blur", function NumberValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- standalone: false,
- features: [ɵɵProvidersFeature([NUMBER_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NumberValueAccessor, [{
- type: Directive,
- args: [{
- selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",
- host: {
- "(input)": "onChange($any($event.target).value)",
- "(blur)": "onTouched()"
- },
- providers: [NUMBER_VALUE_ACCESSOR],
- standalone: false
- }]
- }], null, null);
-})();
-var RADIO_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => RadioControlValueAccessor),
- multi: true
-};
-function throwNameError() {
- throw new RuntimeError(1202, `
- If you define both a name and a formControlName attribute on your radio button, their values
- must match. Ex:
- `);
-}
-var RadioControlRegistry = class _RadioControlRegistry {
- _accessors = [];
- /**
- * @description
- * Adds a control to the internal registry. For internal use only.
- */
- add(control, accessor) {
- this._accessors.push([control, accessor]);
- }
- /**
- * @description
- * Removes a control from the internal registry. For internal use only.
- */
- remove(accessor) {
- for (let i = this._accessors.length - 1; i >= 0; --i) {
- if (this._accessors[i][1] === accessor) {
- this._accessors.splice(i, 1);
- return;
- }
- }
- }
- /**
- * @description
- * Selects a radio button. For internal use only.
- */
- select(accessor) {
- this._accessors.forEach((c) => {
- if (this._isSameGroup(c, accessor) && c[1] !== accessor) {
- c[1].fireUncheck(accessor.value);
- }
- });
- }
- _isSameGroup(controlPair, accessor) {
- if (!controlPair[0].control) return false;
- return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;
- }
- static ɵfac = function RadioControlRegistry_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _RadioControlRegistry)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _RadioControlRegistry,
- factory: _RadioControlRegistry.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(RadioControlRegistry, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], null, null);
-})();
-var RadioControlValueAccessor = class _RadioControlValueAccessor extends BuiltInControlValueAccessor {
- _registry;
- _injector;
- /** @internal */
- _state;
- /** @internal */
- _control;
- /** @internal */
- _fn;
- setDisabledStateFired = false;
- /**
- * The registered callback function called when a change event occurs on the input element.
- * Note: we declare `onChange` here (also used as host listener) as a function with no arguments
- * to override the `onChange` function (which expects 1 argument) in the parent
- * `BaseControlValueAccessor` class.
- * @docs-private
- */
- onChange = () => {
- };
- /**
- * @description
- * Tracks the name of the radio input element.
- */
- name;
- /**
- * @description
- * Tracks the name of the `FormControl` bound to the directive. The name corresponds
- * to a key in the parent `FormGroup` or `FormArray`.
- */
- formControlName;
- /**
- * @description
- * Tracks the value of the radio input element
- */
- value;
- callSetDisabledState = inject(CALL_SET_DISABLED_STATE, {
- optional: true
- }) ?? setDisabledStateDefault;
- constructor(renderer, elementRef, _registry, _injector) {
- super(renderer, elementRef);
- this._registry = _registry;
- this._injector = _injector;
- }
- /** @docs-private */
- ngOnInit() {
- this._control = this._injector.get(NgControl);
- this._checkName();
- this._registry.add(this._control, this);
- }
- /** @docs-private */
- ngOnDestroy() {
- this._registry.remove(this);
- }
- /**
- * Sets the "checked" property value on the radio input element.
- * @docs-private
- */
- writeValue(value) {
- this._state = value === this.value;
- this.setProperty("checked", this._state);
- }
- /**
- * Registers a function called when the control value changes.
- * @docs-private
- */
- registerOnChange(fn) {
- this._fn = fn;
- this.onChange = () => {
- fn(this.value);
- this._registry.select(this);
- };
- }
- /** @docs-private */
- setDisabledState(isDisabled) {
- if (this.setDisabledStateFired || isDisabled || this.callSetDisabledState === "whenDisabledForLegacyCode") {
- this.setProperty("disabled", isDisabled);
- }
- this.setDisabledStateFired = true;
- }
- /**
- * Sets the "value" on the radio input element and unchecks it.
- *
- * @param value
- */
- fireUncheck(value) {
- this.writeValue(value);
- }
- _checkName() {
- if (this.name && this.formControlName && this.name !== this.formControlName && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throwNameError();
- }
- if (!this.name && this.formControlName) this.name = this.formControlName;
- }
- static ɵfac = function RadioControlValueAccessor_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _RadioControlValueAccessor)(ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(RadioControlRegistry), ɵɵdirectiveInject(Injector));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _RadioControlValueAccessor,
- selectors: [["input", "type", "radio", "formControlName", ""], ["input", "type", "radio", "formControl", ""], ["input", "type", "radio", "ngModel", ""]],
- hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("change", function RadioControlValueAccessor_change_HostBindingHandler() {
- return ctx.onChange();
- })("blur", function RadioControlValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- inputs: {
- name: "name",
- formControlName: "formControlName",
- value: "value"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([RADIO_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(RadioControlValueAccessor, [{
- type: Directive,
- args: [{
- selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",
- host: {
- "(change)": "onChange()",
- "(blur)": "onTouched()"
- },
- providers: [RADIO_VALUE_ACCESSOR],
- standalone: false
- }]
- }], () => [{
- type: Renderer2
- }, {
- type: ElementRef
- }, {
- type: RadioControlRegistry
- }, {
- type: Injector
- }], {
- name: [{
- type: Input
- }],
- formControlName: [{
- type: Input
- }],
- value: [{
- type: Input
- }]
- });
-})();
-var RANGE_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => RangeValueAccessor),
- multi: true
-};
-var RangeValueAccessor = class _RangeValueAccessor extends BuiltInControlValueAccessor {
- /**
- * Sets the "value" property on the input element.
- * @docs-private
- */
- writeValue(value) {
- this.setProperty("value", parseFloat(value));
- }
- /**
- * Registers a function called when the control value changes.
- * @docs-private
- */
- registerOnChange(fn) {
- this.onChange = (value) => {
- fn(value == "" ? null : parseFloat(value));
- };
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵRangeValueAccessor_BaseFactory;
- return function RangeValueAccessor_Factory(__ngFactoryType__) {
- return (ɵRangeValueAccessor_BaseFactory || (ɵRangeValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_RangeValueAccessor)))(__ngFactoryType__ || _RangeValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _RangeValueAccessor,
- selectors: [["input", "type", "range", "formControlName", ""], ["input", "type", "range", "formControl", ""], ["input", "type", "range", "ngModel", ""]],
- hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("change", function RangeValueAccessor_change_HostBindingHandler($event) {
- return ctx.onChange($event.target.value);
- })("input", function RangeValueAccessor_input_HostBindingHandler($event) {
- return ctx.onChange($event.target.value);
- })("blur", function RangeValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- standalone: false,
- features: [ɵɵProvidersFeature([RANGE_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(RangeValueAccessor, [{
- type: Directive,
- args: [{
- selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",
- host: {
- "(change)": "onChange($any($event.target).value)",
- "(input)": "onChange($any($event.target).value)",
- "(blur)": "onTouched()"
- },
- providers: [RANGE_VALUE_ACCESSOR],
- standalone: false
- }]
- }], null, null);
-})();
-var NG_MODEL_WITH_FORM_CONTROL_WARNING = new InjectionToken(ngDevMode ? "NgModelWithFormControlWarning" : "");
-var formControlBinding = {
- provide: NgControl,
- useExisting: forwardRef(() => FormControlDirective)
-};
-var FormControlDirective = class _FormControlDirective extends NgControl {
- _ngModelWarningConfig;
- callSetDisabledState;
- /**
- * Internal reference to the view model value.
- * @docs-private
- */
- viewModel;
- /**
- * @description
- * Tracks the `FormControl` instance bound to the directive.
- */
- form;
- /**
- * @description
- * Triggers a warning in dev mode that this input should not be used with reactive forms.
- */
- set isDisabled(isDisabled) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- console.warn(disabledAttrWarning);
- }
- }
- // TODO(kara): remove next 4 properties once deprecation period is over
- /** @deprecated as of v6 */
- model;
- /** @deprecated as of v6 */
- update = new EventEmitter();
- /**
- * @description
- * Static property used to track whether any ngModel warnings have been sent across
- * all instances of FormControlDirective. Used to support warning config of "once".
- *
- * @internal
- */
- static _ngModelWarningSentOnce = false;
- /**
- * @description
- * Instance property used to track whether an ngModel warning has been sent out for this
- * particular `FormControlDirective` instance. Used to support warning config of "always".
- *
- * @internal
- */
- _ngModelWarningSent = false;
- constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {
- super();
- this._ngModelWarningConfig = _ngModelWarningConfig;
- this.callSetDisabledState = callSetDisabledState;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- this.valueAccessor = selectValueAccessor(this, valueAccessors);
- }
- /** @docs-private */
- ngOnChanges(changes) {
- if (this._isControlChanged(changes)) {
- const previousForm = changes["form"].previousValue;
- if (previousForm) {
- cleanUpControl(
- previousForm,
- this,
- /* validateControlPresenceOnChange */
- false
- );
- }
- setUpControl(this.form, this, this.callSetDisabledState);
- this.form.updateValueAndValidity({
- emitEvent: false
- });
- }
- if (isPropertyUpdated(changes, this.viewModel)) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- _ngModelWarning("formControl", _FormControlDirective, this, this._ngModelWarningConfig);
- }
- this.form.setValue(this.model);
- this.viewModel = this.model;
- }
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this.form) {
- cleanUpControl(
- this.form,
- this,
- /* validateControlPresenceOnChange */
- false
- );
- }
- }
- /**
- * @description
- * Returns an array that represents the path from the top-level form to this control.
- * Each index is the string name of the control on that level.
- */
- get path() {
- return [];
- }
- /**
- * @description
- * The `FormControl` bound to this directive.
- */
- get control() {
- return this.form;
- }
- /**
- * @description
- * Sets the new value for the view model and emits an `ngModelChange` event.
- *
- * @param newValue The new value for the view model.
- */
- viewToModelUpdate(newValue) {
- this.viewModel = newValue;
- this.update.emit(newValue);
- }
- _isControlChanged(changes) {
- return changes.hasOwnProperty("form");
- }
- static ɵfac = function FormControlDirective_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormControlDirective)(ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8), ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _FormControlDirective,
- selectors: [["", "formControl", ""]],
- inputs: {
- form: [0, "formControl", "form"],
- isDisabled: [0, "disabled", "isDisabled"],
- model: [0, "ngModel", "model"]
- },
- outputs: {
- update: "ngModelChange"
- },
- exportAs: ["ngForm"],
- standalone: false,
- features: [ɵɵProvidersFeature([formControlBinding]), ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormControlDirective, [{
- type: Directive,
- args: [{
- selector: "[formControl]",
- providers: [formControlBinding],
- exportAs: "ngForm",
- standalone: false
- }]
- }], () => [{
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALUE_ACCESSOR]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [CALL_SET_DISABLED_STATE]
- }]
- }], {
- form: [{
- type: Input,
- args: ["formControl"]
- }],
- isDisabled: [{
- type: Input,
- args: ["disabled"]
- }],
- model: [{
- type: Input,
- args: ["ngModel"]
- }],
- update: [{
- type: Output,
- args: ["ngModelChange"]
- }]
- });
-})();
-var formDirectiveProvider = {
- provide: ControlContainer,
- useExisting: forwardRef(() => FormGroupDirective)
-};
-var FormGroupDirective = class _FormGroupDirective extends ControlContainer {
- callSetDisabledState;
- /**
- * @description
- * Reports whether the form submission has been triggered.
- */
- get submitted() {
- return untracked(this._submittedReactive);
- }
- // TODO(atscott): Remove once invalid API usage is cleaned up internally
- set submitted(value) {
- this._submittedReactive.set(value);
- }
- /** @internal */
- _submitted = computed(() => this._submittedReactive(), ...ngDevMode ? [{
- debugName: "_submitted"
- }] : []);
- _submittedReactive = signal(false, ...ngDevMode ? [{
- debugName: "_submittedReactive"
- }] : []);
- /**
- * Reference to an old form group input value, which is needed to cleanup
- * old instance in case it was replaced with a new one.
- */
- _oldForm;
- /**
- * Callback that should be invoked when controls in FormGroup or FormArray collection change
- * (added or removed). This callback triggers corresponding DOM updates.
- */
- _onCollectionChange = () => this._updateDomValue();
- /**
- * @description
- * Tracks the list of added `FormControlName` instances
- */
- directives = [];
- /**
- * @description
- * Tracks the `FormGroup` bound to this directive.
- */
- form = null;
- /**
- * @description
- * Emits an event when the form submission has been triggered.
- */
- ngSubmit = new EventEmitter();
- constructor(validators, asyncValidators, callSetDisabledState) {
- super();
- this.callSetDisabledState = callSetDisabledState;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- }
- /** @docs-private */
- ngOnChanges(changes) {
- if ((typeof ngDevMode === "undefined" || ngDevMode) && !this.form) {
- throw missingFormException();
- }
- if (changes.hasOwnProperty("form")) {
- this._updateValidators();
- this._updateDomValue();
- this._updateRegistrations();
- this._oldForm = this.form;
- }
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this.form) {
- cleanUpValidators(this.form, this);
- if (this.form._onCollectionChange === this._onCollectionChange) {
- this.form._registerOnCollectionChange(() => {
- });
- }
- }
- }
- /**
- * @description
- * Returns this directive's instance.
- */
- get formDirective() {
- return this;
- }
- /**
- * @description
- * Returns the `FormGroup` bound to this directive.
- */
- get control() {
- return this.form;
- }
- /**
- * @description
- * Returns an array representing the path to this group. Because this directive
- * always lives at the top level of a form, it always an empty array.
- */
- get path() {
- return [];
- }
- /**
- * @description
- * Method that sets up the control directive in this group, re-calculates its value
- * and validity, and adds the instance to the internal list of directives.
- *
- * @param dir The `FormControlName` directive instance.
- */
- addControl(dir) {
- const ctrl = this.form.get(dir.path);
- setUpControl(ctrl, dir, this.callSetDisabledState);
- ctrl.updateValueAndValidity({
- emitEvent: false
- });
- this.directives.push(dir);
- return ctrl;
- }
- /**
- * @description
- * Retrieves the `FormControl` instance from the provided `FormControlName` directive
- *
- * @param dir The `FormControlName` directive instance.
- */
- getControl(dir) {
- return this.form.get(dir.path);
- }
- /**
- * @description
- * Removes the `FormControlName` instance from the internal list of directives
- *
- * @param dir The `FormControlName` directive instance.
- */
- removeControl(dir) {
- cleanUpControl(
- dir.control || null,
- dir,
- /* validateControlPresenceOnChange */
- false
- );
- removeListItem$1(this.directives, dir);
- }
- /**
- * Adds a new `FormGroupName` directive instance to the form.
- *
- * @param dir The `FormGroupName` directive instance.
- */
- addFormGroup(dir) {
- this._setUpFormContainer(dir);
- }
- /**
- * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the
- * view.
- *
- * @param dir The `FormGroupName` directive instance.
- */
- removeFormGroup(dir) {
- this._cleanUpFormContainer(dir);
- }
- /**
- * @description
- * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance
- *
- * @param dir The `FormGroupName` directive instance.
- */
- getFormGroup(dir) {
- return this.form.get(dir.path);
- }
- /**
- * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.
- *
- * @param dir The `FormArrayName` directive instance.
- */
- addFormArray(dir) {
- this._setUpFormContainer(dir);
- }
- /**
- * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the
- * view.
- *
- * @param dir The `FormArrayName` directive instance.
- */
- removeFormArray(dir) {
- this._cleanUpFormContainer(dir);
- }
- /**
- * @description
- * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.
- *
- * @param dir The `FormArrayName` directive instance.
- */
- getFormArray(dir) {
- return this.form.get(dir.path);
- }
- /**
- * Sets the new value for the provided `FormControlName` directive.
- *
- * @param dir The `FormControlName` directive instance.
- * @param value The new value for the directive's control.
- */
- updateModel(dir, value) {
- const ctrl = this.form.get(dir.path);
- ctrl.setValue(value);
- }
- /**
- * @description
- * Method called with the "submit" event is triggered on the form.
- * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
- *
- * @param $event The "submit" event object
- */
- onSubmit($event) {
- this._submittedReactive.set(true);
- syncPendingControls(this.form, this.directives);
- this.ngSubmit.emit($event);
- this.form._events.next(new FormSubmittedEvent(this.control));
- return $event?.target?.method === "dialog";
- }
- /**
- * @description
- * Method called when the "reset" event is triggered on the form.
- */
- onReset() {
- this.resetForm();
- }
- /**
- * @description
- * Resets the form to an initial value and resets its submitted status.
- *
- * @param value The new value for the form, `undefined` by default
- */
- resetForm(value = void 0, options = {}) {
- this.form.reset(value, options);
- this._submittedReactive.set(false);
- }
- /** @internal */
- _updateDomValue() {
- this.directives.forEach((dir) => {
- const oldCtrl = dir.control;
- const newCtrl = this.form.get(dir.path);
- if (oldCtrl !== newCtrl) {
- cleanUpControl(oldCtrl || null, dir);
- if (isFormControl(newCtrl)) {
- setUpControl(newCtrl, dir, this.callSetDisabledState);
- dir.control = newCtrl;
- }
- }
- });
- this.form._updateTreeValidity({
- emitEvent: false
- });
- }
- _setUpFormContainer(dir) {
- const ctrl = this.form.get(dir.path);
- setUpFormContainer(ctrl, dir);
- ctrl.updateValueAndValidity({
- emitEvent: false
- });
- }
- _cleanUpFormContainer(dir) {
- if (this.form) {
- const ctrl = this.form.get(dir.path);
- if (ctrl) {
- const isControlUpdated = cleanUpFormContainer(ctrl, dir);
- if (isControlUpdated) {
- ctrl.updateValueAndValidity({
- emitEvent: false
- });
- }
- }
- }
- }
- _updateRegistrations() {
- this.form._registerOnCollectionChange(this._onCollectionChange);
- if (this._oldForm) {
- this._oldForm._registerOnCollectionChange(() => {
- });
- }
- }
- _updateValidators() {
- setUpValidators(this.form, this);
- if (this._oldForm) {
- cleanUpValidators(this._oldForm, this);
- }
- }
- static ɵfac = function FormGroupDirective_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormGroupDirective)(ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _FormGroupDirective,
- selectors: [["", "formGroup", ""]],
- hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("submit", function FormGroupDirective_submit_HostBindingHandler($event) {
- return ctx.onSubmit($event);
- })("reset", function FormGroupDirective_reset_HostBindingHandler() {
- return ctx.onReset();
- });
- }
- },
- inputs: {
- form: [0, "formGroup", "form"]
- },
- outputs: {
- ngSubmit: "ngSubmit"
- },
- exportAs: ["ngForm"],
- standalone: false,
- features: [ɵɵProvidersFeature([formDirectiveProvider]), ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormGroupDirective, [{
- type: Directive,
- args: [{
- selector: "[formGroup]",
- providers: [formDirectiveProvider],
- host: {
- "(submit)": "onSubmit($event)",
- "(reset)": "onReset()"
- },
- exportAs: "ngForm",
- standalone: false
- }]
- }], () => [{
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [CALL_SET_DISABLED_STATE]
- }]
- }], {
- form: [{
- type: Input,
- args: ["formGroup"]
- }],
- ngSubmit: [{
- type: Output
- }]
- });
-})();
-var formGroupNameProvider = {
- provide: ControlContainer,
- useExisting: forwardRef(() => FormGroupName)
-};
-var FormGroupName = class _FormGroupName extends AbstractFormGroupDirective {
- /**
- * @description
- * Tracks the name of the `FormGroup` bound to the directive. The name corresponds
- * to a key in the parent `FormGroup` or `FormArray`.
- * Accepts a name as a string or a number.
- * The name in the form of a string is useful for individual forms,
- * while the numerical form allows for form groups to be bound
- * to indices when iterating over groups in a `FormArray`.
- */
- name = null;
- constructor(parent, validators, asyncValidators) {
- super();
- this._parent = parent;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- }
- /** @internal */
- _checkParentType() {
- if (hasInvalidParent(this._parent) && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw groupParentException();
- }
- }
- static ɵfac = function FormGroupName_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormGroupName)(ɵɵdirectiveInject(ControlContainer, 13), ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _FormGroupName,
- selectors: [["", "formGroupName", ""]],
- inputs: {
- name: [0, "formGroupName", "name"]
- },
- standalone: false,
- features: [ɵɵProvidersFeature([formGroupNameProvider]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormGroupName, [{
- type: Directive,
- args: [{
- selector: "[formGroupName]",
- providers: [formGroupNameProvider],
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }, {
- type: SkipSelf
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }], {
- name: [{
- type: Input,
- args: ["formGroupName"]
- }]
- });
-})();
-var formArrayNameProvider = {
- provide: ControlContainer,
- useExisting: forwardRef(() => FormArrayName)
-};
-var FormArrayName = class _FormArrayName extends ControlContainer {
- /** @internal */
- _parent;
- /**
- * @description
- * Tracks the name of the `FormArray` bound to the directive. The name corresponds
- * to a key in the parent `FormGroup` or `FormArray`.
- * Accepts a name as a string or a number.
- * The name in the form of a string is useful for individual forms,
- * while the numerical form allows for form arrays to be bound
- * to indices when iterating over arrays in a `FormArray`.
- */
- name = null;
- constructor(parent, validators, asyncValidators) {
- super();
- this._parent = parent;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- }
- /**
- * A lifecycle method called when the directive's inputs are initialized. For internal use only.
- * @throws If the directive does not have a valid parent.
- * @docs-private
- */
- ngOnInit() {
- if (hasInvalidParent(this._parent) && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw arrayParentException();
- }
- this.formDirective.addFormArray(this);
- }
- /**
- * A lifecycle method called before the directive's instance is destroyed. For internal use only.
- * @docs-private
- */
- ngOnDestroy() {
- this.formDirective?.removeFormArray(this);
- }
- /**
- * @description
- * The `FormArray` bound to this directive.
- */
- get control() {
- return this.formDirective.getFormArray(this);
- }
- /**
- * @description
- * The top-level directive for this group if present, otherwise null.
- */
- get formDirective() {
- return this._parent ? this._parent.formDirective : null;
- }
- /**
- * @description
- * Returns an array that represents the path from the top-level form to this control.
- * Each index is the string name of the control on that level.
- */
- get path() {
- return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
- }
- static ɵfac = function FormArrayName_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormArrayName)(ɵɵdirectiveInject(ControlContainer, 13), ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _FormArrayName,
- selectors: [["", "formArrayName", ""]],
- inputs: {
- name: [0, "formArrayName", "name"]
- },
- standalone: false,
- features: [ɵɵProvidersFeature([formArrayNameProvider]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormArrayName, [{
- type: Directive,
- args: [{
- selector: "[formArrayName]",
- providers: [formArrayNameProvider],
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }, {
- type: SkipSelf
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }], {
- name: [{
- type: Input,
- args: ["formArrayName"]
- }]
- });
-})();
-function hasInvalidParent(parent) {
- return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);
-}
-var controlNameBinding = {
- provide: NgControl,
- useExisting: forwardRef(() => FormControlName)
-};
-var FormControlName = class _FormControlName extends NgControl {
- _ngModelWarningConfig;
- _added = false;
- /**
- * Internal reference to the view model value.
- * @internal
- */
- viewModel;
- /**
- * @description
- * Tracks the `FormControl` instance bound to the directive.
- */
- control;
- /**
- * @description
- * Tracks the name of the `FormControl` bound to the directive. The name corresponds
- * to a key in the parent `FormGroup` or `FormArray`.
- * Accepts a name as a string or a number.
- * The name in the form of a string is useful for individual forms,
- * while the numerical form allows for form controls to be bound
- * to indices when iterating over controls in a `FormArray`.
- */
- name = null;
- /**
- * @description
- * Triggers a warning in dev mode that this input should not be used with reactive forms.
- */
- set isDisabled(isDisabled) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- console.warn(disabledAttrWarning);
- }
- }
- // TODO(kara): remove next 4 properties once deprecation period is over
- /** @deprecated as of v6 */
- model;
- /** @deprecated as of v6 */
- update = new EventEmitter();
- /**
- * @description
- * Static property used to track whether any ngModel warnings have been sent across
- * all instances of FormControlName. Used to support warning config of "once".
- *
- * @internal
- */
- static _ngModelWarningSentOnce = false;
- /**
- * @description
- * Instance property used to track whether an ngModel warning has been sent out for this
- * particular FormControlName instance. Used to support warning config of "always".
- *
- * @internal
- */
- _ngModelWarningSent = false;
- constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
- super();
- this._ngModelWarningConfig = _ngModelWarningConfig;
- this._parent = parent;
- this._setValidators(validators);
- this._setAsyncValidators(asyncValidators);
- this.valueAccessor = selectValueAccessor(this, valueAccessors);
- }
- /** @docs-private */
- ngOnChanges(changes) {
- if (!this._added) this._setUpControl();
- if (isPropertyUpdated(changes, this.viewModel)) {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- _ngModelWarning("formControlName", _FormControlName, this, this._ngModelWarningConfig);
- }
- this.viewModel = this.model;
- this.formDirective.updateModel(this, this.model);
- }
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this.formDirective) {
- this.formDirective.removeControl(this);
- }
- }
- /**
- * @description
- * Sets the new value for the view model and emits an `ngModelChange` event.
- *
- * @param newValue The new value for the view model.
- */
- viewToModelUpdate(newValue) {
- this.viewModel = newValue;
- this.update.emit(newValue);
- }
- /**
- * @description
- * Returns an array that represents the path from the top-level form to this control.
- * Each index is the string name of the control on that level.
- */
- get path() {
- return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
- }
- /**
- * @description
- * The top-level directive for this group if present, otherwise null.
- */
- get formDirective() {
- return this._parent ? this._parent.formDirective : null;
- }
- _setUpControl() {
- if (typeof ngDevMode === "undefined" || ngDevMode) {
- checkParentType(this._parent, this.name);
- }
- this.control = this.formDirective.addControl(this);
- this._added = true;
- }
- static ɵfac = function FormControlName_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormControlName)(ɵɵdirectiveInject(ControlContainer, 13), ɵɵdirectiveInject(NG_VALIDATORS, 10), ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _FormControlName,
- selectors: [["", "formControlName", ""]],
- inputs: {
- name: [0, "formControlName", "name"],
- isDisabled: [0, "disabled", "isDisabled"],
- model: [0, "ngModel", "model"]
- },
- outputs: {
- update: "ngModelChange"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([controlNameBinding]), ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormControlName, [{
- type: Directive,
- args: [{
- selector: "[formControlName]",
- providers: [controlNameBinding],
- standalone: false
- }]
- }], () => [{
- type: ControlContainer,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }, {
- type: SkipSelf
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_ASYNC_VALIDATORS]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Self
- }, {
- type: Inject,
- args: [NG_VALUE_ACCESSOR]
- }]
- }, {
- type: void 0,
- decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
- }]
- }], {
- name: [{
- type: Input,
- args: ["formControlName"]
- }],
- isDisabled: [{
- type: Input,
- args: ["disabled"]
- }],
- model: [{
- type: Input,
- args: ["ngModel"]
- }],
- update: [{
- type: Output,
- args: ["ngModelChange"]
- }]
- });
-})();
-function checkParentType(parent, name) {
- if (!(parent instanceof FormGroupName) && parent instanceof AbstractFormGroupDirective) {
- throw ngModelGroupException();
- } else if (!(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName)) {
- throw controlParentException(name);
- }
-}
-var SELECT_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => SelectControlValueAccessor),
- multi: true
-};
-function _buildValueString$1(id, value) {
- if (id == null) return `${value}`;
- if (value && typeof value === "object") value = "Object";
- return `${id}: ${value}`.slice(0, 50);
-}
-function _extractId$1(valueString) {
- return valueString.split(":")[0];
-}
-var SelectControlValueAccessor = class _SelectControlValueAccessor extends BuiltInControlValueAccessor {
- /** @docs-private */
- value;
- /** @internal */
- _optionMap = /* @__PURE__ */ new Map();
- /** @internal */
- _idCounter = 0;
- /**
- * @description
- * Tracks the option comparison algorithm for tracking identities when
- * checking for changes.
- */
- set compareWith(fn) {
- if (typeof fn !== "function" && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw new RuntimeError(1201, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
- }
- this._compareWith = fn;
- }
- _compareWith = Object.is;
- // We need this because we might be in the process of destroying the root
- // injector, which is marked as destroyed before running destroy hooks.
- // Attempting to use afterNextRender with the node injector would evntually
- // run into that already destroyed injector.
- appRefInjector = inject(ApplicationRef).injector;
- destroyRef = inject(DestroyRef);
- cdr = inject(ChangeDetectorRef);
- _queuedWrite = false;
- /**
- * This is needed to efficiently set the select value when adding/removing options. If
- * writeValue is instead called for every added/removed option, this results in exponentially
- * more _compareValue calls than the number of option elements (issue #41330).
- *
- * Secondly, calling writeValue when rendering individual option elements instead of after they
- * are all rendered caused an issue in Safari and IE 11 where the first option element failed
- * to be deselected when no option matched the select ngModel. This was because Angular would
- * set the select element's value property before appending the option's child text node to the
- * DOM (issue #14505).
- *
- * Finally, this approach is necessary to avoid an issue with delayed element removal when
- * using the animations module (in all browsers). Otherwise when a selected option is removed
- * (so no option matches the ngModel anymore), Angular would change the select element value
- * before actually removing the option from the DOM. Then when the option is finally removed
- * from the DOM, the browser would change the select value to that of the first option, even
- * though it doesn't match the ngModel (issue #18430).
- *
- * @internal
- */
- _writeValueAfterRender() {
- if (this._queuedWrite || this.appRefInjector.destroyed) {
- return;
- }
- this._queuedWrite = true;
- afterNextRender({
- write: () => {
- if (this.destroyRef.destroyed) {
- return;
- }
- this._queuedWrite = false;
- this.writeValue(this.value);
- }
- }, {
- injector: this.appRefInjector
- });
- }
- /**
- * Sets the "value" property on the select element.
- * @docs-private
- */
- writeValue(value) {
- this.cdr.markForCheck();
- this.value = value;
- const id = this._getOptionId(value);
- const valueString = _buildValueString$1(id, value);
- this.setProperty("value", valueString);
- }
- /**
- * Registers a function called when the control value changes.
- * @docs-private
- */
- registerOnChange(fn) {
- this.onChange = (valueString) => {
- this.value = this._getOptionValue(valueString);
- fn(this.value);
- };
- }
- /** @internal */
- _registerOption() {
- return (this._idCounter++).toString();
- }
- /** @internal */
- _getOptionId(value) {
- for (const id of this._optionMap.keys()) {
- if (this._compareWith(this._optionMap.get(id), value)) return id;
- }
- return null;
- }
- /** @internal */
- _getOptionValue(valueString) {
- const id = _extractId$1(valueString);
- return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵSelectControlValueAccessor_BaseFactory;
- return function SelectControlValueAccessor_Factory(__ngFactoryType__) {
- return (ɵSelectControlValueAccessor_BaseFactory || (ɵSelectControlValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_SelectControlValueAccessor)))(__ngFactoryType__ || _SelectControlValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _SelectControlValueAccessor,
- selectors: [["select", "formControlName", "", 3, "multiple", ""], ["select", "formControl", "", 3, "multiple", ""], ["select", "ngModel", "", 3, "multiple", ""]],
- hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("change", function SelectControlValueAccessor_change_HostBindingHandler($event) {
- return ctx.onChange($event.target.value);
- })("blur", function SelectControlValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- inputs: {
- compareWith: "compareWith"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([SELECT_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(SelectControlValueAccessor, [{
- type: Directive,
- args: [{
- selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",
- host: {
- "(change)": "onChange($any($event.target).value)",
- "(blur)": "onTouched()"
- },
- providers: [SELECT_VALUE_ACCESSOR],
- standalone: false
- }]
- }], null, {
- compareWith: [{
- type: Input
- }]
- });
-})();
-var NgSelectOption = class _NgSelectOption {
- _element;
- _renderer;
- _select;
- /**
- * @description
- * ID of the option element
- */
- id;
- constructor(_element, _renderer, _select) {
- this._element = _element;
- this._renderer = _renderer;
- this._select = _select;
- if (this._select) this.id = this._select._registerOption();
- }
- /**
- * @description
- * Tracks the value bound to the option element. Unlike the value binding,
- * ngValue supports binding to objects.
- */
- set ngValue(value) {
- if (this._select == null) return;
- this._select._optionMap.set(this.id, value);
- this._setElementValue(_buildValueString$1(this.id, value));
- this._select._writeValueAfterRender();
- }
- /**
- * @description
- * Tracks simple string values bound to the option element.
- * For objects, use the `ngValue` input binding.
- */
- set value(value) {
- this._setElementValue(value);
- if (this._select) this._select._writeValueAfterRender();
- }
- /** @internal */
- _setElementValue(value) {
- this._renderer.setProperty(this._element.nativeElement, "value", value);
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this._select) {
- this._select._optionMap.delete(this.id);
- this._select._writeValueAfterRender();
- }
- }
- static ɵfac = function NgSelectOption_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NgSelectOption)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(SelectControlValueAccessor, 9));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _NgSelectOption,
- selectors: [["option"]],
- inputs: {
- ngValue: "ngValue",
- value: "value"
- },
- standalone: false
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgSelectOption, [{
- type: Directive,
- args: [{
- selector: "option",
- standalone: false
- }]
- }], () => [{
- type: ElementRef
- }, {
- type: Renderer2
- }, {
- type: SelectControlValueAccessor,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }]
- }], {
- ngValue: [{
- type: Input,
- args: ["ngValue"]
- }],
- value: [{
- type: Input,
- args: ["value"]
- }]
- });
-})();
-var SELECT_MULTIPLE_VALUE_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => SelectMultipleControlValueAccessor),
- multi: true
-};
-function _buildValueString(id, value) {
- if (id == null) return `${value}`;
- if (typeof value === "string") value = `'${value}'`;
- if (value && typeof value === "object") value = "Object";
- return `${id}: ${value}`.slice(0, 50);
-}
-function _extractId(valueString) {
- return valueString.split(":")[0];
-}
-var SelectMultipleControlValueAccessor = class _SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
- /**
- * The current value.
- * @docs-private
- */
- value;
- /** @internal */
- _optionMap = /* @__PURE__ */ new Map();
- /** @internal */
- _idCounter = 0;
- /**
- * @description
- * Tracks the option comparison algorithm for tracking identities when
- * checking for changes.
- */
- set compareWith(fn) {
- if (typeof fn !== "function" && (typeof ngDevMode === "undefined" || ngDevMode)) {
- throw new RuntimeError(1201, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
- }
- this._compareWith = fn;
- }
- _compareWith = Object.is;
- /**
- * Sets the "value" property on one or of more of the select's options.
- * @docs-private
- */
- writeValue(value) {
- this.value = value;
- let optionSelectedStateSetter;
- if (Array.isArray(value)) {
- const ids = value.map((v) => this._getOptionId(v));
- optionSelectedStateSetter = (opt, o) => {
- opt._setSelected(ids.indexOf(o.toString()) > -1);
- };
- } else {
- optionSelectedStateSetter = (opt, o) => {
- opt._setSelected(false);
- };
- }
- this._optionMap.forEach(optionSelectedStateSetter);
- }
- /**
- * Registers a function called when the control value changes
- * and writes an array of the selected options.
- * @docs-private
- */
- registerOnChange(fn) {
- this.onChange = (element) => {
- const selected = [];
- const selectedOptions = element.selectedOptions;
- if (selectedOptions !== void 0) {
- const options = selectedOptions;
- for (let i = 0; i < options.length; i++) {
- const opt = options[i];
- const val = this._getOptionValue(opt.value);
- selected.push(val);
- }
- } else {
- const options = element.options;
- for (let i = 0; i < options.length; i++) {
- const opt = options[i];
- if (opt.selected) {
- const val = this._getOptionValue(opt.value);
- selected.push(val);
- }
- }
- }
- this.value = selected;
- fn(selected);
- };
- }
- /** @internal */
- _registerOption(value) {
- const id = (this._idCounter++).toString();
- this._optionMap.set(id, value);
- return id;
- }
- /** @internal */
- _getOptionId(value) {
- for (const id of this._optionMap.keys()) {
- if (this._compareWith(this._optionMap.get(id)._value, value)) return id;
- }
- return null;
- }
- /** @internal */
- _getOptionValue(valueString) {
- const id = _extractId(valueString);
- return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵSelectMultipleControlValueAccessor_BaseFactory;
- return function SelectMultipleControlValueAccessor_Factory(__ngFactoryType__) {
- return (ɵSelectMultipleControlValueAccessor_BaseFactory || (ɵSelectMultipleControlValueAccessor_BaseFactory = ɵɵgetInheritedFactory(_SelectMultipleControlValueAccessor)))(__ngFactoryType__ || _SelectMultipleControlValueAccessor);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _SelectMultipleControlValueAccessor,
- selectors: [["select", "multiple", "", "formControlName", ""], ["select", "multiple", "", "formControl", ""], ["select", "multiple", "", "ngModel", ""]],
- hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {
- if (rf & 1) {
- ɵɵlistener("change", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {
- return ctx.onChange($event.target);
- })("blur", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {
- return ctx.onTouched();
- });
- }
- },
- inputs: {
- compareWith: "compareWith"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([SELECT_MULTIPLE_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(SelectMultipleControlValueAccessor, [{
- type: Directive,
- args: [{
- selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",
- host: {
- "(change)": "onChange($event.target)",
- "(blur)": "onTouched()"
- },
- providers: [SELECT_MULTIPLE_VALUE_ACCESSOR],
- standalone: false
- }]
- }], null, {
- compareWith: [{
- type: Input
- }]
- });
-})();
-var ɵNgSelectMultipleOption = class _ɵNgSelectMultipleOption {
- _element;
- _renderer;
- _select;
- id;
- /** @internal */
- _value;
- constructor(_element, _renderer, _select) {
- this._element = _element;
- this._renderer = _renderer;
- this._select = _select;
- if (this._select) {
- this.id = this._select._registerOption(this);
- }
- }
- /**
- * @description
- * Tracks the value bound to the option element. Unlike the value binding,
- * ngValue supports binding to objects.
- */
- set ngValue(value) {
- if (this._select == null) return;
- this._value = value;
- this._setElementValue(_buildValueString(this.id, value));
- this._select.writeValue(this._select.value);
- }
- /**
- * @description
- * Tracks simple string values bound to the option element.
- * For objects, use the `ngValue` input binding.
- */
- set value(value) {
- if (this._select) {
- this._value = value;
- this._setElementValue(_buildValueString(this.id, value));
- this._select.writeValue(this._select.value);
- } else {
- this._setElementValue(value);
- }
- }
- /** @internal */
- _setElementValue(value) {
- this._renderer.setProperty(this._element.nativeElement, "value", value);
- }
- /** @internal */
- _setSelected(selected) {
- this._renderer.setProperty(this._element.nativeElement, "selected", selected);
- }
- /** @docs-private */
- ngOnDestroy() {
- if (this._select) {
- this._select._optionMap.delete(this.id);
- this._select.writeValue(this._select.value);
- }
- }
- static ɵfac = function ɵNgSelectMultipleOption_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ɵNgSelectMultipleOption)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(SelectMultipleControlValueAccessor, 9));
- };
- static ɵdir = ɵɵdefineDirective({
- type: _ɵNgSelectMultipleOption,
- selectors: [["option"]],
- inputs: {
- ngValue: "ngValue",
- value: "value"
- },
- standalone: false
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ɵNgSelectMultipleOption, [{
- type: Directive,
- args: [{
- selector: "option",
- standalone: false
- }]
- }], () => [{
- type: ElementRef
- }, {
- type: Renderer2
- }, {
- type: SelectMultipleControlValueAccessor,
- decorators: [{
- type: Optional
- }, {
- type: Host
- }]
- }], {
- ngValue: [{
- type: Input,
- args: ["ngValue"]
- }],
- value: [{
- type: Input,
- args: ["value"]
- }]
- });
-})();
-function toInteger(value) {
- return typeof value === "number" ? value : parseInt(value, 10);
-}
-function toFloat(value) {
- return typeof value === "number" ? value : parseFloat(value);
-}
-var AbstractValidatorDirective = class _AbstractValidatorDirective {
- _validator = nullValidator;
- _onChange;
- /**
- * A flag that tracks whether this validator is enabled.
- *
- * Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of
- * directive classes that extend this base class.
- * @internal
- */
- _enabled;
- /** @docs-private */
- ngOnChanges(changes) {
- if (this.inputName in changes) {
- const input = this.normalizeInput(changes[this.inputName].currentValue);
- this._enabled = this.enabled(input);
- this._validator = this._enabled ? this.createValidator(input) : nullValidator;
- if (this._onChange) {
- this._onChange();
- }
- }
- }
- /** @docs-private */
- validate(control) {
- return this._validator(control);
- }
- /** @docs-private */
- registerOnValidatorChange(fn) {
- this._onChange = fn;
- }
- /**
- * @description
- * Determines whether this validator should be active or not based on an input.
- * Base class implementation checks whether an input is defined (if the value is different from
- * `null` and `undefined`). Validator classes that extend this base class can override this
- * function with the logic specific to a particular validator directive.
- */
- enabled(input) {
- return input != null;
- }
- static ɵfac = function AbstractValidatorDirective_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _AbstractValidatorDirective)();
- };
- static ɵdir = ɵɵdefineDirective({
- type: _AbstractValidatorDirective,
- features: [ɵɵNgOnChangesFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(AbstractValidatorDirective, [{
- type: Directive
- }], null, null);
-})();
-var MAX_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => MaxValidator),
- multi: true
-};
-var MaxValidator = class _MaxValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the max bound to this directive.
- */
- max;
- /** @internal */
- inputName = "max";
- /** @internal */
- normalizeInput = (input) => toFloat(input);
- /** @internal */
- createValidator = (max) => maxValidator(max);
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵMaxValidator_BaseFactory;
- return function MaxValidator_Factory(__ngFactoryType__) {
- return (ɵMaxValidator_BaseFactory || (ɵMaxValidator_BaseFactory = ɵɵgetInheritedFactory(_MaxValidator)))(__ngFactoryType__ || _MaxValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _MaxValidator,
- selectors: [["input", "type", "number", "max", "", "formControlName", ""], ["input", "type", "number", "max", "", "formControl", ""], ["input", "type", "number", "max", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function MaxValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("max", ctx._enabled ? ctx.max : null);
- }
- },
- inputs: {
- max: "max"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([MAX_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MaxValidator, [{
- type: Directive,
- args: [{
- selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]",
- providers: [MAX_VALIDATOR],
- host: {
- "[attr.max]": "_enabled ? max : null"
- },
- standalone: false
- }]
- }], null, {
- max: [{
- type: Input
- }]
- });
-})();
-var MIN_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => MinValidator),
- multi: true
-};
-var MinValidator = class _MinValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the min bound to this directive.
- */
- min;
- /** @internal */
- inputName = "min";
- /** @internal */
- normalizeInput = (input) => toFloat(input);
- /** @internal */
- createValidator = (min) => minValidator(min);
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵMinValidator_BaseFactory;
- return function MinValidator_Factory(__ngFactoryType__) {
- return (ɵMinValidator_BaseFactory || (ɵMinValidator_BaseFactory = ɵɵgetInheritedFactory(_MinValidator)))(__ngFactoryType__ || _MinValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _MinValidator,
- selectors: [["input", "type", "number", "min", "", "formControlName", ""], ["input", "type", "number", "min", "", "formControl", ""], ["input", "type", "number", "min", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function MinValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("min", ctx._enabled ? ctx.min : null);
- }
- },
- inputs: {
- min: "min"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([MIN_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MinValidator, [{
- type: Directive,
- args: [{
- selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]",
- providers: [MIN_VALIDATOR],
- host: {
- "[attr.min]": "_enabled ? min : null"
- },
- standalone: false
- }]
- }], null, {
- min: [{
- type: Input
- }]
- });
-})();
-var REQUIRED_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => RequiredValidator),
- multi: true
-};
-var CHECKBOX_REQUIRED_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => CheckboxRequiredValidator),
- multi: true
-};
-var RequiredValidator = class _RequiredValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the required attribute bound to this directive.
- */
- required;
- /** @internal */
- inputName = "required";
- /** @internal */
- normalizeInput = booleanAttribute;
- /** @internal */
- createValidator = (input) => requiredValidator;
- /** @docs-private */
- enabled(input) {
- return input;
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵRequiredValidator_BaseFactory;
- return function RequiredValidator_Factory(__ngFactoryType__) {
- return (ɵRequiredValidator_BaseFactory || (ɵRequiredValidator_BaseFactory = ɵɵgetInheritedFactory(_RequiredValidator)))(__ngFactoryType__ || _RequiredValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _RequiredValidator,
- selectors: [["", "required", "", "formControlName", "", 3, "type", "checkbox"], ["", "required", "", "formControl", "", 3, "type", "checkbox"], ["", "required", "", "ngModel", "", 3, "type", "checkbox"]],
- hostVars: 1,
- hostBindings: function RequiredValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("required", ctx._enabled ? "" : null);
- }
- },
- inputs: {
- required: "required"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([REQUIRED_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(RequiredValidator, [{
- type: Directive,
- args: [{
- selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",
- providers: [REQUIRED_VALIDATOR],
- host: {
- "[attr.required]": '_enabled ? "" : null'
- },
- standalone: false
- }]
- }], null, {
- required: [{
- type: Input
- }]
- });
-})();
-var CheckboxRequiredValidator = class _CheckboxRequiredValidator extends RequiredValidator {
- /** @internal */
- createValidator = (input) => requiredTrueValidator;
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵCheckboxRequiredValidator_BaseFactory;
- return function CheckboxRequiredValidator_Factory(__ngFactoryType__) {
- return (ɵCheckboxRequiredValidator_BaseFactory || (ɵCheckboxRequiredValidator_BaseFactory = ɵɵgetInheritedFactory(_CheckboxRequiredValidator)))(__ngFactoryType__ || _CheckboxRequiredValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _CheckboxRequiredValidator,
- selectors: [["input", "type", "checkbox", "required", "", "formControlName", ""], ["input", "type", "checkbox", "required", "", "formControl", ""], ["input", "type", "checkbox", "required", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("required", ctx._enabled ? "" : null);
- }
- },
- standalone: false,
- features: [ɵɵProvidersFeature([CHECKBOX_REQUIRED_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CheckboxRequiredValidator, [{
- type: Directive,
- args: [{
- selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",
- providers: [CHECKBOX_REQUIRED_VALIDATOR],
- host: {
- "[attr.required]": '_enabled ? "" : null'
- },
- standalone: false
- }]
- }], null, null);
-})();
-var EMAIL_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => EmailValidator),
- multi: true
-};
-var EmailValidator = class _EmailValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the email attribute bound to this directive.
- */
- email;
- /** @internal */
- inputName = "email";
- /** @internal */
- normalizeInput = booleanAttribute;
- /** @internal */
- createValidator = (input) => emailValidator;
- /** @docs-private */
- enabled(input) {
- return input;
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵEmailValidator_BaseFactory;
- return function EmailValidator_Factory(__ngFactoryType__) {
- return (ɵEmailValidator_BaseFactory || (ɵEmailValidator_BaseFactory = ɵɵgetInheritedFactory(_EmailValidator)))(__ngFactoryType__ || _EmailValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _EmailValidator,
- selectors: [["", "email", "", "formControlName", ""], ["", "email", "", "formControl", ""], ["", "email", "", "ngModel", ""]],
- inputs: {
- email: "email"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([EMAIL_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(EmailValidator, [{
- type: Directive,
- args: [{
- selector: "[email][formControlName],[email][formControl],[email][ngModel]",
- providers: [EMAIL_VALIDATOR],
- standalone: false
- }]
- }], null, {
- email: [{
- type: Input
- }]
- });
-})();
-var MIN_LENGTH_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => MinLengthValidator),
- multi: true
-};
-var MinLengthValidator = class _MinLengthValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the minimum length bound to this directive.
- */
- minlength;
- /** @internal */
- inputName = "minlength";
- /** @internal */
- normalizeInput = (input) => toInteger(input);
- /** @internal */
- createValidator = (minlength) => minLengthValidator(minlength);
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵMinLengthValidator_BaseFactory;
- return function MinLengthValidator_Factory(__ngFactoryType__) {
- return (ɵMinLengthValidator_BaseFactory || (ɵMinLengthValidator_BaseFactory = ɵɵgetInheritedFactory(_MinLengthValidator)))(__ngFactoryType__ || _MinLengthValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _MinLengthValidator,
- selectors: [["", "minlength", "", "formControlName", ""], ["", "minlength", "", "formControl", ""], ["", "minlength", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("minlength", ctx._enabled ? ctx.minlength : null);
- }
- },
- inputs: {
- minlength: "minlength"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([MIN_LENGTH_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MinLengthValidator, [{
- type: Directive,
- args: [{
- selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",
- providers: [MIN_LENGTH_VALIDATOR],
- host: {
- "[attr.minlength]": "_enabled ? minlength : null"
- },
- standalone: false
- }]
- }], null, {
- minlength: [{
- type: Input
- }]
- });
-})();
-var MAX_LENGTH_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => MaxLengthValidator),
- multi: true
-};
-var MaxLengthValidator = class _MaxLengthValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the maximum length bound to this directive.
- */
- maxlength;
- /** @internal */
- inputName = "maxlength";
- /** @internal */
- normalizeInput = (input) => toInteger(input);
- /** @internal */
- createValidator = (maxlength) => maxLengthValidator(maxlength);
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵMaxLengthValidator_BaseFactory;
- return function MaxLengthValidator_Factory(__ngFactoryType__) {
- return (ɵMaxLengthValidator_BaseFactory || (ɵMaxLengthValidator_BaseFactory = ɵɵgetInheritedFactory(_MaxLengthValidator)))(__ngFactoryType__ || _MaxLengthValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _MaxLengthValidator,
- selectors: [["", "maxlength", "", "formControlName", ""], ["", "maxlength", "", "formControl", ""], ["", "maxlength", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("maxlength", ctx._enabled ? ctx.maxlength : null);
- }
- },
- inputs: {
- maxlength: "maxlength"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([MAX_LENGTH_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MaxLengthValidator, [{
- type: Directive,
- args: [{
- selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
- providers: [MAX_LENGTH_VALIDATOR],
- host: {
- "[attr.maxlength]": "_enabled ? maxlength : null"
- },
- standalone: false
- }]
- }], null, {
- maxlength: [{
- type: Input
- }]
- });
-})();
-var PATTERN_VALIDATOR = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => PatternValidator),
- multi: true
-};
-var PatternValidator = class _PatternValidator extends AbstractValidatorDirective {
- /**
- * @description
- * Tracks changes to the pattern bound to this directive.
- */
- pattern;
- // This input is always defined, since the name matches selector.
- /** @internal */
- inputName = "pattern";
- /** @internal */
- normalizeInput = (input) => input;
- /** @internal */
- createValidator = (input) => patternValidator(input);
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵPatternValidator_BaseFactory;
- return function PatternValidator_Factory(__ngFactoryType__) {
- return (ɵPatternValidator_BaseFactory || (ɵPatternValidator_BaseFactory = ɵɵgetInheritedFactory(_PatternValidator)))(__ngFactoryType__ || _PatternValidator);
- };
- })();
- static ɵdir = ɵɵdefineDirective({
- type: _PatternValidator,
- selectors: [["", "pattern", "", "formControlName", ""], ["", "pattern", "", "formControl", ""], ["", "pattern", "", "ngModel", ""]],
- hostVars: 1,
- hostBindings: function PatternValidator_HostBindings(rf, ctx) {
- if (rf & 2) {
- ɵɵattribute("pattern", ctx._enabled ? ctx.pattern : null);
- }
- },
- inputs: {
- pattern: "pattern"
- },
- standalone: false,
- features: [ɵɵProvidersFeature([PATTERN_VALIDATOR]), ɵɵInheritDefinitionFeature]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(PatternValidator, [{
- type: Directive,
- args: [{
- selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",
- providers: [PATTERN_VALIDATOR],
- host: {
- "[attr.pattern]": "_enabled ? pattern : null"
- },
- standalone: false
- }]
- }], null, {
- pattern: [{
- type: Input
- }]
- });
-})();
-var SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator];
-var TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];
-var REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];
-var ɵInternalFormsSharedModule = class _ɵInternalFormsSharedModule {
- static ɵfac = function ɵInternalFormsSharedModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ɵInternalFormsSharedModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _ɵInternalFormsSharedModule,
- declarations: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator],
- exports: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator]
- });
- static ɵinj = ɵɵdefineInjector({});
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ɵInternalFormsSharedModule, [{
- type: NgModule,
- args: [{
- declarations: SHARED_FORM_DIRECTIVES,
- exports: SHARED_FORM_DIRECTIVES
- }]
- }], null, null);
-})();
-var FormArray = class extends AbstractControl {
- /**
- * Creates a new `FormArray` instance.
- *
- * @param controls An array of child controls. Each child control is given an index
- * where it is registered.
- *
- * @param validatorOrOpts A synchronous validator function, or an array of
- * such functions, or an `AbstractControlOptions` object that contains validation functions
- * and a validation trigger.
- *
- * @param asyncValidator A single async validator or array of async validator functions
- *
- */
- constructor(controls, validatorOrOpts, asyncValidator) {
- super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
- this.controls = controls;
- this._initObservables();
- this._setUpdateStrategy(validatorOrOpts);
- this._setUpControls();
- this.updateValueAndValidity({
- onlySelf: true,
- // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
- // `VALID` or `INVALID`.
- // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
- // to `true` to allow that during the control creation process.
- emitEvent: !!this.asyncValidator
- });
- }
- controls;
- /**
- * Get the `AbstractControl` at the given `index` in the array.
- *
- * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap
- * around from the back, and if index is greatly negative (less than `-length`), the result is
- * undefined. This behavior is the same as `Array.at(index)`.
- */
- at(index) {
- return this.controls[this._adjustIndex(index)];
- }
- /**
- * Insert a new `AbstractControl` at the end of the array.
- *
- * @param control Form control to be inserted
- * @param options Specifies whether this FormArray instance should emit events after a new
- * control is added.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control is
- * inserted. When false, no events are emitted.
- */
- push(control, options = {}) {
- if (Array.isArray(control)) {
- control.forEach((ctrl) => {
- this.controls.push(ctrl);
- this._registerControl(ctrl);
- });
- } else {
- this.controls.push(control);
- this._registerControl(control);
- }
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- this._onCollectionChange();
- }
- /**
- * Insert a new `AbstractControl` at the given `index` in the array.
- *
- * @param index Index in the array to insert the control. If `index` is negative, wraps around
- * from the back. If `index` is greatly negative (less than `-length`), prepends to the array.
- * This behavior is the same as `Array.splice(index, 0, control)`.
- * @param control Form control to be inserted
- * @param options Specifies whether this FormArray instance should emit events after a new
- * control is inserted.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control is
- * inserted. When false, no events are emitted.
- */
- insert(index, control, options = {}) {
- this.controls.splice(index, 0, control);
- this._registerControl(control);
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- }
- /**
- * Remove the control at the given `index` in the array.
- *
- * @param index Index in the array to remove the control. If `index` is negative, wraps around
- * from the back. If `index` is greatly negative (less than `-length`), removes the first
- * element. This behavior is the same as `Array.splice(index, 1)`.
- * @param options Specifies whether this FormArray instance should emit events after a
- * control is removed.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control is
- * removed. When false, no events are emitted.
- */
- removeAt(index, options = {}) {
- let adjustedIndex = this._adjustIndex(index);
- if (adjustedIndex < 0) adjustedIndex = 0;
- if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {
- });
- this.controls.splice(adjustedIndex, 1);
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- }
- /**
- * Replace an existing control.
- *
- * @param index Index in the array to replace the control. If `index` is negative, wraps around
- * from the back. If `index` is greatly negative (less than `-length`), replaces the first
- * element. This behavior is the same as `Array.splice(index, 1, control)`.
- * @param control The `AbstractControl` control to replace the existing control
- * @param options Specifies whether this FormArray instance should emit events after an
- * existing control is replaced with a new one.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control is
- * replaced with a new one. When false, no events are emitted.
- */
- setControl(index, control, options = {}) {
- let adjustedIndex = this._adjustIndex(index);
- if (adjustedIndex < 0) adjustedIndex = 0;
- if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {
- });
- this.controls.splice(adjustedIndex, 1);
- if (control) {
- this.controls.splice(adjustedIndex, 0, control);
- this._registerControl(control);
- }
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- this._onCollectionChange();
- }
- /**
- * Length of the control array.
- */
- get length() {
- return this.controls.length;
- }
- /**
- * Sets the value of the `FormArray`. It accepts an array that matches
- * the structure of the control.
- *
- * This method performs strict checks, and throws an error if you try
- * to set the value of a control that doesn't exist or if you exclude the
- * value of a control.
- *
- * @usageNotes
- * ### Set the values for the controls in the form array
- *
- * ```ts
- * const arr = new FormArray([
- * new FormControl(),
- * new FormControl()
- * ]);
- * console.log(arr.value); // [null, null]
- *
- * arr.setValue(['Nancy', 'Drew']);
- * console.log(arr.value); // ['Nancy', 'Drew']
- * ```
- *
- * @param value Array of values for the controls
- * @param options Configure options that determine how the control propagates changes and
- * emits events after the value changes
- *
- * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
- * is false.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges`
- * observables emit events with the latest status and value when the control value is updated.
- * When false, no events are emitted.
- * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
- * updateValueAndValidity} method.
- */
- setValue(value, options = {}) {
- assertAllValuesPresent(this, false, value);
- value.forEach((newValue, index) => {
- assertControlPresent(this, false, index);
- this.at(index).setValue(newValue, {
- onlySelf: true,
- emitEvent: options.emitEvent
- });
- });
- this.updateValueAndValidity(options);
- }
- /**
- * Patches the value of the `FormArray`. It accepts an array that matches the
- * structure of the control, and does its best to match the values to the correct
- * controls in the group.
- *
- * It accepts both super-sets and sub-sets of the array without throwing an error.
- *
- * @usageNotes
- * ### Patch the values for controls in a form array
- *
- * ```ts
- * const arr = new FormArray([
- * new FormControl(),
- * new FormControl()
- * ]);
- * console.log(arr.value); // [null, null]
- *
- * arr.patchValue(['Nancy']);
- * console.log(arr.value); // ['Nancy', null]
- * ```
- *
- * @param value Array of latest values for the controls
- * @param options Configure options that determine how the control propagates changes and
- * emits events after the value changes
- *
- * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
- * is false.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when the control
- * value is updated. When false, no events are emitted. The configuration options are passed to
- * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.
- */
- patchValue(value, options = {}) {
- if (value == null) return;
- value.forEach((newValue, index) => {
- if (this.at(index)) {
- this.at(index).patchValue(newValue, {
- onlySelf: true,
- emitEvent: options.emitEvent
- });
- }
- });
- this.updateValueAndValidity(options);
- }
- /**
- * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the
- * value of all descendants to null or null maps.
- *
- * You reset to a specific form state by passing in an array of states
- * that matches the structure of the control. The state is a standalone value
- * or a form state object with both a value and a disabled status.
- *
- * @usageNotes
- * ### Reset the values in a form array
- *
- * ```ts
- * const arr = new FormArray([
- * new FormControl(),
- * new FormControl()
- * ]);
- * arr.reset(['name', 'last name']);
- *
- * console.log(arr.value); // ['name', 'last name']
- * ```
- *
- * ### Reset the values in a form array and the disabled status for the first control
- *
- * ```ts
- * arr.reset([
- * {value: 'name', disabled: true},
- * 'last'
- * ]);
- *
- * console.log(arr.value); // ['last']
- * console.log(arr.at(0).status); // 'DISABLED'
- * ```
- *
- * @param value Array of values for the controls
- * @param options Configure options that determine how the control propagates changes and
- * emits events after the value changes
- *
- * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
- * is false.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges`
- * observables emit events with the latest status and value when the control is reset.
- * When false, no events are emitted.
- * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
- * updateValueAndValidity} method.
- */
- reset(value = [], options = {}) {
- this._forEachChild((control, index) => {
- control.reset(value[index], {
- onlySelf: true,
- emitEvent: options.emitEvent
- });
- });
- this._updatePristine(options, this);
- this._updateTouched(options, this);
- this.updateValueAndValidity(options);
- if (options?.emitEvent !== false) {
- this._events.next(new FormResetEvent(this));
- }
- }
- /**
- * The aggregate value of the array, including any disabled controls.
- *
- * Reports all values regardless of disabled status.
- */
- getRawValue() {
- return this.controls.map((control) => control.getRawValue());
- }
- /**
- * Remove all controls in the `FormArray`.
- *
- * @param options Specifies whether this FormArray instance should emit events after all
- * controls are removed.
- * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
- * `valueChanges` observables emit events with the latest status and value when all controls
- * in this FormArray instance are removed. When false, no events are emitted.
- *
- * @usageNotes
- * ### Remove all elements from a FormArray
- *
- * ```ts
- * const arr = new FormArray([
- * new FormControl(),
- * new FormControl()
- * ]);
- * console.log(arr.length); // 2
- *
- * arr.clear();
- * console.log(arr.length); // 0
- * ```
- *
- * It's a simpler and more efficient alternative to removing all elements one by one:
- *
- * ```ts
- * const arr = new FormArray([
- * new FormControl(),
- * new FormControl()
- * ]);
- *
- * while (arr.length) {
- * arr.removeAt(0);
- * }
- * ```
- */
- clear(options = {}) {
- if (this.controls.length < 1) return;
- this._forEachChild((control) => control._registerOnCollectionChange(() => {
- }));
- this.controls.splice(0);
- this.updateValueAndValidity({
- emitEvent: options.emitEvent
- });
- }
- /**
- * Adjusts a negative index by summing it with the length of the array. For very negative
- * indices, the result may remain negative.
- * @internal
- */
- _adjustIndex(index) {
- return index < 0 ? index + this.length : index;
- }
- /** @internal */
- _syncPendingControls() {
- let subtreeUpdated = this.controls.reduce((updated, child) => {
- return child._syncPendingControls() ? true : updated;
- }, false);
- if (subtreeUpdated) this.updateValueAndValidity({
- onlySelf: true
- });
- return subtreeUpdated;
- }
- /** @internal */
- _forEachChild(cb) {
- this.controls.forEach((control, index) => {
- cb(control, index);
- });
- }
- /** @internal */
- _updateValue() {
- this.value = this.controls.filter((control) => control.enabled || this.disabled).map((control) => control.value);
- }
- /** @internal */
- _anyControls(condition) {
- return this.controls.some((control) => control.enabled && condition(control));
- }
- /** @internal */
- _setUpControls() {
- this._forEachChild((control) => this._registerControl(control));
- }
- /** @internal */
- _allControlsDisabled() {
- for (const control of this.controls) {
- if (control.enabled) return false;
- }
- return this.controls.length > 0 || this.disabled;
- }
- _registerControl(control) {
- control.setParent(this);
- control._registerOnCollectionChange(this._onCollectionChange);
- }
- /** @internal */
- _find(name) {
- return this.at(name) ?? null;
- }
-};
-var UntypedFormArray = FormArray;
-var isFormArray = (control) => control instanceof FormArray;
-function isAbstractControlOptions(options) {
- return !!options && (options.asyncValidators !== void 0 || options.validators !== void 0 || options.updateOn !== void 0);
-}
-var FormBuilder = class _FormBuilder {
- useNonNullable = false;
- /**
- * @description
- * Returns a FormBuilder in which automatically constructed `FormControl` elements
- * have `{nonNullable: true}` and are non-nullable.
- *
- * **Constructing non-nullable controls**
- *
- * When constructing a control, it will be non-nullable, and will reset to its initial value.
- *
- * ```ts
- * let nnfb = new FormBuilder().nonNullable;
- * let name = nnfb.control('Alex'); // FormControl
- * name.reset();
- * console.log(name); // 'Alex'
- * ```
- *
- * **Constructing non-nullable groups or arrays**
- *
- * When constructing a group or array, all automatically created inner controls will be
- * non-nullable, and will reset to their initial values.
- *
- * ```ts
- * let nnfb = new FormBuilder().nonNullable;
- * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl}>
- * name.reset();
- * console.log(name); // {who: 'Alex'}
- * ```
- * **Constructing *nullable* fields on groups or arrays**
- *
- * It is still possible to have a nullable field. In particular, any `FormControl` which is
- * *already* constructed will not be altered. For example:
- *
- * ```ts
- * let nnfb = new FormBuilder().nonNullable;
- * // FormGroup<{who: FormControl}>
- * let name = nnfb.group({who: new FormControl('Alex')});
- * name.reset(); console.log(name); // {who: null}
- * ```
- *
- * Because the inner control is constructed explicitly by the caller, the builder has
- * no control over how it is created, and cannot exclude the `null`.
- */
- get nonNullable() {
- const nnfb = new _FormBuilder();
- nnfb.useNonNullable = true;
- return nnfb;
- }
- group(controls, options = null) {
- const reducedControls = this._reduceControls(controls);
- let newOptions = {};
- if (isAbstractControlOptions(options)) {
- newOptions = options;
- } else if (options !== null) {
- newOptions.validators = options.validator;
- newOptions.asyncValidators = options.asyncValidator;
- }
- return new FormGroup(reducedControls, newOptions);
- }
- /**
- * @description
- * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object
- * containing all the keys and corresponding inner control types.
- *
- * @param controls A collection of child controls. The key for each child is the name
- * under which it is registered.
- *
- * @param options Configuration options object for the `FormRecord`. The object should have the
- * `AbstractControlOptions` type and might contain the following fields:
- * * `validators`: A synchronous validator function, or an array of validator functions.
- * * `asyncValidators`: A single async validator or array of async validator functions.
- * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'
- * | submit').
- */
- record(controls, options = null) {
- const reducedControls = this._reduceControls(controls);
- return new FormRecord(reducedControls, options);
- }
- /**
- * @description
- * Constructs a new `FormControl` with the given state, validators and options. Sets
- * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the
- * control will be nullable. Accepts a single generic argument, which is the type of the
- * control's value.
- *
- * @param formState Initializes the control with an initial state value, or
- * with an object that contains both a value and a disabled status.
- *
- * @param validatorOrOpts A synchronous validator function, or an array of
- * such functions, or a `FormControlOptions` object that contains
- * validation functions and a validation trigger.
- *
- * @param asyncValidator A single async validator or array of async validator
- * functions.
- *
- * @usageNotes
- *
- * ### Initialize a control as disabled
- *
- * The following example returns a control with an initial value in a disabled state.
- *
- * {@example forms/ts/formBuilder/form_builder_example.ts region='disabled-control'}
- */
- control(formState, validatorOrOpts, asyncValidator) {
- let newOptions = {};
- if (!this.useNonNullable) {
- return new FormControl(formState, validatorOrOpts, asyncValidator);
- }
- if (isAbstractControlOptions(validatorOrOpts)) {
- newOptions = validatorOrOpts;
- } else {
- newOptions.validators = validatorOrOpts;
- newOptions.asyncValidators = asyncValidator;
- }
- return new FormControl(formState, __spreadProps(__spreadValues({}, newOptions), {
- nonNullable: true
- }));
- }
- /**
- * Constructs a new `FormArray` from the given array of configurations,
- * validators and options. Accepts a single generic argument, which is the type of each control
- * inside the array.
- *
- * @param controls An array of child controls or control configs. Each child control is given an
- * index when it is registered.
- *
- * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an
- * `AbstractControlOptions` object that contains
- * validation functions and a validation trigger.
- *
- * @param asyncValidator A single async validator or array of async validator functions.
- */
- array(controls, validatorOrOpts, asyncValidator) {
- const createdControls = controls.map((c) => this._createControl(c));
- return new FormArray(createdControls, validatorOrOpts, asyncValidator);
- }
- /** @internal */
- _reduceControls(controls) {
- const createdControls = {};
- Object.keys(controls).forEach((controlName) => {
- createdControls[controlName] = this._createControl(controls[controlName]);
- });
- return createdControls;
- }
- /** @internal */
- _createControl(controls) {
- if (controls instanceof FormControl) {
- return controls;
- } else if (controls instanceof AbstractControl) {
- return controls;
- } else if (Array.isArray(controls)) {
- const value = controls[0];
- const validator = controls.length > 1 ? controls[1] : null;
- const asyncValidator = controls.length > 2 ? controls[2] : null;
- return this.control(value, validator, asyncValidator);
- } else {
- return this.control(controls);
- }
- }
- static ɵfac = function FormBuilder_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormBuilder)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _FormBuilder,
- factory: _FormBuilder.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormBuilder, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], null, null);
-})();
-var NonNullableFormBuilder = class _NonNullableFormBuilder {
- static ɵfac = function NonNullableFormBuilder_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _NonNullableFormBuilder)();
- };
- static ɵprov = ɵɵdefineInjectable({
- token: _NonNullableFormBuilder,
- factory: () => (() => inject(FormBuilder).nonNullable)(),
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NonNullableFormBuilder, [{
- type: Injectable,
- args: [{
- providedIn: "root",
- useFactory: () => inject(FormBuilder).nonNullable
- }]
- }], null, null);
-})();
-var UntypedFormBuilder = class _UntypedFormBuilder extends FormBuilder {
- group(controlsConfig, options = null) {
- return super.group(controlsConfig, options);
- }
- /**
- * Like `FormBuilder#control`, except the resulting control is untyped.
- */
- control(formState, validatorOrOpts, asyncValidator) {
- return super.control(formState, validatorOrOpts, asyncValidator);
- }
- /**
- * Like `FormBuilder#array`, except the resulting array is untyped.
- */
- array(controlsConfig, validatorOrOpts, asyncValidator) {
- return super.array(controlsConfig, validatorOrOpts, asyncValidator);
- }
- static ɵfac = /* @__PURE__ */ (() => {
- let ɵUntypedFormBuilder_BaseFactory;
- return function UntypedFormBuilder_Factory(__ngFactoryType__) {
- return (ɵUntypedFormBuilder_BaseFactory || (ɵUntypedFormBuilder_BaseFactory = ɵɵgetInheritedFactory(_UntypedFormBuilder)))(__ngFactoryType__ || _UntypedFormBuilder);
- };
- })();
- static ɵprov = ɵɵdefineInjectable({
- token: _UntypedFormBuilder,
- factory: _UntypedFormBuilder.ɵfac,
- providedIn: "root"
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(UntypedFormBuilder, [{
- type: Injectable,
- args: [{
- providedIn: "root"
- }]
- }], null, null);
-})();
-var VERSION = new Version("20.3.2");
-var FormsModule = class _FormsModule {
- /**
- * @description
- * Provides options for configuring the forms module.
- *
- * @param opts An object of configuration options
- * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more
- * correct, or to only call it `whenDisabled`, which is the legacy behavior.
- */
- static withConfig(opts) {
- return {
- ngModule: _FormsModule,
- providers: [{
- provide: CALL_SET_DISABLED_STATE,
- useValue: opts.callSetDisabledState ?? setDisabledStateDefault
- }]
- };
- }
- static ɵfac = function FormsModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _FormsModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _FormsModule,
- declarations: [NgModel, NgModelGroup, NgForm],
- exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm]
- });
- static ɵinj = ɵɵdefineInjector({
- imports: [ɵInternalFormsSharedModule]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FormsModule, [{
- type: NgModule,
- args: [{
- declarations: TEMPLATE_DRIVEN_DIRECTIVES,
- exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]
- }]
- }], null, null);
-})();
-var ReactiveFormsModule = class _ReactiveFormsModule {
- /**
- * @description
- * Provides options for configuring the reactive forms module.
- *
- * @param opts An object of configuration options
- * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`
- * binding is used with reactive form directives.
- * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more
- * correct, or to only call it `whenDisabled`, which is the legacy behavior.
- */
- static withConfig(opts) {
- return {
- ngModule: _ReactiveFormsModule,
- providers: [{
- provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,
- useValue: opts.warnOnNgModelWithFormControl ?? "always"
- }, {
- provide: CALL_SET_DISABLED_STATE,
- useValue: opts.callSetDisabledState ?? setDisabledStateDefault
- }]
- };
- }
- static ɵfac = function ReactiveFormsModule_Factory(__ngFactoryType__) {
- return new (__ngFactoryType__ || _ReactiveFormsModule)();
- };
- static ɵmod = ɵɵdefineNgModule({
- type: _ReactiveFormsModule,
- declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName],
- exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName]
- });
- static ɵinj = ɵɵdefineInjector({
- imports: [ɵInternalFormsSharedModule]
- });
-};
-(() => {
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ReactiveFormsModule, [{
- type: NgModule,
- args: [{
- declarations: [REACTIVE_DRIVEN_DIRECTIVES],
- exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]
- }]
- }], null, null);
-})();
-export {
- AbstractControl,
- AbstractControlDirective,
- AbstractFormGroupDirective,
- COMPOSITION_BUFFER_MODE,
- CheckboxControlValueAccessor,
- CheckboxRequiredValidator,
- ControlContainer,
- ControlEvent,
- DefaultValueAccessor,
- EmailValidator,
- FormArray,
- FormArrayName,
- FormBuilder,
- FormControl,
- FormControlDirective,
- FormControlName,
- FormGroup,
- FormGroupDirective,
- FormGroupName,
- FormRecord,
- FormResetEvent,
- FormSubmittedEvent,
- FormsModule,
- MaxLengthValidator,
- MaxValidator,
- MinLengthValidator,
- MinValidator,
- NG_ASYNC_VALIDATORS,
- NG_VALIDATORS,
- NG_VALUE_ACCESSOR,
- NgControl,
- NgControlStatus,
- NgControlStatusGroup,
- NgForm,
- NgModel,
- NgModelGroup,
- NgSelectOption,
- NonNullableFormBuilder,
- NumberValueAccessor,
- PatternValidator,
- PristineChangeEvent,
- RadioControlValueAccessor,
- RangeValueAccessor,
- ReactiveFormsModule,
- RequiredValidator,
- SelectControlValueAccessor,
- SelectMultipleControlValueAccessor,
- StatusChangeEvent,
- TouchedChangeEvent,
- UntypedFormArray,
- UntypedFormBuilder,
- UntypedFormControl,
- UntypedFormGroup,
- VERSION,
- Validators,
- ValueChangeEvent,
- isFormArray,
- isFormControl,
- isFormGroup,
- isFormRecord,
- ɵInternalFormsSharedModule,
- ɵNgNoValidate,
- ɵNgSelectMultipleOption
-};
-/*! Bundled license information:
-
-@angular/forms/fesm2022/forms.mjs:
- (**
- * @license Angular v20.3.2
- * (c) 2010-2025 Google LLC. https://angular.io/
- * License: MIT
- *)
-*/
-//# sourceMappingURL=@angular_forms.js.map
diff --git a/.angular/cache/20.3.3/app/vite/deps/@angular_forms.js.map b/.angular/cache/20.3.3/app/vite/deps/@angular_forms.js.map
deleted file mode 100644
index f783e22..0000000
--- a/.angular/cache/20.3.3/app/vite/deps/@angular_forms.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": 3,
- "sources": ["../../../../../../node_modules/@angular/forms/fesm2022/forms.mjs"],
- "sourcesContent": ["/**\n * @license Angular v20.3.2\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise as _isPromise, ɵisSubscribable as _isSubscribable, ɵRuntimeError as _RuntimeError, Self, untracked, computed, signal, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, ApplicationRef, DestroyRef, afterNextRender, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM as _getDOM } from '@angular/common';\nimport { forkJoin, from, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BaseControlValueAccessor {\n _renderer;\n _elementRef;\n /**\n * The registered callback function called when a change or input event occurs on the input\n * element.\n * @docs-private\n */\n onChange = _ => {};\n /**\n * The registered callback function called when a blur event occurs on the input element.\n * @docs-private\n */\n onTouched = () => {};\n constructor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n }\n /**\n * Helper method that sets a property on a target element using the current Renderer\n * implementation.\n * @docs-private\n */\n setProperty(key, value) {\n this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n }\n /**\n * Registers a function called when the control is touched.\n * @docs-private\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Registers a function called when the control value changes.\n * @docs-private\n */\n registerOnChange(fn) {\n this.onChange = fn;\n }\n /**\n * Sets the \"disabled\" property on the range input element.\n * @docs-private\n */\n setDisabledState(isDisabled) {\n this.setProperty('disabled', isDisabled);\n }\n static ɵfac = function BaseControlValueAccessor_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BaseControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BaseControlValueAccessor\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(BaseControlValueAccessor, [{\n type: Directive\n }], () => [{\n type: i0.Renderer2\n }, {\n type: i0.ElementRef\n }], null);\n})();\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BuiltInControlValueAccessor extends BaseControlValueAccessor {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵBuiltInControlValueAccessor_BaseFactory;\n return function BuiltInControlValueAccessor_Factory(__ngFactoryType__) {\n return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(BuiltInControlValueAccessor)))(__ngFactoryType__ || BuiltInControlValueAccessor);\n };\n })();\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BuiltInControlValueAccessor,\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(BuiltInControlValueAccessor, [{\n type: Directive\n }], null, null);\n})();\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\nconst CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxControlValueAccessor),\n multi: true\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```html\n * \n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"checked\" property on the input element.\n * @docs-private\n */\n writeValue(value) {\n this.setProperty('checked', value);\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵCheckboxControlValueAccessor_BaseFactory;\n return function CheckboxControlValueAccessor_Factory(__ngFactoryType__) {\n return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxControlValueAccessor)))(__ngFactoryType__ || CheckboxControlValueAccessor);\n };\n })();\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CheckboxControlValueAccessor,\n selectors: [[\"input\", \"type\", \"checkbox\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"ngModel\", \"\"]],\n hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"change\", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {\n return ctx.onChange($event.target.checked);\n })(\"blur\", function CheckboxControlValueAccessor_blur_HostBindingHandler() {\n return ctx.onTouched();\n });\n }\n },\n standalone: false,\n features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n });\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxControlValueAccessor, [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\n host: {\n '(change)': 'onChange($any($event.target).checked)',\n '(blur)': 'onTouched()'\n },\n providers: [CHECKBOX_VALUE_ACCESSOR],\n standalone: false\n }]\n }], null, null);\n})();\nconst DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DefaultValueAccessor),\n multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n const userAgent = _getDOM() ? _getDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```html\n * \n * ```\n *\n * This value accessor is used by default for `` and `