From 323cdaa0db24313ec7e29243a5b7160cd9145dd2 Mon Sep 17 00:00:00 2001 From: splincode Date: Wed, 16 Aug 2023 11:33:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20taiga-fa?= =?UTF-8?q?mily/tui-editor@56eece276a4f47aa58d52ec2845a0a5142e139ec=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...f109464.js => 1015.3c861e261eb681abca4a.js | 0 ...819f10e.js => 1096.f5398ba6d0e5cbbf3dab.js | 0 ...c8cb29c.js => 1114.3a18cab4931a79297f83.js | 0 ...b17a57e.js => 1142.c76c9ed6f9d9840e6d4e.js | 0 ...3f9974e.js => 1313.1f77e4bcd0143ba5b582.js | 0 ...906f30d.js => 1360.4bb798144a60eb431ae3.js | 0 ...e6db975.js => 1389.539912bb41a7e8f73d18.js | 0 ...ad99ba2.js => 1392.0162b868774dca66a727.js | 0 ...c1cadc9.js => 1397.0243003460f37c034c9d.js | 0 ...755e1d96.js => 154.9fba7c4a93f2f3b1c187.js | 0 ...5a0389c.js => 1727.09112eff3634790375fe.js | 0 ...5c605b4.js => 2060.edbeddb3d0f24294f338.js | 0 ...07e107c.js => 2108.c996b0c48cd1601e7aff.js | 0 ...dd6fd2ca.js => 212.aa146fd45154446383cd.js | 0 ...8b9a5b1.js => 2237.6c21ea6fdf8023e4bfec.js | 0 ...087dc1a.js => 2286.06bc688f7dad77015587.js | 0 ...b750ba1a.js => 236.7e88bf30d3fff8b46a9f.js | 0 ...a7e1d49.js => 2361.9f9d738e9f7f94b7426b.js | 0 ...2fd53a8.js => 2376.1807df9af6338e42d191.js | 0 ...0c6ec68.js => 2501.9dedde78ff972a9220d5.js | 0 ...3f70495.js => 2580.cd1eedd1c44050ac3dd8.js | 0 ...c44475d.js => 2648.c0a79395390ca33e2fbf.js | 0 ...b2d3338.js => 2679.96772555f13126d2670f.js | 0 ...dd9c6ee.js => 2683.e657658ae5ed05763586.js | 0 ...6b77de8.js => 2704.858a83be5f3c80e48f86.js | 0 ...cfc6b59.js => 2748.df6f3c484f29cdbb4031.js | 0 ...6a870d3.js => 2766.66daea34aaf33105a62d.js | 0 ...9edc22f.js => 2812.2cb6e7ea4bd99d183667.js | 0 ...4adafbd.js => 2825.635218f50e4d32ec1671.js | 0 ...62dcc57.js => 2852.1e984536ee2571aff515.js | 0 ...eee5331.js => 2859.e9f27c88934a7fbd9b7e.js | 0 ...70cec47.js => 2927.c790d4ac4e03e7808e8f.js | 0 ...dfd8a7cc.js => 295.da7eafb7fa0d79d68b79.js | 0 ...9c74f455.js => 298.4b112a4801eb372b7348.js | 0 ...647a5ae.js => 2983.cfb5f8433bc749822c89.js | 0 ...2d28aef.js => 2991.f10212e82e0ad5d651df.js | 0 ...4b3c4bb.js => 3021.9eeb3b7144056a4ffda7.js | 0 3116.5043ce9854b05330cfac.js | 1 + 3116.c6e78610c9d6130c6425.js | 1 - ...6ba2e8303.js => 32.175959e4be33f25f81da.js | 0 ...4805068.js => 3336.0f20089698f0546f2db3.js | 0 ...a42779a.js => 3378.c24a4c4c9dcadf15cddd.js | 0 ...6e360d8.js => 3408.8a1da294613e2e7b6519.js | 0 ...6ae19cc.js => 3442.ff1c97162f63305399bc.js | 0 ...f08c7be.js => 3451.56cde4e4744d5a19308d.js | 0 ...f4c636d.js => 3566.01ca0805aa504323fa1b.js | 0 ...72392a1.js => 3575.ba6b9c947c7bdbbc006a.js | 0 ...0140a65e.js => 372.e60bda3e68fbeed104bb.js | 0 ...b6b345a.js => 3725.ea64143997ee0b4cab65.js | 0 ...5fcb0a6.js => 3734.fafecda142b1e1352177.js | 0 ...d53d051.js => 3821.d645b82e45a811910dd5.js | 0 ...ae90b10.js => 3878.4bc365edf8b07a83bbc1.js | 0 ...ab17d5e.js => 3881.32a53d0d83c11c74c846.js | 0 ...7abace2.js => 3922.0b0ee010ac094249ddc0.js | 0 ...bf0a72c.js => 3963.f41522bca8075509916f.js | 0 ...a663adc.js => 4008.f51fae818f3d265b6d6f.js | 0 404.html | 2 +- ...c8407b9.js => 4052.6754bd0a387fa35df03c.js | 0 ...09097e4.js => 4057.54165286aebbfb8e9004.js | 0 ...793e015.js => 4058.71b0b1ab3b7c805c7034.js | 0 ...5c7265b.js => 4078.df8847c30c3a6239d103.js | 0 ...fe6d59e.js => 4116.e73820e05df574769553.js | 0 ...186989b.js => 4205.dbb62d1c7bd7083359fe.js | 0 ...a95e2430.js => 424.918c57921bd66a65e671.js | 0 ...ac0e852.js => 4304.fea64f7e809a26c11f31.js | 0 ...be62261.js => 4306.8572550085b6e26b5ba3.js | 0 ...274962c.js => 4343.7b967bb2f4b70bf396ff.js | 0 ...fba7c8d.js => 4361.bf02748eb4341014cfc4.js | 0 ...d786ce7.js => 4416.9bc0a7e48fb07e412256.js | 0 ...4cf6421.js => 4424.df9b91b6a494cc4a8f48.js | 0 ...5456917.js => 4576.05c43ab1b7a7f3e79526.js | 0 ...98d218c.js => 4579.88a740a548807afbc533.js | 0 ...092e0ca4.js => 458.8c1f6de0eb38e7fb9b88.js | 0 ...e599f4f.js => 4648.b68d02c2854ea119b399.js | 0 ...fdb8821.js => 4661.d087a46e2b7c2eb08062.js | 0 ...46753f1.js => 4671.eef2b8b4f24a71793f25.js | 0 ...adc8d21.js => 4711.2a5fa1f1279e405a3b09.js | 0 ...e772308.js => 4745.6b9a662c44cac4d7af8e.js | 0 ...ab4af61.js => 4805.d4003e7f03459060a714.js | 0 ...d6bad42.js => 4886.b7d57f9d9abc37bfe253.js | 0 ...a3bbd0b.js => 4900.94874f9aa3164113ee05.js | 0 ...b3a5d5c.js => 4949.3b594da72af4b5930922.js | 0 ...0eaaf08.js => 5033.cfa70a59cfddde14483c.js | 0 ...fbd7e5e.js => 5034.d49658d364b5b883891c.js | 0 ...71c5fe6.js => 5134.0d4d71bf6bd93408d244.js | 0 ...dc4f65b.js => 5159.d465e65ce535b63562ac.js | 0 ...d29cb0c.js => 5213.7c6f8348c1ee982fc98a.js | 0 ...915119b.js => 5265.c9272622a8c50ab07114.js | 0 ...080f191.js => 5291.ff14ba84b9d3084b3f43.js | 0 ...393ec56.js => 5380.a8fcd793ad1a9a98e19c.js | 0 ...fe8f5e2.js => 5381.e1ba8d3bca5f1672ca8c.js | 0 ...5f44b01.js => 5427.f60886b95af769aa7134.js | 0 ...f33d5ca.js => 5496.f5d92b147b1296c64b33.js | 0 5518.2049c50f0fedfcd63fdc.js | 1 - 5518.2d5dcfbcdcb6e2ef9bae.js | 1 + ...abfa176.js => 5529.2358f8d874913e2d6dfb.js | 0 ...973959f.js => 5543.5b61453381f764c5d43b.js | 0 ...69426fc.js => 5597.2df06a6715a782941bdd.js | 0 ...301109d.js => 5699.f55a4ed4925d0a7eed7e.js | 0 ...d0bc5c8.js => 5745.e469f5b784796764f21f.js | 0 ...b6b52b0.js => 5821.dc1bc55ffcbffcd355c9.js | 0 ...ce8bd79.js => 5853.28b948cc7f377aa51fcd.js | 0 ...6cb7780.js => 5867.bbab85821eabfc286384.js | 0 ...0d70971.js => 5892.501fb8c2f6904b0cdbf7.js | 0 ...80a808a.js => 6118.2461183da61d5ec79214.js | 0 ...a236fad.js => 6227.c9b868a46869e79e1d37.js | 0 ...e46a155.js => 6445.d53d08e45bf89cd58e51.js | 0 ...5f16454c.js => 650.11c85c3ce41a69df0da3.js | 0 ...c96a17d.js => 6553.98ad4cc48cae283c10b5.js | 0 ...21d392f.js => 6655.5434c10702d8ecc44e20.js | 0 ...e3da9df.js => 6731.2ebb04633d28b7bc272f.js | 0 ...46c3283.js => 6784.5099ac304611cf66d3d7.js | 0 ...18aca84.js => 6879.d8e338f3c7e07fdfea1d.js | 0 6911.289f9d9540247774f259.js | 1 - 6911.8d637ec789622dae96ee.js | 1 + ...e41a004.js => 6989.34c86862ad8d9f98fc29.js | 0 ...71a0245.js => 7095.2b7aef392482b97e64d2.js | 0 ...83b61c29.js => 710.43f70f9aa2c4ef2758c5.js | 0 ...675822d.js => 7106.abef6888cde9972acb9f.js | 0 ...e9d8c06.js => 7147.983c7ea1f2ef9fcc005b.js | 0 ...4a0e055.js => 7169.b7b364b78073680f879c.js | 0 ...c71e85a.js => 7219.289a31f831518b67000e.js | 0 ...4d3e6f9.js => 7375.a78dfccbb3123f1f1cbd.js | 0 ...66b7336.js => 7383.8d359130c22ad546c65b.js | 0 ...148c247.js => 7416.794ca33094c0390cfd44.js | 0 ...9eadfd6.js => 7714.685bc08495f23c76a26d.js | 0 ...758c491.js => 7718.21159a58ad687c7875b0.js | 0 ...471e2c8f.js => 777.5f1aaf185c274bb1a74e.js | 0 ...8dd83fe.js => 7788.909ea6a94f98ec92b2c0.js | 0 ...65cc4ea.js => 7801.9cd55246436f77f6570f.js | 0 ...399cfcd.js => 7809.038f10224cf58c879e9e.js | 0 ...1c9adee.js => 7843.baad670ed2e4b47163d1.js | 0 ...99a8074.js => 7856.770b6affdccc5d96380d.js | 0 ...f5c310f.js => 7991.037706cb8cda5ab2248c.js | 0 ...39838bb.js => 8097.11026b1eb44079e6a1ce.js | 0 ...ab5eb69.js => 8155.61a23b70c41628a97f3a.js | 0 ...2e03152.js => 8234.91a50dc1bcc1cf8bfae4.js | 0 ...76f9138d.js => 824.282d63d590e169191e11.js | 0 ...bea7eb5.js => 8258.f80671d734722c482543.js | 0 ...e6b4517.js => 8296.47f619fa090f070f0af9.js | 0 ...3c02e80.js => 8378.c08fdb2e3aca0a3b5d40.js | 0 ...08496d1.js => 8536.37e7ce3fd5810316f7ae.js | 0 ...92c8c5f.js => 8557.5e5076bd255354195104.js | 0 ...47cf2d9.js => 8575.8b90a34d700e204854d3.js | 0 ...f851c370.js => 861.c0b8dd2e88d44c7e3f64.js | 0 ...631eba3.js => 8629.0952df14d2e85fa0cb74.js | 0 ...1d94667.js => 8640.6c54ed8fd0365d803f8e.js | 0 ...7d24777.js => 8680.420ea83a99d5d17bb88a.js | 0 ...9b2ed0e1.js => 870.78eb459ffc7221de859c.js | 0 ...d9c96eb.js => 8773.30af9a8fe32e1e73153d.js | 0 ...89625d9.js => 8818.d409c15d5cf19801979b.js | 0 ...d8b27df.js => 8840.7e35860c39affe35f207.js | 0 ...57f00e6.js => 8873.1bb99598097ea7a34d23.js | 0 ...e091a106.js => 896.475bcf838de862994044.js | 0 ...ce5af80.js => 9173.5f692f8786f488568323.js | 0 ...365f9c8.js => 9180.c7025a567c8513f8fc8d.js | 0 ...8bd6c71.js => 9269.004af351a0d438d488a3.js | 0 ...2ea575a.js => 9289.9d37032424b090907126.js | 0 ...51d749e.js => 9297.d4cc59701d62bd0920db.js | 0 ...82ffbbf.js => 9572.6eb75c23b6552b496f2c.js | 0 ...8599199.js => 9603.0480b5af5d185e839529.js | 0 ...20089d6.js => 9661.ea423abe129ac98a71cb.js | 0 ...d6fda17.js => 9742.42120769426a9411c293.js | 0 ...b28aee6.js => 9899.c45e5415e79ca616a70e.js | 0 ...69bbc943.js => 991.0617115a0661545f17b4.js | 0 assets/icons/angular.svg | 30 +++++++++---------- assets/icons/by.svg | 2 +- assets/icons/github.svg | 2 +- assets/icons/javascript.svg | 24 ++++++++++----- assets/icons/logo.svg | 2 +- ...ea271.js => common.af283de178d8d42fb5f0.js | 0 index.html | 2 +- main.aa6831fb09a4bbd87297.js | 1 - main.e41ec891590f331ef560.js | 1 + ...40.js => polyfills.7fcc9c2125bfd9d81537.js | 0 runtime.8f38e9c57074f5e3c6b0.js | 1 - runtime.edea84907d7af2b39005.js | 1 + 177 files changed, 41 insertions(+), 33 deletions(-) rename 1015.45b0b224c59d6f109464.js => 1015.3c861e261eb681abca4a.js (100%) rename 1096.a2ca4691e2d5a819f10e.js => 1096.f5398ba6d0e5cbbf3dab.js (100%) rename 1114.6c913eea24e28c8cb29c.js => 1114.3a18cab4931a79297f83.js (100%) rename 1142.f910865d61ac9b17a57e.js => 1142.c76c9ed6f9d9840e6d4e.js (100%) rename 1313.44ffec06975f43f9974e.js => 1313.1f77e4bcd0143ba5b582.js (100%) rename 1360.12864fa5bfdbb906f30d.js => 1360.4bb798144a60eb431ae3.js (100%) rename 1389.959732a433df7e6db975.js => 1389.539912bb41a7e8f73d18.js (100%) rename 1392.eaad37056fdcfad99ba2.js => 1392.0162b868774dca66a727.js (100%) rename 1397.b21e55519e1d3c1cadc9.js => 1397.0243003460f37c034c9d.js (100%) rename 154.10f9bff41b58755e1d96.js => 154.9fba7c4a93f2f3b1c187.js (100%) rename 1727.57ec5b43f07735a0389c.js => 1727.09112eff3634790375fe.js (100%) rename 2060.11654f22b312a5c605b4.js => 2060.edbeddb3d0f24294f338.js (100%) rename 2108.18a319822d47707e107c.js => 2108.c996b0c48cd1601e7aff.js (100%) rename 212.292303aaf66add6fd2ca.js => 212.aa146fd45154446383cd.js (100%) rename 2237.36aa4072cd7f68b9a5b1.js => 2237.6c21ea6fdf8023e4bfec.js (100%) rename 2286.a51929e5b4149087dc1a.js => 2286.06bc688f7dad77015587.js (100%) rename 236.0df1a66b7af7b750ba1a.js => 236.7e88bf30d3fff8b46a9f.js (100%) rename 2361.74d4df0cedccca7e1d49.js => 2361.9f9d738e9f7f94b7426b.js (100%) rename 2376.69107264477b72fd53a8.js => 2376.1807df9af6338e42d191.js (100%) rename 2501.0df05cc51966b0c6ec68.js => 2501.9dedde78ff972a9220d5.js (100%) rename 2580.949bfa82ca44d3f70495.js => 2580.cd1eedd1c44050ac3dd8.js (100%) rename 2648.aab06a6cecd0ec44475d.js => 2648.c0a79395390ca33e2fbf.js (100%) rename 2679.b83600ac88071b2d3338.js => 2679.96772555f13126d2670f.js (100%) rename 2683.6199b2dc823b0dd9c6ee.js => 2683.e657658ae5ed05763586.js (100%) rename 2704.8ad3dc3aa686b6b77de8.js => 2704.858a83be5f3c80e48f86.js (100%) rename 2748.8c1375e27d3eccfc6b59.js => 2748.df6f3c484f29cdbb4031.js (100%) rename 2766.41a254d28f5c86a870d3.js => 2766.66daea34aaf33105a62d.js (100%) rename 2812.322b1bd3b46c59edc22f.js => 2812.2cb6e7ea4bd99d183667.js (100%) rename 2825.481d647e15b0f4adafbd.js => 2825.635218f50e4d32ec1671.js (100%) rename 2852.2f7bd78636aa162dcc57.js => 2852.1e984536ee2571aff515.js (100%) rename 2859.d4a53606cacc5eee5331.js => 2859.e9f27c88934a7fbd9b7e.js (100%) rename 2927.3d1ebbc714cd170cec47.js => 2927.c790d4ac4e03e7808e8f.js (100%) rename 295.59babeec250edfd8a7cc.js => 295.da7eafb7fa0d79d68b79.js (100%) rename 298.bd0a646f7ed69c74f455.js => 298.4b112a4801eb372b7348.js (100%) rename 2983.7b0947c0e1d2c647a5ae.js => 2983.cfb5f8433bc749822c89.js (100%) rename 2991.7d9ffe1af26fc2d28aef.js => 2991.f10212e82e0ad5d651df.js (100%) rename 3021.6427cd04d7d214b3c4bb.js => 3021.9eeb3b7144056a4ffda7.js (100%) create mode 100644 3116.5043ce9854b05330cfac.js delete mode 100644 3116.c6e78610c9d6130c6425.js rename 32.a3a3023ee116ba2e8303.js => 32.175959e4be33f25f81da.js (100%) rename 3336.08b0c0dec26f64805068.js => 3336.0f20089698f0546f2db3.js (100%) rename 3378.2cd5668c960b5a42779a.js => 3378.c24a4c4c9dcadf15cddd.js (100%) rename 3408.479a88288f0646e360d8.js => 3408.8a1da294613e2e7b6519.js (100%) rename 3442.baa95137d31306ae19cc.js => 3442.ff1c97162f63305399bc.js (100%) rename 3451.9721e7ed2db35f08c7be.js => 3451.56cde4e4744d5a19308d.js (100%) rename 3566.6afab8ba1b920f4c636d.js => 3566.01ca0805aa504323fa1b.js (100%) rename 3575.17ccbfe8101e072392a1.js => 3575.ba6b9c947c7bdbbc006a.js (100%) rename 372.5004535240ba0140a65e.js => 372.e60bda3e68fbeed104bb.js (100%) rename 3725.72c1326f28aeeb6b345a.js => 3725.ea64143997ee0b4cab65.js (100%) rename 3734.a5240accfe23f5fcb0a6.js => 3734.fafecda142b1e1352177.js (100%) rename 3821.e17a5f98934c4d53d051.js => 3821.d645b82e45a811910dd5.js (100%) rename 3878.18d537c1f7aaaae90b10.js => 3878.4bc365edf8b07a83bbc1.js (100%) rename 3881.6a411c5e3a7ceab17d5e.js => 3881.32a53d0d83c11c74c846.js (100%) rename 3922.714e8c2d0ddca7abace2.js => 3922.0b0ee010ac094249ddc0.js (100%) rename 3963.4cf1d8964368bbf0a72c.js => 3963.f41522bca8075509916f.js (100%) rename 4008.ad92d0fa3f05ea663adc.js => 4008.f51fae818f3d265b6d6f.js (100%) rename 4052.9b2c2897f7e87c8407b9.js => 4052.6754bd0a387fa35df03c.js (100%) rename 4057.969278272cec009097e4.js => 4057.54165286aebbfb8e9004.js (100%) rename 4058.20e2f4a18a51d793e015.js => 4058.71b0b1ab3b7c805c7034.js (100%) rename 4078.96e4701f8b4365c7265b.js => 4078.df8847c30c3a6239d103.js (100%) rename 4116.0f357570015d5fe6d59e.js => 4116.e73820e05df574769553.js (100%) rename 4205.26fd9ba4b2128186989b.js => 4205.dbb62d1c7bd7083359fe.js (100%) rename 424.d99fee1b478aa95e2430.js => 424.918c57921bd66a65e671.js (100%) rename 4304.ad42bca119a72ac0e852.js => 4304.fea64f7e809a26c11f31.js (100%) rename 4306.4133dcdc4e39abe62261.js => 4306.8572550085b6e26b5ba3.js (100%) rename 4343.5990c938bfa44274962c.js => 4343.7b967bb2f4b70bf396ff.js (100%) rename 4361.937d6a03b9ff9fba7c8d.js => 4361.bf02748eb4341014cfc4.js (100%) rename 4416.b0d6f856c1266d786ce7.js => 4416.9bc0a7e48fb07e412256.js (100%) rename 4424.921baaf1fd8a64cf6421.js => 4424.df9b91b6a494cc4a8f48.js (100%) rename 4576.5498295cfbc115456917.js => 4576.05c43ab1b7a7f3e79526.js (100%) rename 4579.de935a6bd2fb898d218c.js => 4579.88a740a548807afbc533.js (100%) rename 458.66692a563cab092e0ca4.js => 458.8c1f6de0eb38e7fb9b88.js (100%) rename 4648.8d3dd4a84db7ce599f4f.js => 4648.b68d02c2854ea119b399.js (100%) rename 4661.80b8fe88910d1fdb8821.js => 4661.d087a46e2b7c2eb08062.js (100%) rename 4671.e632c35d81df946753f1.js => 4671.eef2b8b4f24a71793f25.js (100%) rename 4711.cc0a2663bc55dadc8d21.js => 4711.2a5fa1f1279e405a3b09.js (100%) rename 4745.8aac86ca64a99e772308.js => 4745.6b9a662c44cac4d7af8e.js (100%) rename 4805.eefb344e5044dab4af61.js => 4805.d4003e7f03459060a714.js (100%) rename 4886.6b812881e71d9d6bad42.js => 4886.b7d57f9d9abc37bfe253.js (100%) rename 4900.df3c22a537320a3bbd0b.js => 4900.94874f9aa3164113ee05.js (100%) rename 4949.28fdc3b69f56db3a5d5c.js => 4949.3b594da72af4b5930922.js (100%) rename 5033.d65317f13aa9b0eaaf08.js => 5033.cfa70a59cfddde14483c.js (100%) rename 5034.383c1b43877c1fbd7e5e.js => 5034.d49658d364b5b883891c.js (100%) rename 5134.a46a602a26d6d71c5fe6.js => 5134.0d4d71bf6bd93408d244.js (100%) rename 5159.129cc515049d5dc4f65b.js => 5159.d465e65ce535b63562ac.js (100%) rename 5213.81d00a6bf91e6d29cb0c.js => 5213.7c6f8348c1ee982fc98a.js (100%) rename 5265.d585648c18b73915119b.js => 5265.c9272622a8c50ab07114.js (100%) rename 5291.562507fe4807e080f191.js => 5291.ff14ba84b9d3084b3f43.js (100%) rename 5380.7e15a08d9e76b393ec56.js => 5380.a8fcd793ad1a9a98e19c.js (100%) rename 5381.e20555c7001f5fe8f5e2.js => 5381.e1ba8d3bca5f1672ca8c.js (100%) rename 5427.40b17e0a01ecc5f44b01.js => 5427.f60886b95af769aa7134.js (100%) rename 5496.3bae65cba5b87f33d5ca.js => 5496.f5d92b147b1296c64b33.js (100%) delete mode 100644 5518.2049c50f0fedfcd63fdc.js create mode 100644 5518.2d5dcfbcdcb6e2ef9bae.js rename 5529.939ed4a41054aabfa176.js => 5529.2358f8d874913e2d6dfb.js (100%) rename 5543.4d3e7c50ce1e7973959f.js => 5543.5b61453381f764c5d43b.js (100%) rename 5597.d3008d217e82769426fc.js => 5597.2df06a6715a782941bdd.js (100%) rename 5699.89031738679fc301109d.js => 5699.f55a4ed4925d0a7eed7e.js (100%) rename 5745.10c361592698ed0bc5c8.js => 5745.e469f5b784796764f21f.js (100%) rename 5821.0d29db4e9f30db6b52b0.js => 5821.dc1bc55ffcbffcd355c9.js (100%) rename 5853.0bce4d73ddba6ce8bd79.js => 5853.28b948cc7f377aa51fcd.js (100%) rename 5867.5a349951005716cb7780.js => 5867.bbab85821eabfc286384.js (100%) rename 5892.88cd5f273bb440d70971.js => 5892.501fb8c2f6904b0cdbf7.js (100%) rename 6118.01f6b9a3793a580a808a.js => 6118.2461183da61d5ec79214.js (100%) rename 6227.67eee263fa4caa236fad.js => 6227.c9b868a46869e79e1d37.js (100%) rename 6445.2825d355e6452e46a155.js => 6445.d53d08e45bf89cd58e51.js (100%) rename 650.f3fbc0d6cbcf5f16454c.js => 650.11c85c3ce41a69df0da3.js (100%) rename 6553.6a1ef0dc49ffcc96a17d.js => 6553.98ad4cc48cae283c10b5.js (100%) rename 6655.767791cc540fa21d392f.js => 6655.5434c10702d8ecc44e20.js (100%) rename 6731.6e5236da2b959e3da9df.js => 6731.2ebb04633d28b7bc272f.js (100%) rename 6784.c255bc870aaf346c3283.js => 6784.5099ac304611cf66d3d7.js (100%) rename 6879.8a7d8ed02ecfa18aca84.js => 6879.d8e338f3c7e07fdfea1d.js (100%) delete mode 100644 6911.289f9d9540247774f259.js create mode 100644 6911.8d637ec789622dae96ee.js rename 6989.c327c72c6d7b2e41a004.js => 6989.34c86862ad8d9f98fc29.js (100%) rename 7095.1a9fda172dadb71a0245.js => 7095.2b7aef392482b97e64d2.js (100%) rename 710.c448239c3a2d83b61c29.js => 710.43f70f9aa2c4ef2758c5.js (100%) rename 7106.4d1974bde81ae675822d.js => 7106.abef6888cde9972acb9f.js (100%) rename 7147.f1a45e1c396b4e9d8c06.js => 7147.983c7ea1f2ef9fcc005b.js (100%) rename 7169.99e105489f0194a0e055.js => 7169.b7b364b78073680f879c.js (100%) rename 7219.cb0ce90e2d708c71e85a.js => 7219.289a31f831518b67000e.js (100%) rename 7375.65e5500afabbd4d3e6f9.js => 7375.a78dfccbb3123f1f1cbd.js (100%) rename 7383.5d7c3e10b288766b7336.js => 7383.8d359130c22ad546c65b.js (100%) rename 7416.1f68b626438e1148c247.js => 7416.794ca33094c0390cfd44.js (100%) rename 7714.0de7dca2f2d0e9eadfd6.js => 7714.685bc08495f23c76a26d.js (100%) rename 7718.cf6d6ed458b4c758c491.js => 7718.21159a58ad687c7875b0.js (100%) rename 777.89bb36588244471e2c8f.js => 777.5f1aaf185c274bb1a74e.js (100%) rename 7788.99f04b1b5ede28dd83fe.js => 7788.909ea6a94f98ec92b2c0.js (100%) rename 7801.76037a781aa2265cc4ea.js => 7801.9cd55246436f77f6570f.js (100%) rename 7809.2c5fd601159bd399cfcd.js => 7809.038f10224cf58c879e9e.js (100%) rename 7843.8af8c260856791c9adee.js => 7843.baad670ed2e4b47163d1.js (100%) rename 7856.2df7f2e3cf07f99a8074.js => 7856.770b6affdccc5d96380d.js (100%) rename 7991.d66d24a24c3aef5c310f.js => 7991.037706cb8cda5ab2248c.js (100%) rename 8097.504f90ad619e239838bb.js => 8097.11026b1eb44079e6a1ce.js (100%) rename 8155.d0a085f174823ab5eb69.js => 8155.61a23b70c41628a97f3a.js (100%) rename 8234.56f7383ad009a2e03152.js => 8234.91a50dc1bcc1cf8bfae4.js (100%) rename 824.d1c05b7eaa7676f9138d.js => 824.282d63d590e169191e11.js (100%) rename 8258.d053621e1b885bea7eb5.js => 8258.f80671d734722c482543.js (100%) rename 8296.eb55b03bfdde7e6b4517.js => 8296.47f619fa090f070f0af9.js (100%) rename 8378.f7659387374a93c02e80.js => 8378.c08fdb2e3aca0a3b5d40.js (100%) rename 8536.22e4d9f2a305308496d1.js => 8536.37e7ce3fd5810316f7ae.js (100%) rename 8557.ea0116eceb04d92c8c5f.js => 8557.5e5076bd255354195104.js (100%) rename 8575.fcc81853dc66c47cf2d9.js => 8575.8b90a34d700e204854d3.js (100%) rename 861.3b15500d7534f851c370.js => 861.c0b8dd2e88d44c7e3f64.js (100%) rename 8629.e6495b97df2e0631eba3.js => 8629.0952df14d2e85fa0cb74.js (100%) rename 8640.35b2563f40a0d1d94667.js => 8640.6c54ed8fd0365d803f8e.js (100%) rename 8680.fdf4f9db9f8c67d24777.js => 8680.420ea83a99d5d17bb88a.js (100%) rename 870.cd835195c7969b2ed0e1.js => 870.78eb459ffc7221de859c.js (100%) rename 8773.b43a8e80479ced9c96eb.js => 8773.30af9a8fe32e1e73153d.js (100%) rename 8818.f67e6e61c564489625d9.js => 8818.d409c15d5cf19801979b.js (100%) rename 8840.96bad6233721ed8b27df.js => 8840.7e35860c39affe35f207.js (100%) rename 8873.c445e338bf61557f00e6.js => 8873.1bb99598097ea7a34d23.js (100%) rename 896.c1cfd1cb8c8fe091a106.js => 896.475bcf838de862994044.js (100%) rename 9173.aec0b52f12a8fce5af80.js => 9173.5f692f8786f488568323.js (100%) rename 9180.5f152b0c336c2365f9c8.js => 9180.c7025a567c8513f8fc8d.js (100%) rename 9269.8698b903e800d8bd6c71.js => 9269.004af351a0d438d488a3.js (100%) rename 9289.3b33bb6d656422ea575a.js => 9289.9d37032424b090907126.js (100%) rename 9297.fc1940563f2dd51d749e.js => 9297.d4cc59701d62bd0920db.js (100%) rename 9572.12356bfc34fdb82ffbbf.js => 9572.6eb75c23b6552b496f2c.js (100%) rename 9603.4b330cbce57728599199.js => 9603.0480b5af5d185e839529.js (100%) rename 9661.d3d384af76f2720089d6.js => 9661.ea423abe129ac98a71cb.js (100%) rename 9742.7e6801463422bd6fda17.js => 9742.42120769426a9411c293.js (100%) rename 9899.af80245888276b28aee6.js => 9899.c45e5415e79ca616a70e.js (100%) rename 991.07712f4c0be869bbc943.js => 991.0617115a0661545f17b4.js (100%) rename common.bbba134e30b1c24ea271.js => common.af283de178d8d42fb5f0.js (100%) delete mode 100644 main.aa6831fb09a4bbd87297.js create mode 100644 main.e41ec891590f331ef560.js rename polyfills.72d66c0bc43fc5b18f40.js => polyfills.7fcc9c2125bfd9d81537.js (100%) delete mode 100644 runtime.8f38e9c57074f5e3c6b0.js create mode 100644 runtime.edea84907d7af2b39005.js diff --git a/1015.45b0b224c59d6f109464.js b/1015.3c861e261eb681abca4a.js similarity index 100% rename from 1015.45b0b224c59d6f109464.js rename to 1015.3c861e261eb681abca4a.js diff --git a/1096.a2ca4691e2d5a819f10e.js b/1096.f5398ba6d0e5cbbf3dab.js similarity index 100% rename from 1096.a2ca4691e2d5a819f10e.js rename to 1096.f5398ba6d0e5cbbf3dab.js diff --git a/1114.6c913eea24e28c8cb29c.js b/1114.3a18cab4931a79297f83.js similarity index 100% rename from 1114.6c913eea24e28c8cb29c.js rename to 1114.3a18cab4931a79297f83.js diff --git a/1142.f910865d61ac9b17a57e.js b/1142.c76c9ed6f9d9840e6d4e.js similarity index 100% rename from 1142.f910865d61ac9b17a57e.js rename to 1142.c76c9ed6f9d9840e6d4e.js diff --git a/1313.44ffec06975f43f9974e.js b/1313.1f77e4bcd0143ba5b582.js similarity index 100% rename from 1313.44ffec06975f43f9974e.js rename to 1313.1f77e4bcd0143ba5b582.js diff --git a/1360.12864fa5bfdbb906f30d.js b/1360.4bb798144a60eb431ae3.js similarity index 100% rename from 1360.12864fa5bfdbb906f30d.js rename to 1360.4bb798144a60eb431ae3.js diff --git a/1389.959732a433df7e6db975.js b/1389.539912bb41a7e8f73d18.js similarity index 100% rename from 1389.959732a433df7e6db975.js rename to 1389.539912bb41a7e8f73d18.js diff --git a/1392.eaad37056fdcfad99ba2.js b/1392.0162b868774dca66a727.js similarity index 100% rename from 1392.eaad37056fdcfad99ba2.js rename to 1392.0162b868774dca66a727.js diff --git a/1397.b21e55519e1d3c1cadc9.js b/1397.0243003460f37c034c9d.js similarity index 100% rename from 1397.b21e55519e1d3c1cadc9.js rename to 1397.0243003460f37c034c9d.js diff --git a/154.10f9bff41b58755e1d96.js b/154.9fba7c4a93f2f3b1c187.js similarity index 100% rename from 154.10f9bff41b58755e1d96.js rename to 154.9fba7c4a93f2f3b1c187.js diff --git a/1727.57ec5b43f07735a0389c.js b/1727.09112eff3634790375fe.js similarity index 100% rename from 1727.57ec5b43f07735a0389c.js rename to 1727.09112eff3634790375fe.js diff --git a/2060.11654f22b312a5c605b4.js b/2060.edbeddb3d0f24294f338.js similarity index 100% rename from 2060.11654f22b312a5c605b4.js rename to 2060.edbeddb3d0f24294f338.js diff --git a/2108.18a319822d47707e107c.js b/2108.c996b0c48cd1601e7aff.js similarity index 100% rename from 2108.18a319822d47707e107c.js rename to 2108.c996b0c48cd1601e7aff.js diff --git a/212.292303aaf66add6fd2ca.js b/212.aa146fd45154446383cd.js similarity index 100% rename from 212.292303aaf66add6fd2ca.js rename to 212.aa146fd45154446383cd.js diff --git a/2237.36aa4072cd7f68b9a5b1.js b/2237.6c21ea6fdf8023e4bfec.js similarity index 100% rename from 2237.36aa4072cd7f68b9a5b1.js rename to 2237.6c21ea6fdf8023e4bfec.js diff --git a/2286.a51929e5b4149087dc1a.js b/2286.06bc688f7dad77015587.js similarity index 100% rename from 2286.a51929e5b4149087dc1a.js rename to 2286.06bc688f7dad77015587.js diff --git a/236.0df1a66b7af7b750ba1a.js b/236.7e88bf30d3fff8b46a9f.js similarity index 100% rename from 236.0df1a66b7af7b750ba1a.js rename to 236.7e88bf30d3fff8b46a9f.js diff --git a/2361.74d4df0cedccca7e1d49.js b/2361.9f9d738e9f7f94b7426b.js similarity index 100% rename from 2361.74d4df0cedccca7e1d49.js rename to 2361.9f9d738e9f7f94b7426b.js diff --git a/2376.69107264477b72fd53a8.js b/2376.1807df9af6338e42d191.js similarity index 100% rename from 2376.69107264477b72fd53a8.js rename to 2376.1807df9af6338e42d191.js diff --git a/2501.0df05cc51966b0c6ec68.js b/2501.9dedde78ff972a9220d5.js similarity index 100% rename from 2501.0df05cc51966b0c6ec68.js rename to 2501.9dedde78ff972a9220d5.js diff --git a/2580.949bfa82ca44d3f70495.js b/2580.cd1eedd1c44050ac3dd8.js similarity index 100% rename from 2580.949bfa82ca44d3f70495.js rename to 2580.cd1eedd1c44050ac3dd8.js diff --git a/2648.aab06a6cecd0ec44475d.js b/2648.c0a79395390ca33e2fbf.js similarity index 100% rename from 2648.aab06a6cecd0ec44475d.js rename to 2648.c0a79395390ca33e2fbf.js diff --git a/2679.b83600ac88071b2d3338.js b/2679.96772555f13126d2670f.js similarity index 100% rename from 2679.b83600ac88071b2d3338.js rename to 2679.96772555f13126d2670f.js diff --git a/2683.6199b2dc823b0dd9c6ee.js b/2683.e657658ae5ed05763586.js similarity index 100% rename from 2683.6199b2dc823b0dd9c6ee.js rename to 2683.e657658ae5ed05763586.js diff --git a/2704.8ad3dc3aa686b6b77de8.js b/2704.858a83be5f3c80e48f86.js similarity index 100% rename from 2704.8ad3dc3aa686b6b77de8.js rename to 2704.858a83be5f3c80e48f86.js diff --git a/2748.8c1375e27d3eccfc6b59.js b/2748.df6f3c484f29cdbb4031.js similarity index 100% rename from 2748.8c1375e27d3eccfc6b59.js rename to 2748.df6f3c484f29cdbb4031.js diff --git a/2766.41a254d28f5c86a870d3.js b/2766.66daea34aaf33105a62d.js similarity index 100% rename from 2766.41a254d28f5c86a870d3.js rename to 2766.66daea34aaf33105a62d.js diff --git a/2812.322b1bd3b46c59edc22f.js b/2812.2cb6e7ea4bd99d183667.js similarity index 100% rename from 2812.322b1bd3b46c59edc22f.js rename to 2812.2cb6e7ea4bd99d183667.js diff --git a/2825.481d647e15b0f4adafbd.js b/2825.635218f50e4d32ec1671.js similarity index 100% rename from 2825.481d647e15b0f4adafbd.js rename to 2825.635218f50e4d32ec1671.js diff --git a/2852.2f7bd78636aa162dcc57.js b/2852.1e984536ee2571aff515.js similarity index 100% rename from 2852.2f7bd78636aa162dcc57.js rename to 2852.1e984536ee2571aff515.js diff --git a/2859.d4a53606cacc5eee5331.js b/2859.e9f27c88934a7fbd9b7e.js similarity index 100% rename from 2859.d4a53606cacc5eee5331.js rename to 2859.e9f27c88934a7fbd9b7e.js diff --git a/2927.3d1ebbc714cd170cec47.js b/2927.c790d4ac4e03e7808e8f.js similarity index 100% rename from 2927.3d1ebbc714cd170cec47.js rename to 2927.c790d4ac4e03e7808e8f.js diff --git a/295.59babeec250edfd8a7cc.js b/295.da7eafb7fa0d79d68b79.js similarity index 100% rename from 295.59babeec250edfd8a7cc.js rename to 295.da7eafb7fa0d79d68b79.js diff --git a/298.bd0a646f7ed69c74f455.js b/298.4b112a4801eb372b7348.js similarity index 100% rename from 298.bd0a646f7ed69c74f455.js rename to 298.4b112a4801eb372b7348.js diff --git a/2983.7b0947c0e1d2c647a5ae.js b/2983.cfb5f8433bc749822c89.js similarity index 100% rename from 2983.7b0947c0e1d2c647a5ae.js rename to 2983.cfb5f8433bc749822c89.js diff --git a/2991.7d9ffe1af26fc2d28aef.js b/2991.f10212e82e0ad5d651df.js similarity index 100% rename from 2991.7d9ffe1af26fc2d28aef.js rename to 2991.f10212e82e0ad5d651df.js diff --git a/3021.6427cd04d7d214b3c4bb.js b/3021.9eeb3b7144056a4ffda7.js similarity index 100% rename from 3021.6427cd04d7d214b3c4bb.js rename to 3021.9eeb3b7144056a4ffda7.js diff --git a/3116.5043ce9854b05330cfac.js b/3116.5043ce9854b05330cfac.js new file mode 100644 index 000000000..0e45abd2f --- /dev/null +++ b/3116.5043ce9854b05330cfac.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[3116],{93116:(e,t,o)=>{o.r(t),o.d(t,{ExampleTuiEditorStarterModule:()=>C});var n=o(12057),u=o(24751),a=o(34016),i=o(70997),r=o(46331),d=o(44427),s=o(37801),l=o(82847),c=o(46841),p=o(45019),m=o(57080),g=o(74788);new g.OlP("HIGHLIGHT_OPTIONS");let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({}),e})();var Z=o(99434),y=o(34978),T=o(10215),_=o(96152);function x(e,t){1&e&&(g._uU(0," Disabled state (use "),g.TgZ(1,"code"),g._uU(2,"formControl.disable()"),g.qZA(),g._uU(3," ) "))}function A(e,t){1&e&&g._uU(0," Example pass HTML code ")}function f(e,t){1&e&&g._uU(0," Example text shown on empty focused input ")}function U(e,t){1&e&&g._uU(0," Allowed edit tools ")}function P(e,t){1&e&&g._uU(0,' Value of CSS-property "min-height" ')}function q(e,t){1&e&&g._uU(0,' Value of CSS-property "max-height" ')}function b(e,t){if(1&e){const e=g.EpF();g.TgZ(0,"tui-doc-demo",2),g.TgZ(1,"tui-editor",3),g._uU(2," Start typing "),g.qZA(),g.TgZ(3,"h4"),g._uU(4,"HTML:"),g.qZA(),g._UZ(5,"tui-editor-socket",4),g.TgZ(6,"h4"),g._uU(7,"Text:"),g.qZA(),g.TgZ(8,"p"),g._uU(9),g.qZA(),g.qZA(),g.TgZ(10,"tui-doc-documentation"),g.YNc(11,x,4,0,"ng-template",5),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().disabled=t})),g.YNc(12,A,1,0,"ng-template",6),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().control.setValue(t)})),g.YNc(13,f,1,0,"ng-template",7),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().exampleText=t})),g.YNc(14,U,1,0,"ng-template",8),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().tools=t})),g.qZA(),g.TgZ(15,"tui-doc-documentation",9),g.YNc(16,P,1,0,"ng-template",10),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().minHeight=t})),g.YNc(17,q,1,0,"ng-template",11),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().maxHeight=t})),g.qZA(),g.TgZ(18,"tui-doc-documentation",12),g.TgZ(19,"ol",13),g.TgZ(20,"li"),g.TgZ(21,"p"),g._uU(22," Import an Angular module for forms and "),g.TgZ(23,"code"),g._uU(24,"TuiEditorModule"),g.qZA(),g._uU(25," in the same module where you want to use our component: "),g.qZA(),g._UZ(26,"tui-doc-code",14),g.qZA(),g.TgZ(27,"li"),g.TgZ(28,"p"),g._uU(29,"Add to the template:"),g.qZA(),g._UZ(30,"tui-doc-code",15),g.qZA(),g.TgZ(31,"li"),g.TgZ(32,"p"),g._uU(33,"Provide the required extensions or use the default ones:"),g.qZA(),g._UZ(34,"tui-doc-code",16),g.qZA(),g.qZA(),g.TgZ(35,"h2"),g._uU(36,"TUI_EDITOR_OPTIONS"),g.qZA(),g._uU(37," You can configure some editor's params via DI-token "),g.TgZ(38,"code"),g._uU(39,"TUI_EDITOR_OPTIONS"),g.qZA(),g._uU(40," . "),g.TgZ(41,"p"),g.TgZ(42,"strong"),g._uU(43,"Usage:"),g.qZA(),g.qZA(),g._UZ(44,"tui-doc-code",17),g.TgZ(45,"p"),g.TgZ(46,"strong"),g._uU(47,"Description of the available configurations:"),g.qZA(),g.qZA(),g.TgZ(48,"dl"),g.TgZ(49,"dt"),g.TgZ(50,"code"),g._uU(51,"colors"),g.qZA(),g.qZA(),g.TgZ(52,"dd",18),g._uU(53," map of colors in toolbar's dropdowns with color-selection. "),g.TgZ(54,"p"),g._uU(55," It accepts "),g._UZ(56,"code",19),g._uU(57," : the "),g.TgZ(58,"strong"),g._uU(59,"key"),g.qZA(),g._uU(60," is the name of the color (used only for hint and accessibility), the "),g.TgZ(61,"strong"),g._uU(62,"value"),g.qZA(),g._uU(63," – HTML color code. "),g.qZA(),g.qZA(),g.TgZ(64,"dt"),g.TgZ(65,"code"),g._uU(66,"blankColor"),g.qZA(),g.qZA(),g.TgZ(67,"dd",18),g._uU(68," Null color. It is used in situations when there is no color selected. "),g.TgZ(69,"p"),g._uU(70," it accepts "),g.TgZ(71,"code"),g._uU(72,"string"),g.qZA(),g._uU(73," (HTML color code). "),g.qZA(),g.qZA(),g.TgZ(74,"dt"),g.TgZ(75,"code"),g._uU(76,"fontOptions"),g.qZA(),g.qZA(),g.TgZ(77,"dd",18),g._uU(78,"You can customize your own list of font sizes in editor."),g.qZA(),g.TgZ(79,"dt"),g.TgZ(80,"code"),g._uU(81,"translate"),g.qZA(),g.qZA(),g.TgZ(82,"dd",18),g._uU(83," Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated.. "),g.qZA(),g.TgZ(84,"dt"),g.TgZ(85,"code"),g._uU(86,"spellcheck"),g.qZA(),g.qZA(),g.TgZ(87,"dd",18),g._uU(88,"Defines whether the editor may be checked for spelling errors."),g.qZA(),g.qZA(),g.qZA()}if(2&e){const e=g.oxw();g.Q6J("sticky",!1),g.xp6(1),g.Udp("min-height",e.minHeight,"px")("max-height",e.maxHeight,"px"),g.Q6J("tuiAutoFocus",!e.isCypress)("formControl",e.control)("focusable",e.focusable)("exampleText",e.exampleText)("readOnly",e.readOnly)("tools",e.tools)("pseudoInvalid",e.pseudoInvalid)("pseudoFocus",e.pseudoFocused)("pseudoHover",e.pseudoHovered),g.xp6(4),g.Q6J("content",e.control.value),g.xp6(4),g.Oqu(e.control.value),g.xp6(2),g.Q6J("documentationPropertyValue",e.disabled),g.xp6(1),g.Q6J("documentationPropertyValue",e.control.value),g.xp6(1),g.Q6J("documentationPropertyValue",e.exampleText),g.xp6(1),g.Q6J("documentationPropertyValues",e.toolsVariants)("documentationPropertyValue",e.tools),g.xp6(2),g.Q6J("documentationPropertyValue",e.minHeight),g.xp6(1),g.Q6J("documentationPropertyValue",e.maxHeight),g.xp6(9),g.Q6J("code",e.exampleModule),g.xp6(4),g.Q6J("code",e.exampleHtml),g.xp6(4),g.Q6J("code",e.provideExtensions),g.xp6(10),g.Q6J("code",e.exampleEditorOptionsToken)}}let V=(()=>{class e{constructor(e){this.isCypress=e,this.exampleModule=o.e(7714).then(o.t.bind(o,7714,17)),this.exampleHtml=o.e(7843).then(o.t.bind(o,7843,17)),this.provideExtensions=o.e(2501).then(o.t.bind(o,92501,17)),this.exampleEditorOptionsToken=o.e(4058).then(o.t.bind(o,44058,17)),this.control=new u.NI,this.exampleText="",this.minHeight=null,this.maxHeight=null,this.readOnly=!1,this.focusable=!0,this.pseudoInvalid=null,this.pseudoFocused=null,this.pseudoHovered=null,this.toolsVariants=[m.aU,[m._2.Bold,m._2.Italic,m._2.Strikethrough,m._2.HR]],this.tools=this.toolsVariants[0]}get disabled(){return this.control.disabled}set disabled(e){e?this.control.disable():this.control.enable()}}return e.ɵfac=function(t){return new(t||e)(g.Y36(Z.B4))},e.ɵcmp=g.Xpm({type:e,selectors:[["editor-starter-page"]],features:[g._Bn([{provide:m.Wf,useValue:m.PD}])],decls:2,vars:0,consts:[["header","Editor","type","components"],["pageTab","API"],[3,"sticky"],[3,"tuiAutoFocus","formControl","focusable","exampleText","readOnly","tools","pseudoInvalid","pseudoFocus","pseudoHover"],[1,"tui-example",3,"content"],["documentationPropertyName","disabled","documentationPropertyType","boolean",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","ngModel","documentationPropertyMode","input","documentationPropertyType","string",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","exampleText","documentationPropertyMode","input","documentationPropertyType","string",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","tools","documentationPropertyMode","input","documentationPropertyType","ReadonlyArray",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],["heading","CSS customization"],["documentationPropertyName","style.minHeight.px","documentationPropertyMode","input","documentationPropertyType","number",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","style.maxHeight.px","documentationPropertyMode","input","documentationPropertyType","number",3,"documentationPropertyValue","documentationPropertyValueChange"],["heading","Setup"],[1,"b-demo-steps"],["filename","myComponent.module.ts",3,"code"],["filename","myComponent.template.html",3,"code"],["filename","myComponent.component.ts",3,"code"],[3,"code"],[1,"tui-space_bottom-5"],["tuiText","ReadonlyMap"]],template:function(e,t){1&e&&(g.TgZ(0,"tui-doc-page",0),g.YNc(1,b,89,27,"ng-template",1),g.qZA())},directives:[y.qo,y.nj,y.FU,T.a,s.k,u.JJ,u.oH,_.D,y.zb,y.B7,y.c0,r.v_],styles:[""],changeDetection:0}),e})(),C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({imports:[[n.ez,i.fV,h,c.y,l.j,p.z,r.Zp,m.T_,s.Q7,u.UX,a.Bz.forChild((0,d.Ve)(V)),m.GK]]}),e})()}}]); \ No newline at end of file diff --git a/3116.c6e78610c9d6130c6425.js b/3116.c6e78610c9d6130c6425.js deleted file mode 100644 index 1c43db685..000000000 --- a/3116.c6e78610c9d6130c6425.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[3116],{93116:(e,t,o)=>{o.r(t),o.d(t,{ExampleTuiEditorStarterModule:()=>C});var n=o(12057),u=o(24751),a=o(34016),i=o(70997),r=o(46331),d=o(44427),s=o(37801),l=o(82847),c=o(46841),p=o(45019),m=o(57080),g=o(74788);new g.OlP("HIGHLIGHT_OPTIONS");let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({}),e})();var Z=o(99434),y=o(34978),T=o(10215),_=o(96152);function x(e,t){1&e&&(g._uU(0," Disabled state (use "),g.TgZ(1,"code"),g._uU(2,"formControl.disable()"),g.qZA(),g._uU(3," ) "))}function A(e,t){1&e&&g._uU(0," Example pass HTML code ")}function f(e,t){1&e&&g._uU(0," Example text shown on empty focused input ")}function U(e,t){1&e&&g._uU(0," Allowed edit tools ")}function P(e,t){1&e&&g._uU(0,' Value of CSS-property "min-height" ')}function q(e,t){1&e&&g._uU(0,' Value of CSS-property "max-height" ')}function b(e,t){if(1&e){const e=g.EpF();g.TgZ(0,"tui-doc-demo",2),g.TgZ(1,"tui-editor",3),g._uU(2," Start typing "),g.qZA(),g.TgZ(3,"h4"),g._uU(4,"HTML:"),g.qZA(),g._UZ(5,"tui-editor-socket",4),g.TgZ(6,"h4"),g._uU(7,"Text:"),g.qZA(),g.TgZ(8,"p"),g._uU(9),g.qZA(),g.qZA(),g.TgZ(10,"tui-doc-documentation"),g.YNc(11,x,4,0,"ng-template",5),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().disabled=t})),g.YNc(12,A,1,0,"ng-template",6),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().control.setValue(t)})),g.YNc(13,f,1,0,"ng-template",7),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().exampleText=t})),g.YNc(14,U,1,0,"ng-template",8),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().tools=t})),g.qZA(),g.TgZ(15,"tui-doc-documentation",9),g.YNc(16,P,1,0,"ng-template",10),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().minHeight=t})),g.YNc(17,q,1,0,"ng-template",11),g.NdJ("documentationPropertyValueChange",(function(t){return g.CHM(e),g.oxw().maxHeight=t})),g.qZA(),g.TgZ(18,"tui-doc-documentation",12),g.TgZ(19,"ol",13),g.TgZ(20,"li"),g.TgZ(21,"p"),g._uU(22," Import an Angular module for forms and "),g.TgZ(23,"code"),g._uU(24,"TuiEditorModule"),g.qZA(),g._uU(25," in the same module where you want to use our component: "),g.qZA(),g._UZ(26,"tui-doc-code",14),g.qZA(),g.TgZ(27,"li"),g.TgZ(28,"p"),g._uU(29,"Add to the template:"),g.qZA(),g._UZ(30,"tui-doc-code",15),g.qZA(),g.TgZ(31,"li"),g.TgZ(32,"p"),g._uU(33," Provide the required extensions or use the default ones: "),g.qZA(),g._UZ(34,"tui-doc-code",16),g.qZA(),g.qZA(),g.TgZ(35,"h2"),g._uU(36,"TUI_EDITOR_OPTIONS"),g.qZA(),g._uU(37," You can configure some editor's params via DI-token "),g.TgZ(38,"code"),g._uU(39,"TUI_EDITOR_OPTIONS"),g.qZA(),g._uU(40," . "),g.TgZ(41,"p"),g.TgZ(42,"strong"),g._uU(43,"Usage:"),g.qZA(),g.qZA(),g._UZ(44,"tui-doc-code",17),g.TgZ(45,"p"),g.TgZ(46,"strong"),g._uU(47,"Description of the available configurations:"),g.qZA(),g.qZA(),g.TgZ(48,"dl"),g.TgZ(49,"dt"),g.TgZ(50,"code"),g._uU(51,"colors"),g.qZA(),g.qZA(),g.TgZ(52,"dd",18),g._uU(53," map of colors in toolbar's dropdowns with color-selection. "),g.TgZ(54,"p"),g._uU(55," It accepts "),g._UZ(56,"code",19),g._uU(57," : the "),g.TgZ(58,"strong"),g._uU(59,"key"),g.qZA(),g._uU(60," is the name of the color (used only for hint and accessibility), the "),g.TgZ(61,"strong"),g._uU(62,"value"),g.qZA(),g._uU(63," – HTML color code. "),g.qZA(),g.qZA(),g.TgZ(64,"dt"),g.TgZ(65,"code"),g._uU(66,"blankColor"),g.qZA(),g.qZA(),g.TgZ(67,"dd",18),g._uU(68," Null color. It is used in situations when there is no color selected. "),g.TgZ(69,"p"),g._uU(70," it accepts "),g.TgZ(71,"code"),g._uU(72,"string"),g.qZA(),g._uU(73," (HTML color code). "),g.qZA(),g.qZA(),g.TgZ(74,"dt"),g.TgZ(75,"code"),g._uU(76,"fontOptions"),g.qZA(),g.qZA(),g.TgZ(77,"dd",18),g._uU(78," You can customize your own list of font sizes in editor. "),g.qZA(),g.TgZ(79,"dt"),g.TgZ(80,"code"),g._uU(81,"translate"),g.qZA(),g.qZA(),g.TgZ(82,"dd",18),g._uU(83," Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated.. "),g.qZA(),g.TgZ(84,"dt"),g.TgZ(85,"code"),g._uU(86,"spellcheck"),g.qZA(),g.qZA(),g.TgZ(87,"dd",18),g._uU(88," Defines whether the editor may be checked for spelling errors. "),g.qZA(),g.qZA(),g.qZA()}if(2&e){const e=g.oxw();g.Q6J("sticky",!1),g.xp6(1),g.Udp("min-height",e.minHeight,"px")("max-height",e.maxHeight,"px"),g.Q6J("tuiAutoFocus",!e.isCypress)("formControl",e.control)("focusable",e.focusable)("exampleText",e.exampleText)("readOnly",e.readOnly)("tools",e.tools)("pseudoInvalid",e.pseudoInvalid)("pseudoFocus",e.pseudoFocused)("pseudoHover",e.pseudoHovered),g.xp6(4),g.Q6J("content",e.control.value),g.xp6(4),g.Oqu(e.control.value),g.xp6(2),g.Q6J("documentationPropertyValue",e.disabled),g.xp6(1),g.Q6J("documentationPropertyValue",e.control.value),g.xp6(1),g.Q6J("documentationPropertyValue",e.exampleText),g.xp6(1),g.Q6J("documentationPropertyValues",e.toolsVariants)("documentationPropertyValue",e.tools),g.xp6(2),g.Q6J("documentationPropertyValue",e.minHeight),g.xp6(1),g.Q6J("documentationPropertyValue",e.maxHeight),g.xp6(9),g.Q6J("code",e.exampleModule),g.xp6(4),g.Q6J("code",e.exampleHtml),g.xp6(4),g.Q6J("code",e.provideExtensions),g.xp6(10),g.Q6J("code",e.exampleEditorOptionsToken)}}let V=(()=>{class e{constructor(e){this.isCypress=e,this.exampleModule=o.e(7714).then(o.t.bind(o,7714,17)),this.exampleHtml=o.e(7843).then(o.t.bind(o,7843,17)),this.provideExtensions=o.e(2501).then(o.t.bind(o,92501,17)),this.exampleEditorOptionsToken=o.e(4058).then(o.t.bind(o,44058,17)),this.control=new u.NI,this.exampleText="",this.minHeight=null,this.maxHeight=null,this.readOnly=!1,this.focusable=!0,this.pseudoInvalid=null,this.pseudoFocused=null,this.pseudoHovered=null,this.toolsVariants=[m.aU,[m._2.Bold,m._2.Italic,m._2.Strikethrough,m._2.HR]],this.tools=this.toolsVariants[0]}get disabled(){return this.control.disabled}set disabled(e){e?this.control.disable():this.control.enable()}}return e.ɵfac=function(t){return new(t||e)(g.Y36(Z.B4))},e.ɵcmp=g.Xpm({type:e,selectors:[["editor-starter-page"]],features:[g._Bn([{provide:m.Wf,useValue:m.PD}])],decls:2,vars:0,consts:[["header","Editor","type","components"],["pageTab","API"],[3,"sticky"],[3,"tuiAutoFocus","formControl","focusable","exampleText","readOnly","tools","pseudoInvalid","pseudoFocus","pseudoHover"],[1,"tui-example",3,"content"],["documentationPropertyName","disabled","documentationPropertyType","boolean",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","ngModel","documentationPropertyMode","input","documentationPropertyType","string",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","exampleText","documentationPropertyMode","input","documentationPropertyType","string",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","tools","documentationPropertyMode","input","documentationPropertyType","ReadonlyArray",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],["heading","CSS customization"],["documentationPropertyName","style.minHeight.px","documentationPropertyMode","input","documentationPropertyType","number",3,"documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","style.maxHeight.px","documentationPropertyMode","input","documentationPropertyType","number",3,"documentationPropertyValue","documentationPropertyValueChange"],["heading","Setup"],[1,"b-demo-steps"],["filename","myComponent.module.ts",3,"code"],["filename","myComponent.template.html",3,"code"],["filename","myComponent.component.ts",3,"code"],[3,"code"],[1,"tui-space_bottom-5"],["tuiText","ReadonlyMap"]],template:function(e,t){1&e&&(g.TgZ(0,"tui-doc-page",0),g.YNc(1,b,89,27,"ng-template",1),g.qZA())},directives:[y.qo,y.nj,y.FU,T.a,s.k,u.JJ,u.oH,_.D,y.zb,y.B7,y.c0,r.v_],styles:[""],changeDetection:0}),e})(),C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({imports:[[n.ez,i.fV,h,c.y,l.j,p.z,r.Zp,m.T_,s.Q7,u.UX,a.Bz.forChild((0,d.Ve)(V)),m.GK]]}),e})()}}]); \ No newline at end of file diff --git a/32.a3a3023ee116ba2e8303.js b/32.175959e4be33f25f81da.js similarity index 100% rename from 32.a3a3023ee116ba2e8303.js rename to 32.175959e4be33f25f81da.js diff --git a/3336.08b0c0dec26f64805068.js b/3336.0f20089698f0546f2db3.js similarity index 100% rename from 3336.08b0c0dec26f64805068.js rename to 3336.0f20089698f0546f2db3.js diff --git a/3378.2cd5668c960b5a42779a.js b/3378.c24a4c4c9dcadf15cddd.js similarity index 100% rename from 3378.2cd5668c960b5a42779a.js rename to 3378.c24a4c4c9dcadf15cddd.js diff --git a/3408.479a88288f0646e360d8.js b/3408.8a1da294613e2e7b6519.js similarity index 100% rename from 3408.479a88288f0646e360d8.js rename to 3408.8a1da294613e2e7b6519.js diff --git a/3442.baa95137d31306ae19cc.js b/3442.ff1c97162f63305399bc.js similarity index 100% rename from 3442.baa95137d31306ae19cc.js rename to 3442.ff1c97162f63305399bc.js diff --git a/3451.9721e7ed2db35f08c7be.js b/3451.56cde4e4744d5a19308d.js similarity index 100% rename from 3451.9721e7ed2db35f08c7be.js rename to 3451.56cde4e4744d5a19308d.js diff --git a/3566.6afab8ba1b920f4c636d.js b/3566.01ca0805aa504323fa1b.js similarity index 100% rename from 3566.6afab8ba1b920f4c636d.js rename to 3566.01ca0805aa504323fa1b.js diff --git a/3575.17ccbfe8101e072392a1.js b/3575.ba6b9c947c7bdbbc006a.js similarity index 100% rename from 3575.17ccbfe8101e072392a1.js rename to 3575.ba6b9c947c7bdbbc006a.js diff --git a/372.5004535240ba0140a65e.js b/372.e60bda3e68fbeed104bb.js similarity index 100% rename from 372.5004535240ba0140a65e.js rename to 372.e60bda3e68fbeed104bb.js diff --git a/3725.72c1326f28aeeb6b345a.js b/3725.ea64143997ee0b4cab65.js similarity index 100% rename from 3725.72c1326f28aeeb6b345a.js rename to 3725.ea64143997ee0b4cab65.js diff --git a/3734.a5240accfe23f5fcb0a6.js b/3734.fafecda142b1e1352177.js similarity index 100% rename from 3734.a5240accfe23f5fcb0a6.js rename to 3734.fafecda142b1e1352177.js diff --git a/3821.e17a5f98934c4d53d051.js b/3821.d645b82e45a811910dd5.js similarity index 100% rename from 3821.e17a5f98934c4d53d051.js rename to 3821.d645b82e45a811910dd5.js diff --git a/3878.18d537c1f7aaaae90b10.js b/3878.4bc365edf8b07a83bbc1.js similarity index 100% rename from 3878.18d537c1f7aaaae90b10.js rename to 3878.4bc365edf8b07a83bbc1.js diff --git a/3881.6a411c5e3a7ceab17d5e.js b/3881.32a53d0d83c11c74c846.js similarity index 100% rename from 3881.6a411c5e3a7ceab17d5e.js rename to 3881.32a53d0d83c11c74c846.js diff --git a/3922.714e8c2d0ddca7abace2.js b/3922.0b0ee010ac094249ddc0.js similarity index 100% rename from 3922.714e8c2d0ddca7abace2.js rename to 3922.0b0ee010ac094249ddc0.js diff --git a/3963.4cf1d8964368bbf0a72c.js b/3963.f41522bca8075509916f.js similarity index 100% rename from 3963.4cf1d8964368bbf0a72c.js rename to 3963.f41522bca8075509916f.js diff --git a/4008.ad92d0fa3f05ea663adc.js b/4008.f51fae818f3d265b6d6f.js similarity index 100% rename from 4008.ad92d0fa3f05ea663adc.js rename to 4008.f51fae818f3d265b6d6f.js diff --git a/404.html b/404.html index deafc6844..a8926b7ce 100644 --- a/404.html +++ b/404.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/4052.9b2c2897f7e87c8407b9.js b/4052.6754bd0a387fa35df03c.js similarity index 100% rename from 4052.9b2c2897f7e87c8407b9.js rename to 4052.6754bd0a387fa35df03c.js diff --git a/4057.969278272cec009097e4.js b/4057.54165286aebbfb8e9004.js similarity index 100% rename from 4057.969278272cec009097e4.js rename to 4057.54165286aebbfb8e9004.js diff --git a/4058.20e2f4a18a51d793e015.js b/4058.71b0b1ab3b7c805c7034.js similarity index 100% rename from 4058.20e2f4a18a51d793e015.js rename to 4058.71b0b1ab3b7c805c7034.js diff --git a/4078.96e4701f8b4365c7265b.js b/4078.df8847c30c3a6239d103.js similarity index 100% rename from 4078.96e4701f8b4365c7265b.js rename to 4078.df8847c30c3a6239d103.js diff --git a/4116.0f357570015d5fe6d59e.js b/4116.e73820e05df574769553.js similarity index 100% rename from 4116.0f357570015d5fe6d59e.js rename to 4116.e73820e05df574769553.js diff --git a/4205.26fd9ba4b2128186989b.js b/4205.dbb62d1c7bd7083359fe.js similarity index 100% rename from 4205.26fd9ba4b2128186989b.js rename to 4205.dbb62d1c7bd7083359fe.js diff --git a/424.d99fee1b478aa95e2430.js b/424.918c57921bd66a65e671.js similarity index 100% rename from 424.d99fee1b478aa95e2430.js rename to 424.918c57921bd66a65e671.js diff --git a/4304.ad42bca119a72ac0e852.js b/4304.fea64f7e809a26c11f31.js similarity index 100% rename from 4304.ad42bca119a72ac0e852.js rename to 4304.fea64f7e809a26c11f31.js diff --git a/4306.4133dcdc4e39abe62261.js b/4306.8572550085b6e26b5ba3.js similarity index 100% rename from 4306.4133dcdc4e39abe62261.js rename to 4306.8572550085b6e26b5ba3.js diff --git a/4343.5990c938bfa44274962c.js b/4343.7b967bb2f4b70bf396ff.js similarity index 100% rename from 4343.5990c938bfa44274962c.js rename to 4343.7b967bb2f4b70bf396ff.js diff --git a/4361.937d6a03b9ff9fba7c8d.js b/4361.bf02748eb4341014cfc4.js similarity index 100% rename from 4361.937d6a03b9ff9fba7c8d.js rename to 4361.bf02748eb4341014cfc4.js diff --git a/4416.b0d6f856c1266d786ce7.js b/4416.9bc0a7e48fb07e412256.js similarity index 100% rename from 4416.b0d6f856c1266d786ce7.js rename to 4416.9bc0a7e48fb07e412256.js diff --git a/4424.921baaf1fd8a64cf6421.js b/4424.df9b91b6a494cc4a8f48.js similarity index 100% rename from 4424.921baaf1fd8a64cf6421.js rename to 4424.df9b91b6a494cc4a8f48.js diff --git a/4576.5498295cfbc115456917.js b/4576.05c43ab1b7a7f3e79526.js similarity index 100% rename from 4576.5498295cfbc115456917.js rename to 4576.05c43ab1b7a7f3e79526.js diff --git a/4579.de935a6bd2fb898d218c.js b/4579.88a740a548807afbc533.js similarity index 100% rename from 4579.de935a6bd2fb898d218c.js rename to 4579.88a740a548807afbc533.js diff --git a/458.66692a563cab092e0ca4.js b/458.8c1f6de0eb38e7fb9b88.js similarity index 100% rename from 458.66692a563cab092e0ca4.js rename to 458.8c1f6de0eb38e7fb9b88.js diff --git a/4648.8d3dd4a84db7ce599f4f.js b/4648.b68d02c2854ea119b399.js similarity index 100% rename from 4648.8d3dd4a84db7ce599f4f.js rename to 4648.b68d02c2854ea119b399.js diff --git a/4661.80b8fe88910d1fdb8821.js b/4661.d087a46e2b7c2eb08062.js similarity index 100% rename from 4661.80b8fe88910d1fdb8821.js rename to 4661.d087a46e2b7c2eb08062.js diff --git a/4671.e632c35d81df946753f1.js b/4671.eef2b8b4f24a71793f25.js similarity index 100% rename from 4671.e632c35d81df946753f1.js rename to 4671.eef2b8b4f24a71793f25.js diff --git a/4711.cc0a2663bc55dadc8d21.js b/4711.2a5fa1f1279e405a3b09.js similarity index 100% rename from 4711.cc0a2663bc55dadc8d21.js rename to 4711.2a5fa1f1279e405a3b09.js diff --git a/4745.8aac86ca64a99e772308.js b/4745.6b9a662c44cac4d7af8e.js similarity index 100% rename from 4745.8aac86ca64a99e772308.js rename to 4745.6b9a662c44cac4d7af8e.js diff --git a/4805.eefb344e5044dab4af61.js b/4805.d4003e7f03459060a714.js similarity index 100% rename from 4805.eefb344e5044dab4af61.js rename to 4805.d4003e7f03459060a714.js diff --git a/4886.6b812881e71d9d6bad42.js b/4886.b7d57f9d9abc37bfe253.js similarity index 100% rename from 4886.6b812881e71d9d6bad42.js rename to 4886.b7d57f9d9abc37bfe253.js diff --git a/4900.df3c22a537320a3bbd0b.js b/4900.94874f9aa3164113ee05.js similarity index 100% rename from 4900.df3c22a537320a3bbd0b.js rename to 4900.94874f9aa3164113ee05.js diff --git a/4949.28fdc3b69f56db3a5d5c.js b/4949.3b594da72af4b5930922.js similarity index 100% rename from 4949.28fdc3b69f56db3a5d5c.js rename to 4949.3b594da72af4b5930922.js diff --git a/5033.d65317f13aa9b0eaaf08.js b/5033.cfa70a59cfddde14483c.js similarity index 100% rename from 5033.d65317f13aa9b0eaaf08.js rename to 5033.cfa70a59cfddde14483c.js diff --git a/5034.383c1b43877c1fbd7e5e.js b/5034.d49658d364b5b883891c.js similarity index 100% rename from 5034.383c1b43877c1fbd7e5e.js rename to 5034.d49658d364b5b883891c.js diff --git a/5134.a46a602a26d6d71c5fe6.js b/5134.0d4d71bf6bd93408d244.js similarity index 100% rename from 5134.a46a602a26d6d71c5fe6.js rename to 5134.0d4d71bf6bd93408d244.js diff --git a/5159.129cc515049d5dc4f65b.js b/5159.d465e65ce535b63562ac.js similarity index 100% rename from 5159.129cc515049d5dc4f65b.js rename to 5159.d465e65ce535b63562ac.js diff --git a/5213.81d00a6bf91e6d29cb0c.js b/5213.7c6f8348c1ee982fc98a.js similarity index 100% rename from 5213.81d00a6bf91e6d29cb0c.js rename to 5213.7c6f8348c1ee982fc98a.js diff --git a/5265.d585648c18b73915119b.js b/5265.c9272622a8c50ab07114.js similarity index 100% rename from 5265.d585648c18b73915119b.js rename to 5265.c9272622a8c50ab07114.js diff --git a/5291.562507fe4807e080f191.js b/5291.ff14ba84b9d3084b3f43.js similarity index 100% rename from 5291.562507fe4807e080f191.js rename to 5291.ff14ba84b9d3084b3f43.js diff --git a/5380.7e15a08d9e76b393ec56.js b/5380.a8fcd793ad1a9a98e19c.js similarity index 100% rename from 5380.7e15a08d9e76b393ec56.js rename to 5380.a8fcd793ad1a9a98e19c.js diff --git a/5381.e20555c7001f5fe8f5e2.js b/5381.e1ba8d3bca5f1672ca8c.js similarity index 100% rename from 5381.e20555c7001f5fe8f5e2.js rename to 5381.e1ba8d3bca5f1672ca8c.js diff --git a/5427.40b17e0a01ecc5f44b01.js b/5427.f60886b95af769aa7134.js similarity index 100% rename from 5427.40b17e0a01ecc5f44b01.js rename to 5427.f60886b95af769aa7134.js diff --git a/5496.3bae65cba5b87f33d5ca.js b/5496.f5d92b147b1296c64b33.js similarity index 100% rename from 5496.3bae65cba5b87f33d5ca.js rename to 5496.f5d92b147b1296c64b33.js diff --git a/5518.2049c50f0fedfcd63fdc.js b/5518.2049c50f0fedfcd63fdc.js deleted file mode 100644 index 6f16f20fb..000000000 --- a/5518.2049c50f0fedfcd63fdc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[5518],{95518:(e,r,a)=>{a.r(r),a.d(r,{ExampleTuiEditorMarkdownModule:()=>C});var t=a(12057),n=a(24751),o=a(34016),s=a(70997),i=a(44427),l=a(221),c=a(54789),u=a(82847),d=a(23917),p=a(12628),h=a(57080),_=a(64548),g=a(74788),m=a(34978),f=a(97582),b=a(44358),w=a(4841),k=a.n(w),v=a(54349),y=a(96152),P=a(10215);function x(e,r){if(1&e&&(g.TgZ(0,"tui-editor",3),g._uU(1," Placeholder\n"),g.qZA()),2&e){const e=g.oxw();g.Q6J("tools",e.builtInTools)("formControl",e.control)}}class j{constructor(){this.builtInTools=[h._2.Undo,h._2.Img,h._2.Link,h._2.Anchor],this.control=new n.NI("")}toMarkdown(e){return(new v.Converter).makeMarkdown(e)}ngOnInit(){return(0,f.mG)(this,void 0,void 0,(function*(){const e=yield(0,i.JQ)(a.e(1015).then(a.t.bind(a,21015,17)));this.control.patchValue(e)}))}}j.ɵfac=function(e){return new(e||j)},j.ɵcmp=g.Xpm({type:j,selectors:[["tui-editor-markdown-example-1"]],features:[g._Bn([{provide:h.F1,useValue:e=>(new(k())).render(e)}])],decls:8,vars:3,consts:[["class","editor",3,"tools","formControl",4,"ngIf"],[1,"socket",3,"content"],[1,"markdown"],[1,"editor",3,"tools","formControl"]],template:function(e,r){1&e&&(g.YNc(0,x,2,2,"tui-editor",0),g.TgZ(1,"h4"),g._uU(2,"HTML:"),g.qZA(),g._UZ(3,"tui-editor-socket",1),g.TgZ(4,"h4"),g._uU(5,"Markdown:"),g.qZA(),g.TgZ(6,"pre",2),g._uU(7),g.qZA()),2&e&&(g.Q6J("ngIf",r.control),g.xp6(3),g.Q6J("content",(null==r.control?null:r.control.value)||""),g.xp6(4),g.Oqu(r.toMarkdown(null==r.control?null:r.control.value)))},directives:[t.O5,y.D,P.a,n.JJ,n.oH],styles:[".editor[_ngcontent-%COMP%]{min-height:30rem}.markdown[_ngcontent-%COMP%]{font-family:monospace;padding:.375rem .5rem;background:var(--tui-base-02);color:var(--tui-text-02);box-shadow:inset 0 -2px var(--tui-secondary);font-size:.875rem;white-space:break-spaces}"],changeDetection:0}),(0,f.gn)([b.UM],j.prototype,"toMarkdown",null);let z=(()=>{class e{constructor(){this.example1={TypeScript:a.e(2580).then(a.t.bind(a,62580,17)),HTML:a.e(4745).then(a.t.bind(a,34745,17)),LESS:a.e(6227).then(a.t.bind(a,26227,17)),"example.md":a.e(1015).then(a.t.bind(a,21015,17))}}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=g.Xpm({type:e,selectors:[["editor-markdown"]],features:[g._Bn([{provide:h.Wf,useValue:h.PD},{provide:_.Es,useValue:e=>[e]}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["tuiLink","","href","https://www.tiptap.dev/"],["tuiLink","","routerLink","/icons/bundled","fragment","sanitizer"],["id","markdown","heading","Markdown","description","You can use any parsing markdown library",3,"content"]],template:function(e,r){1&e&&(g.TgZ(0,"tui-doc-page",0),g.TgZ(1,"p"),g._uU(2," Rich Text Editor based on "),g.TgZ(3,"a",1),g._uU(4," TipTap Editor "),g.qZA(),g._uU(5," for using with Angular forms. For safety reasons use a "),g.TgZ(6,"a",2),g._uU(7," sanitizer "),g.qZA(),g._uU(8," with this component. "),g.qZA(),g.TgZ(9,"tui-doc-example",3),g._UZ(10,"tui-editor-markdown-example-1"),g.qZA(),g.qZA()),2&e&&(g.xp6(9),g.Q6J("content",r.example1))},directives:[m.qo,u.V,o.yS,m.f2,j],encapsulation:2,changeDetection:0}),e})(),C=(()=>{class e{}return e.ɵfac=function(r){return new(r||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({imports:[[t.ez,l.A,c.EI,u.j,d.jh,p.fN,s.fV,n.u5,n.UX,h.T_,h.GK,o.Bz.forChild((0,i.Ve)(z))]]}),e})()},54349:function(e,r,a){var t;(function(){function n(e){var r={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(r));var a={};for(var t in r)r.hasOwnProperty(t)&&(a[t]=r[t].defaultValue);return a}var o={},s={},i={},l=n(!0),c="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:n(!0),allOn:function(){var e=n(!0),r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=!0);return r}()};function d(e,r){var a=r?"Error in "+r+" extension->":"Error in unnamed extension",t={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var n=0;n").replace(/&/g,"&")};var h=function(e,r,a,t){var n,o,s,i,l,c=t||"",u=c.indexOf("g")>-1,d=new RegExp(r+"|"+a,"g"+c.replace(/g/g,"")),p=new RegExp(r,c.replace(/g/g,"")),h=[];do{for(n=0;s=d.exec(e);)if(p.test(s[0]))n++||(i=(o=d.lastIndex)-s[0].length);else if(n&&!--n){l=s.index+s[0].length;var _={left:{start:i,end:o},match:{start:o,end:s.index},right:{start:s.index,end:l},wholeMatch:{start:i,end:l}};if(h.push(_),!u)return h}}while(n&&(d.lastIndex=o));return h};o.helper.matchRecursiveRegExp=function(e,r,a,t){for(var n=h(e,r,a,t),o=[],s=0;s0){var u=[];0!==i[0].wholeMatch.start&&u.push(e.slice(0,i[0].wholeMatch.start));for(var d=0;d=0?t+(a||0):t},o.helper.splitAtIndex=function(e,r){if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,r),e.substring(r)]},o.helper.encodeEmailAddress=function(e){var r=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=r[Math.floor(2*Math.random())](e);else{var a=Math.random();e=a>.9?r[2](e):a>.45?r[1](e):r[0](e)}return e}))},o.helper.padEnd=function(e,r,a){return r>>=0,a=String(a||" "),e.length>r?String(e):((r-=e.length)>a.length&&(a+=a.repeat(r/a.length)),String(e)+a.slice(0,r))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){var r={},a=[],t=[],n={},s=c,p={parsed:{},raw:"",format:""};function h(e,r){if(r=r||null,o.helper.isString(e)){if(r=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,r){"function"==typeof e&&(e=e(new o.Converter)),o.helper.isArray(e)||(e=[e]);var n=d(e,r);if(!n.valid)throw Error(n.error);for(var s=0;s[ \t]+¨NBSP;<"),!r){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");r=window.document}var a=r.createElement("div");a.innerHTML=e;var t={preList:function(e){for(var r=e.querySelectorAll("pre"),a=[],t=0;t'}else a.push(r[t].innerHTML),r[t].innerHTML="",r[t].setAttribute("prenum",t.toString());return a}(a)};!function e(r){for(var a=0;a? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s){if(n||(n=t.toLowerCase().replace(/ ?\n/g," ")),s="#"+n,o.helper.isUndefined(a.gUrls[n]))return e;s=a.gUrls[n],o.helper.isUndefined(a.gTitles[n])||(c=a.gTitles[n])}var u='"+t+""};return e=(e=(e=(e=(e=a.converter._dispatch("anchors.before",e,r,a)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[([^\[\]]+)]()()()()()/g,t),r.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,a,t,n,s){if("\\"===t)return a+n;if(!o.helper.isString(r.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var i=r.ghMentionsLink.replace(/\{u}/g,s),l="";return r.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),a+'"+n+""}))),a.converter._dispatch("anchors.after",e,r,a)}));var _=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,f=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,w=function(e){return function(r,a,t,n,s,i,l){var c=t=t.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),u="",d="",p=a||"",h=l||"";return/^www\./i.test(t)&&(t=t.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&i&&(u=i),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),p+'"+c+""+u+h}},k=function(e,r){return function(a,t,n){var s="mailto:";return t=t||"",n=o.subParser("unescapeSpecialChars")(n,e,r),e.encodeEmails?(s=o.helper.encodeEmailAddress(s+n),n=o.helper.encodeEmailAddress(n)):s+=n,t+''+n+""}};o.subParser("autoLinks",(function(e,r,a){return e=(e=(e=a.converter._dispatch("autoLinks.before",e,r,a)).replace(m,w(r))).replace(b,k(r,a)),a.converter._dispatch("autoLinks.after",e,r,a)})),o.subParser("simplifiedAutoLinks",(function(e,r,a){return r.simplifiedAutoLink?(e=a.converter._dispatch("simplifiedAutoLinks.before",e,r,a),e=(e=r.excludeTrailingPunctuationFromURLs?e.replace(g,w(r)):e.replace(_,w(r))).replace(f,k(r,a)),e=a.converter._dispatch("simplifiedAutoLinks.after",e,r,a)):e})),o.subParser("blockGamut",(function(e,r,a){return e=a.converter._dispatch("blockGamut.before",e,r,a),e=o.subParser("blockQuotes")(e,r,a),e=o.subParser("headers")(e,r,a),e=o.subParser("horizontalRule")(e,r,a),e=o.subParser("lists")(e,r,a),e=o.subParser("codeBlocks")(e,r,a),e=o.subParser("tables")(e,r,a),e=o.subParser("hashHTMLBlocks")(e,r,a),e=o.subParser("paragraphs")(e,r,a),a.converter._dispatch("blockGamut.after",e,r,a)})),o.subParser("blockQuotes",(function(e,r,a){e=a.converter._dispatch("blockQuotes.before",e,r,a),e+="\n\n";var t=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return r.splitAdjacentBlockquotes&&(t=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(t,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,r,a),e=(e=(e=o.subParser("blockGamut")(e,r,a)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,r){return r.replace(/^  /gm,"¨0").replace(/¨0/g,"")})),o.subParser("hashBlock")("
\n"+e+"\n
",r,a)})),a.converter._dispatch("blockQuotes.after",e,r,a)})),o.subParser("codeBlocks",(function(e,r,a){return e=a.converter._dispatch("codeBlocks.before",e,r,a),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,t,n){var s=t,i=n,l="\n";return s=o.subParser("outdent")(s,r,a),s=o.subParser("encodeCode")(s,r,a),s=(s=(s=o.subParser("detab")(s,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.omitExtraWLInCodeBlocks&&(l=""),s="
"+s+l+"
",o.subParser("hashBlock")(s,r,a)+i}))).replace(/¨0/,""),a.converter._dispatch("codeBlocks.after",e,r,a)})),o.subParser("codeSpans",(function(e,r,a){return void 0===(e=a.converter._dispatch("codeSpans.before",e,r,a))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,t,n,s){var i=s;return i=(i=i.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),i=t+""+(i=o.subParser("encodeCode")(i,r,a))+"",o.subParser("hashHTMLSpans")(i,r,a)})),a.converter._dispatch("codeSpans.after",e,r,a)})),o.subParser("completeHTMLDocument",(function(e,r,a){if(!r.completeHTMLDocument)return e;e=a.converter._dispatch("completeHTMLDocument.before",e,r,a);var t="html",n="\n",o="",s='\n',i="",l="";for(var c in void 0!==a.metadata.parsed.doctype&&(n="\n","html"!==(t=a.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==t||(s='')),a.metadata.parsed)if(a.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":o=""+a.metadata.parsed.title+"\n";break;case"charset":s="html"===t||"html5"===t?'\n':'\n';break;case"language":case"lang":i=' lang="'+a.metadata.parsed[c]+'"',l+='\n';break;default:l+='\n'}return e=n+"\n\n"+o+s+l+"\n\n"+e.trim()+"\n\n",a.converter._dispatch("completeHTMLDocument.after",e,r,a)})),o.subParser("detab",(function(e,r,a){return e=(e=(e=(e=(e=(e=a.converter._dispatch("detab.before",e,r,a)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,r){for(var a=r,t=4-a.length%4,n=0;n/g,">"),a.converter._dispatch("encodeAmpsAndAngles.after",e,r,a)})),o.subParser("encodeBackslashEscapes",(function(e,r,a){return e=(e=(e=a.converter._dispatch("encodeBackslashEscapes.before",e,r,a)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,o.helper.escapeCharactersCallback),a.converter._dispatch("encodeBackslashEscapes.after",e,r,a)})),o.subParser("encodeCode",(function(e,r,a){return e=(e=a.converter._dispatch("encodeCode.before",e,r,a)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),a.converter._dispatch("encodeCode.after",e,r,a)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,r,a){return e=(e=(e=a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,r,a)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,r,a)})),o.subParser("githubCodeBlocks",(function(e,r,a){return r.ghCodeBlocks?(e=a.converter._dispatch("githubCodeBlocks.before",e,r,a),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,t,n,s){var i=r.omitExtraWLInCodeBlocks?"":"\n";return s=o.subParser("encodeCode")(s,r,a),s="
"+(s=(s=(s=o.subParser("detab")(s,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+i+"
",s=o.subParser("hashBlock")(s,r,a),"\n\n¨G"+(a.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/¨0/,""),a.converter._dispatch("githubCodeBlocks.after",e,r,a)):e})),o.subParser("hashBlock",(function(e,r,a){return e=(e=a.converter._dispatch("hashBlock.before",e,r,a)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n",a.converter._dispatch("hashBlock.after",e,r,a)})),o.subParser("hashCodeTags",(function(e,r,a){return e=a.converter._dispatch("hashCodeTags.before",e,r,a),e=o.helper.replaceRecursiveRegExp(e,(function(e,t,n,s){var i=n+o.subParser("encodeCode")(t,r,a)+s;return"¨C"+(a.gHtmlSpans.push(i)-1)+"C"}),"]*>","","gim"),a.converter._dispatch("hashCodeTags.after",e,r,a)})),o.subParser("hashElement",(function(e,r,a){return function(e,r){var t=r;return t=(t=(t=t.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(a.gHtmlBlocks.push(t)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,r,a){e=a.converter._dispatch("hashHTMLBlocks.before",e,r,a);var t=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],n=function(e,r,t,n){var o=e;return-1!==t.search(/\bmarkdown\b/)&&(o=t+a.converter.makeHtml(r)+n),"\n\n¨K"+(a.gHtmlBlocks.push(o)-1)+"K\n\n"};r.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,r){return"<"+r+">"})));for(var s=0;s]*>)","im"),c="<"+t[s]+"\\b[^>]*>",u="";-1!==(i=o.helper.regexIndexOf(e,l));){var d=o.helper.splitAtIndex(e,i),p=o.helper.replaceRecursiveRegExp(d[1],n,c,u,"im");if(p===d[1])break;e=d[0].concat(p)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,r,a)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,r,a)),a.converter._dispatch("hashHTMLBlocks.after",e,r,a)})),o.subParser("hashHTMLSpans",(function(e,r,a){function t(e){return"¨C"+(a.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=a.converter._dispatch("hashHTMLSpans.before",e,r,a)).replace(/<[^>]+?\/>/gi,(function(e){return t(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return t(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return t(e)}))).replace(/<[^>]+?>/gi,(function(e){return t(e)})),a.converter._dispatch("hashHTMLSpans.after",e,r,a)})),o.subParser("unhashHTMLSpans",(function(e,r,a){e=a.converter._dispatch("unhashHTMLSpans.before",e,r,a);for(var t=0;t]*>\\s*]*>","^ {0,3}\\s*
","gim"),a.converter._dispatch("hashPreCodeTags.after",e,r,a)})),o.subParser("headers",(function(e,r,a){e=a.converter._dispatch("headers.before",e,r,a);var t=isNaN(parseInt(r.headerLevelStart))?1:parseInt(r.headerLevelStart),n=r.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,s=r.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(n,(function(e,n){var s=o.subParser("spanGamut")(n,r,a),i=r.noHeaderId?"":' id="'+l(n)+'"',c=""+s+"";return o.subParser("hashBlock")(c,r,a)}))).replace(s,(function(e,n){var s=o.subParser("spanGamut")(n,r,a),i=r.noHeaderId?"":' id="'+l(n)+'"',c=t+1,u=""+s+"";return o.subParser("hashBlock")(u,r,a)}));var i=r.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var t,n;if(r.customizedHeaderId){var s=e.match(/\{([^{]+?)}\s*$/);s&&s[1]&&(e=s[1])}return t=e,n=o.helper.isString(r.prefixHeaderId)?r.prefixHeaderId:!0===r.prefixHeaderId?"section-":"",r.rawPrefixHeaderId||(t=n+t),t=r.ghCompatibleHeaderId?t.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():r.rawHeaderId?t.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():t.replace(/[^\w]/g,"").toLowerCase(),r.rawPrefixHeaderId&&(t=n+t),a.hashLinkCounts[t]?t=t+"-"+a.hashLinkCounts[t]++:a.hashLinkCounts[t]=1,t}return e=e.replace(i,(function(e,n,s){var i=s;r.customizedHeaderId&&(i=s.replace(/\s?\{([^{]+?)}\s*$/,""));var c=o.subParser("spanGamut")(i,r,a),u=r.noHeaderId?"":' id="'+l(s)+'"',d=t-1+n.length,p=""+c+"";return o.subParser("hashBlock")(p,r,a)})),a.converter._dispatch("headers.after",e,r,a)})),o.subParser("horizontalRule",(function(e,r,a){e=a.converter._dispatch("horizontalRule.before",e,r,a);var t=o.subParser("hashBlock")("
",r,a);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,t)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,t)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,t),a.converter._dispatch("horizontalRule.after",e,r,a)})),o.subParser("images",(function(e,r,a){function t(e,r,t,n,s,i,l,c){var u=a.gUrls,d=a.gTitles,p=a.gDimensions;if(t=t.toLowerCase(),c||(c=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)n="";else if(""===n||null===n){if(""!==t&&null!==t||(t=r.toLowerCase().replace(/ ?\n/g," ")),n="#"+t,o.helper.isUndefined(u[t]))return e;n=u[t],o.helper.isUndefined(d[t])||(c=d[t]),o.helper.isUndefined(p[t])||(s=p[t].width,i=p[t].height)}r=r.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var h=''+r+'"}return e=(e=(e=(e=(e=(e=a.converter._dispatch("images.before",e,r,a)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,t)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,r,a,n,o,s,i,l){return t(e,r,a,n=n.replace(/\s/g,""),o,s,0,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,t)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,t)).replace(/!\[([^\[\]]+)]()()()()()/g,t),a.converter._dispatch("images.after",e,r,a)})),o.subParser("italicsAndBold",(function(e,r,a){function t(e,r,a){return r+e+a}return e=a.converter._dispatch("italicsAndBold.before",e,r,a),e=r.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,r){return t(r,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,r){return t(r,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,r){return t(r,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e})),e=r.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e})),a.converter._dispatch("italicsAndBold.after",e,r,a)})),o.subParser("lists",(function(e,r,a){function t(e,t){a.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,s=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return r.disableForced4SpacesIndentedSublists&&(n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(n,(function(e,t,n,i,l,c,u){u=u&&""!==u.trim();var d=o.subParser("outdent")(l,r,a),p="";return c&&r.tasklists&&(p=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),t||d.search(/\n{2,}/)>-1?(d=o.subParser("githubCodeBlocks")(d,r,a),d=o.subParser("blockGamut")(d,r,a)):(d=(d=o.subParser("lists")(d,r,a)).replace(/\n$/,""),d=(d=o.subParser("hashHTMLBlocks")(d,r,a)).replace(/\n\n+/g,"\n\n"),d=s?o.subParser("paragraphs")(d,r,a):o.subParser("spanGamut")(d,r,a)),""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),a.gListLevel--,t&&(e=e.replace(/\s+$/,"")),e}function n(e,r){if("ol"===r){var a=e.match(/^ *(\d+)\./);if(a&&"1"!==a[1])return' start="'+a[1]+'"'}return""}function s(e,a,o){var s=r.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,i=r.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===a?s:i,c="";if(-1!==e.search(l))!function r(u){var d=u.search(l),p=n(e,a);-1!==d?(c+="\n\n<"+a+p+">\n"+t(u.slice(0,d),!!o)+"\n",l="ul"==(a="ul"===a?"ol":"ul")?s:i,r(u.slice(d))):c+="\n\n<"+a+p+">\n"+t(u,!!o)+"\n"}(e);else{var u=n(e,a);c="\n\n<"+a+u+">\n"+t(e,!!o)+"\n"}return c}return e=a.converter._dispatch("lists.before",e,r,a),e+="¨0",e=(e=a.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,r,a){return s(r,a.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,r,a,t){return s(a,t.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),a.converter._dispatch("lists.after",e,r,a)})),o.subParser("metadata",(function(e,r,a){if(!r.metadata)return e;function t(e){a.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,r,t){return a.metadata.parsed[r]=t,""}))}return e=(e=(e=(e=a.converter._dispatch("metadata.before",e,r,a)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,r,a){return t(a),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,r,n){return r&&(a.metadata.format=r),t(n),"¨M"}))).replace(/¨M/g,""),a.converter._dispatch("metadata.after",e,r,a)})),o.subParser("outdent",(function(e,r,a){return e=(e=(e=a.converter._dispatch("outdent.before",e,r,a)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),a.converter._dispatch("outdent.after",e,r,a)})),o.subParser("paragraphs",(function(e,r,a){for(var t=(e=(e=(e=a.converter._dispatch("paragraphs.before",e,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),n=[],s=t.length,i=0;i=0?n.push(l):l.search(/\S/)>=0&&(l=(l=o.subParser("spanGamut")(l,r,a)).replace(/^([ \t]*)/g,"

"),l+="

",n.push(l))}for(s=n.length,i=0;i]*>\s*]*>/.test(u)&&(d=!0)}n[i]=u}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),a.converter._dispatch("paragraphs.after",e,r,a)})),o.subParser("runExtension",(function(e,r,a,t){if(e.filter)r=e.filter(r,t.converter,a);else if(e.regex){var n=e.regex;n instanceof RegExp||(n=new RegExp(n,"g")),r=r.replace(n,e.replace)}return r})),o.subParser("spanGamut",(function(e,r,a){return e=a.converter._dispatch("spanGamut.before",e,r,a),e=o.subParser("codeSpans")(e,r,a),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,r,a),e=o.subParser("encodeBackslashEscapes")(e,r,a),e=o.subParser("images")(e,r,a),e=o.subParser("anchors")(e,r,a),e=o.subParser("autoLinks")(e,r,a),e=o.subParser("simplifiedAutoLinks")(e,r,a),e=o.subParser("emoji")(e,r,a),e=o.subParser("underline")(e,r,a),e=o.subParser("italicsAndBold")(e,r,a),e=o.subParser("strikethrough")(e,r,a),e=o.subParser("ellipsis")(e,r,a),e=o.subParser("hashHTMLSpans")(e,r,a),e=o.subParser("encodeAmpsAndAngles")(e,r,a),r.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),a.converter._dispatch("spanGamut.after",e,r,a)})),o.subParser("strikethrough",(function(e,r,a){return r.strikethrough&&(e=(e=a.converter._dispatch("strikethrough.before",e,r,a)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return function(e){return r.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,r,a)),""+e+""}(t)})),e=a.converter._dispatch("strikethrough.after",e,r,a)),e})),o.subParser("stripLinkDefinitions",(function(e,r,a){var t=function(t,n,s,i,l,c,u){return n=n.toLowerCase(),e.toLowerCase().split(n).length-1<2?t:(s.match(/^data:.+?\/.+?;base64,/)?a.gUrls[n]=s.replace(/\s/g,""):a.gUrls[n]=o.subParser("encodeAmpsAndAngles")(s,r,a),c?c+u:(u&&(a.gTitles[n]=u.replace(/"|'/g,""")),r.parseImgDimensions&&i&&l&&(a.gDimensions[n]={width:i,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,t)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,t)).replace(/¨0/,"")})),o.subParser("tables",(function(e,r,a){if(!r.tables)return e;function t(e,t){return""+o.subParser("spanGamut")(e,r,a)+"\n"}function n(e){var n,s=e.split("\n");for(n=0;n"+(l=o.subParser("spanGamut")(l,r,a))+"\n"));for(n=0;n\n\n\n",n=0;n\n";for(var o=0;o\n"}return a+"\n\n"}(_,m)}return e=(e=(e=(e=a.converter._dispatch("tables.before",e,r,a)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,n)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,n),a.converter._dispatch("tables.after",e,r,a)})),o.subParser("underline",(function(e,r,a){return r.underline?(e=a.converter._dispatch("underline.before",e,r,a),e=(e=r.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,r){return""+r+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,r){return""+r+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,r){return/\S$/.test(r)?""+r+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,r){return/\S$/.test(r)?""+r+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=a.converter._dispatch("underline.after",e,r,a)):e})),o.subParser("unescapeSpecialChars",(function(e,r,a){return e=(e=a.converter._dispatch("unescapeSpecialChars.before",e,r,a)).replace(/¨E(\d+)E/g,(function(e,r){var a=parseInt(r);return String.fromCharCode(a)})),a.converter._dispatch("unescapeSpecialChars.after",e,r,a)})),o.subParser("makeMarkdown.blockquote",(function(e,r){var a="";if(e.hasChildNodes())for(var t=e.childNodes,n=t.length,s=0;s "+(a=a.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(e,r){var a=e.getAttribute("language"),t=e.getAttribute("precodenum");return"```"+a+"\n"+r.preList[t]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,r){var a="";if(e.hasChildNodes()){a+="*";for(var t=e.childNodes,n=t.length,s=0;s",e.hasAttribute("width")&&e.hasAttribute("height")&&(r+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"),r})),o.subParser("makeMarkdown.links",(function(e,r){var a="";if(e.hasChildNodes()&&e.hasAttribute("href")){var t=e.childNodes,n=t.length;a="[";for(var s=0;s",e.hasAttribute("title")&&(a+=' "'+e.getAttribute("title")+'"'),a+=")"}return a})),o.subParser("makeMarkdown.list",(function(e,r,a){var t="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,s=n.length,i=e.getAttribute("start")||1,l=0;l"+r.preList[a]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,r){var a="";if(e.hasChildNodes()){a+="~~";for(var t=e.childNodes,n=t.length,s=0;str>th"),l=e.querySelectorAll("tbody>tr");for(a=0;a_&&(_=g)}for(a=0;a/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),void 0===(t=function(){return o}.call(r,a,r,e))||(e.exports=t)}).call(this)}}]); \ No newline at end of file diff --git a/5518.2d5dcfbcdcb6e2ef9bae.js b/5518.2d5dcfbcdcb6e2ef9bae.js new file mode 100644 index 000000000..52a98a68e --- /dev/null +++ b/5518.2d5dcfbcdcb6e2ef9bae.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[5518],{95518:(e,r,a)=>{a.r(r),a.d(r,{ExampleTuiEditorMarkdownModule:()=>C});var t=a(12057),n=a(24751),o=a(34016),s=a(70997),i=a(44427),l=a(221),c=a(54789),u=a(82847),d=a(23917),p=a(12628),h=a(57080),_=a(64548),g=a(74788),m=a(34978),f=a(97582),b=a(44358),w=a(4841),k=a.n(w),v=a(54349),y=a(96152),P=a(10215);function x(e,r){if(1&e&&(g.TgZ(0,"tui-editor",3),g._uU(1," Placeholder\n"),g.qZA()),2&e){const e=g.oxw();g.Q6J("tools",e.builtInTools)("formControl",e.control)}}class j{constructor(){this.builtInTools=[h._2.Undo,h._2.Img,h._2.Link,h._2.Anchor],this.control=new n.NI("")}toMarkdown(e){return(new v.Converter).makeMarkdown(e)}ngOnInit(){return(0,f.mG)(this,void 0,void 0,(function*(){const e=yield(0,i.JQ)(a.e(1015).then(a.t.bind(a,21015,17)));this.control.patchValue(e)}))}}j.ɵfac=function(e){return new(e||j)},j.ɵcmp=g.Xpm({type:j,selectors:[["tui-editor-markdown-example-1"]],features:[g._Bn([{provide:h.F1,useValue:e=>(new(k())).render(e)}])],decls:8,vars:3,consts:[["class","editor",3,"tools","formControl",4,"ngIf"],[1,"socket",3,"content"],[1,"markdown"],[1,"editor",3,"tools","formControl"]],template:function(e,r){1&e&&(g.YNc(0,x,2,2,"tui-editor",0),g.TgZ(1,"h4"),g._uU(2,"HTML:"),g.qZA(),g._UZ(3,"tui-editor-socket",1),g.TgZ(4,"h4"),g._uU(5,"Markdown:"),g.qZA(),g.TgZ(6,"pre",2),g._uU(7),g.qZA()),2&e&&(g.Q6J("ngIf",r.control),g.xp6(3),g.Q6J("content",(null==r.control?null:r.control.value)||""),g.xp6(4),g.Oqu(r.toMarkdown(null==r.control?null:r.control.value)))},directives:[t.O5,y.D,P.a,n.JJ,n.oH],styles:[".editor[_ngcontent-%COMP%]{min-height:30rem}.markdown[_ngcontent-%COMP%]{font-family:monospace;padding:.375rem .5rem;background:var(--tui-base-02);color:var(--tui-text-02);box-shadow:inset 0 -2px var(--tui-secondary);font-size:.875rem;white-space:break-spaces}"],changeDetection:0}),(0,f.gn)([b.UM],j.prototype,"toMarkdown",null);let z=(()=>{class e{constructor(){this.example1={TypeScript:a.e(2580).then(a.t.bind(a,62580,17)),HTML:a.e(4745).then(a.t.bind(a,34745,17)),LESS:a.e(6227).then(a.t.bind(a,26227,17)),"example.md":a.e(1015).then(a.t.bind(a,21015,17))}}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=g.Xpm({type:e,selectors:[["editor-markdown"]],features:[g._Bn([{provide:h.Wf,useValue:h.PD},{provide:_.Es,useValue:e=>[e]}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["tuiLink","","href","https://www.tiptap.dev/"],["tuiLink","","routerLink","/icons/bundled","fragment","sanitizer"],["id","markdown","heading","Markdown","description","You can use any parsing markdown library",3,"content"]],template:function(e,r){1&e&&(g.TgZ(0,"tui-doc-page",0),g.TgZ(1,"p"),g._uU(2," Rich Text Editor based on "),g.TgZ(3,"a",1),g._uU(4," TipTap Editor "),g.qZA(),g._uU(5," for using with Angular forms. For safety reasons use a "),g.TgZ(6,"a",2),g._uU(7," sanitizer "),g.qZA(),g._uU(8," with this component. "),g.qZA(),g.TgZ(9,"tui-doc-example",3),g._UZ(10,"tui-editor-markdown-example-1"),g.qZA(),g.qZA()),2&e&&(g.xp6(9),g.Q6J("content",r.example1))},directives:[m.qo,u.V,o.yS,m.f2,j],encapsulation:2,changeDetection:0}),e})(),C=(()=>{class e{}return e.ɵfac=function(r){return new(r||e)},e.ɵmod=g.oAB({type:e}),e.ɵinj=g.cJS({imports:[[t.ez,l.A,c.EI,u.j,d.jh,p.fN,s.fV,n.u5,n.UX,h.T_,h.GK,o.Bz.forChild((0,i.Ve)(z))]]}),e})()},54349:function(e,r,a){var t;(function(){function n(e){var r={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(r));var a={};for(var t in r)r.hasOwnProperty(t)&&(a[t]=r[t].defaultValue);return a}var o={},s={},i={},l=n(!0),c="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:n(!0),allOn:function(){var e=n(!0),r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=!0);return r}()};function d(e,r){var a=r?"Error in "+r+" extension->":"Error in unnamed extension",t={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var n=0;n").replace(/&/g,"&")};var h=function(e,r,a,t){var n,o,s,i,l,c=t||"",u=c.indexOf("g")>-1,d=new RegExp(r+"|"+a,"g"+c.replace(/g/g,"")),p=new RegExp(r,c.replace(/g/g,"")),h=[];do{for(n=0;s=d.exec(e);)if(p.test(s[0]))n++||(i=(o=d.lastIndex)-s[0].length);else if(n&&! --n){l=s.index+s[0].length;var _={left:{start:i,end:o},match:{start:o,end:s.index},right:{start:s.index,end:l},wholeMatch:{start:i,end:l}};if(h.push(_),!u)return h}}while(n&&(d.lastIndex=o));return h};o.helper.matchRecursiveRegExp=function(e,r,a,t){for(var n=h(e,r,a,t),o=[],s=0;s0){var u=[];0!==i[0].wholeMatch.start&&u.push(e.slice(0,i[0].wholeMatch.start));for(var d=0;d=0?t+(a||0):t},o.helper.splitAtIndex=function(e,r){if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,r),e.substring(r)]},o.helper.encodeEmailAddress=function(e){var r=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=r[Math.floor(2*Math.random())](e);else{var a=Math.random();e=a>.9?r[2](e):a>.45?r[1](e):r[0](e)}return e}))},o.helper.padEnd=function(e,r,a){return r>>=0,a=String(a||" "),e.length>r?String(e):((r-=e.length)>a.length&&(a+=a.repeat(r/a.length)),String(e)+a.slice(0,r))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){var r={},a=[],t=[],n={},s=c,p={parsed:{},raw:"",format:""};function h(e,r){if(r=r||null,o.helper.isString(e)){if(r=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,r){"function"==typeof e&&(e=e(new o.Converter)),o.helper.isArray(e)||(e=[e]);var n=d(e,r);if(!n.valid)throw Error(n.error);for(var s=0;s[ \t]+¨NBSP;<"),!r){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");r=window.document}var a=r.createElement("div");a.innerHTML=e;var t={preList:function(e){for(var r=e.querySelectorAll("pre"),a=[],t=0;t'}else a.push(r[t].innerHTML),r[t].innerHTML="",r[t].setAttribute("prenum",t.toString());return a}(a)};!function e(r){for(var a=0;a? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s){if(n||(n=t.toLowerCase().replace(/ ?\n/g," ")),s="#"+n,o.helper.isUndefined(a.gUrls[n]))return e;s=a.gUrls[n],o.helper.isUndefined(a.gTitles[n])||(c=a.gTitles[n])}var u='"+t+""};return e=(e=(e=(e=(e=a.converter._dispatch("anchors.before",e,r,a)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[([^\[\]]+)]()()()()()/g,t),r.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,a,t,n,s){if("\\"===t)return a+n;if(!o.helper.isString(r.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var i=r.ghMentionsLink.replace(/\{u}/g,s),l="";return r.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),a+'"+n+""}))),a.converter._dispatch("anchors.after",e,r,a)}));var _=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,f=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,w=function(e){return function(r,a,t,n,s,i,l){var c=t=t.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),u="",d="",p=a||"",h=l||"";return/^www\./i.test(t)&&(t=t.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&i&&(u=i),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),p+'"+c+""+u+h}},k=function(e,r){return function(a,t,n){var s="mailto:";return t=t||"",n=o.subParser("unescapeSpecialChars")(n,e,r),e.encodeEmails?(s=o.helper.encodeEmailAddress(s+n),n=o.helper.encodeEmailAddress(n)):s+=n,t+''+n+""}};o.subParser("autoLinks",(function(e,r,a){return e=(e=(e=a.converter._dispatch("autoLinks.before",e,r,a)).replace(m,w(r))).replace(b,k(r,a)),a.converter._dispatch("autoLinks.after",e,r,a)})),o.subParser("simplifiedAutoLinks",(function(e,r,a){return r.simplifiedAutoLink?(e=a.converter._dispatch("simplifiedAutoLinks.before",e,r,a),e=(e=r.excludeTrailingPunctuationFromURLs?e.replace(g,w(r)):e.replace(_,w(r))).replace(f,k(r,a)),e=a.converter._dispatch("simplifiedAutoLinks.after",e,r,a)):e})),o.subParser("blockGamut",(function(e,r,a){return e=a.converter._dispatch("blockGamut.before",e,r,a),e=o.subParser("blockQuotes")(e,r,a),e=o.subParser("headers")(e,r,a),e=o.subParser("horizontalRule")(e,r,a),e=o.subParser("lists")(e,r,a),e=o.subParser("codeBlocks")(e,r,a),e=o.subParser("tables")(e,r,a),e=o.subParser("hashHTMLBlocks")(e,r,a),e=o.subParser("paragraphs")(e,r,a),a.converter._dispatch("blockGamut.after",e,r,a)})),o.subParser("blockQuotes",(function(e,r,a){e=a.converter._dispatch("blockQuotes.before",e,r,a),e+="\n\n";var t=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return r.splitAdjacentBlockquotes&&(t=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(t,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,r,a),e=(e=(e=o.subParser("blockGamut")(e,r,a)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,r){return r.replace(/^  /gm,"¨0").replace(/¨0/g,"")})),o.subParser("hashBlock")("
\n"+e+"\n
",r,a)})),a.converter._dispatch("blockQuotes.after",e,r,a)})),o.subParser("codeBlocks",(function(e,r,a){return e=a.converter._dispatch("codeBlocks.before",e,r,a),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,t,n){var s=t,i=n,l="\n";return s=o.subParser("outdent")(s,r,a),s=o.subParser("encodeCode")(s,r,a),s=(s=(s=o.subParser("detab")(s,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.omitExtraWLInCodeBlocks&&(l=""),s="
"+s+l+"
",o.subParser("hashBlock")(s,r,a)+i}))).replace(/¨0/,""),a.converter._dispatch("codeBlocks.after",e,r,a)})),o.subParser("codeSpans",(function(e,r,a){return void 0===(e=a.converter._dispatch("codeSpans.before",e,r,a))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,t,n,s){var i=s;return i=(i=i.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),i=t+""+(i=o.subParser("encodeCode")(i,r,a))+"",o.subParser("hashHTMLSpans")(i,r,a)})),a.converter._dispatch("codeSpans.after",e,r,a)})),o.subParser("completeHTMLDocument",(function(e,r,a){if(!r.completeHTMLDocument)return e;e=a.converter._dispatch("completeHTMLDocument.before",e,r,a);var t="html",n="\n",o="",s='\n',i="",l="";for(var c in void 0!==a.metadata.parsed.doctype&&(n="\n","html"!==(t=a.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==t||(s='')),a.metadata.parsed)if(a.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":o=""+a.metadata.parsed.title+"\n";break;case"charset":s="html"===t||"html5"===t?'\n':'\n';break;case"language":case"lang":i=' lang="'+a.metadata.parsed[c]+'"',l+='\n';break;default:l+='\n'}return e=n+"\n\n"+o+s+l+"\n\n"+e.trim()+"\n\n",a.converter._dispatch("completeHTMLDocument.after",e,r,a)})),o.subParser("detab",(function(e,r,a){return e=(e=(e=(e=(e=(e=a.converter._dispatch("detab.before",e,r,a)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,r){for(var a=r,t=4-a.length%4,n=0;n/g,">"),a.converter._dispatch("encodeAmpsAndAngles.after",e,r,a)})),o.subParser("encodeBackslashEscapes",(function(e,r,a){return e=(e=(e=a.converter._dispatch("encodeBackslashEscapes.before",e,r,a)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,o.helper.escapeCharactersCallback),a.converter._dispatch("encodeBackslashEscapes.after",e,r,a)})),o.subParser("encodeCode",(function(e,r,a){return e=(e=a.converter._dispatch("encodeCode.before",e,r,a)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),a.converter._dispatch("encodeCode.after",e,r,a)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,r,a){return e=(e=(e=a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,r,a)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,r,a)})),o.subParser("githubCodeBlocks",(function(e,r,a){return r.ghCodeBlocks?(e=a.converter._dispatch("githubCodeBlocks.before",e,r,a),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,t,n,s){var i=r.omitExtraWLInCodeBlocks?"":"\n";return s=o.subParser("encodeCode")(s,r,a),s="
"+(s=(s=(s=o.subParser("detab")(s,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+i+"
",s=o.subParser("hashBlock")(s,r,a),"\n\n¨G"+(a.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/¨0/,""),a.converter._dispatch("githubCodeBlocks.after",e,r,a)):e})),o.subParser("hashBlock",(function(e,r,a){return e=(e=a.converter._dispatch("hashBlock.before",e,r,a)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n",a.converter._dispatch("hashBlock.after",e,r,a)})),o.subParser("hashCodeTags",(function(e,r,a){return e=a.converter._dispatch("hashCodeTags.before",e,r,a),e=o.helper.replaceRecursiveRegExp(e,(function(e,t,n,s){var i=n+o.subParser("encodeCode")(t,r,a)+s;return"¨C"+(a.gHtmlSpans.push(i)-1)+"C"}),"]*>","","gim"),a.converter._dispatch("hashCodeTags.after",e,r,a)})),o.subParser("hashElement",(function(e,r,a){return function(e,r){var t=r;return t=(t=(t=t.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(a.gHtmlBlocks.push(t)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,r,a){e=a.converter._dispatch("hashHTMLBlocks.before",e,r,a);var t=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],n=function(e,r,t,n){var o=e;return-1!==t.search(/\bmarkdown\b/)&&(o=t+a.converter.makeHtml(r)+n),"\n\n¨K"+(a.gHtmlBlocks.push(o)-1)+"K\n\n"};r.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,r){return"<"+r+">"})));for(var s=0;s]*>)","im"),c="<"+t[s]+"\\b[^>]*>",u="";-1!==(i=o.helper.regexIndexOf(e,l));){var d=o.helper.splitAtIndex(e,i),p=o.helper.replaceRecursiveRegExp(d[1],n,c,u,"im");if(p===d[1])break;e=d[0].concat(p)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,r,a)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,r,a)),a.converter._dispatch("hashHTMLBlocks.after",e,r,a)})),o.subParser("hashHTMLSpans",(function(e,r,a){function t(e){return"¨C"+(a.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=a.converter._dispatch("hashHTMLSpans.before",e,r,a)).replace(/<[^>]+?\/>/gi,(function(e){return t(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return t(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return t(e)}))).replace(/<[^>]+?>/gi,(function(e){return t(e)})),a.converter._dispatch("hashHTMLSpans.after",e,r,a)})),o.subParser("unhashHTMLSpans",(function(e,r,a){e=a.converter._dispatch("unhashHTMLSpans.before",e,r,a);for(var t=0;t]*>\\s*]*>","^ {0,3}\\s*
","gim"),a.converter._dispatch("hashPreCodeTags.after",e,r,a)})),o.subParser("headers",(function(e,r,a){e=a.converter._dispatch("headers.before",e,r,a);var t=isNaN(parseInt(r.headerLevelStart))?1:parseInt(r.headerLevelStart),n=r.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,s=r.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(n,(function(e,n){var s=o.subParser("spanGamut")(n,r,a),i=r.noHeaderId?"":' id="'+l(n)+'"',c=""+s+"";return o.subParser("hashBlock")(c,r,a)}))).replace(s,(function(e,n){var s=o.subParser("spanGamut")(n,r,a),i=r.noHeaderId?"":' id="'+l(n)+'"',c=t+1,u=""+s+"";return o.subParser("hashBlock")(u,r,a)}));var i=r.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var t,n;if(r.customizedHeaderId){var s=e.match(/\{([^{]+?)}\s*$/);s&&s[1]&&(e=s[1])}return t=e,n=o.helper.isString(r.prefixHeaderId)?r.prefixHeaderId:!0===r.prefixHeaderId?"section-":"",r.rawPrefixHeaderId||(t=n+t),t=r.ghCompatibleHeaderId?t.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():r.rawHeaderId?t.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():t.replace(/[^\w]/g,"").toLowerCase(),r.rawPrefixHeaderId&&(t=n+t),a.hashLinkCounts[t]?t=t+"-"+a.hashLinkCounts[t]++:a.hashLinkCounts[t]=1,t}return e=e.replace(i,(function(e,n,s){var i=s;r.customizedHeaderId&&(i=s.replace(/\s?\{([^{]+?)}\s*$/,""));var c=o.subParser("spanGamut")(i,r,a),u=r.noHeaderId?"":' id="'+l(s)+'"',d=t-1+n.length,p=""+c+"";return o.subParser("hashBlock")(p,r,a)})),a.converter._dispatch("headers.after",e,r,a)})),o.subParser("horizontalRule",(function(e,r,a){e=a.converter._dispatch("horizontalRule.before",e,r,a);var t=o.subParser("hashBlock")("
",r,a);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,t)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,t)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,t),a.converter._dispatch("horizontalRule.after",e,r,a)})),o.subParser("images",(function(e,r,a){function t(e,r,t,n,s,i,l,c){var u=a.gUrls,d=a.gTitles,p=a.gDimensions;if(t=t.toLowerCase(),c||(c=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)n="";else if(""===n||null===n){if(""!==t&&null!==t||(t=r.toLowerCase().replace(/ ?\n/g," ")),n="#"+t,o.helper.isUndefined(u[t]))return e;n=u[t],o.helper.isUndefined(d[t])||(c=d[t]),o.helper.isUndefined(p[t])||(s=p[t].width,i=p[t].height)}r=r.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var h=''+r+'"}return e=(e=(e=(e=(e=(e=a.converter._dispatch("images.before",e,r,a)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,t)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,r,a,n,o,s,i,l){return t(e,r,a,n=n.replace(/\s/g,""),o,s,0,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,t)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,t)).replace(/!\[([^\[\]]+)]()()()()()/g,t),a.converter._dispatch("images.after",e,r,a)})),o.subParser("italicsAndBold",(function(e,r,a){function t(e,r,a){return r+e+a}return e=a.converter._dispatch("italicsAndBold.before",e,r,a),e=r.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,r){return t(r,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,r){return t(r,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,r){return t(r,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e})),e=r.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,r,a){return t(a,r+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,r){return/\S$/.test(r)?t(r,"",""):e})),a.converter._dispatch("italicsAndBold.after",e,r,a)})),o.subParser("lists",(function(e,r,a){function t(e,t){a.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,s=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return r.disableForced4SpacesIndentedSublists&&(n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(n,(function(e,t,n,i,l,c,u){u=u&&""!==u.trim();var d=o.subParser("outdent")(l,r,a),p="";return c&&r.tasklists&&(p=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),t||d.search(/\n{2,}/)>-1?(d=o.subParser("githubCodeBlocks")(d,r,a),d=o.subParser("blockGamut")(d,r,a)):(d=(d=o.subParser("lists")(d,r,a)).replace(/\n$/,""),d=(d=o.subParser("hashHTMLBlocks")(d,r,a)).replace(/\n\n+/g,"\n\n"),d=s?o.subParser("paragraphs")(d,r,a):o.subParser("spanGamut")(d,r,a)),""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),a.gListLevel--,t&&(e=e.replace(/\s+$/,"")),e}function n(e,r){if("ol"===r){var a=e.match(/^ *(\d+)\./);if(a&&"1"!==a[1])return' start="'+a[1]+'"'}return""}function s(e,a,o){var s=r.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,i=r.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===a?s:i,c="";if(-1!==e.search(l))!function r(u){var d=u.search(l),p=n(e,a);-1!==d?(c+="\n\n<"+a+p+">\n"+t(u.slice(0,d),!!o)+"\n",l="ul"==(a="ul"===a?"ol":"ul")?s:i,r(u.slice(d))):c+="\n\n<"+a+p+">\n"+t(u,!!o)+"\n"}(e);else{var u=n(e,a);c="\n\n<"+a+u+">\n"+t(e,!!o)+"\n"}return c}return e=a.converter._dispatch("lists.before",e,r,a),e+="¨0",e=(e=a.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,r,a){return s(r,a.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,r,a,t){return s(a,t.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),a.converter._dispatch("lists.after",e,r,a)})),o.subParser("metadata",(function(e,r,a){if(!r.metadata)return e;function t(e){a.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,r,t){return a.metadata.parsed[r]=t,""}))}return e=(e=(e=(e=a.converter._dispatch("metadata.before",e,r,a)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,r,a){return t(a),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,r,n){return r&&(a.metadata.format=r),t(n),"¨M"}))).replace(/¨M/g,""),a.converter._dispatch("metadata.after",e,r,a)})),o.subParser("outdent",(function(e,r,a){return e=(e=(e=a.converter._dispatch("outdent.before",e,r,a)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),a.converter._dispatch("outdent.after",e,r,a)})),o.subParser("paragraphs",(function(e,r,a){for(var t=(e=(e=(e=a.converter._dispatch("paragraphs.before",e,r,a)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),n=[],s=t.length,i=0;i=0?n.push(l):l.search(/\S/)>=0&&(l=(l=o.subParser("spanGamut")(l,r,a)).replace(/^([ \t]*)/g,"

"),l+="

",n.push(l))}for(s=n.length,i=0;i]*>\s*]*>/.test(u)&&(d=!0)}n[i]=u}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),a.converter._dispatch("paragraphs.after",e,r,a)})),o.subParser("runExtension",(function(e,r,a,t){if(e.filter)r=e.filter(r,t.converter,a);else if(e.regex){var n=e.regex;n instanceof RegExp||(n=new RegExp(n,"g")),r=r.replace(n,e.replace)}return r})),o.subParser("spanGamut",(function(e,r,a){return e=a.converter._dispatch("spanGamut.before",e,r,a),e=o.subParser("codeSpans")(e,r,a),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,r,a),e=o.subParser("encodeBackslashEscapes")(e,r,a),e=o.subParser("images")(e,r,a),e=o.subParser("anchors")(e,r,a),e=o.subParser("autoLinks")(e,r,a),e=o.subParser("simplifiedAutoLinks")(e,r,a),e=o.subParser("emoji")(e,r,a),e=o.subParser("underline")(e,r,a),e=o.subParser("italicsAndBold")(e,r,a),e=o.subParser("strikethrough")(e,r,a),e=o.subParser("ellipsis")(e,r,a),e=o.subParser("hashHTMLSpans")(e,r,a),e=o.subParser("encodeAmpsAndAngles")(e,r,a),r.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),a.converter._dispatch("spanGamut.after",e,r,a)})),o.subParser("strikethrough",(function(e,r,a){return r.strikethrough&&(e=(e=a.converter._dispatch("strikethrough.before",e,r,a)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return function(e){return r.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,r,a)),""+e+""}(t)})),e=a.converter._dispatch("strikethrough.after",e,r,a)),e})),o.subParser("stripLinkDefinitions",(function(e,r,a){var t=function(t,n,s,i,l,c,u){return n=n.toLowerCase(),e.toLowerCase().split(n).length-1<2?t:(s.match(/^data:.+?\/.+?;base64,/)?a.gUrls[n]=s.replace(/\s/g,""):a.gUrls[n]=o.subParser("encodeAmpsAndAngles")(s,r,a),c?c+u:(u&&(a.gTitles[n]=u.replace(/"|'/g,""")),r.parseImgDimensions&&i&&l&&(a.gDimensions[n]={width:i,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,t)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,t)).replace(/¨0/,"")})),o.subParser("tables",(function(e,r,a){if(!r.tables)return e;function t(e,t){return""+o.subParser("spanGamut")(e,r,a)+"\n"}function n(e){var n,s=e.split("\n");for(n=0;n"+(l=o.subParser("spanGamut")(l,r,a))+"\n"));for(n=0;n\n\n\n",n=0;n\n";for(var o=0;o\n"}return a+"\n\n"}(_,m)}return e=(e=(e=(e=a.converter._dispatch("tables.before",e,r,a)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,n)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,n),a.converter._dispatch("tables.after",e,r,a)})),o.subParser("underline",(function(e,r,a){return r.underline?(e=a.converter._dispatch("underline.before",e,r,a),e=(e=r.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,r){return""+r+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,r){return""+r+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,r){return/\S$/.test(r)?""+r+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,r){return/\S$/.test(r)?""+r+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=a.converter._dispatch("underline.after",e,r,a)):e})),o.subParser("unescapeSpecialChars",(function(e,r,a){return e=(e=a.converter._dispatch("unescapeSpecialChars.before",e,r,a)).replace(/¨E(\d+)E/g,(function(e,r){var a=parseInt(r);return String.fromCharCode(a)})),a.converter._dispatch("unescapeSpecialChars.after",e,r,a)})),o.subParser("makeMarkdown.blockquote",(function(e,r){var a="";if(e.hasChildNodes())for(var t=e.childNodes,n=t.length,s=0;s "+(a=a.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(e,r){var a=e.getAttribute("language"),t=e.getAttribute("precodenum");return"```"+a+"\n"+r.preList[t]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,r){var a="";if(e.hasChildNodes()){a+="*";for(var t=e.childNodes,n=t.length,s=0;s",e.hasAttribute("width")&&e.hasAttribute("height")&&(r+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"),r})),o.subParser("makeMarkdown.links",(function(e,r){var a="";if(e.hasChildNodes()&&e.hasAttribute("href")){var t=e.childNodes,n=t.length;a="[";for(var s=0;s",e.hasAttribute("title")&&(a+=' "'+e.getAttribute("title")+'"'),a+=")"}return a})),o.subParser("makeMarkdown.list",(function(e,r,a){var t="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,s=n.length,i=e.getAttribute("start")||1,l=0;l"+r.preList[a]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,r){var a="";if(e.hasChildNodes()){a+="~~";for(var t=e.childNodes,n=t.length,s=0;str>th"),l=e.querySelectorAll("tbody>tr");for(a=0;a_&&(_=g)}for(a=0;a/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),void 0===(t=function(){return o}.call(r,a,r,e))||(e.exports=t)}).call(this)}}]); \ No newline at end of file diff --git a/5529.939ed4a41054aabfa176.js b/5529.2358f8d874913e2d6dfb.js similarity index 100% rename from 5529.939ed4a41054aabfa176.js rename to 5529.2358f8d874913e2d6dfb.js diff --git a/5543.4d3e7c50ce1e7973959f.js b/5543.5b61453381f764c5d43b.js similarity index 100% rename from 5543.4d3e7c50ce1e7973959f.js rename to 5543.5b61453381f764c5d43b.js diff --git a/5597.d3008d217e82769426fc.js b/5597.2df06a6715a782941bdd.js similarity index 100% rename from 5597.d3008d217e82769426fc.js rename to 5597.2df06a6715a782941bdd.js diff --git a/5699.89031738679fc301109d.js b/5699.f55a4ed4925d0a7eed7e.js similarity index 100% rename from 5699.89031738679fc301109d.js rename to 5699.f55a4ed4925d0a7eed7e.js diff --git a/5745.10c361592698ed0bc5c8.js b/5745.e469f5b784796764f21f.js similarity index 100% rename from 5745.10c361592698ed0bc5c8.js rename to 5745.e469f5b784796764f21f.js diff --git a/5821.0d29db4e9f30db6b52b0.js b/5821.dc1bc55ffcbffcd355c9.js similarity index 100% rename from 5821.0d29db4e9f30db6b52b0.js rename to 5821.dc1bc55ffcbffcd355c9.js diff --git a/5853.0bce4d73ddba6ce8bd79.js b/5853.28b948cc7f377aa51fcd.js similarity index 100% rename from 5853.0bce4d73ddba6ce8bd79.js rename to 5853.28b948cc7f377aa51fcd.js diff --git a/5867.5a349951005716cb7780.js b/5867.bbab85821eabfc286384.js similarity index 100% rename from 5867.5a349951005716cb7780.js rename to 5867.bbab85821eabfc286384.js diff --git a/5892.88cd5f273bb440d70971.js b/5892.501fb8c2f6904b0cdbf7.js similarity index 100% rename from 5892.88cd5f273bb440d70971.js rename to 5892.501fb8c2f6904b0cdbf7.js diff --git a/6118.01f6b9a3793a580a808a.js b/6118.2461183da61d5ec79214.js similarity index 100% rename from 6118.01f6b9a3793a580a808a.js rename to 6118.2461183da61d5ec79214.js diff --git a/6227.67eee263fa4caa236fad.js b/6227.c9b868a46869e79e1d37.js similarity index 100% rename from 6227.67eee263fa4caa236fad.js rename to 6227.c9b868a46869e79e1d37.js diff --git a/6445.2825d355e6452e46a155.js b/6445.d53d08e45bf89cd58e51.js similarity index 100% rename from 6445.2825d355e6452e46a155.js rename to 6445.d53d08e45bf89cd58e51.js diff --git a/650.f3fbc0d6cbcf5f16454c.js b/650.11c85c3ce41a69df0da3.js similarity index 100% rename from 650.f3fbc0d6cbcf5f16454c.js rename to 650.11c85c3ce41a69df0da3.js diff --git a/6553.6a1ef0dc49ffcc96a17d.js b/6553.98ad4cc48cae283c10b5.js similarity index 100% rename from 6553.6a1ef0dc49ffcc96a17d.js rename to 6553.98ad4cc48cae283c10b5.js diff --git a/6655.767791cc540fa21d392f.js b/6655.5434c10702d8ecc44e20.js similarity index 100% rename from 6655.767791cc540fa21d392f.js rename to 6655.5434c10702d8ecc44e20.js diff --git a/6731.6e5236da2b959e3da9df.js b/6731.2ebb04633d28b7bc272f.js similarity index 100% rename from 6731.6e5236da2b959e3da9df.js rename to 6731.2ebb04633d28b7bc272f.js diff --git a/6784.c255bc870aaf346c3283.js b/6784.5099ac304611cf66d3d7.js similarity index 100% rename from 6784.c255bc870aaf346c3283.js rename to 6784.5099ac304611cf66d3d7.js diff --git a/6879.8a7d8ed02ecfa18aca84.js b/6879.d8e338f3c7e07fdfea1d.js similarity index 100% rename from 6879.8a7d8ed02ecfa18aca84.js rename to 6879.d8e338f3c7e07fdfea1d.js diff --git a/6911.289f9d9540247774f259.js b/6911.289f9d9540247774f259.js deleted file mode 100644 index a48d6152c..000000000 --- a/6911.289f9d9540247774f259.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[6911],{49294:(t,e,n)=>{n.d(e,{$:()=>u});var o=n(97582),i=n(74788),r=n(91211),s=n(2330),a=n(85648),l=n(44358),c=n(79012),d=n(74331);class u{constructor(t){this.sanitizer=t,this.colorChange=new i.vpe,this.point=[0,1],this.hue=0,this.opacity=1}set color(t){if(this.currentColor.every(((e,n)=>e===t[n]))&&t[3]===this.opacity)return;const[e,n,o]=(0,s.bD)(t[0],t[1],t[2]);this.opacity=t[3],this.hue=e/360,this.point=[n,1-o/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${(0,s.qZ)(360*this.hue,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(t){this.point=t,this.updateColor()}onHueChange(t){this.hue=t,this.updateColor()}onOpacityChange(t){this.opacity=(0,a.FG)(t,2),this.updateColor()}getCurrentColor(t,e){return(0,s.qZ)(360*t,e[0],255*(1-e[1]))}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}}u.ɵfac=function(t){return new(t||u)(i.Y36(r.H7))},u.ɵcmp=i.Xpm({type:u,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"value","valueChange"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-flat-picker",0),i.NdJ("valueChange",(function(t){return e.onPointChange(t)})),i.qZA(),i.TgZ(1,"div",1),i.TgZ(2,"tui-linear-picker",2),i.NdJ("valueChange",(function(t){return e.onHueChange(t)})),i.qZA(),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"tui-linear-picker",4),i.NdJ("valueChange",(function(t){return e.onOpacityChange(t)})),i.qZA(),i.qZA()),2&t&&(i.Udp("background-color",e.base),i.Q6J("value",e.point),i.xp6(2),i.Q6J("value",e.hue),i.xp6(1),i.Udp("background",e.gradient),i.xp6(1),i.Q6J("value",e.opacity))},directives:[c.J,d.P],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(rgba(0,0,0,0),#000000),linear-gradient(to right,#ffffff,rgba(255,255,255,0));margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:#ff0000}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0}),(0,o.gn)([l.UM],u.prototype,"getCurrentColor",null)},44691:(t,e,n)=>{n.d(e,{s:()=>q});var o=n(97582),i=n(74788),r=n(91211),s=n(11927),a=n(2330),l=n(44358),c=n(71831),d=n(88320),u=n(23917),h=n(12628),p=n(54789),f=n(75111),m=n(90022),g=n(95974),b=n(12057),v=n(49294),y=n(7176),w=n(74337),x=n(28858),k=n(75093),C=n(79588),M=n(98952),S=n(52697),A=n(24751),O=n(45642);function T(t,e){if(1&t&&(i.TgZ(0,"button",7),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function N(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",5),i.YNc(1,T,2,2,"button",6),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function E(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",8),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onHexChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("maskito",t.hexMask)("tuiTextfieldLabelOutside",!0)("value",t.hex)}}function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(e,n.color[1],n.color[2],n.color[3])})),i.qZA(),i.TgZ(1,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(n.color[0],e,n.color[2],n.color[3])})),i.qZA(),i.TgZ(2,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(n.color[0],n.color[1],e,n.color[3])})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[0]),i.xp6(1),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[1]),i.xp6(1),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[2])}}let D=(()=>{class t{constructor(){this.color=[0,0,0,1],this.colorChange=new i.vpe,this.hexMask={mask:new RegExp("^[A-F\\d]{0,6}$","gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return(0,a.WS)(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(100*this.color[3])}onHexChange(t){if(6!==t.length)return;const e=(0,a.RO)(t);this.updateColor([e[0],e[1],e[2],this.color[3]])}onRgbChange(...t){this.updateColor(t)}updateColor(t){this.color=t,this.colorChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:8,consts:[["tuiTextfieldSize","m","tuiDropdownAlign","left","tuiDropdownLimitWidth","min",1,"t-select","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],["size","s",4,"tuiDataList"],["tuiValueAccessor","","tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["rgb",""],["tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","hideButtons","max","ngModel","ngModelChange"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiValueAccessor","","tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange"],["tuiTextfieldSize","m",3,"tuiTextfieldLabelOutside","hideButtons","max","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-select",0),i.NdJ("ngModelChange",(function(t){return e.mode=t})),i.YNc(1,N,2,1,"tui-data-list",1),i.qZA(),i.YNc(2,E,1,3,"tui-primitive-textfield",2),i.YNc(3,I,3,12,"ng-template",null,3,i.W1O),i.TgZ(5,"tui-input-count",4),i.NdJ("ngModelChange",(function(t){return e.onRgbChange(e.color[0],e.color[1],e.color[2],t/100)})),i.qZA()),2&t){const t=i.MAs(4);i.Q6J("tuiTextfieldLabelOutside",!0)("ngModel",e.mode),i.xp6(2),i.Q6J("ngIf",e.isHex)("ngIfElse",t),i.xp6(3),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",100)("ngModel",e.opacity)}},directives:[w.uJ,w.OI,C.sz,M.Ek,C.xT,A.JJ,A.On,f.gX,b.O5,x.EA,x.aQ,C.Tq,f.qi,b.sg,f.vK,S.yc,S.B1,k.n,O.ro],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:4.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}"],changeDetection:0}),t})();var P=n(59113);function H(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){i.oxw();const t=i.MAs(1);i.ekj("t-arrow_rotated",t.open)}}function L(t,e){1&t&&i._UZ(0,"tui-svg",14)}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",12),i.NdJ("keydown.enter.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.space.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("click",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)})),i._uU(1),i.YNc(2,L,1,0,"tui-svg",13),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.uIk("aria-checked",n.isModeActive(t)),i.xp6(1),i.hij(" ",t," "),i.xp6(1),i.Q6J("ngIf",n.isModeActive(t))}}function R(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",10),i.YNc(1,_,3,3,"button",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function z(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).onDirectionChange(e)})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.ekj("t-direction_active",n.isDirectionActive(t)),i.Q6J("icon",n.getIcon(t))("tuiHint",t)}}function $(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"hr",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-linear-multi-picker",17),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onStopsChange(e)}))("indexChange",(function(e){return i.CHM(t),i.oxw().onIndexChange(e)})),i.qZA(),i.qZA(),i.TgZ(4,"div",18),i.YNc(5,z,1,4,"button",19),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(2),i.Udp("background",t.gradient),i.xp6(1),i.Q6J("value",t.stopsKeys),i.xp6(2),i.Q6J("ngForOf",t.buttons)}}function B(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-edit",21),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().onColorChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("color",t.color)}}function F(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-palette",22),i.NdJ("selectedColor",(function(e){return i.CHM(t),i.oxw().onPalettePick(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("colors",t.palette)}}const J=[0,0,0,0],Z=[[0,[0,0,0,1]],[1,[255,255,255,1]]],j={"to top right":"tuiIconArrowUpRight","to right":"tuiIconArrowRight","to bottom right":"tuiIconArrowDownRight","to bottom":"tuiIconArrowDown","to bottom left":"tuiIconArrowDownLeft","to left":"tuiIconArrowLeft","to top left":"tuiIconArrowUpLeft","to top":"tuiIconArrowUp"};class q{constructor(t,e){this.sanitizer=t,this.modes=e,this.stops=new Map(Z),this.currentStop=0,this.direction="to bottom",this.colors=new Map,this.colorChange=new i.vpe,this.color=[0,0,0,1],this.currentMode=this.modes[0],this.buttons=["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}set colorSetter(t){this.parse(t)}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[1]}getIcon(t){return j[t]}isModeActive(t){return this.currentMode===t}isDirectionActive(t){return this.direction===t}onPalettePick(t){this.updateColor(t)}onDirectionChange(t){this.direction=t,this.updateColor(this.getGradient(t))}onModeSelect(t,e){this.currentMode=t,e.open=!1,this.updateColor(t===this.modes[0]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(t){this.currentStop=this.stopsKeys[t]}onColorChange(t){this.isGradient?(this.stops.set(this.currentStop,t),this.updateColor(this.getGradient(this.direction))):this.updateColor(`rgba(${t.join(", ")})`)}onStopsChange(t){const e=this.stopsKeys.find((e=>!t.includes(e))),n=t.find((t=>!this.stopsKeys.includes(t)));void 0===e&&void 0!==n&&this.addStop(n),void 0!==e&&void 0===n&&this.removeStop(e),void 0!==e&&void 0!==n&&this.replaceStop(e,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(t){return Array.from(t.keys())}filterPalette(t,e){const n=new Map(t);return n.forEach(((t,o)=>{(t.startsWith("linear-gradient")&&!e||!t.startsWith("linear-gradient")&&e)&&n.delete(o)})),n}updateColor(t){this.colorChange.emit(t)}getGradient(t){return`linear-gradient(${t}, ${[...this.stopsKeys].sort(s.A2).map((t=>`rgba(${this.getStop(t).join(", ")}) ${100*t}%`)).join(", ")})`}getStop(t){return this.stops.get(t)||J}addStop(t){const e=this.stopsKeys.reduce(((e,n)=>Math.abs(n-t)o===t?[e,n]:[o,this.getStop(o)])))}parse(t){t.startsWith("linear-gradient")?this.parseGradient(t):this.parseColor(t)}parseGradient(t){if(t===this.getGradient(this.direction))return;const e=(0,d._N)((0,d.U5)(t));this.currentMode=this.modes[1],this.direction=e.side,this.currentStop=0,this.stops=new Map(e.stops.length?e.stops.map((({color:t,position:e})=>[parseFloat(e)/100,(0,a.Mp)(t)])):Z)}parseColor(t){this.currentMode=this.modes[0],this.currentStop=0,this.color=(0,a.Mp)(t)}}q.ɵfac=function(t){return new(t||q)(i.Y36(r.H7),i.Y36(c.dj))},q.ɵcmp=i.Xpm({type:q,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:["color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:12,vars:7,consts:[[1,"t-select",3,"content"],["dropdown",""],["tuiButton","","appearance","","size","s","type","button",3,"iconRight"],["arrow",""],["menu",""],[4,"ngIf"],[3,"color","colorChange"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],["src","tuiIconChevronDown",1,"t-arrow"],["role","menu","size","s",1,"t-menu"],["tuiOption","","role","menuitemradio",3,"keydown.enter.prevent","keydown.space.prevent","click",4,"ngFor","ngForOf"],["tuiOption","","role","menuitemradio",3,"keydown.enter.prevent","keydown.space.prevent","click"],["src","tuiIconCheck","class","t-checkmark",4,"ngIf"],["src","tuiIconCheck",1,"t-checkmark"],[1,"t-hr"],[1,"t-wrapper"],[1,"t-gradient",3,"value","valueChange","indexChange"],[1,"t-buttons"],["tuiIconButton","","type","button","size","xs","appearance","","tuiHintDescribe","","class","t-direction",3,"t-direction_active","icon","tuiHint","click",4,"ngFor","ngForOf"],["tuiIconButton","","type","button","size","xs","appearance","","tuiHintDescribe","",1,"t-direction",3,"icon","tuiHint","click"],["tuiGroup","",1,"t-edit",3,"color","colorChange"],[1,"t-palette",3,"colors","selectedColor"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-hosted-dropdown",0,1),i.TgZ(2,"button",2),i._uU(3),i.qZA(),i.YNc(4,H,1,2,"ng-template",null,3,i.W1O),i.YNc(6,R,2,1,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(8,$,6,4,"ng-container",5),i.TgZ(9,"tui-color-picker",6),i.NdJ("colorChange",(function(t){return e.onColorChange(t)})),i.qZA(),i.YNc(10,B,1,1,"tui-color-edit",7),i.YNc(11,F,1,1,"tui-palette",8)),2&t){const t=i.MAs(5),n=i.MAs(7);i.Q6J("content",n),i.xp6(2),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.currentMode," "),i.xp6(5),i.Q6J("ngIf",e.isGradient),i.xp6(1),i.Q6J("color",e.currentColor),i.xp6(1),i.Q6J("ngIf",!e.isGradient),i.xp6(1),i.Q6J("ngIf",e.palette.size)}},directives:[u.o1,h.v0,b.O5,v.$,p.PN,f.qi,b.sg,f.vK,y.e,m.$o,m.D,m.xn,m.t6,m.DM,D,g.gZ,P.R],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0}),(0,o.gn)([l.UM],q.prototype,"getStopsKeys",null),(0,o.gn)([l.UM],q.prototype,"filterPalette",null)},79012:(t,e,n)=>{n.d(e,{J:()=>s});var o=n(74788),i=n(63658),r=n(20755);let s=(()=>{class t{constructor(t){this.value=[0,0],this.valueChange=new o.vpe,t.subscribe((t=>{this.value=t,this.valueChange.emit([t[0],t[1]])}))}get left(){return 100*this.value[0]}get top(){return 100*this.value[1]}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")("top",e.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},96472:(t,e,n)=>{n.d(e,{H9:()=>a,wl:()=>A,VM:()=>S}),n(49294);var o=n(12057),i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,r,s]]}),t})();n(44691);var l=n(221),c=n(12628),d=n(23917),u=n(90022),h=n(54789),p=n(75111),f=n(95974),m=n(24751),g=n(45642),b=n(52697),v=n(79588),y=n(98952),w=n(75093),x=n(74337),k=n(28858);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,m.u5,g.U5,w.S,x.Jy,b.KW,v.cn,y.dp,k.$H,p.pc]]}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,u.go]]}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,c.fN,d.jh,a,M,u.go,h.EI,p.pc,l.A,C,f.n6,S]]}),t})();n(79012),n(7176),n(74331)},7176:(t,e,n)=>{n.d(e,{e:()=>l});var o=n(74788),i=n(63658),r=n(20755),s=n(12057);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.NdJ("mousedown",(function(){const e=o.CHM(t).index;return o.oxw().onMouseDown(e)}))("dblclick",(function(){const e=o.CHM(t).index;return o.oxw().onClick(e)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("left",100*t,"%")}}let l=(()=>{class t{constructor(t){this.value=[0,1],this.valueChange=new o.vpe,this.indexChange=new o.vpe,this.index=NaN,t.subscribe((([t])=>{this.onPicker(t)}))}onMouseUp(){this.index=NaN}onMouseDown(t){this.updateIndex(t)}onClick(t){this.value.length>2&&this.updateValue(this.value.filter(((e,n)=>n!==t)))}onPicker(t){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),this.value.some(((e,n)=>e===t&&n!==this.index))||this.updateValue(this.value.map(((e,n)=>n===this.index?t:e)))}updateIndex(t){this.index=t,this.indexChange.emit(t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(t,e){1&t&&o.NdJ("mouseup",(function(){return e.onMouseUp()}),!1,o.evT)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:1,consts:[["class","t-circle",3,"left","mousedown","dblclick",4,"ngFor","ngForOf"],[1,"t-circle",3,"mousedown","dblclick"]],template:function(t,e){1&t&&o.YNc(0,a,1,2,"div",0),2&t&&o.Q6J("ngForOf",e.value)},directives:[s.sg],styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},74331:(t,e,n)=>{n.d(e,{P:()=>s});var o=n(74788),i=n(63658),r=n(20755);let s=(()=>{class t{constructor(t){this.value=0,this.valueChange=new o.vpe,t.subscribe((([t])=>{this.value=t,this.valueChange.emit(t)}))}get left(){return 100*this.value}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},59113:(t,e,n)=>{n.d(e,{R:()=>a});var o=n(74788),i=n(12057),r=n(90022);function s(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",1),o.NdJ("click",(function(){const e=o.CHM(t).$implicit;return o.oxw().selectedColor.emit(e.value)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("background",t.value),o.Q6J("tuiHint",t.key)("tuiHintDescribe",t.key)("id",t.key)}}let a=(()=>{class t{constructor(){this.colors=new Map,this.selectedColor=new o.vpe,this.originalOrder=(t,e)=>0}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"background","tuiHint","tuiHintDescribe","id","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"tuiHint","tuiHintDescribe","id","click"]],template:function(t,e){1&t&&(o.YNc(0,s,1,5,"button",0),o.ALo(1,"keyvalue")),2&t&&o.Q6J("ngForOf",o.xi3(1,1,e.colors,e.originalOrder))},directives:[i.sg,r.D,r.xn,r.t6,r.DM,r.$o],pipes:[i.Nd],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0}),t})()},41039:(t,e,n)=>{n.d(e,{l:()=>T});var o=n(12057),i=n(74788),r=n(64493),s=n(18892),a=n(86114),l=n(71831),c=n(68838),d=n(92815),u=n(37801),h=n(24751),p=n(54789),f=n(12628),m=n(82847),g=n(80134),b=n(79550);let v=(()=>{class t{transform(t,e,n){return"#"===e?t.filter((t=>t!==n)):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilterAnchors",type:t,pure:!0}),t})();function y(t,e){1&t&&(i.ynx(0),i._uU(1," Edit anchor "),i.BQk())}function w(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1," Link to anchor "),i.qZA())}function x(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"URL"),i.qZA())}function k(t,e){if(1&t&&(i.YNc(0,w,2,0,"span",1),i.YNc(1,x,2,0,"ng-template",null,12,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.prefixIsHashMode)("ngIfElse",t)}}function C(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.ngIf,n=i.oxw(2);i.xp6(1),i.hij(" ",n.prefixIsHashMode?t.anchorExample:t.urlExample," ")}}function M(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"label",4),i.TgZ(2,"div",5),i.YNc(3,y,2,0,"ng-container",1),i.YNc(4,k,3,2,"ng-template",null,6,i.W1O),i.qZA(),i.TgZ(6,"div",7),i.TgZ(7,"div",8),i._uU(8),i.qZA(),i.TgZ(9,"tui-input-inline",9),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().url=e}))("input",(function(e){let n;return i.CHM(t),i.oxw().onChange(null==(n=e.target)?null:n.value)}))("keydown.prevent.enter",(function(){return i.CHM(t),i.oxw().onSave()}))("keydown.backspace",(function(){return i.CHM(t),i.oxw().onBackspace()})),i.YNc(10,C,2,1,"ng-container",3),i.ALo(11,"async"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"tui-svg",10),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClear()})),i.qZA(),i.TgZ(13,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onSave()})),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(5),e=i.oxw();i.xp6(3),i.Q6J("ngIf",e.anchorMode)("ngIfElse",t),i.xp6(5),i.Oqu(e.prefix),i.xp6(1),i.ekj("t-input_filled",e.hasUrl),i.Q6J("ngModel",e.url),i.xp6(1),i.Q6J("ngIf",i.lcZ(11,9,e.texts$)),i.xp6(2),i.ekj("t-cleaner_hidden",!e.hasUrl)}}function S(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i._uU(1),i.ALo(2,"tuiShortUrl"),i.qZA(),i.TgZ(3,"button",14),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onEdit()})),i.qZA(),i.TgZ(4,"button",15),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRemove()})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("href",t.href,i.LSH)("icon",t.prefixIsHashMode?"tuiIconHash":"tuiIconExternalLink"),i.xp6(1),i.hij(" ",i.lcZ(2,3,t.url)," ")}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",19),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).setAnchor(e)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(1),i.hij(" #",t," ")}}function O(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"hr",16),i.TgZ(2,"tui-scrollbar"),i.TgZ(3,"div",17),i.YNc(4,A,2,1,"button",18),i.ALo(5,"tuiFilterAnchors"),i.qZA(),i.qZA(),i.BQk()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngForOf",i.Dn7(5,1,t.anchorIds,t.prefix,t.url))}}let T=(()=>{class t{constructor(t,e,n,o){this.doc=t,this.texts$=e,this.editor=n,this.options=o,this.isOnlyAnchorMode=this.detectAnchorMode(),this.addLink=new i.vpe,this.removeLink=new i.vpe,this.url=this.getHrefOrAnchorId(),this.edit=!this.url,this.prefix=this.makeDefaultPrefix(),this.anchorIds=this.getAllAnchorsIds()}get defaultProtocol(){var t,e;return null!==(e=null===(t=this.options.linkOptions)||void 0===t?void 0:t.protocol)&&void 0!==e?e:s.Ci}set anchorMode(t){this.isOnlyAnchorMode=t,this.prefix=t?s._s:this.makeDefaultPrefix()}get anchorMode(){return this.isOnlyAnchorMode}get prefixIsHashMode(){return this.prefix===s._s}get hasUrl(){return!!this.url}get href(){return`${this.prefix}${this.url}`}get showAnchorsList(){return!this.anchorMode&&this.edit&&this.anchorIds.length>0}get isViewMode(){return!this.edit}onSelectionChange(){this.isViewMode&&(this.url=this.getHrefOrAnchorId(),this.anchorMode=this.detectAnchorMode())}onMouseDown(t){(0,r.ve)(t.target)&&!t.target.matches("a, button, input")&&t.preventDefault()}setAnchor(t){this.url=t,this.changePrefix(!0)}changePrefix(t){this.prefix=t?s._s:this.defaultProtocol}onSave(){this.url?this.addLink.emit(this.href):this.removeLink.emit()}onBackspace(){this.url||(this.prefix=this.isOnlyAnchorMode?s._s:this.defaultProtocol)}onEdit(){this.edit=!0}onRemove(){this.removeLink.emit()}onChange(t){this.url=this.removePrefix(t)}onClear(){this.url=""}makeDefaultPrefix(){var t,e;const n=this.getAnchorElement(),o=(0,c.$)(null!==(t=null==n?void 0:n.getAttribute("href"))&&void 0!==t?t:"").prefix||this.defaultProtocol;return n&&(!n.getAttribute("href")&&n.getAttribute("id")||(null===(e=n.getAttribute("href"))||void 0===e?void 0:e.startsWith(s._s)))?s._s:o}detectAnchorMode(){const t=this.getAnchorElement();return!(null==t?void 0:t.href)&&!!(null==t?void 0:t.getAttribute("id"))}getFocusedParentElement(){var t,e;return(null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentElement)||null}getAnchorElement(){var t,e,n;const o=this.getFocusedParentElement();return null!==(n=null!==(t=null==o?void 0:o.closest("a"))&&void 0!==t?t:null===(e=null==o?void 0:o.querySelector("img"))||void 0===e?void 0:e.closest("a"))&&void 0!==n?n:null}getHrefOrAnchorId(){const t=this.getAnchorElement();return t?this.removePrefix(t.getAttribute("href")||t.getAttribute("id")||""):this.url}removePrefix(t){var e;const n=t.startsWith(s._s)||this.prefix===s._s?t:`${null!==(e=this.prefix)&&void 0!==e?e:""}${t}`,{prefix:o,path:i}=(0,c.$)(n),r=this.isOnlyAnchorMode||o===s._s||""===o&&this.prefix===s._s;return this.prefix=r?s._s:""===o?this.defaultProtocol:o,i}getAllAnchorsIds(){var t;const e=Array.from(null!==(t=this.editor.getOriginTiptapEditor().view.dom.querySelectorAll('[data-type="jump-anchor"]'))&&void 0!==t?t:[]);return Array.from(e).map((t=>t.getAttribute("id")||"")).filter(Boolean)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.K0),i.Y36(l.b$),i.Y36(a.$3),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-edit-link"]],hostBindings:function(t,e){1&t&&i.NdJ("selectionchange",(function(){return e.onSelectionChange()}),!1,i.evT)("mousedown",(function(t){return e.onMouseDown(t)}))},inputs:{anchorMode:"anchorMode"},outputs:{addLink:"addLink",removeLink:"removeLink"},decls:5,vars:3,consts:[[1,"t-edit-link"],[4,"ngIf","ngIfElse"],["view",""],[4,"ngIf"],[1,"t-label"],[1,"t-label-properties"],["fullOptions",""],[1,"t-url"],[1,"t-prefix"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","input","keydown.prevent.enter","keydown.backspace"],["src","tuiIconCloseLarge",1,"t-cleaner",3,"click"],["tuiIconButton","","type","button","size","s","title","Insert link","icon","tuiIconCheckCircleLarge","shape","rounded","appearance","icon",1,"t-button",3,"click"],["urlTitle",""],["tuiLink","","target","_blank","iconAlign","left",1,"t-link",3,"href","icon"],["tuiIconButton","","type","button","size","s","title","Change link","icon","tuiIconEdit2Large","shape","rounded","appearance","icon",1,"t-button","t-edit-button",3,"click"],["tuiIconButton","","type","button","size","s","title","Remove link","icon","tuiIconUnlinkLarge","shape","rounded","appearance","icon",1,"t-button",3,"click"],[1,"t-hr"],[1,"t-anchor-list"],["type","button","class","t-anchor",3,"click",4,"ngFor","ngForOf"],["type","button",1,"t-anchor",3,"click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.YNc(1,M,14,11,"ng-container",1),i.YNc(2,S,5,5,"ng-template",null,2,i.W1O),i.qZA(),i.YNc(4,O,6,5,"ng-container",3)),2&t){const t=i.MAs(3);i.xp6(1),i.Q6J("ngIf",e.edit)("ngIfElse",t),i.xp6(3),i.Q6J("ngIf",e.showAnchorsList)}},directives:[o.O5,d.l,u.k,h.JJ,h.On,p.PN,f.v0,m.V,g.IB,o.sg],pipes:[o.Ov,b.X,v],styles:["[_nghost-%COMP%]{display:block;min-width:18.75rem}.t-edit-link[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{font:var(--tui-font-text-s);height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-label-properties[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:8.375rem;justify-content:space-between}.t-property_inactive[_ngcontent-%COMP%]{opacity:.5}.t-url[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-m);color:var(--tui-text-02)}.t-input[_ngcontent-%COMP%]{flex:1}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-button[_ngcontent-%COMP%]{width:2rem;height:2rem;margin:0 .25rem;transition:background .2s}.t-edit-button[_ngcontent-%COMP%]{margin-left:auto}.t-link[_ngcontent-%COMP%]{margin:0 1rem}.t-cleaner[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-base-06);cursor:pointer;margin-left:auto}.t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-cleaner_hidden[_ngcontent-%COMP%]{visibility:hidden}.t-anchor-list[_ngcontent-%COMP%]{display:flex;max-height:12.5rem;flex-direction:column}.t-anchor[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;min-height:2.75rem;padding:.375rem .5rem;margin:.125rem .5rem;border-radius:var(--tui-radius-m);text-align:left}.t-anchor[_ngcontent-%COMP%]:hover{background:var(--tui-base-02);cursor:pointer}"],changeDetection:0}),t})()},8674:(t,e,n)=>{n.d(e,{Fu:()=>p}),n(41039);var o=n(12057),i=n(24751),r=n(37801),s=n(12628),a=n(54789),l=n(82847),c=n(80134),d=n(92815),u=n(25470),h=n(74788);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=h.oAB({type:t}),t.ɵinj=h.cJS({imports:[[o.ez,i.u5,r.Q7,s.fN,a.EI,l.j,d.z,u.YM,c.Jy]]}),t})();n(79550),n(68838)},79550:(t,e,n)=>{n.d(e,{X:()=>i});var o=n(74788);let i=(()=>{class t{transform(t){return t.length<60?t:`${t.slice(0,Math.max(0,40))}...${t.slice(t.length-10)}`}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=o.Yjl({name:"tuiShortUrl",type:t,pure:!0}),t})()},68838:(t,e,n)=>{n.d(e,{$:()=>r});var o=n(11927),i=n(18892);function r(t=""){if(t.startsWith(i._s))return{prefix:i._s,path:t.slice(1)};const[e="",n=""]=t.includes(i.jU)?s(t):a(t);if(n.includes(i.DN)){const[t,e]=a(n);if(t&&e)return{prefix:t,path:e}}return{prefix:e,path:""===e?t:n}}function s(t=""){var e;const n=null!==(e=t.indexOf(i.jU))&&void 0!==e?e:-1,[o,r]=n>-1?[t.slice(0,n+i.jU.length),t.slice(n+i.jU.length,t.length)]:["",t],a=[o,r].filter(Boolean);return(null==r?void 0:r.includes("://"))&&a.length>1?s(r):a}function a(t=""){const[e,n]=t.split(/:/).slice(-2).filter(Boolean);return e&&n&&!(0,o.lj)(t)?[`${e}:`,n]:[]}},33703:(t,e,n)=>{n.d(e,{_:()=>c});var o=n(66749),i=n(87187),r=n(66682),s=n(46782),a=n(74788),l=n(63658);let c=(()=>{class t extends i.d{constructor(t,e){super(),this.doc=t,this.destroy$=e,this._height=0,this._width=0,(0,r.T)((0,o.mL)(t,"touchend"),(0,o.mL)(t,"mouseup")).pipe((0,s.R)(e)).subscribe((()=>this.updateAttributes({width:this.width,height:this.height})))}get attrs(){var t;return(null===(t=this.node)||void 0===t?void 0:t.attrs)||{src:""}}get width(){return this._width||this.attrs.width||null}get height(){return this._height||this.attrs.height||null}}return t.ɵfac=function(e){return new(e||t)(a.Y36(Document),a.Y36(l.a3))},t.ɵdir=a.lG2({type:t,features:[a.qOj]}),t})()},61732:(t,e,n)=>{n.d(e,{V:()=>p});var o=n(74788),i=n(11927),r=n(75675),s=n(46732),a=n(12057);const l=function(){return[0,1]};function c(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("tuiSizeChange",(function(e){return o.CHM(t),o.oxw().sizeChange.emit(e)})),o.qZA()}2&t&&o.Q6J("tuiResizer",o.DdM(1,l))}const d=function(t){return[t,0]},u=function(){return[1,0]},h=["*"];let p=(()=>{class t{constructor(){this.autoHeight=!1,this.width=null,this.height=null,this.sizeChange=new o.vpe}get hostWidth(){return(0,i.dt)(this.width)?(0,r.O)(this.width):this.width}get hostHeight(){return this.autoHeight?null:(0,i.dt)(this.height)?(0,r.O)(this.height):this.height}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-editor-resizable"]],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("width",e.hostWidth)("height",e.hostHeight)},inputs:{autoHeight:"autoHeight",width:"width",height:"height"},outputs:{sizeChange:"sizeChange"},ngContentSelectors:h,decls:5,vars:8,consts:[["tuiResizeable","",1,"t-resizable"],[1,"t-handle","t-handle-left-side",3,"tuiResizer","tuiSizeChange"],["class","t-handle t-handle-bottom-side",3,"tuiResizer","tuiSizeChange",4,"ngIf"],[1,"t-handle","t-handle-right-side",3,"tuiResizer","tuiSizeChange"],[1,"t-handle","t-handle-bottom-side",3,"tuiResizer","tuiSizeChange"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.TgZ(2,"div",1),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.YNc(3,c,1,2,"div",2),o.TgZ(4,"div",3),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.qZA()),2&t&&(o.ekj("t-resizable-auto-height",e.autoHeight),o.xp6(2),o.Q6J("tuiResizer",o.VKq(5,d,-1)),o.xp6(1),o.Q6J("ngIf",!e.autoHeight),o.xp6(1),o.Q6J("tuiResizer",o.DdM(7,u)))},directives:[s.U_,s.L$,a.O5],styles:['[_nghost-%COMP%]{position:relative;display:inline-block;box-sizing:border-box}[_nghost-%COMP%] .t-resizable[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%] .t-resizable-auto-height[_ngcontent-%COMP%]{height:auto!important}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}[_nghost-%COMP%]:hover .t-handle[_ngcontent-%COMP%]:after{opacity:1}.t-handle[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;width:.75rem;cursor:col-resize;justify-content:center;align-items:center;height:100%}.t-handle[_ngcontent-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";width:50%;height:33%;box-sizing:border-box;border-radius:var(--tui-radius-m);background:var(--tui-base-08);border:1px solid var(--tui-base-03);opacity:0}.t-handle-left-side[_ngcontent-%COMP%]{left:0}.t-handle-bottom-side[_ngcontent-%COMP%]{top:unset;bottom:.3125rem;height:.95rem;width:100%}.t-handle-right-side[_ngcontent-%COMP%]{right:0}'],changeDetection:0}),t})()},36807:(t,e,n)=>{n.d(e,{S:()=>a});var o=n(12057),i=n(5962),r=n(46732),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,i.k,r.gj]]}),t})()},96152:(t,e,n)=>{n.d(e,{D:()=>l});var o=n(12057),i=n(74788),r=n(64493),s=n(79456),a=n(79698);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.sanitizer=n,this.tuiSanitizer=o,this.document=i,this.editor=r}set content(t){this.renderer.setProperty(this.el.nativeElement,"innerHTML",this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,t.replace(/colwidth/g,"width")):this.sanitizer.sanitize(i.q3G.HTML,t))}click(t){var e,n;if(this.editor||!(0,r.ve)(t.target))return;const o=(null===(n=null===(e=t.target)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.getAttribute("href"))||"";o.startsWith("#")&&(this.document.location.hash=o.replace("#",""),t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.Tiy),i.Y36(s.hm,8),i.Y36(o.K0),i.Y36(a.JU,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-socket"]],hostAttrs:[1,"tui-editor-socket"],hostBindings:function(t,e){1&t&&i.NdJ("click",(function(t){return e.click(t)}))},inputs:{content:"content"},decls:0,vars:0,template:function(t,e){},styles:['.tui-editor-socket{display:block;margin:0;color:var(--tui-text-01);font:var(--tui-font-text-m)}.tui-editor-socket[tuiTiptapEditor]{overflow:hidden}.tui-editor-socket .ProseMirror{min-height:5.375rem;padding:.2rem 1rem;outline:none;white-space:pre-wrap}.tui-editor-socket .resize-cursor{cursor:ew-resize;cursor:col-resize}.tui-editor-socket h1,.tui-editor-socket h2,.tui-editor-socket h3,.tui-editor-socket h4,.tui-editor-socket h5,.tui-editor-socket h6{word-break:break-word;line-height:normal}.tui-editor-socket h1:first-child,.tui-editor-socket h2:first-child,.tui-editor-socket p:last-child{margin-bottom:0}.tui-editor-socket p:last-child,.tui-editor-socket pre:last-child{margin-bottom:0}.tui-editor-socket p:empty:after{content:" ";white-space:pre}.tui-editor-socket p:first-child{margin-top:0}.tui-editor-socket p{margin:1rem 0}.tui-editor-socket p>span{line-height:normal;line-height:initial}.tui-editor-socket blockquote{margin:1.25rem 0 1.25rem 1.5rem;padding-left:1.0625rem;border-left:1px solid var(--tui-base-04)}.tui-editor-socket hr{border:none;border-top:1px solid var(--tui-base-03);margin:1rem 0}.tui-editor-socket mark{background:unset;color:inherit}.tui-editor-socket font[face="Courier New"]{display:inline-block;padding:.25rem .5rem;border-radius:.25rem;background-color:#ecf1f7;word-break:break-word}.tui-editor-socket a:not([data-type="jump-anchor"]){color:var(--tui-link);text-decoration:none;outline:none}.tui-editor-socket a:not([data-type="jump-anchor"]):hover{color:var(--tui-link-hover);text-decoration:underline}.tui-editor-socket a:not([data-type="jump-anchor"]):active{color:var(--tui-primary-active)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]{text-decoration:underline;-webkit-text-decoration-color:var(--tui-link);text-decoration-color:var(--tui-link)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:before{content:"#"}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:hover{color:var(--tui-link)}.tui-editor-socket .ProseMirror a:hover img[contenteditable=false]{cursor:pointer;outline:.25rem solid var(--tui-link)}.tui-editor-socket ul,.tui-editor-socket ol{list-style-type:none;margin:1rem 1rem 1rem 1.5rem;padding:0}.tui-editor-socket li{margin:1rem 0}.tui-editor-socket li>p{display:inline;margin:0 auto;word-break:break-word}.tui-editor-socket ul li>p{display:block}.tui-editor-socket li:before{unicode-bidi:-webkit-isolate;unicode-bidi:isolate;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-transform:none;text-indent:0;text-align:start;text-align-last:start}.tui-editor-socket ul>li:before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:100%;margin:.5rem .875rem .0625rem -1.375rem;background-color:var(--tui-primary);vertical-align:top;box-sizing:border-box;float:left}.tui-editor-socket li ul>li:before{background:none;border:.125rem solid var(--tui-primary)}.tui-editor-socket li ul>li>ul>li:before{background:var(--tui-primary);border-radius:0;width:.375rem;height:.375rem}.tui-editor-socket ol{counter-reset:item}.tui-editor-socket ol>li:before{content:counters(item,".") ".";display:block;margin:0 .75rem 0 -1.5rem;counter-increment:item;color:var(--tui-base-05);vertical-align:top;float:left;white-space:nowrap}.tui-editor-socket._preview-image img{cursor:pointer}.tui-editor-socket .ProseMirror video,.tui-editor-socket .ProseMirror audio{pointer-events:none}.tui-editor-socket img.ProseMirror-selectednode{outline:.25rem solid var(--tui-primary-hover)}.tui-editor-socket .t-editor-placeholder:before{content:attr(data-placeholder);float:left;color:var(--tui-base-05);pointer-events:none;height:0}.tui-editor-socket table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.tui-editor-socket table .tableWrapper{overflow-x:auto}.tui-editor-socket .tableWrapper,.tui-editor-socket .tui-table-wrapper{overflow-x:auto}.tui-editor-socket table td{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word}.tui-editor-socket table th{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word;font-weight:bold;text-align:left;background-color:var(--tui-base-02);min-height:2rem}.tui-editor-socket table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:#adf;pointer-events:none}.tui-editor-socket table td>*{margin-top:0;margin-bottom:0}.tui-editor-socket table th>*{margin-top:0;margin-bottom:0}.tui-editor-socket .selectedCell:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--tui-selection);pointer-events:none}.tui-editor-socket summary{display:flex;align-items:center;min-height:3.5rem;width:100%;padding:0 1.25rem;box-sizing:border-box;border-radius:var(--tui-radius-l);pointer-events:none;outline:none}.tui-editor-socket summary:focus-visible{outline:2px solid var(--tui-link)}.tui-editor-socket summary p{min-width:1px;margin:0}.tui-editor-socket summary::-webkit-details-marker{display:none}.tui-editor-socket details[open] summary{border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-editor-socket .details-arrow,.tui-editor-socket .t-details-arrow{position:absolute;top:1.5rem;right:1.25rem;height:.575rem;width:.575rem;border:1px solid var(--tui-base-06);border-width:0 2px 2px 0;transform:rotate(45deg);transition:var(--tui-duration, .3s);-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none}.tui-editor-socket details{width:100%;border:1px solid var(--tui-base-04);border-radius:var(--tui-radius-l)}.tui-editor-socket div[data-type=details-content]{padding:1.25rem;min-height:3rem;border:1px solid var(--tui-base-04);border-width:1px 0 0}.tui-editor-socket div[data-type=details-content] h1:first-child,.tui-editor-socket div[data-type=details-content] h2:first-child,.tui-editor-socket div[data-type=details-content] pre:first-child,.tui-editor-socket div[data-type=details-content] ul:first-child,.tui-editor-socket div[data-type=details-content] ol:first-child,.tui-editor-socket div[data-type=details-content] ol li:first-child,.tui-editor-socket div[data-type=details-content] ul li:first-child{margin-top:0}.tui-editor-socket .details-wrapper,.tui-editor-socket .t-details-wrapper{margin-bottom:.5rem;position:relative;display:flex}.tui-editor-socket .details-wrapper_rendered .details-arrow,.tui-editor-socket .t-details-wrapper_rendered .details-arrow,.tui-editor-socket .details-wrapper_rendered .t-details-arrow,.tui-editor-socket .t-details-wrapper_rendered .t-details-arrow{pointer-events:none}.tui-editor-socket .details-wrapper_rendered summary,.tui-editor-socket .t-details-wrapper_rendered summary{transition:transform var(--tui-duration, .3s);cursor:pointer;pointer-events:auto}.tui-editor-socket .details-wrapper_rendered summary:hover,.tui-editor-socket .t-details-wrapper_rendered summary:hover{background:var(--tui-base-02)}.tui-editor-socket details[open]+.details-arrow,.tui-editor-socket details[open]+.t-details-arrow{top:1.75rem;transform:rotate(225deg)}.tui-editor-socket pre{white-space:pre-wrap;word-break:break-word;border-radius:.25rem;margin:1rem 0;padding:.75rem 1rem;font-family:Courier,monospace;color:var(--tui-text-02);background:var(--tui-base-02)}.tui-editor-socket .tui-group-node{display:flex;flex-direction:row}.tui-editor-socket .tui-group-node:hover>.tui-group-pointer{pointer-events:auto;opacity:1}.tui-editor-socket .tui-group-pointer{opacity:0;min-height:.8125rem;max-height:.8125rem;min-width:.8125rem;max-width:.8125rem;margin:.3125rem .3125rem 0 0;cursor:-webkit-grab;cursor:grab;background-image:url(\'data:image/svg+xml;charset=UTF-8,\');background-repeat:no-repeat;background-size:contain;background-position:center}.tui-editor-socket [data-mode=onDark] .tui-group-pointer{background-image:url(\'data:image/svg+xml;charset=UTF-8,\')}\n'],encapsulation:2,changeDetection:0}),t})()},10215:(t,e,n)=>{n.d(e,{a:()=>$});var o=n(12057),i=n(74788),r=n(24751),s=n(76480),a=n(33770),l=n(99434),c=n(37801),d=n(79456),u=n(51618),h=n(18892),p=n(86114),f=n(71831),m=n(88320),g=n(87874),b=n(46782),v=n(46015),y=n(91489),w=n(80134),x=n(98952),k=n(221),C=n(22580),M=n(75122),S=n(43631),A=n(22648);let O=(()=>{class t extends S.O4{constructor(t){super(),this.el=t,this.type="viewport"}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiEditorPortal",""]],features:[i._Bn([{provide:M.ae,useExisting:A.Y},(0,d.ck)(t)]),i.qOj]}),t})();var T=n(96152),N=n(87429);let E=(()=>{class t extends s.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-portal-host"]],features:[i._Bn([{provide:s.N9,useExisting:M.ae},{provide:s.Er,useExisting:t}]),i.qOj],decls:2,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&i.GkF(0,null,0)},styles:["[_nghost-%COMP%]{position:relative;z-index:1;display:block;height:100%}"],changeDetection:0}),t})();var I=n(41039);function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",7),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(2).fileAttached.emit(e)})),i.Hsn(1,1),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("tools",t.tools)("disabled",!t.interactive)}}function P(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij(" ",t.exampleText," ")}}function H(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-edit-link",13,14),i.NdJ("addLink",(function(e){i.CHM(t);const n=i.MAs(1),o=i.oxw(3);return n.anchorMode?o.addAnchor(e):o.addLink(e)}))("removeLink",(function(){i.CHM(t);const e=i.MAs(1),n=i.oxw(3);return e.anchorMode?n.removeAnchor():n.removeLink()})),i.qZA()}}function L(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",9),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(2).focus(e)})),i.TgZ(1,"div",10),i.TgZ(2,"tui-editor-socket",11),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(2).onModelChange(e)}))("stateChange",(function(){return 0})),i.qZA(),i.qZA(),i.YNc(3,H,2,0,"ng-template",null,12,i.W1O),i._UZ(5,"tui-editor-portal-host"),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(2);i.xp6(1),i.Q6J("tuiDropdownSelection",e.dropdownSelectionHandler)("tuiDropdown",t),i.xp6(1),i.Q6J("value",e.value)("editable",e.interactive)}}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.NdJ("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)})),i.TgZ(1,"div",2),i.YNc(2,D,2,2,"tui-toolbar",3),i.TgZ(3,"div",4),i.Hsn(4),i.qZA(),i.YNc(5,P,2,1,"div",5),i.qZA(),i.YNc(6,L,6,4,"tui-scrollbar",6),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("readOnly",n.readOnly)("disabled",n.disabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid),i.xp6(2),i.Q6J("ngIf",t),i.xp6(1),i.ekj("t-placeholder_raised",n.placeholderRaised),i.xp6(2),i.Q6J("ngIf",n.hasExampleText),i.xp6(1),i.Q6J("ngIf",t)}}const R=["*",[["tools"]]],z=["*","tools"];let $=(()=>{class t extends s.M${constructor(t,e,n,o,r,s,a,l){super(t,e,a),this.editorLoaded$=n,this.editorService=o,this.contentProcessor=r,this.doc=s,this.options=l,this.exampleText="",this.tools=h.Db,this.fileAttached=new i.vpe,this.focused=!1,this.isSelectionLink=t=>this.currentFocusedNodeIsTextAnchor(t)||this.currentFocusedNodeIsImageAnchor,this.editorLoaded$.pipe((0,g.g)(0),(0,b.R)(this.destroy$)).subscribe((()=>this.patchContentEditableElement()))}get nativeFocusableElement(){var t,e;return this.computedDisabled?null:(null===(e=null===(t=this.el)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("[contenteditable].ProseMirror"))||null}get dropdownSelectionHandler(){return this.focused?this.isSelectionLink:a.Iy}get editor(){return this.editorService.getOriginTiptapEditor()?this.editorService:null}get placeholderRaised(){return this.computedFocused&&!this.readOnly||this.hasValue}get hasExampleText(){return!!this.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly}writeValue(t){var e;if(t===this.value)return;const n=this.contentProcessor(t||"");super.writeValue(n),n!==t&&(null===(e=this.control)||void 0===e||e.setValue(n,{onlySelf:!1,emitEvent:!1,emitModelToViewChange:!1,emitViewToModelChange:!1}))}onActiveZone(t){var e;this.focused=t,this.updateFocused(t),null===(e=this.control)||void 0===e||e.updateValueAndValidity()}onModelChange(t){this.value=t}addAnchor(t){var e;null===(e=this.editor)||void 0===e||e.setAnchor(t)}removeAnchor(){var t;null===(t=this.editor)||void 0===t||t.removeAnchor()}addLink(t){var e,n;null===(e=this.editor)||void 0===e||e.selectClosest(),null===(n=this.editor)||void 0===n||n.setLink(t)}removeLink(){var t;null===(t=this.editor)||void 0===t||t.unsetLink()}focus(t){var e,n;(null===(e=this.nativeFocusableElement)||void 0===e?void 0:e.contains(t.target))||(t.preventDefault(),null===(n=this.nativeFocusableElement)||void 0===n||n.focus())}ngOnDestroy(){var t;null===(t=this.editor)||void 0===t||t.destroy()}getFallbackValue(){return""}currentFocusedNodeIsTextAnchor(t){var e,n;return!!(null===(n=null===(e=t.startContainer.parentElement)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.contains(this.focusNode))&&(0,m.nC)(t)}get focusNode(){var t,e;return null!==(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)&&void 0!==e?e:null}get hasValue(){return!!this.value}get currentFocusedNodeIsImageAnchor(){var t,e,n;return"A"===(null===(t=this.focusNode)||void 0===t?void 0:t.nodeName)&&["IMG","TUI-IMAGE-EDITOR"].includes(null===(n=null===(e=this.focusNode)||void 0===e?void 0:e.childNodes[0])||void 0===n?void 0:n.nodeName)}patchContentEditableElement(){var t,e;null===(t=this.nativeFocusableElement)||void 0===t||t.setAttribute("translate",this.options.translate),null===(e=this.nativeFocusableElement)||void 0===e||e.setAttribute("spellcheck",String(this.options.spellcheck))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(f.ZW),i.Y36(p.$3),i.Y36(f.F1),i.Y36(o.K0),i.Y36(f.bK,8),i.Y36(f.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor"]],viewQuery:function(t,e){if(1&t&&(i.Gf(p.JU,5,i.SBq),i.Gf(u.M6,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.el=t.first),i.iGM(t=i.CRH())&&(e.toolbar=t.first)}},inputs:{exampleText:"exampleText",tools:"tools"},outputs:{fileAttached:"fileAttached"},features:[i._Bn([(0,l.FT)(t),(0,c.f$)({delay:d.Gc}),v.m]),i.qOj],ngContentSelectors:z,decls:2,vars:3,consts:[["tuiWrapper","","appearance","textfield","class","t-wrapper",3,"readOnly","disabled","focus","hover","invalid","tuiActiveZoneChange",4,"ngIf"],["tuiWrapper","","appearance","textfield",1,"t-wrapper",3,"readOnly","disabled","focus","hover","invalid","tuiActiveZoneChange"],[1,"t-toolbar-wrapper"],[3,"tools","disabled","fileAttached",4,"ngIf"],[1,"t-placeholder"],["class","t-example-text",4,"ngIf"],["tuiEditorPortal","","class","t-scrollbar",3,"mousedown",4,"ngIf"],[3,"tools","disabled","fileAttached"],[1,"t-example-text"],["tuiEditorPortal","",1,"t-scrollbar",3,"mousedown"],["tuiDropdownLimitWidth","auto","tuiDropdownSelectionPosition","tag",3,"tuiDropdownSelection","tuiDropdown"],["tuiTiptapEditor","",1,"tui-editor-socket",3,"value","editable","valueChange","stateChange"],["dropdown",""],[3,"addLink","removeLink"],["link",""]],template:function(t,e){1&t&&(i.F$t(R),i.YNc(0,_,7,10,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.editorLoaded$))},directives:[o.O5,y.o,k.e,C.M,w.IB,O,x.Ek,x.td,x.VC,x.A9,x.yd,T.D,N.J,E,I.l],pipes:[o.Ov],styles:["[_nghost-%COMP%]{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);max-height:inherit;min-height:10rem;box-sizing:border-box}.t-wrapper[_ngcontent-%COMP%]{display:flex;max-height:inherit;min-height:inherit;cursor:text;overflow:hidden;flex-direction:column;border-radius:inherit}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1rem 1rem -1rem;min-height:1.625rem;width:95%;font-size:.9375rem}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{width:110%}.t-placeholder[_ngcontent-%COMP%]:empty{min-height:.8rem}.t-example-text[_ngcontent-%COMP%]{position:absolute;left:1rem;margin-top:1.6rem;color:var(--tui-base-06);letter-spacing:normal;text-transform:none}.t-example-text_light[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-example-text_dark[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-scrollbar[_ngcontent-%COMP%]{display:flex;border-bottom:.3125rem solid transparent;padding-bottom:1.3125rem;box-sizing:border-box;flex:1}"],changeDetection:0}),t})()},46015:(t,e,n)=>{n.d(e,{m:()=>h});var o=n(74788),i=n(86114),r=n(71831),s=n(74235),a=n(9112),l=n(15257),c=n(88002),d=n(47349),u=n(22648);const h=[{provide:r.F4,deps:[r.Wf],useFactory:t=>{const e=new s.t(1);return Promise.all(t).then((t=>e.next(t))),e}},{provide:r.Y1,deps:[o.Qsj],useFactory:t=>t.createElement("div")},{provide:r.ZW,deps:[r.Y1,r.F4,r.bG],useFactory:(t,e,n)=>(0,a.aj)([n,e]).pipe((0,l.q)(1),(0,c.U)((([e,n])=>new e({element:t,extensions:n}))),(0,d.d)({bufferSize:1,refCount:!0}))},i.$3,u.Y]},22648:(t,e,n)=>{n.d(e,{Y:()=>r});var o=n(76480),i=n(74788);let r=(()=>{class t extends o.N9{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},31496:(t,e,n)=>{n.d(e,{j:()=>v});var o=n(97582),i=n(74788),r=n(24751),s=n(91211),a=n(76480),l=n(44358),c=n(52697),d=n(23917),u=n(98952),h=n(88320),p=n(79588),f=n(44691),m=n(221);function g(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Udp("background",t.background)}}function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-selector",5),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().value=e})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw();i.Q6J("tuiActiveZoneParent",t)("colors",n.colors)("color",n.value)}}class v extends a.M${constructor(t,e,n){super(t,e),this.domSanitizer=n,this.colors=new Map,this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return!!this.dropdown&&this.dropdown.focused}get background(){return this.sanitize(this.value,this.domSanitizer)}onClick(){this.open=!this.open}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}getFallbackValue(){return"#000000"}sanitize(t,e){return t.startsWith("linear-gradient(")?e.bypassSecurityTrustStyle((0,h.CH)((0,h._N)((0,h.U5)(t)))):t}}v.ɵfac=function(t){return new(t||v)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.H7))},v.ɵcmp=i.Xpm({type:v,selectors:[["tui-input-color"]],viewQuery:function(t,e){if(1&t&&(i.Gf(c.yc,5),i.Gf(d.o1,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.dropdown=t.first)}},hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.onClick()}))},inputs:{colors:"colors"},features:[i._Bn([],[(0,u.fx)({maxHeight:600})]),i.qOj],ngContentSelectors:["*"],decls:7,vars:12,consts:[[1,"t-wrapper",3,"content","open","openChange"],[1,"t-textfield",3,"tuiTextfieldIconLeft","pseudoFocus","pseudoHover","pseudoActive","invalid","focusable","nativeId","disabled","readOnly","value","valueChange","focusedChange"],["color",""],["picker",""],[1,"t-color"],[3,"tuiActiveZoneParent","colors","color","colorChange"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.Hsn(2),i.qZA(),i.qZA(),i.YNc(3,g,1,2,"ng-template",null,2,i.W1O),i.YNc(5,b,1,3,"ng-template",null,3,i.W1O)),2&t){const t=i.MAs(4),n=i.MAs(6);i.Q6J("content",n)("open",e.open),i.xp6(1),i.Q6J("tuiTextfieldIconLeft",t)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoActive",e.pseudoActive)("invalid",e.computedInvalid)("focusable",e.focusable)("nativeId",e.nativeId)("disabled",e.disabled)("readOnly",e.readOnly)("value",e.value)}},directives:[d.o1,c.yc,c.B1,p.aR,f.s,m.e],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0}),(0,o.gn)([l.UM],v.prototype,"sanitize",null)},20719:(t,e,n)=>{n.d(e,{X:()=>g});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(92668),d=n(23917),u=n(12628),h=n(90022);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("left")})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("center")})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("right")})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("justify")})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf;a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.left))("tuiHint",e.justifyLeft),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.center))("tuiHint",e.justifyCenter),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.right))("tuiHint",e.justifyRight),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.justify))("tuiHint",e.justifyFull)}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,p,5,8,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=a.MAs(1),e=a.MAs(4),n=a.oxw().ngIf;a.Q6J("content",e),a.xp6(2),a.Q6J("tuiHint",n.justify)("pseudoActive",t.open)("focusable",t.open)}}function m(t,e){if(1&t&&(a.ynx(0),a.YNc(1,f,5,4,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.alignState$))}}let g=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.alignState$=(0,r.aj)([this.editor.isActive$({textAlign:"left"}),this.editor.isActive$({textAlign:"right"}),this.editor.isActive$({textAlign:"center"}),this.editor.isActive$({textAlign:"justify"})]).pipe((0,s.U)((([t,e,n,o])=>({left:t,right:e,center:n,justify:o}))))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-align-content"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["align",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignLeftLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["alignDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignLeftLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignCenterLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignRightLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignJustifyLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,m,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.Ls,d.o1,u.v0,h.$o,h.D,h.xn,h.t6,h.DM],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},57289:(t,e,n)=>{n.d(e,{T:()=>m});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).index;return a.oxw(2).onCode(!!e)})),a._uU(1),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t," ")}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,p,2,1,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.codeOptionsTexts$))}}let m=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.codeOptionsTexts$=n,this.hintText$=this.texts$.pipe((0,r.U)((t=>t.code))),this.insideCode$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.isActive("code")||this.editor.isActive("codeBlock"))),(0,s.x)())}onCode(t){t?this.editor.toggleCodeBlock():this.editor.toggleCode()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.Mr))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-code"]],decls:7,vars:8,consts:[[3,"content"],["codes",""],["tuiIconButton","","type","button","size","s","icon","tuiIconCodeLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["codesDropdown",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.ALo(4,"async"),a.YNc(5,f,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(6);a.Q6J("content",n),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,4,e.hintText$))("pseudoActive",t.open||a.lcZ(4,6,e.insideCode$))("focusable",t.open)}},directives:[l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.vK],pipes:[h.Ov],encapsulation:2,changeDetection:0}),t})()},49382:(t,e,n)=>{n.d(e,{U:()=>h});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(12057),c=n(12628),d=n(90022);function u(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().removeDetails()})),a.ALo(1,"async"),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("tuiHint",t.removeDetails)("focusable",!1)("disabled",!!a.lcZ(1,3,n.disabled$))}}let h=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("details"))),(0,s.x)())}removeDetails(){this.editor.removeDetails()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-details-remove"]],decls:2,vars:3,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerDeleteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerDeleteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,u,2,5,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.v0,d.$o,d.D,d.xn,d.t6,d.DM],pipes:[l.Ov],encapsulation:2,changeDetection:0}),t})()},18885:(t,e,n)=>{n.d(e,{y:()=>d});var o=n(86114),i=n(71831),r=n(74788),s=n(12057),a=n(12628),l=n(90022);function c(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",1),r.NdJ("click",(function(){return r.CHM(t),r.oxw().setDetails()})),r.qZA()}if(2&t){const t=e.ngIf;r.Q6J("tuiHint",t.setDetails)("focusable",!1)}}let d=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e}setDetails(){this.editor.setDetails()}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.$3),r.Y36(i.rf))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-details"]],decls:2,vars:3,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","click"]],template:function(t,e){1&t&&(r.YNc(0,c,1,2,"button",0),r.ALo(1,"async")),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.texts$))},directives:[s.O5,a.v0,l.$o,l.D,l.xn,l.t6,l.DM],pipes:[s.Ov],encapsulation:2,changeDetection:0}),t})()},73688:(t,e,n)=>{n.d(e,{m:()=>g}),n(18939);var o=n(75675),i=n(86114),r=n(71831),s=n(88002),a=n(74788),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);const p=function(){return{}};function f(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).$implicit;return a.oxw(2).setFontOption(e)})),a.ALo(1,"lowercase"),a._uU(2),a.qZA()}if(2&t){const t=e.$implicit;a.Udp("font-family",t.family)("font-size",t.px,"px")("font-weight",t.weight),a.Q6J("ngClass",(null==t?null:t.ngClass)||a.DdM(12,p))("ngStyle",(null==t?null:t.ngStyle)||a.DdM(13,p)),a.uIk("automation-id","tui_font__"+a.lcZ(1,10,t.name||"")),a.xp6(2),a.hij(" ",t.name," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,f,3,14,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.fontsOptions$))}}let g=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.fontOptionsTexts$=o,this.fontsOptions$=this.fontOptionsTexts$.pipe((0,s.U)((t=>this.options.fontOptions(t)))),this.fontText$=this.texts$.pipe((0,s.U)((t=>t.font)))}onClick({headingLevel:t,px:e}){this.setFontOption({headingLevel:t,px:e})}setFontOption({headingLevel:t,px:e}){this.clearPreviousTextStyles(),t?this.editor.setHeading(t):this.editor.setParagraph({fontSize:(0,o.O)(e||0)})}clearPreviousTextStyles(){this.editor.removeEmptyTextStyle(),this.editor.toggleMark("textStyle")}}return t.ɵfac=function(e){return new(e||t)(a.Y36(r.mJ),a.Y36(i.$3),a.Y36(r.rf),a.Y36(r.UN))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-font-size"]],decls:6,vars:6,consts:[[3,"content"],["fonts",""],["tuiIconButton","","type","button","size","s","appearance","icon","icon","tuiIconFontLarge","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["fontsDropdown",""],["tuiOption","",3,"fontFamily","fontSize","fontWeight","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["tuiOption","",3,"ngClass","ngStyle","click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.YNc(4,m,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(5);a.Q6J("content",n),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,4,e.fontText$))("pseudoActive",t.open)("focusable",t.open)}},directives:[l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.vK,h.mk,h.PC],pipes:[h.Ov,h.i8],encapsulation:2,changeDetection:0}),t})()},81618:(t,e,n)=>{n.d(e,{h:()=>x});var o=n(18892),i=n(86114),r=n(95161),s=n(71831),a=n(9112),l=n(88002),c=n(74788),d=n(12057),u=n(23917),h=n(12628),p=n(90022);function f(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleBold()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.bold)("pseudoActive",t.bold)}}function m(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleItalic()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.italic)("pseudoActive",t.italic)}}function g(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",13),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleUnderline()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.underline)("pseudoActive",t.underline)}}function b(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",14),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleStrike()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.strikeThrough)("pseudoActive",t.strike)}}function v(t,e){if(1&t&&(c.TgZ(0,"div",6),c.YNc(1,f,1,2,"button",7),c.YNc(2,m,1,2,"button",8),c.YNc(3,g,1,2,"button",9),c.YNc(4,b,1,2,"button",10),c.qZA()),2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Bold)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Italic)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Underline)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Strikethrough))}}function y(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",2,3),c._UZ(2,"button",4),c.YNc(3,v,5,4,"ng-template",null,5,c.W1O),c.qZA()),2&t){const t=e.ngIf,n=c.MAs(1),o=c.MAs(4),i=c.oxw().ngIf;c.Q6J("content",o),c.xp6(2),c.Q6J("tuiHint",i.fontStyle)("pseudoActive",n.open||t.bold||t.italic||t.underline||t.strike)("focusable",n.open)}}function w(t,e){if(1&t&&(c.ynx(0),c.YNc(1,y,5,4,"tui-hosted-dropdown",1),c.ALo(2,"async"),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",c.lcZ(2,1,t.fontStyleState$))}}let x=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.toolsSet=new Set(o.Db),this.TuiEditorTool=r._,this.fontStyleState$=(0,a.aj)([this.editor.isActive$("bold"),this.editor.isActive$("italic"),this.editor.isActive$("underline"),this.editor.isActive$("strike")]).pipe((0,l.U)((([t,e,n,o])=>({bold:t,italic:e,underline:n,strike:o}))))}set enabledTools(t){this.toolsSet=new Set(t)}isEnabled(t){return this.toolsSet.has(t)}}return t.ɵfac=function(e){return new(e||t)(c.Y36(i.$3),c.Y36(s.rf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-font-style"]],inputs:{enabledTools:"enabledTools"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"ngIf"],[3,"content"],["format",""],["tuiIconButton","","type","button","size","s","icon","tuiIconFormatLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__font-style-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["formatDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconBoldLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconItalicLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconUnderlineLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconStrikeThroughLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconBoldLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconItalicLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconUnderlineLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconStrikeThroughLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"]],template:function(t,e){1&t&&(c.YNc(0,w,3,3,"ng-container",0),c.ALo(1,"async")),2&t&&c.Q6J("ngIf",c.lcZ(1,1,e.texts$))},directives:[d.O5,u.o1,h.v0,p.$o,p.D,p.xn,p.t6,p.DM],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},52187:(t,e,n)=>{n.d(e,{d:()=>u});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(12628),c=n(90022),d=n(12057);let u=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.insertGroupText$=this.texts$.pipe((0,r.U)((t=>t.insertGroup))),this.removeGroupText$=this.texts$.pipe((0,r.U)((t=>t.removeGroup))),this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("group"))),(0,s.x)())}addGroup(){this.editor.setGroup()}removeGroup(){this.editor.removeGroup()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-editor-group-tool"]],decls:5,vars:11,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconPlusLarge","appearance","icon","tuiHintDescribe","",3,"focusable","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconCloseLarge","appearance","icon","tuiHintDescribe","",3,"focusable","disabled","tuiHint","click"]],template:function(t,e){1&t&&(a.TgZ(0,"button",0),a.NdJ("click",(function(){return e.addGroup()})),a.ALo(1,"async"),a.qZA(),a.TgZ(2,"button",1),a.NdJ("click",(function(){return e.removeGroup()})),a.ALo(3,"async"),a.ALo(4,"async"),a.qZA()),2&t&&(a.Q6J("focusable",!1)("tuiHint",a.lcZ(1,5,e.insertGroupText$)),a.xp6(2),a.Q6J("focusable",!1)("disabled",!!a.lcZ(3,7,e.disabled$))("tuiHint",a.lcZ(4,9,e.removeGroupText$)))},directives:[l.v0,c.$o,c.D,c.xn,c.t6,c.DM],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},73545:(t,e,n)=>{n.d(e,{U:()=>y});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(221),d=n(23917),u=n(98952),h=n(12628),p=n(90022),f=n(12057),m=n(59113);function g(t,e){if(1&t&&a._UZ(0,"div",6),2&t){const t=a.oxw().tuiLet;a.Udp("background",t)}}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",7),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setBackgroundColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a.YNc(4,g,1,2,"div",4),a.YNc(5,b,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,6,i.backColorText$))("pseudoActive",n.open)("focusable",n.open),a.xp6(2),a.Q6J("ngIf",!i.isBlankColor(t||""))}}let y=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.defaultOptions=n,this.colors=this.defaultOptions.colors,this.backgroundColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getBackgroundColor()||this.defaultOptions.blankColor)),(0,s.x)()),this.backColorText$=this.texts$.pipe((0,r.U)((t=>t.backColor)))}isBlankColor(t){return t===this.defaultOptions.blankColor}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-highlight-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["hilite",""],["tuiIconButton","","type","button","size","s","tuiHintDirection","top-left","appearance","icon","icon","tuiIconHiliteLarge","automation-id","toolbar__hilite-button","tuiHintDescribe","",1,"t-tool",3,"tuiHint","pseudoActive","focusable"],["class","t-plate",3,"background",4,"ngIf"],["hiliteDropdown",""],[1,"t-plate"],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,v,7,8,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.backgroundColor$))},directives:[l.Ls,d.o1,u.Ek,h.v0,p.$o,p.D,p.xn,p.t6,p.DM,f.O5,m.R,c.e],pipes:[f.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},69867:(t,e,n)=>{n.d(e,{pu:()=>c,P_:()=>u,y9:()=>h,jP:()=>m,p7:()=>p,Zv:()=>f,XC:()=>y,Ur:()=>w,mp:()=>x,iA:()=>M,er:()=>S,__:()=>A,_t:()=>O}),n(20719);var o=n(12057),i=n(92668),r=n(23917),s=n(12628),a=n(90022),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,i.WD]]}),t})();n(57289);var d=n(75111);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,d.pc]]}),t})();n(18885);let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go]]}),t})();n(49382),n(73688);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,d.pc]]}),t})();n(81618);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go]]}),t})();n(52187);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go]]}),t})();n(73545);var g=n(221),b=n(98952),v=n(96472);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,v.VM,a.go,b.dp,g.A,i.WD]]}),t})();n(30928);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,i.WD]]}),t})();n(61899);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,v.VM,s.fN,a.go,g.A,b.dp,i.WD]]}),t})();n(76289);var k=n(1336);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,k.Ih]]}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,b.dp,s.fN,a.go,C]]}),t})();n(41218);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go,i.WD]]}),t})();n(34773);let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,a.go,s.fN,d.pc,i.WD]]}),t})();n(57891);let O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,r.jh,b.dp,a.go,v.VM,g.A,i.WD]]}),t})()},30928:(t,e,n)=>{n.d(e,{w:()=>g});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(92668),d=n(23917),u=n(12628),h=n(90022);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleUnorderedList()})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleOrderedList()})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).sinkListItem()})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).liftListItem()})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf;a.xp6(1),a.Q6J("tuiHint",e.unorderedList)("pseudoActive",!(null==t||!t.unordered)),a.xp6(1),a.Q6J("tuiHint",e.orderedList)("pseudoActive",!(null==t||!t.ordered)),a.xp6(1),a.Q6J("tuiHint",e.indent)("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered)),a.xp6(1),a.Q6J("tuiHint",e.outdent)("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered))}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,p,5,8,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(4),i=a.oxw().ngIf;a.Q6J("content",o),a.xp6(2),a.Q6J("tuiHint",i.list)("pseudoActive",(null==n?null:n.open)||(null==t?null:t.unordered)||(null==t?null:t.ordered)||!1)("focusable",n.open)}}function m(t,e){if(1&t&&(a.ynx(0),a.YNc(1,f,5,4,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.listState$))}}let g=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.listState$=(0,r.aj)([this.editor.isActive$("orderedList"),this.editor.isActive$("bulletList")]).pipe((0,s.U)((([t,e])=>({ordered:t,unordered:e}))))}sinkListItem(){this.editor.sinkListItem()}liftListItem(){this.editor.liftListItem()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-list-configs"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["list",""],["tuiIconButton","","type","button","size","s","icon","tuiIconListLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__ordering-list-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["listDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconListLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconOLLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconIndentLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","disabled","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconOutdentLarge","appearance","icon",1,"t-option",3,"tuiHint","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,m,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.Ls,d.o1,u.v0,h.$o,h.D,h.xn,h.t6,h.DM],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},61899:(t,e,n)=>{n.d(e,{p:()=>x});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(87519),l=n(74788),c=n(92668),d=n(221),u=n(23917),h=n(98952),p=n(12628),f=n(90022),m=n(12057),g=n(59113);function b(t,e){if(1&t&&l._UZ(0,"div",7),2&t){const t=l.oxw(2).tuiLet;l.Udp("background",t)}}function v(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-palette",8),l.NdJ("selectedColor",(function(e){l.CHM(t),l.oxw();const n=l.MAs(1);return l.oxw(2).setCellColor(e),n.close()})),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(3);l.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function y(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",2,3),l._UZ(2,"button",4),l.ALo(3,"async"),l.YNc(4,b,1,2,"div",5),l.YNc(5,v,1,2,"ng-template",null,6,l.W1O),l.qZA()),2&t){const t=e.tuiLet,n=l.MAs(1),o=l.MAs(6),i=l.oxw().tuiLet,r=l.oxw();l.Q6J("content",o)("tuiDropdownMaxHeight",999)("canOpen",!!t),l.xp6(2),l.Q6J("tuiHint",l.lcZ(3,8,r.colorText$))("pseudoActive",n.open)("focusable",n.open)("disabled",!t),l.xp6(2),l.Q6J("ngIf",!r.isBlankColor(i||""))}}function w(t,e){if(1&t&&(l.ynx(0),l.YNc(1,y,7,10,"tui-hosted-dropdown",1),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,1,t.isActive$))}}let x=(()=>{class t{constructor(t,e,n){this.defaultOptions=t,this.editor=e,this.texts$=n,this.colors=this.defaultOptions.colors,this.colorText$=this.texts$.pipe((0,s.U)((t=>this.editor.isActive("group")&&t.hiliteGroup||this.editor.isActive("table")&&t.cellColor||""))),this.isActive$=(0,r.aj)([this.editor.isActive$("table"),this.editor.isActive$("group")]).pipe((0,s.U)((([t,e])=>t||e))),this.color$=this.editor.stateChange$.pipe((0,s.U)((()=>this.editor.getCellColor()||this.editor.getGroupColor()||this.defaultOptions.blankColor)),(0,a.x)())}isBlankColor(t){return t===this.defaultOptions.blankColor}setCellColor(t){this.editor.isActive("group")?this.editor.setGroupHilite(t):this.editor.isActive("table")&&this.editor.setCellColor(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.mJ),l.Y36(o.$3),l.Y36(i.rf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-table-cell-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[4,"tuiLet"],[3,"content","tuiDropdownMaxHeight","canOpen",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight","canOpen"],["colorSelect",""],["tuiIconButton","","type","button","size","s","tuiHintDirection","top-left","appearance","icon","icon","tuiIconPaintLarge","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable","disabled"],["class","t-plate t-plate_paint",3,"background",4,"ngIf"],["cellColorDropdown",""],[1,"t-plate","t-plate_paint"],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(l.YNc(0,w,3,3,"ng-container",0),l.ALo(1,"async")),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.color$))},directives:[c.Ls,u.o1,h.Ek,p.v0,f.$o,f.D,f.xn,f.t6,f.DM,m.O5,g.R,d.e],pipes:[m.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},76289:(t,e,n)=>{n.d(e,{l:()=>y});var o=n(86114),i=n(71831),r=n(88002),s=n(74788),a=n(23917),l=n(98952),c=n(12628),d=n(90022),u=n(62579),h=n(47766),p=n(1336);function f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",4),s.NdJ("mouseenter",(function(e){const n=s.CHM(t).$implicit,o=s.oxw().$implicit;return s.oxw().updateCurrentSize(n+1,o+1,e)}))("click",(function(){return s.CHM(t),s.oxw(2).select()})),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw().$implicit,o=s.oxw();s.ekj("t-cell_hovered",o.tableSelectHovered(t,n))}}function m(t,e){if(1&t&&(s.TgZ(0,"div",2),s.YNc(1,f,1,2,"div",3),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("tuiRepeatTimesOf",t.rowsNumber)}}let g=(()=>{class t{constructor(t){this.win=t,this.selectSize=new s.vpe,this.onSelectSize=this.selectSize,this.tableSize={rows:1,cols:1}}get columnsNumber(){return Math.min(Math.max(3,this.tableSize.cols+1),15)}get rowsNumber(){return Math.min(Math.max(3,this.tableSize.rows+1),15)}tableSelectHovered(t,e){return t70&&(this.tableSize={rows:t,cols:e})}onClick(){this.select()}select(){this.selectSize.emit(this.tableSize)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(u.m9))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-size-selector"]],outputs:{selectSize:"selectSize",onSelectSize:"onSelectSize"},decls:3,vars:3,consts:[["class","t-column",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-description"],[1,"t-column"],["class","t-cell",3,"t-cell_hovered","mouseenter","click",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-cell",3,"mouseenter","click"]],template:function(t,e){1&t&&(s.YNc(0,m,2,1,"div",0),s.TgZ(1,"div",1),s._uU(2),s.qZA()),2&t&&(s.Q6J("tuiRepeatTimesOf",e.columnsNumber),s.xp6(2),s.AsE("",e.tableSize.cols,"×",e.tableSize.rows,""))},directives:[p.Xj],styles:["[_nghost-%COMP%]{display:block;padding:.75rem}.t-cell[_ngcontent-%COMP%]{display:inline-block;background-color:var(--tui-base-01);width:1.25rem;height:1.25rem;border-radius:.25rem;margin:.125rem;border:1px solid var(--tui-base-04);cursor:pointer}.t-cell_hovered[_ngcontent-%COMP%]{background-color:var(--tui-base-02)}.t-column[_ngcontent-%COMP%]{white-space:nowrap}.t-description[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})();var b=n(12057);function v(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tui-table-size-selector",4),s.NdJ("onSelectSize",(function(e){return s.CHM(t),s.oxw().addTable(e)})),s.qZA()}}let y=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.insertTableText$=this.texts$.pipe((0,r.U)((t=>t.insertTable)))}addTable({rows:t,cols:e}){this.editor.enter();const n=this.editor.state.selection.anchor;this.editor.enter(),this.editor.enter(),this.editor.setTextSelection(n),this.editor.insertTable(t,e)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(o.$3),s.Y36(i.rf))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-create"]],decls:6,vars:5,consts:[["tuiDropdownAlign","left","tuiDropdownDirection","bottom",3,"content"],["table",""],["tuiIconButton","","type","button","size","s","icon","tuiIconTableLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable"],["tableDropdown",""],[3,"onSelectSize"]],template:function(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",0,1),s._UZ(2,"button",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,v,1,0,"ng-template",null,3,s.W1O)),2&t){const t=s.MAs(1),n=s.MAs(5);s.Q6J("content",n),s.xp6(2),s.Q6J("tuiHint",s.lcZ(3,3,e.insertTableText$))("focusable",t.open)}},directives:[a.o1,l.Ek,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,g],pipes:[b.Ov],encapsulation:2,changeDetection:0}),t})()},41218:(t,e,n)=>{n.d(e,{Y:()=>m});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(12057),d=n(12628),u=n(90022);function h(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",(function(){a.CHM(t);const e=a.oxw().tuiLet,n=a.oxw();return e.mergeCells?n.mergeCells():n.splitCell()})),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw().tuiLet;a.Q6J("icon",n.mergeCells?"tuiIconTableMergeLarge":"tuiIconTableSplitLarge")("tuiHint",n.mergeCells?t.mergeCells:t.splitCells)("focusable",!1)("disabled",!n.mergeCells&&!n.splitCells)}}function p(t,e){if(1&t&&(a.ynx(0),a.YNc(1,h,1,4,"button",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,t.texts$))}}const f=function(t,e){return{mergeCells:t,splitCells:e}};let m=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.canMergeCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canMergeCells())),(0,s.x)()),this.canSplitCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canSplitCells())),(0,s.x)())}mergeCells(){this.editor.mergeCells()}splitCell(){this.editor.splitCell()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-table-merge-cells"]],decls:3,vars:8,consts:[[4,"tuiLet"],["tuiIconButton","","type","button","size","s","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"icon","tuiHint","focusable","disabled","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"icon","tuiHint","focusable","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,p,3,3,"ng-container",0),a.ALo(1,"async"),a.ALo(2,"async")),2&t&&a.Q6J("tuiLet",a.WLB(5,f,a.lcZ(1,1,e.canMergeCells$),a.lcZ(2,3,e.canSplitCells$)))},directives:[l.Ls,c.O5,d.v0,u.$o,u.D,u.xn,u.t6,u.DM],pipes:[c.Ov],encapsulation:2,changeDetection:0}),t})()},34773:(t,e,n)=>{n.d(e,{_:()=>v});var o=n(86114),i=n(71831),r=n(88002),s=n(74788),a=n(92668),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);function p(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",2,3),s._UZ(2,"button",4),s.ALo(3,"async"),s.qZA()),2&t){const t=e.tuiLet,n=s.MAs(1),o=s.oxw(),i=s.MAs(3);s.Q6J("content",i)("canOpen",!!t),s.xp6(2),s.Q6J("tuiHint",s.lcZ(3,5,o.rowsColumnsManagingText$))("focusable",n.open)("disabled",!t)}}function f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",(function(){const e=s.CHM(t).index,n=s.oxw().index;return s.oxw(2).onTableOption(2*n+e)})),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function m(t,e){if(1&t&&(s.TgZ(0,"tui-opt-group"),s.YNc(1,f,2,1,"button",6),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t)}}function g(t,e){if(1&t&&(s.TgZ(0,"tui-data-list"),s.YNc(1,m,2,1,"tui-opt-group",5),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,t.tableCommandTexts$))}}var b=(()=>(function(t){t[t.InsertColumnBefore=0]="InsertColumnBefore",t[t.InsertColumnAfter=1]="InsertColumnAfter",t[t.InsertRowBefore=2]="InsertRowBefore",t[t.InsertRowAfter=3]="InsertRowAfter",t[t.DeleteColumn=4]="DeleteColumn",t[t.DeleteRow=5]="DeleteRow"}(b||(b={})),b))();let v=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.tableCommandTexts$=n,this.commandsRegistry={[b.InsertColumnAfter]:()=>this.editor.addColumnAfter(),[b.InsertColumnBefore]:()=>this.editor.addColumnBefore(),[b.InsertRowAfter]:()=>this.editor.addRowAfter(),[b.InsertRowBefore]:()=>this.editor.addRowBefore(),[b.DeleteColumn]:()=>this.editor.deleteColumn(),[b.DeleteRow]:()=>this.editor.deleteRow()},this.isActive$=this.editor.isActive$("table"),this.rowsColumnsManagingText$=this.texts$.pipe((0,r.U)((t=>t.rowsColumnsManaging)))}onTableOption(t){this.commandsRegistry[t]()}}return t.ɵfac=function(e){return new(e||t)(s.Y36(o.$3),s.Y36(i.rf),s.Y36(i.$i))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-row-column-manager"]],decls:4,vars:3,consts:[[3,"content","canOpen",4,"tuiLet"],["tableOptionsDropdown",""],[3,"content","canOpen"],["tableCommand",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAddRowLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled"],[4,"ngFor","ngForOf"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,p,4,7,"tui-hosted-dropdown",0),s.ALo(1,"async"),s.YNc(2,g,3,3,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("tuiLet",s.lcZ(1,1,e.isActive$))},directives:[a.Ls,l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.Rs,u.vK],pipes:[h.Ov],encapsulation:2,changeDetection:0}),t})()},57891:(t,e,n)=>{n.d(e,{G:()=>v});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(221),d=n(23917),u=n(98952),h=n(12628),p=n(90022),f=n(59113),m=n(12057);function g(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",6),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setFontColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function b(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a._UZ(4,"div",4),a.YNc(5,g,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,7,i.foreColorText$))("pseudoActive",n.open)("focusable",n.open),a.xp6(2),a.Udp("background",t)}}let v=(()=>{class t{constructor(t,e,n){this.defaultOptions=t,this.editor=e,this.texts$=n,this.colors=this.defaultOptions.colors,this.fontColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getFontColor()||this.defaultOptions.blankColor)),(0,s.x)()),this.foreColorText$=this.texts$.pipe((0,r.U)((t=>t.foreColor)))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-text-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["color",""],["tuiIconButton","","type","button","size","s","icon","tuiIconColorLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__color-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],[1,"t-plate"],["colorDropdown",""],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,b,7,9,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.fontColor$))},directives:[l.Ls,d.o1,u.Ek,h.v0,p.$o,p.D,p.xn,p.t6,p.DM,f.R,c.e],pipes:[m.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},51618:(t,e,n)=>{n.d(e,{M6:()=>o.M,yB:()=>p});var o=n(22580),i=n(12057),r=n(13633),s=n(56210),a=n(90022),l=n(12628),c=n(23917),d=n(8674),u=n(69867),h=n(74788);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=h.oAB({type:t}),t.ɵinj=h.cJS({imports:[[i.ez,a.go,r.u,l.fN,c.jh,d.Fu,u.er,u.mp,u.__,u.iA,u.p7,u.Zv,u.pu,u.Ur,u._t,u.XC,u.P_,u.y9,s.H,u.jP]]}),t})()},22580:(t,e,n)=>{n.d(e,{M:()=>ft});var o=n(74788),i=n(33770),r=n(57179),s=(n(18939),n(63658)),a=n(18892),l=n(86114),c=n(95161),d=n(71831),u=n(15257),h=n(46782),p=n(85648);let f=(()=>{class t{constructor(t){this.el=t}get toolsContainers(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiItem]"))}onHorizontalNavigation(t){const{toolsContainers:e}=this,n=e.findIndex(r.zb),o=e[(0,p.Ki)(n+(t?-1:1),0,e.length-1)],i=t?this.findPreviousTool(o):this.findNextTool(o);i&&i.focus()}findFirstFocusableTool(t=!1){const e=t?this.toolsContainers.slice().reverse():this.toolsContainers;for(const t of e){const e=(0,r._h)(t)?t:(0,r.BW)({initial:t,root:t,keyboard:!1});if(e)return e}return null}findPreviousTool(t){return(0,r._h)(t)?t:(0,r.BW)({initial:t,root:t,keyboard:!1})||(0,r.BW)({initial:t,root:this.el.nativeElement,previous:!0,keyboard:!1})}findNextTool(t){return(0,r._h)(t)?t:(0,r.BW)({initial:t,root:this.el.nativeElement,keyboard:!1})}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiToolbarNavigationManager",""]],hostBindings:function(t,e){1&t&&o.NdJ("keydown.arrowRight.prevent",(function(){return e.onHorizontalNavigation(!1)}))("keydown.arrowLeft.prevent",(function(){return e.onHorizontalNavigation(!0)}))}}),t})();var m=n(12057),g=n(13633),b=n(56210),v=n(12628),y=n(90022),w=n(23917),x=n(73688),k=n(81618),C=n(20719),M=n(30928),S=n(41039),A=n(57891),O=n(73545),T=n(57289),N=n(18885),E=n(49382),I=n(52187),D=n(61899),P=n(76289),H=n(34773),L=n(41218);const _=["dropdown"];function R(t,e){1&t&&o.GkF(0)}function z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",7),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).undo()})),o.qZA(),o.TgZ(2,"button",8),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).redo()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("tuiHint",t.undo)("disabled",e.undoDisabled)("focusable",!1),o.xp6(1),o.Q6J("tuiHint",t.redo)("disabled",e.redoDisabled)("focusable",!1)}}function $(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-font-size",9),o.qZA())}function B(t,e){if(1&t&&o._UZ(0,"tui-font-style",15),2&t){const t=o.oxw(3);o.Q6J("enabledTools",t.toolsSet)}}function F(t,e){1&t&&o._UZ(0,"tui-align-content",9)}function J(t,e){1&t&&o._UZ(0,"tui-list-configs",9)}function Z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleQuote()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.quote)("pseudoActive",e.blockquote)("disabled",e.unorderedList||e.orderedList)("focusable",!1)}}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",22,23),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).onLink(n,e)}))("removeLink",(function(){o.CHM(t),o.oxw();const e=o.MAs(1);return o.oxw(3).onLink(e)})),o.qZA()}}function q(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",18,19),o._UZ(2,"button",20,17),o.YNc(4,j,2,0,"ng-template",null,21,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(5),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("tuiHint",n.link)("pseudoActive",t.open||i.a)("focusable",t.open)}}function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",28),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).setAnchor(n,e)}))("removeLink",(function(){return o.CHM(t),o.oxw(4).removeAnchor()})),o.qZA()}2&t&&o.Q6J("anchorMode",!0)}function V(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",24,25),o._UZ(2,"button",26),o.YNc(3,Y,1,1,"ng-template",null,27,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(4),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",!1)("pseudoActive",t.open||i.jumpAnchor)("tuiHint",n.insertAnchor)}}function U(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",30,31),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onAttach(e)})),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("tuiHint",t.attach)("focusable",!1),o.xp6(2),o.Q6J("accept",e.attachOptions.accept)("multiple",e.attachOptions.multiple)("tuiFocusable",!1)}}function W(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,B,1,1,"tui-font-style",10),o.YNc(2,F,1,0,"tui-align-content",11),o.YNc(3,J,1,0,"tui-list-configs",11),o.YNc(4,Z,2,4,"button",12),o.YNc(5,q,6,5,"tui-hosted-dropdown",13),o.YNc(6,V,5,5,"tui-hosted-dropdown",14),o.YNc(7,U,5,5,"ng-container",1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.formatEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Align)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.List)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Quote)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Link)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Anchor)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Attach))}}function Q(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",34,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSubscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.subscript)("pseudoActive",e.subscript)("focusable",!1)}}function K(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",35,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSuperscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.superscript)("pseudoActive",e.superscript)("focusable",!1)}}function G(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,Q,2,3,"button",32),o.YNc(2,K,2,3,"button",33),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sub)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sup))}}function X(t,e){if(1&t&&o._UZ(0,"tui-text-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function tt(t,e){if(1&t&&o._UZ(0,"tui-highlight-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function et(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,X,1,1,"tui-text-color",36),o.YNc(2,tt,1,1,"tui-highlight-color",36),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Color)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Hilite))}}function nt(t,e){1&t&&o._UZ(0,"tui-code",9)}function ot(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",41,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).onTeX()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.Q6J("tuiHint",t.tex)("focusable",!1)}}function it(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",42),o.TgZ(1,"button",43,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",44,45),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onImage(e)})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.xp6(1),o.Q6J("tuiHint",t.image)("focusable",!1),o.xp6(2),o.Q6J("tuiFocusable",!1)}}function rt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",46,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).insertHorizontalRule()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.Q6J("tuiHint",t.insertHorizontalRule)("focusable",!1)}}function st(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,nt,1,0,"tui-code",11),o.YNc(2,ot,2,2,"button",38),o.YNc(3,it,5,3,"div",39),o.YNc(4,rt,2,2,"button",40),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Code)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Tex)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Img)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.HR))}}function at(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",47,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).removeFormat()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf;o.xp6(1),o.Q6J("tuiHint",t.clear)("focusable",!1)}}function lt(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-details",48),o._UZ(2,"tui-details-remove",48),o.qZA())}function ct(t,e){if(1&t&&o._UZ(0,"tui-table-cell-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function dt(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-editor-group-tool",48),o.YNc(2,ct,1,1,"tui-table-cell-color",36),o.qZA()),2&t){const t=o.oxw(2);o.xp6(2),o.Q6J("ngIf",!t.enabled(t.TuiEditorTool.Table))}}function ut(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-table-create",48),o._UZ(2,"tui-table-row-column-manager",48),o._UZ(3,"tui-table-merge-cells",48),o._UZ(4,"tui-table-cell-color",37),o.qZA()),2&t){const t=o.oxw(2);o.xp6(4),o.Q6J("colors",t.colors)}}function ht(t,e){if(1&t&&(o.TgZ(0,"section",4),o.YNc(1,z,3,6,"div",5),o.YNc(2,$,2,0,"div",5),o.YNc(3,W,8,7,"div",5),o.YNc(4,G,3,2,"div",5),o.YNc(5,et,3,2,"div",5),o.YNc(6,st,5,4,"div",5),o.YNc(7,at,3,2,"div",5),o.YNc(8,lt,3,0,"div",5),o.YNc(9,dt,3,1,"div",5),o.YNc(10,ut,5,1,"div",5),o.TgZ(11,"div",6),o.Hsn(12),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Undo)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Size)),o.xp6(1),o.Q6J("ngIf",t.firstBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sub)||t.enabled(t.TuiEditorTool.Sup)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Color)||t.enabled(t.TuiEditorTool.Hilite)),o.xp6(1),o.Q6J("ngIf",t.secondBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Clear)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Details)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Group)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Table))}}const pt=["*"];let ft=(()=>{class t{constructor(t,e,n,r,s,l,d,u){this.el=t,this.editor=e,this.imageLoader=n,this.attachOptions=r,this.filesLoader=s,this.texts$=l,this.defaultOptions=d,this.destroy$=u,this.dropdowns=i.Mm,this.colors=this.defaultOptions.colors,this.disabled=!1,this.linkAdded=new o.vpe,this.texClicked=new o.vpe,this.fileAttached=new o.vpe,this.TuiEditorTool=c._,this.toolsSet=new Set(a.Db)}set tools(t){this.toolsSet=new Set(t)}get focused(){return(0,r.zb)(this.el.nativeElement)||!!this.dropdowns.find((({nativeElement:t})=>(0,r.zb)(t)))}get focusable(){return!this.focused&&!this.disabled}get unorderedList(){return this.editor.isActive("bulletList")}get orderedList(){return this.editor.isActive("orderedList")}get blockquote(){return this.editor.isActive("blockquote")}get a(){return this.editor.isActive("link")}get jumpAnchor(){return this.editor.isActive("jumpAnchor")}get canOpenAnchor(){return!this.a&&!this.jumpAnchor}get undoDisabled(){return this.editor.undoDisabled()}get redoDisabled(){return this.editor.redoDisabled()}get subscript(){return this.editor.isActive("subscript")}get superscript(){return this.editor.isActive("superscript")}get formatEnabled(){return this.enabled(c._.Bold)||this.enabled(c._.Italic)||this.enabled(c._.Underline)||this.enabled(c._.Strikethrough)}get firstBigBlockEnabled(){return this.formatEnabled||this.enabled(c._.Align)||this.enabled(c._.List)||this.enabled(c._.Quote)||this.enabled(c._.Link)||this.enabled(c._.Anchor)||this.enabled(c._.Attach)}get secondBigBlockEnabled(){return this.enabled(c._.Code)||this.enabled(c._.Tex)||this.enabled(c._.Img)||this.enabled(c._.HR)}onMouseDown(t,e){e.closest("button")||(t.preventDefault(),this.editor.focus())}onBottomFocus(){this.focusLast()}onTopFocus(){this.focusFirst()}onImage(t){var e;const n=null===(e=t.files)||void 0===e?void 0:e[0];t.value="",n&&this.imageLoader(n).pipe((0,u.q)(1),(0,h.R)(this.destroy$)).subscribe((t=>this.addImage(t)))}onAttach(t){var e;const n=Array.from(t.files||[]);t.value="",n&&(null===(e=this.filesLoader)||void 0===e||e.call(this,n).pipe((0,u.q)(1),(0,h.R)(this.destroy$)).subscribe((t=>this.fileAttached.emit(t))))}onTeX(){this.texClicked.emit()}onLink(t,e){t.open=!1,e&&this.editor.toggleLink(e)}setAnchor(t,e){t.open=!1,e&&(this.editor.setAnchor(e),this.editor.selectClosest())}removeAnchor(){this.editor.removeAnchor()}enabled(t){return this.toolsSet.has(t)}undo(){this.editor.undo()}redo(){this.editor.redo()}insertHorizontalRule(){this.editor.setHorizontalRule()}removeFormat(){this.editor.removeFormat()}toggleOrderedList(){this.editor.toggleOrderedList()}toggleQuote(){this.editor.toggleBlockquote()}toggleSubscript(){this.editor.toggleSubscript()}toggleSuperscript(){this.editor.toggleSuperscript()}addImage(t){this.editor.setImage(t)}focusFirst(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool();e&&e.focus()}focusLast(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool(!0);e&&e.focus()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq,8),o.Y36(l.$3),o.Y36(d.p7),o.Y36(d.dR),o.Y36(d.zc,8),o.Y36(d.rf),o.Y36(d.mJ),o.Y36(s.a3,2))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-toolbar"]],viewQuery:function(t,e){if(1&t&&(o.Gf(f,5),o.Gf(_,5,o.SBq)),2&t){let t;o.iGM(t=o.CRH())&&(e.navigationManager=t.first),o.iGM(t=o.CRH())&&(e.dropdowns=t)}},hostAttrs:["role","toolbar"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",(function(t){return e.onMouseDown(t,t.target)})),2&t&&o.ekj("_disabled",e.disabled)},inputs:{colors:"colors",disabled:"disabled",tools:"tools"},outputs:{linkAdded:"linkAdded",texClicked:"texClicked",fileAttached:"fileAttached"},features:[o._Bn([s.a3])],ngContentSelectors:pt,decls:7,vars:8,consts:[["type","button",1,"t-prevent-parent-label-behavior"],[4,"ngIf"],[3,"tuiFocusable","focus"],["tuiToolbarNavigationManager","","class","t-tools-wrapper",4,"ngIf"],["tuiToolbarNavigationManager","",1,"t-tools-wrapper"],["class","t-block",4,"ngIf"],[1,"t-block"],["tuiItem","","tuiIconButton","","type","button","size","s","icon","tuiIconUndoLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","disabled","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconRedoLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","disabled","focusable","click"],["tuiItem","",1,"t-tool","t-wrapper"],["tuiItem","","class","t-tool t-wrapper",3,"enabledTools",4,"ngIf"],["tuiItem","","class","t-tool t-wrapper",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconQuoteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","disabled","focusable","click",4,"ngIf"],["tuiItem","","class","t-wrapper",3,"canOpen","content",4,"ngIf"],["class","t-wrapper",3,"canOpen","content",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"enabledTools"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconQuoteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","disabled","focusable","click"],["button",""],["tuiItem","",1,"t-wrapper",3,"canOpen","content"],["link",""],["tuiIconButton","","type","button","size","s","icon","tuiIconLinkLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","pseudoActive","focusable"],["linkDropdown",""],[3,"addLink","removeLink"],["dropdown",""],[1,"t-wrapper",3,"canOpen","content"],["anchor",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAnchorLarge","tuiHintDirection","top-left","appearance","icon","tuiHintDescribe","",3,"focusable","pseudoActive","tuiHint"],["anchorDropdown",""],[3,"anchorMode","addLink","removeLink"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconPaperclipLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["type","file",1,"t-file-upload",3,"accept","multiple","tuiFocusable","change"],["fileUpload",""],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSubscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSuperscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSubscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSuperscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","focusable","click"],["tuiItem","","class","t-tool t-wrapper",3,"colors",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"colors"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconTeXLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool",3,"tuiHint","focusable","click",4,"ngIf"],["tuiItem","","class","t-wrapper",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconHrLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconTeXLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","focusable","click"],["tuiItem","",1,"t-wrapper"],["tuiIconButton","","type","button","size","s","icon","tuiIconImageLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","focusable","click"],["type","file","accept","image/*",1,"t-image",3,"tuiFocusable","change"],["image",""],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconHrLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconClearFormatLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["tuiItem","",1,"t-tool","t-tool_margin"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"button",0),o.YNc(1,R,1,0,"ng-container",1),o.ALo(2,"async"),o.TgZ(3,"div",2),o.NdJ("focus",(function(){return e.onTopFocus()})),o.qZA(),o.TgZ(4,"div",2),o.NdJ("focus",(function(){return e.onBottomFocus()})),o.qZA(),o.YNc(5,ht,13,10,"section",3),o.ALo(6,"async")),2&t&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,4,e.editor.stateChange$)),o.xp6(2),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("ngIf",o.lcZ(6,6,e.texts$)))},directives:[m.O5,g.t,f,v.v0,b.w,y.$o,y.D,y.xn,y.t6,y.DM,x.m,k.h,C.X,M.w,w.o1,S.l,A.G,O.U,T.T,N.y,E.U,I.d,D.p,P.l,H._,L.Y],pipes:[m.Ov],styles:['.t-tools-wrapper[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;display:flex;padding:.25rem .75rem;overflow:auto;flex-wrap:wrap;box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}.t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar, .t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-tools-wrapper._disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-block[_ngcontent-%COMP%]{display:flex;padding:.25rem 0}.t-block[_ngcontent-%COMP%]:not(:last-child):after{content:"";display:block;margin:0 .25rem;width:1px;background:var(--tui-secondary-active)}.t-tool[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}button.t-tool[_ngcontent-%COMP%]:hover, .t-tool[_ngcontent-%COMP%] button:hover{background:var(--tui-secondary-hover)}.t-tool_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-font[_ngcontent-%COMP%]{padding:.3em 0;outline:none;width:100%;pointer-events:none}.t-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:0;opacity:0;cursor:pointer}.t-image[_ngcontent-%COMP%]::-webkit-file-upload-button{display:none}.t-file-upload[_ngcontent-%COMP%]{display:none}.t-color-picker[_ngcontent-%COMP%] tui-hosted-dropdown, .t-color-picker[_ngcontent-%COMP%] tui-color-picker, .t-color-picker[_ngcontent-%COMP%] tui-color-edit{display:none}.t-prevent-parent-label-behavior[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})()},18892:(t,e,n)=>{n.d(e,{hK:()=>i,pH:()=>l,pL:()=>p,_s:()=>c,Ci:()=>d,jU:()=>h,DN:()=>u,sw:()=>o,Db:()=>s,RR:()=>a});const o=new Map([["transparent","transparent"],["color-black-300","#333333"],["color-black-200","#666666"],["color-black-100","#909090"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"]]),i="rgb(51, 51, 51)";var r=n(95161);const s=[r._.Undo,r._.Size,r._.Bold,r._.Italic,r._.Underline,r._.Align,r._.List,r._.Quote,r._.Link,r._.Anchor,r._.Color,r._.Hilite,r._.Clear,r._.Strikethrough,r._.Code,r._.Img,r._.HR,r._.Sup,r._.Sub,r._.Table,r._.Details];function a(t){return[{px:13,name:t.small},{px:15,name:t.normal},{px:17,name:t.large},{px:24,family:"var(--tui-font-heading)",name:t.subtitle,headingLevel:2,weight:"bold"},{px:30,family:"var(--tui-font-heading)",name:t.title,headingLevel:1,weight:"bold"}]}const l=["id","class","src","style","controls","loop","muted","preload","autoplay","width","height","controlsList"],c="#",d="https://",u=":",h="://",p={protocol:d}},86114:(t,e,n)=>{n.d(e,{BN:()=>i,JU:()=>r.JU,mJ:()=>r.mJ,$3:()=>r.$3});var o=n(74788);let i=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var r=n(79698)},79698:(t,e,n)=>{n.d(e,{JU:()=>o.J,mJ:()=>r,$3:()=>s.$});var o=n(87429),i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var s=n(26710)},87429:(t,e,n)=>{n.d(e,{J:()=>l});var o=n(74788),i=n(63658),r=n(71831),s=n(46782),a=n(26710);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.editor=n,this.editorContainer=o,this.editorLoaded$=i,this.valueChange=this.editor.valueChange$,this.stateChange=this.editor.stateChange$,this.editorLoaded$.pipe((0,s.R)(r)).subscribe((()=>{this.renderer.appendChild(this.el.nativeElement,this.editorContainer)}))}set value(t){this.editor.setValue(t)}set editable(t){this.editor.editable=t}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(a.$),o.Y36(r.Y1),o.Y36(r.ZW),o.Y36(i.a3,2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiTiptapEditor",""]],inputs:{value:"value",editable:"editable"},outputs:{valueChange:"valueChange",stateChange:"stateChange"},features:[o._Bn([i.a3])]}),t})()},26710:(t,e,n)=>{n.d(e,{$:()=>f});var o=n(75675),i=n(79765),r=n(74788);let s=(()=>{class t{constructor(){this.stateChange$=new i.xQ,this.valueChange$=new i.xQ}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t}),t})();var a=n(18892),l=n(71831),c=n(88320),d=n(62463),u=n(39761),h=n(88002),p=n(87519);let f=(()=>{class t extends s{constructor(t){super(),this.editorRef=t,this.editorRef.subscribe((t=>{this.editor=t,t.on("transaction",(()=>{this.stateChange$.next()})),t.on("update",(()=>{const e=t.getHTML(),n=(o=t.getJSON().content,Array.isArray(o)&&1===o.length&&"paragraph"===o[0].type&&!o[0].hasOwnProperty("content")?"":e);var o;this.valueChange$.next(n)}))}))}get isFocused(){return this.editor.isFocused}get html(){return this.editor.getHTML()}get editable(){return this.editor.isEditable}set editable(t){this.editor.setEditable(t)}get state(){return this.editor.state}getOriginTiptapEditor(){return this.editor}undoDisabled(){return!this.editor.can().undo()}redoDisabled(){return!this.editor.can().redo()}getFontColor(){return this.editor.getAttributes("textStyle").fontColor||a.hK}getFontSize(){return parseInt(this.editor.getAttributes("textStyle").fontSize,10)}setFontSize(t){this.editor.chain().setMark("textStyle",{fontSize:(0,o.O)(t)}).run()}getBackgroundColor(){var t;return(null===(t=this.editor)||void 0===t?void 0:t.getAttributes("textStyle").backgroundColor)||"transparent"}getCellColor(){return this.editor.getAttributes("tableCell").background||this.editor.getAttributes("tableHeader").background}getGroupColor(){var t,e,n,o;if(this.editor.isActive("group")){const i=null!==(e=null===(t=this.editor.getAttributes("group"))||void 0===t?void 0:t.style)&&void 0!==e?e:"",r=(0,c.jx)(i);return null!==(o=null!==(n=r["background-color"])&&void 0!==n?n:r.background)&&void 0!==o?o:""}return""}onAlign(t){this.editor.chain().focus().setTextAlign(t).run()}setImage(t){this.editor.chain().focus().command((({commands:e,state:n})=>{var o;const i=null!==(o=e.setEditableImage)&&void 0!==o?o:e.setImage;if(i){const o=n.selection.anchor;return i({src:t}),e.setTextSelection(o),!0}return!1})).run()}undo(){this.editor.chain().undo().run()}redo(){this.editor.chain().redo().run()}setHorizontalRule(){this.editor.chain().focus().setHorizontalRule().run()}removeFormat(){this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}setFontColor(t){this.editor.chain().focus().setFontColor(t).run()}setBackgroundColor(t){this.editor.chain().focus().setBackgroundColor(t).run()}toggleUnderline(){this.editor.chain().focus().toggleUnderline().run()}toggleStrike(){this.editor.chain().focus().toggleStrike().run()}toggleOrderedList(){this.editor.chain().focus().toggleOrderedList().run()}toggleUnorderedList(){this.editor.chain().focus().toggleBulletList().run()}togglePre(){this.editor.chain().focus().toggleCodeBlock().run()}sinkListItem(){this.editor.chain().focus().sinkListItem("listItem").run()}liftListItem(){this.editor.chain().focus().liftListItem("listItem").run()}isActive(t){return this.editor.isActive(t)}isActive$(t){return this.stateChange$.pipe((0,u.O)(null),(0,h.U)((()=>this.isActive(t))),(0,p.x)())}toggleBold(){this.editor.chain().focus().toggleBold().run()}toggleCode(){this.editor.chain().focus().toggleCode().run()}toggleItalic(){this.editor.chain().focus().toggleItalic().run()}toggleBlockquote(){this.editor.chain().focus().toggleBlockquote().run()}toggleSubscript(){this.editor.chain().focus().toggleSubscript().run()}toggleSuperscript(){this.editor.chain().focus().toggleSuperscript().run()}toggleCodeBlock(){this.editor.chain().focus().toggleCodeBlock().run()}insertTable(t,e){this.editor.chain().focus().insertTable({cols:t,rows:e}).run()}addColumnAfter(){this.editor.chain().focus().addColumnAfter().run()}addColumnBefore(){this.editor.chain().focus().addColumnBefore().run()}addRowAfter(){this.editor.chain().focus().addRowAfter().run()}addRowBefore(){this.editor.chain().focus().addRowBefore().run()}deleteColumn(){this.editor.chain().focus().deleteColumn().run()}deleteRow(){this.editor.chain().focus().deleteRow().run()}mergeCells(){this.editor.chain().focus().mergeCells().run()}splitCell(){this.editor.chain().focus().splitCell().run()}canMergeCells(){return this.editor.can().mergeCells()}canSplitCells(){return this.editor.can().splitCell()}setHeading(t){this.editor.chain().focus().setHeading({level:t}).run()}setParagraph(t){this.editor.chain().focus().setParagraph().run(),t&&this.editor.chain().setMark("textStyle",t).run()}setHardBreak(){this.editor.chain().setHardBreak().run()}setTextSelection(t){this.editor.commands.setTextSelection(t)}toggleLink(t){this.editor.chain().focus().toggleLink({href:t}).run()}setLink(t){this.editor.chain().focus().setLink({href:t}).run()}unsetLink(){this.editor.chain().focus().unsetLink().run()}focus(){this.editor.chain().focus().run()}setValue(t){t===this.html||""===t&&"

"===this.html||(this.editor.commands.setContent(t),this.editor.view.updateState(d.yy.create({schema:this.editor.state.schema,doc:this.editor.state.doc,selection:this.editor.state.selection,storedMarks:this.editor.state.storedMarks,plugins:this.editor.state.plugins})))}destroy(){this.editor.destroy()}setCellColor(t){this.editor.chain().focus().setCellBackground(t).run()}selectClosest(){const t=this.editor.state.selection.anchor,{schema:e,doc:n}=this.editor.state,o=(0,c.Yz)(n.resolve(t),e.marks.link);o&&this.editor.chain().setTextSelection(o).run()}enter(){this.editor.commands.enter()}setDetails(){this.editor.commands.setDetails()}removeDetails(){this.editor.commands.removeDetails()}setGroup(){this.editor.commands.setGroup()}removeGroup(){this.editor.commands.removeGroup()}setGroupHilite(t){this.editor.commands.setGroupHilite(t)}setAnchor(t){this.editor.commands.setAnchor(t.replace("#",""))}removeAnchor(){this.editor.commands.removeAnchor()}setFileLink(t){this.editor.commands.setFileLink(t)}setYoutubeVideo(t){this.editor.commands.setYoutubeVideo(t)}setIframe(t){this.editor.commands.setIframe(t)}removeEmptyTextStyle(){this.editor.commands.removeEmptyTextStyle()}toggleMark(t,e,n){this.editor.commands.toggleMark(t,e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(l.ZW))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},95161:(t,e,n)=>{n.d(e,{_:()=>o});var o=(()=>(function(t){t.Undo="undo",t.Anchor="anchor",t.Size="fontSize",t.Bold="bold",t.Italic="italic",t.Underline="underline",t.Strikethrough="strikeThrough",t.Align="justify",t.List="list",t.Quote="quote",t.Color="foreColor",t.Hilite="hiliteColor",t.Clear="clear",t.Link="link",t.Attach="attach",t.Tex="tex",t.Code="code",t.Img="image",t.HR="insertHorizontalRule",t.Sup="superscript",t.Sub="subscript",t.Table="insertTable",t.MergeCells="mergeCells",t.SplitCells="splitCells",t.RowsColumnsManaging="rowsColumnsManaging",t.Details="details",t.Group="group"}(o||(o={})),o))()},13511:(t,e,n)=>{n.r(e),n.d(e,{BackgroundColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"backgroundColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,renderHTML:({backgroundColor:t})=>t?{style:`background-color: ${t}`}:{},parseHTML:({style:t})=>t.backgroundColor.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).run()})})},41131:(t,e,n)=>{n.r(e),n.d(e,{TuiFileLink:()=>o});const o=n(11046).Extension.create({name:"fileLink",addCommands:()=>({setFileLink:t=>({state:e,chain:n})=>{const{selection:o}=e,i=' ';return(Math.abs(o.to-o.from)>0?n().toggleMark("link",{href:t.link},{extendEmptyMarkRange:!0}).setTextSelection(o.to).insertContent(i):n().insertContent(`${t.name}${i}`)).setTextSelection(o.to).run()}})})},47841:(t,e,n)=>{n.r(e),n.d(e,{FontColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontColor:{default:null,renderHTML:({fontColor:t})=>t?{style:`color: ${t}`}:{},parseHTML:({style:t})=>t.color.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setFontColor:t=>({chain:e})=>e().setMark("textStyle",{fontColor:t}).run(),unsetFontColor:()=>({chain:t})=>t().setMark("textStyle",{fontColor:null}).run()})})},83120:(t,e,n)=>{n.r(e),n.d(e,{TuiFontSize:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:({style:t})=>t.fontSize,renderHTML:({fontSize:t})=>t?{style:`font-size: ${t}`}:{}}}}]},addCommands:()=>({setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})})},38981:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_GROUP_DEFAULT_OPTIONS:()=>r,createGroupExtension:()=>s});var o=n(88320),i=n(11046);const r={groupNodeClass:"tui-group-node",groupPointerNodeClass:"tui-group-pointer",nested:!0,draggable:!0,createOnEnter:!1},s=(t={})=>{const{draggable:e,nested:n,groupNodeClass:s,groupPointerNodeClass:a,createOnEnter:l}=Object.assign(Object.assign({},r),t);return i.Node.create({name:"group",draggable:e,group:"block",content:n?"block+":"block",addAttributes:()=>({style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>t.style?{style:t.style}:{}}}),parseHTML:()=>[{tag:'div[data-type="group"]'}],renderHTML:({HTMLAttributes:t})=>["div",(0,i.mergeAttributes)(t,{"data-type":"group"}),0],addNodeView:()=>({HTMLAttributes:t,node:n})=>{const o=document.createElement("div"),i=document.createElement("div");if(o.classList.add(s),i.setAttribute("data-type","group"),t.style&&(n.attrs.style=t.style,i.setAttribute("style",t.style)),e){const t=document.createElement("div");t.classList.add(a),t.innerHTML="",t.contentEditable="false",o.append(t,i)}else o.append(i);return{dom:o,contentDOM:i}},addCommands(){return{setGroup:()=>({commands:t,state:e})=>{this.editor.chain().focus().run();const n=(0,o.Ap)(e,""),i=`
${n.trim().startsWith("

")?n:`

${n}

`}
`;return t.insertContent(i)},setGroupHilite:t=>({editor:e})=>{for(let n=e.state.selection.$anchor,o=n.depth;o>0;o--){const i=n.node(o);if(i.type.name===this.name){setTimeout((()=>e.commands.updateAttributes(i.type,{style:`background: ${t}`})));break}}return!0},removeGroup:()=>({state:t,dispatch:e})=>(0,o.yU)(t,e,this.name)}},addKeyboardShortcuts(){return l?{Enter:()=>this.editor.commands.setGroup()}:{}}})}},91876:(t,e,n)=>{n.r(e),n.d(e,{TUI_IFRAME_EDITOR_OPTIONS:()=>l,TuiIframeEditorComponent:()=>d,TuiIframeEditorModule:()=>m,createIframeEditorExtension:()=>p});var o=n(12057),i=n(91211),r=n(63658),s=n(33703),a=n(74788);const l=new a.OlP("[TUI_IFRAME_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0,minHeight:100,maxHeight:1/0})});var c=n(61732);let d=(()=>{class t extends s._{constructor(t,e,n,o){super(e,o),this.options=t,this.sanitizer=n}get src(){var t;return this.sanitizer.bypassSecurityTrustResourceUrl(null!==(t=this.attrs.src)&&void 0!==t?t:"")}updateSize([t,e]){this._width=Math.max(this.options.minWidth,Math.min(this.options.maxWidth,t)),this._height=Math.max(this.options.minHeight,Math.min(this.options.maxHeight,e))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(l),a.Y36(o.K0),a.Y36(i.H7),a.Y36(r.a3,2))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-iframe-editor"]],features:[a._Bn([r.a3]),a.qOj],decls:2,vars:13,consts:[[3,"width","height","sizeChange"],[3,"src","width","height"]],template:function(t,e){1&t&&(a.TgZ(0,"tui-editor-resizable",0),a.NdJ("sizeChange",(function(t){return e.updateSize(t)})),a._UZ(1,"iframe",1),a.qZA()),2&t&&(a.Q6J("width",e.width)("height",e.height),a.xp6(1),a.Udp("min-width",e.options.minWidth)("min-height",e.options.minHeight)("max-width",e.options.maxWidth)("max-height",e.options.maxHeight),a.Q6J("src",e.src,a.uOi)("width",e.width)("height",e.height))},directives:[c.V],styles:["iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}"],changeDetection:0}),t})();var u=n(87187),h=n(11046);const p=t=>h.Node.create({name:"iframe",group:"block",atom:!0,draggable:!1,parseHTML:()=>[{tag:'iframe[data-type="iframe-editor"]'}],addAttributes(){return{src:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("src")},frameborder:{default:0,keepOnSplit:!1,parseHTML:t=>t.getAttribute("frameborder")},width:{default:"100%",keepOnSplit:!1,parseHTML:t=>t.getAttribute("width")},height:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("height")},allowfullscreen:{keepOnSplit:!1,default:this.options.allowFullscreen,parseHTML:t=>t.getAttribute("allowfullscreen")}}},renderHTML:({HTMLAttributes:t})=>["iframe",(0,h.mergeAttributes)(t,{"data-type":"iframe-editor"})],addNodeView:()=>e=>new u.y(d,e,Object.assign({injector:t},e)),addCommands(){return{setIframe:t=>({commands:e,state:n})=>{const o=n.selection.anchor;return e.enter(),e.setTextSelection(o),e.insertContent({type:this.name,attrs:t}),e.setTextSelection(n.selection.anchor),!0}}}});var f=n(36807);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[f.S]]}),t})()},45267:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_MAX_IMAGE_WIDTH:()=>d,TUI_EDITOR_MIN_IMAGE_WIDTH:()=>c,TUI_IMAGE_EDITOR_OPTIONS:()=>u,TuiImageEditorComponent:()=>p,TuiImageEditorModule:()=>S,createImageEditorExtension:()=>x,tuiCreateImageEditorExtension:()=>C});var o=n(12057),i=n(74788),r=n(91211),s=n(62579),a=n(63658),l=n(33703);const c=new i.OlP("[TUI_EDITOR_MIN_IMAGE_WIDTH]",{factory:()=>null}),d=new i.OlP("[TUI_EDITOR_MAX_IMAGE_WIDTH]",{factory:()=>null}),u=new i.OlP("[TUI_IMAGE_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0})});var h=n(61732);let p=(()=>{class t extends l._{constructor(t,e,n,o,i,r,s,a){super(o,r),this.minWidth=t,this.maxWidth=e,this.options=n,this.sanitizer=i,this.el=s,this.win=a,this.contenteditable=!0,this.focused=!1}get dragHandle(){var t;return null!==(t=this.attrs.draggable)&&void 0!==t?t:null}get height(){return null}get alt(){return this.attrs.alt||""}get title(){return this.attrs.title||""}get src(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.attrs.src)}currentTargetIsFocused(t){this.focused=this.el.nativeElement.contains(t),this.focused&&this.selectFakeText()}updateSize([t]){var e,n;const o=null!==(e=this.minWidth)&&void 0!==e?e:this.options.minWidth,i=null!==(n=this.maxWidth)&&void 0!==n?n:this.options.maxWidth;this._width=Math.max(o,Math.min(i,t))}selectFakeText(){var t,e,n;const o=this.doc.createRange();null===(t=this.el.nativeElement.querySelector("p"))||void 0===t||t.focus(),o.selectNode(this.el.nativeElement),null===(e=this.win.getSelection())||void 0===e||e.removeAllRanges(),null===(n=this.win.getSelection())||void 0===n||n.addRange(o)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c),i.Y36(d),i.Y36(u),i.Y36(o.K0),i.Y36(r.H7),i.Y36(a.a3,2),i.Y36(i.SBq),i.Y36(s.m9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-image-editor"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click.silent",(function(t){return e.currentTargetIsFocused(t.target)}),!1,i.evT),2&t&&i.uIk("contenteditable",e.contenteditable)("data-drag-handle",e.dragHandle)},features:[i._Bn([a.a3]),i.qOj],decls:4,vars:12,consts:[["contenteditable","false",1,"t-emulate-inline-node"],[3,"width","autoHeight","sizeChange"],["contenteditable","false",3,"src","width","alt","title"]],template:function(t,e){1&t&&(i._UZ(0,"p",0),i.TgZ(1,"tui-editor-resizable",1),i.NdJ("sizeChange",(function(t){return e.updateSize(t)})),i._UZ(2,"img",2),i.qZA(),i._UZ(3,"p",0)),2&t&&(i.xp6(1),i.Q6J("width",e.width)("autoHeight",!0),i.xp6(1),i.Udp("min-width",e.options.minWidth,"px")("max-width",e.options.maxWidth,"px"),i.ekj("ProseMirror-selectednode",e.focused),i.Q6J("src",e.src,i.LSH)("width",e.width)("alt",e.alt)("title",e.title))},directives:[h.V],styles:["[data-drag-handle][_nghost-%COMP%]{cursor:move}img[_ngcontent-%COMP%]{pointer-events:none}.t-emulate-inline-node[_ngcontent-%COMP%]{display:inline-block;margin:0;height:0}"],changeDetection:0}),t})();var f=n(11927),m=n(87187),g=n(11046),b=n(44632),v=n(62463);const y=[{tag:'img[data-type="image-editor"]'}],w={src:{default:"",keepOnSplit:!1},width:{default:300,keepOnSplit:!1},alt:{default:"",keepOnSplit:!1},title:{default:"",keepOnSplit:!1}};function x(t,{draggable:e}={}){const n=!(0,f.Pc)(e)||e;return b.Image.extend({name:"imageEditor",group:"inline",inline:!0,atom:!0,priority:0,selectable:!0,draggable:n,parseHTML:()=>y,addAttributes:()=>Object.assign(Object.assign({},w),{draggable:{default:n?"":null,keepOnSplit:!1}}),renderHTML:({HTMLAttributes:t})=>["img",(0,g.mergeAttributes)(t,{"data-type":"image-editor"})],addNodeView:()=>e=>new m.y(p,e,Object.assign({injector:t},e)),addCommands(){return{setEditableImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addProseMirrorPlugins:()=>[new v.Sy({props:{handleDOMEvents:{paste:k,drop:k}}})]})}function k(t,e){var n;const o=e instanceof DragEvent?e.dataTransfer:e.clipboardData,i=Array.from(null!==(n=null==o?void 0:o.files)&&void 0!==n?n:[]).filter((t=>/image/i.test(t.type)));i.length&&e.preventDefault();for(const e of i){const n=new FileReader;n.onload=e=>{var n;const o=t.state.schema.nodes.imageEditor.create({src:null===(n=e.target)||void 0===n?void 0:n.result}),i=t.state.tr.replaceSelectionWith(o);setTimeout((()=>t.dispatch(i)))},n.readAsDataURL(e)}}function C({injector:t,draggable:e}){return x(t,{draggable:e})}var M=n(36807);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,M.S]]}),t})()},73757:(t,e,n)=>{function o(t){return t.isActive("bulletList")||t.isActive("orderedList")}n.r(e),n.d(e,{TuiTabExtension:()=>i,tuiIsOrderedOrBulletList:()=>o});const i=n(11046).Extension.create({name:"indent",addKeyboardShortcuts(){return{Tab:()=>o(this.editor)?null:this.editor.commands.insertContent("\t")}}})},50822:(t,e,n)=>{n.r(e),n.d(e,{TuiLink:()=>qt});var o=n(88320),i=n(11046);const r="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",a=(t,e)=>{for(const n in e)t[n]=e[n];return t},l="numeric",c="ascii",d="alpha",u="asciinumeric",h="alphanumeric",p="domain",f="emoji",m="scheme",g="slashscheme",b="whitespace";function v(t,e){return t in e||(e[t]=[]),e[t]}function y(t,e,n){e[l]&&(e[u]=!0,e[h]=!0),e[c]&&(e[u]=!0,e[d]=!0),e[u]&&(e[h]=!0),e[d]&&(e[h]=!0),e[h]&&(e[p]=!0),e[f]&&(e[p]=!0);for(const o in e){const e=v(o,n);e.indexOf(t)<0&&e.push(t)}}function w(t){void 0===t&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}w.groups={},w.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let n=0;n=0&&(n[o]=!0);return n}(s.t,o),n);y(r,t,o)}else n&&y(r,n,o);s.t=r}return i.j[t]=s,s}};const x=(t,e,n,o,i)=>t.ta(e,n,o,i),k=(t,e,n,o,i)=>t.tr(e,n,o,i),C=(t,e,n,o,i)=>t.ts(e,n,o,i),M=(t,e,n,o,i)=>t.tt(e,n,o,i),S="WORD",A="UWORD",O="LOCALHOST",T="TLD",N="UTLD",E="SCHEME",I="SLASH_SCHEME",D="NUM",P="WS",H="NL",L="OPENBRACE",_="OPENBRACKET",R="OPENANGLEBRACKET",z="OPENPAREN",$="CLOSEBRACE",B="CLOSEBRACKET",F="CLOSEANGLEBRACKET",J="CLOSEPAREN",Z="AMPERSAND",j="APOSTROPHE",q="ASTERISK",Y="AT",V="BACKSLASH",U="BACKTICK",W="CARET",Q="COLON",K="COMMA",G="DOLLAR",X="DOT",tt="EQUALS",et="EXCLAMATION",nt="HYPHEN",ot="PERCENT",it="PIPE",rt="PLUS",st="POUND",at="QUERY",lt="QUOTE",ct="SEMI",dt="SLASH",ut="TILDE",ht="UNDERSCORE",pt="EMOJI",ft="SYM";var mt=Object.freeze({__proto__:null,WORD:S,UWORD:A,LOCALHOST:O,TLD:T,UTLD:N,SCHEME:E,SLASH_SCHEME:I,NUM:D,WS:P,NL:H,OPENBRACE:L,OPENBRACKET:_,OPENANGLEBRACKET:R,OPENPAREN:z,CLOSEBRACE:$,CLOSEBRACKET:B,CLOSEANGLEBRACKET:F,CLOSEPAREN:J,AMPERSAND:Z,APOSTROPHE:j,ASTERISK:q,AT:Y,BACKSLASH:V,BACKTICK:U,CARET:W,COLON:Q,COMMA:K,DOLLAR:G,DOT:X,EQUALS:tt,EXCLAMATION:et,HYPHEN:nt,PERCENT:ot,PIPE:it,PLUS:rt,POUND:st,QUERY:at,QUOTE:lt,SEMI:ct,SLASH:dt,TILDE:ut,UNDERSCORE:ht,EMOJI:pt,SYM:ft});const gt=/[a-z]/,bt=/\p{L}/u,vt=/\p{Emoji}/u,yt=/\d/,wt=/\s/,xt="\n",kt="️",Ct="‍";let Mt=null,St=null;function At(t,e,n,o,i){let r;const s=e.length;for(let n=0;n=0;)i++;if(i>0){e.push(n.join(""));for(let e=parseInt(t.substring(o,o+i),10);e>0;e--)n.pop();o+=i}else n.push(t[o]),o++}return e}const Tt={defaultProtocol:"http",events:null,format:Et,formatHref:Et,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Nt(t,e){void 0===e&&(e=null);let n=a({},Tt);t&&(n=a(n,t instanceof Nt?t.o:t));const o=n.ignoreTags,i=[];for(let t=0;tt,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=null!=e;let i=this.o[t];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Tt[t],"function"==typeof i&&o&&(i=i(e,n))):"function"==typeof i&&o&&(i=i(e,n.t,n)),i):i},getObj(t,e,n){let o=this.o[t];return"function"==typeof o&&null!=e&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},It.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return void 0===t&&(t=Tt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),i=t.get("tagName",n,e),r=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return s.href=o,l&&(s.class=l),c&&(s.target=c),d&&(s.rel=d),u&&a(s,u),{tagName:i,attributes:s,content:r,eventListeners:h}}};const Pt=Dt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ht=Dt("text"),Lt=Dt("nl"),_t=Dt("url",{isLink:!0,toHref(t){return void 0===t&&(t=Tt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==O&&t[1].t===Q}}),Rt=t=>new w(t);function zt(t,e,n){const o=n[0].s,i=n[n.length-1].e;return new t(e.slice(o,i),n)}const $t="undefined"!=typeof console&&console&&console.warn||(()=>{}),Bt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Ft(t,e){if(void 0===e&&(e=!1),Bt.initialized&&$t(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');Bt.customSchemes.push([t,e])}function Jt(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new Nt(n),i=function(t){return Bt.initialized||function(){Bt.scanner=function(t){void 0===t&&(t=[]);const e={};w.groups=e;const n=new w;null==Mt&&(Mt=Ot(r)),null==St&&(St=Ot(s)),M(n,"'",j),M(n,"{",L),M(n,"[",_),M(n,"<",R),M(n,"(",z),M(n,"}",$),M(n,"]",B),M(n,">",F),M(n,")",J),M(n,"&",Z),M(n,"*",q),M(n,"@",Y),M(n,"`",U),M(n,"^",W),M(n,":",Q),M(n,",",K),M(n,"$",G),M(n,".",X),M(n,"=",tt),M(n,"!",et),M(n,"-",nt),M(n,"%",ot),M(n,"|",it),M(n,"+",rt),M(n,"#",st),M(n,"?",at),M(n,'"',lt),M(n,"/",dt),M(n,";",ct),M(n,"~",ut),M(n,"_",ht),M(n,"\\",V);const o=k(n,yt,D,{[l]:!0});k(o,yt,o);const i=k(n,gt,S,{[c]:!0});k(i,gt,i);const h=k(n,bt,A,{[d]:!0});k(h,gt),k(h,bt,h);const v=k(n,wt,P,{[b]:!0});M(n,xt,H,{[b]:!0}),M(v,xt),k(v,wt,v);const x=k(n,vt,pt,{[f]:!0});k(x,vt,x),M(x,kt,x);const Tt=M(x,Ct);k(Tt,vt,x);const Nt=[[gt,i]],Et=[[gt,null],[bt,h]];for(let t=0;tt[0]>e[0]?1:-1));for(let e=0;e=0?i[p]=!0:gt.test(o)?yt.test(o)?i[u]=!0:i[c]=!0:i[l]=!0,C(n,o,o,i)}return C(n,"localhost",O,{ascii:!0}),n.jd=new w(ft),{start:n,tokens:a({groups:e},mt)}}(Bt.customSchemes);for(let t=0;t=0&&h++,i++,d++;if(h<0)i-=d,i0&&(r.push(zt(Ht,e,s)),s=[]),i-=h,d-=h;const t=u.t,o=n.slice(i-d,i);r.push(zt(t,e,o))}}return s.length>0&&r.push(zt(Ht,e,s)),r}(Bt.parser.start,t,function(t,e){const n=function(t){const e=[],n=t.length;let o=0;for(;o56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}(e.replace(/[A-Z]/g,(t=>t.toLowerCase()))),o=n.length,i=[];let r=0,s=0;for(;s=0&&(u+=n[s].length,h++),c+=n[s].length,r+=n[s].length,s++;r-=u,s-=h,c-=u,i.push({t:d.t,v:e.slice(r-c,r),s:r-c,e:r})}return i}(Bt.scanner.start,t))}(t),h=[];for(let t=0;t{"string"!=typeof t?Ft(t.scheme,t.optionalSlashes):Ft(t)}))},onDestroy(){w.groups={},Bt.scanner=null,Bt.parser=null,Bt.tokenQueue=[],Bt.pluginQueue=[],Bt.customSchemes=[],Bt.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push((e={type:this.type,validate:this.options.validate},new Zt.Sy({key:new Zt.H$("autolink"),appendTransaction:(t,n,o)=>{const r=t.some((t=>t.docChanged))&&!n.doc.eq(o.doc),s=t.some((t=>t.getMeta("preventAutolink")));if(!r||s)return;const{tr:a}=o,l=(0,i.combineTransactionSteps)(n.doc,[...t]);return(0,i.getChangedRanges)(l).forEach((({newRange:t})=>{const n=(0,i.findChildrenInRange)(o.doc,t,(t=>t.isTextblock));let r,s;if(n.length>1?(r=n[0],s=o.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ")):n.length&&o.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(r=n[0],s=o.doc.textBetween(r.pos,t.to,void 0," ")),r&&s){const t=s.split(" ").filter((t=>""!==t));if(t.length<=0)return!1;const n=t[t.length-1],l=r.pos+s.lastIndexOf(n);if(!n)return!1;Jt(n).filter((t=>t.isLink)).map((t=>({...t,from:l+t.start+1,to:l+t.end+1}))).filter((t=>!o.doc.rangeHasMark(t.from,t.to,o.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{(0,i.getMarksBetween)(t.from,t.to,o.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),a.steps.length?a:void 0}}))),this.options.openOnClick&&t.push(function(t){return new Zt.Sy({key:new Zt.H$("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,s;if(0!==o.button)return!1;const a=(0,i.getAttributes)(e.state,t.type.name),l=o.target,c=null!==(r=null==l?void 0:l.href)&&void 0!==r?r:a.href,d=null!==(s=null==l?void 0:l.target)&&void 0!==s?s:a.target;return!(!l||!c||(e.editable&&window.open(c,d),0))}}})}({type:this.type})),t.push(function(t){return new Zt.Sy({key:new Zt.H$("handlePasteLink"),props:{handlePaste:(e,n,o)=>{var i,r;const{state:s}=e,{selection:a}=s;if(s.doc.resolve(a.from).parent.type.spec.code)return!1;let l="";o.content.forEach((t=>{l+=t.textContent}));let c=!1;if(o.content.descendants((e=>{e.marks.some((e=>e.type.name===t.type.name))&&(c=!0)})),c)return;const d=Jt(l).find((t=>t.isLink&&t.value===l));if(!a.empty&&t.linkOnPaste){const e=(null==d?void 0:d.href)||null;if(e)return t.editor.commands.setMark(t.type,{href:e}),!0}const u="text"===(null===(i=o.content.firstChild)||void 0===i?void 0:i.type.name),h=null===(r=o.content.firstChild)||void 0===r?void 0:r.marks.some((e=>e.type.name===t.type.name));if(u&&h||!t.linkOnPaste)return!1;if(d&&a.empty)return t.editor.commands.insertContent(`${d.href}`),!0;const{tr:p}=s;let f=!1;a.empty||(f=!0,p.delete(a.from,a.to));let m=a.from,g=[];o.content.forEach((e=>{g=Jt(e.textContent),p.insert(m-1,e),g.length>0&&(f=!1,g.forEach((e=>{const n=m+e.start,o=m+e.end;p.doc.rangeHasMark(n,o,t.type)||p.addMark(n,o,t.type.create({href:e.href}))}))),m+=e.nodeSize}));const b=g.length>0;return!(!p.docChanged||f||!b||(t.editor.view.dispatch(p),0))}}})}({editor:this.editor,type:this.type,linkOnPaste:this.options.linkOnPaste})),t;var e}}),qt=jt.extend({addAttributes(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),(0,o.x6)(["download"]))},addCommands(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{toggleLink:t=>({chain:e,state:n})=>{{const{selection:o,doc:r}=n,s=r.cut(o.to,o.to+1),a=" "===(0,i.getHTMLFromFragment)(s.content,n.schema).replace(/<\/?[^>]+(>|$)/g,""),l=e().toggleMark(this.name,t,{extendEmptyMarkRange:!0});return(a?l.setTextSelection(o.to+1):l.setTextSelection(o.to).insertContent(' ')).run()}}})}}).configure({openOnClick:!1})},12585:(t,e,n)=>{n.r(e),n.d(e,{TuiAudio:()=>s,TuiSource:()=>a,TuiVideo:()=>l});var o=n(18892),i=n(88320),r=n(11046);const s=r.Node.create({name:"audio",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"audio"}],renderHTML:({node:t,HTMLAttributes:e})=>["audio",e,...(0,i.YX)(t)]}),a=r.Node.create({name:"source",addAttributes:()=>(0,i.x6)(["src","type","width","height","media","sizes","srcset"]),parseHTML:()=>[{tag:"source"}],renderHTML:({HTMLAttributes:t})=>["source",(0,r.mergeAttributes)(t)]}),l=r.Node.create({name:"video",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"video"}],renderHTML:({node:t,HTMLAttributes:e})=>["video",e,...(0,i.YX)(t)]})},66826:(t,e,n)=>{n.r(e),n.d(e,{StarterKit:()=>Ct});var o=n(11046);const i=/^\s*>\s$/,r=o.Node.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,o.wrappingInputRule)({find:i,type:this.type})]}}),s=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,a=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,l=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,c=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,d=o.Mark.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],renderHTML({HTMLAttributes:t}){return["strong",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,o.markInputRule)({find:s,type:this.type}),(0,o.markInputRule)({find:l,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:a,type:this.type}),(0,o.markPasteRule)({find:c,type:this.type})]}}),u=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),h=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),p=/^\s*([-+*])\s$/,f=o.Node.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(u.name,this.editor.getAttributes(h.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:p,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:p,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(h.name),editor:this.editor})),[t]}}),m=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,g=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,b=o.Mark.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,o.markInputRule)({find:m,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:g,type:this.type})]}});var v=n(62463);const y=/^```([a-z]+)?[\s\n]$/,w=/^~~~([a-z]+)?[\s\n]$/,x=o.Node.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;return[...(null===(e=t.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter((t=>t.startsWith(n))).map((t=>t.replace(n,"")))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",(0,o.mergeAttributes)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!(!t||e.parent.type.name!==this.name)&&!(!n&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;const r=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith("\n\n");return!(!r||!s)&&t.chain().command((({tr:t})=>(t.delete(o.pos-2,o.pos),!0))).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;if(i.parentOffset!==i.parent.nodeSize-2)return!1;const s=i.after();return void 0!==s&&!o.nodeAt(s)&&t.commands.exitCode()}}},addInputRules(){return[(0,o.textblockTypeInputRule)({find:y,type:this.type,getAttributes:t=>({language:t[1]})}),(0,o.textblockTypeInputRule)({find:w,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new v.Sy({key:new v.H$("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),i=o?JSON.parse(o):void 0,r=null==i?void 0:i.mode;if(!n||!r)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(v.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),k=o.Node.create({name:"doc",topNode:!0,content:"block+"});var C=n(38480);function M(t={}){return new v.Sy({view:e=>new S(e,t)})}class S{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=e.width)&&void 0!==n?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map((e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}destroy(){this.handlers.forEach((({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e)))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent;if(n){let n=e.nodeBefore,o=e.nodeAfter;if(n||o){let e=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(e){let i=e.getBoundingClientRect(),r=n?i.bottom:i.top;n&&o&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:i.left,right:i.right,top:r-this.width/2,bottom:r+this.width/2}}}}if(!t){let e=this.editorView.coordsAtPos(this.cursorPos);t={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o,i,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!r||r==document.body&&"static"==getComputedStyle(r).position)o=-pageXOffset,i=-pageYOffset;else{let t=r.getBoundingClientRect();o=t.left-r.scrollLeft,i=t.top-r.scrollTop}this.element.style.left=t.left-o+"px",this.element.style.top=t.top-i+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),o=n&&n.type.spec.disableDropCursor,i="function"==typeof o?o(this.editorView,e,t):o;if(e&&!i){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,C.nj)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const A=o.Extension.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[M(this.options)]}});var O=n(31690),T=n(27439),N=n(43594);class E extends v.Y1{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return E.valid(n)?new E(n):v.Y1.near(n)}content(){return T.p2.empty}eq(t){return t instanceof E&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new E(t.resolve(e.pos))}getBookmark(){return new I(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(0!=n)for(let t=o.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n!=o.childCount)for(let t=o.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let o=e.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,e,n=!1){t:for(;;){if(!n&&E.valid(t))return t;let o=t.pos,i=null;for(let n=t.depth;;n--){let r=t.node(n);if(e>0?t.indexAfter(n)0){i=r.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}for(;;){let r=e>0?i.firstChild:i.lastChild;if(!r){if(i.isAtom&&!i.isText&&!v.qv.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*e),n=!1;continue t}break}i=r,o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}return null}}}E.prototype.visible=!1,E.findFrom=E.findGapCursorFrom,v.Y1.jsonID("gapcursor",E);class I{constructor(t){this.pos=t}map(t){return new I(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return E.valid(e)?new E(e):v.Y1.near(e)}}const D=(0,O.$)({ArrowLeft:P("horiz",-1),ArrowRight:P("horiz",1),ArrowUp:P("vert",-1),ArrowDown:P("vert",1)});function P(t,e){const n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,o,i){let r=t.selection,s=e>0?r.$to:r.$from,a=r.empty;if(r instanceof v.Bs){if(!i.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=t.doc.resolve(e>0?s.after():s.before())}let l=E.findGapCursorFrom(s,e,a);return!!l&&(o&&o(t.tr.setSelection(new E(l))),!0)}}function H(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!E.valid(o))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&v.qv.isSelectable(t.state.doc.nodeAt(i.inside))||(t.dispatch(t.state.tr.setSelection(new E(o))),0))}function L(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof E))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let i=T.HY.empty;for(let t=o.length-1;t>=0;t--)i=T.HY.from(o[t].createAndFill(null,i));let r=t.state.tr.replace(n.pos,n.pos,new T.p2(i,0,0));return r.setSelection(v.Bs.near(r.doc.resolve(n.pos+1))),t.dispatch(r),!1}function _(t){if(!(t.selection instanceof E))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",N.EH.create(t.doc,[N.p.widget(t.selection.head,e,{key:"gapcursor"})])}const R=o.Extension.create({name:"gapCursor",addProseMirrorPlugins:()=>[new v.Sy({props:{decorations:_,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&E.valid(n)?new E(n):null,handleClick:H,handleKeyDown:D,handleDOMEvents:{beforeinput:L}}})],extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!==(e=(0,o.callOrReturn)((0,o.getExtensionField)(t,"allowGapCursor",n)))&&void 0!==e?e:null}}}),z=o.Node.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:t,storedMarks:i}=n;if(t.$from.parent.type.spec.isolating)return!1;const{keepMarks:r}=this.options,{splittableMarks:s}=o.extensionManager,a=i||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command((({tr:t,dispatch:e})=>{if(e&&a&&r){const e=a.filter((t=>s.includes(t.type.name)));t.ensureMarks(e)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var $=n(54424),B=200,F=function(){};F.prototype.append=function(t){return t.length?(t=F.from(t),!this.length&&t||t.length=e?F.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},F.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},F.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},F.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var o=[];return this.forEach((function(e,n){return o.push(t(e,n))}),e,n),o},F.from=function(t){return t instanceof F?t:t&&t.length?new J(t):F.empty};var J=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,o){for(var i=e;i=n;i--)if(!1===t(this.values[i],o+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=B)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=B)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(F);F.empty=new J([]);var Z=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return ti&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,n)-i,o+i))&&void 0},e.prototype.forEachInvertedInner=function(t,e,n,o){var i=this.left.length;return!(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(n,i)-i,o+i))&&!(n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(F);const j=F;class q{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(n=this.remapping(i,this.items.length),o=n.maps.length);let r,s,a=t.tr,l=[],c=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(i,e+1),o=n.maps.length),o--,void c.push(t);if(n){c.push(new Y(t.map));let e,i=t.step.map(n.slice(o));i&&a.maybeStep(i).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],l.push(new Y(e,void 0,void 0,l.length+c.length))),o--,e&&n.appendMap(e,o)}else a.maybeStep(t.step);return t.selection?(r=n?t.selection.map(n.slice(o)):t.selection,s=new q(this.items.slice(0,i).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(t,e,n,o){let i=[],r=this.eventCount,s=this.items,a=!o&&s.length?s.get(s.length-1):null;for(let n=0;nU&&(s=function(t,e){let n;return t.forEach(((t,o)=>{if(t.selection&&0==e--)return n=o,!1})),t.slice(n)}(s,l),r-=l),new q(s.append(i),r)}remapping(t,e){let n=new C.vs;return this.items.forEach(((e,o)=>{let i=null!=e.mirrorOffset&&o-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,i)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new q(this.items.append(t.map((t=>new Y(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-e),i=t.mapping,r=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),o);let a=e;this.items.forEach((e=>{let o=i.getMirror(--a);if(null==o)return;r=Math.min(r,o);let l=i.maps[o];if(e.step){let r=t.steps[o].invert(t.docs[o]),c=e.selection&&e.selection.map(i.slice(a+1,o));c&&s++,n.push(new Y(l,r,c))}else n.push(new Y(l))}),o);let l=[];for(let t=e;t500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,o=[],i=0;return this.items.forEach(((r,s)=>{if(s>=t)o.push(r),r.selection&&i++;else if(r.step){let t=r.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=r.selection&&r.selection.map(e.slice(n));a&&i++;let l,c=new Y(s.invert(),t,a),d=o.length-1;(l=o.length&&o[d].merge(c))?o[d]=l:o.push(c)}}else r.map&&n--}),this.items.length,0),new q(j.from(o.reverse()),i)}}q.empty=new q(j.empty,0);class Y{constructor(t,e,n,o){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Y(e.getMap().invert(),e,this.selection)}}}class V{constructor(t,e,n,o,i){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=o,this.prevComposition=i}}const U=20;function W(t){let e=[];return t.forEach(((t,n,o,i)=>e.push(o,i))),e}function Q(t,e){if(!t)return null;let n=[];for(let o=0;onew V(q.empty,q.empty,null,0,-1),apply:(e,n,o)=>function(t,e,n,o){let i,r=n.getMeta(et);if(r)return r.historyState;n.getMeta(nt)&&(t=new V(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(et))return s.getMeta(et).redo?new V(t.done.addTransform(n,void 0,o,tt(e)),t.undone,W(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new V(t.done,t.undone.addTransform(n,void 0,o,tt(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new V(t.done.rebased(n,i),t.undone.rebased(n,i),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new V(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let i=n.getMeta("composition"),r=0==t.prevTime||!s&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-o.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,o)=>{for(let i=0;i=e[i]&&(n=!0)})),n}(n,t.prevRanges)),a=s?Q(t.prevRanges,n.mapping):W(n.mapping.maps[n.steps.length-1]);return new V(t.done.addTransform(n,r?e.selection.getBookmark():void 0,o,tt(e)),q.empty,a,n.time,null==i?t.prevComposition:i)}}(n,o,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,o="historyUndo"==n?it:"historyRedo"==n?rt:null;return!!o&&(e.preventDefault(),o(t.state,t.dispatch))}}}})}const it=(t,e)=>{let n=et.getState(t);return!(!n||0==n.done.eventCount||(e&&K(n,t,e,!1),0))},rt=(t,e)=>{let n=et.getState(t);return!(!n||0==n.undone.eventCount||(e&&K(n,t,e,!0),0))},st=o.Extension.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>it(t,e),redo:()=>({state:t,dispatch:e})=>rt(t,e)}),addProseMirrorPlugins(){return[ot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),at=o.Node.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,o=t();return 0===n.parentOffset?o.insertContentAt(n.pos-2,{type:this.name}):o.insertContent({type:this.name}),o.command((({tr:t,dispatch:e})=>{var n;if(e){const{$to:e}=t.selection,o=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(v.Bs.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(v.qv.create(t.doc,e.pos)):t.setSelection(v.Bs.create(t.doc,e.pos));else{const i=null===(n=e.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(t.insert(o,i),t.setSelection(v.Bs.create(t.doc,o+1)))}t.scrollIntoView()}return!0})).run()}}},addInputRules(){return[(0,o.nodeInputRule)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,blockReplace:!0,addExtraNewline:!0})]}}),lt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,ct=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,dt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,ut=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,ht=o.Mark.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:t}){return["em",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,o.markInputRule)({find:lt,type:this.type}),(0,o.markInputRule)({find:dt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:ct,type:this.type}),(0,o.markPasteRule)({find:ut,type:this.type})]}}),pt=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ft=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mt=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),gt=/^(\d+)\.\s$/,bt=o.Node.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return 1===e?["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,n),0]:["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ft.name,this.editor.getAttributes(mt.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:gt,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:gt,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(mt.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),vt=o.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),yt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,wt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,xt=o.Mark.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return(0,o.isMacOS)()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[(0,o.markInputRule)({find:yt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:wt,type:this.type})]}}),kt=o.Node.create({name:"text",group:"inline"}),Ct=o.Extension.create({name:"starterKit",addExtensions(){const t=[],e=this.options;return!1!==(null==e?void 0:e.blockquote)&&t.push(r.configure(null==e?void 0:e.blockquote)),!1!==(null==e?void 0:e.bold)&&t.push(d.configure(null==e?void 0:e.bold)),!1!==(null==e?void 0:e.bulletList)&&t.push(f.configure(null==e?void 0:e.bulletList)),!1!==(null==e?void 0:e.code)&&t.push(b.configure(null==e?void 0:e.code)),!1!==(null==e?void 0:e.codeBlock)&&t.push(x.configure(null==e?void 0:e.codeBlock)),!1!==(null==e?void 0:e.document)&&t.push(k.configure(null==e?void 0:e.document)),!1!==(null==e?void 0:e.dropcursor)&&t.push(A.configure(null==e?void 0:e.dropcursor)),!1!==(null==e?void 0:e.gapcursor)&&t.push(R.configure(null==e?void 0:e.gapcursor)),!1!==(null==e?void 0:e.hardBreak)&&t.push(z.configure(null==e?void 0:e.hardBreak)),!1!==(null==e?void 0:e.heading)&&t.push($.Heading.configure(null==e?void 0:e.heading)),!1!==(null==e?void 0:e.history)&&t.push(st.configure(Object.assign({depth:10,newGroupDelay:100},null==e?void 0:e.history))),!1!==(null==e?void 0:e.horizontalRule)&&t.push(at.configure(null==e?void 0:e.horizontalRule)),!1!==(null==e?void 0:e.italic)&&t.push(ht.configure(null==e?void 0:e.italic)),!1!==(null==e?void 0:e.listItem)&&t.push(pt.configure(null==e?void 0:e.listItem)),!1!==(null==e?void 0:e.orderedList)&&t.push(bt.configure(null==e?void 0:e.orderedList)),!1!==(null==e?void 0:e.paragraph)&&t.push(vt.configure(null==e?void 0:e.paragraph)),!1!==(null==e?void 0:e.strike)&&t.push(xt.configure(null==e?void 0:e.strike)),!1!==(null==e?void 0:e.text)&&t.push(kt.configure(null==e?void 0:e.text)),t}})},58676:(t,e,n)=>{n.r(e),n.d(e,{TableCellBackground:()=>o});const o=n(11046).Extension.create({addGlobalAttributes:()=>[{types:["tableCell","tableHeader"],attributes:{background:{default:null,renderHTML:({background:t})=>t?{style:`background: ${t}`}:null,parseHTML:({style:t})=>t.background,keepOnSplit:!1}}}],addCommands:()=>({setCellBackground:t=>({chain:e})=>e().updateAttributes("tableCell",{background:t}).updateAttributes("tableHeader",{background:t}).run(),unsetCellBackground:()=>({chain:t})=>t().updateAttributes("tableCell",{background:null}).updateAttributes("tableHeader",{background:null}).run()})})},47745:(t,e,n)=>{n.r(e),n.d(e,{TuiTable:()=>mt});var o,i,r=n(11046),s=n(62463),a=n(27439),l=n(43594),c=n(31690),d=n(38480);if("undefined"!=typeof WeakMap){let t=new WeakMap;o=e=>t.get(e),i=(e,n)=>(t.set(e,n),n)}else{const t=[],e=10;let n=0;o=e=>{for(let n=0;n(n==e&&(n=0),t[n++]=o,t[n++]=i)}var u=class{constructor(t,e,n,o){this.width=t,this.height=e,this.map=n,this.problems=o}findCell(t){for(let e=0;eo&&(r+=i.attrs.colspan)}}for(let t=0;t1&&(n=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(t),n=t.childCount,o=[];let i=0,r=null;const s=[];for(let t=0,i=e*n;t=n){(r||(r=[])).push({type:"overlong_rowspan",pos:l,n:h-t});break}const c=i+t*e;for(let t=0;t0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function g(t){const e=t.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function b(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const n=m(e.$head)||function(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n-e.nodeSize)}}(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function v(t){return"row"==t.parent.type.spec.tableRole&&!!t.nodeAfter}function y(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function w(t,e,n){const o=t.node(-1),i=u.get(o),r=t.start(-1),s=i.nextCell(t.pos-r,e,n);return null==s?null:t.node(0).resolve(r+s)}function x(t,e,n=1){const o={...t,colspan:t.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(e,n),o.colwidth.some((t=>t>0))||(o.colwidth=null)),o}function k(t,e,n=1){const o={...t,colspan:t.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let t=0;tt!=e.pos-i));l.unshift(e.pos-i);const c=l.map((t=>{const e=n.nodeAt(t);if(!e)throw RangeError(`No cell with offset ${t} found`);const o=i+t+1;return new s.xm(a.resolve(o),a.resolve(o+e.content.size))}));super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){const n=t.resolve(e.map(this.$anchorCell.pos)),o=t.resolve(e.map(this.$headCell.pos));if(v(n)&&v(o)&&y(n,o)){const t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?C.rowSelection(n,o):t&&this.isColSelection()?C.colSelection(n,o):new C(n,o)}return s.Bs.between(n,o)}content(){const t=this.$anchorCell.node(-1),e=u.get(t),n=this.$anchorCell.start(-1),o=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},r=[];for(let n=o.top;n0||d>0){let t=l.attrs;if(c>0&&(t=x(t,0,c)),d>0&&(t=x(t,t.colspan-d,d)),a.lefto.bottom){const t={...l.attrs,rowspan:Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)};l=a.top0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,o=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,o)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){const n=t.node(-1),o=u.get(n),i=t.start(-1),r=o.findCell(t.pos-i),s=o.findCell(e.pos-i),a=t.node(0);return r.top<=s.top?(r.top>0&&(t=a.resolve(i+o.map[r.left])),s.bottom0&&(e=a.resolve(i+o.map[s.left])),r.bottom0)return!1;const r=o+this.$anchorCell.nodeAfter.attrs.colspan,s=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,s)==e.width}eq(t){return t instanceof C&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){const n=t.node(-1),o=u.get(n),i=t.start(-1),r=o.findCell(t.pos-i),s=o.findCell(e.pos-i),a=t.node(0);return r.left<=s.left?(r.left>0&&(t=a.resolve(i+o.map[r.top*o.width])),s.right0&&(e=a.resolve(i+o.map[s.top*o.width])),r.right{e.push(l.p.node(n,n+t.nodeSize,{class:"selectedCell"}))})),l.EH.create(t.doc,e)}var A=new s.H$("fix-tables");function O(t,e,n,o){const i=t.childCount,r=e.childCount;t:for(let s=0,a=0;s{"table"==e.type.spec.tableRole&&(n=function(t,e,n,o){const i=u.get(e);if(!i.problems)return o;o||(o=t.tr);const r=[];for(let t=0;t0){let e="cell";n.firstChild&&(e=n.firstChild.type.spec.tableRole);const r=[];for(let n=0;ne.width)for(let r=0,a=0;re.height){const u=[];for(let t=0,o=(e.height-1)*e.width;t=e.width)&&n.nodeAt(e.map[o+t]).type==l.header_cell;u.push(i?d||(d=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,a.HY.from(u)),p=[];for(let t=e.height;t{if(!i)return!1;const r=n.selection;if(r instanceof C)return H(n,o,s.Y1.near(r.$headCell,e));if("horiz"!=t&&!r.empty)return!1;const a=F(i,t,e);if(null==a)return!1;if("horiz"==t)return H(n,o,s.Y1.near(n.doc.resolve(r.head+e),e));{const i=n.doc.resolve(a),r=w(i,t,e);let l;return l=r?s.Y1.near(r,1):e<0?s.Y1.near(n.doc.resolve(i.before(-1)),-1):s.Y1.near(n.doc.resolve(i.after(-1)),1),H(n,o,l)}}}function _(t,e){return(n,o,i)=>{if(!i)return!1;const r=n.selection;let s;if(r instanceof C)s=r;else{const o=F(i,t,e);if(null==o)return!1;s=new C(n.doc.resolve(o))}const a=w(s.$headCell,t,e);return!!a&&H(n,o,new C(s.$anchorCell,a))}}function R(t,e){const n=t.selection;if(!(n instanceof C))return!1;if(e){const o=t.tr,i=p(t.schema).cell.createAndFill().content;n.forEachCell(((t,e)=>{t.content.eq(i)||o.replace(o.mapping.map(e+1),o.mapping.map(e+t.nodeSize-1),new a.p2(i,0,0))})),o.docChanged&&e(o)}return!0}function z(t,e){const n=m(t.state.doc.resolve(e));return!!n&&(t.dispatch(t.state.tr.setSelection(new C(n))),!0)}function $(t,e,n){if(!g(t.state))return!1;let o=function(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:o}=t;for(;1==e.childCount&&(n>0&&o>0||"table"==e.child(0).type.spec.tableRole);)n--,o--,e=e.child(0).content;const i=e.child(0),r=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==r)for(let t=0;t=0;e--){const{rowspan:i,colspan:r}=o.child(e).attrs;for(let e=t;e=e.length&&e.push(a.HY.empty),n[i]o&&(a=a.type.createChecked(x(a.attrs,a.attrs.colspan,n+a.attrs.colspan-o),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;ni&&(e=e.type.create({...e.attrs,rowspan:Math.max(1,i-e.attrs.rowspan)},e.content)),s.push(e)}t.push(a.HY.from(s))}n=t,e=i}return{width:t,height:e,rows:n}}(o,s.right-s.left,s.bottom-s.top),D(t.state,t.dispatch,r,s,o),!0}if(o){const e=b(t.state),n=e.start(-1);return D(t.state,t.dispatch,n,u.get(e.node(-1)).findCell(e.pos-n),o),!0}return!1}function B(t,e){var n;if(e.ctrlKey||e.metaKey)return;const o=J(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof C)r(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&o&&null!=(i=m(t.state.selection.$anchor))&&(null==(n=Z(t,e))?void 0:n.pos)!=i.pos)r(i,e),e.preventDefault();else if(!o)return;function r(e,n){let o=Z(t,n);const i=null==f.getState(t.state);if(!o||!y(e,o)){if(!i)return;o=e}const r=new C(e,o);if(i||!t.state.selection.eq(r)){const n=t.state.tr.setSelection(r);i&&n.setMeta(f,e.pos),t.dispatch(n)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),null!=f.getState(t.state)&&t.dispatch(t.state.tr.setMeta(f,-1))}function a(n){const i=n,a=f.getState(t.state);let l;if(null!=a)l=t.state.doc.resolve(a);else if(J(t,i.target)!=o&&(l=Z(t,e),!l))return s();l&&r(l,i)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function F(t,e,n){if(!(t.state.selection instanceof s.Bs))return null;const{$head:o}=t.state.selection;for(let i=o.depth-1;i>=0;i--){const r=o.node(i);if((n<0?o.index(i):o.indexAfter(i))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const r=o.before(i),s="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?r:null}}return null}function J(t,e){for(;e&&e!=t.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function Z(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?m(t.state.doc.resolve(n.pos)):null}var j=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),q(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type==this.node.type&&(this.node=t,q(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return"attributes"==t.type&&(t.target==this.table||this.colgroup.contains(t.target))}};function q(t,e,n,o,i,r){var s;let a=0,l=!0,c=e.firstChild;const d=t.firstChild;if(d){for(let t=0,n=0;t(i.spec.props.nodeViews[p(o.schema).table.name]=(t,o)=>new n(t,e,o),new U(-1,!1)),apply:(t,e)=>e.apply(t)},props:{attributes:t=>{const e=Y.getState(t);return e&&e.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(e,n)=>{!function(t,e,n,o,i){const r=Y.getState(t.state);if(r&&!r.dragging){const o=function(t){for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}(e.target);let s=-1;if(o){const{left:i,right:r}=o.getBoundingClientRect();e.clientX-i<=n?s=W(t,e,"left",n):r-e.clientX<=n&&(s=W(t,e,"right",n))}if(s!=r.activeHandle){if(!i&&-1!==s){const e=t.state.doc.resolve(s),n=e.node(-1),o=u.get(n),i=e.start(-1);if(o.colCount(e.pos-i)+e.nodeAfter.attrs.colspan-1==o.width-1)return}K(t,s)}}}(e,n,t,0,o)},mouseleave:t=>{!function(t){const e=Y.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&K(t,-1)}(t)},mousedown:(t,n)=>{!function(t,e,n){const o=Y.getState(t.state);if(!o||-1==o.activeHandle||o.dragging)return!1;const i=t.state.doc.nodeAt(o.activeHandle),r=function(t,e,{colspan:n,colwidth:o}){const i=o&&o[o.length-1];if(i)return i;const r=t.domAtPos(e);let s=r.node.childNodes[r.offset].offsetWidth,a=n;if(o)for(let t=0;t{const e=Y.getState(t);if(e&&e.activeHandle>-1)return function(t,e){const n=[],o=t.doc.resolve(e),i=o.node(-1);if(!i)return l.EH.empty;const r=u.get(i),s=o.start(-1),a=r.colCount(o.pos-s)+o.nodeAfter.attrs.colspan;for(let t=0;t-1&&t.docChanged){let n=t.mapping.map(e.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new U(n,e.dragging)}return e}};function W(t,e,n,o){const i="right"==n?-o:o,r=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!r)return-1;const{pos:s}=r,a=m(t.state.doc.resolve(s));if(!a)return-1;if("right"==n)return a.pos;const l=u.get(a.node(-1)),c=a.start(-1),d=l.map.indexOf(a.pos-c);return d%l.width==0?-1:c+l.map[d-1]}function Q(t,e,n){const o=e.clientX-t.startX;return Math.max(n,t.startWidth+o)}function K(t,e){t.dispatch(t.state.tr.setMeta(Y,{setHandle:e}))}function G(t){const e=t.selection,n=b(t),o=n.node(-1),i=n.start(-1),r=u.get(o);return{...e instanceof C?r.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):r.findCell(n.pos-i),tableStart:i,map:r,table:o}}function X(t,{map:e,tableStart:n,table:o},i){let r=i>0?-1:0;(function(t,e,n){const o=p(e.type.schema).header_cell;for(let i=0;i0&&i0&&e.map[a-1]==l||i0?-1:0;(function(t,e,n){var o;const i=p(e.type.schema).header_cell;for(let r=0;r0&&i0&&l==e.map[s-e.width]){const e=n.nodeAt(l).attrs;t.setNodeMarkup(t.mapping.slice(a).map(l+o),null,{...e,rowspan:e.rowspan-1}),r+=e.colspan-1}else if(i0&&n[r]==n[r-1]||o.right0&&n[i]==n[i-t]||o.bottomn[t.type.spec.tableRole],(t,e)=>{var n;const i=t.selection;let r,s;if(i instanceof C){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(r=function(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if("cell"===n||"header_cell"===n)return t.node(e)}return null}(i.$from),!r)return!1;s=null==(n=m(i.$from))?void 0:n.pos}if(null==r||null==s)return!1;if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let n=r.attrs;const a=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const c=G(t),d=t.tr;for(let t=0;ti.table.nodeAt(t)));for(let t=0;t{const e=t+i.tableStart,n=r.doc.nodeAt(e);n&&r.setNodeMarkup(e,d,n.attrs)})),n(r)}return!0}}at("row",{useDeprecatedLogic:!0}),at("column",{useDeprecatedLogic:!0});var lt=at("cell",{useDeprecatedLogic:!0});function ct(t){return function(e,n){if(!g(e))return!1;const o=function(t,e){if(e<0){const e=t.nodeBefore;if(e)return t.pos-e.nodeSize;for(let e=t.index(-1)-1,n=t.before();e>=0;e--){const o=t.node(-1).child(e),i=o.lastChild;if(i)return n-1-i.nodeSize;n-=o.nodeSize}}else{if(t.index()null,apply(t,e){const n=t.getMeta(f);if(null!=n)return-1==n?null:n;if(null==e||!t.docChanged)return e;const{deleted:o,pos:i}=t.mapping.mapResult(e);return o?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:B},createSelectionBetween:t=>null!=f.getState(t.state)?t.state.selection:null,handleTripleClick:z,handleKeyDown:P,handlePaste:$},appendTransaction:(e,n,o)=>function(t,e,n){const o=(e||t).selection,i=(e||t).doc;let r,a;if(o instanceof s.qv&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=C.create(i,o.from);else if("row"==a){const t=i.resolve(o.from+1);r=C.rowSelection(t,t)}else if(!n){const t=u.get(o.node),e=o.from+1,n=e+t.map[t.width*t.height-1];r=C.create(i,e+1,n)}}else o instanceof s.Bs&&function({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(t+1)>e.start(t));t--,o--);return n==o&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=s.Bs.create(i,o.from):o instanceof s.Bs&&function({$from:t,$to:e}){let n,o;for(let e=t.depth;e>0;e--){const o=t.node(e);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){n=o;break}}for(let t=e.depth;t>0;t--){const n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){o=n;break}}return n!==o&&0===e.parentOffset}(o)&&(r=s.Bs.create(i,o.$from.start(),o.$from.end()));return r&&(e||(e=t.tr)).setSelection(r),e}(o,T(o,n),t)})}function ut(t,e,n,o,i,r){let s=0,a=!0,l=e.firstChild;const c=t.firstChild;for(let t=0,n=0;t{const{selection:e}=t.state;if(!(e instanceof C))return!1;let n=0;const o=(0,r.findParentNodeClosestToPos)(e.ranges[0].$from,(t=>"table"===t.type.name));return null==o||o.node.descendants((t=>{if("table"===t.type.name)return!1;["tableCell","tableHeader"].includes(t.type.name)&&(n+=1)})),n===e.ranges.length&&(t.commands.deleteTable(),!0)},mt=r.Node.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:ht,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:t}){return["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,t),["tbody",0]]},addCommands:()=>({insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:o,dispatch:i,editor:r})=>{const a=function(t,e,n,o,i){const r=function(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach((n=>{const o=t.nodes[n];o.spec.tableRole&&(e[o.spec.tableRole]=o)})),t.cached.tableNodeTypes=e,e}(t),s=[],a=[];for(let t=0;t({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.left))}return!0}(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.right))}return!0}(t,e),deleteColumn:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let t=n.right-1;tt(o,n,t),t!=n.left;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(t)}e(o)}return!0}(t,e),addRowBefore:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.top))}return!0}(t,e),addRowAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.bottom))}return!0}(t,e),deleteRow:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let t=n.bottom-1;nt(o,n,t),t!=n.top;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(n.table)}e(o)}return!0}(t,e),deleteTable:()=>({state:t,dispatch:e})=>function(t,e){const n=t.selection.$anchor;for(let o=n.depth;o>0;o--)if("table"==n.node(o).type.spec.tableRole)return e&&e(t.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}(t,e),mergeCells:()=>({state:t,dispatch:e})=>it(t,e),splitCell:()=>({state:t,dispatch:e})=>rt(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>at("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>at("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>lt(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>!!it(t,e)||rt(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:o})=>function(t,e){return function(n,o){if(!g(n))return!1;const i=b(n);if(i.nodeAfter.attrs[t]===e)return!1;if(o){const r=n.tr;n.selection instanceof C?n.selection.forEachCell(((n,o)=>{n.attrs[t]!==e&&r.setNodeMarkup(o,null,{...n.attrs,[t]:e})})):r.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),o(r)}return!0}}(t,e)(n,o),goToNextCell:()=>({state:t,dispatch:e})=>ct(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>ct(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&T(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const n=C.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ft,"Mod-Backspace":ft,Delete:ft,"Mod-Delete":ft}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[V({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],dt({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:(0,r.callOrReturn)((0,r.getExtensionField)(t,"tableRole",e))}}}).extend({renderHTML({node:t,HTMLAttributes:e}){var n,o;let i=0,s=!0;try{const e=(null===(n=t.content)||void 0===n?void 0:n.content)[0];null===(o=null==e?void 0:e.content)||void 0===o||o.content.forEach((t=>{if(t.attrs.colwidth)t.attrs.colwidth.forEach((t=>{t?i+=t:(s=!1,i+=this.options.cellMinWidth)}));else{s=!1;const e=t.attrs.colspan||1;i+=this.options.cellMinWidth*e}}))}catch(t){s=!1}return e.style=s&&i>0?`width: ${i}px;`:i&&i>0?`min-width: ${i}px`:null,["div",{class:"tui-table-wrapper"},["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,e),["tbody",0]]]}})},87187:(t,e,n)=>{n.d(e,{y:()=>l,d:()=>a});var o=n(12057),i=n(11046),r=n(74788);class s{constructor(t,e,n){const o=e.get(r.z2F),i=e.get(r._Vd).resolveComponentFactory(t);this.componentRef=i.create(e,[]),this.updateProps(n),o.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get el(){return this.componentRef.injector.get(r.SBq)}get dom(){return this.el.nativeElement}updateProps(t){Object.entries(t).forEach((([t,e])=>{this.instance[t]=e}))}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy()}}class a{}class l extends i.NodeView{constructor(t,e,n){super(t,e,n),this.contentDOMElement=null}mount(){const t=this.options.injector,e=t.get(o.K0),n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(t={})=>this.updateAttributes(t),deleteNode:()=>this.deleteNode()};this.renderer=new s(this.component,t,n),this.extension.config.draggable&&(this.renderer.el.nativeElement.ondragstart=t=>{this.onDragStart(t)}),this.contentDOMElement=this.node.isLeaf?null:e.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}}},57080:(t,e,n)=>{n.d(e,{zc:()=>M.zc,dR:()=>M.dR,F1:()=>M.F1,Wf:()=>M.Wf,VE:()=>C.TUI_EDITOR_MAX_IMAGE_WIDTH,kB:()=>C.TUI_EDITOR_MIN_IMAGE_WIDTH,mJ:()=>M.mJ,bK:()=>M.bK,p7:()=>M.p7,H9:()=>o.H9,wl:()=>o.wl,aI:()=>r.a,BN:()=>f.BN,T_:()=>m,GK:()=>h,_2:()=>x._,Sz:()=>y,VM:()=>o.VM,$3:()=>f.$3,sw:()=>w.sw,PD:()=>k,aU:()=>w.Db,Uv:()=>M.Uv,Er:()=>S.Er});var o=n(96472),i=n(8674),r=n(10215),s=n(12057),a=n(221),l=n(91489),c=n(80134),d=n(98952),u=(n(96152),n(74788));let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({}),t})();var p=n(51618),f=n(86114);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[s.ez,p.yB,l.W,c.Jy,i.Fu,a.A,d.dp,f.mJ,h]]}),t})();n(46015),n(31496);var g=n(52697),b=n(79588),v=n(23917);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[s.ez,g.KW,b.cn,v.jh,o.wl,a.A]]}),t})();n(69867);var w=n(18892),x=n(95161);n(13511);const k=[Promise.resolve().then(n.bind(n,66826)).then((({StarterKit:t})=>t)).then((t=>t.configure({heading:{levels:[1,2,3,4,5,6]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),n.e(7991).then(n.bind(n,17991)).then((({default:t})=>t)),n.e(7147).then(n.bind(n,77147)).then((({default:t})=>t)),n.e(5034).then(n.bind(n,25034)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,47841)).then((({FontColor:t})=>t)),Promise.resolve().then(n.bind(n,44632)).then((({default:t})=>t.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(n.bind(n,50822)).then((({TuiLink:t})=>t)),n.e(8629).then(n.bind(n,88629)).then((({TuiJumpAnchor:t})=>t)),Promise.resolve().then(n.bind(n,41131)).then((({TuiFileLink:t})=>t)),Promise.resolve().then(n.bind(n,13511)).then((({BackgroundColor:t})=>t)),Promise.resolve().then(n.bind(n,47745)).then((({TuiTable:t})=>t.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:t})=>t)),n.e(1397).then(n.bind(n,71397)).then((({default:t})=>t)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:t})=>t)),Promise.resolve().then(n.bind(n,73757)).then((({TuiTabExtension:t})=>t)),Promise.resolve().then(n.bind(n,58676)).then((({TableCellBackground:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiDetailsContent:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiDetails:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiSummary:t})=>t)),Promise.resolve().then(n.bind(n,83120)).then((({TuiFontSize:t})=>t))];n(41131),n(47841),n(83120),n(38981),n(91876);var C=n(45267),M=(n(73757),n(50822),n(12585),n(66826),n(47745),n(58676),n(71831)),S=n(88320)},20755:(t,e,n)=>{n.d(e,{i:()=>p});var o=n(12057),i=n(74788),r=n(66749),s=n(63658),a=n(88320),l=n(29856),c=n(43190),d=n(88002),u=n(46782),h=n(39761);let p=(()=>{class t extends l.y{constructor(t,{nativeElement:e},n){const o=(0,r.mL)(e,"mousedown").pipe((0,r.mp)(),(0,c.w)((t=>{const o=(0,r.mL)(n,"mousemove").pipe((0,d.U)((({clientX:t,clientY:n})=>(0,a.Ws)(t,n,e))),(0,u.R)((0,r.mL)(n,"mouseup")));return t.target===e?o.pipe((0,h.O)((0,a.Ws)(t.clientX,t.clientY,e))):o})),(0,u.R)(t));super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(s.a3,2),i.LFG(i.SBq),i.LFG(o.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},71831:(t,e,n)=>{n.d(e,{Y1:()=>T,F4:()=>r,bG:()=>O,ZW:()=>A,zc:()=>f,dR:()=>p,Mr:()=>w,dj:()=>g,F1:()=>u,Wf:()=>i,UN:()=>x,b$:()=>y,mJ:()=>l,$i:()=>v,rf:()=>b,bK:()=>h,p7:()=>M,Uv:()=>c});var o=n(74788);const i=new o.OlP("[TUI_EDITOR_EXTENSIONS]"),r=new o.OlP("[LAZY_EDITOR_EXTENSIONS]");var s=n(18892);const a={translate:"no",spellcheck:!1,colors:s.sw,blankColor:s.hK,linkOptions:s.pL,fontOptions:s.RR},l=new o.OlP("[TUI_EDITOR_OPTIONS]",{factory:()=>a});function c(t){return{provide:l,useValue:Object.assign(Object.assign({},a),t)}}var d=n(54487);const u=new o.OlP("[TUI_EDITOR_CONTENT_PROCESSOR]",{factory:()=>d.y}),h=new o.OlP("[TUI_EDITOR_VALUE_TRANSFORMER]"),p=new o.OlP("[TUI_ATTACH_FILES_OPTIONS]",{factory:()=>({accept:"*/*",multiple:!0})}),f=new o.OlP("[TUI_ATTACH_FILES_LOADER]");var m=n(47232);const g=new o.OlP("[TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),b=new o.OlP("[TUI_EDITOR_TOOLBAR_TEXTS]",{factory:(0,m.v)("toolbarTools")}),v=new o.OlP("[TUI_EDITOR_TABLE_COMMANDS]",{factory:(0,m.v)("editorTableCommands")}),y=new o.OlP("[TUI_EDITOR_LINK_TEXTS]",{factory:(0,m.v)("editorEditLink")}),w=new o.OlP("[TUI_EDITOR_CODE_OPTIONS]",{factory:(0,m.v)("editorCodeOptions")}),x=new o.OlP("[TUI_EDITOR_FONT_OPTIONS]",{factory:(0,m.v)("editorFontOptions")});var k=n(66749),C=n(88002);const M=new o.OlP("[TUI_IMAGE_LOADER]",{factory:()=>t=>{const e=new FileReader;return e.readAsDataURL(t),(0,k.mL)(e,"load").pipe((0,C.U)((()=>String(e.result))))}});var S=n(74235);const A=new o.OlP("[TIPTAP_EDITOR]"),O=new o.OlP("[LAZY_TIPTAP_EDITOR]",{factory:()=>{const t=new S.t(1);return Promise.resolve().then(n.bind(n,11046)).then((e=>t.next(e.Editor))),t}}),T=new o.OlP("[INITIALIZATION_TIPTAP_CONTAINER]")},88320:(t,e,n)=>{function o(t,e,n){const o=t.selection.$anchor;for(let i=o.depth;i>0;i--)if(o.node(i).type.name===n)return e&&e(t.tr.delete(o.before(i),o.after(i)).scrollIntoView()),!0;return!1}n.d(e,{yU:()=>o,Ws:()=>r,U5:()=>s,Yz:()=>l,YX:()=>d,Ap:()=>h,nC:()=>C,Er:()=>p,_N:()=>y,x6:()=>x,jx:()=>k,CH:()=>S});var i=n(85648);function r(t,e,n){const{left:o,top:r,width:s,height:a}=n.getBoundingClientRect();return[(0,i.Ki)(t-o,0,s)/s,(0,i.Ki)(e-r,0,a)/a]}function s(t){return t.slice(0,Math.max(0,t.length-1)).replace("linear-gradient(","")}function a(t,e,n={}){return t.find((({attrs:t,type:o})=>o===e&&function(t,e){const n=Object.keys(e);return!n.length||!!n.filter((n=>e[n]===t[n])).length}(t,n)))||null}function l(t,e,n={}){if(!t||!e)return null;const{node:o,offset:i}=t.parent.childAfter(t.parentOffset);if(!o)return null;const r=a(o.marks,e,n);if(!r)return null;let s=t.index(),l=t.start()+i,c=s+1,d=l+o.nodeSize;for(a(o.marks,e,n);s>0&&r.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;c{t instanceof c.NB&&e.push([t.type.name,t.attrs])})),e}var u=n(11046);function h(t,e){const n=null!=e?e:t.selection.$head.parent.textContent,o=t.doc.cut(t.selection.from,t.selection.to);return o.content.size?(0,u.getHTMLFromFragment)(o.content,t.schema):n}function p(t){const e=(new DOMParser).parseFromString(t,"text/html");return f(e.body),e.body.innerHTML}function f(t){for(const e of Array.from(t.children))if(e.children.length&&f(e),"FONT"===e.tagName)if(e.hasAttribute("size"))switch(e.getAttribute("size")){case"6":m("h1",e);break;case"5":m("h2",e);break;case"4":g("17px",e);break;case"3":g("15px",e);break;case"2":g("13px",e)}else e.hasAttribute("color")&&b(e)}function m(t,e){var n,o,i,r,s,a,l,c,d;const u=document.createElement(t);if(u.innerHTML=e.innerHTML,"P"===(null===(n=e.parentElement)||void 0===n?void 0:n.tagName)){const t=null===(i=null===(o=e.parentElement)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.insertBefore(u,e.parentElement);null===(r=e.parentElement)||void 0===r||r.removeChild(e),(null==t?void 0:t.nextSibling)&&!(null===(a=null===(s=null==t?void 0:t.nextSibling)||void 0===s?void 0:s.textContent)||void 0===a?void 0:a.trim())&&(null===(c=null===(l=t.nextSibling)||void 0===l?void 0:l.parentElement)||void 0===c||c.removeChild(t.nextSibling))}else null===(d=e.parentElement)||void 0===d||d.replaceChild(u,e)}function g(t,e){var n;const o=document.createElement("p"),i=document.createElement("span");i.setAttribute("style",`font-size: ${t}`),i.innerHTML=e.innerHTML,o.append(i),null===(n=e.parentElement)||void 0===n||n.replaceChild("P"===e.parentElement.tagName?i:o,e)}function b(t){var e;const n=document.createElement("span");n.setAttribute("style",`color: ${t.getAttribute("color")}`),n.innerHTML=t.innerHTML,null===(e=t.parentElement)||void 0===e||e.replaceChild(n,t)}const v=["\\s*(","(?:","#(?:[a-f0-9]{6}|[a-f0-9]{3})","|","(?:rgb|hsl)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)","|","(?:rgba|hsla)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)","|","[_a-z-][_a-z0-9-]*",")",")","(?:\\s+","(","(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?","))?","(?:","\\s*,\\s*","\\s*)?"];function y(t){const e=new RegExp(v.join(""),"gi"),n=t.startsWith("to")||t.match(/^\d/)?t.slice(Math.max(0,t.indexOf(",")+1)).trim():t,o=t.startsWith("to")?t.split(",")[0]:"to bottom";let i=[],r=e.exec(n);for(;null!==r;)i=i.concat({color:r[1],position:w(r[2],i.length)}),r=e.exec(n);return i=i.filter((({color:t})=>t.startsWith("#")||t.startsWith("rgb"))),{stops:i,side:o}}function w(t,e){const n=1===e?"100%":`${e}%`;return(null==t?void 0:t.includes("%"))?t:n}function x(t){return t.reduce(((t,e)=>(t[e]={parseHTML:t=>null==t?void 0:t.getAttribute(`${e}`)},t)),{})}function k(t){return t.split(";").reduce(((t,e)=>{var n;const[o,i]=null!==(n=e.split(":"))&&void 0!==n?n:[];return o&&i&&(t[o.trim()]=i.trim()),t}),{})}function C(t){var e;const n=(null===(e=t.endContainer.nodeValue)||void 0===e?void 0:e.length)||0;return t.endOffset-t.startOffset>0||t.endOffset-t.startOffset==0&&1===n||0!==t.startOffset&&n>1&&t.endOffset!==n}var M=n(2330);function S({stops:t,side:e}){return`linear-gradient(${e}, ${t.map((({color:t,position:e})=>`rgba(${(0,M.Mp)(t).join(", ")}) ${e}`)).join(", ")})`}},70997:(t,e,n)=>{n.d(e,{fV:()=>r});var o=n(74788),i=n(34978);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[i.JF,i.mG,i.Lx,i.Lq,i.u4]}),t})()},1336:(t,e,n)=>{n.d(e,{Xj:()=>s,Ih:()=>a});var o=n(74788),i=n(85648);class r{constructor(t){this.$implicit=t}}let s=(()=>{class t{constructor(t,e){this.viewContainer=t,this.templateRef=e}set tuiRepeatTimesOf(t){const e=Math.floor((0,i.Ki)(t,0,65536)),{length:n}=this.viewContainer;t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})()},28858:(t,e,n)=>{n.d(e,{EA:()=>A,aQ:()=>O,$H:()=>T});var o=n(74788),i=n(24751),r=n(72878),s=n(76480),a=n(57179),l=n(11927),c=n(85648),d=n(99434),u=n(12628),h=n(79588),p=n(79456),f=n(43631),m=n(52697),g=n(72764),b=n(56747),v=n(12057),y=n(75093);function w(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"section",2),o.TgZ(2,"button",3),o.NdJ("mousedown",(function(e){o.CHM(t);const n=o.oxw(2);return n.onButtonMouseDown(e,n.plusButtonDisabled)}))("click",(function(){return o.CHM(t),o.oxw(2).increaseValue()})),o.qZA(),o.TgZ(3,"button",4),o.NdJ("mousedown",(function(e){o.CHM(t);const n=o.oxw(2);return n.onButtonMouseDown(e,n.minusButtonDisabled)}))("click",(function(){return o.CHM(t),o.oxw(2).decreaseValue()})),o.qZA(),o.qZA(),o.BQk()}if(2&t){const t=e.ngIf,n=o.oxw(2);o.xp6(2),o.Q6J("icon",n.iconUp)("appearance",n.options.appearance)("title",t[0])("disabled",n.plusButtonDisabled)("focusable",!1),o.xp6(1),o.Q6J("icon",n.iconDown)("appearance",n.options.appearance)("disabled",n.minusButtonDisabled)("focusable",!1)("title",t[1])}}function x(t,e){if(1&t&&(o.ynx(0),o.YNc(1,w,4,10,"ng-container",1),o.ALo(2,"async"),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,t.minusTexts$))}}const k=["*",[["input"]]],C=["*","input"],M={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},appearance:"textfield",hideButtons:!1,min:0,max:Number.MAX_SAFE_INTEGER,step:1,postfix:""},S=new o.OlP("[TUI_INPUT_COUNT_OPTIONS]",{factory:()=>M});let A=(()=>{class t extends s.F9{constructor(t,e,n,o,i,r,s){super(t,e),this.textfieldController=n,this.minusTexts$=o,this.isMobile=i,this.options=r,this.numberFormat=s,this.step=this.options.step,this.min=this.options.min,this.max=this.options.max,this.hideButtons=this.options.hideButtons,this.prefix="",this.postfix=this.options.postfix}get buttonsHidden(){return this.hideButtons||"table"===this.textfieldController.appearance}get iconUp(){return this.options.icons.up}get iconDown(){return this.options.icons.down}get nativeFocusableElement(){return!this.inputNumber||this.computedDisabled?null:this.inputNumber.nativeFocusableElement}get size(){return this.textfieldController.size}get focused(){return(0,a.V8)(this.nativeFocusableElement)}get minusButtonDisabled(){return!this.interactive||(0,l.Pc)(this.value)&&this.value<=this.min}get plusButtonDisabled(){return!this.interactive||(0,l.Pc)(this.value)&&this.value>=this.max}onButtonMouseDown(t,e=!1){e||!this.nativeFocusableElement||this.isMobile||(t.preventDefault(),this.nativeFocusableElement.focus())}onFocused(t){this.updateFocused(t)}onInputNumberChange(t){this.value=t}onValueChange(t){this.value=(0,r.vZ)(t,this.numberFormat.decimalSeparator)}decreaseValue(){if(this.readOnly)return;const t=(this.value||0)-this.step;this.safeUpdateValue(t)}increaseValue(){if(this.readOnly)return;const t=(this.value||0)+this.step;this.safeUpdateValue(t)}onKeydown(t){switch(t.key){case"ArrowUp":case"Up":this.increaseValue(),t.preventDefault();break;case"ArrowDown":case"Down":this.decreaseValue(),t.preventDefault()}}safeUpdateValue(t){this.value=(0,c.Ki)(t,this.min,this.max)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a5,10),o.Y36(o.sBO),o.Y36(h.Cs),o.Y36(b.mT),o.Y36(d.fL),o.Y36(S),o.Y36(p.HO))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-input-count"]],viewQuery:function(t,e){if(1&t&&o.Gf(g.qS,5),2&t){let t;o.iGM(t=o.CRH())&&(e.inputNumber=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(o.uIk("data-size",e.size),o.ekj("_hide-buttons",e.buttonsHidden))},inputs:{step:"step",min:"min",max:"max",hideButtons:"hideButtons",prefix:"prefix",postfix:"postfix"},features:[o._Bn([(0,d.FT)(t),(0,s.wB)(t),h.Y0]),o.qOj],ngContentSelectors:C,decls:4,vars:14,consts:[["decimal","never",1,"t-textfield",3,"pseudoFocus","pseudoHover","pseudoInvalid","pseudoActive","focusable","min","max","prefix","postfix","disabled","readOnly","nativeId","ngModel","ngModelChange","keydown","focusedChange"],[4,"ngIf"],[1,"t-buttons"],["tuiIconButton","","type","button","automation-id","tui-input-count__plus-button","size","s",1,"t-button","t-button_plus",3,"icon","appearance","title","disabled","focusable","mousedown","click"],["tuiIconButton","","type","button","automation-id","tui-input-count__minus-button","size","s",1,"t-button","t-button_minus",3,"icon","appearance","disabled","focusable","title","mousedown","click"]],template:function(t,e){1&t&&(o.F$t(k),o.TgZ(0,"tui-input-number",0),o.NdJ("ngModelChange",(function(t){return e.value=t}))("keydown",(function(t){return e.onKeydown(t)}))("focusedChange",(function(t){return e.onFocused(t)})),o.Hsn(1),o.Hsn(2,1,["ngProjectAs","input",5,["input"]]),o.qZA(),o.YNc(3,x,3,3,"ng-container",1)),2&t&&(o.Q6J("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.pseudoInvalid)("pseudoActive",e.pseudoActive)("focusable",e.focusable)("min",e.min)("max",e.max)("prefix",e.prefix)("postfix",e.postfix)("disabled",e.computedDisabled)("readOnly",e.readOnly)("nativeId",e.nativeId)("ngModel",e.value),o.xp6(3),o.Q6J("ngIf",!e.buttonsHidden))},directives:[g.qS,g.g5,i.JJ,i.On,v.O5,u.v0],pipes:[v.Ov],styles:["[_nghost-%COMP%]{display:flex;font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);height:var(--tui-height-m);color:var(--tui-text-01);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-textfield[_ngcontent-%COMP%]{position:relative;border-radius:inherit;text-align:inherit;flex-grow:1;min-width:0}[_nghost-%COMP%]:not(._hide-buttons) .t-textfield[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:.125rem;height:100%}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;width:calc(var(--tui-height-m) * .75);height:calc(50% - .0625rem)}.t-buttons[_ngcontent-%COMP%] .t-button_plus[_ngcontent-%COMP%]{margin-bottom:.125rem;border-radius:0 var(--tui-radius-m) 0 0}.t-buttons[_ngcontent-%COMP%] .t-button_minus[_ngcontent-%COMP%]{border-radius:0 0 var(--tui-radius-m)}[data-size=l][_nghost-%COMP%] .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}"],changeDetection:0}),t})(),O=(()=>{class t extends f.D1{onValueChange(t){this.host.onValueChange(t)}ngAfterViewInit(){if(this.host.nativeFocusableElement){const{nativeFocusableElement:t}=this.host;t.autocomplete="off",t.inputMode="numeric",t.maxLength=t.maxLength>-1?t.maxLength:18}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵdir=o.lG2({type:t,selectors:[["tui-input-count"]],features:[o._Bn([(0,p.cp)(t)]),o.qOj]}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[v.ez,i.u5,u.fN,m.KW,h.cn,y.S,g._H]]}),t})()},92815:(t,e,n)=>{n.d(e,{l:()=>g,z:()=>b});var o=n(74788),i=n(24751),r=n(13633),s=n(75059),a=n(76480),l=n(57179),c=n(99434),d=n(93213),u=n(12057),h=n(9013);const p=["native"];function f(t,e){1&t&&(o.TgZ(0,"span",4),o.Hsn(1),o.qZA())}const m=["*"];let g=(()=>{class t extends a.M${constructor(t,e){super(t,e),this.maxLength=null,this.indent=-1}get nativeFocusableElement(){return this.native?this.native.nativeElement:null}get focused(){return(0,l.V8)(this.nativeFocusableElement)}get hasValue(){return""!==this.value}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}onScroll(){var t;const e=(null===(t=this.native)||void 0===t?void 0:t.nativeElement.scrollLeft)||0;this.indent=-1-e}getFallbackValue(){return""}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a5,10),o.Y36(o.sBO))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-input-inline"]],viewQuery:function(t,e){if(1&t&&o.Gf(p,5),2&t){let t;o.iGM(t=o.CRH())&&(e.native=t.first)}},inputs:{maxLength:"maxLength"},features:[o._Bn([d.E2,(0,c.FT)(t)]),o.qOj],ngContentSelectors:m,decls:4,vars:10,consts:[[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__native","type","text","tuiMaskAccessor","",1,"t-native",3,"id","disabled","readOnly","tuiFocusable","ngModel","ngModelChange","scroll","tuiFocusedChange"],["native",""],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"span",0),o.YNc(1,f,2,0,"span",1),o.TgZ(2,"input",2,3),o.NdJ("ngModelChange",(function(t){return e.value=t}))("scroll",(function(){return e.onScroll()}))("tuiFocusedChange",(function(t){return e.onFocused(t)})),o.qZA()),2&t&&(o.Udp("text-indent",e.indent,"px"),o.Q6J("textContent",e.value),o.xp6(1),o.Q6J("ngIf",!e.hasValue),o.xp6(1),o.Q6J("id",e.id)("disabled",e.computedDisabled)("readOnly",e.readOnly)("tuiFocusable",e.focusable)("ngModel",e.value),o.uIk("maxLength",e.maxLength))},directives:[u.O5,h.j,i.Fj,r.t,i.JJ,i.On,s.U],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}.t-before[_ngcontent-%COMP%]{display:block;padding-right:.02em;margin-left:1px;white-space:pre}.t-placeholder[_ngcontent-%COMP%]{display:inline-block;min-width:1px}.t-native[_ngcontent-%COMP%]{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:transparent;caret-color:#7d7d7d;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none;mix-blend-mode:difference}"],changeDetection:0}),t})(),b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[u.ez,i.u5,r.u,s.F,h.c]]}),t})()},11046:(t,e,n)=>{n.r(e),n.d(e,{CommandManager:()=>D,Editor:()=>Ae,Extension:()=>ct,InputRule:()=>K,Mark:()=>De,Node:()=>Pe,NodeView:()=>He,PasteRule:()=>nt,Tracker:()=>Be,callOrReturn:()=>F,combineTransactionSteps:()=>Yt,createChainableState:()=>I,createDocument:()=>Nt,createNodeFromContent:()=>Ct,createStyleTag:()=>Se,defaultBlockAt:()=>Vt,deleteProps:()=>Tt,elementFromString:()=>kt,escapeForRegEx:()=>_e,extensions:()=>Me,findChildren:()=>Ut,findChildrenInRange:()=>Wt,findDuplicates:()=>rt,findListItemPos:()=>It,findParentNode:()=>Bt,findParentNodeClosestToPos:()=>$t,fromString:()=>Z,generateHTML:()=>Gt,generateJSON:()=>Xt,generateText:()=>ee,getAttributes:()=>oe,getAttributesFromExtensions:()=>_,getChangedRanges:()=>re,getDebugJSON:()=>se,getExtensionField:()=>H,getHTMLFromFragment:()=>Qt,getMarkAttributes:()=>Et,getMarkRange:()=>gt,getMarkType:()=>bt,getMarksBetween:()=>ae,getNextListDepth:()=>Pt,getNodeAtPosition:()=>Dt,getNodeAttributes:()=>ne,getNodeType:()=>R,getRenderedAttributes:()=>$,getSchema:()=>Kt,getSchemaByResolvedExtensions:()=>Y,getSchemaTypeByName:()=>V,getSchemaTypeNameByName:()=>Ot,getSplittedAttributes:()=>le,getText:()=>te,getTextBetween:()=>dt,getTextContentFromNodes:()=>W,getTextSerializersFromSchema:()=>ut,handleBackspace:()=>zt,handleDelete:()=>jt,hasListBefore:()=>Lt,hasListItemAfter:()=>qt,hasListItemBefore:()=>_t,injectExtensionAttributesToParseRule:()=>j,inputRulesPlugin:()=>tt,isActive:()=>de,isAtEndOfNode:()=>Ft,isAtStartOfNode:()=>Ht,isEmptyObject:()=>J,isExtensionRulesEnabled:()=>U,isFunction:()=>B,isList:()=>ue,isMacOS:()=>St,isMarkActive:()=>ce,isNodeActive:()=>At,isNodeEmpty:()=>he,isNodeSelection:()=>pe,isNumber:()=>et,isPlainObject:()=>at,isRegExp:()=>Q,isString:()=>Re,isTextSelection:()=>vt,isiOS:()=>xt,listItemHasSubList:()=>Rt,markInputRule:()=>Oe,markPasteRule:()=>Le,mergeAttributes:()=>z,mergeDeep:()=>lt,minMax:()=>yt,nextListIsDeeper:()=>Jt,nextListIsHigher:()=>Zt,nodeInputRule:()=>Te,nodePasteRule:()=>ze,objectIncludes:()=>pt,pasteRulesPlugin:()=>it,posToDOMRect:()=>fe,removeDuplicates:()=>ie,resolveFocusPosition:()=>wt,selectionToInsertionEnd:()=>Mt,splitExtensions:()=>L,textInputRule:()=>Ee,textPasteRule:()=>$e,textblockTypeInputRule:()=>Ne,wrappingInputRule:()=>Ie});var o=n(62463),i=n(43594),r=n(31690),s=n(27439),a=n(38480);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0),c=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}(t,n);if(!i)return!1;let r=h(i);if(!r){let n=i.blockRange(),o=n&&(0,a.k9)(n);return null!=o&&(e&&e(t.tr.lift(n,o).scrollIntoView()),!0)}let l=r.nodeBefore;if(!l.type.spec.isolating&&x(t,r,e))return!0;if(0==i.parent.content.size&&(d(l,"end")||o.qv.isSelectable(l))){let n=(0,a.dR)(t.doc,i.before(),i.after(),s.p2.empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):i.parentOffset>0)return!1;s=h(i)}let a=s&&s.nodeBefore;return!(!a||!o.qv.isSelectable(a)||(e&&e(t.tr.setSelection(o.qv.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),0))};function h(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}const p=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):i.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:o}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(o)||(e&&e(t.tr.insertText("\n").scrollIntoView()),0))};function b(t){for(let e=0;e{let{$head:n,$anchor:i}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),s=n.indexAfter(-1),a=b(r.contentMatchAt(s));if(!a||!r.canReplaceWith(s,s,a))return!1;if(e){let i=n.after(),r=t.tr.replaceWith(i,i,a.createAndFill());r.setSelection(o.Y1.near(r.doc.resolve(i),1)),e(r.scrollIntoView())}return!0},y=(t,e)=>{let n=t.selection,{$from:i,$to:r}=n;if(n instanceof o.C1||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=b(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if((0,a.Ax)(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),i=o&&(0,a.k9)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)};function x(t,e,n){let i,r,l=e.nodeBefore,c=e.nodeAfter;if(l.type.spec.isolating||c.type.spec.isolating)return!1;if(function(t,e,n){let o=e.nodeBefore,i=e.nodeAfter,r=e.index();return!(!(o&&i&&o.type.compatibleContent(i.type))||(!o.content.size&&e.parent.canReplace(r-1,r)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!i.isTextblock&&!(0,a.Mn)(t.doc,e.pos)||(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(r=l.contentMatchAt(l.childCount)).findWrapping(c.type))&&r.matchType(i[0]||c.type).validEnd){if(n){let o=e.pos+c.nodeSize,r=s.HY.empty;for(let t=i.length-1;t>=0;t--)r=s.HY.from(i[t].create(null,r));r=s.HY.from(l.copy(r));let d=t.tr.step(new a.FC(e.pos-1,o,e.pos,o,new s.p2(r,1,0),i.length,!0)),u=o+2*i.length;(0,a.Mn)(d.doc,u)&&d.join(u),n(d.scrollIntoView())}return!0}let h=o.Y1.findFrom(e,1),p=h&&h.$from.blockRange(h.$to),f=p&&(0,a.k9)(p);if(null!=f&&f>=e.depth)return n&&n(t.tr.lift(p,f).scrollIntoView()),!0;if(u&&d(c,"start",!0)&&d(l,"end")){let o=l,i=[];for(;i.push(o),!o.isTextblock;)o=o.lastChild;let r=c,d=1;for(;!r.isTextblock;r=r.firstChild)d++;if(o.canReplace(o.childCount,o.childCount,r.content)){if(n){let o=s.HY.empty;for(let t=i.length-1;t>=0;t--)o=s.HY.from(i[t].copy(o));n(t.tr.step(new a.FC(e.pos-i.length,e.pos+c.nodeSize,e.pos+d,e.pos+c.nodeSize-d,new s.p2(o,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function k(t){return function(e,n){let i=e.selection,r=t<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return!!r.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.Bs.create(e.doc,t<0?r.start(s):r.end(s)))),!0)}}const C=k(-1),M=k(1);function S(t,e=null){return function(n,o){let i=!1;for(let o=0;o{if(i)return!1;if(o.isTextblock&&!o.hasMarkup(t,e))if(o.type==t)i=!0;else{let e=n.doc.resolve(r),o=e.index();i=e.parent.canReplaceWith(o,o+1,t)}}))}if(!i)return!1;if(o){let i=n.tr;for(let o=0;o{let{$from:n,$to:i}=t.selection;if(t.selection instanceof o.qv&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,a.Ax)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.parent.isBlock)return!1;if(e){let r=i.parentOffset==i.parent.content.size,s=t.tr;(t.selection instanceof o.Bs||t.selection instanceof o.C1)&&s.deleteSelection();let l=0==n.depth?null:b(n.node(-1).contentMatchAt(n.indexAfter(-1))),c=r&&l?[{type:l}]:void 0,d=(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,c);if(c||d||!(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,l?[{type:l}]:void 0)||(l&&(c=[{type:l}]),d=!0),d&&(s.split(s.mapping.map(n.pos),1,c),!r&&!n.parentOffset&&n.parent.type!=l)){let t=s.mapping.map(n.before()),e=s.doc.resolve(t);l&&n.node(-1).canReplaceWith(e.index(),e.index()+1,l)&&s.setNodeMarkup(s.mapping.map(n.before()),l)}e(s.scrollIntoView())}return!0})),"Mod-Enter":v,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:T,"Mod-Delete":T,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.C1(t.doc))),!0)},E={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":C,"Ctrl-e":M};for(let t in N)E[t]=N[t];function I(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:i}=n,{storedMarks:r}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return o},get doc(){return i},get tr(){return o=n.selection,i=n.doc,r=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:o}=e,{tr:i}=n,r=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(...t)=>{const n=e(...t)(r);return i.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(i),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s=[],a=!!t,l=t||i.tr,c={...Object.fromEntries(Object.entries(n).map((([t,n])=>[t,(...t)=>{const o=this.buildProps(l,e),i=n(...t)(o);return s.push(i),c}]))),run:()=>(a||!e||l.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(l),s.every((t=>!0===t)))};return c}createCan(t){const{rawCommands:e,state:n}=this,o=t||n.tr,i=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map((([t,e])=>[t,(...t)=>e(...t)({...i,dispatch:void 0})]))),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s={tr:t,editor:o,view:r,state:I({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map((([t,e])=>[t,(...t)=>e(...t)(s)])))}};return s}}class P{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach((t=>t.apply(this,e))),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter((t=>t!==e)):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return void 0===t.config[e]&&t.parent?H(t.parent,e,n):"function"==typeof t.config[e]?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function L(t){return{baseExtensions:t.filter((t=>"extension"===t.type)),nodeExtensions:t.filter((t=>"node"===t.type)),markExtensions:t.filter((t=>"mark"===t.type))}}function _(t){const e=[],{nodeExtensions:n,markExtensions:o}=L(t),i=[...n,...o],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach((t=>{const n=H(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage});n&&n().forEach((t=>{t.types.forEach((n=>{Object.entries(t.attributes).forEach((([t,o])=>{e.push({type:n,name:t,attribute:{...r,...o}})}))}))}))})),i.forEach((t=>{const n={name:t.name,options:t.options,storage:t.storage},o=H(t,"addAttributes",n);if(!o)return;const i=o();Object.entries(i).forEach((([n,o])=>{const i={...r,...o};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&void 0===(null==i?void 0:i.default)&&delete i.default,e.push({type:t.name,name:n,attribute:i})}))})),e}function R(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function z(...t){return t.filter((t=>!!t)).reduce(((t,e)=>{const n={...t};return Object.entries(e).forEach((([t,e])=>{if(n[t])if("class"===t){const o=e.split(" "),i=n[t].split(" "),r=o.filter((t=>!i.includes(t)));n[t]=[...i,...r].join(" ")}else n[t]="style"===t?[n[t],e].join("; "):e;else n[t]=e})),n}),{})}function $(t,e){return e.filter((t=>t.attribute.rendered)).map((e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]})).reduce(((t,e)=>z(t,e)),{})}function B(t){return"function"==typeof t}function F(t,e=void 0,...n){return B(t)?e?t.bind(e)(...n):t(...n):t}function J(t={}){return 0===Object.keys(t).length&&t.constructor===Object}function Z(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}function j(t,e){return t.style?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===o)return!1;const i=e.reduce(((t,e)=>{const o=e.attribute.parseHTML?e.attribute.parseHTML(n):Z(n.getAttribute(e.name));return null==o?t:{...t,[e.name]:o}}),{});return{...o,...i}}}}function q(t){return Object.fromEntries(Object.entries(t).filter((([t,e])=>("attrs"!==t||!J(e))&&null!=e)))}function Y(t,e){var n;const o=_(t),{nodeExtensions:i,markExtensions:r}=L(t),a=null===(n=i.find((t=>H(t,"topNode"))))||void 0===n?void 0:n.name,l=Object.fromEntries(i.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=q({...t.reduce(((t,e)=>{const o=H(e,"extendNodeSchema",r);return{...t,...o?o(n):{}}}),{}),content:F(H(n,"content",r)),marks:F(H(n,"marks",r)),group:F(H(n,"group",r)),inline:F(H(n,"inline",r)),atom:F(H(n,"atom",r)),selectable:F(H(n,"selectable",r)),draggable:F(H(n,"draggable",r)),code:F(H(n,"code",r)),defining:F(H(n,"defining",r)),isolating:F(H(n,"isolating",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);l&&(s.toDOM=t=>l({node:t,HTMLAttributes:$(t,i)}));const c=H(n,"renderText",r);return c&&(s.toText=c),[n.name,s]}))),c=Object.fromEntries(r.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=q({...t.reduce(((t,e)=>{const o=H(e,"extendMarkSchema",r);return{...t,...o?o(n):{}}}),{}),inclusive:F(H(n,"inclusive",r)),excludes:F(H(n,"excludes",r)),group:F(H(n,"group",r)),spanning:F(H(n,"spanning",r)),code:F(H(n,"code",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);return l&&(s.toDOM=t=>l({mark:t,HTMLAttributes:$(t,i)})),[n.name,s]})));return new s.V_({topNode:a,nodes:l,marks:c})}function V(t,e){return e.nodes[t]||e.marks[t]||null}function U(t,e){return Array.isArray(e)?e.some((e=>("string"==typeof e?e:e.name)===t.name)):e}const W=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,((t,e,i,r)=>{var s,a;const l=(null===(a=(s=t.type.spec).toText)||void 0===a?void 0:a.call(s,{node:t,pos:e,parent:i,index:r}))||t.textContent||"%leaf%";n+=l.slice(0,Math.max(0,o-e))})),n};function Q(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class K{constructor(t){this.find=t.find,this.handler=t.handler}}const G=(t,e)=>{if(Q(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function X(t){var e;const{editor:n,from:o,to:i,text:r,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find((t=>t.type.spec.code))))return!1;let d=!1;const u=W(c)+r;return s.forEach((t=>{if(d)return;const e=G(u,t.find);if(!e)return;const s=l.state.tr,c=I({state:l.state,transaction:s}),h={from:o-(e[0].length-r.length),to:i},{commands:p,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:p,chain:f,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:o,to:i,text:r}),l.dispatch(s),d=!0)})),d}function tt(t){const{editor:e,rules:n}=t,i=new o.Sy({state:{init:()=>null,apply:(t,e)=>t.getMeta(i)||(t.selectionSet||t.docChanged?null:e)},props:{handleTextInput:(t,o,r,s)=>X({editor:e,from:o,to:r,text:s,rules:n,plugin:i}),handleDOMEvents:{compositionend:t=>(setTimeout((()=>{const{$cursor:o}=t.state.selection;o&&X({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:i})})),!1)},handleKeyDown(t,o){if("Enter"!==o.key)return!1;const{$cursor:r}=t.state.selection;return!!r&&X({editor:e,from:r.pos,to:r.pos,text:"\n",rules:n,plugin:i})}},isInputRules:!0});return i}function et(t){return"number"==typeof t}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}const ot=(t,e)=>{if(Q(e))return[...t.matchAll(e)];const n=e(t);return n?n.map((e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n})):[]};function it(t){const{editor:e,rules:n}=t;let i=null,r=!1,s=!1;const a=n.map((t=>new o.Sy({view(t){const e=e=>{var n;i=(null===(n=t.dom.parentElement)||void 0===n?void 0:n.contains(e.target))?t.dom.parentElement:null};return window.addEventListener("dragstart",e),{destroy(){window.removeEventListener("dragstart",e)}}},props:{handleDOMEvents:{drop:t=>(s=i===t.dom.parentElement,!1),paste:(t,e)=>{var n;const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return r=!!(null==o?void 0:o.includes("data-pm-slice")),!1}}},appendTransaction:(n,o,i)=>{const a=n[0],l="paste"===a.getMeta("uiEvent")&&!r,c="drop"===a.getMeta("uiEvent")&&!s;if(!l&&!c)return;const d=o.doc.content.findDiffStart(i.doc.content),u=o.doc.content.findDiffEnd(i.doc.content);if(!et(d)||!u||d===u.b)return;const h=i.tr,p=I({state:i,transaction:h}),f=function(t){const{editor:e,state:n,from:o,to:i,rule:r}=t,{commands:s,chain:a,can:l}=new D({editor:e,state:n}),c=[];return n.doc.nodesBetween(o,i,((t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const d=Math.max(o,e),u=Math.min(i,e+t.content.size),h=t.textBetween(d-e,u-e,void 0,"");ot(h,r.find).forEach((t=>{if(void 0===t.index)return;const e=d+t.index+1,o=e+t[0].length,i={from:n.tr.mapping.map(e),to:n.tr.mapping.map(o)},u=r.handler({state:n,range:i,match:t,commands:s,chain:a,can:l});c.push(u)}))})),c.every((t=>null!==t))}({editor:e,state:p,from:Math.max(d-1,0),to:u.b-1,rule:t});return f&&h.steps.length?h:void 0}})));return a}function rt(t){const e=t.filter(((e,n)=>t.indexOf(e)!==n));return[...new Set(e)]}class st{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=st.resolve(t),this.schema=Y(this.extensions,e),this.extensions.forEach((t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:V(t.name,this.schema)};"mark"===t.type&&(null===(e=F(H(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name);const o=H(t,"onBeforeCreate",n);o&&this.editor.on("beforeCreate",o);const i=H(t,"onCreate",n);i&&this.editor.on("create",i);const r=H(t,"onUpdate",n);r&&this.editor.on("update",r);const s=H(t,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=H(t,"onTransaction",n);a&&this.editor.on("transaction",a);const l=H(t,"onFocus",n);l&&this.editor.on("focus",l);const c=H(t,"onBlur",n);c&&this.editor.on("blur",c);const d=H(t,"onDestroy",n);d&&this.editor.on("destroy",d)}))}static resolve(t){const e=st.sort(st.flatten(t)),n=rt(e.map((t=>t.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((t=>`'${t}'`)).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map((t=>{const e=H(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t})).flat(10)}static sort(t){return t.sort(((t,e)=>{const n=H(t,"priority")||100,o=H(e,"priority")||100;return n>o?-1:n{const n=H(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:V(e.name,this.schema)});return n?{...t,...n()}:t}),{})}get plugins(){const{editor:t}=this,e=st.sort([...this.extensions].reverse()),n=[],o=[],i=e.map((e=>{const i={name:e.name,options:e.options,storage:e.storage,editor:t,type:V(e.name,this.schema)},s=[],a=H(e,"addKeyboardShortcuts",i);let l={};if("mark"===e.type&&e.config.exitable&&(l.ArrowRight=()=>De.handleExit({editor:t,mark:e})),a){const e=Object.fromEntries(Object.entries(a()).map((([e,n])=>[e,()=>n({editor:t})])));l={...l,...e}}const c=(0,r.h)(l);s.push(c);const d=H(e,"addInputRules",i);U(e,t.options.enableInputRules)&&d&&n.push(...d());const u=H(e,"addPasteRules",i);U(e,t.options.enablePasteRules)&&u&&o.push(...u());const h=H(e,"addProseMirrorPlugins",i);if(h){const t=h();s.push(...t)}return s})).flat();return[tt({editor:t,rules:n}),...it({editor:t,rules:o}),...i]}get attributes(){return _(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=L(this.extensions);return Object.fromEntries(e.filter((t=>!!H(t,"addNodeView"))).map((e=>{const n=this.attributes.filter((t=>t.type===e.name)),o={name:e.name,options:e.options,storage:e.storage,editor:t,type:R(e.name,this.schema)},i=H(e,"addNodeView",o);return i?[e.name,(o,r,s,a)=>{const l=$(o,n);return i()({editor:t,node:o,getPos:s,decorations:a,HTMLAttributes:l,extension:e})}]:[]})))}}function at(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function lt(t,e){const n={...t};return at(t)&&at(e)&&Object.keys(e).forEach((o=>{at(e[o])?o in t?n[o]=lt(t[o],e[o]):Object.assign(n,{[o]:e[o]}):Object.assign(n,{[o]:e[o]})})),n}class ct{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ct(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ct(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}function dt(t,e,n){const{from:o,to:i}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return t.nodesBetween(o,i,((t,n,c,d)=>{var u;const h=null==s?void 0:s[t.type.name];h?(t.isBlock&&!l&&(a+=r,l=!0),c&&(a+=h({node:t,pos:n,parent:c,index:d,range:e}))):t.isText?(a+=null===(u=null==t?void 0:t.text)||void 0===u?void 0:u.slice(Math.max(o,n)-n,i-n),l=!1):t.isBlock&&!l&&(a+=r,l=!0)})),a}function ut(t){return Object.fromEntries(Object.entries(t.nodes).filter((([,t])=>t.spec.toText)).map((([t,e])=>[t,e.spec.toText])))}const ht=ct.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:i}=e,{ranges:r}=i;return dt(o,{from:Math.min(...r.map((t=>t.$from.pos))),to:Math.max(...r.map((t=>t.$to.pos)))},{textSerializers:ut(n)})}}})]}});function pt(t,e,n={strict:!0}){const o=Object.keys(e);return!o.length||o.every((o=>n.strict?e[o]===t[o]:Q(e[o])?e[o].test(t[o]):e[o]===t[o]))}function ft(t,e,n={}){return t.find((t=>t.type===e&&pt(t.attrs,n)))}function mt(t,e,n={}){return!!ft(t,e,n)}function gt(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(t.parentOffset===o.offset&&0!==o.offset&&(o=t.parent.childBefore(t.parentOffset)),!o.node)return;const i=ft([...o.node.marks],e,n);if(!i)return;let r=o.index,s=t.start()+o.offset,a=r+1,l=s+o.node.nodeSize;for(ft([...o.node.marks],e,n);r>0&&i.isInSet(t.parent.child(r-1).marks);)r-=1,s-=t.parent.child(r).nodeSize;for(;a${t}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function Ct(t,e,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof t&&null!==t)try{return Array.isArray(t)&&t.length>0?s.HY.fromArray(t.map((t=>e.nodeFromJSON(t)))):e.nodeFromJSON(t)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Ct("",e,n)}if("string"==typeof t){const o=s.aw.fromSchema(e);return n.slice?o.parseSlice(kt(t),n.parseOptions).content:o.parse(kt(t),n.parseOptions)}return Ct("",e,n)}function Mt(t,e,n){const i=t.steps.length-1;if(i{0===l&&(l=o)})),t.setSelection(o.Y1.near(t.doc.resolve(l),n))}function St(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function At(t,e,n={}){const{from:o,to:i,empty:r}=t.selection,s=e?R(e,t.schema):null,a=[];t.doc.nodesBetween(o,i,((t,e)=>{if(t.isText)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);a.push({node:t,from:n,to:r})}));const l=i-o,c=a.filter((t=>!s||s.name===t.node.type.name)).filter((t=>pt(t.node.attrs,n,{strict:!1})));return r?!!c.length:c.reduce(((t,e)=>t+e.to-e.from),0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Tt(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce(((e,o)=>(n.includes(o)||(e[o]=t[o]),e)),{})}function Nt(t,e,n={}){return Ct(t,e,{slice:!1,parseOptions:n})}function Et(t,e){const n=bt(e,t.schema),{from:o,to:i,empty:r}=t.selection,s=[];r?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,i,(t=>{s.push(...t.marks)}));const a=s.find((t=>t.type.name===n.name));return a?{...a.attrs}:{}}const It=(t,e)=>{const{$from:n}=e.selection,o=R(t,e.schema);let i=null,r=n.depth,s=n.pos,a=null;for(;r>0&&null===a;)i=n.node(r),i.type===o?a=r:(r-=1,s-=1);return null===a?null:{$pos:e.doc.resolve(s),depth:a}},Dt=(t,e,n,o=20)=>{const i=t.doc.resolve(n);let r=o,s=null;for(;r>0&&null===s;){const t=i.node(r);(null==t?void 0:t.type.name)===e?s=t:r-=1}return[s,r]},Pt=(t,e)=>{const n=It(t,e);if(!n)return!1;const[,o]=Dt(e,t,n.$pos.pos+4);return o},Ht=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)},Lt=(t,e,n)=>{const{$anchor:o}=t.selection,i=Math.max(0,o.pos-2),r=t.doc.resolve(i).node();return!(!r||!n.includes(r.type.name))},_t=(t,e)=>{var n;const{$anchor:o}=e.selection,i=e.doc.resolve(o.pos-2);return 0!==i.index()&&(null===(n=i.nodeBefore)||void 0===n?void 0:n.type.name)===t},Rt=(t,e,n)=>{if(!n)return!1;const o=R(t,e.schema);let i=!1;return n.descendants((t=>{t.type===o&&(i=!0)})),i},zt=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(!At(t.state,e)&&Lt(t.state,e,n)){const{$anchor:n}=t.state.selection,o=t.state.doc.resolve(n.before()-1),i=[];o.node().descendants(((t,n)=>{t.type.name===e&&i.push({node:t,pos:n})}));const r=i.at(-1);if(!r)return!1;const s=t.state.doc.resolve(o.start()+r.pos+1);return t.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!At(t.state,e))return!1;if(!Ht(t.state))return!1;const o=It(e,t.state);if(!o)return!1;const i=t.state.doc.resolve(o.$pos.pos-2).node(o.depth),r=Rt(e,t.state,i);return _t(e,t.state)&&!r?t.commands.joinItemBackward():t.chain().liftListItem(e).run()};function $t(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Bt(t){return e=>$t(e.$from,t)}const Ft=(t,e)=>{const{$from:n,$to:o,$anchor:i}=t.selection;if(e){const n=Bt((t=>t.type.name===e))(t.selection);if(!n)return!1;const o=t.doc.resolve(n.pos+1);return i.pos+1===o.end()}return!(o.parentOffset{const n=Pt(t,e),o=It(t,e);return!(!o||!n)&&n>o.depth},Zt=(t,e)=>{const n=Pt(t,e),o=It(t,e);return!(!o||!n)&&n!!At(t.state,e)&&!!Ft(t.state,e)&&(Jt(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():Zt(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()),qt=(t,e)=>{var n;const{$anchor:o}=e.selection,i=e.doc.resolve(o.pos-o.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null===(n=i.nodeAfter)||void 0===n?void 0:n.type.name)===t};function Yt(t,e){const n=new a.wx(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}function Vt(t){for(let e=0;e{e(t)&&n.push({node:t,pos:o})})),n}function Wt(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&o.push({node:t,pos:e})})),o}function Qt(t,e){const n=s.PW.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Kt(t,e){return Y(st.resolve(t),e)}function Gt(t,e){const n=Kt(e);return Qt(s.NB.fromJSON(n,t).content,n)}function Xt(t,e){const n=Kt(e),o=kt(t);return s.aw.fromSchema(n).parse(o).toJSON()}function te(t,e){return dt(t,{from:0,to:t.content.size},e)}function ee(t,e,n){const{blockSeparator:o="\n\n",textSerializers:i={}}=n||{},r=Kt(e);return te(s.NB.fromJSON(r,t),{blockSeparator:o,textSerializers:{...ut(r),...i}})}function ne(t,e){const n=R(e,t.schema),{from:o,to:i}=t.selection,r=[];t.doc.nodesBetween(o,i,(t=>{r.push(t)}));const s=r.reverse().find((t=>t.type.name===n.name));return s?{...s.attrs}:{}}function oe(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?ne(t,e):"mark"===n?Et(t,e):{}}function ie(t,e=JSON.stringify){const n={};return t.filter((t=>{const o=e(t);return!Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=!0)}))}function re(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach(((t,i)=>{const r=[];if(t.ranges.length)t.forEach(((t,e)=>{r.push({from:t,to:e})}));else{const{from:t,to:e}=n[i];if(void 0===t||void 0===e)return;r.push({from:t,to:e})}r.forEach((({from:t,to:n})=>{const r=e.slice(i).map(t,-1),s=e.slice(i).map(n),a=e.invert().map(r,-1),l=e.invert().map(s);o.push({oldRange:{from:a,to:l},newRange:{from:r,to:s}})}))})),function(t){const e=ie(t);return 1===e.length?e:e.filter(((t,n)=>!e.filter(((t,e)=>e!==n)).some((e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))))}(o)}function se(t,e=0){const n=t.type===t.type.schema.topNodeType?0:1,o=e,i=o+t.nodeSize,r=t.marks.map((t=>{const e={type:t.type.name};return Object.keys(t.attrs).length&&(e.attrs={...t.attrs}),e})),s={...t.attrs},a={type:t.type.name,from:o,to:i};return Object.keys(s).length&&(a.attrs=s),r.length&&(a.marks=r),t.content.childCount&&(a.content=[],t.forEach(((t,o)=>{var i;null===(i=a.content)||void 0===i||i.push(se(t,e+o+n))}))),t.text&&(a.text=t.text),a}function ae(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach((e=>{const i=gt(n.resolve(t-1),e.type);i&&o.push({mark:e,...i})})):n.nodesBetween(t,e,((t,e)=>{o.push(...t.marks.map((n=>({from:e,to:e+t.nodeSize,mark:n}))))})),o}function le(t,e,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const o=t.find((t=>t.type===e&&t.name===n));return!!o&&o.attribute.keepOnSplit})))}function ce(t,e,n={}){const{empty:o,ranges:i}=t.selection,r=e?bt(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter((t=>!r||r.name===t.type.name)).find((t=>pt(t.attrs,n,{strict:!1})));let s=0;const a=[];if(i.forEach((({$from:e,$to:n})=>{const o=e.pos,i=n.pos;t.doc.nodesBetween(o,i,((t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);s+=r-n,a.push(...t.marks.map((t=>({mark:t,from:n,to:r}))))}))})),0===s)return!1;const l=a.filter((t=>!r||r.name===t.mark.type.name)).filter((t=>pt(t.mark.attrs,n,{strict:!1}))).reduce(((t,e)=>t+e.to-e.from),0),c=a.filter((t=>!r||t.mark.type!==r&&t.mark.type.excludes(r))).reduce(((t,e)=>t+e.to-e.from),0);return(l>0?l+c:l)>=s}function de(t,e,n={}){if(!e)return At(t,null,n)||ce(t,null,n);const o=Ot(e,t.schema);return"node"===o?At(t,e,n):"mark"===o&&ce(t,e,n)}function ue(t,e){const{nodeExtensions:n}=L(e),o=n.find((e=>e.name===t));if(!o)return!1;const i=F(H(o,"group",{name:o.name,options:o.options,storage:o.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function he(t){var e;const n=null===(e=t.type.createAndFill())||void 0===e?void 0:e.toJSON(),o=t.toJSON();return JSON.stringify(n)===JSON.stringify(o)}function pe(t){return t instanceof o.qv}function fe(t,e,n){const o=t.state.doc.content.size,i=yt(e,0,o),r=yt(n,0,o),s=t.coordsAtPos(i),a=t.coordsAtPos(r,-1),l=Math.min(s.top,a.top),c=Math.max(s.bottom,a.bottom),d=Math.min(s.left,a.left),u=Math.max(s.right,a.right),h={top:l,bottom:c,left:d,right:u,width:u-d,height:c-l,x:d,y:l};return{...h,toJSON:()=>h}}function me(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter((t=>null==e?void 0:e.includes(t.type.name)));t.tr.ensureMarks(o)}}const ge=(t,e)=>{const n=Bt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,n.pos)||(t.join(n.pos),!0)},be=(t,e)=>{const n=Bt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,o)||(t.join(o),!0)};var ve=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame((()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:i}=o;return!n||(i.forEach((({$from:n,$to:o})=>{t.doc.nodesBetween(n.pos,o.pos,((t,n)=>{if(t.type.isText)return;const{doc:o,mapping:i}=e,r=o.resolve(i.map(n)),s=o.resolve(i.map(n+t.nodeSize)),l=r.blockRange(s);if(!l)return;const c=(0,a.k9)(l);if(t.type.isTextblock){const{defaultType:t}=r.parent.contentMatchAt(r.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)}))})),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>y(t,e),cut:(t,e)=>({editor:n,tr:i})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);i.deleteRange(t.from,t.to);const a=i.mapping.map(e);return i.insert(a,s.content),i.setSelection(new o.Bs(i.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const i=t.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===o.type){if(e){const e=i.before(n),o=i.after(n);t.delete(e,o).scrollIntoView()}return!0}return!1},deleteNode:t=>({tr:e,state:n,dispatch:o})=>{const i=R(t,n.schema),r=e.selection.$anchor;for(let t=r.depth;t>0;t-=1)if(r.node(t).type===i){if(o){const n=r.before(t),o=r.after(t);e.delete(n,o).scrollIntoView()}return!0}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:o,to:i}=t;return n&&e.delete(o,i),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>v(t,e),extendMarkRange:(t,e={})=>({tr:n,state:i,dispatch:r})=>{const s=bt(t,i.schema),{doc:a,selection:l}=n,{$from:c,from:d,to:u}=l;if(r){const t=gt(c,s,e);if(t&&t.from<=d&&t.to>=u){const e=o.Bs.create(a,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t({editor:n,view:o,tr:i,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{xt()&&o.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(o.focus(),(null==e?void 0:e.scrollIntoView)&&n.commands.scrollIntoView())}))};if(o.hasFocus()&&null===t||!1===t)return!0;if(r&&null===t&&!vt(n.state.selection))return s(),!0;const a=wt(i.doc,t)||n.state.selection,l=n.state.selection.eq(a);return r&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},forEach:(t,e)=>n=>t.every(((t,o)=>e(t,{...n,index:o}))),insertContent:(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:r})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const i=Ct(e,r.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===i.toString())return!0;let{from:s,to:a}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},l=!0,c=!0;if((i.toString().startsWith("<")?i:[i]).forEach((t=>{t.check(),l=!!l&&t.isText&&0===t.marks.length,c=!!c&&t.isBlock})),s===a&&c){const{parent:t}=o.doc.resolve(s);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(s-=1,a+=1)}l?Array.isArray(e)?o.insertText(e.map((t=>t.text||"")).join(""),s,a):"object"==typeof e&&e&&e.text?o.insertText(e.text,s,a):o.insertText(e,s,a):o.replaceWith(s,a,i),n.updateSelection&&Mt(o,o.steps.length-1,-1)}return!0},joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection,r=i instanceof o.qv;if(r){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.from))return!1;n=i.from}else if(n=(0,a.GJ)(t.doc,i.from,-1),null==n)return!1;if(e){let i=t.tr.join(n);r&&i.setSelection(o.qv.create(i.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0})(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection;if(i instanceof o.qv){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.to))return!1;n=i.to}else if(n=(0,a.GJ)(t.doc,i.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinBackward:()=>({state:t,dispatch:e})=>c(t,e),joinForward:()=>({state:t,dispatch:e})=>p(t,e),joinItemBackward:()=>({tr:t,state:e,dispatch:n})=>{try{const o=(0,a.GJ)(e.doc,e.selection.$from.pos,-1);return null!=o&&(t.join(o,2),n&&n(t),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const o=(0,a.GJ)(t.doc,t.selection.$from.pos,1);return null!=o&&(n.join(o,2),e&&e(n),!0)}catch(t){return!1}},keyboardShortcut:t=>({editor:e,view:n,tr:o,dispatch:i})=>{const r=function(t){const e=t.split(/-(?!$)/);let n,o,i,r,s=e[e.length-1];"Space"===s&&(s=" ");for(let t=0;t!["Alt","Ctrl","Meta","Shift"].includes(t))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction((()=>{n.someProp("handleKeyDown",(t=>t(n,a)))}));return null==l||l.steps.forEach((t=>{const e=t.map(o.mapping);e&&i&&o.maybeStep(e)})),!0},lift:(t,e={})=>({state:n,dispatch:o})=>!!At(n,R(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:o}=t.selection,i=n.blockRange(o),r=i&&(0,a.k9)(i);return null!=r&&(e&&e(t.tr.lift(i,r).scrollIntoView()),!0)})(n,o),liftEmptyBlock:()=>({state:t,dispatch:e})=>w(t,e),liftListItem:t=>({state:e,dispatch:n})=>{return(o=R(t,e.schema),function(t,e){let{$from:n,$to:i}=t.selection,r=n.blockRange(i,(t=>t.childCount>0&&t.firstChild.type==o));return!!r&&(!e||(n.node(r.depth-1).type==o?function(t,e,n,o){let i=t.tr,r=o.end,l=o.$to.end(o.depth);rr;e--)t-=i.child(e).nodeSize,o.delete(t-1,t+1);let r=o.doc.resolve(n.start),l=r.nodeAfter;if(o.mapping.map(n.end)!=n.start+r.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==i.childCount,u=r.node(-1),h=r.index(-1);if(!u.canReplace(h+(c?0:1),h+1,l.content.append(d?s.HY.empty:s.HY.from(i))))return!1;let p=r.pos,f=p+l.nodeSize;return o.step(new a.FC(p-(c?1:0),f+(d?1:0),p+1,f-1,new s.p2((c?s.HY.empty:s.HY.from(i.copy(s.HY.empty))).append(d?s.HY.empty:s.HY.from(i.copy(s.HY.empty))),c?0:1,d?0:1),c?0:1)),e(o.scrollIntoView()),!0}(t,e,r)))})(e,n);var o},newlineInCode:()=>({state:t,dispatch:e})=>g(t,e),resetAttributes:(t,e)=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=R(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{o.doc.nodesBetween(t.$from.pos,t.$to.pos,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,Tt(t.attrs,e)),s&&t.marks.length&&t.marks.forEach((i=>{s===i.type&&n.addMark(o,o+t.nodeSize,s.create(Tt(i.attrs,e)))}))}))})),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>f(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:i,to:r}=t.selection,s=i.sharedDepth(r);return 0!=s&&(n=i.before(s),e&&e(t.tr.setSelection(o.qv.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>M(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>C(t,e),setContent:(t,e=!1,n={})=>({tr:o,editor:i,dispatch:r})=>{const{doc:s}=o,a=Nt(t,i.schema,n);return r&&o.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const{selection:r}=n,{empty:s,ranges:a}=r,l=bt(t,o.schema);if(i)if(s){const t=Et(o,l);n.addStoredMark(l.create({...t,...e}))}else a.forEach((t=>{const i=t.$from.pos,r=t.$to.pos;o.doc.nodesBetween(i,r,((t,o)=>{const s=Math.max(o,i),a=Math.min(o+t.nodeSize,r);t.marks.find((t=>t.type===l))?t.marks.forEach((t=>{l===t.type&&n.addMark(s,a,l.create({...t.attrs,...e}))})):n.addMark(s,a,l.create(e))}))}));return function(t,e,n){var o;const{selection:i}=e;let r=null;if(vt(i)&&(r=i.$cursor),r){const e=null!==(o=t.storedMarks)&&void 0!==o?o:r.marks();return!!n.isInSet(e)||!e.some((t=>t.type.excludes(n)))}const{ranges:s}=i;return s.some((({$from:e,$to:o})=>{let i=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,o.pos,((t,e,o)=>{if(i)return!1;if(t.isInline){const e=!o||o.type.allowsMarkType(n),r=!!n.isInSet(t.marks)||!t.marks.some((t=>t.type.excludes(n)));i=e&&r}return!i})),i}))}(o,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:o,chain:i})=>{const r=R(t,n.schema);return r.isTextblock?i().command((({commands:t})=>!!S(r,e)(n)||t.clearNodes())).command((({state:t})=>S(r,e)(t,o))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,i=yt(t,0,n.content.size),r=o.qv.create(n,i);e.setSelection(r)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:i,to:r}="number"==typeof t?{from:t,to:t}:t,s=o.Bs.atStart(n).from,a=o.Bs.atEnd(n).to,l=yt(i,s,a),c=yt(r,s,a),d=o.Bs.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const o=R(t,e.schema);return(i=o,function(t,e){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==i));if(!r)return!1;let l=r.startIndex;if(0==l)return!1;let c=r.parent,d=c.child(l-1);if(d.type!=i)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,o=s.HY.from(n?i.create():null),l=new s.p2(s.HY.from(i.create(null,s.HY.from(c.type.create(null,o)))),n?3:1,0),u=r.start,h=r.end;e(t.tr.step(new a.FC(u-(n?3:1),h,u,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var i},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:i,editor:r})=>{const{selection:s,doc:l}=e,{$from:c,$to:d}=s,u=le(r.extensionManager.attributes,c.node().type.name,c.node().attrs);if(s instanceof o.qv&&s.node.isBlock)return!(!c.parentOffset||!(0,a.Ax)(l,c.pos)||(i&&(t&&me(n,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),0));if(!c.parent.isBlock)return!1;if(i){const i=d.parentOffset===d.parent.content.size;s instanceof o.Bs&&e.deleteSelection();const l=0===c.depth?void 0:Vt(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=i&&l?[{type:l,attrs:u}]:void 0,p=(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,h);if(h||p||!(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,l?[{type:l}]:void 0)||(p=!0,h=l?[{type:l,attrs:u}]:void 0),p&&(e.split(e.mapping.map(c.pos),1,h),l&&!i&&!c.parentOffset&&c.parent.type!==l)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,l)&&e.setNodeMarkup(e.mapping.map(c.before()),l)}t&&me(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},splitListItem:t=>({tr:e,state:n,dispatch:i,editor:r})=>{var l;const c=R(t,n.schema),{$from:d,$to:u}=n.selection,h=n.selection.node;if(h&&h.isBlock||d.depth<2||!d.sameParent(u))return!1;const p=d.node(-1);if(p.type!==c)return!1;const f=r.extensionManager.attributes;if(0===d.parent.content.size&&d.node(-1).childCount===d.indexAfter(-1)){if(2===d.depth||d.node(-3).type!==c||d.index(-2)!==d.node(-2).childCount-1)return!1;if(i){let t=s.HY.empty;const n=d.index(-1)?1:d.index(-2)?2:3;for(let e=d.depth-n;e>=d.depth-3;e-=1)t=s.HY.from(d.node(e).copy(t));const i=d.indexAfter(-1){if(h>-1)return!1;t.isTextblock&&0===t.content.size&&(h=e+1)})),h>-1&&e.setSelection(o.Bs.near(e.doc.resolve(h))),e.scrollIntoView()}return!0}const m=u.pos===d.end()?p.contentMatchAt(0).defaultType:null,g=le(f,p.type.name,p.attrs),b=le(f,d.node().type.name,d.node().attrs);e.delete(d.pos,u.pos);const v=m?[{type:c,attrs:g},{type:m,attrs:b}]:[{type:c,attrs:g}];if(!(0,a.Ax)(e.doc,d.pos,2))return!1;if(i){const{selection:t,storedMarks:o}=n,{splittableMarks:s}=r.extensionManager,a=o||t.$to.parentOffset&&t.$from.marks();if(e.split(d.pos,2,v).scrollIntoView(),!a||!i)return!0;const l=a.filter((t=>s.includes(t.type.name)));e.ensureMarks(l)}return!0},toggleList:(t,e,n,o={})=>({editor:i,tr:r,state:s,dispatch:a,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,p=R(t,s.schema),f=R(e,s.schema),{selection:m,storedMarks:g}=s,{$from:b,$to:v}=m,y=b.blockRange(v),w=g||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const x=Bt((t=>ue(t.type.name,u)))(m);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return c.liftListItem(f);if(ue(x.node.type.name,u)&&p.validContent(x.node.content)&&a)return l().command((()=>(r.setNodeMarkup(x.pos,p),!0))).command((()=>ge(r,p))).command((()=>be(r,p))).run()}return n&&w&&a?l().command((()=>{const t=d().wrapInList(p,o),e=w.filter((t=>h.includes(t.type.name)));return r.ensureMarks(e),!!t||c.clearNodes()})).wrapInList(p,o).command((()=>ge(r,p))).command((()=>be(r,p))).run():l().command((()=>!!d().wrapInList(p,o)||c.clearNodes())).wrapInList(p,o).command((()=>ge(r,p))).command((()=>be(r,p))).run()},toggleMark:(t,e={},n={})=>({state:o,commands:i})=>{const{extendEmptyMarkRange:r=!1}=n,s=bt(t,o.schema);return ce(o,s,e)?i.unsetMark(s,{extendEmptyMarkRange:r}):i.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:i})=>{const r=R(t,o.schema),s=R(e,o.schema);return At(o,r,n)?i.setNode(s):i.setNode(r,n)},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const i=R(t,n.schema);return At(n,i,e)?o.lift(i):o.wrapIn(i,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(r.text){const n=e.doc.resolve(r.from).marks();e.replaceWith(r.from,r.to,t.schema.text(r.text,n))}else e.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:i}=n;return o||e&&i.forEach((e=>{t.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bt(t,o.schema),{$from:c,empty:d,ranges:u}=a;if(!i)return!0;if(d&&s){let{from:t,to:e}=a;const o=null===(r=c.marks().find((t=>t.type===l)))||void 0===r?void 0:r.attrs,i=gt(c,l,o);i&&(t=i.from,e=i.to),n.removeMark(t,e,l)}else u.forEach((t=>{n.removeMark(t.$from.pos,t.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=R(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{const i=t.$from.pos,a=t.$to.pos;o.doc.nodesBetween(i,a,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,{...t.attrs,...e}),s&&t.marks.length&&t.marks.forEach((r=>{if(s===r.type){const l=Math.max(o,i),c=Math.min(o+t.nodeSize,a);n.addMark(l,c,s.create({...r.attrs,...e}))}}))}))})),!0)},wrapIn:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,s=i.blockRange(r),l=s&&(0,a.nd)(s,t,e);return!!l&&(o&&o(n.tr.wrap(s,l).scrollIntoView()),!0)}}(R(t,n.schema),e)(n,o),wrapInList:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,l=i.blockRange(r),c=!1,d=l;if(!l)return!1;if(l.depth>=2&&i.node(l.depth-1).type.compatibleContent(t)&&0==l.startIndex){if(0==i.index(l.depth-1))return!1;let t=n.doc.resolve(l.start-2);d=new s.Ts(t,t,l.depth),l.endIndex=0;t--)r=s.HY.from(n[t].type.create(n[t].attrs,r));t.step(new a.FC(e.start-(o?2:0),e.end,e.start,e.end,new s.p2(r,0,0),n.length,!0));let l=0;for(let t=0;t({...ve})}),we=ct.create({name:"editable",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xe=ct.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new o.Sy({key:new o.H$("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),ke=ct.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first((({commands:t})=>[()=>t.undoInputRule(),()=>t.command((({tr:e})=>{const{selection:n,doc:i}=e,{empty:r,$anchor:s}=n,{pos:a,parent:l}=s,c=s.parent.isTextblock?e.doc.resolve(a-1):s,d=c.parent.type.spec.isolating,u=s.pos-s.parentOffset,h=d&&1===c.parent.childCount?u===s.pos:o.Y1.atStart(i).from===a;return!(!(r&&h&&l.type.isTextblock)||l.textContent.length)&&t.clearNodes()})),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()])),e=()=>this.editor.commands.first((({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},r={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return xt()||St()?r:i},addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clearDocument"),appendTransaction:(t,e,n)=>{if(!t.some((t=>t.docChanged))||e.doc.eq(n.doc))return;const{empty:i,from:r,to:s}=e.selection,a=o.Y1.atStart(e.doc).from,l=o.Y1.atEnd(e.doc).to;if(i||r!==a||s!==l)return;if(0!==n.doc.textBetween(0,n.doc.content.size," "," ").length)return;const c=n.tr,d=I({state:n,transaction:c}),{commands:u}=new D({editor:this.editor,state:d});return u.clearNodes(),c.steps.length?c:void 0}})]}}),Ce=ct.create({name:"tabindex",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Me=Object.freeze({__proto__:null,ClipboardTextSerializer:ht,Commands:ye,Editable:we,FocusEvents:xe,Keymap:ke,Tabindex:Ce});function Se(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==o)return o;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class Ae extends P{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Se('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=B(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],o=this.state.reconfigure({plugins:n});this.view.updateState(o)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((t=>!t.key.startsWith(e)))});this.view.updateState(n)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(Me):[],...this.options.extensions].filter((t=>["extension","node","mark"].includes(null==t?void 0:t.type)));this.extensionManager=new st(t,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=Nt(this.options.content,this.schema,this.options.parseOptions),e=wt(t,this.options.autofocus);this.view=new i.tk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:o.yy.create({doc:t,selection:e||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach((t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)})):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=t.getMeta("focus"),i=t.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:t}),i&&this.emit("blur",{editor:this,event:i.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return oe(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,o="string"==typeof t?e:t;return de(this.state,n,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Qt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return te(this.state.doc,{blockSeparator:e,textSerializers:{...ut(this.schema),...n}})}get isEmpty(){return he(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}}function Oe(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];if(s){const o=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(ae(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>l)).length)return null;cn.from&&r.delete(n.from+o,l);const d=n.from+o+s.length;r.addMark(n.from+o,d,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function Te(t){return new K({find:t.find,handler:({state:e,range:n,match:i})=>{var r;const s=F(t.getAttributes,void 0,i)||{},{tr:a}=e,l=t.blockReplace?n.from-1:n.from;let c=n.to;const d=t.type.create(s),{$to:u}=a.selection;if(i[1]){let t=l+i[0].lastIndexOf(i[1]);t>c?t=c:c=t+i[1].length;const e=i[0][i[0].length-1];a.insertText(e,l+i[0].length-1),a.replaceWith(t,c,d)}else i[0]&&a.replaceWith(l,c,d);if(t.blockReplace&&t.addExtraNewline){const t=u.end();if(u.nodeAfter)console.log(u.node().type.name),u.nodeAfter.isTextblock?a.setSelection(o.Bs.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(o.qv.create(a.doc,u.pos)):a.setSelection(o.Bs.create(a.doc,u.pos));else{const e=null===(r=u.parent.type.contentMatch.defaultType)||void 0===r?void 0:r.create();e&&(a.insert(t,e),a.setSelection(o.Bs.create(a.doc,t+1)))}a.scrollIntoView()}}})}function Ne(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=e.doc.resolve(n.from),r=F(t.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,r)}})}function Ee(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}function Ie(t){return new K({find:t.find,handler:({state:e,range:n,match:o,chain:i})=>{const r=F(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&(0,a.nd)(l,t.type,r);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:o}=e,{splittableMarks:i}=t.editor.extensionManager,r=o||n.$to.parentOffset&&n.$from.marks();if(r){const t=r.filter((t=>i.includes(t.type.name)));s.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";i().updateAttributes(e,r).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,a.Mn)(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,d))&&s.join(n.from-1)}})}class De{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new De(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new De(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){const i=o.marks();if(!i.find((t=>(null==t?void 0:t.type.name)===e.name)))return!1;const r=i.find((t=>(null==t?void 0:t.type.name)===e.name));return r&&n.removeStoredMark(r),n.insertText(" ",o.pos),t.view.dispatch(n),!0}return!1}}class Pe{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Pe(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Pe(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}class He{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,i,r,s,a,l;const{view:c}=this.editor,d=t.target,u=3===d.nodeType?null===(e=d.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(d))||!u)return;let h=0,p=0;if(this.dom!==u){const e=this.dom.getBoundingClientRect(),n=u.getBoundingClientRect(),o=null!==(i=t.offsetX)&&void 0!==i?i:null===(r=t.nativeEvent)||void 0===r?void 0:r.offsetX,l=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=n.x-e.x+o,p=n.y-e.y+l}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=o.qv.create(c.state.doc,this.getPos()),m=c.state.tr.setSelection(f);c.dispatch(m)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const n=t.target;if(!this.dom.contains(n)||(null===(e=this.contentDOM)||void 0===e?void 0:e.contains(n)))return!1;const i=t.type.startsWith("drag"),r="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!r&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=o.qv.isSelectable(this.node),d="copy"===t.type,u="paste"===t.type,h="cut"===t.type,p="mousedown"===t.type;if(!l&&c&&i&&t.preventDefault(),l&&i&&!a)return t.preventDefault(),!1;if(l&&s&&!a&&p){const t=n.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("drop",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(a||r||d||u||h||p&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&(xt()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every((t=>t.isContentEditable))||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command((({tr:e})=>{const n=this.getPos();return e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0}))}deleteNode(){const t=this.getPos(),e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}}function Le(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];let l=n.to;if(s){const o=a.search(/\S/),c=n.from+a.indexOf(s),d=c+s.length;if(ae(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>c)).length)return null;dn.from&&r.delete(n.from+o,c),l=n.from+o+s.length,r.addMark(n.from+o,l,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function _e(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(t){return"string"==typeof t}function ze(t){return new nt({find:t.find,handler({match:e,chain:n,range:o}){const i=F(t.getAttributes,void 0,e);if(!1===i||null===i)return null;e.input&&n().deleteRange(o).insertContentAt(o.from,{type:t.type.name,attrs:i})}})}function $e(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}class Be{constructor(t){this.transaction=t,this.currentStep=this.transaction.steps.length}map(t){let e=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce(((t,n)=>{const o=n.getMap().mapResult(t);return o.deleted&&(e=!0),o.pos}),t),deleted:e}}}},54424:(t,e,n)=>{n.r(e),n.d(e,{Heading:()=>i,default:()=>i});var o=n(11046);const i=o.Node.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,(0,o.mergeAttributes)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>(0,o.textblockTypeInputRule)({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}})},44632:(t,e,n)=>{n.r(e),n.d(e,{Image:()=>r,default:()=>r,inputRegex:()=>i});var o=n(11046);const i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,r=o.Node.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[(0,o.nodeInputRule)({find:i,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]}})},84402:(t,e,n)=>{n.r(e),n.d(e,{TextStyle:()=>i,default:()=>i});var o=n(11046);const i=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}})},31690:(t,e,n)=>{n.d(e,{$:()=>f,h:()=>p});for(var o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},r="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)o[48+a]=o[96+a]=String(a);for(a=1;a<=24;a++)o[a+111]="F"+a;for(a=65;a<=90;a++)o[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in o)i.hasOwnProperty(l)||(i[l]=o[l]);var c=n(62463);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function u(t){let e,n,o,i,r=t.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(let t=0;t127)&&(a=o[n.keyCode])&&a!=l){let o=e[h(a,n)];if(o&&o(t.state,t.dispatch,t))return!0}}return!1}}},27439:(t,e,n)=>{function o(t){this.content=t}n.d(e,{aw:()=>K,PW:()=>at,HY:()=>a,vc:()=>u,ZU:()=>U,NB:()=>I,Ts:()=>N,e4:()=>h,V_:()=>W,p2:()=>p}),o.prototype={constructor:o,find:function(t){for(var e=0;e>1}},o.from=function(t){if(t instanceof o)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new o(e)};const i=o;function r(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(o),s=e.child(o);if(i!=s){if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let t=0;i.text[t]==s.text[t];t++)n++;return n}if(i.content.size||s.content.size){let t=r(i.content,s.content,n+1);if(null!=t)return t}n+=i.nodeSize}else n+=i.nodeSize}}function s(t,e,n,o){for(let i=t.childCount,r=e.childCount;;){if(0==i||0==r)return i==r?null:{a:n,b:o};let a=t.child(--i),l=e.child(--r),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:o};if(a.isText&&a.text!=l.text){let t=0,e=Math.min(a.text.length,l.text.length);for(;tt&&!1!==n(a,o+s,i||null,r)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,t-i),Math.min(a.content.size,e-i),n,o+i)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,o){let i="",r=!0;return this.nodesBetween(t,e,((s,a)=>{s.isText?(i+=s.text.slice(Math.max(t,a)-a,e-a),r=!n):s.isLeaf?(o?i+="function"==typeof o?o(s):o:s.type.spec.leafText&&(i+=s.type.spec.leafText(s)),r=!n):!r&&s.isBlock&&(i+=n,r=!0)}),0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(o[o.length-1]=e.withText(e.text+n.text),i=1);it)for(let i=0,r=0;rt&&((re)&&(s=s.isText?s.cut(Math.max(0,t-r),Math.min(s.text.length,e-r)):s.cut(Math.max(0,t-r-1),Math.min(s.content.size,e-r-1))),n.push(s),o+=s.nodeSize),r=a}return new a(n,o)}cutByIndex(t,e){return t==e?a.empty:0==t&&e==this.content.length?this:new a(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let o=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return o[t]=e,new a(o,i)}addToStart(t){return new a([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new a(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,o=0;;n++){let i=o+this.child(n).nodeSize;if(i>=t)return i==t||e>0?c(n+1,i):c(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((t=>t.toJSON())):null}static fromJSON(t,e){if(!e)return a.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return a.empty;let e,n=0;for(let o=0;o{class t{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let o=0;othis.type.rank&&(e||(e=t.slice(0,o)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;et.type.rank-e.type.rank)),n}}return t.none=[],t})();class h extends Error{}class p{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new p(n,this.openStart,this.openEnd)}removeBetween(t,e){return new p(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let n=e.openStart||0,o=e.openEnd||0;if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new p(a.fromJSON(t,e.content),n,o)}static maxOpen(t,e=!0){let n=0,o=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)o++;return new p(t,n,o)}}function f(t,e,n){let{index:o,offset:i}=t.findIndex(e),r=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(i==e||r.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,r.copy(f(r.content,e-i-1,n-i-1)))}function m(t,e,n,o){let{index:i,offset:r}=t.findIndex(e),s=t.maybeChild(i);if(r==e||s.isText)return o&&!o.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=m(s.content,e-r-1,n);return a&&t.replaceChild(i,s.copy(a))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,o){let i=t.index(o),r=t.node(o);if(i==e.index(o)&&o=0;t--)o=e.node(t).copy(a.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}(n,t);return k(r,C(t,i,s,e,o))}{let o=t.parent,i=o.content;return k(o,i.cut(0,t.parentOffset).append(n.content).append(i.cut(e.parentOffset)))}}return k(r,M(t,e,o))}function v(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function y(t,e,n){let o=t.node(n);return v(o,e.node(n)),o}function w(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function x(t,e,n,o){let i=(e||t).node(n),r=0,s=e?e.index(n):i.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(w(t.nodeAfter,o),r++));for(let t=r;ti&&y(t,e,i+1),s=o.depth>i&&y(n,o,i+1),l=[];return x(null,t,i,l),r&&s&&e.index(i)==n.index(i)?(v(r,s),w(k(r,C(t,e,n,o,i+1)),l)):(r&&w(k(r,M(t,e,i+1)),l),x(e,n,i,l),s&&w(k(s,M(n,o,i+1)),l)),x(o,null,i,l),new a(l)}function M(t,e,n){let o=[];return x(null,t,n,o),t.depth>n&&w(k(y(t,e,n+1),M(t,e,n+1)),o),x(e,null,n,o),new a(o)}p.empty=new p(a.empty,0,0);class S{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=t.child(e);return n?t.child(e).cut(n):o}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],o=0==e?0:this.path[3*e-1]+1;for(let e=0;e0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new N(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],o=0,i=e;for(let e=t;;){let{index:t,offset:r}=e.content.findIndex(i),s=i-r;if(n.push(e,t,o+r),!s)break;if(e=e.child(t),e.isText)break;i=s-1,o+=r+1}return new S(e,n,i)}static resolveCached(t,e){for(let n=0;nt&&this.nodesBetween(t,e,(t=>(n.isInSet(t.marks)&&(o=!0),!o))),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),P(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=a.empty,o=0,i=n.childCount){let r=this.contentMatchAt(t).matchFragment(n,o,i),s=r&&r.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=o;tt.type.name))}`);this.content.forEach((t=>t.check()))}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((t=>t.toJSON()))),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let o=a.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,o,n)}}I.prototype.text=void 0;class D extends I{constructor(t,e,n,o){if(super(t,e,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):P(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new D(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new D(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function P(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class H{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new L(t,e);if(null==n.next)return H.empty;let o=_(n);n.next&&n.err("Unexpected trailing text");let i=function(t){let e=Object.create(null);return function n(o){let i=[];o.forEach((e=>{t[e].forEach((({term:e,to:n})=>{if(!e)return;let o;for(let t=0;t{o||i.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)}))}))}));let r=e[o.join(",")]=new H(o.indexOf(t.length-1)>-1);for(let t=0;te.concat(t(n,r))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return o(r,s),i(t(e.expr,s),s),[o(s)]}if("plus"==e.type){let s=n();return i(t(e.expr,r),s),i(t(e.expr,s),s),[o(s)]}if("opt"==e.type)return[o(r)].concat(t(e.expr,r));if("range"==e.type){let s=r;for(let o=0;ot.to=e))}}(o));return function(t,e){for(let n=0,o=[t];nt.createAndFill())));for(let t=0;t=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let o=0;o{let o=n+(e.validEnd?"*":" ")+" ";for(let n=0;n"+t.indexOf(e.next[n].next);return o})).join("\n")}}H.empty=new H(!0);class L{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function _(t){let e=[];do{e.push(R(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function R(t){let e=[];do{e.push(z(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function z(t){let e=function(t){if(t.eat("(")){let e=_(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let i=[];for(let t in n){let o=n[t];o.groups.indexOf(e)>-1&&i.push(o)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i}(t,t.next).map((e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e})));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=B(t,e)}return e}function $(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function B(t,e){let n=$(t),o=n;return t.eat(",")&&(o="}"!=t.next?$(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function F(t,e){return e-t}function J(t,e){let n=[];return function e(o){let i=t[o];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(o);for(let t=0;t-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;en[t]=new Y(t,e,o)));let o=e.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class V{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class U{constructor(t,e,n,o){this.name=t,this.rank=e,this.schema=n,this.spec=o,this.attrs=q(o.attrs),this.excluded=null;let i=Z(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,j(this.attrs,t))}static compile(t,e){let n=Object.create(null),o=0;return t.forEach(((t,i)=>n[t]=new U(t,o++,e,i))),n}removeFromSet(t){for(var e=0;e-1}}class W{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=i.from(t.nodes),e.marks=i.from(t.marks||{}),this.nodes=Y.compile(this.spec.nodes,this),this.marks=U.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],o=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[o]||(n[o]=H.parse(o,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?Q(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:Q(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,o){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Y))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,o)}text(t,e){let n=this.nodes.text;return new D(n,n.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return I.fromJSON(this,t)}markFromJSON(t){return u.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Q(t,e){let n=[];for(let o=0;o-1)&&n.push(s=o)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}class K{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((t=>{t.tag?this.tags.push(t):t.style&&this.styles.push(t)})),this.normalizeLists=!this.tags.some((e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,e.from,e.to),p.maxOpen(n.finish())}matchTag(t,e,n){for(let o=n?this.tags.indexOf(n)+1:0;ot.length&&(61!=r.charCodeAt(t.length)||r.slice(t.length+1)!=e))){if(o.getAttrs){let t=o.getAttrs(e);if(!1===t)continue;o.attrs=t||void 0}return o}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,o=0;for(;o{n(t=rt(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)}))}for(let e in t.nodes){let o=t.nodes[e].spec.parseDOM;o&&o.forEach((t=>{n(t=rt(t)),t.node||t.ignore||t.mark||(t.node=e)}))}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new K(t,K.schemaRules(t)))}}const G={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},X={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tt={ol:!0,ul:!0};function et(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class nt{constructor(t,e,n,o,i,r,s){this.type=t,this.attrs=e,this.marks=n,this.pendingMarks=o,this.solid=i,this.options=s,this.content=[],this.activeMarks=u.none,this.stashMarks=[],this.match=r||(4&s?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(a.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=a.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,n=this.pendingMarks;ethis.addAll(t))),e&&this.sync(n),this.needsBlock=r}else this.withStyleRules(t,(()=>{this.addElementByRule(t,i,!1===i.consuming?n:void 0)}))}leafFallback(t){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"))}ignoreFallback(t){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(t){let e=u.none,n=u.none;for(let o=0;o{r.clearMark(t)&&(n=t.addToSet(n))})):e=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(e),!1!==r.consuming)break;i=r}return[e,n]}addElementByRule(t,e,n){let o,i,r;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(t):o=this.enter(i,e.attrs||null,e.preserveWhitespace)):(r=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(r));let s=this.top;if(i&&i.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((t=>this.insertNode(t)));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n)}o&&this.sync(s)&&this.open--,r&&this.removePendingMark(r,s)}addAll(t,e,n){let o=e||0;for(let i=e?t.childNodes[e]:t.firstChild,r=null==n?null:t.childNodes[n];i!=r;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i);this.findAtPoint(t,o)}findPlace(t){let e,n;for(let o=this.open;o>=0;o--){let i=this.nodes[o],r=i.findWrapping(t);if(r&&(!e||e.length>r.length)&&(e=r,n=i,!r.length))break;if(i.solid)break}if(!e)return!1;this.sync(n);for(let t=0;tthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,o=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),i=-(n?n.depth+1:0)+(o?0:1),r=(t,s)=>{for(;t>=0;t--){let a=e[t];if(""==a){if(t==e.length-1||0==t)continue;for(;s>=i;s--)if(r(t-1,s))return!0;return!1}{let t=s>0||0==s&&o?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!t||t.name!=a&&-1==t.groups.indexOf(a))return!1;s--}}return!0};return r(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(t){let e=function(t,e){for(let n=0;n=0;n--){let o=this.nodes[n];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let e=o.popFromStashMark(t);e&&o.type&&o.type.allowsMarkType(e.type)&&(o.activeMarks=e.addToSet(o.activeMarks))}if(o==e)break}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function rt(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let o in n){let i=n[o];if(!i.allowsMarkType(t))continue;let r=[],s=t=>{r.push(t);for(let n=0;n{if(i.length||t.marks.length){let n=0,r=0;for(;n=0;o--){let i=this.serializeMark(t.marks[o],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let o=this.marks[t.type.name];return o&&at.renderSpec(ct(n),o(t,e))}static renderSpec(t,e,n=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));let s=n?t.createElementNS(n,i):t.createElement(i),a=e[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let t in a)if(null!=a[t]){let e=t.indexOf(" ");e>0?s.setAttributeNS(t.slice(0,e),t.slice(e+1),a[t]):s.setAttribute(t,a[t])}}for(let i=l;il)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:e,contentDOM:i}=at.renderSpec(t,r,n);if(s.appendChild(e),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new at(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=lt(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return lt(t.marks)}}function lt(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ct(t){return t.document||window.document}},62463:(t,e,n)=>{n.d(e,{C1:()=>f,yy:()=>C,qv:()=>h,Sy:()=>S,H$:()=>T,Y1:()=>s,xm:()=>a,Bs:()=>d});var o=n(27439),i=n(38480);const r=Object.create(null);class s{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new a(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let i=e<0?g(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):g(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=r[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in r)throw new RangeError("Duplicate use of selection JSON ID "+t);return r[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends s{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return s.near(n);let o=t.resolve(e.map(this.anchor));return new d(o.parent.inlineContent?o:n,n)}replace(t,e=o.p2.empty){if(super.replace(t,e),e==o.p2.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new u(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let o=t.resolve(e);return new this(o,n==e?o:t.resolve(n))}static between(t,e,n){let o=t.pos-e.pos;if(n&&!o||(n=o>=0?1:-1),!e.parent.inlineContent){let t=s.findFrom(e,n,!0)||s.findFrom(e,-n,!0);if(!t)return s.near(e,n);e=t.$head}return t.parent.inlineContent||(0==o||(t=(s.findFrom(t,-n,!0)||s.findFrom(t,n,!0)).$anchor).posnew f(t)};function g(t,e,n,o,i,r=!1){if(e.inlineContent)return d.create(t,n);for(let s=o-(i>0?0:1);i>0?s=0;s+=i){let o=e.child(s);if(o.isAtom){if(!r&&h.isSelectable(o))return h.create(t,n-(i<0?o.nodeSize:0))}else{let e=g(t,o,n+i,i<0?o.childCount:0,i,r);if(e)return e}n+=o.nodeSize*i}return null}function b(t,e,n){let o=t.steps.length-1;if(o{null==r&&(r=o)})),t.setSelection(s.near(t.doc.resolve(r),n)))}class v extends i.wx{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return o.vc.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||o.vc.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let o=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,o.text(t,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=y(e.init,n),this.apply=y(e.apply,n)}}const x=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||s.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,o)=>o.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class k{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new w(t.key,t.spec.state,t))}))}}class C{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;nt.toJSON()))),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[n],i=o.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(o,this[o.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new k(t.schema,t.plugins),r=new C(i);return i.fields.forEach((i=>{if("doc"==i.name)r.doc=o.NB.fromJSON(t.schema,e.doc);else if("selection"==i.name)r.selection=s.fromJSON(r.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(r.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,o))return void(r[i.name]=a.fromJSON.call(s,t,e[o],r))}r[i.name]=i.init(t,r)}})),r}}function M(t,e,n){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(e):"handleDOMEvents"==o&&(i=M(i,e,{})),n[o]=i}return n}class S{constructor(t){this.spec=t,this.props={},t.props&&M(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}const A=Object.create(null);function O(t){return t in A?t+"$"+ ++A[t]:(A[t]=0,t+"$")}class T{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},38480:(t,e,n)=>{n.d(e,{vs:()=>l,FC:()=>v,Pu:()=>b,wx:()=>J,Mn:()=>S,Ax:()=>M,nj:()=>T,nd:()=>k,GJ:()=>O,k9:()=>x,dR:()=>N});var o=n(27439);const i=Math.pow(2,16);function r(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,n=r(t);if(!this.inverted)for(let t=0;tt)break;let d=this.ranges[l+r],u=this.ranges[l+a],h=c+d;if(t<=h){let r=c+o+((d?t==c?-1:t==h?1:e:e)<0?0:u);if(n)return r;let a=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(a|=8),new s(r,a,t==(e<0?c:h)?null:l/3+(t-c)*i)}o+=u-d}return n?t+o:new s(t+o,0,null)}touches(t,e){let n=0,o=r(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;et)break;let a=this.ranges[e+i];if(t<=r+a&&e==3*o)return!0;n+=this.ranges[e+s]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,i=0;o=0;e--){let o=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=o&&o>e?n-o-1:void 0)}}invert(){let t=new l;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;nn&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),i),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,r)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new p(e.pos,n.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("addMark",p);class f extends d{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new o.p2(h(e.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),t),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,n)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("removeMark",f);class m extends d{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;nn.pos?null:new v(e.pos,n.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(e.from,e.to,e.gapFrom,e.gapTo,o.p2.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let o=t.resolve(e),i=n-e,r=o.depth;for(;i>0&&r>0&&o.indexAfter(r)==o.node(r).childCount;)r--,i--;if(i>0){let t=o.node(r).maybeChild(o.indexAfter(r));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function w(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function x(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let o=t.$from.node(n),i=t.$from.index(n),r=t.$to.indexAfter(n);if(nr;t--,e--){let n=i.node(t),r=i.index(t);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(r,n.childCount),a=o&&o[e+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=o&&o[e]||n;if(!n.canReplace(r+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(r),l=o&&o[0];return i.node(r).canReplaceWith(a,a,l?l.type:i.node(r+1).type)}function S(t,e){let n=t.resolve(e),o=n.index();return A(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function A(t,e){return!(!t||!e||t.isLeaf||!t.canAppend(e))}function O(t,e,n=-1){let o=t.resolve(e);for(let t=o.depth;;t--){let i,r,s=o.index(t);if(t==o.depth?(i=o.nodeBefore,r=o.nodeAfter):n>0?(i=o.node(t+1),s++,r=o.node(t).maybeChild(s)):(i=o.node(t).maybeChild(s-1),r=o.node(t+1)),i&&!i.isTextblock&&A(i,r)&&o.node(t).canReplace(s,s+1))return e;if(0==t)break;e=n<0?o.before(t):o.after(t)}}function T(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t=0;e--){let n=e==o.depth?0:o.pos<=(o.start(e+1)+o.end(e+1))/2?-1:1,r=o.index(e)+(n>0?1:0),s=o.node(e),a=!1;if(1==t)a=s.canReplace(r,r,i);else{let t=s.contentMatchAt(r).findWrapping(i.firstChild.type);a=t&&s.canReplaceWith(r,r,t[0])}if(a)return 0==n?o.pos:n<0?o.before(e+1):o.after(e+1)}return null}function N(t,e,n=e,i=o.p2.empty){if(e==n&&!i.size)return null;let r=t.resolve(e),s=t.resolve(n);return E(r,s,i)?new b(e,n,i):new I(r,s,i).fit()}function E(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}d.jsonID("replaceAround",v);class I{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=o.HY.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=o.HY.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let r=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new o.p2(r,s,a);return t>-1?new v(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new b(n.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,o=this.unplaced.openEnd;n1&&(o=0),i.type.spec.isolating&&o<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=H(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let r=t.firstChild;for(let t=this.depth;t>=0;t--){let s,{type:a,match:l}=this.frontier[t],c=null;if(1==e&&(r?l.matchType(r.type)||(c=l.fillBefore(o.HY.from(r),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:t,parent:i,inject:c};if(2==e&&r&&(s=l.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:t,parent:i,wrap:s};if(i&&l.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new o.p2(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);if(i.childCount<=1&&e>0){let r=t.size-e<=e+i.size;this.unplaced=new o.p2(D(t,e-1,1),e-1,r?e-1:n)}else this.unplaced=new o.p2(D(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:r}){for(;this.depth>e;)this.closeFrontierNode();if(r)for(let t=0;t1||0==l||t.content.size)&&(u=e,d.push(L(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=P(this.placed,e,o.HY.from(d)),this.frontier[e].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:o}=this.frontier[e],i=e=0;n--){let{match:e,type:o}=this.frontier[n],i=_(t,n,o,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:r,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=P(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),o=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,o)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=P(this.placed,this.depth,o.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(o.HY.empty,!0);t.childCount&&(this.placed=P(this.placed,this.frontier.length,t))}}function D(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(D(t.firstChild.content,e-1,n)))}function P(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(P(t.lastChild.content,e-1,n)))}function H(t,e){for(let n=0;n1&&(i=i.replaceChild(0,L(i.firstChild,e-1,1==i.childCount?n-1:0))),e>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(o.HY.empty,!0)))),t.copy(i)}function _(t,e,n,o,i){let r=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==r.childCount&&!n.compatibleContent(r.type))return null;let a=o.fillBefore(r.content,!0,s);return a&&!function(t,e,n){for(let o=n;oi){let e=r.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(o.HY.empty,!0))}return t}function $(t,e){let n=[];for(let o=Math.min(t.depth,e.depth);o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class B extends d{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(i),0,e.isLeaf?0:1))}getMap(){return a.empty}invert(t){return new B(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new B(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new B(e.pos,e.attr,e.value)}}d.jsonID("attr",B);let F=class extends Error{};F=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(F.prototype=Object.create(Error.prototype)).constructor=F,F.prototype.name="TransformError";class J{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new F(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=o.p2.empty){let i=N(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new o.p2(o.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,o.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),s=t.doc.resolve(n);if(E(r,s,i))return t.step(new b(e,n,i));let a=$(r,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(r.depth+1);a.unshift(l);for(let t=r.depth,e=r.pos-1;t>0;t--,e--){let n=r.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:r.before(t)==e&&a.splice(1,0,-t)}let c=a.indexOf(l),d=[],u=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==i.openStart)break;t=n.content}for(let t=u-1;t>=0;t--){let e=d[t].type,n=R(e);if(n&&r.node(c).type!=e)u=t;else if(n||!e.isTextblock)break}for(let e=i.openStart;e>=0;e--){let l=(e+u+1)%(i.openStart+1),h=d[l];if(h)for(let e=0;e=0&&(t.replace(e,n,i),!(t.steps.length>h));o--){let t=a[o];t<0||(e=r.before(t),n=s.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=function(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(0==o.parentOffset)for(let t=o.depth-1;t>=0;t--){let e=o.index(t);if(o.node(t).canReplaceWith(e,e,n))return o.before(t+1);if(e>0)return null}if(o.parentOffset==o.parent.content.size)for(let t=o.depth-1;t>=0;t--){let e=o.indexAfter(t);if(o.node(t).canReplaceWith(e,e,n))return o.after(t+1);if(e0&&(s||o.node(n-1).canReplace(o.index(n-1),i.indexAfter(n-1))))return t.delete(o.before(n),i.after(n))}for(let r=1;r<=o.depth&&r<=i.depth;r++)if(e-o.start(r)==o.depth-r&&n>o.end(r)&&i.end(r)-n!=i.depth-r)return t.delete(o.before(r),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:i,$to:r,depth:s}=e,a=i.before(s+1),l=r.after(s+1),c=a,d=l,u=o.HY.empty,h=0;for(let t=s,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,u=o.HY.from(i.node(t).copy(u)),h++):c--;let p=o.HY.empty,f=0;for(let t=s,e=!1;t>n;t--)e||r.after(t+1)=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=o.HY.from(n[t].type.create(n[t].attrs,i))}let r=e.start,s=e.end;t.step(new v(r,s,r,s,new o.p2(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){return function(t,e,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,((e,n)=>{if(e.isTextblock&&!e.hasMarkup(i,r)&&function(t,e,n){let o=t.resolve(e),i=o.index();return o.parent.canReplaceWith(i,i+1,n)}(t.doc,t.mapping.slice(s).map(n),i)){t.clearIncompatible(t.mapping.slice(s).map(n,1),i);let a=t.mapping.slice(s),l=a.map(n,1),c=a.map(n+e.nodeSize,1);return t.step(new v(l,c,l+1,c-1,new o.p2(o.HY.from(i.create(r,null,e.marks)),0,0),1,!0)),!1}}))}(this,t,e,n,i),this}setNodeMarkup(t,e,n=null,i){return function(t,e,n,i,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new v(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new o.p2(o.HY.from(a),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new B(t,e,n)),this}addNodeMark(t,e){return this.step(new m(t,e)),this}removeNodeMark(t,e){if(!(e instanceof o.vc)){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new g(t,e)),this}split(t,e=1,n){return function(t,e,n=1,i){let r=t.doc.resolve(e),s=o.HY.empty,a=o.HY.empty;for(let t=r.depth,e=r.depth-n,l=n-1;t>e;t--,l--){s=o.HY.from(r.node(t).copy(s));let e=i&&i[l];a=o.HY.from(e?e.type.create(e.attrs,a):r.node(t).copy(a))}t.step(new b(e,e,new o.p2(s.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,o){let i,r,s=[],a=[];t.doc.nodesBetween(e,n,((t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let c=Math.max(l,e),u=Math.min(l+t.nodeSize,n),h=o.addToSet(d);for(let t=0;tt.step(e))),a.forEach((e=>t.step(e)))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,i){let r=[],s=0;t.doc.nodesBetween(e,n,((t,a)=>{if(!t.isInline)return;s++;let l=null;if(i instanceof o.ZU){let e,n=t.marks;for(;e=i.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else i?i.isInSet(t.marks)&&(l=[i]):l=t.marks;if(l&&l.length){let o=Math.min(a+t.nodeSize,n);for(let t=0;tt.step(new f(e.from,e.to,e.style))))}(this,t,e,n),this}clearIncompatible(t,e,n){return function(t,e,n,i=n.contentMatch){let r=t.doc.nodeAt(e),s=[],a=e+1;for(let e=0;e=0;e--)t.step(s[e])}(this,t,e,n),this}}},43594:(t,e,n)=>{n.d(e,{p:()=>_e,EH:()=>$e,tk:()=>an});var o=n(62463),i=n(27439),r=n(38480);const s=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},a=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let o=l||(l=document.createRange());return o.setEnd(t,null==n?t.nodeValue.length:n),o.setStart(t,e||0),o},d=function(t,e,n,o){return n&&(h(t,e,n,o,-1)||h(t,e,n,o,1))},u=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,o,i){for(;;){if(t==n&&e==o)return!0;if(e==(i<0?0:p(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||u.test(t.nodeName)||"false"==t.contentEditable)return!1;e=s(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if("false"==(t=t.childNodes[e+(i<0?-1:0)]).contentEditable)return!1;e=i<0?p(t):0}}}function p(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,v="undefined"!=typeof document?document:null,y=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(y),x=/MSIE \d/.exec(y),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),C=!!(x||k||w),M=x?document.documentMode:k?+k[1]:w?+w[1]:0,S=!C&&/gecko\/(\d+)/i.test(y);S&&(/Firefox\/(\d+)/.exec(y)||[0,0])[1];const A=!C&&/Chrome\/(\d+)/.exec(y),O=!!A,T=A?+A[1]:0,N=!C&&!!b&&/Apple Computer/.test(b.vendor),E=N&&(/Mobile\/\w+/.test(y)||!!b&&b.maxTouchPoints>2),I=E||!!b&&/Mac/.test(b.platform),D=!!b&&/Win/.test(b.platform),P=/Android \d/.test(y),H=!!v&&"webkitFontSmoothing"in v.documentElement.style,L=H?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function _(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function R(t,e){return"number"==typeof t?t:t[e]}function z(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function $(t,e,n){let o=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,r=t.dom.ownerDocument;for(let s=n||t.dom;s;s=a(s)){if(1!=s.nodeType)continue;let t=s,n=t==r.body,a=n?_(r):z(t),l=0,c=0;if(e.topa.bottom-R(o,"bottom")&&(c=e.bottom-e.top>a.bottom-a.top?e.top+R(i,"top")-a.top:e.bottom-a.bottom+R(i,"bottom")),e.lefta.right-R(o,"right")&&(l=e.right-a.right+R(i,"right")),l||c)if(n)r.defaultView.scrollBy(l,c);else{let n=t.scrollLeft,o=t.scrollTop;c&&(t.scrollTop+=c),l&&(t.scrollLeft+=l);let i=t.scrollLeft-n,r=t.scrollTop-o;e={left:e.left-i,top:e.top-r,right:e.right-i,bottom:e.bottom-r}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function B(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=a(o));return e}function F(t,e){for(let n=0;n=d){l=Math.max(p.bottom,l),d=Math.min(p.top,d);let t=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!i&&p.left<=e.left&&p.right>=e.left&&(i=u,r={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(a=h+1)}}return!n&&i&&(n=i,o=r,s=0),n&&3==n.nodeType?function(t,e){let n=t.nodeValue.length,o=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:t,offset:0}}(n,o):!n||s&&1==n.nodeType?{node:t,offset:a}:Z(n,o)}function j(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function q(t,e,n){let o=t.childNodes.length;if(o&&n.tope.top&&i++}n==t.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(s=function(t,e,n,o){let i=-1;for(let n=e,r=!1;n!=t.dom;){let e=t.docView.nearestDesc(n,!0);if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent&&!r||!e.contentDOM)){let t=e.dom.getBoundingClientRect();if(e.node.isBlock&&e.parent&&!r&&(r=!0,t.left>o.left||t.top>o.top?i=e.posBefore:(t.right-1?i:t.docView.posFromDOM(e,n,-1)}(t,n,i,e))}null==s&&(s=function(t,e,n){let{node:o,offset:i}=Z(e,n),r=-1;if(1==o.nodeType&&!o.firstChild){let t=o.getBoundingClientRect();r=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(o,i,r)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function V(t){return t.top=0&&i==o.nodeValue.length?(t--,r=1):n<0?t--:e++,K(U(c(o,t,e),r),r<0)}{let t=U(c(o,i,i),n);if(S&&i&&/\s/.test(o.nodeValue[i-1])&&i=0)}if(null==r&&i&&(n<0||i==p(o))){let t=o.childNodes[i-1],e=3==t.nodeType?c(t,p(t)-(s?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return K(U(e,1),!1)}if(null==r&&i=0)}function K(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function X(t,e,n){let o=t.state,i=t.root.activeElement;o!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),i!=t.dom&&i&&i.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,ot=!1;class it{constructor(t,e,n,o){this.parent=t,this.children=e,this.dom=n,this.contentDOM=o,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;es(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!1;break}if(e.previousSibling)break}if(null==o&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!0;break}if(e.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,o=t;o;o=o.parentNode){let i,r=this.getDesc(o);if(r&&(!e||r.node)){if(!n||!(i=r.nodeDOM)||(1==i.nodeType?i.contains(1==t.nodeType?t:t.parentNode):i==t))return r;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;et||i instanceof ut){o=t-e;break}e=r}if(o)return this.children[n].domFromPos(o-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof rt&&t.side>=0;n--);if(e<=0){let t,o=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,o=!1);return t&&e&&o&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?s(t.dom)+1:0}}{let t,o=!0;for(;t=n=i&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,i);t=r;for(let e=a;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=s(n.dom)+1;break}t-=n.size}-1==o&&(o=0)}if(o>-1&&(l>e||a==this.children.length-1)){e=l;for(let t=a+1;ta&&re){let t=a;a=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,o=0;o=n:tn){let o=n+i.border,s=r-i.border;if(t>=o&&e<=s)return this.dirty=t==n||e==r?2:1,void(t!=o||e!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(t-o,e-o):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=r}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:o))),!e.type.spec.raw){if(1!=r.nodeType){let t=document.createElement("span");t.appendChild(r),r=t}r.contentEditable="false",r.classList.add("ProseMirror-widget")}super(t,[],r,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,o){super(t,[],e,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class at extends it{constructor(t,e,n,o){super(t,[],n,o),this.mark=e}static create(t,e,n,o){let r=o.nodeViews[e.type.name],s=r&&r(e,o,n);return s&&s.dom||(s=i.PW.renderSpec(document,e.type.spec.toDOM(e,n))),new at(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(i=Mt(i,0,t,n));for(let t=0;ta?a.parent?a.parent.posBeforeChild(a):void 0:s),n,o),d=c&&c.dom,u=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else d||({dom:d,contentDOM:u}=i.PW.renderSpec(document,e.type.spec.toDOM(e)));u||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=yt(d,n,e),c?a=new ht(t,e,n,o,d,u||null,h,c,r,s+1):e.isText?new dt(t,e,n,o,d,h,r):new lt(t,e,n,o,d,u||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>i.HY.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&wt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,o=e,r=t.composing?this.localCompositionInfo(t,e):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new kt(this,s&&s.node,t);!function(t,e,n,o){let i=e.locals(t),r=0;if(0==i.length){for(let n=0;nr;)a.push(i[s++]);let h=r+d.nodeSize;if(d.isText){let t=h;s!t.inline)):a.slice(),e.forChild(r,d),u),r=h}}(this.node,this.innerDeco,((e,r,s)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t):e.type.side>=0&&!s&&l.syncToMarks(r==this.node.childCount?i.vc.none:this.node.child(r).marks,n,t),l.placeWidget(e,t,o)}),((e,i,s,c)=>{let d;l.syncToMarks(e.marks,n,t),l.findNodeMatch(e,i,s,c)||a&&t.state.selection.from>o&&t.state.selection.to-1&&l.updateNodeAt(e,i,s,d,t)||l.updateNextNode(e,i,s,t,c,o)||l.addNode(e,i,s,t,o),o+=e.nodeSize})),l.syncToMarks([],n,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),pt(this.contentDOM,this.children,t),E&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:i}=t.state.selection;if(!(t.state.selection instanceof o.Bs)||ne+this.node.content.size)return null;let r=t.domSelectionRange(),s=function(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];e=p(t=t.childNodes[e-1])}else{if(!(1==t.nodeType&&e=n){let t=a=0&&t+e.length+a>=n)return a+t;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}(this.node.content,t,n-e,i-e);return o<0?null:{node:s,pos:o,text:t}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:o}){if(this.getDesc(e))return;let i=e;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let r=new st(this,i,e,o);t.input.compositionNodes.push(r),this.children=Mt(this.children,n,n+o.length,t,r)}update(t,e,n,o){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,n,o),0))}updateInner(t,e,n,o){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(wt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=bt(this.dom,this.nodeDOM,gt(this.outerDeco,this.node,e),gt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ct(t,e,n,o,i){yt(o,e,t);let r=new lt(void 0,t,e,n,o,o,o,i,0);return r.contentDOM&&r.updateChildren(i,0),r}class dt extends lt{constructor(t,e,n,o,i,r,s){super(t,e,n,o,i,null,r,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let o=this.node.cut(t,e),i=document.createTextNode(o.text);return new dt(this.parent,o,this.outerDeco,this.innerDeco,i,i,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class ut extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ht extends lt{constructor(t,e,n,o,i,r,s,a,l,c){super(t,e,n,o,i,r,s,l,c),this.spec=a}update(t,e,n,o){if(3==this.dirty)return!1;if(this.spec.update){let i=this.spec.update(t,e,n);return i&&this.updateInner(t,e,n,o),i}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,o){this.spec.setSelection?this.spec.setSelection(t,e,n):super.setSelection(t,e,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function pt(t,e,n){let o=t.firstChild,i=!1;for(let r=0;r0;){let a;for(;;)if(o){let t=n.children[o-1];if(!(t instanceof at)){a=t,o--;break}n=t,o=t.children.length}else{if(n==e)break t;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,r.set(a,i),s.push(a)}}return{index:i,matched:r,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n>1,r=Math.min(i,t.length);for(;o-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let o=at.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,o),this.top=o,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,o){let i,r=-1;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(t,e,n))r=this.top.children.indexOf(i,this.index);else for(let o=this.index,i=Math.min(this.top.children.length,o+5);o=n||d<=e?r.push(l):(cn&&r.push(l.slice(n-c,l.size,o)))}return r}function St(t,e=null){let n=t.domSelectionRange(),i=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),a=r&&0==r.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,u=i.resolve(l);if(m(n)){for(c=u;r&&!r.node;)r=r.parent;let t=r.node;if(r&&t.isAtom&&o.qv.isSelectable(t)&&r.parent&&(!t.isInline||!function(t,e,n){for(let o=0==e,i=e==p(t);o||i;){if(t==n)return!0;let e=s(t);if(!(t=t.parentNode))return!1;o=o&&0==e,i=i&&e==p(t)}}(n.focusNode,n.focusOffset,r.dom))){let t=r.posBefore;d=new o.qv(l==t?u:i.resolve(t))}}else{let e=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(e<0)return null;c=i.resolve(e)}return d||(d=Ht(t,c,u,"pointer"==e||t.state.selection.head{n.anchorNode==o&&n.anchorOffset==i||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout((()=>{At(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")}),20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Tt=N||O&&T<63;function Nt(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),i=oo(t,e,n)))||o.Bs.between(e,n,i)}function Lt(t){return!(t.editable&&!t.hasFocus())&&_t(t)}function _t(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function Rt(t,e){let{$anchor:n,$head:i}=t.selection,r=e>0?n.max(i):n.min(i),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&o.Y1.findFrom(s,e)}function zt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $t(t,e,n){let i=t.state.selection;if(!(i instanceof o.Bs)){if(i instanceof o.qv&&i.node.isInline)return zt(t,new o.Bs(e>0?i.$to:i.$from));{let n=Rt(t.state,e);return!!n&&zt(t,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Rt(t.state,e);return!!(n&&n instanceof o.qv)&&zt(t,n)}if(!(I&&n.indexOf("m")>-1)){let n,r=i.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText)return!1;let a=e<0?r.pos-s.nodeSize:r.pos;return!!(s.isAtom||(n=t.docView.descAt(a))&&!n.contentDOM)&&(o.qv.isSelectable(s)?zt(t,new o.qv(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):!!H&&zt(t,new o.Bs(t.state.doc.resolve(e<0?a:a+s.nodeSize))))}}function Bt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t){if("false"==t.contentEditable)return!0;let e=t.pmViewDesc;return e&&0==e.size&&(t.nextSibling||"BR"!=t.nodeName)}function Jt(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=!1;for(S&&1==n.nodeType&&o0){if(1!=n.nodeType)break;{let t=n.childNodes[o-1];if(Ft(t))i=n,r=--o;else{if(3!=t.nodeType)break;n=t,o=n.nodeValue.length}}}else{if(jt(n))break;{let e=n.previousSibling;for(;e&&Ft(e);)i=n.parentNode,r=s(e),e=e.previousSibling;if(e)n=e,o=Bt(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}a?qt(t,n,o):i&&qt(t,i,r)}(t):Zt(t)}function Zt(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=Bt(n);for(;;)if(o{t.state==i&&Ot(t)}),50)}function Yt(t,e){let n=t.state.doc.resolve(e);if(!O&&!D&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),i=(n.top+n.bottom)/2;if(i>o.top&&i1)return n.lefto.top&&i1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function Vt(t,e,n){let i=t.state.selection;if(i instanceof o.Bs&&!i.empty||n.indexOf("s")>-1)return!1;if(I&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=Rt(t.state,e);if(n&&n instanceof o.qv)return zt(t,n)}if(!r.parent.inlineContent){let n=e<0?r:s,a=i instanceof o.C1?o.Y1.near(n,e):o.Y1.findFrom(n,e);return!!a&&zt(t,a)}return!1}function Ut(t,e){if(!(t.state.selection instanceof o.Bs))return!0;let{$head:n,$anchor:i,empty:r}=t.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function Wt(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Qt(t,e){t.someProp("transformCopied",(n=>{e=n(e,t)}));let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&1==o.childCount&&1==o.firstChild.childCount;){r--,s--;let t=o.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),o=t.content}let a=t.someProp("clipboardSerializer")||i.PW.fromSchema(t.state.schema),l=se(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d,u=c.firstChild,h=0;for(;u&&1==u.nodeType&&(d=ie[u.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",(n=>n(e,t)))||e.content.textBetween(0,e.content.size,"\n\n")}}function Kt(t,e,n,o,r){let s,a,l=r.parent.type.spec.code;if(!n&&!e)return null;let c=e&&(o||l||!n);if(c){if(t.someProp("transformPastedText",(n=>{e=n(e,l||o,t)})),l)return e?new i.p2(i.HY.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):i.p2.empty;let n=t.someProp("clipboardTextParser",(n=>n(e,r,o,t)));if(n)a=n;else{let n=r.marks(),{schema:o}=t.state,a=i.PW.fromSchema(o);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach((t=>{let e=s.appendChild(document.createElement("p"));t&&e.appendChild(a.serializeNode(o.text(t,n)))}))}}else t.someProp("transformPastedHTML",(e=>{n=e(n,t)})),s=function(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,o=se().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(t);if((n=i&&ie[i[1].toLowerCase()])&&(t=n.map((t=>"<"+t+">")).join("")+t+n.map((t=>"")).reverse().join("")),o.innerHTML=t,n)for(let t=0;t0;t--){let t=s.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;s=t}if(!a){let e=t.someProp("clipboardParser")||t.someProp("domParser")||i.aw.fromSchema(t.state.schema);a=e.parseSlice(s,{preserveWhitespace:!(!c&&!u),context:r,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Gt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(t,e){if(!t.size)return t;let n,o=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:r,openStart:s,openEnd:a}=t;for(let t=n.length-2;t>=0;t-=2){let e=o.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;r=i.HY.from(e.create(n[t+1],r)),s++,a++}return new i.p2(r,s,a)}(oe(a,+u[1],+u[2]),u[4]);else if(a=i.p2.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o,r=e.node(n).contentMatchAt(e.index(n)),s=[];if(t.forEach((t=>{if(!s)return;let e,n=r.findWrapping(t.type);if(!n)return s=null;if(e=s.length&&o.length&&te(n,o,t,s[s.length-1],0))s[s.length-1]=e;else{s.length&&(s[s.length-1]=ee(s[s.length-1],o.length));let e=Xt(t,n);s.push(e),r=r.matchType(e.type),o=n}})),s)return i.HY.from(s)}return t}(a.content,r),!0),a.openStart||a.openEnd){let t=0,e=0;for(let e=a.content.firstChild;t{a=e(a,t)})),a}const Gt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Xt(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,i.HY.from(t));return t}function te(t,e,n,o,r){if(r1&&(s=0),r=n&&(l=e<0?a.contentMatchAt(0).fillBefore(l,s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.HY.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(l))}function oe(t,e,n){return e{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>pe(t,e))}))}function pe(t,e){return t.someProp("handleDOMEvents",(n=>{let o=n[e.type];return!!o&&(o(t,e)||e.defaultPrevented)}))}function fe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function me(t){return{left:t.clientX,top:t.clientY}}function ge(t,e,n,o,i){if(-1==o)return!1;let r=t.state.doc.resolve(o);for(let o=r.depth+1;o>0;o--)if(t.someProp(e,(e=>o>r.depth?e(t,n,r.nodeAfter,r.before(o),i,!0):e(t,n,r.node(o),r.before(o),i,!1))))return!0;return!1}function be(t,e,n){t.focused||t.focus();let o=t.state.tr.setSelection(e);"pointer"==n&&o.setMeta("pointer",!0),t.dispatch(o)}function ve(t,e,n,o){return ge(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",(n=>n(t,e,o)))}function ye(t,e,n,i){return ge(t,"handleTripleClickOn",e,n,i)||t.someProp("handleTripleClick",(n=>n(t,e,i)))||function(t,e,n){if(0!=n.button)return!1;let i=t.state.doc;if(-1==e)return!!i.inlineContent&&(be(t,o.Bs.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(e);for(let e=r.depth+1;e>0;e--){let n=e>r.depth?r.nodeAfter:r.node(e),s=r.before(e);if(n.inlineContent)be(t,o.Bs.create(i,s+1,s+1+n.content.size),"pointer");else{if(!o.qv.isSelectable(n))continue;be(t,o.qv.create(i,s),"pointer")}return!0}}(t,n,i)}function we(t){return Oe(t)}le.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!Ce(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!P||!O||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!E||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",(e=>e(t,n)))||function(t,e){let n=e.keyCode,o=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||I&&72==n&&"c"==o)return Ut(t,-1)||Jt(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==o)return Ut(t,1)||Jt(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==o){let e=37==n?"ltr"==Yt(t,t.state.selection.from)?-1:1:-1;return $t(t,e,o)||Jt(t,e)}if(39==n||I&&70==n&&"c"==o){let e=39==n?"ltr"==Yt(t,t.state.selection.from)?1:-1:1;return $t(t,e,o)||Jt(t,e)}return 38==n||I&&80==n&&"c"==o?Vt(t,-1,o)||Jt(t,-1):40==n||I&&78==n&&"c"==o?function(t){if(!N||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Wt(t,n,"true"),setTimeout((()=>Wt(t,n,"false")),20)}return!1}(t)||Vt(t,1,o)||Zt(t):o==(I?"m":"c")&&(66==n||73==n||89==n||90==n)}(t,n)?n.preventDefault():ue(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))),t.input.lastIOSEnter=0)}),200)}},le.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},le.keypress=(t,e)=>{let n=e;if(Ce(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||I&&n.metaKey)return;if(t.someProp("handleKeyPress",(e=>e(t,n))))return void n.preventDefault();let i=t.state.selection;if(!(i instanceof o.Bs&&i.$from.sameParent(i.$to))){let e=String.fromCharCode(n.charCode);/[\r\n]/.test(e)||t.someProp("handleTextInput",(n=>n(t,i.$from.pos,i.$to.pos,e)))||t.dispatch(t.state.tr.insertText(e).scrollIntoView()),n.preventDefault()}};const xe=I?"metaKey":"ctrlKey";ae.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=we(t),i=Date.now(),r="singleClick";i-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}(n,t.input.lastClick)&&!n[xe]&&("singleClick"==t.input.lastClick.type?r="doubleClick":"doubleClick"==t.input.lastClick.type&&(r="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:r};let s=t.posAtCoords(me(n));s&&("singleClick"==r?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ke(t,s,n,!!o)):("doubleClick"==r?ve:ye)(t,s.pos,s.inside,n)?n.preventDefault():ue(t,"pointer"))};class ke{constructor(t,e,n,i){let r,s;if(this.view=t,this.pos=e,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[xe],this.allowDefault=n.shiftKey,e.inside>-1)r=t.state.doc.nodeAt(e.inside),s=e.inside;else{let n=t.state.doc.resolve(e.pos);r=n.parent,s=n.depth?n.before():0}const a=i?null:n.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof o.qv&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!S||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ue(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Ot(this.view))),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(me(t))),this.updateAllowDefault(t),this.allowDefault||!e?ue(this.view,"pointer"):function(t,e,n,i,r){return ge(t,"handleClickOn",e,n,i)||t.someProp("handleClick",(n=>n(t,e,i)))||(r?function(t,e){if(-1==e)return!1;let n,i,r=t.state.selection;r instanceof o.qv&&(n=r.node);let s=t.state.doc.resolve(e);for(let t=s.depth+1;t>0;t--){let e=t>s.depth?s.nodeAfter:s.node(t);if(o.qv.isSelectable(e)){i=n&&r.$from.depth>0&&t>=r.$from.depth&&s.before(r.$from.depth+1)==r.$from.pos?s.before(r.$from.depth):s.before(t);break}}return null!=i&&(be(t,o.qv.create(t.state.doc,i),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),i=n.nodeAfter;return!!(i&&i.isAtom&&o.qv.isSelectable(i))&&(be(t,new o.qv(n),"pointer"),!0)}(t,n))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||N&&this.mightDrag&&!this.mightDrag.node.isAtom||O&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(be(this.view,o.Y1.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ue(this.view,"pointer")}move(t){this.updateAllowDefault(t),ue(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function Ce(t,e){return!!t.composing||!!(N&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}ae.touchstart=t=>{t.input.lastTouch=Date.now(),we(t),ue(t,"pointer")},ae.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ae.contextmenu=t=>we(t);const Me=P?5e3:-1;function Se(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout((()=>Oe(t)),e))}function Ae(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Oe(t,e=!1){if(!(P&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Ae(t),e||t.docView&&t.docView.dirty){let e=St(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}le.compositionstart=le.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((t=>!1===t.type.spec.inclusive))))t.markCursor=t.state.storedMarks||n.marks(),Oe(t,!0),t.markCursor=null;else if(Oe(t),S&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,o=e.focusOffset;n&&1==n.nodeType&&0!=o;){let e=o<0?n.lastChild:n.childNodes[o-1];if(!e)break;if(3==e.nodeType){t.domSelection().collapse(e,e.nodeValue.length);break}n=e,o=-1}}t.input.composing=!0}Se(t,Me)},le.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then((()=>t.domObserver.flush())),t.input.compositionID++,Se(t,20))};const Te=C&&M<15||E&&L<604;function Ne(t,e,n,o,r){let s=Kt(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",(e=>e(t,r,s||i.p2.empty))))return!0;if(!s)return!1;let a=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(s),l=a?t.state.tr.replaceSelectionWith(a,o):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ae.copy=le.cut=(t,e)=>{let n=e,o=t.state.selection,i="cut"==n.type;if(o.empty)return;let r=Te?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Qt(t,s);r?(n.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(i),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()}),50)}(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},le.paste=(t,e)=>{let n=e;if(t.composing&&!P)return;let o=Te?null:n.clipboardData,i=t.input.shiftKey&&45!=t.input.lastKeyCode;o&&Ne(t,o.getData("text/plain"),o.getData("text/html"),i,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let i=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout((()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Ne(t,o.value,null,i,e):Ne(t,o.textContent,o.innerHTML,i,e)}),50)}(t,n)};class Ee{constructor(t,e){this.slice=t,this.move=e}}const Ie=I?"altKey":"ctrlKey";ae.dragstart=(t,e)=>{let n=e,i=t.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=t.state.selection,s=r.empty?null:t.posAtCoords(me(n));if(s&&s.pos>=r.from&&s.pos<=(r instanceof o.qv?r.to-1:r.to));else if(i&&i.mightDrag)t.dispatch(t.state.tr.setSelection(o.qv.create(t.state.doc,i.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&t.dispatch(t.state.tr.setSelection(o.qv.create(t.state.doc,e.posBefore)))}let a=t.state.selection.content(),{dom:l,text:c}=Qt(t,a);n.dataTransfer.clearData(),n.dataTransfer.setData(Te?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Te||n.dataTransfer.setData("text/plain",c),t.dragging=new Ee(a,!n[Ie])},ae.dragend=t=>{let e=t.dragging;window.setTimeout((()=>{t.dragging==e&&(t.dragging=null)}),50)},le.dragover=le.dragenter=(t,e)=>e.preventDefault(),le.drop=(t,e)=>{let n=e,s=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let a=t.posAtCoords(me(n));if(!a)return;let l=t.state.doc.resolve(a.pos),c=s&&s.slice;c?t.someProp("transformPasted",(e=>{c=e(c,t)})):c=Kt(t,n.dataTransfer.getData(Te?"Text":"text/plain"),Te?null:n.dataTransfer.getData("text/html"),!1,l);let d=!(!s||n[Ie]);if(t.someProp("handleDrop",(e=>e(t,n,c||i.p2.empty,d))))return void n.preventDefault();if(!c)return;n.preventDefault();let u=c?(0,r.nj)(t.state.doc,l.pos,c):l.pos;null==u&&(u=l.pos);let h=t.state.tr;d&&h.deleteSelection();let p=h.mapping.map(u),f=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=h.doc;if(f?h.replaceRangeWith(p,p,c.content.firstChild):h.replaceRange(p,p,c),h.doc.eq(m))return;let g=h.doc.resolve(p);if(f&&o.qv.isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))h.setSelection(new o.qv(g));else{let e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach(((t,n,o,i)=>e=i)),h.setSelection(Ht(t,g,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))},ae.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout((()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ot(t)}),20))},ae.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},ae.beforeinput=(t,e)=>{if(O&&P&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout((()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",(e=>e(t,g(8,"Backspace")))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let t in le)ae[t]=le[t];function De(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Pe{constructor(t,e){this.toDOM=t,this.spec=e||ze,this.side=this.spec.side||0}map(t,e,n,o){let{pos:i,deleted:r}=t.mapResult(e.from+o,this.side<0?-1:1);return r?null:new _e(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Pe&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class He{constructor(t,e){this.attrs=t,this.spec=e||ze}map(t,e,n,o){let i=t.map(e.from+o,this.spec.inclusiveStart?-1:1)-n,r=t.map(e.to+o,this.spec.inclusiveEnd?1:-1)-n;return i>=r?null:new _e(i,r,this)}valid(t,e){return e.from=t&&(!i||i(s.spec))&&n.push(s.copy(s.from+o,s.to+o))}for(let r=0;rt){let s=this.children[r]+1;this.children[r+2].findInner(t-s,e-s,n,o+s,i)}}map(t,e,n){return this==Be||0==t.maps.length?this:this.mapInner(t,e,0,0,n||ze)}mapInner(t,e,n,o,i){let r;for(let s=0;s{let l=s-r-(n-t);for(let s=0;sc+e-o)continue;let d=a[s]+e-o;n>=d?a[s+1]=t<=d?-2:-1:r>=i&&l&&(a[s]+=l,a[s+1]+=l)}o+=l})),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e=o.content.size){l=!0;continue}let u=n.map(t[e+1]+r,-1)-i,{index:h,offset:p}=o.content.findIndex(d),f=o.maybeChild(h);if(f&&p==d&&p+f.nodeSize==u){let o=a[e+2].mapInner(n,f,c+1,t[e]+r+1,s);o!=Be?(a[e]=d,a[e+1]=u,a[e+2]=o):(a[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,o,i,r,s){function a(t,e){for(let r=0;r{let s,a=r+n;if(s=Ze(e,t,a)){for(o||(o=this.children.slice());ir&&e.to=t){this.children[e]==t&&(n=this.children[e+2]);break}let i=t+1,r=i+e.content.size;for(let t=0;ti&&e.type instanceof He){let t=Math.max(i,e.from)-i,n=Math.min(r,e.to)-i;tn.map(t,e,ze)));return Fe.from(n)}forChild(t,e){if(e.isLeaf)return $e.empty;let n=[];for(let o=0;ot instanceof $e))?t:t.reduce(((t,e)=>t.concat(e instanceof $e?e:e.members)),[]))}}}function Je(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;on&&e.to{let a=Ze(t,e,s+n);if(a){r=!0;let t=qe(a,e,n+s+1,o);t!=Be&&i.push(s,s+e.nodeSize,t)}}));let s=Je(r?je(t):t,-n).sort(Ye);for(let t=0;t0;)e++;t.splice(e,0,n)}function We(t){let e=[];return t.someProp("decorations",(n=>{let o=n(t.state);o&&o!=Be&&e.push(o)})),t.cursorWrapper&&e.push($e.create(t.state.doc,[t.cursorWrapper.deco])),Fe.from(e)}const Qe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ke=C&&M<=11;class Ge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Xe{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ge,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((t=>{for(let e=0;e"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),Ke&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Qe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Lt(this.view)){if(this.suppressingSelectionUpdates)return Ot(this.view);if(C&&M<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=a(e))n.add(e);for(let o=t.anchorNode;o;o=a(o))if(n.has(o)){e=o;break}let o=e&&this.view.docView.nearestDesc(e);return o&&o.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Lt(t)&&!this.ignoreSelectionChange(n),r=-1,s=-1,a=!1,l=[];if(t.editable)for(let t=0;t1){let t=l.filter((t=>"BR"==t.nodeName));if(2==t.length){let e=t[0],n=t[1];e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}}let c=null;r<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(r>-1&&(t.docView.markDirty(r,s),function(t){if(!tn.has(t)&&(tn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))){if(t.requiresGeckoHackNode=S,en)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),en=!0}}(t)),this.handleDOMChange(r,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Ot(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;ne.content.size?null:Ht(t,e.resolve(n.anchor),e.resolve(n.head))}function sn(t,e,n){let o=t.depth,i=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,i++,e=!1;if(n){let e=t.node(o).maybeChild(t.indexAfter(o));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}class an{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new de,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(hn),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=dn(this),cn(this),this.nodeViews=un(this),this.docView=ct(this.state.doc,ln(this),We(this),this.dom,this),this.domObserver=new Xe(this,((t,e,n,r)=>function(t,e,n,r,s){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=St(t,e);if(n&&!t.state.selection.eq(n)){if(O&&P&&13===t.input.lastKeyCode&&Date.now()-100e(t,g(13,"Enter")))))return;let o=t.state.tr.setSelection(n);"pointer"==e?o.setMeta("pointer",!0):"key"==e&&o.scrollIntoView(),a&&o.setMeta("composition",a),t.dispatch(o)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,u,h=t.state.selection,p=function(t,e,n){let o,{node:r,fromOffset:s,toOffset:a,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),u=d.anchorNode;if(u&&t.dom.contains(1==u.nodeType?u:u.parentNode)&&(o=[{node:u,offset:d.anchorOffset}],m(d)||o.push({node:d.focusNode,offset:d.focusOffset})),O&&8===t.input.lastKeyCode)for(let t=a;t>s;t--){let e=r.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){a=t;break}if(!n||n.size)break}let h=t.state.doc,p=t.someProp("domParser")||i.aw.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=p.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:o,ruleFromNode:nn,context:f});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(p.from,p.to);8===t.input.lastKeyCode&&Date.now()-100=s?r-o:0,a=r+(a-s),s=r):a=a?r-o:0,s=r+(s-a),a=r),{start:r,endA:s,endB:a}}(b.content,p.doc.content,p.from,d,u);if((E&&t.input.lastIOSEnter>Date.now()-225||P)&&s.some((t=>1==t.nodeType&&!on.test(t.nodeName)))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(!v){if(!(r&&h instanceof o.Bs&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let e=rn(t,t.state.doc,p.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);a&&n.setMeta("composition",a),t.dispatch(n)}}return}v={start:h.from,endA:h.to,endB:h.to}}if(O&&t.cursorWrapper&&p.sel&&p.sel.anchor==t.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let t=v.endB-v.start;p.sel={anchor:p.sel.anchor+t,head:p.sel.anchor+t}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=p.from?v.start=t.state.selection.from:v.endA=t.state.selection.to-2&&t.state.selection.to<=p.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.state.selection.to)),C&&M<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>p.from&&"  "==p.doc.textBetween(v.start-p.from-1,v.start-p.from+1)&&(v.start--,v.endA--,v.endB--);let y,w=p.doc.resolveNoCache(v.start-p.from),x=p.doc.resolveNoCache(v.endB-p.from),k=f.resolve(v.start),S=w.sameParent(x)&&w.parent.inlineContent&&k.end()>=v.endA;if((E&&t.input.lastIOSEnter>Date.now()-225&&(!S||s.some((t=>"DIV"==t.nodeName||"P"==t.nodeName)))||!S&&w.pose(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>v.start&&function(t,e,n,o,i){if(!o.parent.isTextblock||n-e<=i.pos-o.pos||sn(o,!0,!1)n||sn(s,!0,!1)e(t,g(8,"Backspace")))))return void(P&&O&&t.domObserver.suppressSelectionUpdates());O&&P&&v.endB==v.start&&(t.input.lastAndroidDelete=Date.now()),P&&!S&&w.start()!=x.start()&&0==x.parentOffset&&w.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==v.endA&&(v.endB-=2,x=p.doc.resolveNoCache(v.endB-p.from),setTimeout((()=>{t.someProp("handleKeyDown",(function(e){return e(t,g(13,"Enter"))}))}),20));let A,T,N,I=v.start,D=v.endA;if(S)if(w.pos==x.pos)C&&M<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout((()=>Ot(t)),20)),A=t.state.tr.delete(I,D),T=f.resolve(v.start).marksAcross(f.resolve(v.endA));else if(v.endA==v.endB&&(N=function(t,e){let n,o,r,s=t.firstChild.marks,a=e.firstChild.marks,l=s,c=a;for(let t=0;tt.mark(o.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;o=c[0],n="remove",r=t=>t.mark(o.removeFromSet(t.marks))}let d=[];for(let t=0;tn(t,I,D,e))))return;A=t.state.tr.insertText(e,I,D)}if(A||(A=t.state.tr.replace(I,D,p.doc.slice(v.start-p.from,v.endB-p.from))),p.sel){let e=rn(t,A.doc,p.sel);e&&!(O&&P&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastAndroidDelete{!fe(t,e)||pe(t,e)||!t.editable&&e.type in le||n(t,e)},ce[e]?{passive:!0}:void 0)}N&&t.dom.addEventListener("input",(()=>null)),he(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&he(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(hn),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let n=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(Ae(this),i=!0),this.state=t;let r=n.plugins!=t.plugins||this._props.plugins!=e.plugins;if(r||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=un(this);(function(t,e){let n=0,o=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let t in e)o++;return n!=o})(t,this.nodeViews)&&(this.nodeViews=t,o=!0)}(r||e.handleDOMEvents!=this._props.handleDOMEvents)&&he(this),this.editable=dn(this),cn(this);let s=We(this),a=ln(this),l=n.plugins==t.plugins||n.doc.eq(t.doc)?t.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=o||!this.docView.matchesNode(t.doc,a,s);!c&&t.selection.eq(n.selection)||(i=!0);let u="preserve"==l&&i&&null==this.dom.style.overflowAnchor&&function(t){let e,n,o=t.dom.getBoundingClientRect(),i=Math.max(0,o.top);for(let r=(o.left+o.right)/2,s=i+1;s=i-20){e=o,n=a.top;break}}return{refDOM:e,refTop:n,stack:B(t.dom)}}(this);if(i){this.domObserver.stop();let e=c&&(C||O)&&!this.composing&&!n.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(n.selection,t.selection);if(c){let n=O?this.trackWrites=this.domSelectionRange().focusNode:null;!o&&this.docView.update(t.doc,a,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ct(t.doc,a,s,this.dom,this)),n&&!this.trackWrites&&(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Ot(this,e):(Dt(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&function({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;F(n,0==o?0:o-e)}(u)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(t=>t(this))));else if(this.state.selection instanceof o.qv){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&$(this,e.getBoundingClientRect(),t)}else $(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;et.ownerDocument.getSelection()),this._root=t;return t||document}posAtCoords(t){return Y(this,t)}coordsAtPos(t,e=1){return Q(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let o=this.docView.posFromDOM(t,e,n);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,e){return function(t,e,n){return et==e&&nt==n?ot:(et=e,nt=n,ot="up"==n||"down"==n?function(t,e,n){let o=e.selection,i="up"==n?o.$from:o.$to;return X(t,e,(()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let o=Q(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;ti.top+1&&("up"==n?o.top-i.top>2*(i.bottom-o.top):i.bottom-o.bottom>2*(o.bottom-i.top)))return!1}}return!0}))}(t,e,n):function(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let i=o.parentOffset,r=!i,s=i==o.parent.content.size,a=t.domSelection();return tt.test(o.parent.textContent)&&a.modify?X(t,e,(()=>{let{focusNode:e,focusOffset:i,anchorNode:r,anchorOffset:s}=t.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:d,focusOffset:u}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&i==u;try{a.collapse(r,s),e&&(e!=r||i!=s)&&a.extend&&a.extend(e,i)}catch(t){}return null!=l&&(a.caretBidiLevel=l),h})):"left"==n||"backward"==n?r:s}(t,e,n))}(this,e||this.state,t)}pasteHTML(t,e){return Ne(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Ne(this,t,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],We(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){pe(t,e)||!ae[e.type]||!t.editable&&e.type in le||ae[e.type](t,e)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return N&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function(t){let e;function n(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let o=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,r,s)&&([o,i,r,s]=[r,s,o,i]),{anchorNode:o,anchorOffset:i,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function ln(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))})),e.translate||(e.translate="no"),[_e.node(0,t.state.doc.content.size,e)]}function cn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:_e.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dn(t){return!t.someProp("editable",(e=>!1===e(t.state)))}function un(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function hn(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}}}]); \ No newline at end of file diff --git a/6911.8d637ec789622dae96ee.js b/6911.8d637ec789622dae96ee.js new file mode 100644 index 000000000..dbff309eb --- /dev/null +++ b/6911.8d637ec789622dae96ee.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[6911],{49294:(t,e,n)=>{n.d(e,{$:()=>u});var o=n(97582),i=n(74788),r=n(91211),s=n(2330),a=n(85648),l=n(44358),c=n(79012),d=n(74331);class u{constructor(t){this.sanitizer=t,this.colorChange=new i.vpe,this.point=[0,1],this.hue=0,this.opacity=1}set color(t){if(this.currentColor.every(((e,n)=>e===t[n]))&&t[3]===this.opacity)return;const[e,n,o]=(0,s.bD)(t[0],t[1],t[2]);this.opacity=t[3],this.hue=e/360,this.point=[n,1-o/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${(0,s.qZ)(360*this.hue,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(t){this.point=t,this.updateColor()}onHueChange(t){this.hue=t,this.updateColor()}onOpacityChange(t){this.opacity=(0,a.FG)(t,2),this.updateColor()}getCurrentColor(t,e){return(0,s.qZ)(360*t,e[0],255*(1-e[1]))}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}}u.ɵfac=function(t){return new(t||u)(i.Y36(r.H7))},u.ɵcmp=i.Xpm({type:u,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"value","valueChange"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-flat-picker",0),i.NdJ("valueChange",(function(t){return e.onPointChange(t)})),i.qZA(),i.TgZ(1,"div",1),i.TgZ(2,"tui-linear-picker",2),i.NdJ("valueChange",(function(t){return e.onHueChange(t)})),i.qZA(),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"tui-linear-picker",4),i.NdJ("valueChange",(function(t){return e.onOpacityChange(t)})),i.qZA(),i.qZA()),2&t&&(i.Udp("background-color",e.base),i.Q6J("value",e.point),i.xp6(2),i.Q6J("value",e.hue),i.xp6(1),i.Udp("background",e.gradient),i.xp6(1),i.Q6J("value",e.opacity))},directives:[c.J,d.P],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(rgba(0,0,0,0),#000000),linear-gradient(to right,#ffffff,rgba(255,255,255,0));margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:#ff0000}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0}),(0,o.gn)([l.UM],u.prototype,"getCurrentColor",null)},44691:(t,e,n)=>{n.d(e,{s:()=>q});var o=n(97582),i=n(74788),r=n(91211),s=n(11927),a=n(2330),l=n(44358),c=n(71831),d=n(88320),u=n(23917),h=n(12628),p=n(54789),f=n(75111),m=n(90022),g=n(95974),b=n(12057),v=n(49294),y=n(7176),w=n(74337),x=n(28858),k=n(75093),C=n(79588),M=n(98952),S=n(52697),A=n(24751),O=n(45642);function T(t,e){if(1&t&&(i.TgZ(0,"button",7),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function N(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",5),i.YNc(1,T,2,2,"button",6),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function E(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",8),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onHexChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("maskito",t.hexMask)("tuiTextfieldLabelOutside",!0)("value",t.hex)}}function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(e,n.color[1],n.color[2],n.color[3])})),i.qZA(),i.TgZ(1,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(n.color[0],e,n.color[2],n.color[3])})),i.qZA(),i.TgZ(2,"tui-input-count",9),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw();return n.onRgbChange(n.color[0],n.color[1],e,n.color[3])})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[0]),i.xp6(1),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[1]),i.xp6(1),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",255)("ngModel",t.color[2])}}let D=(()=>{class t{constructor(){this.color=[0,0,0,1],this.colorChange=new i.vpe,this.hexMask={mask:new RegExp("^[A-F\\d]{0,6}$","gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return(0,a.WS)(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(100*this.color[3])}onHexChange(t){if(6!==t.length)return;const e=(0,a.RO)(t);this.updateColor([e[0],e[1],e[2],this.color[3]])}onRgbChange(...t){this.updateColor(t)}updateColor(t){this.color=t,this.colorChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:8,consts:[["tuiTextfieldSize","m","tuiDropdownAlign","left","tuiDropdownLimitWidth","min",1,"t-select","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],["size","s",4,"tuiDataList"],["tuiValueAccessor","","tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["rgb",""],["tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","hideButtons","max","ngModel","ngModelChange"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiValueAccessor","","tuiTextfieldSize","m",3,"maskito","tuiTextfieldLabelOutside","value","valueChange"],["tuiTextfieldSize","m",3,"tuiTextfieldLabelOutside","hideButtons","max","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-select",0),i.NdJ("ngModelChange",(function(t){return e.mode=t})),i.YNc(1,N,2,1,"tui-data-list",1),i.qZA(),i.YNc(2,E,1,3,"tui-primitive-textfield",2),i.YNc(3,I,3,12,"ng-template",null,3,i.W1O),i.TgZ(5,"tui-input-count",4),i.NdJ("ngModelChange",(function(t){return e.onRgbChange(e.color[0],e.color[1],e.color[2],t/100)})),i.qZA()),2&t){const t=i.MAs(4);i.Q6J("tuiTextfieldLabelOutside",!0)("ngModel",e.mode),i.xp6(2),i.Q6J("ngIf",e.isHex)("ngIfElse",t),i.xp6(3),i.Q6J("tuiTextfieldLabelOutside",!0)("hideButtons",!0)("max",100)("ngModel",e.opacity)}},directives:[w.uJ,w.OI,C.sz,M.Ek,C.xT,A.JJ,A.On,f.gX,b.O5,x.EA,x.aQ,C.Tq,f.qi,b.sg,f.vK,S.yc,S.B1,k.n,O.ro],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:4.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}"],changeDetection:0}),t})();var P=n(59113);function H(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){i.oxw();const t=i.MAs(1);i.ekj("t-arrow_rotated",t.open)}}function L(t,e){1&t&&i._UZ(0,"tui-svg",14)}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",12),i.NdJ("keydown.enter.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.space.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("click",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)})),i._uU(1),i.YNc(2,L,1,0,"tui-svg",13),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.uIk("aria-checked",n.isModeActive(t)),i.xp6(1),i.hij(" ",t," "),i.xp6(1),i.Q6J("ngIf",n.isModeActive(t))}}function R(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",10),i.YNc(1,_,3,3,"button",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function z(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).onDirectionChange(e)})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.ekj("t-direction_active",n.isDirectionActive(t)),i.Q6J("icon",n.getIcon(t))("tuiHint",t)}}function $(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"hr",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-linear-multi-picker",17),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onStopsChange(e)}))("indexChange",(function(e){return i.CHM(t),i.oxw().onIndexChange(e)})),i.qZA(),i.qZA(),i.TgZ(4,"div",18),i.YNc(5,z,1,4,"button",19),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(2),i.Udp("background",t.gradient),i.xp6(1),i.Q6J("value",t.stopsKeys),i.xp6(2),i.Q6J("ngForOf",t.buttons)}}function B(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-edit",21),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().onColorChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("color",t.color)}}function F(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-palette",22),i.NdJ("selectedColor",(function(e){return i.CHM(t),i.oxw().onPalettePick(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("colors",t.palette)}}const J=[0,0,0,0],Z=[[0,[0,0,0,1]],[1,[255,255,255,1]]],j={"to top right":"tuiIconArrowUpRight","to right":"tuiIconArrowRight","to bottom right":"tuiIconArrowDownRight","to bottom":"tuiIconArrowDown","to bottom left":"tuiIconArrowDownLeft","to left":"tuiIconArrowLeft","to top left":"tuiIconArrowUpLeft","to top":"tuiIconArrowUp"};class q{constructor(t,e){this.sanitizer=t,this.modes=e,this.stops=new Map(Z),this.currentStop=0,this.direction="to bottom",this.colors=new Map,this.colorChange=new i.vpe,this.color=[0,0,0,1],this.currentMode=this.modes[0],this.buttons=["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}set colorSetter(t){this.parse(t)}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[1]}getIcon(t){return j[t]}isModeActive(t){return this.currentMode===t}isDirectionActive(t){return this.direction===t}onPalettePick(t){this.updateColor(t)}onDirectionChange(t){this.direction=t,this.updateColor(this.getGradient(t))}onModeSelect(t,e){this.currentMode=t,e.open=!1,this.updateColor(t===this.modes[0]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(t){this.currentStop=this.stopsKeys[t]}onColorChange(t){this.isGradient?(this.stops.set(this.currentStop,t),this.updateColor(this.getGradient(this.direction))):this.updateColor(`rgba(${t.join(", ")})`)}onStopsChange(t){const e=this.stopsKeys.find((e=>!t.includes(e))),n=t.find((t=>!this.stopsKeys.includes(t)));void 0===e&&void 0!==n&&this.addStop(n),void 0!==e&&void 0===n&&this.removeStop(e),void 0!==e&&void 0!==n&&this.replaceStop(e,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(t){return Array.from(t.keys())}filterPalette(t,e){const n=new Map(t);return n.forEach(((t,o)=>{(t.startsWith("linear-gradient")&&!e||!t.startsWith("linear-gradient")&&e)&&n.delete(o)})),n}updateColor(t){this.colorChange.emit(t)}getGradient(t){return`linear-gradient(${t}, ${[...this.stopsKeys].sort(s.A2).map((t=>`rgba(${this.getStop(t).join(", ")}) ${100*t}%`)).join(", ")})`}getStop(t){return this.stops.get(t)||J}addStop(t){const e=this.stopsKeys.reduce(((e,n)=>Math.abs(n-t)o===t?[e,n]:[o,this.getStop(o)])))}parse(t){t.startsWith("linear-gradient")?this.parseGradient(t):this.parseColor(t)}parseGradient(t){if(t===this.getGradient(this.direction))return;const e=(0,d._N)((0,d.U5)(t));this.currentMode=this.modes[1],this.direction=e.side,this.currentStop=0,this.stops=new Map(e.stops.length?e.stops.map((({color:t,position:e})=>[parseFloat(e)/100,(0,a.Mp)(t)])):Z)}parseColor(t){this.currentMode=this.modes[0],this.currentStop=0,this.color=(0,a.Mp)(t)}}q.ɵfac=function(t){return new(t||q)(i.Y36(r.H7),i.Y36(c.dj))},q.ɵcmp=i.Xpm({type:q,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:["color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:12,vars:7,consts:[[1,"t-select",3,"content"],["dropdown",""],["tuiButton","","appearance","","size","s","type","button",3,"iconRight"],["arrow",""],["menu",""],[4,"ngIf"],[3,"color","colorChange"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],["src","tuiIconChevronDown",1,"t-arrow"],["role","menu","size","s",1,"t-menu"],["tuiOption","","role","menuitemradio",3,"keydown.enter.prevent","keydown.space.prevent","click",4,"ngFor","ngForOf"],["tuiOption","","role","menuitemradio",3,"keydown.enter.prevent","keydown.space.prevent","click"],["src","tuiIconCheck","class","t-checkmark",4,"ngIf"],["src","tuiIconCheck",1,"t-checkmark"],[1,"t-hr"],[1,"t-wrapper"],[1,"t-gradient",3,"value","valueChange","indexChange"],[1,"t-buttons"],["tuiIconButton","","type","button","size","xs","appearance","","tuiHintDescribe","","class","t-direction",3,"t-direction_active","icon","tuiHint","click",4,"ngFor","ngForOf"],["tuiIconButton","","type","button","size","xs","appearance","","tuiHintDescribe","",1,"t-direction",3,"icon","tuiHint","click"],["tuiGroup","",1,"t-edit",3,"color","colorChange"],[1,"t-palette",3,"colors","selectedColor"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-hosted-dropdown",0,1),i.TgZ(2,"button",2),i._uU(3),i.qZA(),i.YNc(4,H,1,2,"ng-template",null,3,i.W1O),i.YNc(6,R,2,1,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(8,$,6,4,"ng-container",5),i.TgZ(9,"tui-color-picker",6),i.NdJ("colorChange",(function(t){return e.onColorChange(t)})),i.qZA(),i.YNc(10,B,1,1,"tui-color-edit",7),i.YNc(11,F,1,1,"tui-palette",8)),2&t){const t=i.MAs(5),n=i.MAs(7);i.Q6J("content",n),i.xp6(2),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.currentMode," "),i.xp6(5),i.Q6J("ngIf",e.isGradient),i.xp6(1),i.Q6J("color",e.currentColor),i.xp6(1),i.Q6J("ngIf",!e.isGradient),i.xp6(1),i.Q6J("ngIf",e.palette.size)}},directives:[u.o1,h.v0,b.O5,v.$,p.PN,f.qi,b.sg,f.vK,y.e,m.$o,m.D,m.xn,m.t6,m.DM,D,g.gZ,P.R],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0}),(0,o.gn)([l.UM],q.prototype,"getStopsKeys",null),(0,o.gn)([l.UM],q.prototype,"filterPalette",null)},79012:(t,e,n)=>{n.d(e,{J:()=>s});var o=n(74788),i=n(63658),r=n(20755);let s=(()=>{class t{constructor(t){this.value=[0,0],this.valueChange=new o.vpe,t.subscribe((t=>{this.value=t,this.valueChange.emit([t[0],t[1]])}))}get left(){return 100*this.value[0]}get top(){return 100*this.value[1]}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")("top",e.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},96472:(t,e,n)=>{n.d(e,{H9:()=>a,wl:()=>A,VM:()=>S}),n(49294);var o=n(12057),i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,r,s]]}),t})();n(44691);var l=n(221),c=n(12628),d=n(23917),u=n(90022),h=n(54789),p=n(75111),f=n(95974),m=n(24751),g=n(45642),b=n(52697),v=n(79588),y=n(98952),w=n(75093),x=n(74337),k=n(28858);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,m.u5,g.U5,w.S,x.Jy,b.KW,v.cn,y.dp,k.$H,p.pc]]}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})(),S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,u.go]]}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,c.fN,d.jh,a,M,u.go,h.EI,p.pc,l.A,C,f.n6,S]]}),t})();n(79012),n(7176),n(74331)},7176:(t,e,n)=>{n.d(e,{e:()=>l});var o=n(74788),i=n(63658),r=n(20755),s=n(12057);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.NdJ("mousedown",(function(){const e=o.CHM(t).index;return o.oxw().onMouseDown(e)}))("dblclick",(function(){const e=o.CHM(t).index;return o.oxw().onClick(e)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("left",100*t,"%")}}let l=(()=>{class t{constructor(t){this.value=[0,1],this.valueChange=new o.vpe,this.indexChange=new o.vpe,this.index=NaN,t.subscribe((([t])=>{this.onPicker(t)}))}onMouseUp(){this.index=NaN}onMouseDown(t){this.updateIndex(t)}onClick(t){this.value.length>2&&this.updateValue(this.value.filter(((e,n)=>n!==t)))}onPicker(t){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),this.value.some(((e,n)=>e===t&&n!==this.index))||this.updateValue(this.value.map(((e,n)=>n===this.index?t:e)))}updateIndex(t){this.index=t,this.indexChange.emit(t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(t,e){1&t&&o.NdJ("mouseup",(function(){return e.onMouseUp()}),!1,o.evT)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:1,consts:[["class","t-circle",3,"left","mousedown","dblclick",4,"ngFor","ngForOf"],[1,"t-circle",3,"mousedown","dblclick"]],template:function(t,e){1&t&&o.YNc(0,a,1,2,"div",0),2&t&&o.Q6J("ngForOf",e.value)},directives:[s.sg],styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},74331:(t,e,n)=>{n.d(e,{P:()=>s});var o=n(74788),i=n(63658),r=n(20755);let s=(()=>{class t{constructor(t){this.value=0,this.valueChange=new o.vpe,t.subscribe((([t])=>{this.value=t,this.valueChange.emit(t)}))}get left(){return 100*this.value}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a3,r.i])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},59113:(t,e,n)=>{n.d(e,{R:()=>a});var o=n(74788),i=n(12057),r=n(90022);function s(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",1),o.NdJ("click",(function(){const e=o.CHM(t).$implicit;return o.oxw().selectedColor.emit(e.value)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("background",t.value),o.Q6J("tuiHint",t.key)("tuiHintDescribe",t.key)("id",t.key)}}let a=(()=>{class t{constructor(){this.colors=new Map,this.selectedColor=new o.vpe,this.originalOrder=(t,e)=>0}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"background","tuiHint","tuiHintDescribe","id","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"tuiHint","tuiHintDescribe","id","click"]],template:function(t,e){1&t&&(o.YNc(0,s,1,5,"button",0),o.ALo(1,"keyvalue")),2&t&&o.Q6J("ngForOf",o.xi3(1,1,e.colors,e.originalOrder))},directives:[i.sg,r.D,r.xn,r.t6,r.DM,r.$o],pipes:[i.Nd],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0}),t})()},41039:(t,e,n)=>{n.d(e,{l:()=>T});var o=n(12057),i=n(74788),r=n(64493),s=n(18892),a=n(86114),l=n(71831),c=n(68838),d=n(92815),u=n(37801),h=n(24751),p=n(54789),f=n(12628),m=n(82847),g=n(80134),b=n(79550);let v=(()=>{class t{transform(t,e,n){return"#"===e?t.filter((t=>t!==n)):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilterAnchors",type:t,pure:!0}),t})();function y(t,e){1&t&&(i.ynx(0),i._uU(1,"Edit anchor"),i.BQk())}function w(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"Link to anchor"),i.qZA())}function x(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"URL"),i.qZA())}function k(t,e){if(1&t&&(i.YNc(0,w,2,0,"span",1),i.YNc(1,x,2,0,"ng-template",null,12,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.prefixIsHashMode)("ngIfElse",t)}}function C(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.ngIf,n=i.oxw(2);i.xp6(1),i.hij(" ",n.prefixIsHashMode?t.anchorExample:t.urlExample," ")}}function M(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"label",4),i.TgZ(2,"div",5),i.YNc(3,y,2,0,"ng-container",1),i.YNc(4,k,3,2,"ng-template",null,6,i.W1O),i.qZA(),i.TgZ(6,"div",7),i.TgZ(7,"div",8),i._uU(8),i.qZA(),i.TgZ(9,"tui-input-inline",9),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().url=e}))("input",(function(e){let n;return i.CHM(t),i.oxw().onChange(null==(n=e.target)?null:n.value)}))("keydown.prevent.enter",(function(){return i.CHM(t),i.oxw().onSave()}))("keydown.backspace",(function(){return i.CHM(t),i.oxw().onBackspace()})),i.YNc(10,C,2,1,"ng-container",3),i.ALo(11,"async"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"tui-svg",10),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClear()})),i.qZA(),i.TgZ(13,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onSave()})),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(5),e=i.oxw();i.xp6(3),i.Q6J("ngIf",e.anchorMode)("ngIfElse",t),i.xp6(5),i.Oqu(e.prefix),i.xp6(1),i.ekj("t-input_filled",e.hasUrl),i.Q6J("ngModel",e.url),i.xp6(1),i.Q6J("ngIf",i.lcZ(11,9,e.texts$)),i.xp6(2),i.ekj("t-cleaner_hidden",!e.hasUrl)}}function S(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i._uU(1),i.ALo(2,"tuiShortUrl"),i.qZA(),i.TgZ(3,"button",14),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onEdit()})),i.qZA(),i.TgZ(4,"button",15),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRemove()})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("href",t.href,i.LSH)("icon",t.prefixIsHashMode?"tuiIconHash":"tuiIconExternalLink"),i.xp6(1),i.hij(" ",i.lcZ(2,3,t.url)," ")}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",19),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).setAnchor(e)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(1),i.hij(" #",t," ")}}function O(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"hr",16),i.TgZ(2,"tui-scrollbar"),i.TgZ(3,"div",17),i.YNc(4,A,2,1,"button",18),i.ALo(5,"tuiFilterAnchors"),i.qZA(),i.qZA(),i.BQk()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngForOf",i.Dn7(5,1,t.anchorIds,t.prefix,t.url))}}let T=(()=>{class t{constructor(t,e,n,o){this.doc=t,this.texts$=e,this.editor=n,this.options=o,this.isOnlyAnchorMode=this.detectAnchorMode(),this.addLink=new i.vpe,this.removeLink=new i.vpe,this.url=this.getHrefOrAnchorId(),this.edit=!this.url,this.prefix=this.makeDefaultPrefix(),this.anchorIds=this.getAllAnchorsIds()}get defaultProtocol(){var t,e;return null!==(e=null===(t=this.options.linkOptions)||void 0===t?void 0:t.protocol)&&void 0!==e?e:s.Ci}set anchorMode(t){this.isOnlyAnchorMode=t,this.prefix=t?s._s:this.makeDefaultPrefix()}get anchorMode(){return this.isOnlyAnchorMode}get prefixIsHashMode(){return this.prefix===s._s}get hasUrl(){return!!this.url}get href(){return`${this.prefix}${this.url}`}get showAnchorsList(){return!this.anchorMode&&this.edit&&this.anchorIds.length>0}get isViewMode(){return!this.edit}onSelectionChange(){this.isViewMode&&(this.url=this.getHrefOrAnchorId(),this.anchorMode=this.detectAnchorMode())}onMouseDown(t){(0,r.ve)(t.target)&&!t.target.matches("a, button, input")&&t.preventDefault()}setAnchor(t){this.url=t,this.changePrefix(!0)}changePrefix(t){this.prefix=t?s._s:this.defaultProtocol}onSave(){this.url?this.addLink.emit(this.href):this.removeLink.emit()}onBackspace(){this.url||(this.prefix=this.isOnlyAnchorMode?s._s:this.defaultProtocol)}onEdit(){this.edit=!0}onRemove(){this.removeLink.emit()}onChange(t){this.url=this.removePrefix(t)}onClear(){this.url=""}makeDefaultPrefix(){var t,e;const n=this.getAnchorElement(),o=(0,c.$)(null!==(t=null==n?void 0:n.getAttribute("href"))&&void 0!==t?t:"").prefix||this.defaultProtocol;return n&&(!n.getAttribute("href")&&n.getAttribute("id")||(null===(e=n.getAttribute("href"))||void 0===e?void 0:e.startsWith(s._s)))?s._s:o}detectAnchorMode(){const t=this.getAnchorElement();return!(null==t?void 0:t.href)&&!!(null==t?void 0:t.getAttribute("id"))}getFocusedParentElement(){var t,e;return(null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentElement)||null}getAnchorElement(){var t,e,n;const o=this.getFocusedParentElement();return null!==(n=null!==(t=null==o?void 0:o.closest("a"))&&void 0!==t?t:null===(e=null==o?void 0:o.querySelector("img"))||void 0===e?void 0:e.closest("a"))&&void 0!==n?n:null}getHrefOrAnchorId(){const t=this.getAnchorElement();return t?this.removePrefix(t.getAttribute("href")||t.getAttribute("id")||""):this.url}removePrefix(t){var e;const n=t.startsWith(s._s)||this.prefix===s._s?t:`${null!==(e=this.prefix)&&void 0!==e?e:""}${t}`,{prefix:o,path:i}=(0,c.$)(n),r=this.isOnlyAnchorMode||o===s._s||""===o&&this.prefix===s._s;return this.prefix=r?s._s:""===o?this.defaultProtocol:o,i}getAllAnchorsIds(){var t;const e=Array.from(null!==(t=this.editor.getOriginTiptapEditor().view.dom.querySelectorAll('[data-type="jump-anchor"]'))&&void 0!==t?t:[]);return Array.from(e).map((t=>t.getAttribute("id")||"")).filter(Boolean)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.K0),i.Y36(l.b$),i.Y36(a.$3),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-edit-link"]],hostBindings:function(t,e){1&t&&i.NdJ("selectionchange",(function(){return e.onSelectionChange()}),!1,i.evT)("mousedown",(function(t){return e.onMouseDown(t)}))},inputs:{anchorMode:"anchorMode"},outputs:{addLink:"addLink",removeLink:"removeLink"},decls:5,vars:3,consts:[[1,"t-edit-link"],[4,"ngIf","ngIfElse"],["view",""],[4,"ngIf"],[1,"t-label"],[1,"t-label-properties"],["fullOptions",""],[1,"t-url"],[1,"t-prefix"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","input","keydown.prevent.enter","keydown.backspace"],["src","tuiIconCloseLarge",1,"t-cleaner",3,"click"],["tuiIconButton","","type","button","size","s","title","Insert link","icon","tuiIconCheckCircleLarge","shape","rounded","appearance","icon",1,"t-button",3,"click"],["urlTitle",""],["tuiLink","","target","_blank","iconAlign","left",1,"t-link",3,"href","icon"],["tuiIconButton","","type","button","size","s","title","Change link","icon","tuiIconEdit2Large","shape","rounded","appearance","icon",1,"t-button","t-edit-button",3,"click"],["tuiIconButton","","type","button","size","s","title","Remove link","icon","tuiIconUnlinkLarge","shape","rounded","appearance","icon",1,"t-button",3,"click"],[1,"t-hr"],[1,"t-anchor-list"],["type","button","class","t-anchor",3,"click",4,"ngFor","ngForOf"],["type","button",1,"t-anchor",3,"click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.YNc(1,M,14,11,"ng-container",1),i.YNc(2,S,5,5,"ng-template",null,2,i.W1O),i.qZA(),i.YNc(4,O,6,5,"ng-container",3)),2&t){const t=i.MAs(3);i.xp6(1),i.Q6J("ngIf",e.edit)("ngIfElse",t),i.xp6(3),i.Q6J("ngIf",e.showAnchorsList)}},directives:[o.O5,d.l,u.k,h.JJ,h.On,p.PN,f.v0,m.V,g.IB,o.sg],pipes:[o.Ov,b.X,v],styles:["[_nghost-%COMP%]{display:block;min-width:18.75rem}.t-edit-link[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{font:var(--tui-font-text-s);height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-label-properties[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:8.375rem;justify-content:space-between}.t-property_inactive[_ngcontent-%COMP%]{opacity:.5}.t-url[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-m);color:var(--tui-text-02)}.t-input[_ngcontent-%COMP%]{flex:1}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-button[_ngcontent-%COMP%]{width:2rem;height:2rem;margin:0 .25rem;transition:background .2s}.t-edit-button[_ngcontent-%COMP%]{margin-left:auto}.t-link[_ngcontent-%COMP%]{margin:0 1rem}.t-cleaner[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-base-06);cursor:pointer;margin-left:auto}.t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-cleaner_hidden[_ngcontent-%COMP%]{visibility:hidden}.t-anchor-list[_ngcontent-%COMP%]{display:flex;max-height:12.5rem;flex-direction:column}.t-anchor[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;min-height:2.75rem;padding:.375rem .5rem;margin:.125rem .5rem;border-radius:var(--tui-radius-m);text-align:left}.t-anchor[_ngcontent-%COMP%]:hover{background:var(--tui-base-02);cursor:pointer}"],changeDetection:0}),t})()},8674:(t,e,n)=>{n.d(e,{Fu:()=>p}),n(41039);var o=n(12057),i=n(24751),r=n(37801),s=n(12628),a=n(54789),l=n(82847),c=n(80134),d=n(92815),u=n(25470),h=n(74788);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=h.oAB({type:t}),t.ɵinj=h.cJS({imports:[[o.ez,i.u5,r.Q7,s.fN,a.EI,l.j,d.z,u.YM,c.Jy]]}),t})();n(79550),n(68838)},79550:(t,e,n)=>{n.d(e,{X:()=>i});var o=n(74788);let i=(()=>{class t{transform(t){return t.length<60?t:`${t.slice(0,Math.max(0,40))}...${t.slice(t.length-10)}`}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=o.Yjl({name:"tuiShortUrl",type:t,pure:!0}),t})()},68838:(t,e,n)=>{n.d(e,{$:()=>r});var o=n(11927),i=n(18892);function r(t=""){if(t.startsWith(i._s))return{prefix:i._s,path:t.slice(1)};const[e="",n=""]=t.includes(i.jU)?s(t):a(t);if(n.includes(i.DN)){const[t,e]=a(n);if(t&&e)return{prefix:t,path:e}}return{prefix:e,path:""===e?t:n}}function s(t=""){var e;const n=null!==(e=t.indexOf(i.jU))&&void 0!==e?e:-1,[o,r]=n>-1?[t.slice(0,n+i.jU.length),t.slice(n+i.jU.length,t.length)]:["",t],a=[o,r].filter(Boolean);return(null==r?void 0:r.includes("://"))&&a.length>1?s(r):a}function a(t=""){const[e,n]=t.split(/:/).slice(-2).filter(Boolean);return e&&n&&!(0,o.lj)(t)?[`${e}:`,n]:[]}},33703:(t,e,n)=>{n.d(e,{_:()=>c});var o=n(66749),i=n(87187),r=n(66682),s=n(46782),a=n(74788),l=n(63658);let c=(()=>{class t extends i.d{constructor(t,e){super(),this.doc=t,this.destroy$=e,this._height=0,this._width=0,(0,r.T)((0,o.mL)(t,"touchend"),(0,o.mL)(t,"mouseup")).pipe((0,s.R)(e)).subscribe((()=>this.updateAttributes({width:this.width,height:this.height})))}get attrs(){var t;return(null===(t=this.node)||void 0===t?void 0:t.attrs)||{src:""}}get width(){return this._width||this.attrs.width||null}get height(){return this._height||this.attrs.height||null}}return t.ɵfac=function(e){return new(e||t)(a.Y36(Document),a.Y36(l.a3))},t.ɵdir=a.lG2({type:t,features:[a.qOj]}),t})()},61732:(t,e,n)=>{n.d(e,{V:()=>p});var o=n(74788),i=n(11927),r=n(75675),s=n(46732),a=n(12057);const l=function(){return[0,1]};function c(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("tuiSizeChange",(function(e){return o.CHM(t),o.oxw().sizeChange.emit(e)})),o.qZA()}2&t&&o.Q6J("tuiResizer",o.DdM(1,l))}const d=function(t){return[t,0]},u=function(){return[1,0]},h=["*"];let p=(()=>{class t{constructor(){this.autoHeight=!1,this.width=null,this.height=null,this.sizeChange=new o.vpe}get hostWidth(){return(0,i.dt)(this.width)?(0,r.O)(this.width):this.width}get hostHeight(){return this.autoHeight?null:(0,i.dt)(this.height)?(0,r.O)(this.height):this.height}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-editor-resizable"]],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("width",e.hostWidth)("height",e.hostHeight)},inputs:{autoHeight:"autoHeight",width:"width",height:"height"},outputs:{sizeChange:"sizeChange"},ngContentSelectors:h,decls:5,vars:8,consts:[["tuiResizeable","",1,"t-resizable"],[1,"t-handle","t-handle-left-side",3,"tuiResizer","tuiSizeChange"],["class","t-handle t-handle-bottom-side",3,"tuiResizer","tuiSizeChange",4,"ngIf"],[1,"t-handle","t-handle-right-side",3,"tuiResizer","tuiSizeChange"],[1,"t-handle","t-handle-bottom-side",3,"tuiResizer","tuiSizeChange"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.TgZ(2,"div",1),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.YNc(3,c,1,2,"div",2),o.TgZ(4,"div",3),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.qZA()),2&t&&(o.ekj("t-resizable-auto-height",e.autoHeight),o.xp6(2),o.Q6J("tuiResizer",o.VKq(5,d,-1)),o.xp6(1),o.Q6J("ngIf",!e.autoHeight),o.xp6(1),o.Q6J("tuiResizer",o.DdM(7,u)))},directives:[s.U_,s.L$,a.O5],styles:['[_nghost-%COMP%]{position:relative;display:inline-block;box-sizing:border-box}[_nghost-%COMP%] .t-resizable[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%] .t-resizable-auto-height[_ngcontent-%COMP%]{height:auto!important}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}[_nghost-%COMP%]:hover .t-handle[_ngcontent-%COMP%]:after{opacity:1}.t-handle[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;width:.75rem;cursor:col-resize;justify-content:center;align-items:center;height:100%}.t-handle[_ngcontent-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";width:50%;height:33%;box-sizing:border-box;border-radius:var(--tui-radius-m);background:var(--tui-base-08);border:1px solid var(--tui-base-03);opacity:0}.t-handle-left-side[_ngcontent-%COMP%]{left:0}.t-handle-bottom-side[_ngcontent-%COMP%]{top:unset;bottom:.3125rem;height:.95rem;width:100%}.t-handle-right-side[_ngcontent-%COMP%]{right:0}'],changeDetection:0}),t})()},36807:(t,e,n)=>{n.d(e,{S:()=>a});var o=n(12057),i=n(5962),r=n(46732),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,i.k,r.gj]]}),t})()},96152:(t,e,n)=>{n.d(e,{D:()=>l});var o=n(12057),i=n(74788),r=n(64493),s=n(79456),a=n(79698);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.sanitizer=n,this.tuiSanitizer=o,this.document=i,this.editor=r}set content(t){this.renderer.setProperty(this.el.nativeElement,"innerHTML",this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,t.replace(/colwidth/g,"width")):this.sanitizer.sanitize(i.q3G.HTML,t))}click(t){var e,n;if(this.editor||!(0,r.ve)(t.target))return;const o=(null===(n=null===(e=t.target)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.getAttribute("href"))||"";o.startsWith("#")&&(this.document.location.hash=o.replace("#",""),t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.Tiy),i.Y36(s.hm,8),i.Y36(o.K0),i.Y36(a.JU,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-socket"]],hostAttrs:[1,"tui-editor-socket"],hostBindings:function(t,e){1&t&&i.NdJ("click",(function(t){return e.click(t)}))},inputs:{content:"content"},decls:0,vars:0,template:function(t,e){},styles:['.tui-editor-socket{display:block;margin:0;color:var(--tui-text-01);font:var(--tui-font-text-m)}.tui-editor-socket[tuiTiptapEditor]{overflow:hidden}.tui-editor-socket .ProseMirror{min-height:5.375rem;padding:.2rem 1rem;outline:none;white-space:pre-wrap}.tui-editor-socket .resize-cursor{cursor:ew-resize;cursor:col-resize}.tui-editor-socket h1,.tui-editor-socket h2,.tui-editor-socket h3,.tui-editor-socket h4,.tui-editor-socket h5,.tui-editor-socket h6{word-break:break-word;line-height:normal}.tui-editor-socket h1:first-child,.tui-editor-socket h2:first-child,.tui-editor-socket p:last-child{margin-bottom:0}.tui-editor-socket p:last-child,.tui-editor-socket pre:last-child{margin-bottom:0}.tui-editor-socket p:empty:after{content:" ";white-space:pre}.tui-editor-socket p:first-child{margin-top:0}.tui-editor-socket p{margin:1rem 0}.tui-editor-socket p>span{line-height:normal;line-height:initial}.tui-editor-socket blockquote{margin:1.25rem 0 1.25rem 1.5rem;padding-left:1.0625rem;border-left:1px solid var(--tui-base-04)}.tui-editor-socket hr{border:none;border-top:1px solid var(--tui-base-03);margin:1rem 0}.tui-editor-socket mark{background:unset;color:inherit}.tui-editor-socket font[face="Courier New"]{display:inline-block;padding:.25rem .5rem;border-radius:.25rem;background-color:#ecf1f7;word-break:break-word}.tui-editor-socket a:not([data-type="jump-anchor"]){color:var(--tui-link);text-decoration:none;outline:none}.tui-editor-socket a:not([data-type="jump-anchor"]):hover{color:var(--tui-link-hover);text-decoration:underline}.tui-editor-socket a:not([data-type="jump-anchor"]):active{color:var(--tui-primary-active)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]{text-decoration:underline;-webkit-text-decoration-color:var(--tui-link);text-decoration-color:var(--tui-link)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:before{content:"#"}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:hover{color:var(--tui-link)}.tui-editor-socket .ProseMirror a:hover img[contenteditable=false]{cursor:pointer;outline:.25rem solid var(--tui-link)}.tui-editor-socket ul,.tui-editor-socket ol{list-style-type:none;margin:1rem 1rem 1rem 1.5rem;padding:0}.tui-editor-socket li{margin:1rem 0}.tui-editor-socket li>p{display:inline;margin:0 auto;word-break:break-word}.tui-editor-socket ul li>p{display:block}.tui-editor-socket li:before{unicode-bidi:-webkit-isolate;unicode-bidi:isolate;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-transform:none;text-indent:0;text-align:start;text-align-last:start}.tui-editor-socket ul>li:before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:100%;margin:.5rem .875rem .0625rem -1.375rem;background-color:var(--tui-primary);vertical-align:top;box-sizing:border-box;float:left}.tui-editor-socket li ul>li:before{background:none;border:.125rem solid var(--tui-primary)}.tui-editor-socket li ul>li>ul>li:before{background:var(--tui-primary);border-radius:0;width:.375rem;height:.375rem}.tui-editor-socket ol{counter-reset:item}.tui-editor-socket ol>li:before{content:counters(item,".") ".";display:block;margin:0 .75rem 0 -1.5rem;counter-increment:item;color:var(--tui-base-05);vertical-align:top;float:left;white-space:nowrap}.tui-editor-socket._preview-image img{cursor:pointer}.tui-editor-socket .ProseMirror video,.tui-editor-socket .ProseMirror audio{pointer-events:none}.tui-editor-socket img.ProseMirror-selectednode{outline:.25rem solid var(--tui-primary-hover)}.tui-editor-socket .t-editor-placeholder:before{content:attr(data-placeholder);float:left;color:var(--tui-base-05);pointer-events:none;height:0}.tui-editor-socket table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.tui-editor-socket table .tableWrapper{overflow-x:auto}.tui-editor-socket .tableWrapper,.tui-editor-socket .tui-table-wrapper{overflow-x:auto}.tui-editor-socket table td{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word}.tui-editor-socket table th{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word;font-weight:bold;text-align:left;background-color:var(--tui-base-02);min-height:2rem}.tui-editor-socket table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:#adf;pointer-events:none}.tui-editor-socket table td>*{margin-top:0;margin-bottom:0}.tui-editor-socket table th>*{margin-top:0;margin-bottom:0}.tui-editor-socket .selectedCell:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--tui-selection);pointer-events:none}.tui-editor-socket summary{display:flex;align-items:center;min-height:3.5rem;width:100%;padding:0 1.25rem;box-sizing:border-box;border-radius:var(--tui-radius-l);pointer-events:none;outline:none}.tui-editor-socket summary:focus-visible{outline:2px solid var(--tui-link)}.tui-editor-socket summary p{min-width:1px;margin:0}.tui-editor-socket summary::-webkit-details-marker{display:none}.tui-editor-socket details[open] summary{border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-editor-socket .details-arrow,.tui-editor-socket .t-details-arrow{position:absolute;top:1.5rem;right:1.25rem;height:.575rem;width:.575rem;border:1px solid var(--tui-base-06);border-width:0 2px 2px 0;transform:rotate(45deg);transition:var(--tui-duration, .3s);-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none}.tui-editor-socket details{width:100%;border:1px solid var(--tui-base-04);border-radius:var(--tui-radius-l)}.tui-editor-socket div[data-type=details-content]{padding:1.25rem;min-height:3rem;border:1px solid var(--tui-base-04);border-width:1px 0 0}.tui-editor-socket div[data-type=details-content] h1:first-child,.tui-editor-socket div[data-type=details-content] h2:first-child,.tui-editor-socket div[data-type=details-content] pre:first-child,.tui-editor-socket div[data-type=details-content] ul:first-child,.tui-editor-socket div[data-type=details-content] ol:first-child,.tui-editor-socket div[data-type=details-content] ol li:first-child,.tui-editor-socket div[data-type=details-content] ul li:first-child{margin-top:0}.tui-editor-socket .details-wrapper,.tui-editor-socket .t-details-wrapper{margin-bottom:.5rem;position:relative;display:flex}.tui-editor-socket .details-wrapper_rendered .details-arrow,.tui-editor-socket .t-details-wrapper_rendered .details-arrow,.tui-editor-socket .details-wrapper_rendered .t-details-arrow,.tui-editor-socket .t-details-wrapper_rendered .t-details-arrow{pointer-events:none}.tui-editor-socket .details-wrapper_rendered summary,.tui-editor-socket .t-details-wrapper_rendered summary{transition:transform var(--tui-duration, .3s);cursor:pointer;pointer-events:auto}.tui-editor-socket .details-wrapper_rendered summary:hover,.tui-editor-socket .t-details-wrapper_rendered summary:hover{background:var(--tui-base-02)}.tui-editor-socket details[open]+.details-arrow,.tui-editor-socket details[open]+.t-details-arrow{top:1.75rem;transform:rotate(225deg)}.tui-editor-socket pre{white-space:pre-wrap;word-break:break-word;border-radius:.25rem;margin:1rem 0;padding:.75rem 1rem;font-family:Courier,monospace;color:var(--tui-text-02);background:var(--tui-base-02)}.tui-editor-socket .tui-group-node{display:flex;flex-direction:row}.tui-editor-socket .tui-group-node:hover>.tui-group-pointer{pointer-events:auto;opacity:1}.tui-editor-socket .tui-group-pointer{opacity:0;min-height:.8125rem;max-height:.8125rem;min-width:.8125rem;max-width:.8125rem;margin:.3125rem .3125rem 0 0;cursor:-webkit-grab;cursor:grab;background-image:url(\'data:image/svg+xml;charset=UTF-8,\');background-repeat:no-repeat;background-size:contain;background-position:center}.tui-editor-socket [data-mode=onDark] .tui-group-pointer{background-image:url(\'data:image/svg+xml;charset=UTF-8,\')}\n'],encapsulation:2,changeDetection:0}),t})()},10215:(t,e,n)=>{n.d(e,{a:()=>$});var o=n(12057),i=n(74788),r=n(24751),s=n(76480),a=n(33770),l=n(99434),c=n(37801),d=n(79456),u=n(51618),h=n(18892),p=n(86114),f=n(71831),m=n(88320),g=n(87874),b=n(46782),v=n(46015),y=n(91489),w=n(80134),x=n(98952),k=n(221),C=n(22580),M=n(75122),S=n(43631),A=n(22648);let O=(()=>{class t extends S.O4{constructor(t){super(),this.el=t,this.type="viewport"}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiEditorPortal",""]],features:[i._Bn([{provide:M.ae,useExisting:A.Y},(0,d.ck)(t)]),i.qOj]}),t})();var T=n(96152),N=n(87429);let E=(()=>{class t extends s.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-portal-host"]],features:[i._Bn([{provide:s.N9,useExisting:M.ae},{provide:s.Er,useExisting:t}]),i.qOj],decls:2,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&i.GkF(0,null,0)},styles:["[_nghost-%COMP%]{position:relative;z-index:1;display:block;height:100%}"],changeDetection:0}),t})();var I=n(41039);function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",7),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(2).fileAttached.emit(e)})),i.Hsn(1,1),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("tools",t.tools)("disabled",!t.interactive)}}function P(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij(" ",t.exampleText," ")}}function H(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-edit-link",13,14),i.NdJ("addLink",(function(e){i.CHM(t);const n=i.MAs(1),o=i.oxw(3);return n.anchorMode?o.addAnchor(e):o.addLink(e)}))("removeLink",(function(){i.CHM(t);const e=i.MAs(1),n=i.oxw(3);return e.anchorMode?n.removeAnchor():n.removeLink()})),i.qZA()}}function L(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",9),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(2).focus(e)})),i.TgZ(1,"div",10),i.TgZ(2,"tui-editor-socket",11),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(2).onModelChange(e)}))("stateChange",(function(){return 0})),i.qZA(),i.qZA(),i.YNc(3,H,2,0,"ng-template",null,12,i.W1O),i._UZ(5,"tui-editor-portal-host"),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(2);i.xp6(1),i.Q6J("tuiDropdownSelection",e.dropdownSelectionHandler)("tuiDropdown",t),i.xp6(1),i.Q6J("value",e.value)("editable",e.interactive)}}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.NdJ("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)})),i.TgZ(1,"div",2),i.YNc(2,D,2,2,"tui-toolbar",3),i.TgZ(3,"div",4),i.Hsn(4),i.qZA(),i.YNc(5,P,2,1,"div",5),i.qZA(),i.YNc(6,L,6,4,"tui-scrollbar",6),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("readOnly",n.readOnly)("disabled",n.disabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid),i.xp6(2),i.Q6J("ngIf",t),i.xp6(1),i.ekj("t-placeholder_raised",n.placeholderRaised),i.xp6(2),i.Q6J("ngIf",n.hasExampleText),i.xp6(1),i.Q6J("ngIf",t)}}const R=["*",[["tools"]]],z=["*","tools"];let $=(()=>{class t extends s.M${constructor(t,e,n,o,r,s,a,l){super(t,e,a),this.editorLoaded$=n,this.editorService=o,this.contentProcessor=r,this.doc=s,this.options=l,this.exampleText="",this.tools=h.Db,this.fileAttached=new i.vpe,this.focused=!1,this.isSelectionLink=t=>this.currentFocusedNodeIsTextAnchor(t)||this.currentFocusedNodeIsImageAnchor,this.editorLoaded$.pipe((0,g.g)(0),(0,b.R)(this.destroy$)).subscribe((()=>this.patchContentEditableElement()))}get nativeFocusableElement(){var t,e;return this.computedDisabled?null:(null===(e=null===(t=this.el)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("[contenteditable].ProseMirror"))||null}get dropdownSelectionHandler(){return this.focused?this.isSelectionLink:a.Iy}get editor(){return this.editorService.getOriginTiptapEditor()?this.editorService:null}get placeholderRaised(){return this.computedFocused&&!this.readOnly||this.hasValue}get hasExampleText(){return!!this.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly}writeValue(t){var e;if(t===this.value)return;const n=this.contentProcessor(t||"");super.writeValue(n),n!==t&&(null===(e=this.control)||void 0===e||e.setValue(n,{onlySelf:!1,emitEvent:!1,emitModelToViewChange:!1,emitViewToModelChange:!1}))}onActiveZone(t){var e;this.focused=t,this.updateFocused(t),null===(e=this.control)||void 0===e||e.updateValueAndValidity()}onModelChange(t){this.value=t}addAnchor(t){var e;null===(e=this.editor)||void 0===e||e.setAnchor(t)}removeAnchor(){var t;null===(t=this.editor)||void 0===t||t.removeAnchor()}addLink(t){var e,n;null===(e=this.editor)||void 0===e||e.selectClosest(),null===(n=this.editor)||void 0===n||n.setLink(t)}removeLink(){var t;null===(t=this.editor)||void 0===t||t.unsetLink()}focus(t){var e,n;(null===(e=this.nativeFocusableElement)||void 0===e?void 0:e.contains(t.target))||(t.preventDefault(),null===(n=this.nativeFocusableElement)||void 0===n||n.focus())}ngOnDestroy(){var t;null===(t=this.editor)||void 0===t||t.destroy()}getFallbackValue(){return""}currentFocusedNodeIsTextAnchor(t){var e,n;return!!(null===(n=null===(e=t.startContainer.parentElement)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.contains(this.focusNode))&&(0,m.nC)(t)}get focusNode(){var t,e;return null!==(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)&&void 0!==e?e:null}get hasValue(){return!!this.value}get currentFocusedNodeIsImageAnchor(){var t,e,n;return"A"===(null===(t=this.focusNode)||void 0===t?void 0:t.nodeName)&&["IMG","TUI-IMAGE-EDITOR"].includes(null===(n=null===(e=this.focusNode)||void 0===e?void 0:e.childNodes[0])||void 0===n?void 0:n.nodeName)}patchContentEditableElement(){var t,e;null===(t=this.nativeFocusableElement)||void 0===t||t.setAttribute("translate",this.options.translate),null===(e=this.nativeFocusableElement)||void 0===e||e.setAttribute("spellcheck",String(this.options.spellcheck))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(f.ZW),i.Y36(p.$3),i.Y36(f.F1),i.Y36(o.K0),i.Y36(f.bK,8),i.Y36(f.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor"]],viewQuery:function(t,e){if(1&t&&(i.Gf(p.JU,5,i.SBq),i.Gf(u.M6,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.el=t.first),i.iGM(t=i.CRH())&&(e.toolbar=t.first)}},inputs:{exampleText:"exampleText",tools:"tools"},outputs:{fileAttached:"fileAttached"},features:[i._Bn([(0,l.FT)(t),(0,c.f$)({delay:d.Gc}),v.m]),i.qOj],ngContentSelectors:z,decls:2,vars:3,consts:[["tuiWrapper","","appearance","textfield","class","t-wrapper",3,"readOnly","disabled","focus","hover","invalid","tuiActiveZoneChange",4,"ngIf"],["tuiWrapper","","appearance","textfield",1,"t-wrapper",3,"readOnly","disabled","focus","hover","invalid","tuiActiveZoneChange"],[1,"t-toolbar-wrapper"],[3,"tools","disabled","fileAttached",4,"ngIf"],[1,"t-placeholder"],["class","t-example-text",4,"ngIf"],["tuiEditorPortal","","class","t-scrollbar",3,"mousedown",4,"ngIf"],[3,"tools","disabled","fileAttached"],[1,"t-example-text"],["tuiEditorPortal","",1,"t-scrollbar",3,"mousedown"],["tuiDropdownLimitWidth","auto","tuiDropdownSelectionPosition","tag",3,"tuiDropdownSelection","tuiDropdown"],["tuiTiptapEditor","",1,"tui-editor-socket",3,"value","editable","valueChange","stateChange"],["dropdown",""],[3,"addLink","removeLink"],["link",""]],template:function(t,e){1&t&&(i.F$t(R),i.YNc(0,_,7,10,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.editorLoaded$))},directives:[o.O5,y.o,k.e,C.M,w.IB,O,x.Ek,x.td,x.VC,x.A9,x.yd,T.D,N.J,E,I.l],pipes:[o.Ov],styles:["[_nghost-%COMP%]{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);max-height:inherit;min-height:10rem;box-sizing:border-box}.t-wrapper[_ngcontent-%COMP%]{display:flex;max-height:inherit;min-height:inherit;cursor:text;overflow:hidden;flex-direction:column;border-radius:inherit}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1rem 1rem -1rem;min-height:1.625rem;width:95%;font-size:.9375rem}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{width:110%}.t-placeholder[_ngcontent-%COMP%]:empty{min-height:.8rem}.t-example-text[_ngcontent-%COMP%]{position:absolute;left:1rem;margin-top:1.6rem;color:var(--tui-base-06);letter-spacing:normal;text-transform:none}.t-example-text_light[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-example-text_dark[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-scrollbar[_ngcontent-%COMP%]{display:flex;border-bottom:.3125rem solid transparent;padding-bottom:1.3125rem;box-sizing:border-box;flex:1}"],changeDetection:0}),t})()},46015:(t,e,n)=>{n.d(e,{m:()=>h});var o=n(74788),i=n(86114),r=n(71831),s=n(74235),a=n(9112),l=n(15257),c=n(88002),d=n(47349),u=n(22648);const h=[{provide:r.F4,deps:[r.Wf],useFactory:t=>{const e=new s.t(1);return Promise.all(t).then((t=>e.next(t))),e}},{provide:r.Y1,deps:[o.Qsj],useFactory:t=>t.createElement("div")},{provide:r.ZW,deps:[r.Y1,r.F4,r.bG],useFactory:(t,e,n)=>(0,a.aj)([n,e]).pipe((0,l.q)(1),(0,c.U)((([e,n])=>new e({element:t,extensions:n}))),(0,d.d)({bufferSize:1,refCount:!0}))},i.$3,u.Y]},22648:(t,e,n)=>{n.d(e,{Y:()=>r});var o=n(76480),i=n(74788);let r=(()=>{class t extends o.N9{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},31496:(t,e,n)=>{n.d(e,{j:()=>v});var o=n(97582),i=n(74788),r=n(24751),s=n(91211),a=n(76480),l=n(44358),c=n(52697),d=n(23917),u=n(98952),h=n(88320),p=n(79588),f=n(44691),m=n(221);function g(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Udp("background",t.background)}}function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-selector",5),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().value=e})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw();i.Q6J("tuiActiveZoneParent",t)("colors",n.colors)("color",n.value)}}class v extends a.M${constructor(t,e,n){super(t,e),this.domSanitizer=n,this.colors=new Map,this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return!!this.dropdown&&this.dropdown.focused}get background(){return this.sanitize(this.value,this.domSanitizer)}onClick(){this.open=!this.open}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}getFallbackValue(){return"#000000"}sanitize(t,e){return t.startsWith("linear-gradient(")?e.bypassSecurityTrustStyle((0,h.CH)((0,h._N)((0,h.U5)(t)))):t}}v.ɵfac=function(t){return new(t||v)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.H7))},v.ɵcmp=i.Xpm({type:v,selectors:[["tui-input-color"]],viewQuery:function(t,e){if(1&t&&(i.Gf(c.yc,5),i.Gf(d.o1,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.dropdown=t.first)}},hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.onClick()}))},inputs:{colors:"colors"},features:[i._Bn([],[(0,u.fx)({maxHeight:600})]),i.qOj],ngContentSelectors:["*"],decls:7,vars:12,consts:[[1,"t-wrapper",3,"content","open","openChange"],[1,"t-textfield",3,"tuiTextfieldIconLeft","pseudoFocus","pseudoHover","pseudoActive","invalid","focusable","nativeId","disabled","readOnly","value","valueChange","focusedChange"],["color",""],["picker",""],[1,"t-color"],[3,"tuiActiveZoneParent","colors","color","colorChange"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.Hsn(2),i.qZA(),i.qZA(),i.YNc(3,g,1,2,"ng-template",null,2,i.W1O),i.YNc(5,b,1,3,"ng-template",null,3,i.W1O)),2&t){const t=i.MAs(4),n=i.MAs(6);i.Q6J("content",n)("open",e.open),i.xp6(1),i.Q6J("tuiTextfieldIconLeft",t)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoActive",e.pseudoActive)("invalid",e.computedInvalid)("focusable",e.focusable)("nativeId",e.nativeId)("disabled",e.disabled)("readOnly",e.readOnly)("value",e.value)}},directives:[d.o1,c.yc,c.B1,p.aR,f.s,m.e],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0}),(0,o.gn)([l.UM],v.prototype,"sanitize",null)},20719:(t,e,n)=>{n.d(e,{X:()=>g});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(92668),d=n(23917),u=n(12628),h=n(90022);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("left")})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("center")})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("right")})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("justify")})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf;a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.left))("tuiHint",e.justifyLeft),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.center))("tuiHint",e.justifyCenter),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.right))("tuiHint",e.justifyRight),a.xp6(1),a.Q6J("pseudoActive",!(null==t||!t.justify))("tuiHint",e.justifyFull)}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,p,5,8,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=a.MAs(1),e=a.MAs(4),n=a.oxw().ngIf;a.Q6J("content",e),a.xp6(2),a.Q6J("tuiHint",n.justify)("pseudoActive",t.open)("focusable",t.open)}}function m(t,e){if(1&t&&(a.ynx(0),a.YNc(1,f,5,4,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.alignState$))}}let g=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.alignState$=(0,r.aj)([this.editor.isActive$({textAlign:"left"}),this.editor.isActive$({textAlign:"right"}),this.editor.isActive$({textAlign:"center"}),this.editor.isActive$({textAlign:"justify"})]).pipe((0,s.U)((([t,e,n,o])=>({left:t,right:e,center:n,justify:o}))))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-align-content"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["align",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignLeftLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["alignDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignLeftLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignCenterLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignRightLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconAlignJustifyLarge","appearance","icon",1,"t-option","t-option_margin",3,"pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,m,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.Ls,d.o1,u.v0,h.$o,h.D,h.xn,h.t6,h.DM],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},57289:(t,e,n)=>{n.d(e,{T:()=>m});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).index;return a.oxw(2).onCode(!!e)})),a._uU(1),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t," ")}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,p,2,1,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.codeOptionsTexts$))}}let m=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.codeOptionsTexts$=n,this.hintText$=this.texts$.pipe((0,r.U)((t=>t.code))),this.insideCode$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.isActive("code")||this.editor.isActive("codeBlock"))),(0,s.x)())}onCode(t){t?this.editor.toggleCodeBlock():this.editor.toggleCode()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.Mr))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-code"]],decls:7,vars:8,consts:[[3,"content"],["codes",""],["tuiIconButton","","type","button","size","s","icon","tuiIconCodeLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["codesDropdown",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.ALo(4,"async"),a.YNc(5,f,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(6);a.Q6J("content",n),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,4,e.hintText$))("pseudoActive",t.open||a.lcZ(4,6,e.insideCode$))("focusable",t.open)}},directives:[l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.vK],pipes:[h.Ov],encapsulation:2,changeDetection:0}),t})()},49382:(t,e,n)=>{n.d(e,{U:()=>h});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(12057),c=n(12628),d=n(90022);function u(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().removeDetails()})),a.ALo(1,"async"),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("tuiHint",t.removeDetails)("focusable",!1)("disabled",!!a.lcZ(1,3,n.disabled$))}}let h=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("details"))),(0,s.x)())}removeDetails(){this.editor.removeDetails()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-details-remove"]],decls:2,vars:3,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerDeleteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerDeleteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,u,2,5,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.v0,d.$o,d.D,d.xn,d.t6,d.DM],pipes:[l.Ov],encapsulation:2,changeDetection:0}),t})()},18885:(t,e,n)=>{n.d(e,{y:()=>d});var o=n(86114),i=n(71831),r=n(74788),s=n(12057),a=n(12628),l=n(90022);function c(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",1),r.NdJ("click",(function(){return r.CHM(t),r.oxw().setDetails()})),r.qZA()}if(2&t){const t=e.ngIf;r.Q6J("tuiHint",t.setDetails)("focusable",!1)}}let d=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e}setDetails(){this.editor.setDetails()}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.$3),r.Y36(i.rf))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-details"]],decls:2,vars:3,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconSpoilerLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","click"]],template:function(t,e){1&t&&(r.YNc(0,c,1,2,"button",0),r.ALo(1,"async")),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.texts$))},directives:[s.O5,a.v0,l.$o,l.D,l.xn,l.t6,l.DM],pipes:[s.Ov],encapsulation:2,changeDetection:0}),t})()},73688:(t,e,n)=>{n.d(e,{m:()=>g}),n(18939);var o=n(75675),i=n(86114),r=n(71831),s=n(88002),a=n(74788),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);const p=function(){return{}};function f(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).$implicit;return a.oxw(2).setFontOption(e)})),a.ALo(1,"lowercase"),a._uU(2),a.qZA()}if(2&t){const t=e.$implicit;a.Udp("font-family",t.family)("font-size",t.px,"px")("font-weight",t.weight),a.Q6J("ngClass",(null==t?null:t.ngClass)||a.DdM(12,p))("ngStyle",(null==t?null:t.ngStyle)||a.DdM(13,p)),a.uIk("automation-id","tui_font__"+a.lcZ(1,10,t.name||"")),a.xp6(2),a.hij(" ",t.name," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,f,3,14,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.fontsOptions$))}}let g=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.fontOptionsTexts$=o,this.fontsOptions$=this.fontOptionsTexts$.pipe((0,s.U)((t=>this.options.fontOptions(t)))),this.fontText$=this.texts$.pipe((0,s.U)((t=>t.font)))}onClick({headingLevel:t,px:e}){this.setFontOption({headingLevel:t,px:e})}setFontOption({headingLevel:t,px:e}){this.clearPreviousTextStyles(),t?this.editor.setHeading(t):this.editor.setParagraph({fontSize:(0,o.O)(e||0)})}clearPreviousTextStyles(){this.editor.removeEmptyTextStyle(),this.editor.toggleMark("textStyle")}}return t.ɵfac=function(e){return new(e||t)(a.Y36(r.mJ),a.Y36(i.$3),a.Y36(r.rf),a.Y36(r.UN))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-font-size"]],decls:6,vars:6,consts:[[3,"content"],["fonts",""],["tuiIconButton","","type","button","size","s","appearance","icon","icon","tuiIconFontLarge","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["fontsDropdown",""],["tuiOption","",3,"fontFamily","fontSize","fontWeight","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["tuiOption","",3,"ngClass","ngStyle","click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.YNc(4,m,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(5);a.Q6J("content",n),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,4,e.fontText$))("pseudoActive",t.open)("focusable",t.open)}},directives:[l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.vK,h.mk,h.PC],pipes:[h.Ov,h.i8],encapsulation:2,changeDetection:0}),t})()},81618:(t,e,n)=>{n.d(e,{h:()=>x});var o=n(18892),i=n(86114),r=n(95161),s=n(71831),a=n(9112),l=n(88002),c=n(74788),d=n(12057),u=n(23917),h=n(12628),p=n(90022);function f(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleBold()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.bold)("pseudoActive",t.bold)}}function m(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleItalic()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.italic)("pseudoActive",t.italic)}}function g(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",13),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleUnderline()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.underline)("pseudoActive",t.underline)}}function b(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",14),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleStrike()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf;c.Q6J("tuiHint",e.strikeThrough)("pseudoActive",t.strike)}}function v(t,e){if(1&t&&(c.TgZ(0,"div",6),c.YNc(1,f,1,2,"button",7),c.YNc(2,m,1,2,"button",8),c.YNc(3,g,1,2,"button",9),c.YNc(4,b,1,2,"button",10),c.qZA()),2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Bold)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Italic)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Underline)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.TuiEditorTool.Strikethrough))}}function y(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",2,3),c._UZ(2,"button",4),c.YNc(3,v,5,4,"ng-template",null,5,c.W1O),c.qZA()),2&t){const t=e.ngIf,n=c.MAs(1),o=c.MAs(4),i=c.oxw().ngIf;c.Q6J("content",o),c.xp6(2),c.Q6J("tuiHint",i.fontStyle)("pseudoActive",n.open||t.bold||t.italic||t.underline||t.strike)("focusable",n.open)}}function w(t,e){if(1&t&&(c.ynx(0),c.YNc(1,y,5,4,"tui-hosted-dropdown",1),c.ALo(2,"async"),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",c.lcZ(2,1,t.fontStyleState$))}}let x=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.toolsSet=new Set(o.Db),this.TuiEditorTool=r._,this.fontStyleState$=(0,a.aj)([this.editor.isActive$("bold"),this.editor.isActive$("italic"),this.editor.isActive$("underline"),this.editor.isActive$("strike")]).pipe((0,l.U)((([t,e,n,o])=>({bold:t,italic:e,underline:n,strike:o}))))}set enabledTools(t){this.toolsSet=new Set(t)}isEnabled(t){return this.toolsSet.has(t)}}return t.ɵfac=function(e){return new(e||t)(c.Y36(i.$3),c.Y36(s.rf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-font-style"]],inputs:{enabledTools:"enabledTools"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"ngIf"],[3,"content"],["format",""],["tuiIconButton","","type","button","size","s","icon","tuiIconFormatLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__font-style-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["formatDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconBoldLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconItalicLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconUnderlineLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconStrikeThroughLarge","appearance","icon","class","t-option t-option_margin",3,"tuiHint","pseudoActive","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","icon","tuiIconBoldLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconItalicLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconUnderlineLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconStrikeThroughLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"]],template:function(t,e){1&t&&(c.YNc(0,w,3,3,"ng-container",0),c.ALo(1,"async")),2&t&&c.Q6J("ngIf",c.lcZ(1,1,e.texts$))},directives:[d.O5,u.o1,h.v0,p.$o,p.D,p.xn,p.t6,p.DM],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},52187:(t,e,n)=>{n.d(e,{d:()=>u});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(12628),c=n(90022),d=n(12057);let u=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.insertGroupText$=this.texts$.pipe((0,r.U)((t=>t.insertGroup))),this.removeGroupText$=this.texts$.pipe((0,r.U)((t=>t.removeGroup))),this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("group"))),(0,s.x)())}addGroup(){this.editor.setGroup()}removeGroup(){this.editor.removeGroup()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-editor-group-tool"]],decls:5,vars:11,consts:[["tuiIconButton","","type","button","size","s","icon","tuiIconPlusLarge","appearance","icon","tuiHintDescribe","",3,"focusable","tuiHint","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconCloseLarge","appearance","icon","tuiHintDescribe","",3,"focusable","disabled","tuiHint","click"]],template:function(t,e){1&t&&(a.TgZ(0,"button",0),a.NdJ("click",(function(){return e.addGroup()})),a.ALo(1,"async"),a.qZA(),a.TgZ(2,"button",1),a.NdJ("click",(function(){return e.removeGroup()})),a.ALo(3,"async"),a.ALo(4,"async"),a.qZA()),2&t&&(a.Q6J("focusable",!1)("tuiHint",a.lcZ(1,5,e.insertGroupText$)),a.xp6(2),a.Q6J("focusable",!1)("disabled",!!a.lcZ(3,7,e.disabled$))("tuiHint",a.lcZ(4,9,e.removeGroupText$)))},directives:[l.v0,c.$o,c.D,c.xn,c.t6,c.DM],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},73545:(t,e,n)=>{n.d(e,{U:()=>y});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(221),d=n(23917),u=n(98952),h=n(12628),p=n(90022),f=n(12057),m=n(59113);function g(t,e){if(1&t&&a._UZ(0,"div",6),2&t){const t=a.oxw().tuiLet;a.Udp("background",t)}}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",7),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setBackgroundColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a.YNc(4,g,1,2,"div",4),a.YNc(5,b,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,6,i.backColorText$))("pseudoActive",n.open)("focusable",n.open),a.xp6(2),a.Q6J("ngIf",!i.isBlankColor(t||""))}}let y=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.defaultOptions=n,this.colors=this.defaultOptions.colors,this.backgroundColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getBackgroundColor()||this.defaultOptions.blankColor)),(0,s.x)()),this.backColorText$=this.texts$.pipe((0,r.U)((t=>t.backColor)))}isBlankColor(t){return t===this.defaultOptions.blankColor}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-highlight-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["hilite",""],["tuiIconButton","","type","button","size","s","tuiHintDirection","top-left","appearance","icon","icon","tuiIconHiliteLarge","automation-id","toolbar__hilite-button","tuiHintDescribe","",1,"t-tool",3,"tuiHint","pseudoActive","focusable"],["class","t-plate",3,"background",4,"ngIf"],["hiliteDropdown",""],[1,"t-plate"],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,v,7,8,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.backgroundColor$))},directives:[l.Ls,d.o1,u.Ek,h.v0,p.$o,p.D,p.xn,p.t6,p.DM,f.O5,m.R,c.e],pipes:[f.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},69867:(t,e,n)=>{n.d(e,{pu:()=>c,P_:()=>u,y9:()=>h,jP:()=>m,p7:()=>p,Zv:()=>f,XC:()=>y,Ur:()=>w,mp:()=>x,iA:()=>M,er:()=>S,__:()=>A,_t:()=>O}),n(20719);var o=n(12057),i=n(92668),r=n(23917),s=n(12628),a=n(90022),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,i.WD]]}),t})();n(57289);var d=n(75111);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,d.pc]]}),t})();n(18885);let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go]]}),t})();n(49382),n(73688);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,d.pc]]}),t})();n(81618);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go]]}),t})();n(52187);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go]]}),t})();n(73545);var g=n(221),b=n(98952),v=n(96472);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,v.VM,a.go,b.dp,g.A,i.WD]]}),t})();n(30928);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,s.fN,a.go,i.WD]]}),t})();n(61899);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,v.VM,s.fN,a.go,g.A,b.dp,i.WD]]}),t})();n(76289);var k=n(1336);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,k.Ih]]}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,b.dp,s.fN,a.go,C]]}),t})();n(41218);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,a.go,i.WD]]}),t})();n(34773);let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,r.jh,a.go,s.fN,d.pc,i.WD]]}),t})();n(57891);let O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fN,r.jh,b.dp,a.go,v.VM,g.A,i.WD]]}),t})()},30928:(t,e,n)=>{n.d(e,{w:()=>g});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(92668),d=n(23917),u=n(12628),h=n(90022);function p(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleUnorderedList()})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleOrderedList()})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).sinkListItem()})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).liftListItem()})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf;a.xp6(1),a.Q6J("tuiHint",e.unorderedList)("pseudoActive",!(null==t||!t.unordered)),a.xp6(1),a.Q6J("tuiHint",e.orderedList)("pseudoActive",!(null==t||!t.ordered)),a.xp6(1),a.Q6J("tuiHint",e.indent)("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered)),a.xp6(1),a.Q6J("tuiHint",e.outdent)("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered))}}function f(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,p,5,8,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(4),i=a.oxw().ngIf;a.Q6J("content",o),a.xp6(2),a.Q6J("tuiHint",i.list)("pseudoActive",(null==n?null:n.open)||(null==t?null:t.unordered)||(null==t?null:t.ordered)||!1)("focusable",n.open)}}function m(t,e){if(1&t&&(a.ynx(0),a.YNc(1,f,5,4,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.listState$))}}let g=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.listState$=(0,r.aj)([this.editor.isActive$("orderedList"),this.editor.isActive$("bulletList")]).pipe((0,s.U)((([t,e])=>({ordered:t,unordered:e}))))}sinkListItem(){this.editor.sinkListItem()}liftListItem(){this.editor.liftListItem()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-list-configs"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["list",""],["tuiIconButton","","type","button","size","s","icon","tuiIconListLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__ordering-list-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],["listDropdown",""],[1,"t-dropdown"],["tuiIconButton","","type","button","size","s","icon","tuiIconListLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconOLLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","pseudoActive","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconIndentLarge","appearance","icon",1,"t-option","t-option_margin",3,"tuiHint","disabled","click"],["tuiIconButton","","type","button","size","s","icon","tuiIconOutdentLarge","appearance","icon",1,"t-option",3,"tuiHint","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,m,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.Ls,d.o1,u.v0,h.$o,h.D,h.xn,h.t6,h.DM],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},61899:(t,e,n)=>{n.d(e,{p:()=>x});var o=n(86114),i=n(71831),r=n(9112),s=n(88002),a=n(87519),l=n(74788),c=n(92668),d=n(221),u=n(23917),h=n(98952),p=n(12628),f=n(90022),m=n(12057),g=n(59113);function b(t,e){if(1&t&&l._UZ(0,"div",7),2&t){const t=l.oxw(2).tuiLet;l.Udp("background",t)}}function v(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-palette",8),l.NdJ("selectedColor",(function(e){l.CHM(t),l.oxw();const n=l.MAs(1);return l.oxw(2).setCellColor(e),n.close()})),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(3);l.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function y(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",2,3),l._UZ(2,"button",4),l.ALo(3,"async"),l.YNc(4,b,1,2,"div",5),l.YNc(5,v,1,2,"ng-template",null,6,l.W1O),l.qZA()),2&t){const t=e.tuiLet,n=l.MAs(1),o=l.MAs(6),i=l.oxw().tuiLet,r=l.oxw();l.Q6J("content",o)("tuiDropdownMaxHeight",999)("canOpen",!!t),l.xp6(2),l.Q6J("tuiHint",l.lcZ(3,8,r.colorText$))("pseudoActive",n.open)("focusable",n.open)("disabled",!t),l.xp6(2),l.Q6J("ngIf",!r.isBlankColor(i||""))}}function w(t,e){if(1&t&&(l.ynx(0),l.YNc(1,y,7,10,"tui-hosted-dropdown",1),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,1,t.isActive$))}}let x=(()=>{class t{constructor(t,e,n){this.defaultOptions=t,this.editor=e,this.texts$=n,this.colors=this.defaultOptions.colors,this.colorText$=this.texts$.pipe((0,s.U)((t=>this.editor.isActive("group")&&t.hiliteGroup||this.editor.isActive("table")&&t.cellColor||""))),this.isActive$=(0,r.aj)([this.editor.isActive$("table"),this.editor.isActive$("group")]).pipe((0,s.U)((([t,e])=>t||e))),this.color$=this.editor.stateChange$.pipe((0,s.U)((()=>this.editor.getCellColor()||this.editor.getGroupColor()||this.defaultOptions.blankColor)),(0,a.x)())}isBlankColor(t){return t===this.defaultOptions.blankColor}setCellColor(t){this.editor.isActive("group")?this.editor.setGroupHilite(t):this.editor.isActive("table")&&this.editor.setCellColor(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.mJ),l.Y36(o.$3),l.Y36(i.rf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-table-cell-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[4,"tuiLet"],[3,"content","tuiDropdownMaxHeight","canOpen",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight","canOpen"],["colorSelect",""],["tuiIconButton","","type","button","size","s","tuiHintDirection","top-left","appearance","icon","icon","tuiIconPaintLarge","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable","disabled"],["class","t-plate t-plate_paint",3,"background",4,"ngIf"],["cellColorDropdown",""],[1,"t-plate","t-plate_paint"],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(l.YNc(0,w,3,3,"ng-container",0),l.ALo(1,"async")),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.color$))},directives:[c.Ls,u.o1,h.Ek,p.v0,f.$o,f.D,f.xn,f.t6,f.DM,m.O5,g.R,d.e],pipes:[m.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},76289:(t,e,n)=>{n.d(e,{l:()=>y});var o=n(86114),i=n(71831),r=n(88002),s=n(74788),a=n(23917),l=n(98952),c=n(12628),d=n(90022),u=n(62579),h=n(47766),p=n(1336);function f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",4),s.NdJ("mouseenter",(function(e){const n=s.CHM(t).$implicit,o=s.oxw().$implicit;return s.oxw().updateCurrentSize(n+1,o+1,e)}))("click",(function(){return s.CHM(t),s.oxw(2).select()})),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw().$implicit,o=s.oxw();s.ekj("t-cell_hovered",o.tableSelectHovered(t,n))}}function m(t,e){if(1&t&&(s.TgZ(0,"div",2),s.YNc(1,f,1,2,"div",3),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("tuiRepeatTimesOf",t.rowsNumber)}}let g=(()=>{class t{constructor(t){this.win=t,this.selectSize=new s.vpe,this.onSelectSize=this.selectSize,this.tableSize={rows:1,cols:1}}get columnsNumber(){return Math.min(Math.max(3,this.tableSize.cols+1),15)}get rowsNumber(){return Math.min(Math.max(3,this.tableSize.rows+1),15)}tableSelectHovered(t,e){return t70&&(this.tableSize={rows:t,cols:e})}onClick(){this.select()}select(){this.selectSize.emit(this.tableSize)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(u.m9))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-size-selector"]],outputs:{selectSize:"selectSize",onSelectSize:"onSelectSize"},decls:3,vars:3,consts:[["class","t-column",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-description"],[1,"t-column"],["class","t-cell",3,"t-cell_hovered","mouseenter","click",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-cell",3,"mouseenter","click"]],template:function(t,e){1&t&&(s.YNc(0,m,2,1,"div",0),s.TgZ(1,"div",1),s._uU(2),s.qZA()),2&t&&(s.Q6J("tuiRepeatTimesOf",e.columnsNumber),s.xp6(2),s.AsE("",e.tableSize.cols,"×",e.tableSize.rows,""))},directives:[p.Xj],styles:["[_nghost-%COMP%]{display:block;padding:.75rem}.t-cell[_ngcontent-%COMP%]{display:inline-block;background-color:var(--tui-base-01);width:1.25rem;height:1.25rem;border-radius:.25rem;margin:.125rem;border:1px solid var(--tui-base-04);cursor:pointer}.t-cell_hovered[_ngcontent-%COMP%]{background-color:var(--tui-base-02)}.t-column[_ngcontent-%COMP%]{white-space:nowrap}.t-description[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})();var b=n(12057);function v(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tui-table-size-selector",4),s.NdJ("onSelectSize",(function(e){return s.CHM(t),s.oxw().addTable(e)})),s.qZA()}}let y=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.insertTableText$=this.texts$.pipe((0,r.U)((t=>t.insertTable)))}addTable({rows:t,cols:e}){this.editor.enter();const n=this.editor.state.selection.anchor;this.editor.enter(),this.editor.enter(),this.editor.setTextSelection(n),this.editor.insertTable(t,e)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(o.$3),s.Y36(i.rf))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-create"]],decls:6,vars:5,consts:[["tuiDropdownAlign","left","tuiDropdownDirection","bottom",3,"content"],["table",""],["tuiIconButton","","type","button","size","s","icon","tuiIconTableLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable"],["tableDropdown",""],[3,"onSelectSize"]],template:function(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",0,1),s._UZ(2,"button",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,v,1,0,"ng-template",null,3,s.W1O)),2&t){const t=s.MAs(1),n=s.MAs(5);s.Q6J("content",n),s.xp6(2),s.Q6J("tuiHint",s.lcZ(3,3,e.insertTableText$))("focusable",t.open)}},directives:[a.o1,l.Ek,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,g],pipes:[b.Ov],encapsulation:2,changeDetection:0}),t})()},41218:(t,e,n)=>{n.d(e,{Y:()=>m});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(12057),d=n(12628),u=n(90022);function h(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",(function(){a.CHM(t);const e=a.oxw().tuiLet,n=a.oxw();return e.mergeCells?n.mergeCells():n.splitCell()})),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw().tuiLet;a.Q6J("icon",n.mergeCells?"tuiIconTableMergeLarge":"tuiIconTableSplitLarge")("tuiHint",n.mergeCells?t.mergeCells:t.splitCells)("focusable",!1)("disabled",!n.mergeCells&&!n.splitCells)}}function p(t,e){if(1&t&&(a.ynx(0),a.YNc(1,h,1,4,"button",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,t.texts$))}}const f=function(t,e){return{mergeCells:t,splitCells:e}};let m=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.canMergeCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canMergeCells())),(0,s.x)()),this.canSplitCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canSplitCells())),(0,s.x)())}mergeCells(){this.editor.mergeCells()}splitCell(){this.editor.splitCell()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-table-merge-cells"]],decls:3,vars:8,consts:[[4,"tuiLet"],["tuiIconButton","","type","button","size","s","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"icon","tuiHint","focusable","disabled","click",4,"ngIf"],["tuiIconButton","","type","button","size","s","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"icon","tuiHint","focusable","disabled","click"]],template:function(t,e){1&t&&(a.YNc(0,p,3,3,"ng-container",0),a.ALo(1,"async"),a.ALo(2,"async")),2&t&&a.Q6J("tuiLet",a.WLB(5,f,a.lcZ(1,1,e.canMergeCells$),a.lcZ(2,3,e.canSplitCells$)))},directives:[l.Ls,c.O5,d.v0,u.$o,u.D,u.xn,u.t6,u.DM],pipes:[c.Ov],encapsulation:2,changeDetection:0}),t})()},34773:(t,e,n)=>{n.d(e,{_:()=>v});var o=n(86114),i=n(71831),r=n(88002),s=n(74788),a=n(92668),l=n(23917),c=n(12628),d=n(90022),u=n(75111),h=n(12057);function p(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",2,3),s._UZ(2,"button",4),s.ALo(3,"async"),s.qZA()),2&t){const t=e.tuiLet,n=s.MAs(1),o=s.oxw(),i=s.MAs(3);s.Q6J("content",i)("canOpen",!!t),s.xp6(2),s.Q6J("tuiHint",s.lcZ(3,5,o.rowsColumnsManagingText$))("focusable",n.open)("disabled",!t)}}function f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",(function(){const e=s.CHM(t).index,n=s.oxw().index;return s.oxw(2).onTableOption(2*n+e)})),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function m(t,e){if(1&t&&(s.TgZ(0,"tui-opt-group"),s.YNc(1,f,2,1,"button",6),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t)}}function g(t,e){if(1&t&&(s.TgZ(0,"tui-data-list"),s.YNc(1,m,2,1,"tui-opt-group",5),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,t.tableCommandTexts$))}}var b=(()=>(function(t){t[t.InsertColumnBefore=0]="InsertColumnBefore",t[t.InsertColumnAfter=1]="InsertColumnAfter",t[t.InsertRowBefore=2]="InsertRowBefore",t[t.InsertRowAfter=3]="InsertRowAfter",t[t.DeleteColumn=4]="DeleteColumn",t[t.DeleteRow=5]="DeleteRow"}(b||(b={})),b))();let v=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.tableCommandTexts$=n,this.commandsRegistry={[b.InsertColumnAfter]:()=>this.editor.addColumnAfter(),[b.InsertColumnBefore]:()=>this.editor.addColumnBefore(),[b.InsertRowAfter]:()=>this.editor.addRowAfter(),[b.InsertRowBefore]:()=>this.editor.addRowBefore(),[b.DeleteColumn]:()=>this.editor.deleteColumn(),[b.DeleteRow]:()=>this.editor.deleteRow()},this.isActive$=this.editor.isActive$("table"),this.rowsColumnsManagingText$=this.texts$.pipe((0,r.U)((t=>t.rowsColumnsManaging)))}onTableOption(t){this.commandsRegistry[t]()}}return t.ɵfac=function(e){return new(e||t)(s.Y36(o.$3),s.Y36(i.rf),s.Y36(i.$i))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-row-column-manager"]],decls:4,vars:3,consts:[[3,"content","canOpen",4,"tuiLet"],["tableOptionsDropdown",""],[3,"content","canOpen"],["tableCommand",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAddRowLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",3,"tuiHint","focusable","disabled"],[4,"ngFor","ngForOf"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,p,4,7,"tui-hosted-dropdown",0),s.ALo(1,"async"),s.YNc(2,g,3,3,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("tuiLet",s.lcZ(1,1,e.isActive$))},directives:[a.Ls,l.o1,c.v0,d.$o,d.D,d.xn,d.t6,d.DM,u.qi,h.sg,u.Rs,u.vK],pipes:[h.Ov],encapsulation:2,changeDetection:0}),t})()},57891:(t,e,n)=>{n.d(e,{G:()=>v});var o=n(86114),i=n(71831),r=n(88002),s=n(87519),a=n(74788),l=n(92668),c=n(221),d=n(23917),u=n(98952),h=n(12628),p=n(90022),f=n(59113),m=n(12057);function g(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",6),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setFontColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("tuiActiveZoneParent",t)("colors",n.colors)}}function b(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a._UZ(4,"div",4),a.YNc(5,g,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("tuiHint",a.lcZ(3,7,i.foreColorText$))("pseudoActive",n.open)("focusable",n.open),a.xp6(2),a.Udp("background",t)}}let v=(()=>{class t{constructor(t,e,n){this.defaultOptions=t,this.editor=e,this.texts$=n,this.colors=this.defaultOptions.colors,this.fontColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getFontColor()||this.defaultOptions.blankColor)),(0,s.x)()),this.foreColorText$=this.texts$.pipe((0,r.U)((t=>t.foreColor)))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-text-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["color",""],["tuiIconButton","","type","button","size","s","icon","tuiIconColorLarge","appearance","icon","tuiHintDirection","top-left","automation-id","toolbar__color-button","tuiHintDescribe","",3,"tuiHint","pseudoActive","focusable"],[1,"t-plate"],["colorDropdown",""],[1,"t-color-picker",3,"tuiActiveZoneParent","colors","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,b,7,9,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.fontColor$))},directives:[l.Ls,d.o1,u.Ek,h.v0,p.$o,p.D,p.xn,p.t6,p.DM,f.R,c.e],pipes:[m.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},51618:(t,e,n)=>{n.d(e,{M6:()=>o.M,yB:()=>p});var o=n(22580),i=n(12057),r=n(13633),s=n(56210),a=n(90022),l=n(12628),c=n(23917),d=n(8674),u=n(69867),h=n(74788);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=h.oAB({type:t}),t.ɵinj=h.cJS({imports:[[i.ez,a.go,r.u,l.fN,c.jh,d.Fu,u.er,u.mp,u.__,u.iA,u.p7,u.Zv,u.pu,u.Ur,u._t,u.XC,u.P_,u.y9,s.H,u.jP]]}),t})()},22580:(t,e,n)=>{n.d(e,{M:()=>ft});var o=n(74788),i=n(33770),r=n(57179),s=(n(18939),n(63658)),a=n(18892),l=n(86114),c=n(95161),d=n(71831),u=n(15257),h=n(46782),p=n(85648);let f=(()=>{class t{constructor(t){this.el=t}get toolsContainers(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiItem]"))}onHorizontalNavigation(t){const{toolsContainers:e}=this,n=e.findIndex(r.zb),o=e[(0,p.Ki)(n+(t?-1:1),0,e.length-1)],i=t?this.findPreviousTool(o):this.findNextTool(o);i&&i.focus()}findFirstFocusableTool(t=!1){const e=t?this.toolsContainers.slice().reverse():this.toolsContainers;for(const t of e){const e=(0,r._h)(t)?t:(0,r.BW)({initial:t,root:t,keyboard:!1});if(e)return e}return null}findPreviousTool(t){return(0,r._h)(t)?t:(0,r.BW)({initial:t,root:t,keyboard:!1})||(0,r.BW)({initial:t,root:this.el.nativeElement,previous:!0,keyboard:!1})}findNextTool(t){return(0,r._h)(t)?t:(0,r.BW)({initial:t,root:this.el.nativeElement,keyboard:!1})}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiToolbarNavigationManager",""]],hostBindings:function(t,e){1&t&&o.NdJ("keydown.arrowRight.prevent",(function(){return e.onHorizontalNavigation(!1)}))("keydown.arrowLeft.prevent",(function(){return e.onHorizontalNavigation(!0)}))}}),t})();var m=n(12057),g=n(13633),b=n(56210),v=n(12628),y=n(90022),w=n(23917),x=n(73688),k=n(81618),C=n(20719),M=n(30928),S=n(41039),A=n(57891),O=n(73545),T=n(57289),N=n(18885),E=n(49382),I=n(52187),D=n(61899),P=n(76289),H=n(34773),L=n(41218);const _=["dropdown"];function R(t,e){1&t&&o.GkF(0)}function z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",7),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).undo()})),o.qZA(),o.TgZ(2,"button",8),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).redo()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("tuiHint",t.undo)("disabled",e.undoDisabled)("focusable",!1),o.xp6(1),o.Q6J("tuiHint",t.redo)("disabled",e.redoDisabled)("focusable",!1)}}function $(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-font-size",9),o.qZA())}function B(t,e){if(1&t&&o._UZ(0,"tui-font-style",15),2&t){const t=o.oxw(3);o.Q6J("enabledTools",t.toolsSet)}}function F(t,e){1&t&&o._UZ(0,"tui-align-content",9)}function J(t,e){1&t&&o._UZ(0,"tui-list-configs",9)}function Z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleQuote()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.quote)("pseudoActive",e.blockquote)("disabled",e.unorderedList||e.orderedList)("focusable",!1)}}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",22,23),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).onLink(n,e)}))("removeLink",(function(){o.CHM(t),o.oxw();const e=o.MAs(1);return o.oxw(3).onLink(e)})),o.qZA()}}function q(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",18,19),o._UZ(2,"button",20,17),o.YNc(4,j,2,0,"ng-template",null,21,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(5),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("tuiHint",n.link)("pseudoActive",t.open||i.a)("focusable",t.open)}}function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",28),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).setAnchor(n,e)}))("removeLink",(function(){return o.CHM(t),o.oxw(4).removeAnchor()})),o.qZA()}2&t&&o.Q6J("anchorMode",!0)}function V(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",24,25),o._UZ(2,"button",26),o.YNc(3,Y,1,1,"ng-template",null,27,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(4),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",!1)("pseudoActive",t.open||i.jumpAnchor)("tuiHint",n.insertAnchor)}}function U(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",30,31),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onAttach(e)})),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("tuiHint",t.attach)("focusable",!1),o.xp6(2),o.Q6J("accept",e.attachOptions.accept)("multiple",e.attachOptions.multiple)("tuiFocusable",!1)}}function W(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,B,1,1,"tui-font-style",10),o.YNc(2,F,1,0,"tui-align-content",11),o.YNc(3,J,1,0,"tui-list-configs",11),o.YNc(4,Z,2,4,"button",12),o.YNc(5,q,6,5,"tui-hosted-dropdown",13),o.YNc(6,V,5,5,"tui-hosted-dropdown",14),o.YNc(7,U,5,5,"ng-container",1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.formatEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Align)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.List)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Quote)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Link)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Anchor)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Attach))}}function Q(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",34,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSubscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.subscript)("pseudoActive",e.subscript)("focusable",!1)}}function K(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",35,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSuperscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("tuiHint",t.superscript)("pseudoActive",e.superscript)("focusable",!1)}}function G(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,Q,2,3,"button",32),o.YNc(2,K,2,3,"button",33),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sub)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sup))}}function X(t,e){if(1&t&&o._UZ(0,"tui-text-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function tt(t,e){if(1&t&&o._UZ(0,"tui-highlight-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function et(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,X,1,1,"tui-text-color",36),o.YNc(2,tt,1,1,"tui-highlight-color",36),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Color)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Hilite))}}function nt(t,e){1&t&&o._UZ(0,"tui-code",9)}function ot(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",41,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).onTeX()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.Q6J("tuiHint",t.tex)("focusable",!1)}}function it(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",42),o.TgZ(1,"button",43,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",44,45),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onImage(e)})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.xp6(1),o.Q6J("tuiHint",t.image)("focusable",!1),o.xp6(2),o.Q6J("tuiFocusable",!1)}}function rt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",46,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).insertHorizontalRule()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf;o.Q6J("tuiHint",t.insertHorizontalRule)("focusable",!1)}}function st(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,nt,1,0,"tui-code",11),o.YNc(2,ot,2,2,"button",38),o.YNc(3,it,5,3,"div",39),o.YNc(4,rt,2,2,"button",40),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Code)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Tex)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Img)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.HR))}}function at(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",47,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).removeFormat()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf;o.xp6(1),o.Q6J("tuiHint",t.clear)("focusable",!1)}}function lt(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-details",48),o._UZ(2,"tui-details-remove",48),o.qZA())}function ct(t,e){if(1&t&&o._UZ(0,"tui-table-cell-color",37),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function dt(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-editor-group-tool",48),o.YNc(2,ct,1,1,"tui-table-cell-color",36),o.qZA()),2&t){const t=o.oxw(2);o.xp6(2),o.Q6J("ngIf",!t.enabled(t.TuiEditorTool.Table))}}function ut(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-table-create",48),o._UZ(2,"tui-table-row-column-manager",48),o._UZ(3,"tui-table-merge-cells",48),o._UZ(4,"tui-table-cell-color",37),o.qZA()),2&t){const t=o.oxw(2);o.xp6(4),o.Q6J("colors",t.colors)}}function ht(t,e){if(1&t&&(o.TgZ(0,"section",4),o.YNc(1,z,3,6,"div",5),o.YNc(2,$,2,0,"div",5),o.YNc(3,W,8,7,"div",5),o.YNc(4,G,3,2,"div",5),o.YNc(5,et,3,2,"div",5),o.YNc(6,st,5,4,"div",5),o.YNc(7,at,3,2,"div",5),o.YNc(8,lt,3,0,"div",5),o.YNc(9,dt,3,1,"div",5),o.YNc(10,ut,5,1,"div",5),o.TgZ(11,"div",6),o.Hsn(12),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Undo)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Size)),o.xp6(1),o.Q6J("ngIf",t.firstBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Sub)||t.enabled(t.TuiEditorTool.Sup)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Color)||t.enabled(t.TuiEditorTool.Hilite)),o.xp6(1),o.Q6J("ngIf",t.secondBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Clear)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Details)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Group)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.TuiEditorTool.Table))}}const pt=["*"];let ft=(()=>{class t{constructor(t,e,n,r,s,l,d,u){this.el=t,this.editor=e,this.imageLoader=n,this.attachOptions=r,this.filesLoader=s,this.texts$=l,this.defaultOptions=d,this.destroy$=u,this.dropdowns=i.Mm,this.colors=this.defaultOptions.colors,this.disabled=!1,this.linkAdded=new o.vpe,this.texClicked=new o.vpe,this.fileAttached=new o.vpe,this.TuiEditorTool=c._,this.toolsSet=new Set(a.Db)}set tools(t){this.toolsSet=new Set(t)}get focused(){return(0,r.zb)(this.el.nativeElement)||!!this.dropdowns.find((({nativeElement:t})=>(0,r.zb)(t)))}get focusable(){return!this.focused&&!this.disabled}get unorderedList(){return this.editor.isActive("bulletList")}get orderedList(){return this.editor.isActive("orderedList")}get blockquote(){return this.editor.isActive("blockquote")}get a(){return this.editor.isActive("link")}get jumpAnchor(){return this.editor.isActive("jumpAnchor")}get canOpenAnchor(){return!this.a&&!this.jumpAnchor}get undoDisabled(){return this.editor.undoDisabled()}get redoDisabled(){return this.editor.redoDisabled()}get subscript(){return this.editor.isActive("subscript")}get superscript(){return this.editor.isActive("superscript")}get formatEnabled(){return this.enabled(c._.Bold)||this.enabled(c._.Italic)||this.enabled(c._.Underline)||this.enabled(c._.Strikethrough)}get firstBigBlockEnabled(){return this.formatEnabled||this.enabled(c._.Align)||this.enabled(c._.List)||this.enabled(c._.Quote)||this.enabled(c._.Link)||this.enabled(c._.Anchor)||this.enabled(c._.Attach)}get secondBigBlockEnabled(){return this.enabled(c._.Code)||this.enabled(c._.Tex)||this.enabled(c._.Img)||this.enabled(c._.HR)}onMouseDown(t,e){e.closest("button")||(t.preventDefault(),this.editor.focus())}onBottomFocus(){this.focusLast()}onTopFocus(){this.focusFirst()}onImage(t){var e;const n=null===(e=t.files)||void 0===e?void 0:e[0];t.value="",n&&this.imageLoader(n).pipe((0,u.q)(1),(0,h.R)(this.destroy$)).subscribe((t=>this.addImage(t)))}onAttach(t){var e;const n=Array.from(t.files||[]);t.value="",n&&(null===(e=this.filesLoader)||void 0===e||e.call(this,n).pipe((0,u.q)(1),(0,h.R)(this.destroy$)).subscribe((t=>this.fileAttached.emit(t))))}onTeX(){this.texClicked.emit()}onLink(t,e){t.open=!1,e&&this.editor.toggleLink(e)}setAnchor(t,e){t.open=!1,e&&(this.editor.setAnchor(e),this.editor.selectClosest())}removeAnchor(){this.editor.removeAnchor()}enabled(t){return this.toolsSet.has(t)}undo(){this.editor.undo()}redo(){this.editor.redo()}insertHorizontalRule(){this.editor.setHorizontalRule()}removeFormat(){this.editor.removeFormat()}toggleOrderedList(){this.editor.toggleOrderedList()}toggleQuote(){this.editor.toggleBlockquote()}toggleSubscript(){this.editor.toggleSubscript()}toggleSuperscript(){this.editor.toggleSuperscript()}addImage(t){this.editor.setImage(t)}focusFirst(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool();e&&e.focus()}focusLast(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool(!0);e&&e.focus()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq,8),o.Y36(l.$3),o.Y36(d.p7),o.Y36(d.dR),o.Y36(d.zc,8),o.Y36(d.rf),o.Y36(d.mJ),o.Y36(s.a3,2))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-toolbar"]],viewQuery:function(t,e){if(1&t&&(o.Gf(f,5),o.Gf(_,5,o.SBq)),2&t){let t;o.iGM(t=o.CRH())&&(e.navigationManager=t.first),o.iGM(t=o.CRH())&&(e.dropdowns=t)}},hostAttrs:["role","toolbar"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",(function(t){return e.onMouseDown(t,t.target)})),2&t&&o.ekj("_disabled",e.disabled)},inputs:{colors:"colors",disabled:"disabled",tools:"tools"},outputs:{linkAdded:"linkAdded",texClicked:"texClicked",fileAttached:"fileAttached"},features:[o._Bn([s.a3])],ngContentSelectors:pt,decls:7,vars:8,consts:[["type","button",1,"t-prevent-parent-label-behavior"],[4,"ngIf"],[3,"tuiFocusable","focus"],["tuiToolbarNavigationManager","","class","t-tools-wrapper",4,"ngIf"],["tuiToolbarNavigationManager","",1,"t-tools-wrapper"],["class","t-block",4,"ngIf"],[1,"t-block"],["tuiItem","","tuiIconButton","","type","button","size","s","icon","tuiIconUndoLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","disabled","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconRedoLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","disabled","focusable","click"],["tuiItem","",1,"t-tool","t-wrapper"],["tuiItem","","class","t-tool t-wrapper",3,"enabledTools",4,"ngIf"],["tuiItem","","class","t-tool t-wrapper",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconQuoteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","disabled","focusable","click",4,"ngIf"],["tuiItem","","class","t-wrapper",3,"canOpen","content",4,"ngIf"],["class","t-wrapper",3,"canOpen","content",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"enabledTools"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconQuoteLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","disabled","focusable","click"],["button",""],["tuiItem","",1,"t-wrapper",3,"canOpen","content"],["link",""],["tuiIconButton","","type","button","size","s","icon","tuiIconLinkLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","pseudoActive","focusable"],["linkDropdown",""],[3,"addLink","removeLink"],["dropdown",""],[1,"t-wrapper",3,"canOpen","content"],["anchor",""],["tuiIconButton","","type","button","size","s","icon","tuiIconAnchorLarge","tuiHintDirection","top-left","appearance","icon","tuiHintDescribe","",3,"focusable","pseudoActive","tuiHint"],["anchorDropdown",""],[3,"anchorMode","addLink","removeLink"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconPaperclipLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["type","file",1,"t-file-upload",3,"accept","multiple","tuiFocusable","change"],["fileUpload",""],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSubscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSuperscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","pseudoActive","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSubscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconSuperscriptLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","pseudoActive","focusable","click"],["tuiItem","","class","t-tool t-wrapper",3,"colors",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"colors"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconTeXLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool",3,"tuiHint","focusable","click",4,"ngIf"],["tuiItem","","class","t-wrapper",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconHrLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","","class","t-tool t-tool_margin",3,"tuiHint","focusable","click",4,"ngIf"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconTeXLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","focusable","click"],["tuiItem","",1,"t-wrapper"],["tuiIconButton","","type","button","size","s","icon","tuiIconImageLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool",3,"tuiHint","focusable","click"],["type","file","accept","image/*",1,"t-image",3,"tuiFocusable","change"],["image",""],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconHrLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["tuiIconButton","","tuiItem","","type","button","size","s","icon","tuiIconClearFormatLarge","appearance","icon","tuiHintDirection","top-left","tuiHintDescribe","",1,"t-tool","t-tool_margin",3,"tuiHint","focusable","click"],["tuiItem","",1,"t-tool","t-tool_margin"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"button",0),o.YNc(1,R,1,0,"ng-container",1),o.ALo(2,"async"),o.TgZ(3,"div",2),o.NdJ("focus",(function(){return e.onTopFocus()})),o.qZA(),o.TgZ(4,"div",2),o.NdJ("focus",(function(){return e.onBottomFocus()})),o.qZA(),o.YNc(5,ht,13,10,"section",3),o.ALo(6,"async")),2&t&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,4,e.editor.stateChange$)),o.xp6(2),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("ngIf",o.lcZ(6,6,e.texts$)))},directives:[m.O5,g.t,f,v.v0,b.w,y.$o,y.D,y.xn,y.t6,y.DM,x.m,k.h,C.X,M.w,w.o1,S.l,A.G,O.U,T.T,N.y,E.U,I.d,D.p,P.l,H._,L.Y],pipes:[m.Ov],styles:['.t-tools-wrapper[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;display:flex;padding:.25rem .75rem;overflow:auto;flex-wrap:wrap;box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}.t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar, .t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-tools-wrapper._disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-block[_ngcontent-%COMP%]{display:flex;padding:.25rem 0}.t-block[_ngcontent-%COMP%]:not(:last-child):after{content:"";display:block;margin:0 .25rem;width:1px;background:var(--tui-secondary-active)}.t-tool[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}button.t-tool[_ngcontent-%COMP%]:hover, .t-tool[_ngcontent-%COMP%] button:hover{background:var(--tui-secondary-hover)}.t-tool_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-font[_ngcontent-%COMP%]{padding:.3em 0;outline:none;width:100%;pointer-events:none}.t-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:0;opacity:0;cursor:pointer}.t-image[_ngcontent-%COMP%]::-webkit-file-upload-button{display:none}.t-file-upload[_ngcontent-%COMP%]{display:none}.t-color-picker[_ngcontent-%COMP%] tui-hosted-dropdown, .t-color-picker[_ngcontent-%COMP%] tui-color-picker, .t-color-picker[_ngcontent-%COMP%] tui-color-edit{display:none}.t-prevent-parent-label-behavior[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})()},18892:(t,e,n)=>{n.d(e,{hK:()=>i,pH:()=>l,pL:()=>p,_s:()=>c,Ci:()=>d,jU:()=>h,DN:()=>u,sw:()=>o,Db:()=>s,RR:()=>a});const o=new Map([["transparent","transparent"],["color-black-300","#333333"],["color-black-200","#666666"],["color-black-100","#909090"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"]]),i="rgb(51, 51, 51)";var r=n(95161);const s=[r._.Undo,r._.Size,r._.Bold,r._.Italic,r._.Underline,r._.Align,r._.List,r._.Quote,r._.Link,r._.Anchor,r._.Color,r._.Hilite,r._.Clear,r._.Strikethrough,r._.Code,r._.Img,r._.HR,r._.Sup,r._.Sub,r._.Table,r._.Details];function a(t){return[{px:13,name:t.small},{px:15,name:t.normal},{px:17,name:t.large},{px:24,family:"var(--tui-font-heading)",name:t.subtitle,headingLevel:2,weight:"bold"},{px:30,family:"var(--tui-font-heading)",name:t.title,headingLevel:1,weight:"bold"}]}const l=["id","class","src","style","controls","loop","muted","preload","autoplay","width","height","controlsList"],c="#",d="https://",u=":",h="://",p={protocol:d}},86114:(t,e,n)=>{n.d(e,{BN:()=>i,JU:()=>r.JU,mJ:()=>r.mJ,$3:()=>r.$3});var o=n(74788);let i=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var r=n(79698)},79698:(t,e,n)=>{n.d(e,{JU:()=>o.J,mJ:()=>r,$3:()=>s.$});var o=n(87429),i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var s=n(26710)},87429:(t,e,n)=>{n.d(e,{J:()=>l});var o=n(74788),i=n(63658),r=n(71831),s=n(46782),a=n(26710);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.editor=n,this.editorContainer=o,this.editorLoaded$=i,this.valueChange=this.editor.valueChange$,this.stateChange=this.editor.stateChange$,this.editorLoaded$.pipe((0,s.R)(r)).subscribe((()=>{this.renderer.appendChild(this.el.nativeElement,this.editorContainer)}))}set value(t){this.editor.setValue(t)}set editable(t){this.editor.editable=t}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(a.$),o.Y36(r.Y1),o.Y36(r.ZW),o.Y36(i.a3,2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiTiptapEditor",""]],inputs:{value:"value",editable:"editable"},outputs:{valueChange:"valueChange",stateChange:"stateChange"},features:[o._Bn([i.a3])]}),t})()},26710:(t,e,n)=>{n.d(e,{$:()=>f});var o=n(75675),i=n(79765),r=n(74788);let s=(()=>{class t{constructor(){this.stateChange$=new i.xQ,this.valueChange$=new i.xQ}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t}),t})();var a=n(18892),l=n(71831),c=n(88320),d=n(62463),u=n(39761),h=n(88002),p=n(87519);let f=(()=>{class t extends s{constructor(t){super(),this.editorRef=t,this.editorRef.subscribe((t=>{this.editor=t,t.on("transaction",(()=>{this.stateChange$.next()})),t.on("update",(()=>{const e=t.getHTML(),n=(o=t.getJSON().content,Array.isArray(o)&&1===o.length&&"paragraph"===o[0].type&&!o[0].hasOwnProperty("content")?"":e);var o;this.valueChange$.next(n)}))}))}get isFocused(){return this.editor.isFocused}get html(){return this.editor.getHTML()}get editable(){return this.editor.isEditable}set editable(t){this.editor.setEditable(t)}get state(){return this.editor.state}getOriginTiptapEditor(){return this.editor}undoDisabled(){return!this.editor.can().undo()}redoDisabled(){return!this.editor.can().redo()}getFontColor(){return this.editor.getAttributes("textStyle").fontColor||a.hK}getFontSize(){return parseInt(this.editor.getAttributes("textStyle").fontSize,10)}setFontSize(t){this.editor.chain().setMark("textStyle",{fontSize:(0,o.O)(t)}).run()}getBackgroundColor(){var t;return(null===(t=this.editor)||void 0===t?void 0:t.getAttributes("textStyle").backgroundColor)||"transparent"}getCellColor(){return this.editor.getAttributes("tableCell").background||this.editor.getAttributes("tableHeader").background}getGroupColor(){var t,e,n,o;if(this.editor.isActive("group")){const i=null!==(e=null===(t=this.editor.getAttributes("group"))||void 0===t?void 0:t.style)&&void 0!==e?e:"",r=(0,c.jx)(i);return null!==(o=null!==(n=r["background-color"])&&void 0!==n?n:r.background)&&void 0!==o?o:""}return""}onAlign(t){this.editor.chain().focus().setTextAlign(t).run()}setImage(t){this.editor.chain().focus().command((({commands:e,state:n})=>{var o;const i=null!==(o=e.setEditableImage)&&void 0!==o?o:e.setImage;if(i){const o=n.selection.anchor;return i({src:t}),e.setTextSelection(o),!0}return!1})).run()}undo(){this.editor.chain().undo().run()}redo(){this.editor.chain().redo().run()}setHorizontalRule(){this.editor.chain().focus().setHorizontalRule().run()}removeFormat(){this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}setFontColor(t){this.editor.chain().focus().setFontColor(t).run()}setBackgroundColor(t){this.editor.chain().focus().setBackgroundColor(t).run()}toggleUnderline(){this.editor.chain().focus().toggleUnderline().run()}toggleStrike(){this.editor.chain().focus().toggleStrike().run()}toggleOrderedList(){this.editor.chain().focus().toggleOrderedList().run()}toggleUnorderedList(){this.editor.chain().focus().toggleBulletList().run()}togglePre(){this.editor.chain().focus().toggleCodeBlock().run()}sinkListItem(){this.editor.chain().focus().sinkListItem("listItem").run()}liftListItem(){this.editor.chain().focus().liftListItem("listItem").run()}isActive(t){return this.editor.isActive(t)}isActive$(t){return this.stateChange$.pipe((0,u.O)(null),(0,h.U)((()=>this.isActive(t))),(0,p.x)())}toggleBold(){this.editor.chain().focus().toggleBold().run()}toggleCode(){this.editor.chain().focus().toggleCode().run()}toggleItalic(){this.editor.chain().focus().toggleItalic().run()}toggleBlockquote(){this.editor.chain().focus().toggleBlockquote().run()}toggleSubscript(){this.editor.chain().focus().toggleSubscript().run()}toggleSuperscript(){this.editor.chain().focus().toggleSuperscript().run()}toggleCodeBlock(){this.editor.chain().focus().toggleCodeBlock().run()}insertTable(t,e){this.editor.chain().focus().insertTable({cols:t,rows:e}).run()}addColumnAfter(){this.editor.chain().focus().addColumnAfter().run()}addColumnBefore(){this.editor.chain().focus().addColumnBefore().run()}addRowAfter(){this.editor.chain().focus().addRowAfter().run()}addRowBefore(){this.editor.chain().focus().addRowBefore().run()}deleteColumn(){this.editor.chain().focus().deleteColumn().run()}deleteRow(){this.editor.chain().focus().deleteRow().run()}mergeCells(){this.editor.chain().focus().mergeCells().run()}splitCell(){this.editor.chain().focus().splitCell().run()}canMergeCells(){return this.editor.can().mergeCells()}canSplitCells(){return this.editor.can().splitCell()}setHeading(t){this.editor.chain().focus().setHeading({level:t}).run()}setParagraph(t){this.editor.chain().focus().setParagraph().run(),t&&this.editor.chain().setMark("textStyle",t).run()}setHardBreak(){this.editor.chain().setHardBreak().run()}setTextSelection(t){this.editor.commands.setTextSelection(t)}toggleLink(t){this.editor.chain().focus().toggleLink({href:t}).run()}setLink(t){this.editor.chain().focus().setLink({href:t}).run()}unsetLink(){this.editor.chain().focus().unsetLink().run()}focus(){this.editor.chain().focus().run()}setValue(t){t===this.html||""===t&&"

"===this.html||(this.editor.commands.setContent(t),this.editor.view.updateState(d.yy.create({schema:this.editor.state.schema,doc:this.editor.state.doc,selection:this.editor.state.selection,storedMarks:this.editor.state.storedMarks,plugins:this.editor.state.plugins})))}destroy(){this.editor.destroy()}setCellColor(t){this.editor.chain().focus().setCellBackground(t).run()}selectClosest(){const t=this.editor.state.selection.anchor,{schema:e,doc:n}=this.editor.state,o=(0,c.Yz)(n.resolve(t),e.marks.link);o&&this.editor.chain().setTextSelection(o).run()}enter(){this.editor.commands.enter()}setDetails(){this.editor.commands.setDetails()}removeDetails(){this.editor.commands.removeDetails()}setGroup(){this.editor.commands.setGroup()}removeGroup(){this.editor.commands.removeGroup()}setGroupHilite(t){this.editor.commands.setGroupHilite(t)}setAnchor(t){this.editor.commands.setAnchor(t.replace("#",""))}removeAnchor(){this.editor.commands.removeAnchor()}setFileLink(t){this.editor.commands.setFileLink(t)}setYoutubeVideo(t){this.editor.commands.setYoutubeVideo(t)}setIframe(t){this.editor.commands.setIframe(t)}removeEmptyTextStyle(){this.editor.commands.removeEmptyTextStyle()}toggleMark(t,e,n){this.editor.commands.toggleMark(t,e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(l.ZW))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},95161:(t,e,n)=>{n.d(e,{_:()=>o});var o=(()=>(function(t){t.Undo="undo",t.Anchor="anchor",t.Size="fontSize",t.Bold="bold",t.Italic="italic",t.Underline="underline",t.Strikethrough="strikeThrough",t.Align="justify",t.List="list",t.Quote="quote",t.Color="foreColor",t.Hilite="hiliteColor",t.Clear="clear",t.Link="link",t.Attach="attach",t.Tex="tex",t.Code="code",t.Img="image",t.HR="insertHorizontalRule",t.Sup="superscript",t.Sub="subscript",t.Table="insertTable",t.MergeCells="mergeCells",t.SplitCells="splitCells",t.RowsColumnsManaging="rowsColumnsManaging",t.Details="details",t.Group="group"}(o||(o={})),o))()},13511:(t,e,n)=>{n.r(e),n.d(e,{BackgroundColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"backgroundColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,renderHTML:({backgroundColor:t})=>t?{style:`background-color: ${t}`}:{},parseHTML:({style:t})=>t.backgroundColor.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).run()})})},41131:(t,e,n)=>{n.r(e),n.d(e,{TuiFileLink:()=>o});const o=n(11046).Extension.create({name:"fileLink",addCommands:()=>({setFileLink:t=>({state:e,chain:n})=>{const{selection:o}=e,i=' ';return(Math.abs(o.to-o.from)>0?n().toggleMark("link",{href:t.link},{extendEmptyMarkRange:!0}).setTextSelection(o.to).insertContent(i):n().insertContent(`${t.name}${i}`)).setTextSelection(o.to).run()}})})},47841:(t,e,n)=>{n.r(e),n.d(e,{FontColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontColor:{default:null,renderHTML:({fontColor:t})=>t?{style:`color: ${t}`}:{},parseHTML:({style:t})=>t.color.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setFontColor:t=>({chain:e})=>e().setMark("textStyle",{fontColor:t}).run(),unsetFontColor:()=>({chain:t})=>t().setMark("textStyle",{fontColor:null}).run()})})},83120:(t,e,n)=>{n.r(e),n.d(e,{TuiFontSize:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:({style:t})=>t.fontSize,renderHTML:({fontSize:t})=>t?{style:`font-size: ${t}`}:{}}}}]},addCommands:()=>({setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})})},38981:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_GROUP_DEFAULT_OPTIONS:()=>r,createGroupExtension:()=>s});var o=n(88320),i=n(11046);const r={groupNodeClass:"tui-group-node",groupPointerNodeClass:"tui-group-pointer",nested:!0,draggable:!0,createOnEnter:!1},s=(t={})=>{const{draggable:e,nested:n,groupNodeClass:s,groupPointerNodeClass:a,createOnEnter:l}=Object.assign(Object.assign({},r),t);return i.Node.create({name:"group",draggable:e,group:"block",content:n?"block+":"block",addAttributes:()=>({style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>t.style?{style:t.style}:{}}}),parseHTML:()=>[{tag:'div[data-type="group"]'}],renderHTML:({HTMLAttributes:t})=>["div",(0,i.mergeAttributes)(t,{"data-type":"group"}),0],addNodeView:()=>({HTMLAttributes:t,node:n})=>{const o=document.createElement("div"),i=document.createElement("div");if(o.classList.add(s),i.setAttribute("data-type","group"),t.style&&(n.attrs.style=t.style,i.setAttribute("style",t.style)),e){const t=document.createElement("div");t.classList.add(a),t.innerHTML="",t.contentEditable="false",o.append(t,i)}else o.append(i);return{dom:o,contentDOM:i}},addCommands(){return{setGroup:()=>({commands:t,state:e})=>{this.editor.chain().focus().run();const n=(0,o.Ap)(e,""),i=`
${n.trim().startsWith("

")?n:`

${n}

`}
`;return t.insertContent(i)},setGroupHilite:t=>({editor:e})=>{for(let n=e.state.selection.$anchor,o=n.depth;o>0;o--){const i=n.node(o);if(i.type.name===this.name){setTimeout((()=>e.commands.updateAttributes(i.type,{style:`background: ${t}`})));break}}return!0},removeGroup:()=>({state:t,dispatch:e})=>(0,o.yU)(t,e,this.name)}},addKeyboardShortcuts(){return l?{Enter:()=>this.editor.commands.setGroup()}:{}}})}},91876:(t,e,n)=>{n.r(e),n.d(e,{TUI_IFRAME_EDITOR_OPTIONS:()=>l,TuiIframeEditorComponent:()=>d,TuiIframeEditorModule:()=>m,createIframeEditorExtension:()=>p});var o=n(12057),i=n(91211),r=n(63658),s=n(33703),a=n(74788);const l=new a.OlP("[TUI_IFRAME_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0,minHeight:100,maxHeight:1/0})});var c=n(61732);let d=(()=>{class t extends s._{constructor(t,e,n,o){super(e,o),this.options=t,this.sanitizer=n}get src(){var t;return this.sanitizer.bypassSecurityTrustResourceUrl(null!==(t=this.attrs.src)&&void 0!==t?t:"")}updateSize([t,e]){this._width=Math.max(this.options.minWidth,Math.min(this.options.maxWidth,t)),this._height=Math.max(this.options.minHeight,Math.min(this.options.maxHeight,e))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(l),a.Y36(o.K0),a.Y36(i.H7),a.Y36(r.a3,2))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-iframe-editor"]],features:[a._Bn([r.a3]),a.qOj],decls:2,vars:13,consts:[[3,"width","height","sizeChange"],[3,"src","width","height"]],template:function(t,e){1&t&&(a.TgZ(0,"tui-editor-resizable",0),a.NdJ("sizeChange",(function(t){return e.updateSize(t)})),a._UZ(1,"iframe",1),a.qZA()),2&t&&(a.Q6J("width",e.width)("height",e.height),a.xp6(1),a.Udp("min-width",e.options.minWidth)("min-height",e.options.minHeight)("max-width",e.options.maxWidth)("max-height",e.options.maxHeight),a.Q6J("src",e.src,a.uOi)("width",e.width)("height",e.height))},directives:[c.V],styles:["iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}"],changeDetection:0}),t})();var u=n(87187),h=n(11046);const p=t=>h.Node.create({name:"iframe",group:"block",atom:!0,draggable:!1,parseHTML:()=>[{tag:'iframe[data-type="iframe-editor"]'}],addAttributes(){return{src:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("src")},frameborder:{default:0,keepOnSplit:!1,parseHTML:t=>t.getAttribute("frameborder")},width:{default:"100%",keepOnSplit:!1,parseHTML:t=>t.getAttribute("width")},height:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("height")},allowfullscreen:{keepOnSplit:!1,default:this.options.allowFullscreen,parseHTML:t=>t.getAttribute("allowfullscreen")}}},renderHTML:({HTMLAttributes:t})=>["iframe",(0,h.mergeAttributes)(t,{"data-type":"iframe-editor"})],addNodeView:()=>e=>new u.y(d,e,Object.assign({injector:t},e)),addCommands(){return{setIframe:t=>({commands:e,state:n})=>{const o=n.selection.anchor;return e.enter(),e.setTextSelection(o),e.insertContent({type:this.name,attrs:t}),e.setTextSelection(n.selection.anchor),!0}}}});var f=n(36807);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[f.S]]}),t})()},45267:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_MAX_IMAGE_WIDTH:()=>d,TUI_EDITOR_MIN_IMAGE_WIDTH:()=>c,TUI_IMAGE_EDITOR_OPTIONS:()=>u,TuiImageEditorComponent:()=>p,TuiImageEditorModule:()=>S,createImageEditorExtension:()=>x,tuiCreateImageEditorExtension:()=>C});var o=n(12057),i=n(74788),r=n(91211),s=n(62579),a=n(63658),l=n(33703);const c=new i.OlP("[TUI_EDITOR_MIN_IMAGE_WIDTH]",{factory:()=>null}),d=new i.OlP("[TUI_EDITOR_MAX_IMAGE_WIDTH]",{factory:()=>null}),u=new i.OlP("[TUI_IMAGE_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0})});var h=n(61732);let p=(()=>{class t extends l._{constructor(t,e,n,o,i,r,s,a){super(o,r),this.minWidth=t,this.maxWidth=e,this.options=n,this.sanitizer=i,this.el=s,this.win=a,this.contenteditable=!0,this.focused=!1}get dragHandle(){var t;return null!==(t=this.attrs.draggable)&&void 0!==t?t:null}get height(){return null}get alt(){return this.attrs.alt||""}get title(){return this.attrs.title||""}get src(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.attrs.src)}currentTargetIsFocused(t){this.focused=this.el.nativeElement.contains(t),this.focused&&this.selectFakeText()}updateSize([t]){var e,n;const o=null!==(e=this.minWidth)&&void 0!==e?e:this.options.minWidth,i=null!==(n=this.maxWidth)&&void 0!==n?n:this.options.maxWidth;this._width=Math.max(o,Math.min(i,t))}selectFakeText(){var t,e,n;const o=this.doc.createRange();null===(t=this.el.nativeElement.querySelector("p"))||void 0===t||t.focus(),o.selectNode(this.el.nativeElement),null===(e=this.win.getSelection())||void 0===e||e.removeAllRanges(),null===(n=this.win.getSelection())||void 0===n||n.addRange(o)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c),i.Y36(d),i.Y36(u),i.Y36(o.K0),i.Y36(r.H7),i.Y36(a.a3,2),i.Y36(i.SBq),i.Y36(s.m9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-image-editor"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click.silent",(function(t){return e.currentTargetIsFocused(t.target)}),!1,i.evT),2&t&&i.uIk("contenteditable",e.contenteditable)("data-drag-handle",e.dragHandle)},features:[i._Bn([a.a3]),i.qOj],decls:4,vars:12,consts:[["contenteditable","false",1,"t-emulate-inline-node"],[3,"width","autoHeight","sizeChange"],["contenteditable","false",3,"src","width","alt","title"]],template:function(t,e){1&t&&(i._UZ(0,"p",0),i.TgZ(1,"tui-editor-resizable",1),i.NdJ("sizeChange",(function(t){return e.updateSize(t)})),i._UZ(2,"img",2),i.qZA(),i._UZ(3,"p",0)),2&t&&(i.xp6(1),i.Q6J("width",e.width)("autoHeight",!0),i.xp6(1),i.Udp("min-width",e.options.minWidth,"px")("max-width",e.options.maxWidth,"px"),i.ekj("ProseMirror-selectednode",e.focused),i.Q6J("src",e.src,i.LSH)("width",e.width)("alt",e.alt)("title",e.title))},directives:[h.V],styles:["[data-drag-handle][_nghost-%COMP%]{cursor:move}img[_ngcontent-%COMP%]{pointer-events:none}.t-emulate-inline-node[_ngcontent-%COMP%]{display:inline-block;margin:0;height:0}"],changeDetection:0}),t})();var f=n(11927),m=n(87187),g=n(11046),b=n(44632),v=n(62463);const y=[{tag:'img[data-type="image-editor"]'}],w={src:{default:"",keepOnSplit:!1},width:{default:300,keepOnSplit:!1},alt:{default:"",keepOnSplit:!1},title:{default:"",keepOnSplit:!1}};function x(t,{draggable:e}={}){const n=!(0,f.Pc)(e)||e;return b.Image.extend({name:"imageEditor",group:"inline",inline:!0,atom:!0,priority:0,selectable:!0,draggable:n,parseHTML:()=>y,addAttributes:()=>Object.assign(Object.assign({},w),{draggable:{default:n?"":null,keepOnSplit:!1}}),renderHTML:({HTMLAttributes:t})=>["img",(0,g.mergeAttributes)(t,{"data-type":"image-editor"})],addNodeView:()=>e=>new m.y(p,e,Object.assign({injector:t},e)),addCommands(){return{setEditableImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addProseMirrorPlugins:()=>[new v.Sy({props:{handleDOMEvents:{paste:k,drop:k}}})]})}function k(t,e){var n;const o=e instanceof DragEvent?e.dataTransfer:e.clipboardData,i=Array.from(null!==(n=null==o?void 0:o.files)&&void 0!==n?n:[]).filter((t=>/image/i.test(t.type)));i.length&&e.preventDefault();for(const e of i){const n=new FileReader;n.onload=e=>{var n;const o=t.state.schema.nodes.imageEditor.create({src:null===(n=e.target)||void 0===n?void 0:n.result}),i=t.state.tr.replaceSelectionWith(o);setTimeout((()=>t.dispatch(i)))},n.readAsDataURL(e)}}function C({injector:t,draggable:e}){return x(t,{draggable:e})}var M=n(36807);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,M.S]]}),t})()},73757:(t,e,n)=>{function o(t){return t.isActive("bulletList")||t.isActive("orderedList")}n.r(e),n.d(e,{TuiTabExtension:()=>i,tuiIsOrderedOrBulletList:()=>o});const i=n(11046).Extension.create({name:"indent",addKeyboardShortcuts(){return{Tab:()=>o(this.editor)?null:this.editor.commands.insertContent("\t")}}})},50822:(t,e,n)=>{n.r(e),n.d(e,{TuiLink:()=>qt});var o=n(88320),i=n(11046);const r="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",a=(t,e)=>{for(const n in e)t[n]=e[n];return t},l="numeric",c="ascii",d="alpha",u="asciinumeric",h="alphanumeric",p="domain",f="emoji",m="scheme",g="slashscheme",b="whitespace";function v(t,e){return t in e||(e[t]=[]),e[t]}function y(t,e,n){e[l]&&(e[u]=!0,e[h]=!0),e[c]&&(e[u]=!0,e[d]=!0),e[u]&&(e[h]=!0),e[d]&&(e[h]=!0),e[h]&&(e[p]=!0),e[f]&&(e[p]=!0);for(const o in e){const e=v(o,n);e.indexOf(t)<0&&e.push(t)}}function w(t){void 0===t&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}w.groups={},w.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let n=0;n=0&&(n[o]=!0);return n}(s.t,o),n);y(r,t,o)}else n&&y(r,n,o);s.t=r}return i.j[t]=s,s}};const x=(t,e,n,o,i)=>t.ta(e,n,o,i),k=(t,e,n,o,i)=>t.tr(e,n,o,i),C=(t,e,n,o,i)=>t.ts(e,n,o,i),M=(t,e,n,o,i)=>t.tt(e,n,o,i),S="WORD",A="UWORD",O="LOCALHOST",T="TLD",N="UTLD",E="SCHEME",I="SLASH_SCHEME",D="NUM",P="WS",H="NL",L="OPENBRACE",_="OPENBRACKET",R="OPENANGLEBRACKET",z="OPENPAREN",$="CLOSEBRACE",B="CLOSEBRACKET",F="CLOSEANGLEBRACKET",J="CLOSEPAREN",Z="AMPERSAND",j="APOSTROPHE",q="ASTERISK",Y="AT",V="BACKSLASH",U="BACKTICK",W="CARET",Q="COLON",K="COMMA",G="DOLLAR",X="DOT",tt="EQUALS",et="EXCLAMATION",nt="HYPHEN",ot="PERCENT",it="PIPE",rt="PLUS",st="POUND",at="QUERY",lt="QUOTE",ct="SEMI",dt="SLASH",ut="TILDE",ht="UNDERSCORE",pt="EMOJI",ft="SYM";var mt=Object.freeze({__proto__:null,WORD:S,UWORD:A,LOCALHOST:O,TLD:T,UTLD:N,SCHEME:E,SLASH_SCHEME:I,NUM:D,WS:P,NL:H,OPENBRACE:L,OPENBRACKET:_,OPENANGLEBRACKET:R,OPENPAREN:z,CLOSEBRACE:$,CLOSEBRACKET:B,CLOSEANGLEBRACKET:F,CLOSEPAREN:J,AMPERSAND:Z,APOSTROPHE:j,ASTERISK:q,AT:Y,BACKSLASH:V,BACKTICK:U,CARET:W,COLON:Q,COMMA:K,DOLLAR:G,DOT:X,EQUALS:tt,EXCLAMATION:et,HYPHEN:nt,PERCENT:ot,PIPE:it,PLUS:rt,POUND:st,QUERY:at,QUOTE:lt,SEMI:ct,SLASH:dt,TILDE:ut,UNDERSCORE:ht,EMOJI:pt,SYM:ft});const gt=/[a-z]/,bt=/\p{L}/u,vt=/\p{Emoji}/u,yt=/\d/,wt=/\s/,xt="\n",kt="️",Ct="‍";let Mt=null,St=null;function At(t,e,n,o,i){let r;const s=e.length;for(let n=0;n=0;)i++;if(i>0){e.push(n.join(""));for(let e=parseInt(t.substring(o,o+i),10);e>0;e--)n.pop();o+=i}else n.push(t[o]),o++}return e}const Tt={defaultProtocol:"http",events:null,format:Et,formatHref:Et,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Nt(t,e){void 0===e&&(e=null);let n=a({},Tt);t&&(n=a(n,t instanceof Nt?t.o:t));const o=n.ignoreTags,i=[];for(let t=0;tt,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=null!=e;let i=this.o[t];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Tt[t],"function"==typeof i&&o&&(i=i(e,n))):"function"==typeof i&&o&&(i=i(e,n.t,n)),i):i},getObj(t,e,n){let o=this.o[t];return"function"==typeof o&&null!=e&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},It.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return void 0===t&&(t=Tt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),i=t.get("tagName",n,e),r=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return s.href=o,l&&(s.class=l),c&&(s.target=c),d&&(s.rel=d),u&&a(s,u),{tagName:i,attributes:s,content:r,eventListeners:h}}};const Pt=Dt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ht=Dt("text"),Lt=Dt("nl"),_t=Dt("url",{isLink:!0,toHref(t){return void 0===t&&(t=Tt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==O&&t[1].t===Q}}),Rt=t=>new w(t);function zt(t,e,n){const o=n[0].s,i=n[n.length-1].e;return new t(e.slice(o,i),n)}const $t="undefined"!=typeof console&&console&&console.warn||(()=>{}),Bt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Ft(t,e){if(void 0===e&&(e=!1),Bt.initialized&&$t(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');Bt.customSchemes.push([t,e])}function Jt(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new Nt(n),i=function(t){return Bt.initialized||function(){Bt.scanner=function(t){void 0===t&&(t=[]);const e={};w.groups=e;const n=new w;null==Mt&&(Mt=Ot(r)),null==St&&(St=Ot(s)),M(n,"'",j),M(n,"{",L),M(n,"[",_),M(n,"<",R),M(n,"(",z),M(n,"}",$),M(n,"]",B),M(n,">",F),M(n,")",J),M(n,"&",Z),M(n,"*",q),M(n,"@",Y),M(n,"`",U),M(n,"^",W),M(n,":",Q),M(n,",",K),M(n,"$",G),M(n,".",X),M(n,"=",tt),M(n,"!",et),M(n,"-",nt),M(n,"%",ot),M(n,"|",it),M(n,"+",rt),M(n,"#",st),M(n,"?",at),M(n,'"',lt),M(n,"/",dt),M(n,";",ct),M(n,"~",ut),M(n,"_",ht),M(n,"\\",V);const o=k(n,yt,D,{[l]:!0});k(o,yt,o);const i=k(n,gt,S,{[c]:!0});k(i,gt,i);const h=k(n,bt,A,{[d]:!0});k(h,gt),k(h,bt,h);const v=k(n,wt,P,{[b]:!0});M(n,xt,H,{[b]:!0}),M(v,xt),k(v,wt,v);const x=k(n,vt,pt,{[f]:!0});k(x,vt,x),M(x,kt,x);const Tt=M(x,Ct);k(Tt,vt,x);const Nt=[[gt,i]],Et=[[gt,null],[bt,h]];for(let t=0;tt[0]>e[0]?1:-1));for(let e=0;e=0?i[p]=!0:gt.test(o)?yt.test(o)?i[u]=!0:i[c]=!0:i[l]=!0,C(n,o,o,i)}return C(n,"localhost",O,{ascii:!0}),n.jd=new w(ft),{start:n,tokens:a({groups:e},mt)}}(Bt.customSchemes);for(let t=0;t=0&&h++,i++,d++;if(h<0)i-=d,i0&&(r.push(zt(Ht,e,s)),s=[]),i-=h,d-=h;const t=u.t,o=n.slice(i-d,i);r.push(zt(t,e,o))}}return s.length>0&&r.push(zt(Ht,e,s)),r}(Bt.parser.start,t,function(t,e){const n=function(t){const e=[],n=t.length;let o=0;for(;o56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}(e.replace(/[A-Z]/g,(t=>t.toLowerCase()))),o=n.length,i=[];let r=0,s=0;for(;s=0&&(u+=n[s].length,h++),c+=n[s].length,r+=n[s].length,s++;r-=u,s-=h,c-=u,i.push({t:d.t,v:e.slice(r-c,r),s:r-c,e:r})}return i}(Bt.scanner.start,t))}(t),h=[];for(let t=0;t{"string"!=typeof t?Ft(t.scheme,t.optionalSlashes):Ft(t)}))},onDestroy(){w.groups={},Bt.scanner=null,Bt.parser=null,Bt.tokenQueue=[],Bt.pluginQueue=[],Bt.customSchemes=[],Bt.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push((e={type:this.type,validate:this.options.validate},new Zt.Sy({key:new Zt.H$("autolink"),appendTransaction:(t,n,o)=>{const r=t.some((t=>t.docChanged))&&!n.doc.eq(o.doc),s=t.some((t=>t.getMeta("preventAutolink")));if(!r||s)return;const{tr:a}=o,l=(0,i.combineTransactionSteps)(n.doc,[...t]);return(0,i.getChangedRanges)(l).forEach((({newRange:t})=>{const n=(0,i.findChildrenInRange)(o.doc,t,(t=>t.isTextblock));let r,s;if(n.length>1?(r=n[0],s=o.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ")):n.length&&o.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(r=n[0],s=o.doc.textBetween(r.pos,t.to,void 0," ")),r&&s){const t=s.split(" ").filter((t=>""!==t));if(t.length<=0)return!1;const n=t[t.length-1],l=r.pos+s.lastIndexOf(n);if(!n)return!1;Jt(n).filter((t=>t.isLink)).map((t=>({...t,from:l+t.start+1,to:l+t.end+1}))).filter((t=>!o.doc.rangeHasMark(t.from,t.to,o.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{(0,i.getMarksBetween)(t.from,t.to,o.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),a.steps.length?a:void 0}}))),this.options.openOnClick&&t.push(function(t){return new Zt.Sy({key:new Zt.H$("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,s;if(0!==o.button)return!1;const a=(0,i.getAttributes)(e.state,t.type.name),l=o.target,c=null!==(r=null==l?void 0:l.href)&&void 0!==r?r:a.href,d=null!==(s=null==l?void 0:l.target)&&void 0!==s?s:a.target;return!(!l||!c||(e.editable&&window.open(c,d),0))}}})}({type:this.type})),t.push(function(t){return new Zt.Sy({key:new Zt.H$("handlePasteLink"),props:{handlePaste:(e,n,o)=>{var i,r;const{state:s}=e,{selection:a}=s;if(s.doc.resolve(a.from).parent.type.spec.code)return!1;let l="";o.content.forEach((t=>{l+=t.textContent}));let c=!1;if(o.content.descendants((e=>{e.marks.some((e=>e.type.name===t.type.name))&&(c=!0)})),c)return;const d=Jt(l).find((t=>t.isLink&&t.value===l));if(!a.empty&&t.linkOnPaste){const e=(null==d?void 0:d.href)||null;if(e)return t.editor.commands.setMark(t.type,{href:e}),!0}const u="text"===(null===(i=o.content.firstChild)||void 0===i?void 0:i.type.name),h=null===(r=o.content.firstChild)||void 0===r?void 0:r.marks.some((e=>e.type.name===t.type.name));if(u&&h||!t.linkOnPaste)return!1;if(d&&a.empty)return t.editor.commands.insertContent(`${d.href}`),!0;const{tr:p}=s;let f=!1;a.empty||(f=!0,p.delete(a.from,a.to));let m=a.from,g=[];o.content.forEach((e=>{g=Jt(e.textContent),p.insert(m-1,e),g.length>0&&(f=!1,g.forEach((e=>{const n=m+e.start,o=m+e.end;p.doc.rangeHasMark(n,o,t.type)||p.addMark(n,o,t.type.create({href:e.href}))}))),m+=e.nodeSize}));const b=g.length>0;return!(!p.docChanged||f||!b||(t.editor.view.dispatch(p),0))}}})}({editor:this.editor,type:this.type,linkOnPaste:this.options.linkOnPaste})),t;var e}}),qt=jt.extend({addAttributes(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),(0,o.x6)(["download"]))},addCommands(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{toggleLink:t=>({chain:e,state:n})=>{{const{selection:o,doc:r}=n,s=r.cut(o.to,o.to+1),a=" "===(0,i.getHTMLFromFragment)(s.content,n.schema).replace(/<\/?[^>]+(>|$)/g,""),l=e().toggleMark(this.name,t,{extendEmptyMarkRange:!0});return(a?l.setTextSelection(o.to+1):l.setTextSelection(o.to).insertContent(' ')).run()}}})}}).configure({openOnClick:!1})},12585:(t,e,n)=>{n.r(e),n.d(e,{TuiAudio:()=>s,TuiSource:()=>a,TuiVideo:()=>l});var o=n(18892),i=n(88320),r=n(11046);const s=r.Node.create({name:"audio",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"audio"}],renderHTML:({node:t,HTMLAttributes:e})=>["audio",e,...(0,i.YX)(t)]}),a=r.Node.create({name:"source",addAttributes:()=>(0,i.x6)(["src","type","width","height","media","sizes","srcset"]),parseHTML:()=>[{tag:"source"}],renderHTML:({HTMLAttributes:t})=>["source",(0,r.mergeAttributes)(t)]}),l=r.Node.create({name:"video",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"video"}],renderHTML:({node:t,HTMLAttributes:e})=>["video",e,...(0,i.YX)(t)]})},66826:(t,e,n)=>{n.r(e),n.d(e,{StarterKit:()=>Ct});var o=n(11046);const i=/^\s*>\s$/,r=o.Node.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,o.wrappingInputRule)({find:i,type:this.type})]}}),s=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,a=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,l=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,c=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,d=o.Mark.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],renderHTML({HTMLAttributes:t}){return["strong",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,o.markInputRule)({find:s,type:this.type}),(0,o.markInputRule)({find:l,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:a,type:this.type}),(0,o.markPasteRule)({find:c,type:this.type})]}}),u=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),h=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),p=/^\s*([-+*])\s$/,f=o.Node.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(u.name,this.editor.getAttributes(h.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:p,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:p,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(h.name),editor:this.editor})),[t]}}),m=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,g=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,b=o.Mark.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,o.markInputRule)({find:m,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:g,type:this.type})]}});var v=n(62463);const y=/^```([a-z]+)?[\s\n]$/,w=/^~~~([a-z]+)?[\s\n]$/,x=o.Node.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;return[...(null===(e=t.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter((t=>t.startsWith(n))).map((t=>t.replace(n,"")))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",(0,o.mergeAttributes)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!(!t||e.parent.type.name!==this.name)&&!(!n&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;const r=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith("\n\n");return!(!r||!s)&&t.chain().command((({tr:t})=>(t.delete(o.pos-2,o.pos),!0))).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;if(i.parentOffset!==i.parent.nodeSize-2)return!1;const s=i.after();return void 0!==s&&!o.nodeAt(s)&&t.commands.exitCode()}}},addInputRules(){return[(0,o.textblockTypeInputRule)({find:y,type:this.type,getAttributes:t=>({language:t[1]})}),(0,o.textblockTypeInputRule)({find:w,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new v.Sy({key:new v.H$("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),i=o?JSON.parse(o):void 0,r=null==i?void 0:i.mode;if(!n||!r)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(v.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),k=o.Node.create({name:"doc",topNode:!0,content:"block+"});var C=n(38480);function M(t={}){return new v.Sy({view:e=>new S(e,t)})}class S{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=e.width)&&void 0!==n?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map((e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}destroy(){this.handlers.forEach((({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e)))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent;if(n){let n=e.nodeBefore,o=e.nodeAfter;if(n||o){let e=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(e){let i=e.getBoundingClientRect(),r=n?i.bottom:i.top;n&&o&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:i.left,right:i.right,top:r-this.width/2,bottom:r+this.width/2}}}}if(!t){let e=this.editorView.coordsAtPos(this.cursorPos);t={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o,i,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!r||r==document.body&&"static"==getComputedStyle(r).position)o=-pageXOffset,i=-pageYOffset;else{let t=r.getBoundingClientRect();o=t.left-r.scrollLeft,i=t.top-r.scrollTop}this.element.style.left=t.left-o+"px",this.element.style.top=t.top-i+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),o=n&&n.type.spec.disableDropCursor,i="function"==typeof o?o(this.editorView,e,t):o;if(e&&!i){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,C.nj)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const A=o.Extension.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[M(this.options)]}});var O=n(31690),T=n(27439),N=n(43594);class E extends v.Y1{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return E.valid(n)?new E(n):v.Y1.near(n)}content(){return T.p2.empty}eq(t){return t instanceof E&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new E(t.resolve(e.pos))}getBookmark(){return new I(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(0!=n)for(let t=o.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n!=o.childCount)for(let t=o.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let o=e.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,e,n=!1){t:for(;;){if(!n&&E.valid(t))return t;let o=t.pos,i=null;for(let n=t.depth;;n--){let r=t.node(n);if(e>0?t.indexAfter(n)0){i=r.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}for(;;){let r=e>0?i.firstChild:i.lastChild;if(!r){if(i.isAtom&&!i.isText&&!v.qv.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*e),n=!1;continue t}break}i=r,o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}return null}}}E.prototype.visible=!1,E.findFrom=E.findGapCursorFrom,v.Y1.jsonID("gapcursor",E);class I{constructor(t){this.pos=t}map(t){return new I(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return E.valid(e)?new E(e):v.Y1.near(e)}}const D=(0,O.$)({ArrowLeft:P("horiz",-1),ArrowRight:P("horiz",1),ArrowUp:P("vert",-1),ArrowDown:P("vert",1)});function P(t,e){const n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,o,i){let r=t.selection,s=e>0?r.$to:r.$from,a=r.empty;if(r instanceof v.Bs){if(!i.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=t.doc.resolve(e>0?s.after():s.before())}let l=E.findGapCursorFrom(s,e,a);return!!l&&(o&&o(t.tr.setSelection(new E(l))),!0)}}function H(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!E.valid(o))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&v.qv.isSelectable(t.state.doc.nodeAt(i.inside))||(t.dispatch(t.state.tr.setSelection(new E(o))),0))}function L(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof E))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let i=T.HY.empty;for(let t=o.length-1;t>=0;t--)i=T.HY.from(o[t].createAndFill(null,i));let r=t.state.tr.replace(n.pos,n.pos,new T.p2(i,0,0));return r.setSelection(v.Bs.near(r.doc.resolve(n.pos+1))),t.dispatch(r),!1}function _(t){if(!(t.selection instanceof E))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",N.EH.create(t.doc,[N.p.widget(t.selection.head,e,{key:"gapcursor"})])}const R=o.Extension.create({name:"gapCursor",addProseMirrorPlugins:()=>[new v.Sy({props:{decorations:_,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&E.valid(n)?new E(n):null,handleClick:H,handleKeyDown:D,handleDOMEvents:{beforeinput:L}}})],extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!==(e=(0,o.callOrReturn)((0,o.getExtensionField)(t,"allowGapCursor",n)))&&void 0!==e?e:null}}}),z=o.Node.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:t,storedMarks:i}=n;if(t.$from.parent.type.spec.isolating)return!1;const{keepMarks:r}=this.options,{splittableMarks:s}=o.extensionManager,a=i||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command((({tr:t,dispatch:e})=>{if(e&&a&&r){const e=a.filter((t=>s.includes(t.type.name)));t.ensureMarks(e)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var $=n(54424),B=200,F=function(){};F.prototype.append=function(t){return t.length?(t=F.from(t),!this.length&&t||t.length=e?F.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},F.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},F.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},F.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var o=[];return this.forEach((function(e,n){return o.push(t(e,n))}),e,n),o},F.from=function(t){return t instanceof F?t:t&&t.length?new J(t):F.empty};var J=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,o){for(var i=e;i=n;i--)if(!1===t(this.values[i],o+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=B)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=B)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(F);F.empty=new J([]);var Z=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return ti&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,n)-i,o+i))&&void 0},e.prototype.forEachInvertedInner=function(t,e,n,o){var i=this.left.length;return!(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(n,i)-i,o+i))&&!(n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(F);const j=F;class q{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(n=this.remapping(i,this.items.length),o=n.maps.length);let r,s,a=t.tr,l=[],c=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(i,e+1),o=n.maps.length),o--,void c.push(t);if(n){c.push(new Y(t.map));let e,i=t.step.map(n.slice(o));i&&a.maybeStep(i).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],l.push(new Y(e,void 0,void 0,l.length+c.length))),o--,e&&n.appendMap(e,o)}else a.maybeStep(t.step);return t.selection?(r=n?t.selection.map(n.slice(o)):t.selection,s=new q(this.items.slice(0,i).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(t,e,n,o){let i=[],r=this.eventCount,s=this.items,a=!o&&s.length?s.get(s.length-1):null;for(let n=0;nU&&(s=function(t,e){let n;return t.forEach(((t,o)=>{if(t.selection&&0==e--)return n=o,!1})),t.slice(n)}(s,l),r-=l),new q(s.append(i),r)}remapping(t,e){let n=new C.vs;return this.items.forEach(((e,o)=>{let i=null!=e.mirrorOffset&&o-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,i)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new q(this.items.append(t.map((t=>new Y(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-e),i=t.mapping,r=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),o);let a=e;this.items.forEach((e=>{let o=i.getMirror(--a);if(null==o)return;r=Math.min(r,o);let l=i.maps[o];if(e.step){let r=t.steps[o].invert(t.docs[o]),c=e.selection&&e.selection.map(i.slice(a+1,o));c&&s++,n.push(new Y(l,r,c))}else n.push(new Y(l))}),o);let l=[];for(let t=e;t500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,o=[],i=0;return this.items.forEach(((r,s)=>{if(s>=t)o.push(r),r.selection&&i++;else if(r.step){let t=r.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=r.selection&&r.selection.map(e.slice(n));a&&i++;let l,c=new Y(s.invert(),t,a),d=o.length-1;(l=o.length&&o[d].merge(c))?o[d]=l:o.push(c)}}else r.map&&n--}),this.items.length,0),new q(j.from(o.reverse()),i)}}q.empty=new q(j.empty,0);class Y{constructor(t,e,n,o){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Y(e.getMap().invert(),e,this.selection)}}}class V{constructor(t,e,n,o,i){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=o,this.prevComposition=i}}const U=20;function W(t){let e=[];return t.forEach(((t,n,o,i)=>e.push(o,i))),e}function Q(t,e){if(!t)return null;let n=[];for(let o=0;onew V(q.empty,q.empty,null,0,-1),apply:(e,n,o)=>function(t,e,n,o){let i,r=n.getMeta(et);if(r)return r.historyState;n.getMeta(nt)&&(t=new V(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(et))return s.getMeta(et).redo?new V(t.done.addTransform(n,void 0,o,tt(e)),t.undone,W(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new V(t.done,t.undone.addTransform(n,void 0,o,tt(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new V(t.done.rebased(n,i),t.undone.rebased(n,i),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new V(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let i=n.getMeta("composition"),r=0==t.prevTime||!s&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-o.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,o)=>{for(let i=0;i=e[i]&&(n=!0)})),n}(n,t.prevRanges)),a=s?Q(t.prevRanges,n.mapping):W(n.mapping.maps[n.steps.length-1]);return new V(t.done.addTransform(n,r?e.selection.getBookmark():void 0,o,tt(e)),q.empty,a,n.time,null==i?t.prevComposition:i)}}(n,o,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,o="historyUndo"==n?it:"historyRedo"==n?rt:null;return!!o&&(e.preventDefault(),o(t.state,t.dispatch))}}}})}const it=(t,e)=>{let n=et.getState(t);return!(!n||0==n.done.eventCount||(e&&K(n,t,e,!1),0))},rt=(t,e)=>{let n=et.getState(t);return!(!n||0==n.undone.eventCount||(e&&K(n,t,e,!0),0))},st=o.Extension.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>it(t,e),redo:()=>({state:t,dispatch:e})=>rt(t,e)}),addProseMirrorPlugins(){return[ot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),at=o.Node.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,o=t();return 0===n.parentOffset?o.insertContentAt(n.pos-2,{type:this.name}):o.insertContent({type:this.name}),o.command((({tr:t,dispatch:e})=>{var n;if(e){const{$to:e}=t.selection,o=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(v.Bs.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(v.qv.create(t.doc,e.pos)):t.setSelection(v.Bs.create(t.doc,e.pos));else{const i=null===(n=e.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(t.insert(o,i),t.setSelection(v.Bs.create(t.doc,o+1)))}t.scrollIntoView()}return!0})).run()}}},addInputRules(){return[(0,o.nodeInputRule)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,blockReplace:!0,addExtraNewline:!0})]}}),lt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,ct=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,dt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,ut=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,ht=o.Mark.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:t}){return["em",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,o.markInputRule)({find:lt,type:this.type}),(0,o.markInputRule)({find:dt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:ct,type:this.type}),(0,o.markPasteRule)({find:ut,type:this.type})]}}),pt=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ft=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mt=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),gt=/^(\d+)\.\s$/,bt=o.Node.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return 1===e?["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,n),0]:["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ft.name,this.editor.getAttributes(mt.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:gt,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:gt,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(mt.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),vt=o.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),yt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,wt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,xt=o.Mark.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return(0,o.isMacOS)()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[(0,o.markInputRule)({find:yt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:wt,type:this.type})]}}),kt=o.Node.create({name:"text",group:"inline"}),Ct=o.Extension.create({name:"starterKit",addExtensions(){const t=[],e=this.options;return!1!==(null==e?void 0:e.blockquote)&&t.push(r.configure(null==e?void 0:e.blockquote)),!1!==(null==e?void 0:e.bold)&&t.push(d.configure(null==e?void 0:e.bold)),!1!==(null==e?void 0:e.bulletList)&&t.push(f.configure(null==e?void 0:e.bulletList)),!1!==(null==e?void 0:e.code)&&t.push(b.configure(null==e?void 0:e.code)),!1!==(null==e?void 0:e.codeBlock)&&t.push(x.configure(null==e?void 0:e.codeBlock)),!1!==(null==e?void 0:e.document)&&t.push(k.configure(null==e?void 0:e.document)),!1!==(null==e?void 0:e.dropcursor)&&t.push(A.configure(null==e?void 0:e.dropcursor)),!1!==(null==e?void 0:e.gapcursor)&&t.push(R.configure(null==e?void 0:e.gapcursor)),!1!==(null==e?void 0:e.hardBreak)&&t.push(z.configure(null==e?void 0:e.hardBreak)),!1!==(null==e?void 0:e.heading)&&t.push($.Heading.configure(null==e?void 0:e.heading)),!1!==(null==e?void 0:e.history)&&t.push(st.configure(Object.assign({depth:10,newGroupDelay:100},null==e?void 0:e.history))),!1!==(null==e?void 0:e.horizontalRule)&&t.push(at.configure(null==e?void 0:e.horizontalRule)),!1!==(null==e?void 0:e.italic)&&t.push(ht.configure(null==e?void 0:e.italic)),!1!==(null==e?void 0:e.listItem)&&t.push(pt.configure(null==e?void 0:e.listItem)),!1!==(null==e?void 0:e.orderedList)&&t.push(bt.configure(null==e?void 0:e.orderedList)),!1!==(null==e?void 0:e.paragraph)&&t.push(vt.configure(null==e?void 0:e.paragraph)),!1!==(null==e?void 0:e.strike)&&t.push(xt.configure(null==e?void 0:e.strike)),!1!==(null==e?void 0:e.text)&&t.push(kt.configure(null==e?void 0:e.text)),t}})},58676:(t,e,n)=>{n.r(e),n.d(e,{TableCellBackground:()=>o});const o=n(11046).Extension.create({addGlobalAttributes:()=>[{types:["tableCell","tableHeader"],attributes:{background:{default:null,renderHTML:({background:t})=>t?{style:`background: ${t}`}:null,parseHTML:({style:t})=>t.background,keepOnSplit:!1}}}],addCommands:()=>({setCellBackground:t=>({chain:e})=>e().updateAttributes("tableCell",{background:t}).updateAttributes("tableHeader",{background:t}).run(),unsetCellBackground:()=>({chain:t})=>t().updateAttributes("tableCell",{background:null}).updateAttributes("tableHeader",{background:null}).run()})})},47745:(t,e,n)=>{n.r(e),n.d(e,{TuiTable:()=>mt});var o,i,r=n(11046),s=n(62463),a=n(27439),l=n(43594),c=n(31690),d=n(38480);if("undefined"!=typeof WeakMap){let t=new WeakMap;o=e=>t.get(e),i=(e,n)=>(t.set(e,n),n)}else{const t=[],e=10;let n=0;o=e=>{for(let n=0;n(n==e&&(n=0),t[n++]=o,t[n++]=i)}var u=class{constructor(t,e,n,o){this.width=t,this.height=e,this.map=n,this.problems=o}findCell(t){for(let e=0;eo&&(r+=i.attrs.colspan)}}for(let t=0;t1&&(n=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(t),n=t.childCount,o=[];let i=0,r=null;const s=[];for(let t=0,i=e*n;t=n){(r||(r=[])).push({type:"overlong_rowspan",pos:l,n:h-t});break}const c=i+t*e;for(let t=0;t0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function g(t){const e=t.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function b(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const n=m(e.$head)||function(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n-e.nodeSize)}}(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function v(t){return"row"==t.parent.type.spec.tableRole&&!!t.nodeAfter}function y(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function w(t,e,n){const o=t.node(-1),i=u.get(o),r=t.start(-1),s=i.nextCell(t.pos-r,e,n);return null==s?null:t.node(0).resolve(r+s)}function x(t,e,n=1){const o={...t,colspan:t.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(e,n),o.colwidth.some((t=>t>0))||(o.colwidth=null)),o}function k(t,e,n=1){const o={...t,colspan:t.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let t=0;tt!=e.pos-i));l.unshift(e.pos-i);const c=l.map((t=>{const e=n.nodeAt(t);if(!e)throw RangeError(`No cell with offset ${t} found`);const o=i+t+1;return new s.xm(a.resolve(o),a.resolve(o+e.content.size))}));super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){const n=t.resolve(e.map(this.$anchorCell.pos)),o=t.resolve(e.map(this.$headCell.pos));if(v(n)&&v(o)&&y(n,o)){const t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?C.rowSelection(n,o):t&&this.isColSelection()?C.colSelection(n,o):new C(n,o)}return s.Bs.between(n,o)}content(){const t=this.$anchorCell.node(-1),e=u.get(t),n=this.$anchorCell.start(-1),o=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},r=[];for(let n=o.top;n0||d>0){let t=l.attrs;if(c>0&&(t=x(t,0,c)),d>0&&(t=x(t,t.colspan-d,d)),a.lefto.bottom){const t={...l.attrs,rowspan:Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)};l=a.top0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,o=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,o)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){const n=t.node(-1),o=u.get(n),i=t.start(-1),r=o.findCell(t.pos-i),s=o.findCell(e.pos-i),a=t.node(0);return r.top<=s.top?(r.top>0&&(t=a.resolve(i+o.map[r.left])),s.bottom0&&(e=a.resolve(i+o.map[s.left])),r.bottom0)return!1;const r=o+this.$anchorCell.nodeAfter.attrs.colspan,s=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,s)==e.width}eq(t){return t instanceof C&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){const n=t.node(-1),o=u.get(n),i=t.start(-1),r=o.findCell(t.pos-i),s=o.findCell(e.pos-i),a=t.node(0);return r.left<=s.left?(r.left>0&&(t=a.resolve(i+o.map[r.top*o.width])),s.right0&&(e=a.resolve(i+o.map[s.top*o.width])),r.right{e.push(l.p.node(n,n+t.nodeSize,{class:"selectedCell"}))})),l.EH.create(t.doc,e)}var A=new s.H$("fix-tables");function O(t,e,n,o){const i=t.childCount,r=e.childCount;t:for(let s=0,a=0;s{"table"==e.type.spec.tableRole&&(n=function(t,e,n,o){const i=u.get(e);if(!i.problems)return o;o||(o=t.tr);const r=[];for(let t=0;t0){let e="cell";n.firstChild&&(e=n.firstChild.type.spec.tableRole);const r=[];for(let n=0;ne.width)for(let r=0,a=0;re.height){const u=[];for(let t=0,o=(e.height-1)*e.width;t=e.width)&&n.nodeAt(e.map[o+t]).type==l.header_cell;u.push(i?d||(d=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,a.HY.from(u)),p=[];for(let t=e.height;t{if(!i)return!1;const r=n.selection;if(r instanceof C)return H(n,o,s.Y1.near(r.$headCell,e));if("horiz"!=t&&!r.empty)return!1;const a=F(i,t,e);if(null==a)return!1;if("horiz"==t)return H(n,o,s.Y1.near(n.doc.resolve(r.head+e),e));{const i=n.doc.resolve(a),r=w(i,t,e);let l;return l=r?s.Y1.near(r,1):e<0?s.Y1.near(n.doc.resolve(i.before(-1)),-1):s.Y1.near(n.doc.resolve(i.after(-1)),1),H(n,o,l)}}}function _(t,e){return(n,o,i)=>{if(!i)return!1;const r=n.selection;let s;if(r instanceof C)s=r;else{const o=F(i,t,e);if(null==o)return!1;s=new C(n.doc.resolve(o))}const a=w(s.$headCell,t,e);return!!a&&H(n,o,new C(s.$anchorCell,a))}}function R(t,e){const n=t.selection;if(!(n instanceof C))return!1;if(e){const o=t.tr,i=p(t.schema).cell.createAndFill().content;n.forEachCell(((t,e)=>{t.content.eq(i)||o.replace(o.mapping.map(e+1),o.mapping.map(e+t.nodeSize-1),new a.p2(i,0,0))})),o.docChanged&&e(o)}return!0}function z(t,e){const n=m(t.state.doc.resolve(e));return!!n&&(t.dispatch(t.state.tr.setSelection(new C(n))),!0)}function $(t,e,n){if(!g(t.state))return!1;let o=function(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:o}=t;for(;1==e.childCount&&(n>0&&o>0||"table"==e.child(0).type.spec.tableRole);)n--,o--,e=e.child(0).content;const i=e.child(0),r=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==r)for(let t=0;t=0;e--){const{rowspan:i,colspan:r}=o.child(e).attrs;for(let e=t;e=e.length&&e.push(a.HY.empty),n[i]o&&(a=a.type.createChecked(x(a.attrs,a.attrs.colspan,n+a.attrs.colspan-o),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;ni&&(e=e.type.create({...e.attrs,rowspan:Math.max(1,i-e.attrs.rowspan)},e.content)),s.push(e)}t.push(a.HY.from(s))}n=t,e=i}return{width:t,height:e,rows:n}}(o,s.right-s.left,s.bottom-s.top),D(t.state,t.dispatch,r,s,o),!0}if(o){const e=b(t.state),n=e.start(-1);return D(t.state,t.dispatch,n,u.get(e.node(-1)).findCell(e.pos-n),o),!0}return!1}function B(t,e){var n;if(e.ctrlKey||e.metaKey)return;const o=J(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof C)r(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&o&&null!=(i=m(t.state.selection.$anchor))&&(null==(n=Z(t,e))?void 0:n.pos)!=i.pos)r(i,e),e.preventDefault();else if(!o)return;function r(e,n){let o=Z(t,n);const i=null==f.getState(t.state);if(!o||!y(e,o)){if(!i)return;o=e}const r=new C(e,o);if(i||!t.state.selection.eq(r)){const n=t.state.tr.setSelection(r);i&&n.setMeta(f,e.pos),t.dispatch(n)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),null!=f.getState(t.state)&&t.dispatch(t.state.tr.setMeta(f,-1))}function a(n){const i=n,a=f.getState(t.state);let l;if(null!=a)l=t.state.doc.resolve(a);else if(J(t,i.target)!=o&&(l=Z(t,e),!l))return s();l&&r(l,i)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function F(t,e,n){if(!(t.state.selection instanceof s.Bs))return null;const{$head:o}=t.state.selection;for(let i=o.depth-1;i>=0;i--){const r=o.node(i);if((n<0?o.index(i):o.indexAfter(i))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const r=o.before(i),s="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?r:null}}return null}function J(t,e){for(;e&&e!=t.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function Z(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?m(t.state.doc.resolve(n.pos)):null}var j=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),q(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type==this.node.type&&(this.node=t,q(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return"attributes"==t.type&&(t.target==this.table||this.colgroup.contains(t.target))}};function q(t,e,n,o,i,r){var s;let a=0,l=!0,c=e.firstChild;const d=t.firstChild;if(d){for(let t=0,n=0;t(i.spec.props.nodeViews[p(o.schema).table.name]=(t,o)=>new n(t,e,o),new U(-1,!1)),apply:(t,e)=>e.apply(t)},props:{attributes:t=>{const e=Y.getState(t);return e&&e.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(e,n)=>{!function(t,e,n,o,i){const r=Y.getState(t.state);if(r&&!r.dragging){const o=function(t){for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}(e.target);let s=-1;if(o){const{left:i,right:r}=o.getBoundingClientRect();e.clientX-i<=n?s=W(t,e,"left",n):r-e.clientX<=n&&(s=W(t,e,"right",n))}if(s!=r.activeHandle){if(!i&&-1!==s){const e=t.state.doc.resolve(s),n=e.node(-1),o=u.get(n),i=e.start(-1);if(o.colCount(e.pos-i)+e.nodeAfter.attrs.colspan-1==o.width-1)return}K(t,s)}}}(e,n,t,0,o)},mouseleave:t=>{!function(t){const e=Y.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&K(t,-1)}(t)},mousedown:(t,n)=>{!function(t,e,n){const o=Y.getState(t.state);if(!o||-1==o.activeHandle||o.dragging)return!1;const i=t.state.doc.nodeAt(o.activeHandle),r=function(t,e,{colspan:n,colwidth:o}){const i=o&&o[o.length-1];if(i)return i;const r=t.domAtPos(e);let s=r.node.childNodes[r.offset].offsetWidth,a=n;if(o)for(let t=0;t{const e=Y.getState(t);if(e&&e.activeHandle>-1)return function(t,e){const n=[],o=t.doc.resolve(e),i=o.node(-1);if(!i)return l.EH.empty;const r=u.get(i),s=o.start(-1),a=r.colCount(o.pos-s)+o.nodeAfter.attrs.colspan;for(let t=0;t-1&&t.docChanged){let n=t.mapping.map(e.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new U(n,e.dragging)}return e}};function W(t,e,n,o){const i="right"==n?-o:o,r=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!r)return-1;const{pos:s}=r,a=m(t.state.doc.resolve(s));if(!a)return-1;if("right"==n)return a.pos;const l=u.get(a.node(-1)),c=a.start(-1),d=l.map.indexOf(a.pos-c);return d%l.width==0?-1:c+l.map[d-1]}function Q(t,e,n){const o=e.clientX-t.startX;return Math.max(n,t.startWidth+o)}function K(t,e){t.dispatch(t.state.tr.setMeta(Y,{setHandle:e}))}function G(t){const e=t.selection,n=b(t),o=n.node(-1),i=n.start(-1),r=u.get(o);return{...e instanceof C?r.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):r.findCell(n.pos-i),tableStart:i,map:r,table:o}}function X(t,{map:e,tableStart:n,table:o},i){let r=i>0?-1:0;(function(t,e,n){const o=p(e.type.schema).header_cell;for(let i=0;i0&&i0&&e.map[a-1]==l||i0?-1:0;(function(t,e,n){var o;const i=p(e.type.schema).header_cell;for(let r=0;r0&&i0&&l==e.map[s-e.width]){const e=n.nodeAt(l).attrs;t.setNodeMarkup(t.mapping.slice(a).map(l+o),null,{...e,rowspan:e.rowspan-1}),r+=e.colspan-1}else if(i0&&n[r]==n[r-1]||o.right0&&n[i]==n[i-t]||o.bottomn[t.type.spec.tableRole],(t,e)=>{var n;const i=t.selection;let r,s;if(i instanceof C){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(r=function(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if("cell"===n||"header_cell"===n)return t.node(e)}return null}(i.$from),!r)return!1;s=null==(n=m(i.$from))?void 0:n.pos}if(null==r||null==s)return!1;if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let n=r.attrs;const a=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const c=G(t),d=t.tr;for(let t=0;ti.table.nodeAt(t)));for(let t=0;t{const e=t+i.tableStart,n=r.doc.nodeAt(e);n&&r.setNodeMarkup(e,d,n.attrs)})),n(r)}return!0}}at("row",{useDeprecatedLogic:!0}),at("column",{useDeprecatedLogic:!0});var lt=at("cell",{useDeprecatedLogic:!0});function ct(t){return function(e,n){if(!g(e))return!1;const o=function(t,e){if(e<0){const e=t.nodeBefore;if(e)return t.pos-e.nodeSize;for(let e=t.index(-1)-1,n=t.before();e>=0;e--){const o=t.node(-1).child(e),i=o.lastChild;if(i)return n-1-i.nodeSize;n-=o.nodeSize}}else{if(t.index()null,apply(t,e){const n=t.getMeta(f);if(null!=n)return-1==n?null:n;if(null==e||!t.docChanged)return e;const{deleted:o,pos:i}=t.mapping.mapResult(e);return o?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:B},createSelectionBetween:t=>null!=f.getState(t.state)?t.state.selection:null,handleTripleClick:z,handleKeyDown:P,handlePaste:$},appendTransaction:(e,n,o)=>function(t,e,n){const o=(e||t).selection,i=(e||t).doc;let r,a;if(o instanceof s.qv&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=C.create(i,o.from);else if("row"==a){const t=i.resolve(o.from+1);r=C.rowSelection(t,t)}else if(!n){const t=u.get(o.node),e=o.from+1,n=e+t.map[t.width*t.height-1];r=C.create(i,e+1,n)}}else o instanceof s.Bs&&function({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(t+1)>e.start(t));t--,o--);return n==o&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=s.Bs.create(i,o.from):o instanceof s.Bs&&function({$from:t,$to:e}){let n,o;for(let e=t.depth;e>0;e--){const o=t.node(e);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){n=o;break}}for(let t=e.depth;t>0;t--){const n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){o=n;break}}return n!==o&&0===e.parentOffset}(o)&&(r=s.Bs.create(i,o.$from.start(),o.$from.end()));return r&&(e||(e=t.tr)).setSelection(r),e}(o,T(o,n),t)})}function ut(t,e,n,o,i,r){let s=0,a=!0,l=e.firstChild;const c=t.firstChild;for(let t=0,n=0;t{const{selection:e}=t.state;if(!(e instanceof C))return!1;let n=0;const o=(0,r.findParentNodeClosestToPos)(e.ranges[0].$from,(t=>"table"===t.type.name));return null==o||o.node.descendants((t=>{if("table"===t.type.name)return!1;["tableCell","tableHeader"].includes(t.type.name)&&(n+=1)})),n===e.ranges.length&&(t.commands.deleteTable(),!0)},mt=r.Node.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:ht,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:t}){return["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,t),["tbody",0]]},addCommands:()=>({insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:o,dispatch:i,editor:r})=>{const a=function(t,e,n,o,i){const r=function(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach((n=>{const o=t.nodes[n];o.spec.tableRole&&(e[o.spec.tableRole]=o)})),t.cached.tableNodeTypes=e,e}(t),s=[],a=[];for(let t=0;t({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.left))}return!0}(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.right))}return!0}(t,e),deleteColumn:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let t=n.right-1;tt(o,n,t),t!=n.left;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(t)}e(o)}return!0}(t,e),addRowBefore:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.top))}return!0}(t,e),addRowAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.bottom))}return!0}(t,e),deleteRow:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let t=n.bottom-1;nt(o,n,t),t!=n.top;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(n.table)}e(o)}return!0}(t,e),deleteTable:()=>({state:t,dispatch:e})=>function(t,e){const n=t.selection.$anchor;for(let o=n.depth;o>0;o--)if("table"==n.node(o).type.spec.tableRole)return e&&e(t.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}(t,e),mergeCells:()=>({state:t,dispatch:e})=>it(t,e),splitCell:()=>({state:t,dispatch:e})=>rt(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>at("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>at("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>lt(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>!!it(t,e)||rt(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:o})=>function(t,e){return function(n,o){if(!g(n))return!1;const i=b(n);if(i.nodeAfter.attrs[t]===e)return!1;if(o){const r=n.tr;n.selection instanceof C?n.selection.forEachCell(((n,o)=>{n.attrs[t]!==e&&r.setNodeMarkup(o,null,{...n.attrs,[t]:e})})):r.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),o(r)}return!0}}(t,e)(n,o),goToNextCell:()=>({state:t,dispatch:e})=>ct(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>ct(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&T(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const n=C.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ft,"Mod-Backspace":ft,Delete:ft,"Mod-Delete":ft}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[V({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],dt({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:(0,r.callOrReturn)((0,r.getExtensionField)(t,"tableRole",e))}}}).extend({renderHTML({node:t,HTMLAttributes:e}){var n,o;let i=0,s=!0;try{const e=(null===(n=t.content)||void 0===n?void 0:n.content)[0];null===(o=null==e?void 0:e.content)||void 0===o||o.content.forEach((t=>{if(t.attrs.colwidth)t.attrs.colwidth.forEach((t=>{t?i+=t:(s=!1,i+=this.options.cellMinWidth)}));else{s=!1;const e=t.attrs.colspan||1;i+=this.options.cellMinWidth*e}}))}catch(t){s=!1}return e.style=s&&i>0?`width: ${i}px;`:i&&i>0?`min-width: ${i}px`:null,["div",{class:"tui-table-wrapper"},["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,e),["tbody",0]]]}})},87187:(t,e,n)=>{n.d(e,{y:()=>l,d:()=>a});var o=n(12057),i=n(11046),r=n(74788);class s{constructor(t,e,n){const o=e.get(r.z2F),i=e.get(r._Vd).resolveComponentFactory(t);this.componentRef=i.create(e,[]),this.updateProps(n),o.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get el(){return this.componentRef.injector.get(r.SBq)}get dom(){return this.el.nativeElement}updateProps(t){Object.entries(t).forEach((([t,e])=>{this.instance[t]=e}))}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy()}}class a{}class l extends i.NodeView{constructor(t,e,n){super(t,e,n),this.contentDOMElement=null}mount(){const t=this.options.injector,e=t.get(o.K0),n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(t={})=>this.updateAttributes(t),deleteNode:()=>this.deleteNode()};this.renderer=new s(this.component,t,n),this.extension.config.draggable&&(this.renderer.el.nativeElement.ondragstart=t=>{this.onDragStart(t)}),this.contentDOMElement=this.node.isLeaf?null:e.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}}},57080:(t,e,n)=>{n.d(e,{zc:()=>M.zc,dR:()=>M.dR,F1:()=>M.F1,Wf:()=>M.Wf,VE:()=>C.TUI_EDITOR_MAX_IMAGE_WIDTH,kB:()=>C.TUI_EDITOR_MIN_IMAGE_WIDTH,mJ:()=>M.mJ,bK:()=>M.bK,p7:()=>M.p7,H9:()=>o.H9,wl:()=>o.wl,aI:()=>r.a,BN:()=>f.BN,T_:()=>m,GK:()=>h,_2:()=>x._,Sz:()=>y,VM:()=>o.VM,$3:()=>f.$3,sw:()=>w.sw,PD:()=>k,aU:()=>w.Db,Uv:()=>M.Uv,Er:()=>S.Er});var o=n(96472),i=n(8674),r=n(10215),s=n(12057),a=n(221),l=n(91489),c=n(80134),d=n(98952),u=(n(96152),n(74788));let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({}),t})();var p=n(51618),f=n(86114);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[s.ez,p.yB,l.W,c.Jy,i.Fu,a.A,d.dp,f.mJ,h]]}),t})();n(46015),n(31496);var g=n(52697),b=n(79588),v=n(23917);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[s.ez,g.KW,b.cn,v.jh,o.wl,a.A]]}),t})();n(69867);var w=n(18892),x=n(95161);n(13511);const k=[Promise.resolve().then(n.bind(n,66826)).then((({StarterKit:t})=>t)).then((t=>t.configure({heading:{levels:[1,2,3,4,5,6]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),n.e(7991).then(n.bind(n,17991)).then((({default:t})=>t)),n.e(7147).then(n.bind(n,77147)).then((({default:t})=>t)),n.e(5034).then(n.bind(n,25034)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,47841)).then((({FontColor:t})=>t)),Promise.resolve().then(n.bind(n,44632)).then((({default:t})=>t.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(n.bind(n,50822)).then((({TuiLink:t})=>t)),n.e(8629).then(n.bind(n,88629)).then((({TuiJumpAnchor:t})=>t)),Promise.resolve().then(n.bind(n,41131)).then((({TuiFileLink:t})=>t)),Promise.resolve().then(n.bind(n,13511)).then((({BackgroundColor:t})=>t)),Promise.resolve().then(n.bind(n,47745)).then((({TuiTable:t})=>t.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:t})=>t)),n.e(1397).then(n.bind(n,71397)).then((({default:t})=>t)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:t})=>t)),Promise.resolve().then(n.bind(n,73757)).then((({TuiTabExtension:t})=>t)),Promise.resolve().then(n.bind(n,58676)).then((({TableCellBackground:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiDetailsContent:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiDetails:t})=>t)),n.e(7095).then(n.bind(n,77095)).then((({TuiSummary:t})=>t)),Promise.resolve().then(n.bind(n,83120)).then((({TuiFontSize:t})=>t))];n(41131),n(47841),n(83120),n(38981),n(91876);var C=n(45267),M=(n(73757),n(50822),n(12585),n(66826),n(47745),n(58676),n(71831)),S=n(88320)},20755:(t,e,n)=>{n.d(e,{i:()=>p});var o=n(12057),i=n(74788),r=n(66749),s=n(63658),a=n(88320),l=n(29856),c=n(43190),d=n(88002),u=n(46782),h=n(39761);let p=(()=>{class t extends l.y{constructor(t,{nativeElement:e},n){const o=(0,r.mL)(e,"mousedown").pipe((0,r.mp)(),(0,c.w)((t=>{const o=(0,r.mL)(n,"mousemove").pipe((0,d.U)((({clientX:t,clientY:n})=>(0,a.Ws)(t,n,e))),(0,u.R)((0,r.mL)(n,"mouseup")));return t.target===e?o.pipe((0,h.O)((0,a.Ws)(t.clientX,t.clientY,e))):o})),(0,u.R)(t));super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(s.a3,2),i.LFG(i.SBq),i.LFG(o.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},71831:(t,e,n)=>{n.d(e,{Y1:()=>T,F4:()=>r,bG:()=>O,ZW:()=>A,zc:()=>f,dR:()=>p,Mr:()=>w,dj:()=>g,F1:()=>u,Wf:()=>i,UN:()=>x,b$:()=>y,mJ:()=>l,$i:()=>v,rf:()=>b,bK:()=>h,p7:()=>M,Uv:()=>c});var o=n(74788);const i=new o.OlP("[TUI_EDITOR_EXTENSIONS]"),r=new o.OlP("[LAZY_EDITOR_EXTENSIONS]");var s=n(18892);const a={translate:"no",spellcheck:!1,colors:s.sw,blankColor:s.hK,linkOptions:s.pL,fontOptions:s.RR},l=new o.OlP("[TUI_EDITOR_OPTIONS]",{factory:()=>a});function c(t){return{provide:l,useValue:Object.assign(Object.assign({},a),t)}}var d=n(54487);const u=new o.OlP("[TUI_EDITOR_CONTENT_PROCESSOR]",{factory:()=>d.y}),h=new o.OlP("[TUI_EDITOR_VALUE_TRANSFORMER]"),p=new o.OlP("[TUI_ATTACH_FILES_OPTIONS]",{factory:()=>({accept:"*/*",multiple:!0})}),f=new o.OlP("[TUI_ATTACH_FILES_LOADER]");var m=n(47232);const g=new o.OlP("[TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),b=new o.OlP("[TUI_EDITOR_TOOLBAR_TEXTS]",{factory:(0,m.v)("toolbarTools")}),v=new o.OlP("[TUI_EDITOR_TABLE_COMMANDS]",{factory:(0,m.v)("editorTableCommands")}),y=new o.OlP("[TUI_EDITOR_LINK_TEXTS]",{factory:(0,m.v)("editorEditLink")}),w=new o.OlP("[TUI_EDITOR_CODE_OPTIONS]",{factory:(0,m.v)("editorCodeOptions")}),x=new o.OlP("[TUI_EDITOR_FONT_OPTIONS]",{factory:(0,m.v)("editorFontOptions")});var k=n(66749),C=n(88002);const M=new o.OlP("[TUI_IMAGE_LOADER]",{factory:()=>t=>{const e=new FileReader;return e.readAsDataURL(t),(0,k.mL)(e,"load").pipe((0,C.U)((()=>String(e.result))))}});var S=n(74235);const A=new o.OlP("[TIPTAP_EDITOR]"),O=new o.OlP("[LAZY_TIPTAP_EDITOR]",{factory:()=>{const t=new S.t(1);return Promise.resolve().then(n.bind(n,11046)).then((e=>t.next(e.Editor))),t}}),T=new o.OlP("[INITIALIZATION_TIPTAP_CONTAINER]")},88320:(t,e,n)=>{function o(t,e,n){const o=t.selection.$anchor;for(let i=o.depth;i>0;i--)if(o.node(i).type.name===n)return e&&e(t.tr.delete(o.before(i),o.after(i)).scrollIntoView()),!0;return!1}n.d(e,{yU:()=>o,Ws:()=>r,U5:()=>s,Yz:()=>l,YX:()=>d,Ap:()=>h,nC:()=>C,Er:()=>p,_N:()=>y,x6:()=>x,jx:()=>k,CH:()=>S});var i=n(85648);function r(t,e,n){const{left:o,top:r,width:s,height:a}=n.getBoundingClientRect();return[(0,i.Ki)(t-o,0,s)/s,(0,i.Ki)(e-r,0,a)/a]}function s(t){return t.slice(0,Math.max(0,t.length-1)).replace("linear-gradient(","")}function a(t,e,n={}){return t.find((({attrs:t,type:o})=>o===e&&function(t,e){const n=Object.keys(e);return!n.length||!!n.filter((n=>e[n]===t[n])).length}(t,n)))||null}function l(t,e,n={}){if(!t||!e)return null;const{node:o,offset:i}=t.parent.childAfter(t.parentOffset);if(!o)return null;const r=a(o.marks,e,n);if(!r)return null;let s=t.index(),l=t.start()+i,c=s+1,d=l+o.nodeSize;for(a(o.marks,e,n);s>0&&r.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;c{t instanceof c.NB&&e.push([t.type.name,t.attrs])})),e}var u=n(11046);function h(t,e){const n=null!=e?e:t.selection.$head.parent.textContent,o=t.doc.cut(t.selection.from,t.selection.to);return o.content.size?(0,u.getHTMLFromFragment)(o.content,t.schema):n}function p(t){const e=(new DOMParser).parseFromString(t,"text/html");return f(e.body),e.body.innerHTML}function f(t){for(const e of Array.from(t.children))if(e.children.length&&f(e),"FONT"===e.tagName)if(e.hasAttribute("size"))switch(e.getAttribute("size")){case"6":m("h1",e);break;case"5":m("h2",e);break;case"4":g("17px",e);break;case"3":g("15px",e);break;case"2":g("13px",e)}else e.hasAttribute("color")&&b(e)}function m(t,e){var n,o,i,r,s,a,l,c,d;const u=document.createElement(t);if(u.innerHTML=e.innerHTML,"P"===(null===(n=e.parentElement)||void 0===n?void 0:n.tagName)){const t=null===(i=null===(o=e.parentElement)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.insertBefore(u,e.parentElement);null===(r=e.parentElement)||void 0===r||r.removeChild(e),(null==t?void 0:t.nextSibling)&&!(null===(a=null===(s=null==t?void 0:t.nextSibling)||void 0===s?void 0:s.textContent)||void 0===a?void 0:a.trim())&&(null===(c=null===(l=t.nextSibling)||void 0===l?void 0:l.parentElement)||void 0===c||c.removeChild(t.nextSibling))}else null===(d=e.parentElement)||void 0===d||d.replaceChild(u,e)}function g(t,e){var n;const o=document.createElement("p"),i=document.createElement("span");i.setAttribute("style",`font-size: ${t}`),i.innerHTML=e.innerHTML,o.append(i),null===(n=e.parentElement)||void 0===n||n.replaceChild("P"===e.parentElement.tagName?i:o,e)}function b(t){var e;const n=document.createElement("span");n.setAttribute("style",`color: ${t.getAttribute("color")}`),n.innerHTML=t.innerHTML,null===(e=t.parentElement)||void 0===e||e.replaceChild(n,t)}const v=["\\s*(","(?:","#(?:[a-f0-9]{6}|[a-f0-9]{3})","|","(?:rgb|hsl)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)","|","(?:rgba|hsla)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)","|","[_a-z-][_a-z0-9-]*",")",")","(?:\\s+","(","(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?","))?","(?:","\\s*,\\s*","\\s*)?"];function y(t){const e=new RegExp(v.join(""),"gi"),n=t.startsWith("to")||t.match(/^\d/)?t.slice(Math.max(0,t.indexOf(",")+1)).trim():t,o=t.startsWith("to")?t.split(",")[0]:"to bottom";let i=[],r=e.exec(n);for(;null!==r;)i=i.concat({color:r[1],position:w(r[2],i.length)}),r=e.exec(n);return i=i.filter((({color:t})=>t.startsWith("#")||t.startsWith("rgb"))),{stops:i,side:o}}function w(t,e){const n=1===e?"100%":`${e}%`;return(null==t?void 0:t.includes("%"))?t:n}function x(t){return t.reduce(((t,e)=>(t[e]={parseHTML:t=>null==t?void 0:t.getAttribute(`${e}`)},t)),{})}function k(t){return t.split(";").reduce(((t,e)=>{var n;const[o,i]=null!==(n=e.split(":"))&&void 0!==n?n:[];return o&&i&&(t[o.trim()]=i.trim()),t}),{})}function C(t){var e;const n=(null===(e=t.endContainer.nodeValue)||void 0===e?void 0:e.length)||0;return t.endOffset-t.startOffset>0||t.endOffset-t.startOffset==0&&1===n||0!==t.startOffset&&n>1&&t.endOffset!==n}var M=n(2330);function S({stops:t,side:e}){return`linear-gradient(${e}, ${t.map((({color:t,position:e})=>`rgba(${(0,M.Mp)(t).join(", ")}) ${e}`)).join(", ")})`}},70997:(t,e,n)=>{n.d(e,{fV:()=>r});var o=n(74788),i=n(34978);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[i.JF,i.mG,i.Lx,i.Lq,i.u4]}),t})()},1336:(t,e,n)=>{n.d(e,{Xj:()=>s,Ih:()=>a});var o=n(74788),i=n(85648);class r{constructor(t){this.$implicit=t}}let s=(()=>{class t{constructor(t,e){this.viewContainer=t,this.templateRef=e}set tuiRepeatTimesOf(t){const e=Math.floor((0,i.Ki)(t,0,65536)),{length:n}=this.viewContainer;t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})()},28858:(t,e,n)=>{n.d(e,{EA:()=>A,aQ:()=>O,$H:()=>T});var o=n(74788),i=n(24751),r=n(72878),s=n(76480),a=n(57179),l=n(11927),c=n(85648),d=n(99434),u=n(12628),h=n(79588),p=n(79456),f=n(43631),m=n(52697),g=n(72764),b=n(56747),v=n(12057),y=n(75093);function w(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"section",2),o.TgZ(2,"button",3),o.NdJ("mousedown",(function(e){o.CHM(t);const n=o.oxw(2);return n.onButtonMouseDown(e,n.plusButtonDisabled)}))("click",(function(){return o.CHM(t),o.oxw(2).increaseValue()})),o.qZA(),o.TgZ(3,"button",4),o.NdJ("mousedown",(function(e){o.CHM(t);const n=o.oxw(2);return n.onButtonMouseDown(e,n.minusButtonDisabled)}))("click",(function(){return o.CHM(t),o.oxw(2).decreaseValue()})),o.qZA(),o.qZA(),o.BQk()}if(2&t){const t=e.ngIf,n=o.oxw(2);o.xp6(2),o.Q6J("icon",n.iconUp)("appearance",n.options.appearance)("title",t[0])("disabled",n.plusButtonDisabled)("focusable",!1),o.xp6(1),o.Q6J("icon",n.iconDown)("appearance",n.options.appearance)("disabled",n.minusButtonDisabled)("focusable",!1)("title",t[1])}}function x(t,e){if(1&t&&(o.ynx(0),o.YNc(1,w,4,10,"ng-container",1),o.ALo(2,"async"),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,t.minusTexts$))}}const k=["*",[["input"]]],C=["*","input"],M={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},appearance:"textfield",hideButtons:!1,min:0,max:Number.MAX_SAFE_INTEGER,step:1,postfix:""},S=new o.OlP("[TUI_INPUT_COUNT_OPTIONS]",{factory:()=>M});let A=(()=>{class t extends s.F9{constructor(t,e,n,o,i,r,s){super(t,e),this.textfieldController=n,this.minusTexts$=o,this.isMobile=i,this.options=r,this.numberFormat=s,this.step=this.options.step,this.min=this.options.min,this.max=this.options.max,this.hideButtons=this.options.hideButtons,this.prefix="",this.postfix=this.options.postfix}get buttonsHidden(){return this.hideButtons||"table"===this.textfieldController.appearance}get iconUp(){return this.options.icons.up}get iconDown(){return this.options.icons.down}get nativeFocusableElement(){return!this.inputNumber||this.computedDisabled?null:this.inputNumber.nativeFocusableElement}get size(){return this.textfieldController.size}get focused(){return(0,a.V8)(this.nativeFocusableElement)}get minusButtonDisabled(){return!this.interactive||(0,l.Pc)(this.value)&&this.value<=this.min}get plusButtonDisabled(){return!this.interactive||(0,l.Pc)(this.value)&&this.value>=this.max}onButtonMouseDown(t,e=!1){e||!this.nativeFocusableElement||this.isMobile||(t.preventDefault(),this.nativeFocusableElement.focus())}onFocused(t){this.updateFocused(t)}onInputNumberChange(t){this.value=t}onValueChange(t){this.value=(0,r.vZ)(t,this.numberFormat.decimalSeparator)}decreaseValue(){if(this.readOnly)return;const t=(this.value||0)-this.step;this.safeUpdateValue(t)}increaseValue(){if(this.readOnly)return;const t=(this.value||0)+this.step;this.safeUpdateValue(t)}onKeydown(t){switch(t.key){case"ArrowUp":case"Up":this.increaseValue(),t.preventDefault();break;case"ArrowDown":case"Down":this.decreaseValue(),t.preventDefault()}}safeUpdateValue(t){this.value=(0,c.Ki)(t,this.min,this.max)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a5,10),o.Y36(o.sBO),o.Y36(h.Cs),o.Y36(b.mT),o.Y36(d.fL),o.Y36(S),o.Y36(p.HO))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-input-count"]],viewQuery:function(t,e){if(1&t&&o.Gf(g.qS,5),2&t){let t;o.iGM(t=o.CRH())&&(e.inputNumber=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(o.uIk("data-size",e.size),o.ekj("_hide-buttons",e.buttonsHidden))},inputs:{step:"step",min:"min",max:"max",hideButtons:"hideButtons",prefix:"prefix",postfix:"postfix"},features:[o._Bn([(0,d.FT)(t),(0,s.wB)(t),h.Y0]),o.qOj],ngContentSelectors:C,decls:4,vars:14,consts:[["decimal","never",1,"t-textfield",3,"pseudoFocus","pseudoHover","pseudoInvalid","pseudoActive","focusable","min","max","prefix","postfix","disabled","readOnly","nativeId","ngModel","ngModelChange","keydown","focusedChange"],[4,"ngIf"],[1,"t-buttons"],["tuiIconButton","","type","button","automation-id","tui-input-count__plus-button","size","s",1,"t-button","t-button_plus",3,"icon","appearance","title","disabled","focusable","mousedown","click"],["tuiIconButton","","type","button","automation-id","tui-input-count__minus-button","size","s",1,"t-button","t-button_minus",3,"icon","appearance","disabled","focusable","title","mousedown","click"]],template:function(t,e){1&t&&(o.F$t(k),o.TgZ(0,"tui-input-number",0),o.NdJ("ngModelChange",(function(t){return e.value=t}))("keydown",(function(t){return e.onKeydown(t)}))("focusedChange",(function(t){return e.onFocused(t)})),o.Hsn(1),o.Hsn(2,1,["ngProjectAs","input",5,["input"]]),o.qZA(),o.YNc(3,x,3,3,"ng-container",1)),2&t&&(o.Q6J("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.pseudoInvalid)("pseudoActive",e.pseudoActive)("focusable",e.focusable)("min",e.min)("max",e.max)("prefix",e.prefix)("postfix",e.postfix)("disabled",e.computedDisabled)("readOnly",e.readOnly)("nativeId",e.nativeId)("ngModel",e.value),o.xp6(3),o.Q6J("ngIf",!e.buttonsHidden))},directives:[g.qS,g.g5,i.JJ,i.On,v.O5,u.v0],pipes:[v.Ov],styles:["[_nghost-%COMP%]{display:flex;font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);height:var(--tui-height-m);color:var(--tui-text-01);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-textfield[_ngcontent-%COMP%]{position:relative;border-radius:inherit;text-align:inherit;flex-grow:1;min-width:0}[_nghost-%COMP%]:not(._hide-buttons) .t-textfield[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:.125rem;height:100%}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;width:calc(var(--tui-height-m) * .75);height:calc(50% - .0625rem)}.t-buttons[_ngcontent-%COMP%] .t-button_plus[_ngcontent-%COMP%]{margin-bottom:.125rem;border-radius:0 var(--tui-radius-m) 0 0}.t-buttons[_ngcontent-%COMP%] .t-button_minus[_ngcontent-%COMP%]{border-radius:0 0 var(--tui-radius-m)}[data-size=l][_nghost-%COMP%] .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}"],changeDetection:0}),t})(),O=(()=>{class t extends f.D1{onValueChange(t){this.host.onValueChange(t)}ngAfterViewInit(){if(this.host.nativeFocusableElement){const{nativeFocusableElement:t}=this.host;t.autocomplete="off",t.inputMode="numeric",t.maxLength=t.maxLength>-1?t.maxLength:18}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵdir=o.lG2({type:t,selectors:[["tui-input-count"]],features:[o._Bn([(0,p.cp)(t)]),o.qOj]}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[v.ez,i.u5,u.fN,m.KW,h.cn,y.S,g._H]]}),t})()},92815:(t,e,n)=>{n.d(e,{l:()=>g,z:()=>b});var o=n(74788),i=n(24751),r=n(13633),s=n(75059),a=n(76480),l=n(57179),c=n(99434),d=n(93213),u=n(12057),h=n(9013);const p=["native"];function f(t,e){1&t&&(o.TgZ(0,"span",4),o.Hsn(1),o.qZA())}const m=["*"];let g=(()=>{class t extends a.M${constructor(t,e){super(t,e),this.maxLength=null,this.indent=-1}get nativeFocusableElement(){return this.native?this.native.nativeElement:null}get focused(){return(0,l.V8)(this.nativeFocusableElement)}get hasValue(){return""!==this.value}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}onScroll(){var t;const e=(null===(t=this.native)||void 0===t?void 0:t.nativeElement.scrollLeft)||0;this.indent=-1-e}getFallbackValue(){return""}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a5,10),o.Y36(o.sBO))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-input-inline"]],viewQuery:function(t,e){if(1&t&&o.Gf(p,5),2&t){let t;o.iGM(t=o.CRH())&&(e.native=t.first)}},inputs:{maxLength:"maxLength"},features:[o._Bn([d.E2,(0,c.FT)(t)]),o.qOj],ngContentSelectors:m,decls:4,vars:10,consts:[[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__native","type","text","tuiMaskAccessor","",1,"t-native",3,"id","disabled","readOnly","tuiFocusable","ngModel","ngModelChange","scroll","tuiFocusedChange"],["native",""],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"span",0),o.YNc(1,f,2,0,"span",1),o.TgZ(2,"input",2,3),o.NdJ("ngModelChange",(function(t){return e.value=t}))("scroll",(function(){return e.onScroll()}))("tuiFocusedChange",(function(t){return e.onFocused(t)})),o.qZA()),2&t&&(o.Udp("text-indent",e.indent,"px"),o.Q6J("textContent",e.value),o.xp6(1),o.Q6J("ngIf",!e.hasValue),o.xp6(1),o.Q6J("id",e.id)("disabled",e.computedDisabled)("readOnly",e.readOnly)("tuiFocusable",e.focusable)("ngModel",e.value),o.uIk("maxLength",e.maxLength))},directives:[u.O5,h.j,i.Fj,r.t,i.JJ,i.On,s.U],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}.t-before[_ngcontent-%COMP%]{display:block;padding-right:.02em;margin-left:1px;white-space:pre}.t-placeholder[_ngcontent-%COMP%]{display:inline-block;min-width:1px}.t-native[_ngcontent-%COMP%]{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:transparent;caret-color:#7d7d7d;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none;mix-blend-mode:difference}"],changeDetection:0}),t})(),b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[u.ez,i.u5,r.u,s.F,h.c]]}),t})()},11046:(t,e,n)=>{n.r(e),n.d(e,{CommandManager:()=>D,Editor:()=>Ae,Extension:()=>ct,InputRule:()=>K,Mark:()=>De,Node:()=>Pe,NodeView:()=>He,PasteRule:()=>nt,Tracker:()=>Be,callOrReturn:()=>F,combineTransactionSteps:()=>Yt,createChainableState:()=>I,createDocument:()=>Nt,createNodeFromContent:()=>Ct,createStyleTag:()=>Se,defaultBlockAt:()=>Vt,deleteProps:()=>Tt,elementFromString:()=>kt,escapeForRegEx:()=>_e,extensions:()=>Me,findChildren:()=>Ut,findChildrenInRange:()=>Wt,findDuplicates:()=>rt,findListItemPos:()=>It,findParentNode:()=>Bt,findParentNodeClosestToPos:()=>$t,fromString:()=>Z,generateHTML:()=>Gt,generateJSON:()=>Xt,generateText:()=>ee,getAttributes:()=>oe,getAttributesFromExtensions:()=>_,getChangedRanges:()=>re,getDebugJSON:()=>se,getExtensionField:()=>H,getHTMLFromFragment:()=>Qt,getMarkAttributes:()=>Et,getMarkRange:()=>gt,getMarkType:()=>bt,getMarksBetween:()=>ae,getNextListDepth:()=>Pt,getNodeAtPosition:()=>Dt,getNodeAttributes:()=>ne,getNodeType:()=>R,getRenderedAttributes:()=>$,getSchema:()=>Kt,getSchemaByResolvedExtensions:()=>Y,getSchemaTypeByName:()=>V,getSchemaTypeNameByName:()=>Ot,getSplittedAttributes:()=>le,getText:()=>te,getTextBetween:()=>dt,getTextContentFromNodes:()=>W,getTextSerializersFromSchema:()=>ut,handleBackspace:()=>zt,handleDelete:()=>jt,hasListBefore:()=>Lt,hasListItemAfter:()=>qt,hasListItemBefore:()=>_t,injectExtensionAttributesToParseRule:()=>j,inputRulesPlugin:()=>tt,isActive:()=>de,isAtEndOfNode:()=>Ft,isAtStartOfNode:()=>Ht,isEmptyObject:()=>J,isExtensionRulesEnabled:()=>U,isFunction:()=>B,isList:()=>ue,isMacOS:()=>St,isMarkActive:()=>ce,isNodeActive:()=>At,isNodeEmpty:()=>he,isNodeSelection:()=>pe,isNumber:()=>et,isPlainObject:()=>at,isRegExp:()=>Q,isString:()=>Re,isTextSelection:()=>vt,isiOS:()=>xt,listItemHasSubList:()=>Rt,markInputRule:()=>Oe,markPasteRule:()=>Le,mergeAttributes:()=>z,mergeDeep:()=>lt,minMax:()=>yt,nextListIsDeeper:()=>Jt,nextListIsHigher:()=>Zt,nodeInputRule:()=>Te,nodePasteRule:()=>ze,objectIncludes:()=>pt,pasteRulesPlugin:()=>it,posToDOMRect:()=>fe,removeDuplicates:()=>ie,resolveFocusPosition:()=>wt,selectionToInsertionEnd:()=>Mt,splitExtensions:()=>L,textInputRule:()=>Ee,textPasteRule:()=>$e,textblockTypeInputRule:()=>Ne,wrappingInputRule:()=>Ie});var o=n(62463),i=n(43594),r=n(31690),s=n(27439),a=n(38480);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0),c=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}(t,n);if(!i)return!1;let r=h(i);if(!r){let n=i.blockRange(),o=n&&(0,a.k9)(n);return null!=o&&(e&&e(t.tr.lift(n,o).scrollIntoView()),!0)}let l=r.nodeBefore;if(!l.type.spec.isolating&&x(t,r,e))return!0;if(0==i.parent.content.size&&(d(l,"end")||o.qv.isSelectable(l))){let n=(0,a.dR)(t.doc,i.before(),i.after(),s.p2.empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):i.parentOffset>0)return!1;s=h(i)}let a=s&&s.nodeBefore;return!(!a||!o.qv.isSelectable(a)||(e&&e(t.tr.setSelection(o.qv.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),0))};function h(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}const p=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):i.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:o}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(o)||(e&&e(t.tr.insertText("\n").scrollIntoView()),0))};function b(t){for(let e=0;e{let{$head:n,$anchor:i}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),s=n.indexAfter(-1),a=b(r.contentMatchAt(s));if(!a||!r.canReplaceWith(s,s,a))return!1;if(e){let i=n.after(),r=t.tr.replaceWith(i,i,a.createAndFill());r.setSelection(o.Y1.near(r.doc.resolve(i),1)),e(r.scrollIntoView())}return!0},y=(t,e)=>{let n=t.selection,{$from:i,$to:r}=n;if(n instanceof o.C1||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=b(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if((0,a.Ax)(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),i=o&&(0,a.k9)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)};function x(t,e,n){let i,r,l=e.nodeBefore,c=e.nodeAfter;if(l.type.spec.isolating||c.type.spec.isolating)return!1;if(function(t,e,n){let o=e.nodeBefore,i=e.nodeAfter,r=e.index();return!(!(o&&i&&o.type.compatibleContent(i.type))||(!o.content.size&&e.parent.canReplace(r-1,r)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!i.isTextblock&&!(0,a.Mn)(t.doc,e.pos)||(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(r=l.contentMatchAt(l.childCount)).findWrapping(c.type))&&r.matchType(i[0]||c.type).validEnd){if(n){let o=e.pos+c.nodeSize,r=s.HY.empty;for(let t=i.length-1;t>=0;t--)r=s.HY.from(i[t].create(null,r));r=s.HY.from(l.copy(r));let d=t.tr.step(new a.FC(e.pos-1,o,e.pos,o,new s.p2(r,1,0),i.length,!0)),u=o+2*i.length;(0,a.Mn)(d.doc,u)&&d.join(u),n(d.scrollIntoView())}return!0}let h=o.Y1.findFrom(e,1),p=h&&h.$from.blockRange(h.$to),f=p&&(0,a.k9)(p);if(null!=f&&f>=e.depth)return n&&n(t.tr.lift(p,f).scrollIntoView()),!0;if(u&&d(c,"start",!0)&&d(l,"end")){let o=l,i=[];for(;i.push(o),!o.isTextblock;)o=o.lastChild;let r=c,d=1;for(;!r.isTextblock;r=r.firstChild)d++;if(o.canReplace(o.childCount,o.childCount,r.content)){if(n){let o=s.HY.empty;for(let t=i.length-1;t>=0;t--)o=s.HY.from(i[t].copy(o));n(t.tr.step(new a.FC(e.pos-i.length,e.pos+c.nodeSize,e.pos+d,e.pos+c.nodeSize-d,new s.p2(o,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function k(t){return function(e,n){let i=e.selection,r=t<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return!!r.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.Bs.create(e.doc,t<0?r.start(s):r.end(s)))),!0)}}const C=k(-1),M=k(1);function S(t,e=null){return function(n,o){let i=!1;for(let o=0;o{if(i)return!1;if(o.isTextblock&&!o.hasMarkup(t,e))if(o.type==t)i=!0;else{let e=n.doc.resolve(r),o=e.index();i=e.parent.canReplaceWith(o,o+1,t)}}))}if(!i)return!1;if(o){let i=n.tr;for(let o=0;o{let{$from:n,$to:i}=t.selection;if(t.selection instanceof o.qv&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,a.Ax)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.parent.isBlock)return!1;if(e){let r=i.parentOffset==i.parent.content.size,s=t.tr;(t.selection instanceof o.Bs||t.selection instanceof o.C1)&&s.deleteSelection();let l=0==n.depth?null:b(n.node(-1).contentMatchAt(n.indexAfter(-1))),c=r&&l?[{type:l}]:void 0,d=(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,c);if(c||d||!(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,l?[{type:l}]:void 0)||(l&&(c=[{type:l}]),d=!0),d&&(s.split(s.mapping.map(n.pos),1,c),!r&&!n.parentOffset&&n.parent.type!=l)){let t=s.mapping.map(n.before()),e=s.doc.resolve(t);l&&n.node(-1).canReplaceWith(e.index(),e.index()+1,l)&&s.setNodeMarkup(s.mapping.map(n.before()),l)}e(s.scrollIntoView())}return!0})),"Mod-Enter":v,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:T,"Mod-Delete":T,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.C1(t.doc))),!0)},E={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":C,"Ctrl-e":M};for(let t in N)E[t]=N[t];function I(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:i}=n,{storedMarks:r}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return o},get doc(){return i},get tr(){return o=n.selection,i=n.doc,r=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:o}=e,{tr:i}=n,r=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(...t)=>{const n=e(...t)(r);return i.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(i),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s=[],a=!!t,l=t||i.tr,c={...Object.fromEntries(Object.entries(n).map((([t,n])=>[t,(...t)=>{const o=this.buildProps(l,e),i=n(...t)(o);return s.push(i),c}]))),run:()=>(a||!e||l.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(l),s.every((t=>!0===t)))};return c}createCan(t){const{rawCommands:e,state:n}=this,o=t||n.tr,i=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map((([t,e])=>[t,(...t)=>e(...t)({...i,dispatch:void 0})]))),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s={tr:t,editor:o,view:r,state:I({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map((([t,e])=>[t,(...t)=>e(...t)(s)])))}};return s}}class P{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach((t=>t.apply(this,e))),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter((t=>t!==e)):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return void 0===t.config[e]&&t.parent?H(t.parent,e,n):"function"==typeof t.config[e]?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function L(t){return{baseExtensions:t.filter((t=>"extension"===t.type)),nodeExtensions:t.filter((t=>"node"===t.type)),markExtensions:t.filter((t=>"mark"===t.type))}}function _(t){const e=[],{nodeExtensions:n,markExtensions:o}=L(t),i=[...n,...o],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach((t=>{const n=H(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage});n&&n().forEach((t=>{t.types.forEach((n=>{Object.entries(t.attributes).forEach((([t,o])=>{e.push({type:n,name:t,attribute:{...r,...o}})}))}))}))})),i.forEach((t=>{const n={name:t.name,options:t.options,storage:t.storage},o=H(t,"addAttributes",n);if(!o)return;const i=o();Object.entries(i).forEach((([n,o])=>{const i={...r,...o};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&void 0===(null==i?void 0:i.default)&&delete i.default,e.push({type:t.name,name:n,attribute:i})}))})),e}function R(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function z(...t){return t.filter((t=>!!t)).reduce(((t,e)=>{const n={...t};return Object.entries(e).forEach((([t,e])=>{if(n[t])if("class"===t){const o=e.split(" "),i=n[t].split(" "),r=o.filter((t=>!i.includes(t)));n[t]=[...i,...r].join(" ")}else n[t]="style"===t?[n[t],e].join("; "):e;else n[t]=e})),n}),{})}function $(t,e){return e.filter((t=>t.attribute.rendered)).map((e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]})).reduce(((t,e)=>z(t,e)),{})}function B(t){return"function"==typeof t}function F(t,e=void 0,...n){return B(t)?e?t.bind(e)(...n):t(...n):t}function J(t={}){return 0===Object.keys(t).length&&t.constructor===Object}function Z(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}function j(t,e){return t.style?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===o)return!1;const i=e.reduce(((t,e)=>{const o=e.attribute.parseHTML?e.attribute.parseHTML(n):Z(n.getAttribute(e.name));return null==o?t:{...t,[e.name]:o}}),{});return{...o,...i}}}}function q(t){return Object.fromEntries(Object.entries(t).filter((([t,e])=>("attrs"!==t||!J(e))&&null!=e)))}function Y(t,e){var n;const o=_(t),{nodeExtensions:i,markExtensions:r}=L(t),a=null===(n=i.find((t=>H(t,"topNode"))))||void 0===n?void 0:n.name,l=Object.fromEntries(i.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=q({...t.reduce(((t,e)=>{const o=H(e,"extendNodeSchema",r);return{...t,...o?o(n):{}}}),{}),content:F(H(n,"content",r)),marks:F(H(n,"marks",r)),group:F(H(n,"group",r)),inline:F(H(n,"inline",r)),atom:F(H(n,"atom",r)),selectable:F(H(n,"selectable",r)),draggable:F(H(n,"draggable",r)),code:F(H(n,"code",r)),defining:F(H(n,"defining",r)),isolating:F(H(n,"isolating",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);l&&(s.toDOM=t=>l({node:t,HTMLAttributes:$(t,i)}));const c=H(n,"renderText",r);return c&&(s.toText=c),[n.name,s]}))),c=Object.fromEntries(r.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=q({...t.reduce(((t,e)=>{const o=H(e,"extendMarkSchema",r);return{...t,...o?o(n):{}}}),{}),inclusive:F(H(n,"inclusive",r)),excludes:F(H(n,"excludes",r)),group:F(H(n,"group",r)),spanning:F(H(n,"spanning",r)),code:F(H(n,"code",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);return l&&(s.toDOM=t=>l({mark:t,HTMLAttributes:$(t,i)})),[n.name,s]})));return new s.V_({topNode:a,nodes:l,marks:c})}function V(t,e){return e.nodes[t]||e.marks[t]||null}function U(t,e){return Array.isArray(e)?e.some((e=>("string"==typeof e?e:e.name)===t.name)):e}const W=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,((t,e,i,r)=>{var s,a;const l=(null===(a=(s=t.type.spec).toText)||void 0===a?void 0:a.call(s,{node:t,pos:e,parent:i,index:r}))||t.textContent||"%leaf%";n+=l.slice(0,Math.max(0,o-e))})),n};function Q(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class K{constructor(t){this.find=t.find,this.handler=t.handler}}const G=(t,e)=>{if(Q(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function X(t){var e;const{editor:n,from:o,to:i,text:r,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find((t=>t.type.spec.code))))return!1;let d=!1;const u=W(c)+r;return s.forEach((t=>{if(d)return;const e=G(u,t.find);if(!e)return;const s=l.state.tr,c=I({state:l.state,transaction:s}),h={from:o-(e[0].length-r.length),to:i},{commands:p,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:p,chain:f,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:o,to:i,text:r}),l.dispatch(s),d=!0)})),d}function tt(t){const{editor:e,rules:n}=t,i=new o.Sy({state:{init:()=>null,apply:(t,e)=>t.getMeta(i)||(t.selectionSet||t.docChanged?null:e)},props:{handleTextInput:(t,o,r,s)=>X({editor:e,from:o,to:r,text:s,rules:n,plugin:i}),handleDOMEvents:{compositionend:t=>(setTimeout((()=>{const{$cursor:o}=t.state.selection;o&&X({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:i})})),!1)},handleKeyDown(t,o){if("Enter"!==o.key)return!1;const{$cursor:r}=t.state.selection;return!!r&&X({editor:e,from:r.pos,to:r.pos,text:"\n",rules:n,plugin:i})}},isInputRules:!0});return i}function et(t){return"number"==typeof t}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}const ot=(t,e)=>{if(Q(e))return[...t.matchAll(e)];const n=e(t);return n?n.map((e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n})):[]};function it(t){const{editor:e,rules:n}=t;let i=null,r=!1,s=!1;const a=n.map((t=>new o.Sy({view(t){const e=e=>{var n;i=(null===(n=t.dom.parentElement)||void 0===n?void 0:n.contains(e.target))?t.dom.parentElement:null};return window.addEventListener("dragstart",e),{destroy(){window.removeEventListener("dragstart",e)}}},props:{handleDOMEvents:{drop:t=>(s=i===t.dom.parentElement,!1),paste:(t,e)=>{var n;const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return r=!!(null==o?void 0:o.includes("data-pm-slice")),!1}}},appendTransaction:(n,o,i)=>{const a=n[0],l="paste"===a.getMeta("uiEvent")&&!r,c="drop"===a.getMeta("uiEvent")&&!s;if(!l&&!c)return;const d=o.doc.content.findDiffStart(i.doc.content),u=o.doc.content.findDiffEnd(i.doc.content);if(!et(d)||!u||d===u.b)return;const h=i.tr,p=I({state:i,transaction:h}),f=function(t){const{editor:e,state:n,from:o,to:i,rule:r}=t,{commands:s,chain:a,can:l}=new D({editor:e,state:n}),c=[];return n.doc.nodesBetween(o,i,((t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const d=Math.max(o,e),u=Math.min(i,e+t.content.size),h=t.textBetween(d-e,u-e,void 0,"");ot(h,r.find).forEach((t=>{if(void 0===t.index)return;const e=d+t.index+1,o=e+t[0].length,i={from:n.tr.mapping.map(e),to:n.tr.mapping.map(o)},u=r.handler({state:n,range:i,match:t,commands:s,chain:a,can:l});c.push(u)}))})),c.every((t=>null!==t))}({editor:e,state:p,from:Math.max(d-1,0),to:u.b-1,rule:t});return f&&h.steps.length?h:void 0}})));return a}function rt(t){const e=t.filter(((e,n)=>t.indexOf(e)!==n));return[...new Set(e)]}class st{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=st.resolve(t),this.schema=Y(this.extensions,e),this.extensions.forEach((t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:V(t.name,this.schema)};"mark"===t.type&&(null===(e=F(H(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name);const o=H(t,"onBeforeCreate",n);o&&this.editor.on("beforeCreate",o);const i=H(t,"onCreate",n);i&&this.editor.on("create",i);const r=H(t,"onUpdate",n);r&&this.editor.on("update",r);const s=H(t,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=H(t,"onTransaction",n);a&&this.editor.on("transaction",a);const l=H(t,"onFocus",n);l&&this.editor.on("focus",l);const c=H(t,"onBlur",n);c&&this.editor.on("blur",c);const d=H(t,"onDestroy",n);d&&this.editor.on("destroy",d)}))}static resolve(t){const e=st.sort(st.flatten(t)),n=rt(e.map((t=>t.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((t=>`'${t}'`)).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map((t=>{const e=H(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t})).flat(10)}static sort(t){return t.sort(((t,e)=>{const n=H(t,"priority")||100,o=H(e,"priority")||100;return n>o?-1:n{const n=H(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:V(e.name,this.schema)});return n?{...t,...n()}:t}),{})}get plugins(){const{editor:t}=this,e=st.sort([...this.extensions].reverse()),n=[],o=[],i=e.map((e=>{const i={name:e.name,options:e.options,storage:e.storage,editor:t,type:V(e.name,this.schema)},s=[],a=H(e,"addKeyboardShortcuts",i);let l={};if("mark"===e.type&&e.config.exitable&&(l.ArrowRight=()=>De.handleExit({editor:t,mark:e})),a){const e=Object.fromEntries(Object.entries(a()).map((([e,n])=>[e,()=>n({editor:t})])));l={...l,...e}}const c=(0,r.h)(l);s.push(c);const d=H(e,"addInputRules",i);U(e,t.options.enableInputRules)&&d&&n.push(...d());const u=H(e,"addPasteRules",i);U(e,t.options.enablePasteRules)&&u&&o.push(...u());const h=H(e,"addProseMirrorPlugins",i);if(h){const t=h();s.push(...t)}return s})).flat();return[tt({editor:t,rules:n}),...it({editor:t,rules:o}),...i]}get attributes(){return _(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=L(this.extensions);return Object.fromEntries(e.filter((t=>!!H(t,"addNodeView"))).map((e=>{const n=this.attributes.filter((t=>t.type===e.name)),o={name:e.name,options:e.options,storage:e.storage,editor:t,type:R(e.name,this.schema)},i=H(e,"addNodeView",o);return i?[e.name,(o,r,s,a)=>{const l=$(o,n);return i()({editor:t,node:o,getPos:s,decorations:a,HTMLAttributes:l,extension:e})}]:[]})))}}function at(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function lt(t,e){const n={...t};return at(t)&&at(e)&&Object.keys(e).forEach((o=>{at(e[o])?o in t?n[o]=lt(t[o],e[o]):Object.assign(n,{[o]:e[o]}):Object.assign(n,{[o]:e[o]})})),n}class ct{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ct(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ct(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}function dt(t,e,n){const{from:o,to:i}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return t.nodesBetween(o,i,((t,n,c,d)=>{var u;const h=null==s?void 0:s[t.type.name];h?(t.isBlock&&!l&&(a+=r,l=!0),c&&(a+=h({node:t,pos:n,parent:c,index:d,range:e}))):t.isText?(a+=null===(u=null==t?void 0:t.text)||void 0===u?void 0:u.slice(Math.max(o,n)-n,i-n),l=!1):t.isBlock&&!l&&(a+=r,l=!0)})),a}function ut(t){return Object.fromEntries(Object.entries(t.nodes).filter((([,t])=>t.spec.toText)).map((([t,e])=>[t,e.spec.toText])))}const ht=ct.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:i}=e,{ranges:r}=i;return dt(o,{from:Math.min(...r.map((t=>t.$from.pos))),to:Math.max(...r.map((t=>t.$to.pos)))},{textSerializers:ut(n)})}}})]}});function pt(t,e,n={strict:!0}){const o=Object.keys(e);return!o.length||o.every((o=>n.strict?e[o]===t[o]:Q(e[o])?e[o].test(t[o]):e[o]===t[o]))}function ft(t,e,n={}){return t.find((t=>t.type===e&&pt(t.attrs,n)))}function mt(t,e,n={}){return!!ft(t,e,n)}function gt(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(t.parentOffset===o.offset&&0!==o.offset&&(o=t.parent.childBefore(t.parentOffset)),!o.node)return;const i=ft([...o.node.marks],e,n);if(!i)return;let r=o.index,s=t.start()+o.offset,a=r+1,l=s+o.node.nodeSize;for(ft([...o.node.marks],e,n);r>0&&i.isInSet(t.parent.child(r-1).marks);)r-=1,s-=t.parent.child(r).nodeSize;for(;a${t}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function Ct(t,e,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof t&&null!==t)try{return Array.isArray(t)&&t.length>0?s.HY.fromArray(t.map((t=>e.nodeFromJSON(t)))):e.nodeFromJSON(t)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Ct("",e,n)}if("string"==typeof t){const o=s.aw.fromSchema(e);return n.slice?o.parseSlice(kt(t),n.parseOptions).content:o.parse(kt(t),n.parseOptions)}return Ct("",e,n)}function Mt(t,e,n){const i=t.steps.length-1;if(i{0===l&&(l=o)})),t.setSelection(o.Y1.near(t.doc.resolve(l),n))}function St(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function At(t,e,n={}){const{from:o,to:i,empty:r}=t.selection,s=e?R(e,t.schema):null,a=[];t.doc.nodesBetween(o,i,((t,e)=>{if(t.isText)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);a.push({node:t,from:n,to:r})}));const l=i-o,c=a.filter((t=>!s||s.name===t.node.type.name)).filter((t=>pt(t.node.attrs,n,{strict:!1})));return r?!!c.length:c.reduce(((t,e)=>t+e.to-e.from),0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Tt(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce(((e,o)=>(n.includes(o)||(e[o]=t[o]),e)),{})}function Nt(t,e,n={}){return Ct(t,e,{slice:!1,parseOptions:n})}function Et(t,e){const n=bt(e,t.schema),{from:o,to:i,empty:r}=t.selection,s=[];r?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,i,(t=>{s.push(...t.marks)}));const a=s.find((t=>t.type.name===n.name));return a?{...a.attrs}:{}}const It=(t,e)=>{const{$from:n}=e.selection,o=R(t,e.schema);let i=null,r=n.depth,s=n.pos,a=null;for(;r>0&&null===a;)i=n.node(r),i.type===o?a=r:(r-=1,s-=1);return null===a?null:{$pos:e.doc.resolve(s),depth:a}},Dt=(t,e,n,o=20)=>{const i=t.doc.resolve(n);let r=o,s=null;for(;r>0&&null===s;){const t=i.node(r);(null==t?void 0:t.type.name)===e?s=t:r-=1}return[s,r]},Pt=(t,e)=>{const n=It(t,e);if(!n)return!1;const[,o]=Dt(e,t,n.$pos.pos+4);return o},Ht=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)},Lt=(t,e,n)=>{const{$anchor:o}=t.selection,i=Math.max(0,o.pos-2),r=t.doc.resolve(i).node();return!(!r||!n.includes(r.type.name))},_t=(t,e)=>{var n;const{$anchor:o}=e.selection,i=e.doc.resolve(o.pos-2);return 0!==i.index()&&(null===(n=i.nodeBefore)||void 0===n?void 0:n.type.name)===t},Rt=(t,e,n)=>{if(!n)return!1;const o=R(t,e.schema);let i=!1;return n.descendants((t=>{t.type===o&&(i=!0)})),i},zt=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(!At(t.state,e)&&Lt(t.state,e,n)){const{$anchor:n}=t.state.selection,o=t.state.doc.resolve(n.before()-1),i=[];o.node().descendants(((t,n)=>{t.type.name===e&&i.push({node:t,pos:n})}));const r=i.at(-1);if(!r)return!1;const s=t.state.doc.resolve(o.start()+r.pos+1);return t.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!At(t.state,e))return!1;if(!Ht(t.state))return!1;const o=It(e,t.state);if(!o)return!1;const i=t.state.doc.resolve(o.$pos.pos-2).node(o.depth),r=Rt(e,t.state,i);return _t(e,t.state)&&!r?t.commands.joinItemBackward():t.chain().liftListItem(e).run()};function $t(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Bt(t){return e=>$t(e.$from,t)}const Ft=(t,e)=>{const{$from:n,$to:o,$anchor:i}=t.selection;if(e){const n=Bt((t=>t.type.name===e))(t.selection);if(!n)return!1;const o=t.doc.resolve(n.pos+1);return i.pos+1===o.end()}return!(o.parentOffset{const n=Pt(t,e),o=It(t,e);return!(!o||!n)&&n>o.depth},Zt=(t,e)=>{const n=Pt(t,e),o=It(t,e);return!(!o||!n)&&n!!At(t.state,e)&&!!Ft(t.state,e)&&(Jt(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():Zt(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()),qt=(t,e)=>{var n;const{$anchor:o}=e.selection,i=e.doc.resolve(o.pos-o.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null===(n=i.nodeAfter)||void 0===n?void 0:n.type.name)===t};function Yt(t,e){const n=new a.wx(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}function Vt(t){for(let e=0;e{e(t)&&n.push({node:t,pos:o})})),n}function Wt(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&o.push({node:t,pos:e})})),o}function Qt(t,e){const n=s.PW.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Kt(t,e){return Y(st.resolve(t),e)}function Gt(t,e){const n=Kt(e);return Qt(s.NB.fromJSON(n,t).content,n)}function Xt(t,e){const n=Kt(e),o=kt(t);return s.aw.fromSchema(n).parse(o).toJSON()}function te(t,e){return dt(t,{from:0,to:t.content.size},e)}function ee(t,e,n){const{blockSeparator:o="\n\n",textSerializers:i={}}=n||{},r=Kt(e);return te(s.NB.fromJSON(r,t),{blockSeparator:o,textSerializers:{...ut(r),...i}})}function ne(t,e){const n=R(e,t.schema),{from:o,to:i}=t.selection,r=[];t.doc.nodesBetween(o,i,(t=>{r.push(t)}));const s=r.reverse().find((t=>t.type.name===n.name));return s?{...s.attrs}:{}}function oe(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?ne(t,e):"mark"===n?Et(t,e):{}}function ie(t,e=JSON.stringify){const n={};return t.filter((t=>{const o=e(t);return!Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=!0)}))}function re(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach(((t,i)=>{const r=[];if(t.ranges.length)t.forEach(((t,e)=>{r.push({from:t,to:e})}));else{const{from:t,to:e}=n[i];if(void 0===t||void 0===e)return;r.push({from:t,to:e})}r.forEach((({from:t,to:n})=>{const r=e.slice(i).map(t,-1),s=e.slice(i).map(n),a=e.invert().map(r,-1),l=e.invert().map(s);o.push({oldRange:{from:a,to:l},newRange:{from:r,to:s}})}))})),function(t){const e=ie(t);return 1===e.length?e:e.filter(((t,n)=>!e.filter(((t,e)=>e!==n)).some((e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))))}(o)}function se(t,e=0){const n=t.type===t.type.schema.topNodeType?0:1,o=e,i=o+t.nodeSize,r=t.marks.map((t=>{const e={type:t.type.name};return Object.keys(t.attrs).length&&(e.attrs={...t.attrs}),e})),s={...t.attrs},a={type:t.type.name,from:o,to:i};return Object.keys(s).length&&(a.attrs=s),r.length&&(a.marks=r),t.content.childCount&&(a.content=[],t.forEach(((t,o)=>{var i;null===(i=a.content)||void 0===i||i.push(se(t,e+o+n))}))),t.text&&(a.text=t.text),a}function ae(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach((e=>{const i=gt(n.resolve(t-1),e.type);i&&o.push({mark:e,...i})})):n.nodesBetween(t,e,((t,e)=>{o.push(...t.marks.map((n=>({from:e,to:e+t.nodeSize,mark:n}))))})),o}function le(t,e,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const o=t.find((t=>t.type===e&&t.name===n));return!!o&&o.attribute.keepOnSplit})))}function ce(t,e,n={}){const{empty:o,ranges:i}=t.selection,r=e?bt(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter((t=>!r||r.name===t.type.name)).find((t=>pt(t.attrs,n,{strict:!1})));let s=0;const a=[];if(i.forEach((({$from:e,$to:n})=>{const o=e.pos,i=n.pos;t.doc.nodesBetween(o,i,((t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);s+=r-n,a.push(...t.marks.map((t=>({mark:t,from:n,to:r}))))}))})),0===s)return!1;const l=a.filter((t=>!r||r.name===t.mark.type.name)).filter((t=>pt(t.mark.attrs,n,{strict:!1}))).reduce(((t,e)=>t+e.to-e.from),0),c=a.filter((t=>!r||t.mark.type!==r&&t.mark.type.excludes(r))).reduce(((t,e)=>t+e.to-e.from),0);return(l>0?l+c:l)>=s}function de(t,e,n={}){if(!e)return At(t,null,n)||ce(t,null,n);const o=Ot(e,t.schema);return"node"===o?At(t,e,n):"mark"===o&&ce(t,e,n)}function ue(t,e){const{nodeExtensions:n}=L(e),o=n.find((e=>e.name===t));if(!o)return!1;const i=F(H(o,"group",{name:o.name,options:o.options,storage:o.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function he(t){var e;const n=null===(e=t.type.createAndFill())||void 0===e?void 0:e.toJSON(),o=t.toJSON();return JSON.stringify(n)===JSON.stringify(o)}function pe(t){return t instanceof o.qv}function fe(t,e,n){const o=t.state.doc.content.size,i=yt(e,0,o),r=yt(n,0,o),s=t.coordsAtPos(i),a=t.coordsAtPos(r,-1),l=Math.min(s.top,a.top),c=Math.max(s.bottom,a.bottom),d=Math.min(s.left,a.left),u=Math.max(s.right,a.right),h={top:l,bottom:c,left:d,right:u,width:u-d,height:c-l,x:d,y:l};return{...h,toJSON:()=>h}}function me(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter((t=>null==e?void 0:e.includes(t.type.name)));t.tr.ensureMarks(o)}}const ge=(t,e)=>{const n=Bt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,n.pos)||(t.join(n.pos),!0)},be=(t,e)=>{const n=Bt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,o)||(t.join(o),!0)};var ve=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame((()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:i}=o;return!n||(i.forEach((({$from:n,$to:o})=>{t.doc.nodesBetween(n.pos,o.pos,((t,n)=>{if(t.type.isText)return;const{doc:o,mapping:i}=e,r=o.resolve(i.map(n)),s=o.resolve(i.map(n+t.nodeSize)),l=r.blockRange(s);if(!l)return;const c=(0,a.k9)(l);if(t.type.isTextblock){const{defaultType:t}=r.parent.contentMatchAt(r.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)}))})),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>y(t,e),cut:(t,e)=>({editor:n,tr:i})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);i.deleteRange(t.from,t.to);const a=i.mapping.map(e);return i.insert(a,s.content),i.setSelection(new o.Bs(i.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const i=t.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===o.type){if(e){const e=i.before(n),o=i.after(n);t.delete(e,o).scrollIntoView()}return!0}return!1},deleteNode:t=>({tr:e,state:n,dispatch:o})=>{const i=R(t,n.schema),r=e.selection.$anchor;for(let t=r.depth;t>0;t-=1)if(r.node(t).type===i){if(o){const n=r.before(t),o=r.after(t);e.delete(n,o).scrollIntoView()}return!0}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:o,to:i}=t;return n&&e.delete(o,i),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>v(t,e),extendMarkRange:(t,e={})=>({tr:n,state:i,dispatch:r})=>{const s=bt(t,i.schema),{doc:a,selection:l}=n,{$from:c,from:d,to:u}=l;if(r){const t=gt(c,s,e);if(t&&t.from<=d&&t.to>=u){const e=o.Bs.create(a,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t({editor:n,view:o,tr:i,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{xt()&&o.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(o.focus(),(null==e?void 0:e.scrollIntoView)&&n.commands.scrollIntoView())}))};if(o.hasFocus()&&null===t||!1===t)return!0;if(r&&null===t&&!vt(n.state.selection))return s(),!0;const a=wt(i.doc,t)||n.state.selection,l=n.state.selection.eq(a);return r&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},forEach:(t,e)=>n=>t.every(((t,o)=>e(t,{...n,index:o}))),insertContent:(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:r})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const i=Ct(e,r.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===i.toString())return!0;let{from:s,to:a}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},l=!0,c=!0;if((i.toString().startsWith("<")?i:[i]).forEach((t=>{t.check(),l=!!l&&t.isText&&0===t.marks.length,c=!!c&&t.isBlock})),s===a&&c){const{parent:t}=o.doc.resolve(s);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(s-=1,a+=1)}l?Array.isArray(e)?o.insertText(e.map((t=>t.text||"")).join(""),s,a):"object"==typeof e&&e&&e.text?o.insertText(e.text,s,a):o.insertText(e,s,a):o.replaceWith(s,a,i),n.updateSelection&&Mt(o,o.steps.length-1,-1)}return!0},joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection,r=i instanceof o.qv;if(r){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.from))return!1;n=i.from}else if(n=(0,a.GJ)(t.doc,i.from,-1),null==n)return!1;if(e){let i=t.tr.join(n);r&&i.setSelection(o.qv.create(i.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0})(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection;if(i instanceof o.qv){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.to))return!1;n=i.to}else if(n=(0,a.GJ)(t.doc,i.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinBackward:()=>({state:t,dispatch:e})=>c(t,e),joinForward:()=>({state:t,dispatch:e})=>p(t,e),joinItemBackward:()=>({tr:t,state:e,dispatch:n})=>{try{const o=(0,a.GJ)(e.doc,e.selection.$from.pos,-1);return null!=o&&(t.join(o,2),n&&n(t),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const o=(0,a.GJ)(t.doc,t.selection.$from.pos,1);return null!=o&&(n.join(o,2),e&&e(n),!0)}catch(t){return!1}},keyboardShortcut:t=>({editor:e,view:n,tr:o,dispatch:i})=>{const r=function(t){const e=t.split(/-(?!$)/);let n,o,i,r,s=e[e.length-1];"Space"===s&&(s=" ");for(let t=0;t!["Alt","Ctrl","Meta","Shift"].includes(t))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction((()=>{n.someProp("handleKeyDown",(t=>t(n,a)))}));return null==l||l.steps.forEach((t=>{const e=t.map(o.mapping);e&&i&&o.maybeStep(e)})),!0},lift:(t,e={})=>({state:n,dispatch:o})=>!!At(n,R(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:o}=t.selection,i=n.blockRange(o),r=i&&(0,a.k9)(i);return null!=r&&(e&&e(t.tr.lift(i,r).scrollIntoView()),!0)})(n,o),liftEmptyBlock:()=>({state:t,dispatch:e})=>w(t,e),liftListItem:t=>({state:e,dispatch:n})=>{return(o=R(t,e.schema),function(t,e){let{$from:n,$to:i}=t.selection,r=n.blockRange(i,(t=>t.childCount>0&&t.firstChild.type==o));return!!r&&(!e||(n.node(r.depth-1).type==o?function(t,e,n,o){let i=t.tr,r=o.end,l=o.$to.end(o.depth);rr;e--)t-=i.child(e).nodeSize,o.delete(t-1,t+1);let r=o.doc.resolve(n.start),l=r.nodeAfter;if(o.mapping.map(n.end)!=n.start+r.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==i.childCount,u=r.node(-1),h=r.index(-1);if(!u.canReplace(h+(c?0:1),h+1,l.content.append(d?s.HY.empty:s.HY.from(i))))return!1;let p=r.pos,f=p+l.nodeSize;return o.step(new a.FC(p-(c?1:0),f+(d?1:0),p+1,f-1,new s.p2((c?s.HY.empty:s.HY.from(i.copy(s.HY.empty))).append(d?s.HY.empty:s.HY.from(i.copy(s.HY.empty))),c?0:1,d?0:1),c?0:1)),e(o.scrollIntoView()),!0}(t,e,r)))})(e,n);var o},newlineInCode:()=>({state:t,dispatch:e})=>g(t,e),resetAttributes:(t,e)=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=R(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{o.doc.nodesBetween(t.$from.pos,t.$to.pos,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,Tt(t.attrs,e)),s&&t.marks.length&&t.marks.forEach((i=>{s===i.type&&n.addMark(o,o+t.nodeSize,s.create(Tt(i.attrs,e)))}))}))})),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>f(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:i,to:r}=t.selection,s=i.sharedDepth(r);return 0!=s&&(n=i.before(s),e&&e(t.tr.setSelection(o.qv.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>M(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>C(t,e),setContent:(t,e=!1,n={})=>({tr:o,editor:i,dispatch:r})=>{const{doc:s}=o,a=Nt(t,i.schema,n);return r&&o.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const{selection:r}=n,{empty:s,ranges:a}=r,l=bt(t,o.schema);if(i)if(s){const t=Et(o,l);n.addStoredMark(l.create({...t,...e}))}else a.forEach((t=>{const i=t.$from.pos,r=t.$to.pos;o.doc.nodesBetween(i,r,((t,o)=>{const s=Math.max(o,i),a=Math.min(o+t.nodeSize,r);t.marks.find((t=>t.type===l))?t.marks.forEach((t=>{l===t.type&&n.addMark(s,a,l.create({...t.attrs,...e}))})):n.addMark(s,a,l.create(e))}))}));return function(t,e,n){var o;const{selection:i}=e;let r=null;if(vt(i)&&(r=i.$cursor),r){const e=null!==(o=t.storedMarks)&&void 0!==o?o:r.marks();return!!n.isInSet(e)||!e.some((t=>t.type.excludes(n)))}const{ranges:s}=i;return s.some((({$from:e,$to:o})=>{let i=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,o.pos,((t,e,o)=>{if(i)return!1;if(t.isInline){const e=!o||o.type.allowsMarkType(n),r=!!n.isInSet(t.marks)||!t.marks.some((t=>t.type.excludes(n)));i=e&&r}return!i})),i}))}(o,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:o,chain:i})=>{const r=R(t,n.schema);return r.isTextblock?i().command((({commands:t})=>!!S(r,e)(n)||t.clearNodes())).command((({state:t})=>S(r,e)(t,o))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,i=yt(t,0,n.content.size),r=o.qv.create(n,i);e.setSelection(r)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:i,to:r}="number"==typeof t?{from:t,to:t}:t,s=o.Bs.atStart(n).from,a=o.Bs.atEnd(n).to,l=yt(i,s,a),c=yt(r,s,a),d=o.Bs.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const o=R(t,e.schema);return(i=o,function(t,e){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==i));if(!r)return!1;let l=r.startIndex;if(0==l)return!1;let c=r.parent,d=c.child(l-1);if(d.type!=i)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,o=s.HY.from(n?i.create():null),l=new s.p2(s.HY.from(i.create(null,s.HY.from(c.type.create(null,o)))),n?3:1,0),u=r.start,h=r.end;e(t.tr.step(new a.FC(u-(n?3:1),h,u,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var i},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:i,editor:r})=>{const{selection:s,doc:l}=e,{$from:c,$to:d}=s,u=le(r.extensionManager.attributes,c.node().type.name,c.node().attrs);if(s instanceof o.qv&&s.node.isBlock)return!(!c.parentOffset||!(0,a.Ax)(l,c.pos)||(i&&(t&&me(n,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),0));if(!c.parent.isBlock)return!1;if(i){const i=d.parentOffset===d.parent.content.size;s instanceof o.Bs&&e.deleteSelection();const l=0===c.depth?void 0:Vt(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=i&&l?[{type:l,attrs:u}]:void 0,p=(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,h);if(h||p||!(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,l?[{type:l}]:void 0)||(p=!0,h=l?[{type:l,attrs:u}]:void 0),p&&(e.split(e.mapping.map(c.pos),1,h),l&&!i&&!c.parentOffset&&c.parent.type!==l)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,l)&&e.setNodeMarkup(e.mapping.map(c.before()),l)}t&&me(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},splitListItem:t=>({tr:e,state:n,dispatch:i,editor:r})=>{var l;const c=R(t,n.schema),{$from:d,$to:u}=n.selection,h=n.selection.node;if(h&&h.isBlock||d.depth<2||!d.sameParent(u))return!1;const p=d.node(-1);if(p.type!==c)return!1;const f=r.extensionManager.attributes;if(0===d.parent.content.size&&d.node(-1).childCount===d.indexAfter(-1)){if(2===d.depth||d.node(-3).type!==c||d.index(-2)!==d.node(-2).childCount-1)return!1;if(i){let t=s.HY.empty;const n=d.index(-1)?1:d.index(-2)?2:3;for(let e=d.depth-n;e>=d.depth-3;e-=1)t=s.HY.from(d.node(e).copy(t));const i=d.indexAfter(-1){if(h>-1)return!1;t.isTextblock&&0===t.content.size&&(h=e+1)})),h>-1&&e.setSelection(o.Bs.near(e.doc.resolve(h))),e.scrollIntoView()}return!0}const m=u.pos===d.end()?p.contentMatchAt(0).defaultType:null,g=le(f,p.type.name,p.attrs),b=le(f,d.node().type.name,d.node().attrs);e.delete(d.pos,u.pos);const v=m?[{type:c,attrs:g},{type:m,attrs:b}]:[{type:c,attrs:g}];if(!(0,a.Ax)(e.doc,d.pos,2))return!1;if(i){const{selection:t,storedMarks:o}=n,{splittableMarks:s}=r.extensionManager,a=o||t.$to.parentOffset&&t.$from.marks();if(e.split(d.pos,2,v).scrollIntoView(),!a||!i)return!0;const l=a.filter((t=>s.includes(t.type.name)));e.ensureMarks(l)}return!0},toggleList:(t,e,n,o={})=>({editor:i,tr:r,state:s,dispatch:a,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,p=R(t,s.schema),f=R(e,s.schema),{selection:m,storedMarks:g}=s,{$from:b,$to:v}=m,y=b.blockRange(v),w=g||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const x=Bt((t=>ue(t.type.name,u)))(m);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return c.liftListItem(f);if(ue(x.node.type.name,u)&&p.validContent(x.node.content)&&a)return l().command((()=>(r.setNodeMarkup(x.pos,p),!0))).command((()=>ge(r,p))).command((()=>be(r,p))).run()}return n&&w&&a?l().command((()=>{const t=d().wrapInList(p,o),e=w.filter((t=>h.includes(t.type.name)));return r.ensureMarks(e),!!t||c.clearNodes()})).wrapInList(p,o).command((()=>ge(r,p))).command((()=>be(r,p))).run():l().command((()=>!!d().wrapInList(p,o)||c.clearNodes())).wrapInList(p,o).command((()=>ge(r,p))).command((()=>be(r,p))).run()},toggleMark:(t,e={},n={})=>({state:o,commands:i})=>{const{extendEmptyMarkRange:r=!1}=n,s=bt(t,o.schema);return ce(o,s,e)?i.unsetMark(s,{extendEmptyMarkRange:r}):i.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:i})=>{const r=R(t,o.schema),s=R(e,o.schema);return At(o,r,n)?i.setNode(s):i.setNode(r,n)},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const i=R(t,n.schema);return At(n,i,e)?o.lift(i):o.wrapIn(i,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(r.text){const n=e.doc.resolve(r.from).marks();e.replaceWith(r.from,r.to,t.schema.text(r.text,n))}else e.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:i}=n;return o||e&&i.forEach((e=>{t.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bt(t,o.schema),{$from:c,empty:d,ranges:u}=a;if(!i)return!0;if(d&&s){let{from:t,to:e}=a;const o=null===(r=c.marks().find((t=>t.type===l)))||void 0===r?void 0:r.attrs,i=gt(c,l,o);i&&(t=i.from,e=i.to),n.removeMark(t,e,l)}else u.forEach((t=>{n.removeMark(t.$from.pos,t.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=R(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{const i=t.$from.pos,a=t.$to.pos;o.doc.nodesBetween(i,a,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,{...t.attrs,...e}),s&&t.marks.length&&t.marks.forEach((r=>{if(s===r.type){const l=Math.max(o,i),c=Math.min(o+t.nodeSize,a);n.addMark(l,c,s.create({...r.attrs,...e}))}}))}))})),!0)},wrapIn:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,s=i.blockRange(r),l=s&&(0,a.nd)(s,t,e);return!!l&&(o&&o(n.tr.wrap(s,l).scrollIntoView()),!0)}}(R(t,n.schema),e)(n,o),wrapInList:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,l=i.blockRange(r),c=!1,d=l;if(!l)return!1;if(l.depth>=2&&i.node(l.depth-1).type.compatibleContent(t)&&0==l.startIndex){if(0==i.index(l.depth-1))return!1;let t=n.doc.resolve(l.start-2);d=new s.Ts(t,t,l.depth),l.endIndex=0;t--)r=s.HY.from(n[t].type.create(n[t].attrs,r));t.step(new a.FC(e.start-(o?2:0),e.end,e.start,e.end,new s.p2(r,0,0),n.length,!0));let l=0;for(let t=0;t({...ve})}),we=ct.create({name:"editable",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xe=ct.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new o.Sy({key:new o.H$("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),ke=ct.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first((({commands:t})=>[()=>t.undoInputRule(),()=>t.command((({tr:e})=>{const{selection:n,doc:i}=e,{empty:r,$anchor:s}=n,{pos:a,parent:l}=s,c=s.parent.isTextblock?e.doc.resolve(a-1):s,d=c.parent.type.spec.isolating,u=s.pos-s.parentOffset,h=d&&1===c.parent.childCount?u===s.pos:o.Y1.atStart(i).from===a;return!(!(r&&h&&l.type.isTextblock)||l.textContent.length)&&t.clearNodes()})),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()])),e=()=>this.editor.commands.first((({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},r={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return xt()||St()?r:i},addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clearDocument"),appendTransaction:(t,e,n)=>{if(!t.some((t=>t.docChanged))||e.doc.eq(n.doc))return;const{empty:i,from:r,to:s}=e.selection,a=o.Y1.atStart(e.doc).from,l=o.Y1.atEnd(e.doc).to;if(i||r!==a||s!==l)return;if(0!==n.doc.textBetween(0,n.doc.content.size," "," ").length)return;const c=n.tr,d=I({state:n,transaction:c}),{commands:u}=new D({editor:this.editor,state:d});return u.clearNodes(),c.steps.length?c:void 0}})]}}),Ce=ct.create({name:"tabindex",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Me=Object.freeze({__proto__:null,ClipboardTextSerializer:ht,Commands:ye,Editable:we,FocusEvents:xe,Keymap:ke,Tabindex:Ce});function Se(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==o)return o;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class Ae extends P{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Se('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=B(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],o=this.state.reconfigure({plugins:n});this.view.updateState(o)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((t=>!t.key.startsWith(e)))});this.view.updateState(n)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(Me):[],...this.options.extensions].filter((t=>["extension","node","mark"].includes(null==t?void 0:t.type)));this.extensionManager=new st(t,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=Nt(this.options.content,this.schema,this.options.parseOptions),e=wt(t,this.options.autofocus);this.view=new i.tk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:o.yy.create({doc:t,selection:e||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach((t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)})):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=t.getMeta("focus"),i=t.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:t}),i&&this.emit("blur",{editor:this,event:i.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return oe(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,o="string"==typeof t?e:t;return de(this.state,n,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Qt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return te(this.state.doc,{blockSeparator:e,textSerializers:{...ut(this.schema),...n}})}get isEmpty(){return he(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}}function Oe(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];if(s){const o=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(ae(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>l)).length)return null;cn.from&&r.delete(n.from+o,l);const d=n.from+o+s.length;r.addMark(n.from+o,d,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function Te(t){return new K({find:t.find,handler:({state:e,range:n,match:i})=>{var r;const s=F(t.getAttributes,void 0,i)||{},{tr:a}=e,l=t.blockReplace?n.from-1:n.from;let c=n.to;const d=t.type.create(s),{$to:u}=a.selection;if(i[1]){let t=l+i[0].lastIndexOf(i[1]);t>c?t=c:c=t+i[1].length;const e=i[0][i[0].length-1];a.insertText(e,l+i[0].length-1),a.replaceWith(t,c,d)}else i[0]&&a.replaceWith(l,c,d);if(t.blockReplace&&t.addExtraNewline){const t=u.end();if(u.nodeAfter)console.log(u.node().type.name),u.nodeAfter.isTextblock?a.setSelection(o.Bs.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(o.qv.create(a.doc,u.pos)):a.setSelection(o.Bs.create(a.doc,u.pos));else{const e=null===(r=u.parent.type.contentMatch.defaultType)||void 0===r?void 0:r.create();e&&(a.insert(t,e),a.setSelection(o.Bs.create(a.doc,t+1)))}a.scrollIntoView()}}})}function Ne(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=e.doc.resolve(n.from),r=F(t.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,r)}})}function Ee(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}function Ie(t){return new K({find:t.find,handler:({state:e,range:n,match:o,chain:i})=>{const r=F(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&(0,a.nd)(l,t.type,r);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:o}=e,{splittableMarks:i}=t.editor.extensionManager,r=o||n.$to.parentOffset&&n.$from.marks();if(r){const t=r.filter((t=>i.includes(t.type.name)));s.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";i().updateAttributes(e,r).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,a.Mn)(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,d))&&s.join(n.from-1)}})}class De{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new De(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new De(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){const i=o.marks();if(!i.find((t=>(null==t?void 0:t.type.name)===e.name)))return!1;const r=i.find((t=>(null==t?void 0:t.type.name)===e.name));return r&&n.removeStoredMark(r),n.insertText(" ",o.pos),t.view.dispatch(n),!0}return!1}}class Pe{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Pe(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Pe(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}class He{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,i,r,s,a,l;const{view:c}=this.editor,d=t.target,u=3===d.nodeType?null===(e=d.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(d))||!u)return;let h=0,p=0;if(this.dom!==u){const e=this.dom.getBoundingClientRect(),n=u.getBoundingClientRect(),o=null!==(i=t.offsetX)&&void 0!==i?i:null===(r=t.nativeEvent)||void 0===r?void 0:r.offsetX,l=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=n.x-e.x+o,p=n.y-e.y+l}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=o.qv.create(c.state.doc,this.getPos()),m=c.state.tr.setSelection(f);c.dispatch(m)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const n=t.target;if(!this.dom.contains(n)||(null===(e=this.contentDOM)||void 0===e?void 0:e.contains(n)))return!1;const i=t.type.startsWith("drag"),r="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!r&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=o.qv.isSelectable(this.node),d="copy"===t.type,u="paste"===t.type,h="cut"===t.type,p="mousedown"===t.type;if(!l&&c&&i&&t.preventDefault(),l&&i&&!a)return t.preventDefault(),!1;if(l&&s&&!a&&p){const t=n.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("drop",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(a||r||d||u||h||p&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&(xt()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every((t=>t.isContentEditable))||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command((({tr:e})=>{const n=this.getPos();return e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0}))}deleteNode(){const t=this.getPos(),e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}}function Le(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];let l=n.to;if(s){const o=a.search(/\S/),c=n.from+a.indexOf(s),d=c+s.length;if(ae(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>c)).length)return null;dn.from&&r.delete(n.from+o,c),l=n.from+o+s.length,r.addMark(n.from+o,l,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function _e(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(t){return"string"==typeof t}function ze(t){return new nt({find:t.find,handler({match:e,chain:n,range:o}){const i=F(t.getAttributes,void 0,e);if(!1===i||null===i)return null;e.input&&n().deleteRange(o).insertContentAt(o.from,{type:t.type.name,attrs:i})}})}function $e(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}class Be{constructor(t){this.transaction=t,this.currentStep=this.transaction.steps.length}map(t){let e=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce(((t,n)=>{const o=n.getMap().mapResult(t);return o.deleted&&(e=!0),o.pos}),t),deleted:e}}}},54424:(t,e,n)=>{n.r(e),n.d(e,{Heading:()=>i,default:()=>i});var o=n(11046);const i=o.Node.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,(0,o.mergeAttributes)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>(0,o.textblockTypeInputRule)({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}})},44632:(t,e,n)=>{n.r(e),n.d(e,{Image:()=>r,default:()=>r,inputRegex:()=>i});var o=n(11046);const i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,r=o.Node.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[(0,o.nodeInputRule)({find:i,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]}})},84402:(t,e,n)=>{n.r(e),n.d(e,{TextStyle:()=>i,default:()=>i});var o=n(11046);const i=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}})},31690:(t,e,n)=>{n.d(e,{$:()=>f,h:()=>p});for(var o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},r="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)o[48+a]=o[96+a]=String(a);for(a=1;a<=24;a++)o[a+111]="F"+a;for(a=65;a<=90;a++)o[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in o)i.hasOwnProperty(l)||(i[l]=o[l]);var c=n(62463);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function u(t){let e,n,o,i,r=t.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(let t=0;t127)&&(a=o[n.keyCode])&&a!=l){let o=e[h(a,n)];if(o&&o(t.state,t.dispatch,t))return!0}}return!1}}},27439:(t,e,n)=>{function o(t){this.content=t}n.d(e,{aw:()=>K,PW:()=>at,HY:()=>a,vc:()=>u,ZU:()=>U,NB:()=>I,Ts:()=>N,e4:()=>h,V_:()=>W,p2:()=>p}),o.prototype={constructor:o,find:function(t){for(var e=0;e>1}},o.from=function(t){if(t instanceof o)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new o(e)};const i=o;function r(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(o),s=e.child(o);if(i!=s){if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let t=0;i.text[t]==s.text[t];t++)n++;return n}if(i.content.size||s.content.size){let t=r(i.content,s.content,n+1);if(null!=t)return t}n+=i.nodeSize}else n+=i.nodeSize}}function s(t,e,n,o){for(let i=t.childCount,r=e.childCount;;){if(0==i||0==r)return i==r?null:{a:n,b:o};let a=t.child(--i),l=e.child(--r),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:o};if(a.isText&&a.text!=l.text){let t=0,e=Math.min(a.text.length,l.text.length);for(;tt&&!1!==n(a,o+s,i||null,r)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,t-i),Math.min(a.content.size,e-i),n,o+i)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,o){let i="",r=!0;return this.nodesBetween(t,e,((s,a)=>{s.isText?(i+=s.text.slice(Math.max(t,a)-a,e-a),r=!n):s.isLeaf?(o?i+="function"==typeof o?o(s):o:s.type.spec.leafText&&(i+=s.type.spec.leafText(s)),r=!n):!r&&s.isBlock&&(i+=n,r=!0)}),0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(o[o.length-1]=e.withText(e.text+n.text),i=1);it)for(let i=0,r=0;rt&&((re)&&(s=s.isText?s.cut(Math.max(0,t-r),Math.min(s.text.length,e-r)):s.cut(Math.max(0,t-r-1),Math.min(s.content.size,e-r-1))),n.push(s),o+=s.nodeSize),r=a}return new a(n,o)}cutByIndex(t,e){return t==e?a.empty:0==t&&e==this.content.length?this:new a(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let o=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return o[t]=e,new a(o,i)}addToStart(t){return new a([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new a(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,o=0;;n++){let i=o+this.child(n).nodeSize;if(i>=t)return i==t||e>0?c(n+1,i):c(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((t=>t.toJSON())):null}static fromJSON(t,e){if(!e)return a.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return a.empty;let e,n=0;for(let o=0;o{class t{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let o=0;othis.type.rank&&(e||(e=t.slice(0,o)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;et.type.rank-e.type.rank)),n}}return t.none=[],t})();class h extends Error{}class p{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new p(n,this.openStart,this.openEnd)}removeBetween(t,e){return new p(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let n=e.openStart||0,o=e.openEnd||0;if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new p(a.fromJSON(t,e.content),n,o)}static maxOpen(t,e=!0){let n=0,o=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)o++;return new p(t,n,o)}}function f(t,e,n){let{index:o,offset:i}=t.findIndex(e),r=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(i==e||r.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,r.copy(f(r.content,e-i-1,n-i-1)))}function m(t,e,n,o){let{index:i,offset:r}=t.findIndex(e),s=t.maybeChild(i);if(r==e||s.isText)return o&&!o.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=m(s.content,e-r-1,n);return a&&t.replaceChild(i,s.copy(a))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,o){let i=t.index(o),r=t.node(o);if(i==e.index(o)&&o=0;t--)o=e.node(t).copy(a.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}(n,t);return k(r,C(t,i,s,e,o))}{let o=t.parent,i=o.content;return k(o,i.cut(0,t.parentOffset).append(n.content).append(i.cut(e.parentOffset)))}}return k(r,M(t,e,o))}function v(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function y(t,e,n){let o=t.node(n);return v(o,e.node(n)),o}function w(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function x(t,e,n,o){let i=(e||t).node(n),r=0,s=e?e.index(n):i.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(w(t.nodeAfter,o),r++));for(let t=r;ti&&y(t,e,i+1),s=o.depth>i&&y(n,o,i+1),l=[];return x(null,t,i,l),r&&s&&e.index(i)==n.index(i)?(v(r,s),w(k(r,C(t,e,n,o,i+1)),l)):(r&&w(k(r,M(t,e,i+1)),l),x(e,n,i,l),s&&w(k(s,M(n,o,i+1)),l)),x(o,null,i,l),new a(l)}function M(t,e,n){let o=[];return x(null,t,n,o),t.depth>n&&w(k(y(t,e,n+1),M(t,e,n+1)),o),x(e,null,n,o),new a(o)}p.empty=new p(a.empty,0,0);class S{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=t.child(e);return n?t.child(e).cut(n):o}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],o=0==e?0:this.path[3*e-1]+1;for(let e=0;e0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new N(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],o=0,i=e;for(let e=t;;){let{index:t,offset:r}=e.content.findIndex(i),s=i-r;if(n.push(e,t,o+r),!s)break;if(e=e.child(t),e.isText)break;i=s-1,o+=r+1}return new S(e,n,i)}static resolveCached(t,e){for(let n=0;nt&&this.nodesBetween(t,e,(t=>(n.isInSet(t.marks)&&(o=!0),!o))),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),P(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=a.empty,o=0,i=n.childCount){let r=this.contentMatchAt(t).matchFragment(n,o,i),s=r&&r.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=o;tt.type.name))}`);this.content.forEach((t=>t.check()))}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((t=>t.toJSON()))),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let o=a.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,o,n)}}I.prototype.text=void 0;class D extends I{constructor(t,e,n,o){if(super(t,e,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):P(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new D(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new D(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function P(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class H{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new L(t,e);if(null==n.next)return H.empty;let o=_(n);n.next&&n.err("Unexpected trailing text");let i=function(t){let e=Object.create(null);return function n(o){let i=[];o.forEach((e=>{t[e].forEach((({term:e,to:n})=>{if(!e)return;let o;for(let t=0;t{o||i.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)}))}))}));let r=e[o.join(",")]=new H(o.indexOf(t.length-1)>-1);for(let t=0;te.concat(t(n,r))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return o(r,s),i(t(e.expr,s),s),[o(s)]}if("plus"==e.type){let s=n();return i(t(e.expr,r),s),i(t(e.expr,s),s),[o(s)]}if("opt"==e.type)return[o(r)].concat(t(e.expr,r));if("range"==e.type){let s=r;for(let o=0;ot.to=e))}}(o));return function(t,e){for(let n=0,o=[t];nt.createAndFill())));for(let t=0;t=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let o=0;o{let o=n+(e.validEnd?"*":" ")+" ";for(let n=0;n"+t.indexOf(e.next[n].next);return o})).join("\n")}}H.empty=new H(!0);class L{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function _(t){let e=[];do{e.push(R(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function R(t){let e=[];do{e.push(z(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function z(t){let e=function(t){if(t.eat("(")){let e=_(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let i=[];for(let t in n){let o=n[t];o.groups.indexOf(e)>-1&&i.push(o)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i}(t,t.next).map((e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e})));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=B(t,e)}return e}function $(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function B(t,e){let n=$(t),o=n;return t.eat(",")&&(o="}"!=t.next?$(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function F(t,e){return e-t}function J(t,e){let n=[];return function e(o){let i=t[o];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(o);for(let t=0;t-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;en[t]=new Y(t,e,o)));let o=e.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class V{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class U{constructor(t,e,n,o){this.name=t,this.rank=e,this.schema=n,this.spec=o,this.attrs=q(o.attrs),this.excluded=null;let i=Z(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,j(this.attrs,t))}static compile(t,e){let n=Object.create(null),o=0;return t.forEach(((t,i)=>n[t]=new U(t,o++,e,i))),n}removeFromSet(t){for(var e=0;e-1}}class W{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=i.from(t.nodes),e.marks=i.from(t.marks||{}),this.nodes=Y.compile(this.spec.nodes,this),this.marks=U.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],o=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[o]||(n[o]=H.parse(o,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?Q(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:Q(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,o){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Y))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,o)}text(t,e){let n=this.nodes.text;return new D(n,n.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return I.fromJSON(this,t)}markFromJSON(t){return u.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Q(t,e){let n=[];for(let o=0;o-1)&&n.push(s=o)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}class K{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((t=>{t.tag?this.tags.push(t):t.style&&this.styles.push(t)})),this.normalizeLists=!this.tags.some((e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,e.from,e.to),p.maxOpen(n.finish())}matchTag(t,e,n){for(let o=n?this.tags.indexOf(n)+1:0;ot.length&&(61!=r.charCodeAt(t.length)||r.slice(t.length+1)!=e))){if(o.getAttrs){let t=o.getAttrs(e);if(!1===t)continue;o.attrs=t||void 0}return o}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,o=0;for(;o{n(t=rt(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)}))}for(let e in t.nodes){let o=t.nodes[e].spec.parseDOM;o&&o.forEach((t=>{n(t=rt(t)),t.node||t.ignore||t.mark||(t.node=e)}))}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new K(t,K.schemaRules(t)))}}const G={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},X={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tt={ol:!0,ul:!0};function et(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class nt{constructor(t,e,n,o,i,r,s){this.type=t,this.attrs=e,this.marks=n,this.pendingMarks=o,this.solid=i,this.options=s,this.content=[],this.activeMarks=u.none,this.stashMarks=[],this.match=r||(4&s?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(a.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=a.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,n=this.pendingMarks;ethis.addAll(t))),e&&this.sync(n),this.needsBlock=r}else this.withStyleRules(t,(()=>{this.addElementByRule(t,i,!1===i.consuming?n:void 0)}))}leafFallback(t){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"))}ignoreFallback(t){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(t){let e=u.none,n=u.none;for(let o=0;o{r.clearMark(t)&&(n=t.addToSet(n))})):e=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(e),!1!==r.consuming)break;i=r}return[e,n]}addElementByRule(t,e,n){let o,i,r;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(t):o=this.enter(i,e.attrs||null,e.preserveWhitespace)):(r=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(r));let s=this.top;if(i&&i.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((t=>this.insertNode(t)));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n)}o&&this.sync(s)&&this.open--,r&&this.removePendingMark(r,s)}addAll(t,e,n){let o=e||0;for(let i=e?t.childNodes[e]:t.firstChild,r=null==n?null:t.childNodes[n];i!=r;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i);this.findAtPoint(t,o)}findPlace(t){let e,n;for(let o=this.open;o>=0;o--){let i=this.nodes[o],r=i.findWrapping(t);if(r&&(!e||e.length>r.length)&&(e=r,n=i,!r.length))break;if(i.solid)break}if(!e)return!1;this.sync(n);for(let t=0;tthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,o=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),i=-(n?n.depth+1:0)+(o?0:1),r=(t,s)=>{for(;t>=0;t--){let a=e[t];if(""==a){if(t==e.length-1||0==t)continue;for(;s>=i;s--)if(r(t-1,s))return!0;return!1}{let t=s>0||0==s&&o?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!t||t.name!=a&&-1==t.groups.indexOf(a))return!1;s--}}return!0};return r(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(t){let e=function(t,e){for(let n=0;n=0;n--){let o=this.nodes[n];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let e=o.popFromStashMark(t);e&&o.type&&o.type.allowsMarkType(e.type)&&(o.activeMarks=e.addToSet(o.activeMarks))}if(o==e)break}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function rt(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let o in n){let i=n[o];if(!i.allowsMarkType(t))continue;let r=[],s=t=>{r.push(t);for(let n=0;n{if(i.length||t.marks.length){let n=0,r=0;for(;n=0;o--){let i=this.serializeMark(t.marks[o],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let o=this.marks[t.type.name];return o&&at.renderSpec(ct(n),o(t,e))}static renderSpec(t,e,n=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));let s=n?t.createElementNS(n,i):t.createElement(i),a=e[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let t in a)if(null!=a[t]){let e=t.indexOf(" ");e>0?s.setAttributeNS(t.slice(0,e),t.slice(e+1),a[t]):s.setAttribute(t,a[t])}}for(let i=l;il)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:e,contentDOM:i}=at.renderSpec(t,r,n);if(s.appendChild(e),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new at(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=lt(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return lt(t.marks)}}function lt(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ct(t){return t.document||window.document}},62463:(t,e,n)=>{n.d(e,{C1:()=>f,yy:()=>C,qv:()=>h,Sy:()=>S,H$:()=>T,Y1:()=>s,xm:()=>a,Bs:()=>d});var o=n(27439),i=n(38480);const r=Object.create(null);class s{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new a(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let i=e<0?g(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):g(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=r[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in r)throw new RangeError("Duplicate use of selection JSON ID "+t);return r[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends s{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return s.near(n);let o=t.resolve(e.map(this.anchor));return new d(o.parent.inlineContent?o:n,n)}replace(t,e=o.p2.empty){if(super.replace(t,e),e==o.p2.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new u(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let o=t.resolve(e);return new this(o,n==e?o:t.resolve(n))}static between(t,e,n){let o=t.pos-e.pos;if(n&&!o||(n=o>=0?1:-1),!e.parent.inlineContent){let t=s.findFrom(e,n,!0)||s.findFrom(e,-n,!0);if(!t)return s.near(e,n);e=t.$head}return t.parent.inlineContent||(0==o||(t=(s.findFrom(t,-n,!0)||s.findFrom(t,n,!0)).$anchor).posnew f(t)};function g(t,e,n,o,i,r=!1){if(e.inlineContent)return d.create(t,n);for(let s=o-(i>0?0:1);i>0?s=0;s+=i){let o=e.child(s);if(o.isAtom){if(!r&&h.isSelectable(o))return h.create(t,n-(i<0?o.nodeSize:0))}else{let e=g(t,o,n+i,i<0?o.childCount:0,i,r);if(e)return e}n+=o.nodeSize*i}return null}function b(t,e,n){let o=t.steps.length-1;if(o{null==r&&(r=o)})),t.setSelection(s.near(t.doc.resolve(r),n)))}class v extends i.wx{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return o.vc.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||o.vc.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let o=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,o.text(t,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=y(e.init,n),this.apply=y(e.apply,n)}}const x=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||s.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,o)=>o.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class k{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new w(t.key,t.spec.state,t))}))}}class C{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;nt.toJSON()))),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[n],i=o.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(o,this[o.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new k(t.schema,t.plugins),r=new C(i);return i.fields.forEach((i=>{if("doc"==i.name)r.doc=o.NB.fromJSON(t.schema,e.doc);else if("selection"==i.name)r.selection=s.fromJSON(r.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(r.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,o))return void(r[i.name]=a.fromJSON.call(s,t,e[o],r))}r[i.name]=i.init(t,r)}})),r}}function M(t,e,n){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(e):"handleDOMEvents"==o&&(i=M(i,e,{})),n[o]=i}return n}class S{constructor(t){this.spec=t,this.props={},t.props&&M(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}const A=Object.create(null);function O(t){return t in A?t+"$"+ ++A[t]:(A[t]=0,t+"$")}class T{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},38480:(t,e,n)=>{n.d(e,{vs:()=>l,FC:()=>v,Pu:()=>b,wx:()=>J,Mn:()=>S,Ax:()=>M,nj:()=>T,nd:()=>k,GJ:()=>O,k9:()=>x,dR:()=>N});var o=n(27439);const i=Math.pow(2,16);function r(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,n=r(t);if(!this.inverted)for(let t=0;tt)break;let d=this.ranges[l+r],u=this.ranges[l+a],h=c+d;if(t<=h){let r=c+o+((d?t==c?-1:t==h?1:e:e)<0?0:u);if(n)return r;let a=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(a|=8),new s(r,a,t==(e<0?c:h)?null:l/3+(t-c)*i)}o+=u-d}return n?t+o:new s(t+o,0,null)}touches(t,e){let n=0,o=r(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;et)break;let a=this.ranges[e+i];if(t<=r+a&&e==3*o)return!0;n+=this.ranges[e+s]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,i=0;o=0;e--){let o=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=o&&o>e?n-o-1:void 0)}}invert(){let t=new l;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;nn&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),i),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,r)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new p(e.pos,n.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("addMark",p);class f extends d{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new o.p2(h(e.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),t),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,n)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("removeMark",f);class m extends d{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;nn.pos?null:new v(e.pos,n.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(e.from,e.to,e.gapFrom,e.gapTo,o.p2.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let o=t.resolve(e),i=n-e,r=o.depth;for(;i>0&&r>0&&o.indexAfter(r)==o.node(r).childCount;)r--,i--;if(i>0){let t=o.node(r).maybeChild(o.indexAfter(r));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function w(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function x(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let o=t.$from.node(n),i=t.$from.index(n),r=t.$to.indexAfter(n);if(nr;t--,e--){let n=i.node(t),r=i.index(t);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(r,n.childCount),a=o&&o[e+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=o&&o[e]||n;if(!n.canReplace(r+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(r),l=o&&o[0];return i.node(r).canReplaceWith(a,a,l?l.type:i.node(r+1).type)}function S(t,e){let n=t.resolve(e),o=n.index();return A(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function A(t,e){return!(!t||!e||t.isLeaf||!t.canAppend(e))}function O(t,e,n=-1){let o=t.resolve(e);for(let t=o.depth;;t--){let i,r,s=o.index(t);if(t==o.depth?(i=o.nodeBefore,r=o.nodeAfter):n>0?(i=o.node(t+1),s++,r=o.node(t).maybeChild(s)):(i=o.node(t).maybeChild(s-1),r=o.node(t+1)),i&&!i.isTextblock&&A(i,r)&&o.node(t).canReplace(s,s+1))return e;if(0==t)break;e=n<0?o.before(t):o.after(t)}}function T(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t=0;e--){let n=e==o.depth?0:o.pos<=(o.start(e+1)+o.end(e+1))/2?-1:1,r=o.index(e)+(n>0?1:0),s=o.node(e),a=!1;if(1==t)a=s.canReplace(r,r,i);else{let t=s.contentMatchAt(r).findWrapping(i.firstChild.type);a=t&&s.canReplaceWith(r,r,t[0])}if(a)return 0==n?o.pos:n<0?o.before(e+1):o.after(e+1)}return null}function N(t,e,n=e,i=o.p2.empty){if(e==n&&!i.size)return null;let r=t.resolve(e),s=t.resolve(n);return E(r,s,i)?new b(e,n,i):new I(r,s,i).fit()}function E(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}d.jsonID("replaceAround",v);class I{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=o.HY.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=o.HY.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let r=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new o.p2(r,s,a);return t>-1?new v(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new b(n.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,o=this.unplaced.openEnd;n1&&(o=0),i.type.spec.isolating&&o<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=H(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let r=t.firstChild;for(let t=this.depth;t>=0;t--){let s,{type:a,match:l}=this.frontier[t],c=null;if(1==e&&(r?l.matchType(r.type)||(c=l.fillBefore(o.HY.from(r),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:t,parent:i,inject:c};if(2==e&&r&&(s=l.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:t,parent:i,wrap:s};if(i&&l.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new o.p2(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);if(i.childCount<=1&&e>0){let r=t.size-e<=e+i.size;this.unplaced=new o.p2(D(t,e-1,1),e-1,r?e-1:n)}else this.unplaced=new o.p2(D(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:r}){for(;this.depth>e;)this.closeFrontierNode();if(r)for(let t=0;t1||0==l||t.content.size)&&(u=e,d.push(L(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=P(this.placed,e,o.HY.from(d)),this.frontier[e].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:o}=this.frontier[e],i=e=0;n--){let{match:e,type:o}=this.frontier[n],i=_(t,n,o,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:r,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=P(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),o=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,o)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=P(this.placed,this.depth,o.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(o.HY.empty,!0);t.childCount&&(this.placed=P(this.placed,this.frontier.length,t))}}function D(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(D(t.firstChild.content,e-1,n)))}function P(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(P(t.lastChild.content,e-1,n)))}function H(t,e){for(let n=0;n1&&(i=i.replaceChild(0,L(i.firstChild,e-1,1==i.childCount?n-1:0))),e>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(o.HY.empty,!0)))),t.copy(i)}function _(t,e,n,o,i){let r=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==r.childCount&&!n.compatibleContent(r.type))return null;let a=o.fillBefore(r.content,!0,s);return a&&!function(t,e,n){for(let o=n;oi){let e=r.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(o.HY.empty,!0))}return t}function $(t,e){let n=[];for(let o=Math.min(t.depth,e.depth);o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class B extends d{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(i),0,e.isLeaf?0:1))}getMap(){return a.empty}invert(t){return new B(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new B(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new B(e.pos,e.attr,e.value)}}d.jsonID("attr",B);let F=class extends Error{};F=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(F.prototype=Object.create(Error.prototype)).constructor=F,F.prototype.name="TransformError";class J{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new F(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=o.p2.empty){let i=N(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new o.p2(o.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,o.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),s=t.doc.resolve(n);if(E(r,s,i))return t.step(new b(e,n,i));let a=$(r,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(r.depth+1);a.unshift(l);for(let t=r.depth,e=r.pos-1;t>0;t--,e--){let n=r.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:r.before(t)==e&&a.splice(1,0,-t)}let c=a.indexOf(l),d=[],u=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==i.openStart)break;t=n.content}for(let t=u-1;t>=0;t--){let e=d[t].type,n=R(e);if(n&&r.node(c).type!=e)u=t;else if(n||!e.isTextblock)break}for(let e=i.openStart;e>=0;e--){let l=(e+u+1)%(i.openStart+1),h=d[l];if(h)for(let e=0;e=0&&(t.replace(e,n,i),!(t.steps.length>h));o--){let t=a[o];t<0||(e=r.before(t),n=s.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=function(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(0==o.parentOffset)for(let t=o.depth-1;t>=0;t--){let e=o.index(t);if(o.node(t).canReplaceWith(e,e,n))return o.before(t+1);if(e>0)return null}if(o.parentOffset==o.parent.content.size)for(let t=o.depth-1;t>=0;t--){let e=o.indexAfter(t);if(o.node(t).canReplaceWith(e,e,n))return o.after(t+1);if(e0&&(s||o.node(n-1).canReplace(o.index(n-1),i.indexAfter(n-1))))return t.delete(o.before(n),i.after(n))}for(let r=1;r<=o.depth&&r<=i.depth;r++)if(e-o.start(r)==o.depth-r&&n>o.end(r)&&i.end(r)-n!=i.depth-r)return t.delete(o.before(r),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:i,$to:r,depth:s}=e,a=i.before(s+1),l=r.after(s+1),c=a,d=l,u=o.HY.empty,h=0;for(let t=s,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,u=o.HY.from(i.node(t).copy(u)),h++):c--;let p=o.HY.empty,f=0;for(let t=s,e=!1;t>n;t--)e||r.after(t+1)=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=o.HY.from(n[t].type.create(n[t].attrs,i))}let r=e.start,s=e.end;t.step(new v(r,s,r,s,new o.p2(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){return function(t,e,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,((e,n)=>{if(e.isTextblock&&!e.hasMarkup(i,r)&&function(t,e,n){let o=t.resolve(e),i=o.index();return o.parent.canReplaceWith(i,i+1,n)}(t.doc,t.mapping.slice(s).map(n),i)){t.clearIncompatible(t.mapping.slice(s).map(n,1),i);let a=t.mapping.slice(s),l=a.map(n,1),c=a.map(n+e.nodeSize,1);return t.step(new v(l,c,l+1,c-1,new o.p2(o.HY.from(i.create(r,null,e.marks)),0,0),1,!0)),!1}}))}(this,t,e,n,i),this}setNodeMarkup(t,e,n=null,i){return function(t,e,n,i,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new v(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new o.p2(o.HY.from(a),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new B(t,e,n)),this}addNodeMark(t,e){return this.step(new m(t,e)),this}removeNodeMark(t,e){if(!(e instanceof o.vc)){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new g(t,e)),this}split(t,e=1,n){return function(t,e,n=1,i){let r=t.doc.resolve(e),s=o.HY.empty,a=o.HY.empty;for(let t=r.depth,e=r.depth-n,l=n-1;t>e;t--,l--){s=o.HY.from(r.node(t).copy(s));let e=i&&i[l];a=o.HY.from(e?e.type.create(e.attrs,a):r.node(t).copy(a))}t.step(new b(e,e,new o.p2(s.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,o){let i,r,s=[],a=[];t.doc.nodesBetween(e,n,((t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let c=Math.max(l,e),u=Math.min(l+t.nodeSize,n),h=o.addToSet(d);for(let t=0;tt.step(e))),a.forEach((e=>t.step(e)))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,i){let r=[],s=0;t.doc.nodesBetween(e,n,((t,a)=>{if(!t.isInline)return;s++;let l=null;if(i instanceof o.ZU){let e,n=t.marks;for(;e=i.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else i?i.isInSet(t.marks)&&(l=[i]):l=t.marks;if(l&&l.length){let o=Math.min(a+t.nodeSize,n);for(let t=0;tt.step(new f(e.from,e.to,e.style))))}(this,t,e,n),this}clearIncompatible(t,e,n){return function(t,e,n,i=n.contentMatch){let r=t.doc.nodeAt(e),s=[],a=e+1;for(let e=0;e=0;e--)t.step(s[e])}(this,t,e,n),this}}},43594:(t,e,n)=>{n.d(e,{p:()=>_e,EH:()=>$e,tk:()=>an});var o=n(62463),i=n(27439),r=n(38480);const s=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},a=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let o=l||(l=document.createRange());return o.setEnd(t,null==n?t.nodeValue.length:n),o.setStart(t,e||0),o},d=function(t,e,n,o){return n&&(h(t,e,n,o,-1)||h(t,e,n,o,1))},u=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,o,i){for(;;){if(t==n&&e==o)return!0;if(e==(i<0?0:p(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||u.test(t.nodeName)||"false"==t.contentEditable)return!1;e=s(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if("false"==(t=t.childNodes[e+(i<0?-1:0)]).contentEditable)return!1;e=i<0?p(t):0}}}function p(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,v="undefined"!=typeof document?document:null,y=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(y),x=/MSIE \d/.exec(y),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),C=!!(x||k||w),M=x?document.documentMode:k?+k[1]:w?+w[1]:0,S=!C&&/gecko\/(\d+)/i.test(y);S&&(/Firefox\/(\d+)/.exec(y)||[0,0])[1];const A=!C&&/Chrome\/(\d+)/.exec(y),O=!!A,T=A?+A[1]:0,N=!C&&!!b&&/Apple Computer/.test(b.vendor),E=N&&(/Mobile\/\w+/.test(y)||!!b&&b.maxTouchPoints>2),I=E||!!b&&/Mac/.test(b.platform),D=!!b&&/Win/.test(b.platform),P=/Android \d/.test(y),H=!!v&&"webkitFontSmoothing"in v.documentElement.style,L=H?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function _(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function R(t,e){return"number"==typeof t?t:t[e]}function z(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function $(t,e,n){let o=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,r=t.dom.ownerDocument;for(let s=n||t.dom;s;s=a(s)){if(1!=s.nodeType)continue;let t=s,n=t==r.body,a=n?_(r):z(t),l=0,c=0;if(e.topa.bottom-R(o,"bottom")&&(c=e.bottom-e.top>a.bottom-a.top?e.top+R(i,"top")-a.top:e.bottom-a.bottom+R(i,"bottom")),e.lefta.right-R(o,"right")&&(l=e.right-a.right+R(i,"right")),l||c)if(n)r.defaultView.scrollBy(l,c);else{let n=t.scrollLeft,o=t.scrollTop;c&&(t.scrollTop+=c),l&&(t.scrollLeft+=l);let i=t.scrollLeft-n,r=t.scrollTop-o;e={left:e.left-i,top:e.top-r,right:e.right-i,bottom:e.bottom-r}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function B(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=a(o));return e}function F(t,e){for(let n=0;n=d){l=Math.max(p.bottom,l),d=Math.min(p.top,d);let t=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!i&&p.left<=e.left&&p.right>=e.left&&(i=u,r={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(a=h+1)}}return!n&&i&&(n=i,o=r,s=0),n&&3==n.nodeType?function(t,e){let n=t.nodeValue.length,o=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:t,offset:0}}(n,o):!n||s&&1==n.nodeType?{node:t,offset:a}:Z(n,o)}function j(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function q(t,e,n){let o=t.childNodes.length;if(o&&n.tope.top&&i++}n==t.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(s=function(t,e,n,o){let i=-1;for(let n=e,r=!1;n!=t.dom;){let e=t.docView.nearestDesc(n,!0);if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent&&!r||!e.contentDOM)){let t=e.dom.getBoundingClientRect();if(e.node.isBlock&&e.parent&&!r&&(r=!0,t.left>o.left||t.top>o.top?i=e.posBefore:(t.right-1?i:t.docView.posFromDOM(e,n,-1)}(t,n,i,e))}null==s&&(s=function(t,e,n){let{node:o,offset:i}=Z(e,n),r=-1;if(1==o.nodeType&&!o.firstChild){let t=o.getBoundingClientRect();r=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(o,i,r)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function V(t){return t.top=0&&i==o.nodeValue.length?(t--,r=1):n<0?t--:e++,K(U(c(o,t,e),r),r<0)}{let t=U(c(o,i,i),n);if(S&&i&&/\s/.test(o.nodeValue[i-1])&&i=0)}if(null==r&&i&&(n<0||i==p(o))){let t=o.childNodes[i-1],e=3==t.nodeType?c(t,p(t)-(s?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return K(U(e,1),!1)}if(null==r&&i=0)}function K(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function X(t,e,n){let o=t.state,i=t.root.activeElement;o!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),i!=t.dom&&i&&i.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,ot=!1;class it{constructor(t,e,n,o){this.parent=t,this.children=e,this.dom=n,this.contentDOM=o,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;es(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!1;break}if(e.previousSibling)break}if(null==o&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!0;break}if(e.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,o=t;o;o=o.parentNode){let i,r=this.getDesc(o);if(r&&(!e||r.node)){if(!n||!(i=r.nodeDOM)||(1==i.nodeType?i.contains(1==t.nodeType?t:t.parentNode):i==t))return r;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;et||i instanceof ut){o=t-e;break}e=r}if(o)return this.children[n].domFromPos(o-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof rt&&t.side>=0;n--);if(e<=0){let t,o=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,o=!1);return t&&e&&o&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?s(t.dom)+1:0}}{let t,o=!0;for(;t=n=i&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,i);t=r;for(let e=a;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=s(n.dom)+1;break}t-=n.size}-1==o&&(o=0)}if(o>-1&&(l>e||a==this.children.length-1)){e=l;for(let t=a+1;ta&&re){let t=a;a=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,o=0;o=n:tn){let o=n+i.border,s=r-i.border;if(t>=o&&e<=s)return this.dirty=t==n||e==r?2:1,void(t!=o||e!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(t-o,e-o):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=r}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:o))),!e.type.spec.raw){if(1!=r.nodeType){let t=document.createElement("span");t.appendChild(r),r=t}r.contentEditable="false",r.classList.add("ProseMirror-widget")}super(t,[],r,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,o){super(t,[],e,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class at extends it{constructor(t,e,n,o){super(t,[],n,o),this.mark=e}static create(t,e,n,o){let r=o.nodeViews[e.type.name],s=r&&r(e,o,n);return s&&s.dom||(s=i.PW.renderSpec(document,e.type.spec.toDOM(e,n))),new at(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(i=Mt(i,0,t,n));for(let t=0;ta?a.parent?a.parent.posBeforeChild(a):void 0:s),n,o),d=c&&c.dom,u=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else d||({dom:d,contentDOM:u}=i.PW.renderSpec(document,e.type.spec.toDOM(e)));u||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=yt(d,n,e),c?a=new ht(t,e,n,o,d,u||null,h,c,r,s+1):e.isText?new dt(t,e,n,o,d,h,r):new lt(t,e,n,o,d,u||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>i.HY.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&wt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,o=e,r=t.composing?this.localCompositionInfo(t,e):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new kt(this,s&&s.node,t);!function(t,e,n,o){let i=e.locals(t),r=0;if(0==i.length){for(let n=0;nr;)a.push(i[s++]);let h=r+d.nodeSize;if(d.isText){let t=h;s!t.inline)):a.slice(),e.forChild(r,d),u),r=h}}(this.node,this.innerDeco,((e,r,s)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t):e.type.side>=0&&!s&&l.syncToMarks(r==this.node.childCount?i.vc.none:this.node.child(r).marks,n,t),l.placeWidget(e,t,o)}),((e,i,s,c)=>{let d;l.syncToMarks(e.marks,n,t),l.findNodeMatch(e,i,s,c)||a&&t.state.selection.from>o&&t.state.selection.to-1&&l.updateNodeAt(e,i,s,d,t)||l.updateNextNode(e,i,s,t,c,o)||l.addNode(e,i,s,t,o),o+=e.nodeSize})),l.syncToMarks([],n,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),pt(this.contentDOM,this.children,t),E&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:i}=t.state.selection;if(!(t.state.selection instanceof o.Bs)||ne+this.node.content.size)return null;let r=t.domSelectionRange(),s=function(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];e=p(t=t.childNodes[e-1])}else{if(!(1==t.nodeType&&e=n){let t=a=0&&t+e.length+a>=n)return a+t;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}(this.node.content,t,n-e,i-e);return o<0?null:{node:s,pos:o,text:t}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:o}){if(this.getDesc(e))return;let i=e;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let r=new st(this,i,e,o);t.input.compositionNodes.push(r),this.children=Mt(this.children,n,n+o.length,t,r)}update(t,e,n,o){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,n,o),0))}updateInner(t,e,n,o){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(wt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=bt(this.dom,this.nodeDOM,gt(this.outerDeco,this.node,e),gt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ct(t,e,n,o,i){yt(o,e,t);let r=new lt(void 0,t,e,n,o,o,o,i,0);return r.contentDOM&&r.updateChildren(i,0),r}class dt extends lt{constructor(t,e,n,o,i,r,s){super(t,e,n,o,i,null,r,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let o=this.node.cut(t,e),i=document.createTextNode(o.text);return new dt(this.parent,o,this.outerDeco,this.innerDeco,i,i,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class ut extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ht extends lt{constructor(t,e,n,o,i,r,s,a,l,c){super(t,e,n,o,i,r,s,l,c),this.spec=a}update(t,e,n,o){if(3==this.dirty)return!1;if(this.spec.update){let i=this.spec.update(t,e,n);return i&&this.updateInner(t,e,n,o),i}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,o){this.spec.setSelection?this.spec.setSelection(t,e,n):super.setSelection(t,e,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function pt(t,e,n){let o=t.firstChild,i=!1;for(let r=0;r0;){let a;for(;;)if(o){let t=n.children[o-1];if(!(t instanceof at)){a=t,o--;break}n=t,o=t.children.length}else{if(n==e)break t;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,r.set(a,i),s.push(a)}}return{index:i,matched:r,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n>1,r=Math.min(i,t.length);for(;o-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let o=at.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,o),this.top=o,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,o){let i,r=-1;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(t,e,n))r=this.top.children.indexOf(i,this.index);else for(let o=this.index,i=Math.min(this.top.children.length,o+5);o=n||d<=e?r.push(l):(cn&&r.push(l.slice(n-c,l.size,o)))}return r}function St(t,e=null){let n=t.domSelectionRange(),i=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),a=r&&0==r.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,u=i.resolve(l);if(m(n)){for(c=u;r&&!r.node;)r=r.parent;let t=r.node;if(r&&t.isAtom&&o.qv.isSelectable(t)&&r.parent&&(!t.isInline||!function(t,e,n){for(let o=0==e,i=e==p(t);o||i;){if(t==n)return!0;let e=s(t);if(!(t=t.parentNode))return!1;o=o&&0==e,i=i&&e==p(t)}}(n.focusNode,n.focusOffset,r.dom))){let t=r.posBefore;d=new o.qv(l==t?u:i.resolve(t))}}else{let e=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(e<0)return null;c=i.resolve(e)}return d||(d=Ht(t,c,u,"pointer"==e||t.state.selection.head{n.anchorNode==o&&n.anchorOffset==i||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout((()=>{At(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")}),20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Tt=N||O&&T<63;function Nt(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),i=oo(t,e,n)))||o.Bs.between(e,n,i)}function Lt(t){return!(t.editable&&!t.hasFocus())&&_t(t)}function _t(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function Rt(t,e){let{$anchor:n,$head:i}=t.selection,r=e>0?n.max(i):n.min(i),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&o.Y1.findFrom(s,e)}function zt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $t(t,e,n){let i=t.state.selection;if(!(i instanceof o.Bs)){if(i instanceof o.qv&&i.node.isInline)return zt(t,new o.Bs(e>0?i.$to:i.$from));{let n=Rt(t.state,e);return!!n&&zt(t,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=Rt(t.state,e);return!!(n&&n instanceof o.qv)&&zt(t,n)}if(!(I&&n.indexOf("m")>-1)){let n,r=i.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText)return!1;let a=e<0?r.pos-s.nodeSize:r.pos;return!!(s.isAtom||(n=t.docView.descAt(a))&&!n.contentDOM)&&(o.qv.isSelectable(s)?zt(t,new o.qv(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):!!H&&zt(t,new o.Bs(t.state.doc.resolve(e<0?a:a+s.nodeSize))))}}function Bt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t){if("false"==t.contentEditable)return!0;let e=t.pmViewDesc;return e&&0==e.size&&(t.nextSibling||"BR"!=t.nodeName)}function Jt(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=!1;for(S&&1==n.nodeType&&o0){if(1!=n.nodeType)break;{let t=n.childNodes[o-1];if(Ft(t))i=n,r=--o;else{if(3!=t.nodeType)break;n=t,o=n.nodeValue.length}}}else{if(jt(n))break;{let e=n.previousSibling;for(;e&&Ft(e);)i=n.parentNode,r=s(e),e=e.previousSibling;if(e)n=e,o=Bt(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}a?qt(t,n,o):i&&qt(t,i,r)}(t):Zt(t)}function Zt(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=Bt(n);for(;;)if(o{t.state==i&&Ot(t)}),50)}function Yt(t,e){let n=t.state.doc.resolve(e);if(!O&&!D&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),i=(n.top+n.bottom)/2;if(i>o.top&&i1)return n.lefto.top&&i1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function Vt(t,e,n){let i=t.state.selection;if(i instanceof o.Bs&&!i.empty||n.indexOf("s")>-1)return!1;if(I&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=Rt(t.state,e);if(n&&n instanceof o.qv)return zt(t,n)}if(!r.parent.inlineContent){let n=e<0?r:s,a=i instanceof o.C1?o.Y1.near(n,e):o.Y1.findFrom(n,e);return!!a&&zt(t,a)}return!1}function Ut(t,e){if(!(t.state.selection instanceof o.Bs))return!0;let{$head:n,$anchor:i,empty:r}=t.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function Wt(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Qt(t,e){t.someProp("transformCopied",(n=>{e=n(e,t)}));let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&1==o.childCount&&1==o.firstChild.childCount;){r--,s--;let t=o.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),o=t.content}let a=t.someProp("clipboardSerializer")||i.PW.fromSchema(t.state.schema),l=se(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d,u=c.firstChild,h=0;for(;u&&1==u.nodeType&&(d=ie[u.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",(n=>n(e,t)))||e.content.textBetween(0,e.content.size,"\n\n")}}function Kt(t,e,n,o,r){let s,a,l=r.parent.type.spec.code;if(!n&&!e)return null;let c=e&&(o||l||!n);if(c){if(t.someProp("transformPastedText",(n=>{e=n(e,l||o,t)})),l)return e?new i.p2(i.HY.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):i.p2.empty;let n=t.someProp("clipboardTextParser",(n=>n(e,r,o,t)));if(n)a=n;else{let n=r.marks(),{schema:o}=t.state,a=i.PW.fromSchema(o);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach((t=>{let e=s.appendChild(document.createElement("p"));t&&e.appendChild(a.serializeNode(o.text(t,n)))}))}}else t.someProp("transformPastedHTML",(e=>{n=e(n,t)})),s=function(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,o=se().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(t);if((n=i&&ie[i[1].toLowerCase()])&&(t=n.map((t=>"<"+t+">")).join("")+t+n.map((t=>"")).reverse().join("")),o.innerHTML=t,n)for(let t=0;t0;t--){let t=s.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;s=t}if(!a){let e=t.someProp("clipboardParser")||t.someProp("domParser")||i.aw.fromSchema(t.state.schema);a=e.parseSlice(s,{preserveWhitespace:!(!c&&!u),context:r,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Gt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(t,e){if(!t.size)return t;let n,o=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:r,openStart:s,openEnd:a}=t;for(let t=n.length-2;t>=0;t-=2){let e=o.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;r=i.HY.from(e.create(n[t+1],r)),s++,a++}return new i.p2(r,s,a)}(oe(a,+u[1],+u[2]),u[4]);else if(a=i.p2.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o,r=e.node(n).contentMatchAt(e.index(n)),s=[];if(t.forEach((t=>{if(!s)return;let e,n=r.findWrapping(t.type);if(!n)return s=null;if(e=s.length&&o.length&&te(n,o,t,s[s.length-1],0))s[s.length-1]=e;else{s.length&&(s[s.length-1]=ee(s[s.length-1],o.length));let e=Xt(t,n);s.push(e),r=r.matchType(e.type),o=n}})),s)return i.HY.from(s)}return t}(a.content,r),!0),a.openStart||a.openEnd){let t=0,e=0;for(let e=a.content.firstChild;t{a=e(a,t)})),a}const Gt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Xt(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,i.HY.from(t));return t}function te(t,e,n,o,r){if(r1&&(s=0),r=n&&(l=e<0?a.contentMatchAt(0).fillBefore(l,s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.HY.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(l))}function oe(t,e,n){return e{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>pe(t,e))}))}function pe(t,e){return t.someProp("handleDOMEvents",(n=>{let o=n[e.type];return!!o&&(o(t,e)||e.defaultPrevented)}))}function fe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function me(t){return{left:t.clientX,top:t.clientY}}function ge(t,e,n,o,i){if(-1==o)return!1;let r=t.state.doc.resolve(o);for(let o=r.depth+1;o>0;o--)if(t.someProp(e,(e=>o>r.depth?e(t,n,r.nodeAfter,r.before(o),i,!0):e(t,n,r.node(o),r.before(o),i,!1))))return!0;return!1}function be(t,e,n){t.focused||t.focus();let o=t.state.tr.setSelection(e);"pointer"==n&&o.setMeta("pointer",!0),t.dispatch(o)}function ve(t,e,n,o){return ge(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",(n=>n(t,e,o)))}function ye(t,e,n,i){return ge(t,"handleTripleClickOn",e,n,i)||t.someProp("handleTripleClick",(n=>n(t,e,i)))||function(t,e,n){if(0!=n.button)return!1;let i=t.state.doc;if(-1==e)return!!i.inlineContent&&(be(t,o.Bs.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(e);for(let e=r.depth+1;e>0;e--){let n=e>r.depth?r.nodeAfter:r.node(e),s=r.before(e);if(n.inlineContent)be(t,o.Bs.create(i,s+1,s+1+n.content.size),"pointer");else{if(!o.qv.isSelectable(n))continue;be(t,o.qv.create(i,s),"pointer")}return!0}}(t,n,i)}function we(t){return Oe(t)}le.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!Ce(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!P||!O||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!E||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",(e=>e(t,n)))||function(t,e){let n=e.keyCode,o=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||I&&72==n&&"c"==o)return Ut(t,-1)||Jt(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==o)return Ut(t,1)||Jt(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==o){let e=37==n?"ltr"==Yt(t,t.state.selection.from)?-1:1:-1;return $t(t,e,o)||Jt(t,e)}if(39==n||I&&70==n&&"c"==o){let e=39==n?"ltr"==Yt(t,t.state.selection.from)?1:-1:1;return $t(t,e,o)||Jt(t,e)}return 38==n||I&&80==n&&"c"==o?Vt(t,-1,o)||Jt(t,-1):40==n||I&&78==n&&"c"==o?function(t){if(!N||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Wt(t,n,"true"),setTimeout((()=>Wt(t,n,"false")),20)}return!1}(t)||Vt(t,1,o)||Zt(t):o==(I?"m":"c")&&(66==n||73==n||89==n||90==n)}(t,n)?n.preventDefault():ue(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))),t.input.lastIOSEnter=0)}),200)}},le.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},le.keypress=(t,e)=>{let n=e;if(Ce(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||I&&n.metaKey)return;if(t.someProp("handleKeyPress",(e=>e(t,n))))return void n.preventDefault();let i=t.state.selection;if(!(i instanceof o.Bs&&i.$from.sameParent(i.$to))){let e=String.fromCharCode(n.charCode);/[\r\n]/.test(e)||t.someProp("handleTextInput",(n=>n(t,i.$from.pos,i.$to.pos,e)))||t.dispatch(t.state.tr.insertText(e).scrollIntoView()),n.preventDefault()}};const xe=I?"metaKey":"ctrlKey";ae.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=we(t),i=Date.now(),r="singleClick";i-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}(n,t.input.lastClick)&&!n[xe]&&("singleClick"==t.input.lastClick.type?r="doubleClick":"doubleClick"==t.input.lastClick.type&&(r="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:r};let s=t.posAtCoords(me(n));s&&("singleClick"==r?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ke(t,s,n,!!o)):("doubleClick"==r?ve:ye)(t,s.pos,s.inside,n)?n.preventDefault():ue(t,"pointer"))};class ke{constructor(t,e,n,i){let r,s;if(this.view=t,this.pos=e,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[xe],this.allowDefault=n.shiftKey,e.inside>-1)r=t.state.doc.nodeAt(e.inside),s=e.inside;else{let n=t.state.doc.resolve(e.pos);r=n.parent,s=n.depth?n.before():0}const a=i?null:n.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof o.qv&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!S||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ue(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Ot(this.view))),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(me(t))),this.updateAllowDefault(t),this.allowDefault||!e?ue(this.view,"pointer"):function(t,e,n,i,r){return ge(t,"handleClickOn",e,n,i)||t.someProp("handleClick",(n=>n(t,e,i)))||(r?function(t,e){if(-1==e)return!1;let n,i,r=t.state.selection;r instanceof o.qv&&(n=r.node);let s=t.state.doc.resolve(e);for(let t=s.depth+1;t>0;t--){let e=t>s.depth?s.nodeAfter:s.node(t);if(o.qv.isSelectable(e)){i=n&&r.$from.depth>0&&t>=r.$from.depth&&s.before(r.$from.depth+1)==r.$from.pos?s.before(r.$from.depth):s.before(t);break}}return null!=i&&(be(t,o.qv.create(t.state.doc,i),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),i=n.nodeAfter;return!!(i&&i.isAtom&&o.qv.isSelectable(i))&&(be(t,new o.qv(n),"pointer"),!0)}(t,n))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||N&&this.mightDrag&&!this.mightDrag.node.isAtom||O&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(be(this.view,o.Y1.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ue(this.view,"pointer")}move(t){this.updateAllowDefault(t),ue(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function Ce(t,e){return!!t.composing||!!(N&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}ae.touchstart=t=>{t.input.lastTouch=Date.now(),we(t),ue(t,"pointer")},ae.touchmove=t=>{t.input.lastTouch=Date.now(),ue(t,"pointer")},ae.contextmenu=t=>we(t);const Me=P?5e3:-1;function Se(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout((()=>Oe(t)),e))}function Ae(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Oe(t,e=!1){if(!(P&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Ae(t),e||t.docView&&t.docView.dirty){let e=St(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}le.compositionstart=le.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((t=>!1===t.type.spec.inclusive))))t.markCursor=t.state.storedMarks||n.marks(),Oe(t,!0),t.markCursor=null;else if(Oe(t),S&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,o=e.focusOffset;n&&1==n.nodeType&&0!=o;){let e=o<0?n.lastChild:n.childNodes[o-1];if(!e)break;if(3==e.nodeType){t.domSelection().collapse(e,e.nodeValue.length);break}n=e,o=-1}}t.input.composing=!0}Se(t,Me)},le.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then((()=>t.domObserver.flush())),t.input.compositionID++,Se(t,20))};const Te=C&&M<15||E&&L<604;function Ne(t,e,n,o,r){let s=Kt(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",(e=>e(t,r,s||i.p2.empty))))return!0;if(!s)return!1;let a=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(s),l=a?t.state.tr.replaceSelectionWith(a,o):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ae.copy=le.cut=(t,e)=>{let n=e,o=t.state.selection,i="cut"==n.type;if(o.empty)return;let r=Te?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Qt(t,s);r?(n.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(i),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()}),50)}(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},le.paste=(t,e)=>{let n=e;if(t.composing&&!P)return;let o=Te?null:n.clipboardData,i=t.input.shiftKey&&45!=t.input.lastKeyCode;o&&Ne(t,o.getData("text/plain"),o.getData("text/html"),i,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let i=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout((()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Ne(t,o.value,null,i,e):Ne(t,o.textContent,o.innerHTML,i,e)}),50)}(t,n)};class Ee{constructor(t,e){this.slice=t,this.move=e}}const Ie=I?"altKey":"ctrlKey";ae.dragstart=(t,e)=>{let n=e,i=t.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=t.state.selection,s=r.empty?null:t.posAtCoords(me(n));if(s&&s.pos>=r.from&&s.pos<=(r instanceof o.qv?r.to-1:r.to));else if(i&&i.mightDrag)t.dispatch(t.state.tr.setSelection(o.qv.create(t.state.doc,i.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&t.dispatch(t.state.tr.setSelection(o.qv.create(t.state.doc,e.posBefore)))}let a=t.state.selection.content(),{dom:l,text:c}=Qt(t,a);n.dataTransfer.clearData(),n.dataTransfer.setData(Te?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Te||n.dataTransfer.setData("text/plain",c),t.dragging=new Ee(a,!n[Ie])},ae.dragend=t=>{let e=t.dragging;window.setTimeout((()=>{t.dragging==e&&(t.dragging=null)}),50)},le.dragover=le.dragenter=(t,e)=>e.preventDefault(),le.drop=(t,e)=>{let n=e,s=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let a=t.posAtCoords(me(n));if(!a)return;let l=t.state.doc.resolve(a.pos),c=s&&s.slice;c?t.someProp("transformPasted",(e=>{c=e(c,t)})):c=Kt(t,n.dataTransfer.getData(Te?"Text":"text/plain"),Te?null:n.dataTransfer.getData("text/html"),!1,l);let d=!(!s||n[Ie]);if(t.someProp("handleDrop",(e=>e(t,n,c||i.p2.empty,d))))return void n.preventDefault();if(!c)return;n.preventDefault();let u=c?(0,r.nj)(t.state.doc,l.pos,c):l.pos;null==u&&(u=l.pos);let h=t.state.tr;d&&h.deleteSelection();let p=h.mapping.map(u),f=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=h.doc;if(f?h.replaceRangeWith(p,p,c.content.firstChild):h.replaceRange(p,p,c),h.doc.eq(m))return;let g=h.doc.resolve(p);if(f&&o.qv.isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))h.setSelection(new o.qv(g));else{let e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach(((t,n,o,i)=>e=i)),h.setSelection(Ht(t,g,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))},ae.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout((()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ot(t)}),20))},ae.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},ae.beforeinput=(t,e)=>{if(O&&P&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout((()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",(e=>e(t,g(8,"Backspace")))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let t in le)ae[t]=le[t];function De(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Pe{constructor(t,e){this.toDOM=t,this.spec=e||ze,this.side=this.spec.side||0}map(t,e,n,o){let{pos:i,deleted:r}=t.mapResult(e.from+o,this.side<0?-1:1);return r?null:new _e(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Pe&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class He{constructor(t,e){this.attrs=t,this.spec=e||ze}map(t,e,n,o){let i=t.map(e.from+o,this.spec.inclusiveStart?-1:1)-n,r=t.map(e.to+o,this.spec.inclusiveEnd?1:-1)-n;return i>=r?null:new _e(i,r,this)}valid(t,e){return e.from=t&&(!i||i(s.spec))&&n.push(s.copy(s.from+o,s.to+o))}for(let r=0;rt){let s=this.children[r]+1;this.children[r+2].findInner(t-s,e-s,n,o+s,i)}}map(t,e,n){return this==Be||0==t.maps.length?this:this.mapInner(t,e,0,0,n||ze)}mapInner(t,e,n,o,i){let r;for(let s=0;s{let l=s-r-(n-t);for(let s=0;sc+e-o)continue;let d=a[s]+e-o;n>=d?a[s+1]=t<=d?-2:-1:r>=i&&l&&(a[s]+=l,a[s+1]+=l)}o+=l})),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e=o.content.size){l=!0;continue}let u=n.map(t[e+1]+r,-1)-i,{index:h,offset:p}=o.content.findIndex(d),f=o.maybeChild(h);if(f&&p==d&&p+f.nodeSize==u){let o=a[e+2].mapInner(n,f,c+1,t[e]+r+1,s);o!=Be?(a[e]=d,a[e+1]=u,a[e+2]=o):(a[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,o,i,r,s){function a(t,e){for(let r=0;r{let s,a=r+n;if(s=Ze(e,t,a)){for(o||(o=this.children.slice());ir&&e.to=t){this.children[e]==t&&(n=this.children[e+2]);break}let i=t+1,r=i+e.content.size;for(let t=0;ti&&e.type instanceof He){let t=Math.max(i,e.from)-i,n=Math.min(r,e.to)-i;tn.map(t,e,ze)));return Fe.from(n)}forChild(t,e){if(e.isLeaf)return $e.empty;let n=[];for(let o=0;ot instanceof $e))?t:t.reduce(((t,e)=>t.concat(e instanceof $e?e:e.members)),[]))}}}function Je(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;on&&e.to{let a=Ze(t,e,s+n);if(a){r=!0;let t=qe(a,e,n+s+1,o);t!=Be&&i.push(s,s+e.nodeSize,t)}}));let s=Je(r?je(t):t,-n).sort(Ye);for(let t=0;t0;)e++;t.splice(e,0,n)}function We(t){let e=[];return t.someProp("decorations",(n=>{let o=n(t.state);o&&o!=Be&&e.push(o)})),t.cursorWrapper&&e.push($e.create(t.state.doc,[t.cursorWrapper.deco])),Fe.from(e)}const Qe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ke=C&&M<=11;class Ge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Xe{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ge,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((t=>{for(let e=0;e"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),Ke&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Qe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Lt(this.view)){if(this.suppressingSelectionUpdates)return Ot(this.view);if(C&&M<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=a(e))n.add(e);for(let o=t.anchorNode;o;o=a(o))if(n.has(o)){e=o;break}let o=e&&this.view.docView.nearestDesc(e);return o&&o.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Lt(t)&&!this.ignoreSelectionChange(n),r=-1,s=-1,a=!1,l=[];if(t.editable)for(let t=0;t1){let t=l.filter((t=>"BR"==t.nodeName));if(2==t.length){let e=t[0],n=t[1];e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}}let c=null;r<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(r>-1&&(t.docView.markDirty(r,s),function(t){if(!tn.has(t)&&(tn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))){if(t.requiresGeckoHackNode=S,en)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),en=!0}}(t)),this.handleDOMChange(r,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Ot(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;ne.content.size?null:Ht(t,e.resolve(n.anchor),e.resolve(n.head))}function sn(t,e,n){let o=t.depth,i=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,i++,e=!1;if(n){let e=t.node(o).maybeChild(t.indexAfter(o));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}class an{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new de,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(hn),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=dn(this),cn(this),this.nodeViews=un(this),this.docView=ct(this.state.doc,ln(this),We(this),this.dom,this),this.domObserver=new Xe(this,((t,e,n,r)=>function(t,e,n,r,s){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=St(t,e);if(n&&!t.state.selection.eq(n)){if(O&&P&&13===t.input.lastKeyCode&&Date.now()-100e(t,g(13,"Enter")))))return;let o=t.state.tr.setSelection(n);"pointer"==e?o.setMeta("pointer",!0):"key"==e&&o.scrollIntoView(),a&&o.setMeta("composition",a),t.dispatch(o)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,u,h=t.state.selection,p=function(t,e,n){let o,{node:r,fromOffset:s,toOffset:a,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),u=d.anchorNode;if(u&&t.dom.contains(1==u.nodeType?u:u.parentNode)&&(o=[{node:u,offset:d.anchorOffset}],m(d)||o.push({node:d.focusNode,offset:d.focusOffset})),O&&8===t.input.lastKeyCode)for(let t=a;t>s;t--){let e=r.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){a=t;break}if(!n||n.size)break}let h=t.state.doc,p=t.someProp("domParser")||i.aw.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=p.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:o,ruleFromNode:nn,context:f});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(p.from,p.to);8===t.input.lastKeyCode&&Date.now()-100=s?r-o:0,a=r+(a-s),s=r):a=a?r-o:0,s=r+(s-a),a=r),{start:r,endA:s,endB:a}}(b.content,p.doc.content,p.from,d,u);if((E&&t.input.lastIOSEnter>Date.now()-225||P)&&s.some((t=>1==t.nodeType&&!on.test(t.nodeName)))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(!v){if(!(r&&h instanceof o.Bs&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let e=rn(t,t.state.doc,p.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);a&&n.setMeta("composition",a),t.dispatch(n)}}return}v={start:h.from,endA:h.to,endB:h.to}}if(O&&t.cursorWrapper&&p.sel&&p.sel.anchor==t.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let t=v.endB-v.start;p.sel={anchor:p.sel.anchor+t,head:p.sel.anchor+t}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=p.from?v.start=t.state.selection.from:v.endA=t.state.selection.to-2&&t.state.selection.to<=p.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.state.selection.to)),C&&M<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>p.from&&"  "==p.doc.textBetween(v.start-p.from-1,v.start-p.from+1)&&(v.start--,v.endA--,v.endB--);let y,w=p.doc.resolveNoCache(v.start-p.from),x=p.doc.resolveNoCache(v.endB-p.from),k=f.resolve(v.start),S=w.sameParent(x)&&w.parent.inlineContent&&k.end()>=v.endA;if((E&&t.input.lastIOSEnter>Date.now()-225&&(!S||s.some((t=>"DIV"==t.nodeName||"P"==t.nodeName)))||!S&&w.pose(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>v.start&&function(t,e,n,o,i){if(!o.parent.isTextblock||n-e<=i.pos-o.pos||sn(o,!0,!1)n||sn(s,!0,!1)e(t,g(8,"Backspace")))))return void(P&&O&&t.domObserver.suppressSelectionUpdates());O&&P&&v.endB==v.start&&(t.input.lastAndroidDelete=Date.now()),P&&!S&&w.start()!=x.start()&&0==x.parentOffset&&w.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==v.endA&&(v.endB-=2,x=p.doc.resolveNoCache(v.endB-p.from),setTimeout((()=>{t.someProp("handleKeyDown",(function(e){return e(t,g(13,"Enter"))}))}),20));let A,T,N,I=v.start,D=v.endA;if(S)if(w.pos==x.pos)C&&M<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout((()=>Ot(t)),20)),A=t.state.tr.delete(I,D),T=f.resolve(v.start).marksAcross(f.resolve(v.endA));else if(v.endA==v.endB&&(N=function(t,e){let n,o,r,s=t.firstChild.marks,a=e.firstChild.marks,l=s,c=a;for(let t=0;tt.mark(o.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;o=c[0],n="remove",r=t=>t.mark(o.removeFromSet(t.marks))}let d=[];for(let t=0;tn(t,I,D,e))))return;A=t.state.tr.insertText(e,I,D)}if(A||(A=t.state.tr.replace(I,D,p.doc.slice(v.start-p.from,v.endB-p.from))),p.sel){let e=rn(t,A.doc,p.sel);e&&!(O&&P&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastAndroidDelete{!fe(t,e)||pe(t,e)||!t.editable&&e.type in le||n(t,e)},ce[e]?{passive:!0}:void 0)}N&&t.dom.addEventListener("input",(()=>null)),he(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&he(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(hn),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let n=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(Ae(this),i=!0),this.state=t;let r=n.plugins!=t.plugins||this._props.plugins!=e.plugins;if(r||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=un(this);(function(t,e){let n=0,o=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let t in e)o++;return n!=o})(t,this.nodeViews)&&(this.nodeViews=t,o=!0)}(r||e.handleDOMEvents!=this._props.handleDOMEvents)&&he(this),this.editable=dn(this),cn(this);let s=We(this),a=ln(this),l=n.plugins==t.plugins||n.doc.eq(t.doc)?t.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=o||!this.docView.matchesNode(t.doc,a,s);!c&&t.selection.eq(n.selection)||(i=!0);let u="preserve"==l&&i&&null==this.dom.style.overflowAnchor&&function(t){let e,n,o=t.dom.getBoundingClientRect(),i=Math.max(0,o.top);for(let r=(o.left+o.right)/2,s=i+1;s=i-20){e=o,n=a.top;break}}return{refDOM:e,refTop:n,stack:B(t.dom)}}(this);if(i){this.domObserver.stop();let e=c&&(C||O)&&!this.composing&&!n.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(n.selection,t.selection);if(c){let n=O?this.trackWrites=this.domSelectionRange().focusNode:null;!o&&this.docView.update(t.doc,a,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ct(t.doc,a,s,this.dom,this)),n&&!this.trackWrites&&(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Ot(this,e):(Dt(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&function({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;F(n,0==o?0:o-e)}(u)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(t=>t(this))));else if(this.state.selection instanceof o.qv){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&$(this,e.getBoundingClientRect(),t)}else $(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;et.ownerDocument.getSelection()),this._root=t;return t||document}posAtCoords(t){return Y(this,t)}coordsAtPos(t,e=1){return Q(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let o=this.docView.posFromDOM(t,e,n);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,e){return function(t,e,n){return et==e&&nt==n?ot:(et=e,nt=n,ot="up"==n||"down"==n?function(t,e,n){let o=e.selection,i="up"==n?o.$from:o.$to;return X(t,e,(()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let o=Q(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;ti.top+1&&("up"==n?o.top-i.top>2*(i.bottom-o.top):i.bottom-o.bottom>2*(o.bottom-i.top)))return!1}}return!0}))}(t,e,n):function(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let i=o.parentOffset,r=!i,s=i==o.parent.content.size,a=t.domSelection();return tt.test(o.parent.textContent)&&a.modify?X(t,e,(()=>{let{focusNode:e,focusOffset:i,anchorNode:r,anchorOffset:s}=t.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:d,focusOffset:u}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&i==u;try{a.collapse(r,s),e&&(e!=r||i!=s)&&a.extend&&a.extend(e,i)}catch(t){}return null!=l&&(a.caretBidiLevel=l),h})):"left"==n||"backward"==n?r:s}(t,e,n))}(this,e||this.state,t)}pasteHTML(t,e){return Ne(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Ne(this,t,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],We(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){pe(t,e)||!ae[e.type]||!t.editable&&e.type in le||ae[e.type](t,e)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return N&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function(t){let e;function n(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let o=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,r,s)&&([o,i,r,s]=[r,s,o,i]),{anchorNode:o,anchorOffset:i,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function ln(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))})),e.translate||(e.translate="no"),[_e.node(0,t.state.doc.content.size,e)]}function cn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:_e.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dn(t){return!t.someProp("editable",(e=>!1===e(t.state)))}function un(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function hn(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}}}]); \ No newline at end of file diff --git a/6989.c327c72c6d7b2e41a004.js b/6989.34c86862ad8d9f98fc29.js similarity index 100% rename from 6989.c327c72c6d7b2e41a004.js rename to 6989.34c86862ad8d9f98fc29.js diff --git a/7095.1a9fda172dadb71a0245.js b/7095.2b7aef392482b97e64d2.js similarity index 100% rename from 7095.1a9fda172dadb71a0245.js rename to 7095.2b7aef392482b97e64d2.js diff --git a/710.c448239c3a2d83b61c29.js b/710.43f70f9aa2c4ef2758c5.js similarity index 100% rename from 710.c448239c3a2d83b61c29.js rename to 710.43f70f9aa2c4ef2758c5.js diff --git a/7106.4d1974bde81ae675822d.js b/7106.abef6888cde9972acb9f.js similarity index 100% rename from 7106.4d1974bde81ae675822d.js rename to 7106.abef6888cde9972acb9f.js diff --git a/7147.f1a45e1c396b4e9d8c06.js b/7147.983c7ea1f2ef9fcc005b.js similarity index 100% rename from 7147.f1a45e1c396b4e9d8c06.js rename to 7147.983c7ea1f2ef9fcc005b.js diff --git a/7169.99e105489f0194a0e055.js b/7169.b7b364b78073680f879c.js similarity index 100% rename from 7169.99e105489f0194a0e055.js rename to 7169.b7b364b78073680f879c.js diff --git a/7219.cb0ce90e2d708c71e85a.js b/7219.289a31f831518b67000e.js similarity index 100% rename from 7219.cb0ce90e2d708c71e85a.js rename to 7219.289a31f831518b67000e.js diff --git a/7375.65e5500afabbd4d3e6f9.js b/7375.a78dfccbb3123f1f1cbd.js similarity index 100% rename from 7375.65e5500afabbd4d3e6f9.js rename to 7375.a78dfccbb3123f1f1cbd.js diff --git a/7383.5d7c3e10b288766b7336.js b/7383.8d359130c22ad546c65b.js similarity index 100% rename from 7383.5d7c3e10b288766b7336.js rename to 7383.8d359130c22ad546c65b.js diff --git a/7416.1f68b626438e1148c247.js b/7416.794ca33094c0390cfd44.js similarity index 100% rename from 7416.1f68b626438e1148c247.js rename to 7416.794ca33094c0390cfd44.js diff --git a/7714.0de7dca2f2d0e9eadfd6.js b/7714.685bc08495f23c76a26d.js similarity index 100% rename from 7714.0de7dca2f2d0e9eadfd6.js rename to 7714.685bc08495f23c76a26d.js diff --git a/7718.cf6d6ed458b4c758c491.js b/7718.21159a58ad687c7875b0.js similarity index 100% rename from 7718.cf6d6ed458b4c758c491.js rename to 7718.21159a58ad687c7875b0.js diff --git a/777.89bb36588244471e2c8f.js b/777.5f1aaf185c274bb1a74e.js similarity index 100% rename from 777.89bb36588244471e2c8f.js rename to 777.5f1aaf185c274bb1a74e.js diff --git a/7788.99f04b1b5ede28dd83fe.js b/7788.909ea6a94f98ec92b2c0.js similarity index 100% rename from 7788.99f04b1b5ede28dd83fe.js rename to 7788.909ea6a94f98ec92b2c0.js diff --git a/7801.76037a781aa2265cc4ea.js b/7801.9cd55246436f77f6570f.js similarity index 100% rename from 7801.76037a781aa2265cc4ea.js rename to 7801.9cd55246436f77f6570f.js diff --git a/7809.2c5fd601159bd399cfcd.js b/7809.038f10224cf58c879e9e.js similarity index 100% rename from 7809.2c5fd601159bd399cfcd.js rename to 7809.038f10224cf58c879e9e.js diff --git a/7843.8af8c260856791c9adee.js b/7843.baad670ed2e4b47163d1.js similarity index 100% rename from 7843.8af8c260856791c9adee.js rename to 7843.baad670ed2e4b47163d1.js diff --git a/7856.2df7f2e3cf07f99a8074.js b/7856.770b6affdccc5d96380d.js similarity index 100% rename from 7856.2df7f2e3cf07f99a8074.js rename to 7856.770b6affdccc5d96380d.js diff --git a/7991.d66d24a24c3aef5c310f.js b/7991.037706cb8cda5ab2248c.js similarity index 100% rename from 7991.d66d24a24c3aef5c310f.js rename to 7991.037706cb8cda5ab2248c.js diff --git a/8097.504f90ad619e239838bb.js b/8097.11026b1eb44079e6a1ce.js similarity index 100% rename from 8097.504f90ad619e239838bb.js rename to 8097.11026b1eb44079e6a1ce.js diff --git a/8155.d0a085f174823ab5eb69.js b/8155.61a23b70c41628a97f3a.js similarity index 100% rename from 8155.d0a085f174823ab5eb69.js rename to 8155.61a23b70c41628a97f3a.js diff --git a/8234.56f7383ad009a2e03152.js b/8234.91a50dc1bcc1cf8bfae4.js similarity index 100% rename from 8234.56f7383ad009a2e03152.js rename to 8234.91a50dc1bcc1cf8bfae4.js diff --git a/824.d1c05b7eaa7676f9138d.js b/824.282d63d590e169191e11.js similarity index 100% rename from 824.d1c05b7eaa7676f9138d.js rename to 824.282d63d590e169191e11.js diff --git a/8258.d053621e1b885bea7eb5.js b/8258.f80671d734722c482543.js similarity index 100% rename from 8258.d053621e1b885bea7eb5.js rename to 8258.f80671d734722c482543.js diff --git a/8296.eb55b03bfdde7e6b4517.js b/8296.47f619fa090f070f0af9.js similarity index 100% rename from 8296.eb55b03bfdde7e6b4517.js rename to 8296.47f619fa090f070f0af9.js diff --git a/8378.f7659387374a93c02e80.js b/8378.c08fdb2e3aca0a3b5d40.js similarity index 100% rename from 8378.f7659387374a93c02e80.js rename to 8378.c08fdb2e3aca0a3b5d40.js diff --git a/8536.22e4d9f2a305308496d1.js b/8536.37e7ce3fd5810316f7ae.js similarity index 100% rename from 8536.22e4d9f2a305308496d1.js rename to 8536.37e7ce3fd5810316f7ae.js diff --git a/8557.ea0116eceb04d92c8c5f.js b/8557.5e5076bd255354195104.js similarity index 100% rename from 8557.ea0116eceb04d92c8c5f.js rename to 8557.5e5076bd255354195104.js diff --git a/8575.fcc81853dc66c47cf2d9.js b/8575.8b90a34d700e204854d3.js similarity index 100% rename from 8575.fcc81853dc66c47cf2d9.js rename to 8575.8b90a34d700e204854d3.js diff --git a/861.3b15500d7534f851c370.js b/861.c0b8dd2e88d44c7e3f64.js similarity index 100% rename from 861.3b15500d7534f851c370.js rename to 861.c0b8dd2e88d44c7e3f64.js diff --git a/8629.e6495b97df2e0631eba3.js b/8629.0952df14d2e85fa0cb74.js similarity index 100% rename from 8629.e6495b97df2e0631eba3.js rename to 8629.0952df14d2e85fa0cb74.js diff --git a/8640.35b2563f40a0d1d94667.js b/8640.6c54ed8fd0365d803f8e.js similarity index 100% rename from 8640.35b2563f40a0d1d94667.js rename to 8640.6c54ed8fd0365d803f8e.js diff --git a/8680.fdf4f9db9f8c67d24777.js b/8680.420ea83a99d5d17bb88a.js similarity index 100% rename from 8680.fdf4f9db9f8c67d24777.js rename to 8680.420ea83a99d5d17bb88a.js diff --git a/870.cd835195c7969b2ed0e1.js b/870.78eb459ffc7221de859c.js similarity index 100% rename from 870.cd835195c7969b2ed0e1.js rename to 870.78eb459ffc7221de859c.js diff --git a/8773.b43a8e80479ced9c96eb.js b/8773.30af9a8fe32e1e73153d.js similarity index 100% rename from 8773.b43a8e80479ced9c96eb.js rename to 8773.30af9a8fe32e1e73153d.js diff --git a/8818.f67e6e61c564489625d9.js b/8818.d409c15d5cf19801979b.js similarity index 100% rename from 8818.f67e6e61c564489625d9.js rename to 8818.d409c15d5cf19801979b.js diff --git a/8840.96bad6233721ed8b27df.js b/8840.7e35860c39affe35f207.js similarity index 100% rename from 8840.96bad6233721ed8b27df.js rename to 8840.7e35860c39affe35f207.js diff --git a/8873.c445e338bf61557f00e6.js b/8873.1bb99598097ea7a34d23.js similarity index 100% rename from 8873.c445e338bf61557f00e6.js rename to 8873.1bb99598097ea7a34d23.js diff --git a/896.c1cfd1cb8c8fe091a106.js b/896.475bcf838de862994044.js similarity index 100% rename from 896.c1cfd1cb8c8fe091a106.js rename to 896.475bcf838de862994044.js diff --git a/9173.aec0b52f12a8fce5af80.js b/9173.5f692f8786f488568323.js similarity index 100% rename from 9173.aec0b52f12a8fce5af80.js rename to 9173.5f692f8786f488568323.js diff --git a/9180.5f152b0c336c2365f9c8.js b/9180.c7025a567c8513f8fc8d.js similarity index 100% rename from 9180.5f152b0c336c2365f9c8.js rename to 9180.c7025a567c8513f8fc8d.js diff --git a/9269.8698b903e800d8bd6c71.js b/9269.004af351a0d438d488a3.js similarity index 100% rename from 9269.8698b903e800d8bd6c71.js rename to 9269.004af351a0d438d488a3.js diff --git a/9289.3b33bb6d656422ea575a.js b/9289.9d37032424b090907126.js similarity index 100% rename from 9289.3b33bb6d656422ea575a.js rename to 9289.9d37032424b090907126.js diff --git a/9297.fc1940563f2dd51d749e.js b/9297.d4cc59701d62bd0920db.js similarity index 100% rename from 9297.fc1940563f2dd51d749e.js rename to 9297.d4cc59701d62bd0920db.js diff --git a/9572.12356bfc34fdb82ffbbf.js b/9572.6eb75c23b6552b496f2c.js similarity index 100% rename from 9572.12356bfc34fdb82ffbbf.js rename to 9572.6eb75c23b6552b496f2c.js diff --git a/9603.4b330cbce57728599199.js b/9603.0480b5af5d185e839529.js similarity index 100% rename from 9603.4b330cbce57728599199.js rename to 9603.0480b5af5d185e839529.js diff --git a/9661.d3d384af76f2720089d6.js b/9661.ea423abe129ac98a71cb.js similarity index 100% rename from 9661.d3d384af76f2720089d6.js rename to 9661.ea423abe129ac98a71cb.js diff --git a/9742.7e6801463422bd6fda17.js b/9742.42120769426a9411c293.js similarity index 100% rename from 9742.7e6801463422bd6fda17.js rename to 9742.42120769426a9411c293.js diff --git a/9899.af80245888276b28aee6.js b/9899.c45e5415e79ca616a70e.js similarity index 100% rename from 9899.af80245888276b28aee6.js rename to 9899.c45e5415e79ca616a70e.js diff --git a/991.07712f4c0be869bbc943.js b/991.0617115a0661545f17b4.js similarity index 100% rename from 991.07712f4c0be869bbc943.js rename to 991.0617115a0661545f17b4.js diff --git a/assets/icons/angular.svg b/assets/icons/angular.svg index 64e60169d..739484baf 100644 --- a/assets/icons/angular.svg +++ b/assets/icons/angular.svg @@ -1,32 +1,32 @@ - diff --git a/assets/icons/by.svg b/assets/icons/by.svg index 3e59303ec..341400701 100644 --- a/assets/icons/by.svg +++ b/assets/icons/by.svg @@ -1,4 +1,4 @@ - + + + + + + + - + style="fill: #323330" + /> + + + + diff --git a/assets/icons/logo.svg b/assets/icons/logo.svg index caf9e814c..6fba56d95 100644 --- a/assets/icons/logo.svg +++ b/assets/icons/logo.svg @@ -1,4 +1,4 @@ - + :root{--tui-heading-font:"Manrope",-apple-system,"BlinkMacSystemFont",system-ui,"Roboto","Segoe UI","Helvetica Neue",sans-serif;--tui-text-font:"Manrope",-apple-system,"BlinkMacSystemFont",system-ui,"Roboto","Segoe UI","Helvetica Neue",sans-serif;--tui-font-heading:var(--tui-heading-font);--tui-font-heading-1:bold 3.125rem/3.5rem var(--tui-font-heading);--tui-font-heading-2:bold 2.75rem/3rem var(--tui-font-heading);--tui-font-heading-3:bold 2.25rem/2.5rem var(--tui-font-heading);--tui-font-heading-4:bold 1.75rem/2rem var(--tui-font-heading);--tui-font-heading-5:bold 1.5rem/1.75rem var(--tui-font-heading);--tui-font-heading-6:bold 1.25rem/1.5rem var(--tui-font-heading);--tui-font-text:var(--tui-text-font);--tui-font-text-xl:normal 1.1875rem/1.75rem var(--tui-font-text);--tui-font-text-l:normal 1.0625rem/1.75rem var(--tui-font-text);--tui-font-text-l-2:normal 1.0625rem/1.5rem var(--tui-font-text);--tui-font-text-m:normal 1rem/1.5rem var(--tui-font-text);--tui-font-text-m-2:normal 1rem/1.25rem var(--tui-font-text);--tui-font-text-s:normal 0.8125rem/1.25rem var(--tui-font-text);--tui-font-text-s-2:normal 0.8125rem/1rem var(--tui-font-text);--tui-font-text-xs:normal 0.6875rem/1rem var(--tui-font-text);--tui-radius-xs:0.25rem;--tui-radius-s:0.5rem;--tui-radius-m:0.75rem;--tui-radius-l:0.75rem;--tui-radius-xl:1.5rem;--tui-height-xs:1.5rem;--tui-height-s:2rem;--tui-height-m:2.75rem;--tui-height-l:3.5rem;--tui-padding-s:0.75rem;--tui-padding-m:0.75rem;--tui-padding-l:1rem;--tui-duration:0.3s;--tui-backdrop:none;--tui-disabled-opacity:0.56;--tui-autofill:#fff5c0;--tui-base-01:#fff;--tui-base-02:#f6f6f6;--tui-base-03:#ededed;--tui-base-04:#d7d7d7;--tui-base-05:#b0b0b0;--tui-base-06:#959595;--tui-base-07:grey;--tui-base-08:#333;--tui-base-09:#000;--tui-primary:#526ed3;--tui-primary-hover:#6c86e2;--tui-primary-active:#314692;--tui-primary-text:#fff;--tui-secondary:#ebefff;--tui-secondary-hover:#dfe3f3;--tui-secondary-active:#d8ddf2;--tui-accent:#ff7043;--tui-accent-hover:#ff9a94;--tui-accent-active:#e7716a;--tui-accent-text:#fff;--tui-selection:rgba(112,182,246,.12);--tui-focus:rgba(51,51,51,.64);--tui-clear:rgba(0,0,0,.04);--tui-clear-disabled:rgba(0,0,0,.04);--tui-clear-hover:rgba(0,0,0,.16);--tui-clear-active:rgba(0,0,0,.2);--tui-clear-inverse:hsla(0,0%,100%,.16);--tui-clear-inverse-hover:hsla(0,0%,100%,.24);--tui-clear-inverse-active:hsla(0,0%,100%,.4);--tui-elevation-01:#fff;--tui-elevation-02:#fff;--tui-error-fill:#f45725;--tui-error-bg:rgba(244,87,37,.12);--tui-error-bg-hover:rgba(244,87,37,.24);--tui-success-fill:#4ac99b;--tui-success-bg:rgba(74,201,155,.12);--tui-success-bg-hover:rgba(74,201,155,.24);--tui-warning-fill:#ffc700;--tui-warning-bg:rgba(255,199,0,.12);--tui-warning-bg-hover:rgba(255,199,0,.24);--tui-info-fill:#70b6f6;--tui-info-bg:rgba(112,182,246,.12);--tui-info-bg-hover:rgba(112,182,246,.24);--tui-neutral-fill:#79818c;--tui-neutral-bg:hsla(215,8%,51%,.12);--tui-neutral-bg-hover:hsla(215,8%,51%,.24);--tui-text-01:#1b1f3b;--tui-text-02:rgba(27,31,59,.65);--tui-text-03:rgba(27,31,59,.4);--tui-link:#526ed3;--tui-link-hover:#6c86e2;--tui-positive:#3aa981;--tui-positive-hover:#7ac5aa;--tui-negative:#dd4c1e;--tui-negative-hover:#e38163;--tui-error-fill-night:#ff8c67;--tui-error-bg-night:rgba(244,87,37,.32);--tui-error-bg-night-hover:rgba(244,87,37,.4);--tui-success-fill-night:#4ac99b;--tui-success-bg-night:rgba(74,201,155,.32);--tui-success-bg-night-hover:rgba(74,201,155,.4);--tui-warning-fill-night:#ffc700;--tui-warning-bg-night:rgba(255,199,0,.32);--tui-warning-bg-night-hover:rgba(255,199,0,.4);--tui-info-fill-night:#70b6f6;--tui-info-bg-night:rgba(112,182,246,.32);--tui-info-bg-night-hover:rgba(112,182,246,.4);--tui-neutral-fill-night:#959ba4;--tui-neutral-bg-night:hsla(216,8%,61%,.32);--tui-neutral-bg-night-hover:hsla(216,8%,61%,.48);--tui-autofill-night:#554a2a;--tui-text-01-night:#fff;--tui-text-02-night:hsla(0,0%,100%,.72);--tui-text-03-night:hsla(0,0%,100%,.6);--tui-link-night:#6788ff;--tui-link-night-hover:#526ed3;--tui-positive-night:#44c596;--tui-positive-night-hover:#3aa981;--tui-negative-night:#ff8c67;--tui-negative-night-hover:#bb593a;--tui-support-01:#a8cef1;--tui-support-02:#3682db;--tui-support-03:#8dda71;--tui-support-04:#34b41f;--tui-support-05:#e29398;--tui-support-06:#b8474e;--tui-support-07:#fcc068;--tui-support-08:#ff8a00;--tui-support-09:#dab3f9;--tui-support-10:#7b439e;--tui-support-11:#fee797;--tui-support-12:#fcbb14;--tui-support-13:#ea97c4;--tui-support-14:#bd65a4;--tui-support-15:#7fd7cc;--tui-support-16:#2fad96;--tui-support-17:#d4aca2;--tui-support-18:#9d6f64;--tui-support-19:#d2e9a2;--tui-support-20:#aadc42;--tui-support-21:#a0c5df;--tui-chart-0:var(--tui-primary);--tui-chart-1:var(--tui-support-13);--tui-chart-2:var(--tui-support-21);--tui-chart-3:var(--tui-support-11);--tui-chart-4:var(--tui-base-05)}@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/manrope/v14/xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk7PFO_F.ttf) format("truetype")}@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/manrope/v14/xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk59E-_F.ttf) format("truetype")}html{font-size:16px}body,html{height:100%}body{min-height:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,html{-webkit-overflow-scrolling:touch}@supports (-webkit-hyphens: none) and (text-align-last: right){:after{content:none}}body{margin:0}body,html{height:100%} - + \ No newline at end of file diff --git a/main.aa6831fb09a4bbd87297.js b/main.aa6831fb09a4bbd87297.js deleted file mode 100644 index 0c2079554..000000000 --- a/main.aa6831fb09a4bbd87297.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[179],{88499:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=88499,t.exports=e},64769:(t,e,n)=>{var i=n(91211),r=n(74788),o=n(12057),s=n(58497),a=n(56083),l=n(79221);let c=(()=>{class t extends a._j{constructor(t,e){super(),this._nextAnimationId=0;const n={id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}};this._renderer=t.createRenderer(e.body,n)}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,a.vP)(t):t;return d(this._renderer,null,e,"register",[n]),new u(e,this._renderer)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.FYo),r.LFG(o.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class u extends a.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new h(this._id,t,e||{},this._renderer)}}class h{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return d(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function d(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const p="@",f="@.disabled";let g=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new m("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(o),new v(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then((()=>{this._microtaskId++}))}scheduleListenerCallback(t,e,n){t>=0&&te(n))):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((()=>{this._zone.run((()=>{this._animationCallbacksBuffer.forEach((t=>{const[e,n]=t;e(n)})),this._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)})),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.FYo),r.LFG(l.Th),r.LFG(r.R0b))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class m{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==p&&e==f?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class v extends m{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==p?"."==e.charAt(1)&&e==f?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==p){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),o="";return r.charAt(0)!=p&&([r,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,o,(t=>{const e=t._data||-1;this.factory.scheduleListenerCallback(e,n,t)}))}return this.delegate.listen(t,e,n)}}let _=(()=>{class t extends l.Th{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(o.K0),r.LFG(l.Vi),r.LFG(l.NH))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const y=new r.OlP("AnimationModuleType"),b=[{provide:a._j,useClass:c},{provide:l.NH,useFactory:function(){return new l.Ar}},{provide:l.Th,useClass:_},{provide:r.FYo,useFactory:function(t,e,n){return new g(t,e,n)},deps:[i.se,l.Th,r.R0b]}],w=[{provide:l.Vi,useFactory:function(){return(0,l.QN)()?new l.DT:new l.uL}},{provide:y,useValue:"BrowserAnimations"},...b],C=[{provide:l.Vi,useClass:l.nV},{provide:y,useValue:"NoopAnimations"},...b];let x=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?C:w}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:w,imports:[i.b2]}),t})();var O=n(64548),k=n(34978),M=n(42991),P=n(79456),S=n(21022),E=n(20707),T=n(82847),A=n(75452),I=n(23358);const D=new r.OlP("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),L=new r.OlP("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),N=new r.OlP("A function that sanitizes value for a CSS rule",{factory:()=>t=>t,providedIn:"root"}),F=I;class z{constructor(t,e,{defaultView:n},i){this.config=t,this.sanitizeStyle=e,this.domPurify=F(n),i.forEach((({name:t,hook:e})=>{this.domPurify.addHook(t,e)}))}sanitize(t,e,n=this.config){if(t===r.q3G.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return t===r.q3G.STYLE?this.sanitizeStyle(String(e)):this.domPurify.sanitize(String(e||""),n)}}z.ɵfac=function(t){return new(t||z)(r.LFG(D),r.LFG(N),r.LFG(o.K0),r.LFG(L))},z.ɵprov=r.Yz7({token:z,factory:z.ɵfac,providedIn:"root"}),z.ngInjectableDef=(0,r.Ez6)({factory:function(){return new z((0,r.f3M)(D),(0,r.f3M)(N),(0,r.f3M)(o.K0),(0,r.f3M)(L))},token:z,providedIn:"root"});var R=n(2546),B=n(97582),j=n(34016),U=n(62579),$=n(99434);let V=(()=>{class t{constructor(t,e,n,i){this.isCypress=t,this.pageLoaded$=e,this.router=n,this.storage=i,this.isCypressMode=this.isCypress,this.pageLoadedInit="0",this.pageLoaded=this.pageLoaded$,this.version="1.2.0"}ngOnInit(){this.replaceEnvInURI()}replaceEnvInURI(){return(0,B.mG)(this,void 0,void 0,(function*(){const t=this.storage.getItem("env");t&&(this.storage.removeItem("env"),yield this.router.navigateByUrl(t))}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36($.B4),r.Y36(O.V1),r.Y36(j.F0),r.Y36(U.H3))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-app"]],hostVars:5,hostBindings:function(t,e){2&t&&(r.Ikx("$.class._loaded",e.pageLoaded),r.ekj("_is-cypress-mode",e.isCypressMode)("_loaded",e.pageLoadedInit))},decls:8,vars:1,consts:[["ngProjectAs","tuiDocHeader",5,["tuiDocHeader"]],["tuiLink","","tuiMode","onLight","href","https://github.com/taiga-family/tui-editor","title","TUI Editor source code on GitHub","rel","noreferrer","iconAlign","left","icon","assets/icons/github.svg","target","_blank",1,"link"],["tuiLink","","tuiMode","onLight","href","https://t.me/taiga_ui","title","Get help on Telegram","iconAlign","left","rel","noreferrer","icon","assets/icons/telegram.svg","target","_blank",1,"link"],["tuiLink","","tuiMode","onLight","title","StackBlitz Starter","iconAlign","left","icon","assets/icons/stackblitz.svg","routerLink","stackblitz",1,"link"],["ngProjectAs","tuiDocNavigation",5,["tuiDocNavigation"],1,"app-version"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-root"),r.TgZ(1,"tui-doc-main"),r.ynx(2,0),r._UZ(3,"a",1),r._UZ(4,"a",2),r._UZ(5,"a",3),r.BQk(),r.TgZ(6,"p",4),r._uU(7),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(7),r.hij(" v",e.version," "))},directives:[S.G,k.$5,T.V,A.w,j.yS],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);color:var(--tui-text-01)}.link[_ngcontent-%COMP%]{margin-left:1rem}.app-version[_ngcontent-%COMP%]{color:var(--tui-text-02);font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}"],changeDetection:0}),t})();const Y=[{section:"Documentation",title:"StackBlitz",keywords:"reproduce, issue, bug, sandbox, playground, test",route:"stackblitz"},{section:"Documentation",title:"Changelog",route:"changelog",keywords:"release, change, changelog, archive, history"},{section:"Editor",title:"Starter Kit",route:"starter-kit",keywords:"editor, setup, starter kit, wysiwyg, редактор, текст, html, rich, text"},{section:"Editor",title:"Installation",route:"installation",keywords:"installation"},{section:"Editor",title:"ColorPicker",route:"color-picker",keywords:"цвет, выбор, градиент, gradient, палитра, input, inputcolor"},{section:"Editor",title:"Font",route:"font",keywords:"editor, font, wysiwyg, редактор, текст, html, rich, text"},{section:"Editor",title:"Anchors",route:"anchors",keywords:"editor, anchors, wysiwyg, редактор, текст, html, rich, text"},{section:"Editor",title:"Groups",route:"groups",keywords:"editor, draggable, nested, hilite, groups, wysiwyg, редактор, текст, html, rich, text"},{section:"Editor",title:"Focus",route:"focus",keywords:"editor, focus, focusable, wysiwyg, редактор, фокус, html, rich, text"},{section:"Editor",title:"Custom tool",subPages:[{section:"Editor",title:"Paste emoji",keywords:"editor, custom, tool, emoji, wysiwyg, редактор, текст, html, rich, text",route:"/custom-tool/paste-emoji"},{section:"Editor",title:"Color picker",keywords:"editor, custom color picker, color picker, tool, wysiwyg, редактор, выбрать цвет, html, rich, text",route:"/custom-tool/color-picker"},{section:"Editor",title:"Paste image",keywords:"editor, paste image, tool, wysiwyg, редактор, текст, html, rich, text",route:"/custom-tool/paste-image"},{section:"Editor",title:"Font size tool",keywords:"editor, custom font size tool, tool, wysiwyg, редактор, выбрать размер, html, rich, text",route:"/font",fragment:"custom-size-tool"}]},{section:"Editor",title:"Highlight",subPages:[{section:"Editor",title:"Mark text",keywords:"editor, highlight, text, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/highlight/text"},{section:"Editor",title:"Code block",keywords:"editor, highlight, code, block, pre, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/highlight/code"}]},{section:"Editor",title:"Processing",subPages:[{section:"Editor",title:"Legacy html",keywords:"editor, processing, content, legacy html, wysiwyg, редактор, текст, html, rich, text",route:"/processing/legacy-html"},{section:"Editor",title:"Cleanup html",keywords:"editor, processing, content, cleanup html, wysiwyg, редактор, текст, html, rich, text",route:"/processing/cleanup-html"},{section:"Editor",title:"Markdown",keywords:"editor, markdown, wysiwyg, редактор, текст, html, rich, text",route:"/processing/markdown"}]},{section:"Editor",title:"Images",subPages:[{section:"Editor",title:"Resizable",keywords:"editor, resizable, image, wysiwyg, редактор, текст, html, rich, text",route:"/images/resizable"},{section:"Editor",title:"Preview images",keywords:"editor, preview, images, wysiwyg, редактор, текст, html, rich, text",route:"/images/preview"},{section:"Editor",title:"Upload",keywords:"editor, upload, images, wysiwyg, редактор, текст, html, rich, text",route:"/images/upload"}]},{section:"Editor",title:"Embed",subPages:[{section:"Editor",title:"Youtube",keywords:"editor, embed, video player, audio player, youtube, wysiwyg, редактор, плейер, плеер, ютуб, текст, html, rich, text",route:"/embed/youtube"},{section:"Editor",title:"Iframe",keywords:"editor, embed, iframe, wysiwyg, редактор, айфрейм, html, rich, text",route:"/embed/iframe"},{section:"Editor",title:"HTML5",keywords:"editor, embed, video player, audio player, html5, wysiwyg, редактор, плеер, html, rich, text",route:"/embed/html5"}]}],q=[{path:"starter-kit",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(8592),n.e(3116)]).then(n.bind(n,93116))).ExampleTuiEditorStarterModule})),data:{title:"StarterKit"}},{path:"stackblitz",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(8258).then(n.bind(n,88258))).StackblitzStarterModule})),data:{title:"Stackblitz Starter"}},{path:"installation",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(8592),n.e(7106)]).then(n.bind(n,87106))).ExampleTuiEditorInstallationModule})),data:{title:"Installation"}},{path:"color-picker",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3021)]).then(n.bind(n,53021))).ExampleTuiEditorInputColorPickerModule})),data:{title:"Input color picker"}},{path:"font",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3963)]).then(n.bind(n,3963))).ExampleTuiEditorFontModule})),data:{title:"Font"}},{path:"anchors",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(9180)]).then(n.bind(n,89180))).ExampleTuiEditorAnchorsModule})),data:{title:"Anchors"}},{path:"focus",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7856)]).then(n.bind(n,57856))).ExampleTuiEditorFocusModule})),data:{title:"Focus"}},{path:"groups",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(4304)]).then(n.bind(n,4304))).ExampleTuiEditorGroupsModule})),data:{title:"Groups"}},{path:"upload-files",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5597)]).then(n.bind(n,85597))).ExampleTuiEditorUploadFilesModule})),data:{title:"Upload files"}},{path:"custom-tool/paste-emoji",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7416)]).then(n.bind(n,7416))).ExampleTuiEditorPasteEmojiToolModule})),data:{title:"Editor — Paste emoji custom tool"}},{path:"custom-tool/color-picker",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(824)]).then(n.bind(n,20824))).ExampleTuiEditorColorPickerToolModule})),data:{title:"Editor — Color picker custom tool"}},{path:"custom-tool/paste-image",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7375)]).then(n.bind(n,17375))).ExampleTuiEditorPasteImageToolModule})),data:{title:"Editor — Paste image custom tool"}},{path:"highlight/text",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(8234)]).then(n.bind(n,88234))).ExampleTuiEditorMarkTextModule})),data:{title:"Editor — Highlight text"}},{path:"processing/legacy-html",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5745)]).then(n.bind(n,25745))).ExampleTuiEditorLegacyHtmlModule})),data:{title:"Editor — Legacy html"}},{path:"processing/cleanup-html",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(6553)]).then(n.bind(n,36553))).ExampleTuiEditorCleanupHtmlModule})),data:{title:"Editor — Cleanup html"}},{path:"processing/markdown",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5518)]).then(n.bind(n,95518))).ExampleTuiEditorMarkdownModule})),data:{title:"Editor — Markdown"}},{path:"highlight/code",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(8155)]).then(n.bind(n,88155))).ExampleTuiEditorCodeBlockModule})),data:{title:"Editor — Highlight code"}},{path:"images/resizable",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(4805)]).then(n.bind(n,14805))).ExampleTuiEditorResizableImagesToolModule})),data:{title:"Editor — Resizable images"}},{path:"images/preview",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5821)]).then(n.bind(n,65821))).ExampleTuiEditorPreviewImagesToolModule})),data:{title:"Editor — Preview images"}},{path:"images/upload",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5892)]).then(n.bind(n,15892))).ExampleTuiEditorUploadImagesModule})),data:{title:"Editor — Upload images"}},{path:"embed/youtube",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(9899)]).then(n.bind(n,29899))).ExampleTuiEditorEmbedYoutubeModule})),data:{title:"Editor — Youtube"}},{path:"embed/iframe",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3566)]).then(n.bind(n,53566))).ExampleTuiEditorEmbedIframeModule})),data:{title:"Editor — Iframe"}},{path:"embed/html5",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(2361)]).then(n.bind(n,2361))).ExampleTuiEditorEmbedHtml5Module})),data:{title:"Editor — HTML5"}},{path:"changelog",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(861).then(n.bind(n,40861))).ExampleTuiEditorChangelogModule})),data:{title:"Changelog"}},{path:"**",redirectTo:"starter-kit"}];let H=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[j.Bz.forRoot(q,{initialNavigation:"enabledBlocking",relativeLinkResolution:"corrected",scrollPositionRestoration:"enabled"})],j.Bz]}),t})();var Z=n(89570),G=n(54789);let X=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["logo"]],decls:4,vars:0,consts:[["tuiLink","","routerLink","/",1,"logo-link"],[1,"logo-name"],["src","assets/icons/logo.svg",1,"logo-icon"],["src","assets/icons/by.svg","alt","by Tinkoff",1,"by"]],template:function(t,e){1&t&&(r.TgZ(0,"a",0),r.TgZ(1,"span",1),r._UZ(2,"tui-svg",2),r.qZA(),r.qZA(),r._UZ(3,"img",3))},directives:[T.V,j.yS,G.PN],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%], tui-root._mobile [_nghost-%COMP%]{font-size:0}.logo-link[_ngcontent-%COMP%]{display:flex}.logo-name[_ngcontent-%COMP%]{display:flex;color:var(--tui-text-01)}.logo-icon[_ngcontent-%COMP%]{min-width:180px;min-height:30px}.logo[_ngcontent-%COMP%]{margin-right:.625rem}.by[_ngcontent-%COMP%]{margin-left:.875rem}tui-root._mobile[_nghost-%COMP%] .by[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .by[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})();const J=new Z.Al(X);let Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[T.j,j.Bz,G.EI]]}),t})(),W=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t,bootstrap:[V]}),t.ɵinj=r.cJS({providers:[{provide:o.S$,useClass:o.b0},{provide:O.Yx,useValue:"TUI Editor | "},{provide:O.Or,useValue:J},{provide:O.AC,useValue:["Description and examples","API"]},{provide:O.V5,useValue:Y},{provide:P.hm,useClass:z},{provide:O.yO,useValue:t=>{const e="https://github.com/taiga-family/tui-editor/tree/main/libs";return t.path?`${e}/${t.path}`:t.package&&"kit"===t.package.toLowerCase()?`${e}/${t.package.toLowerCase()}/src/lib/tui-editor/${(t.header[0].toLowerCase()+t.header.slice(1)).replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`:null}}],imports:[[i.b2.withServerTransition({appId:"demo"}),H,S.W,E.up,M.E6,x,s.JF,Q,R.JP.forRoot({loader:s.eN}),k.qn,T.j,A.z]]}),t})();(0,r.G48)(),i.q6().bootstrapModule(W).catch((t=>console.error(t)))},56083:(t,e,n)=>{n.d(e,{l3:()=>o,_j:()=>i,LC:()=>r,ZN:()=>g,jt:()=>a,pV:()=>h,IO:()=>d,vP:()=>l,EY:()=>p,oB:()=>c,eR:()=>u,X$:()=>s,ZE:()=>m,k1:()=>v});class i{}class r{}const o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function h(t=null){return{type:9,options:t}}function d(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function p(t,e){return{type:12,timings:t,animation:e}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class m{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?f((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++e==r&&this._onFinish()})),t.onDestroy((()=>{++n==r&&this._onDestroy()})),t.onStart((()=>{++i==r&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,e)=>Math.max(t,e.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,e)=>null===t||e.totalTime>t.totalTime?e:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}const v="!"},79221:(t,e,n)=>{n.d(e,{Vi:()=>M,Th:()=>re,NH:()=>Ot,uL:()=>be,nV:()=>k,DT:()=>Ce,Ar:()=>kt,QN:()=>xe});var i=n(56083),r=n(74788);function o(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new i.ZN;case 1:return t[0];default:return new i.ZE(t)}}function l(t,e,n,r,o={},s={}){const a=[],l=[];let c=-1,u=null;if(r.forEach((t=>{const n=t.offset,r=n==c,h=r&&u||{};Object.keys(t).forEach((n=>{let r=n,l=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),l){case i.k1:l=o[n];break;case i.l3:l=s[n];break;default:l=e.normalizeStyleValue(n,r,l,a)}h[r]=l})),r||l.push(h),u=h,c=n})),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart((()=>i(n&&u(n,"start",t))));break;case"done":t.onDone((()=>i(n&&u(n,"done",t))));break;case"destroy":t.onDestroy((()=>i(n&&u(n,"destroy",t))))}}function u(t,e,n){const i=n.totalTime,r=!!n.disabled,o=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,r),s=t._data;return null!=s&&(o._data=s),o}function h(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,n)=>[];const v=s();(v||"undefined"!=typeof Element)&&(f=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(v||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),m=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}let k=(()=>{class t{validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,o,s=[],a){return new i.ZN(n,r)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),M=(()=>{class t{}return t.NOOP=new k,t})();const P=1e3,S="ng-enter",E="ng-leave",T="ng-trigger",A=".ng-trigger",I="ng-animating",D=".ng-animating";function L(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:N(parseFloat(e[1]),e[2])}function N(t,e){return"s"===e?t*P:t}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){const i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let r,o=0,s="";if("string"==typeof t){const n=t.match(i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=N(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(o=N(parseFloat(a),n[4]));const l=n[5];l&&(s=l)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:o,easing:s}}(t,e,n)}function z(t,e={}){return Object.keys(t).forEach((n=>{e[n]=t[n]})),e}function R(t,e,n={}){if(e)for(let e in t)n[e]=t[e];else z(t,n);return n}function B(t,e,n){return n?e+":"+n+";":""}function j(t){let e="";for(let n=0;n{const r=X(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]})),s()&&j(t))}function $(t,e){t.style&&(Object.keys(e).forEach((e=>{const n=X(e);t.style[n]=""})),s()&&j(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,i.vP)(t):t}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function q(t){let e=[];if("string"==typeof t){let n;for(;n=Y.exec(t);)e.push(n[1]);Y.lastIndex=0}return e}function H(t,e,n){const i=t.toString(),r=i.replace(Y,((t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()}));return r==i?t:r}function Z(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const G=/-+([a-z0-9])/g;function X(t){return t.replace(G,((...t)=>t[1].toUpperCase()))}function J(t,e){return 0===t||0===e}function Q(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let o=e[0],s=[];if(i.forEach((t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]})),s.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],o=i[2],s=i[3];e.push(rt(r,s));const a=r==tt&&s==tt;"<"!=o[0]||a||e.push(rt(s,r))}(t,n,e))):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function rt(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(r,o)=>{let s=t==tt||t==r,a=e==tt||e==o;return!s&&n&&"boolean"==typeof r&&(s=r?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?nt.has(e):it.has(e)),s&&a}}const ot=":self",st=new RegExp(`s*${ot}s*,?`,"g");function at(t,e,n){return new lt(t).build(e,n)}class lt{constructor(t){this._driver=t}build(t,e){const n=new ct(e);return this._resetContextStyleTimingState(n),W(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach((t=>{n.name=t,r.push(this.visitState(n,e))})),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,o.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:r,transitions:o,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach((t=>{if(ut(t)){const e=t;Object.keys(e).forEach((t=>{q(e[t]).forEach((t=>{o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){const n=Z(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=W(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map((t=>W(this,t,e))),options:ht(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map((t=>{e.currentTime=n;const r=W(this,t,e);return i=Math.max(i,e.currentTime),r}));return e.currentTime=i,{type:3,steps:r,options:ht(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return dt(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some((t=>"{"==t.charAt(0)&&"{"==t.charAt(1)))){const t=dt(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),dt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let o=t.styles?t.styles:(0,i.oB)({});if(5==o.type)r=this.visitKeyframes(o,e);else{let o=t.styles,s=!1;if(!o){s=!0;const t={};n.easing&&(t.easing=n.easing),o=(0,i.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(o,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach((t=>{"string"==typeof t?t==i.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)})):n.push(t.styles);let r=!1,o=null;return n.forEach((t=>{if(ut(t)){const e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach((t=>{"string"!=typeof t&&Object.keys(t).forEach((n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=q(t);r.length&&r.forEach((t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)}))}(t[n],e.options,e.errors)}))}))}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let o=!1,s=!1,a=0;const l=t.steps.map((t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach((t=>{if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),s=s||c<0||c>1,o=o||c0&&i{const o=u>0?i==h?1:u*i:r[i],s=o*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)})),n}visitReference(t,e){return{type:8,animation:W(this,V(t.animation),e),options:ht(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ht(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,o]=function(t){const e=!!t.split(/\s*,\s*/).find((t=>t==ot));return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,A).replace(/@\w+/g,(t=>A+"-"+t.substr(1))).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const s=W(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:ht(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:W(this,V(t.animation),e),timings:n,options:null}}}class ct{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ut(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=z(t)).params&&(t.params=(e=t.params)?z(e):null):t={},t}function dt(t,e,n){return{duration:t,delay:e,easing:n}}function pt(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class ft{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const gt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function vt(t,e,n,i,r,o={},s={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,r,o,s,a,l,c)}class _t{buildKeyframes(t,e,n,i,r,o,s,a,l,c=[]){l=l||new ft;const u=new bt(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),W(this,n,u);const h=u.timelines.filter((t=>t.containsAnimation()));if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map((t=>t.buildKeyframes())):[pt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&t.forEach((t=>{const n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i}visitReference(t,e){e.updateOptions(t.options,!0),W(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=L(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach((t=>W(this,t,i))),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?L(t.options.delay):0;t.steps.forEach((o=>{const s=e.createSubContext(t.options);r&&s.delayNextStep(r),W(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((t=>e.currentTimeline.mergeTimelineCollectedStyles(t))),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?H(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((t=>{const n=t.offset||0;o.forwardTime(n*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?L(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach(((n,i)=>{e.currentQueryIndex=i;const s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(a=s.currentTimeline),W(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe();const l=s.currentTimeline.currentTime;o=Math.max(o,l)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;W(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,r,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new wt(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=L(n.duration)),null!=n.delay&&(i.delay=L(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach((n=>{e&&t.hasOwnProperty(n)||(t[n]=H(r[n],t,this.errors))}))}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach((t=>{n[t]=e[t]}))}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Ct(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,o){let s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);const e=1!=n;let i=this._driver.query(this.element,t,e);0!==n&&(i=n<0?i.slice(i.length+n,i.length):i.slice(0,n)),s.push(...i)}return r||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class wt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((t=>{this._backFill[t]=this._globalTimelineStyles[t]||i.l3,this._currentKeyframe[t]=i.l3})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach((t=>{"*"===t?(r=r||Object.keys(e),r.forEach((t=>{n[t]=i.l3}))):R(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(s).forEach((t=>{const e=H(s[t],o,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:i.l3),this._updateStyle(t,e)}))}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach((e=>{const n=t[e];this._currentKeyframe[e]=n})),Object.keys(this._localTimelineStyles).forEach((t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)}))}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach((e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,s)=>{const a=R(o,!0);Object.keys(a).forEach((n=>{const r=a[n];r==i.k1?t.add(n):r==i.l3&&e.add(n)})),n||(a.offset=s/this.duration),r.push(a)}));const o=t.size?Z(t.values()):[],s=e.size?Z(e.values()):[];if(n){const t=r[0],e=z(t);t.offset=0,e.offset=1,r=[t,e]}return pt(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Ct extends wt{constructor(t,e,n,i,r,o,s=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=n+e,s=e/o,a=R(t[0],!1);a.offset=0,r.push(a);const l=R(t[0],!1);l.offset=xt(s),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let s=R(t[i],!1);const a=e+s.offset*n;s.offset=xt(a/o),r.push(s)}n=o,e=0,i="",t=r}return pt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ot{}class kt extends Ot{normalizePropertyName(t,e){return X(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(Mt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+r}}const Mt=(()=>function(t){const e={};return t.forEach((t=>e[t]=!0)),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Pt(t,e,n,i,r,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const St={};class Et{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some((t=>t(e,n,i,r)))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}build(t,e,n,i,r,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||St,p=s&&s.params||St,f=this.buildStyles(n,p,u),g=a&&a.params||St,m=this.buildStyles(i,g,u),v=new Set,_=new Map,y=new Map,b="void"===i,w={params:Object.assign(Object.assign({},h),g)},C=c?[]:vt(t,e,this.ast.animation,r,o,f,m,w,l,u);let x=0;if(C.forEach((t=>{x=Math.max(t.duration+t.delay,x)})),u.length)return Pt(e,this._triggerName,n,i,b,f,m,[],[],_,y,x,u);C.forEach((t=>{const n=t.element,i=d(_,n,{});t.preStyleProps.forEach((t=>i[t]=!0));const r=d(y,n,{});t.postStyleProps.forEach((t=>r[t]=!0)),n!==e&&v.add(n)}));const O=Z(v.values());return Pt(e,this._triggerName,n,i,b,f,m,C,O,_,y,x)}}class Tt{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=z(this.defaultParams);return Object.keys(t).forEach((e=>{const n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach((t=>{let o=r[t];o.length>1&&(o=H(o,i,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o}))}})),n}}class At{constructor(t,e,n){var i,r;this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach((t=>{const e=t.options&&t.options.params||{};this.states[t.name]=new Tt(t.style,e,n)})),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach((e=>{this.transitionFactories.push(new Et(t,e,this.states))})),this.fallbackTransition=(i=t,r=this.states,this._normalizer,new Et(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},r))}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find((r=>r.match(t,e,n,i)))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Dt=new ft;class Lt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=at(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=l(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],o=this._animations[t];let s;const l=new Map;if(o?(s=vt(this._driver,e,o,S,E,{},{},n,Dt,r),s.forEach((t=>{const e=d(l,t.element,{});t.postStyleProps.forEach((t=>e[t]=null))}))):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);l.forEach(((t,e)=>{Object.keys(t).forEach((n=>{t[n]=this._driver.computeStyle(e,n,i.l3)}))}));const c=a(s.map((t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((()=>this.destroy(t))),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=h(e,"","","");return c(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n){const n=i[0]||{};return void this.create(t,e,n)}const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Nt="ng-animate-queued",Ft="ng-animate-disabled",zt=".ng-animate-disabled",Rt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class $t{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=function(t){return null!=t?t:null}(i),n){const e=z(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach((n=>{null==t[n]&&(t[n]=e[n])}))}}}const Vt="void",Yt=new $t(Vt);class qt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Kt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const o=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Kt(t,T),Kt(t,T+"-"+e),a[e]=Yt),()=>{this._engine.afterFlush((()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]}))}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),o=new Zt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Kt(t,T),Kt(t,T+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new $t(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=Yt),l.value!==Vt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let i=0;i{$(t,n),U(t,i)}))}return}const c=d(this._engine.playersByElement,t,[]);c.forEach((t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()}));let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(Kt(t,Nt),o.onStart((()=>{te(t,Nt)}))),o.onDone((()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}})),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach(((e,n)=>{delete e[t]})),this._elementListeners.forEach(((e,n)=>{this._elementListeners.set(n,e.filter((e=>e.name!=t)))}))}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach((t=>t.destroy())),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,A,!0);n.forEach((t=>{if(t[Ut])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach((n=>n.triggerLeaveAnimation(t,e,!1,!0))):this.clearElementCache(t)})),this._engine.afterFlushAnimationsDone((()=>n.forEach((t=>this.clearElementCache(t)))))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const o=[];if(Object.keys(r).forEach((e=>{if(this._triggers[e]){const n=this.trigger(t,e,Vt,i);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(o).onDone((()=>this._engine.processLeaveNode(t))),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach((e=>{const r=e.name;if(i.has(r))return;i.add(r);const o=this._triggers[r].fallbackTransition,s=n[r]||Yt,a=new $t(Vt),l=new Zt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Ut];i&&i!==Bt||(n.afterFlush((()=>this.clearElementCache(t))),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Kt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach((n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach((e=>{if(e.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}})),i.markedForDestroy?this._engine.afterFlush((()=>{i.destroy()})):e.push(n)})),this._queue=[],e.sort(((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1}))}destroy(t){this.players.forEach((t=>t.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((e=>e.element===t))||e,e}}class Ht{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach((e=>{e.players.forEach((e=>{e.queued&&t.push(e)}))})),t}createNamespace(t,e){const n=new qt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--){const n=this._namespaceList[r];if(this.driver.containsElement(n.hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush((()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((()=>n.destroy(e)))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Kt(t,Ft)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,Ft))}removeNode(t,e,n,i){if(Gt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Ut]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,A,!0);e.forEach((t=>this.destroyActiveAnimationsForElement(t))),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach((t=>this.finishActiveQueriedAnimationOnElement(t))))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach((t=>{t.queued?t.markedForDestroy=!0:t.destroy()}))}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach((t=>t.finish()))}whenRenderingDone(){return new Promise((t=>{if(this.players.length)return a(this.players).onDone((()=>t()));t()}))}processLeaveNode(t){const e=t[Ut];if(e&&e.setForRemoval){if(t[Ut]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,zt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,zt,!0).forEach((t=>{this.markElementAsDisabled(t,!1)}))}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((t,e)=>this._balanceNamespaceList(t,e))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt())),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone((()=>{t.forEach((t=>t()))})):t.forEach((t=>t()))}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ft,r=[],o=new Map,s=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach((t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let t=0;t{const n=S+v++;m.set(e,n),t.forEach((t=>Kt(t,n)))}));const _=[],y=new Set,b=new Set;for(let t=0;ty.add(t))):b.add(e))}const w=new Map,C=Qt(f,Array.from(y));C.forEach(((t,e)=>{const n=E+v++;w.set(e,n),t.forEach((t=>Kt(t,n)))})),t.push((()=>{g.forEach(((t,e)=>{const n=m.get(e);t.forEach((t=>te(t,n)))})),C.forEach(((t,e)=>{const n=w.get(e);t.forEach((t=>te(t,n)))})),_.forEach((t=>{this.processLeaveNode(t)}))}));const x=[],O=[];for(let t=this._namespaceList.length-1;t>=0;t--)this._namespaceList[t].drainQueuedTransitions(e).forEach((t=>{const e=t.player,i=t.element;if(x.push(e),this.collectedEnterElements.length){const t=i[Ut];if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,i),a=w.get(i),h=m.get(i),f=this._buildInstruction(t,n,h,a,o);if(f.errors&&f.errors.length)return void O.push(f);if(o)return e.onStart((()=>$(i,f.fromStyles))),e.onDestroy((()=>U(i,f.toStyles))),void r.push(e);if(t.isFallbackTransition)return e.onStart((()=>$(i,f.fromStyles))),e.onDestroy((()=>U(i,f.toStyles))),void r.push(e);f.timelines.forEach((t=>t.stretchStartingKeyframe=!0)),n.append(i,f.timelines);const g={instruction:f,player:e,element:i};s.push(g),f.queriedElements.forEach((t=>d(l,t,[]).push(e))),f.preStyleProps.forEach(((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach((e=>t.add(e)))}})),f.postStyleProps.forEach(((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach((t=>i.add(t)))}))}));if(O.length){const t=[];O.forEach((e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach((e=>t.push(`- ${e}\n`)))})),x.forEach((t=>t.destroy())),this.reportError(t)}const k=new Map,M=new Map;s.forEach((t=>{const e=t.element;n.has(e)&&(M.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))})),r.forEach((t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((t=>{d(k,e,[]).push(t),t.destroy()}))}));const P=_.filter((t=>ie(t,c,u))),T=new Map;Jt(T,this.driver,b,u,i.l3).forEach((t=>{ie(t,c,u)&&P.push(t)}));const A=new Map;g.forEach(((t,e)=>{Jt(A,this.driver,new Set(t),c,i.k1)})),P.forEach((t=>{const e=T.get(t),n=A.get(t);T.set(t,Object.assign(Object.assign({},e),n))}));const I=[],L=[],N={};s.forEach((t=>{const{element:e,player:i,instruction:s}=t;if(n.has(e)){if(h.has(e))return i.onDestroy((()=>U(e,s.toStyles))),i.disabled=!0,i.overrideTotalTime(s.totalTime),void r.push(i);let t=N;if(M.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=M.get(n);if(e){t=e;break}i.push(n)}i.forEach((e=>M.set(e,t)))}const n=this._buildAnimation(i.namespaceId,s,k,o,A,T);if(i.setRealPlayer(n),t===N)I.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else $(e,s.fromStyles),i.onDestroy((()=>U(e,s.toStyles))),L.push(i),h.has(e)&&r.push(i)})),L.forEach((t=>{const e=o.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}})),r.forEach((t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(let t=0;t<_.length;t++){const e=_[t],n=e[Ut];if(te(e,E),n&&n.hasAnimation)continue;let i=[];if(l.size){let t=l.get(e);t&&t.length&&i.push(...t);let n=this.driver.query(e,D,!0);for(let t=0;t!t.destroyed));r.length?ee(this,e,r):this.processLeaveNode(e)}return _.length=0,I.forEach((t=>{this.players.push(t),t.onDone((()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)})),t.play()})),I}elementContainsData(t,e){let n=!1;const i=e[Ut];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Vt;e.forEach((e=>{e.queued||(t||e.triggerName==i)&&o.push(e)}))}}return(n||i)&&(o=o.filter((t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName)))),o}_beforeAnimationBuild(t,e,n){const i=e.triggerName,r=e.element,o=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:i;for(const t of e.timelines){const i=t.element,a=i!==r,l=d(n,i,[]);this._getPreviousPlayers(i,a,o,s,e.toState).forEach((t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)}))}$(r,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,g=e.timelines.map((e=>{const a=e.element;p.add(a);const d=a[Ut];if(d&&d.removedBeforeQueried)return new i.ZN(e.duration,e.delay);const g=a!==u,m=function(t){const e=[];return ne(t,e),e}((n.get(a)||Rt).map((t=>t.getRealPlayer()))).filter((t=>{const e=t;return!!e.element&&e.element===a})),v=o.get(a),_=s.get(a),y=l(this.driver,this._normalizer,0,e.keyframes,v,_),b=this._buildPlayer(e,y,m);if(e.subTimeline&&r&&f.add(a),g){const e=new Zt(t,c,a);e.setRealPlayer(b),h.push(e)}return b}));h.forEach((t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone((()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t)))})),p.forEach((t=>Kt(t,I)));const m=a(g);return m.onDestroy((()=>{p.forEach((t=>te(t,I))),U(u,e.toStyles)})),f.forEach((t=>{d(r,t,[]).push(m)})),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new i.ZN(t.duration,t.delay)}}class Zt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new i.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((e=>{this._queuedCallbacks[e].forEach((n=>c(t,e,void 0,n)))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart((()=>e.triggerCallback("start"))),t.onDone((()=>this.finish())),t.onDestroy((()=>this.destroy()))}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Xt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Jt(t,e,n,i,r){const o=[];n.forEach((t=>o.push(Xt(t))));const s=[];i.forEach(((n,i)=>{const o={};n.forEach((t=>{const n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i[Ut]=jt,s.push(i))})),t.set(i,o)}));let a=0;return n.forEach((t=>Xt(t,o[a++]))),s}function Qt(t,e){const n=new Map;if(t.forEach((t=>n.set(t,[]))),0==e.length)return n;const i=new Set(e),r=new Map;function o(t){if(!t)return 1;let e=r.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:i.has(s)?1:o(s),r.set(t,e),e}return e.forEach((t=>{const e=o(t);1!==e&&n.get(e).push(t)})),n}const Wt="$$classes";function Kt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Wt];n||(n=t[Wt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Wt];n&&delete n[e]}}function ee(t,e,n){a(n).onDone((()=>t.processLeaveNode(e)))}function ne(t,e){for(let n=0;nr.add(t))):e.set(t,i),n.delete(t),!0}class re{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ht(t,e,n),this._timelineEngine=new Lt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const o=t+"-"+i;let s=this._triggerCache[o];if(!s){const t=[],e=at(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new At(t,e,n)}(i,e,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,i,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n),o=i;this._timelineEngine.command(t,e,r,o)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function oe(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ae(e[0]),e.length>1&&(i=ae(e[e.length-1]))):e&&(n=ae(e)),n||i?new se(t,n,i):null}let se=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ae(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=ve(t,"").trim();n.length&&(function(t,e){let n=0;for(let e=0;e=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ge(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ve(t,"").split(","),i=fe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function de(t,e,n){me(t,"PlayState",n,pe(t,e))}function pe(t,e){const n=ve(t,"");return n.indexOf(",")>0?fe(n.split(","),e):fe([n],e)}function fe(t,e){for(let n=0;n=0)return n;return-1}function ge(t,e,n){n?t.removeEventListener(ue,e):t.addEventListener(ue,e)}function me(t,e,n,i){const r=ce+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function ve(t,e){return t.style[ce+e]||""}class _e{constructor(t,e,n,i,r,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach((t=>t())),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this.element,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new he(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(()=>this.finish()))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach((n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:K(this.element,n))}))}this.currentSnapshot=t}}class ye extends i.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=O(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((t=>{this._startingStyles[t]=this.element.style[t]})),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((t=>this.element.style.setProperty(t,this._styles[t]))),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach((t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)})),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map((t=>O(t)));let i=`@keyframes ${e} {\n`,r="";n.forEach((t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach((e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}})),i+=`${r}}\n`})),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(t,e,n,i,r,o=[],s){const a=o.filter((t=>t instanceof _e)),l={};J(n,i)&&a.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach((t=>{Object.keys(t).forEach((n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=Q(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e),d=function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}(t);d.appendChild(h);const p=oe(t,e),f=new _e(t,e,u,n,i,r,c,p);return f.onDestroy((()=>{var t;(t=h).parentNode.removeChild(t)})),f}}class we{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((t=>t())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:K(this.element,e))})),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class Ce{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Oe().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=o.filter((t=>t instanceof we));J(n,i)&&c.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const u=oe(t,e=Q(t,e=e.map((t=>R(t,!1))),l));return new we(t,e,a,u)}}function xe(){return"function"==typeof Oe()}function Oe(){return o()&&Element.prototype.animate||{}}},12057:(t,e,n)=>{n.d(e,{mr:()=>b,Ov:()=>nt,ez:()=>lt,K0:()=>l,Do:()=>C,Ts:()=>rt,Nd:()=>ot,V_:()=>h,Ye:()=>x,S$:()=>_,i8:()=>it,mk:()=>R,$G:()=>B,sg:()=>U,O5:()=>V,PC:()=>X,RF:()=>Z,n9:()=>G,tP:()=>J,b0:()=>w,Zx:()=>at,lw:()=>c,EM:()=>pt,JF:()=>mt,NF:()=>ht,PM:()=>dt,w_:()=>a,bD:()=>ct,q:()=>o,Mx:()=>z,HT:()=>s});var i=n(74788);let r=null;function o(){return r}function s(t){r||(r=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.ɵfac=function(e){return new(e||t)(i.LFG(l))},t.ɵprov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length,i=n-("/"===t[n-1]?1:0);return t.slice(0,i)+t.slice(n)}function v(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const b=new i.OlP("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(k(n)),this._platformStrategy.onPopState((t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})}))}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+v(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((t=>{this._notifyUrlChangeListeners(t.url,t.state)})))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach((n=>n(t,e)))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_),i.LFG(c))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=m,t.ɵprov=(0,i.Yz7)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new x((0,i.LFG)(_),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var M=(()=>((M=M||{})[M.Decimal=0]="Decimal",M[M.Percent=1]="Percent",M[M.Currency=2]="Currency",M[M.Scientific=3]="Scientific",M))(),P=(()=>((P=P||{})[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",P))(),S=(()=>((S=S||{})[S.Decimal=0]="Decimal",S[S.Group=1]="Group",S[S.List=2]="List",S[S.PercentSign=3]="PercentSign",S[S.PlusSign=4]="PlusSign",S[S.MinusSign=5]="MinusSign",S[S.Exponential=6]="Exponential",S[S.SuperscriptingExponent=7]="SuperscriptingExponent",S[S.PerMille=8]="PerMille",S[S[1/0]=9]="Infinity",S[S.NaN=10]="NaN",S[S.TimeSeparator=11]="TimeSeparator",S[S.CurrencyDecimal=12]="CurrencyDecimal",S[S.CurrencyGroup=13]="CurrencyGroup",S))();function E(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===S.CurrencyDecimal)return n[i.wAp.NumberSymbols][S.Decimal];if(e===S.CurrencyGroup)return n[i.wAp.NumberSymbols][S.Group]}return r}const T=i.kL8,A=/^(\d+)?\.((\d+)(-(\d+))?)?$/,I=".",D="0";function L(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class N{}let F=(()=>{class t extends N{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(T(e||this.locale)(t)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.soG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();function z(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let R=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachChangedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachRemovedItem((t=>{t.previousValue&&this._toggleClass(t.key,!1)}))}_applyIterableChanges(t){t.forEachAddedItem((t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)})),t.forEachRemovedItem((t=>this._toggleClass(t.item,!1)))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!0))):Object.keys(t).forEach((e=>this._toggleClass(e,!!t[e]))))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!1))):Object.keys(t).forEach((t=>this._toggleClass(t,!1))))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach((t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.ɵdir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),B=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b))},t.ɵdir=i.lG2({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.TTD]}),t})();class j{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let U=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error(`Cannot find a differ supporting object '${e}' of type '${t=e,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation(((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new j(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new $(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new $(t,r);e.push(o)}}));for(let t=0;t{this._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.ɵdir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ${constructor(t,e){this.record=t,this.view=e}}let V=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Y,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){q("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){q("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Y{constructor(){this.$implicit=null,this.ngIf=null}}function q(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class H{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Z=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new H(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Z,9))},t.ɵdir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),X=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem((t=>this._setStyle(t.key,null))),t.forEachAddedItem((t=>this._setStyle(t.key,t.currentValue))),t.forEachChangedItem((t=>this._setStyle(t.key,t.currentValue)))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.ɵdir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),J=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b))},t.ɵdir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function Q(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class W{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class K{createSubscription(t,e){return t.then(e,(t=>{throw t}))}dispose(t){}onDestroy(t){}}const tt=new K,et=new W;let nt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,(e=>this._updateLatestValue(t,e)))}_selectStrategy(e){if((0,i.QGY)(e))return tt;if((0,i.F4k)(e))return et;throw Q(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.ɵpipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),it=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Q(t,e);return e.toLowerCase()}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"lowercase",type:t,pure:!0}),t})(),rt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"json",type:t,pure:!1}),t})(),ot=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=st}transform(t,e=st){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t),i=e!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem((t=>{this.keyValues.push({key:t.key,value:t.currentValue})}))),(n||i)&&(this.keyValues.sort(e),this.compareFn=e),this.keyValues}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.aQg,16))},t.ɵpipe=i.Yjl({name:"keyvalue",type:t,pure:!1}),t})();function st(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,r,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf(I))>-1&&(s=s.replace(I,"")),(i=s.search(/e/i))>0?(n<0&&(n=i),n+=+s.slice(i+1),s=s.substring(0,i)):n<0&&(n=s.length),i=0;s.charAt(i)===D;i++);if(i===(o=s.length))e=[0],n=1;else{for(o--;s.charAt(o)===D;)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(s.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(A);if(null===t)throw new Error(`${o} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=L(e)),null!=n&&(h=L(n)),null!=i?d=L(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(e,r),n);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let t=s;t=5)if(s-1<0){for(let e=0;e>s;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?i.pop():l=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(l=p.every((t=>!t));f0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=e.lgSize&&v.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)v.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(E(n,i)),m.length&&(a+=E(n,r)+m.join("")),g&&(a+=E(n,S.Exponential)+"+"+g)}else a=E(n,S.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],s=-1!==r.indexOf(I)?r.split(I):[r.substring(0,r.lastIndexOf(D)+1),r.substring(r.lastIndexOf(D)+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let t=0;t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[{provide:N,useClass:F}]}),t})();const ct="browser",ut="server";function ht(t){return t===ct}function dt(t){return t===ut}let pt=(()=>{class t{}return t.ɵprov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new ft((0,i.LFG)(l),window)}),t})();class ft{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=gt(this.window.history)||gt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function gt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class mt{}},58497:(t,e,n)=>{n.d(e,{eN:()=>T,JF:()=>V});var i=n(12057),r=n(74788),o=n(25917),s=n(29856),a=n(94612),l=n(45435),c=n(88002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach((t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}}))}:()=>{this.headers=new Map,Object.keys(t).forEach((e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((t=>this.applyUpdate(t))),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach((e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))}))}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter((t=>-1===r.indexOf(t))),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach((e=>t(this.normalizedNames.get(e),this.headers.get(e))))}}class p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function m(t){return encodeURIComponent(t).replace(f,((t,e)=>{var n;return null!==(n=g[e])&&void 0!==n?n:t}))}function v(t){return`${t}`}class _{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach((t=>{const i=t.indexOf("="),[r,o]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)})),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach((n=>{const i=t[n];Array.isArray(i)?i.forEach((t=>{e.push({param:n,value:t,op:"a"})})):e.push({param:n,value:i,op:"a"})})),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map((t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map((t=>e+"="+this.encoder.encodeValue(t))).join("&")})).filter((t=>""!==t)).join("&")}clone(t){const e=new _({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((t=>this.map.set(t,this.cloneFrom.map.get(t)))),this.updates.forEach((t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(v(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(v(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}})),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?"),i=-1===n?"?":ne.set(n,t.setHeaders[n])),l)),t.setParams&&(c=Object.keys(t.setParams).reduce(((e,n)=>e.set(n,t.setParams[n])),c)),new x(n,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var O=(()=>((O=O||{})[O.Sent=0]="Sent",O[O.UploadProgress=1]="UploadProgress",O[O.ResponseHeader=2]="ResponseHeader",O[O.DownloadProgress=3]="DownloadProgress",O[O.Response=4]="Response",O[O.User=5]="User",O))();class k{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class M extends k{constructor(t={}){super(t),this.type=O.ResponseHeader}clone(t={}){return new M({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class P extends k{constructor(t={}){super(t),this.type=O.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new P({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let r,o;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(o=n.params instanceof _?n.params:new _({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,o.of)(i).pipe((0,a.b)((t=>this.handler.handle(t))));if(t instanceof x||"events"===n.observe)return r;const s=r.pipe((0,l.h)((t=>t instanceof P)));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,c.U)((t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return s.pipe((0,c.U)((t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return s.pipe((0,c.U)((t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));default:return s.pipe((0,c.U)((t=>t.body)))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new _).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(u))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class A{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new r.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const L=/^\)\]\}',?\n/;let N=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.y((e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(((t,e)=>n.setRequestHeader(t,e.join(",")))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new M({headers:o,status:e,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(e){l=t,c&&(c=!1,l={error:e,text:l})}}c?(e.next(new P({body:l,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new S({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new S({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(o()),l=!0);let r={type:O.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:O.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:O.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.JF))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const F=new r.OlP("XSRF_COOKIE_NAME"),z=new r.OlP("XSRF_HEADER_NAME");class R{}let B=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(F))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),j=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(R),r.LFG(z))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),U=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight(((t,e)=>new A(t,e)),this.backend)}return this.chain.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),$=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:j,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[j,{provide:I,useExisting:j,multi:!0},{provide:R,useClass:B},{provide:F,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[T,{provide:u,useClass:U},N,{provide:h,useExisting:N}],imports:[[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},74788:(t,e,n)=>{n.d(e,{deG:()=>zn,tb:()=>Fc,AFp:()=>Ac,ip1:()=>Ec,CZH:()=>Tc,hGG:()=>Tu,z2F:()=>bu,sBO:()=>Cl,Sil:()=>Zc,_Vd:()=>Ha,EJc:()=>Bc,SBq:()=>Ja,qLn:()=>Br,vpe:()=>cc,gxx:()=>ts,tBr:()=>si,XFs:()=>T,OlP:()=>Fn,zs3:()=>gs,ZZ4:()=>gl,aQg:()=>vl,soG:()=>Rc,YKP:()=>Il,v3s:()=>Cu,h0i:()=>Al,PXZ:()=>gu,R0b:()=>Jc,FiY:()=>ai,Lbi:()=>Nc,g9A:()=>Lc,n_E:()=>hc,Qsj:()=>Ka,FYo:()=>Wa,JOm:()=>ui,Tiy:()=>el,q3G:()=>Ir,PiD:()=>li,tp0:()=>ci,EAV:()=>ku,Rgc:()=>Pl,dDg:()=>iu,DyG:()=>Rn,GfV:()=>nl,s_b:()=>Ll,ifc:()=>F,eFA:()=>mu,Ez6:()=>w,G48:()=>du,Gpc:()=>p,f3M:()=>ii,X6Q:()=>hu,_c5:()=>Su,VLi:()=>su,c2e:()=>zc,zSh:()=>ns,wAp:()=>Aa,vHH:()=>m,EiD:()=>Tr,mCW:()=>pr,qzn:()=>nr,JVY:()=>rr,pB0:()=>lr,eBb:()=>sr,L6k:()=>or,LAX:()=>ar,cg1:()=>Sa,Tjo:()=>Pu,kL8:()=>Ea,yhl:()=>ir,dqk:()=>U,sIi:()=>ks,CqO:()=>Hs,QGY:()=>Ys,F4k:()=>qs,RDi:()=>Wt,AaK:()=>u,z3N:()=>er,qOj:()=>vs,TTD:()=>Vt,_Bn:()=>$a,xp6:()=>io,uIk:()=>Ts,Tol:()=>la,ekj:()=>aa,Suo:()=>xc,Xpm:()=>W,lG2:()=>ot,Yz7:()=>b,cJS:()=>C,oAB:()=>nt,Yjl:()=>st,Y36:()=>Ds,_UZ:()=>Bs,GkF:()=>$s,BQk:()=>Us,ynx:()=>js,qZA:()=>Rs,TgZ:()=>zs,EpF:()=>Vs,n5z:()=>An,Ikx:()=>xa,LFG:()=>ni,$8M:()=>Dn,$Z:()=>Ls,NdJ:()=>Zs,CRH:()=>Oc,kcU:()=>He,O4$:()=>qe,oxw:()=>Js,ALo:()=>ec,lcZ:()=>nc,xi3:()=>ic,Dn7:()=>rc,Hsn:()=>Ks,F$t:()=>Ws,Q6J:()=>Ns,DdM:()=>Xl,VKq:()=>Jl,WLB:()=>Ql,iGM:()=>wc,MAs:()=>Is,evT:()=>$r,Jf7:()=>Ur,CHM:()=>ve,oJD:()=>Dr,uOi:()=>Nr,LSH:()=>Lr,kYT:()=>it,Udp:()=>sa,d8E:()=>Oa,YNc:()=>As,W1O:()=>Sc,_uU:()=>ya,Oqu:()=>ba,hij:()=>wa,AsE:()=>Ca,Gf:()=>Cc});var i=n(79765),r=n(59178),o=n(29856),s=n(66682),a=n(9945);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function v(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function y(t,e){const n=e?` in ${e}`:"";throw new m("201",`No provider for ${_(t)} found${n}`)}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const w=b;function C(t){return{providers:t.providers||[],imports:t.imports||[]}}function x(t){return O(t,M)||O(t,S)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function k(t){return t&&(t.hasOwnProperty(P)||t.hasOwnProperty(E))?t[P]:null}const M=l({ɵprov:l}),P=l({ɵinj:l}),S=l({ngInjectableDef:l}),E=l({ngInjectorDef:l});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let A;function I(t){const e=A;return A=t,e}function D(t,e,n){const i=x(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&T.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function L(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),F=(()=>((F=F||{})[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",F))();const z="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,U=z||j||R||B,$={},V=[],Y=l({ɵcmp:l}),q=l({ɵdir:l}),H=l({ɵpipe:l}),Z=l({ɵmod:l}),G=l({ɵloc:l}),X=l({ɵfac:l}),J=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return L((()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=Q++,n.inputs=rt(t.inputs,e),n.outputs=rt(t.outputs),r&&r.forEach((t=>t(n))),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(K):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,n}))}function K(t){const e=at(t)||function(t){return t[q]||null}(t);return e}function tt(t){const e=function(t){return t[H]||null}(t);return e}const et={};function nt(t){return L((()=>{const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e}))}function it(t,e){return L((()=>{const n=lt(t,!0);n.declarations=e.declarations||V,n.imports=e.imports||V,n.exports=e.exports||V}))}function rt(t,e){if(null==t)return $;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}const ot=W;function st(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[Y]||null}function lt(t,e){const n=t[Z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have 'ɵmod' property.`);return n}const ct=0,ut=1,ht=2,dt=3,pt=4,ft=5,gt=6,mt=7,vt=8,_t=9,yt=10,bt=11,wt=12,Ct=13,xt=14,Ot=15,kt=16,Mt=17,Pt=18,St=19,Et=20,Tt=1,At=2,It=7,Dt=9,Lt=10;function Nt(t){return Array.isArray(t)&&"object"==typeof t[Tt]}function Ft(t){return Array.isArray(t)&&!0===t[Tt]}function zt(t){return 0!=(8&t.flags)}function Rt(t){return 2==(2&t.flags)}function Bt(t){return 1==(1&t.flags)}function jt(t){return null!==t.template}function Ut(t,e){return t.hasOwnProperty(X)?t[X]:null}class $t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Vt(){return Yt}function Yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ht),qt}function qt(){const t=Gt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===$)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ht(t,e,n,i){const r=Gt(t)||function(t,e){return t[Zt]=e}(t,{previous:$,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],l=s[a];o[a]=new $t(l&&l.currentValue,e,s===$),t[i]=e}Vt.ngInherit=!0;const Zt="__ngSimpleChanges__";function Gt(t){return t[Zt]||null}const Xt=function(t,e,n){},Jt="http://www.w3.org/2000/svg";let Qt;function Wt(t){Qt=t}function Kt(){return void 0!==Qt?Qt:"undefined"!=typeof document?document:void 0}function te(t){return!!t.listen}const ee={createRenderer:(t,e)=>Kt()};function ne(t){for(;Array.isArray(t);)t=t[ct];return t}function ie(t,e){return ne(e[t])}function re(t,e){return ne(e[t.index])}function oe(t,e){return t.data[e]}function se(t,e){return t[e]}function ae(t,e){const n=e[t];return Nt(n)?n:n[ct]}function le(t){return 4==(4&t[ht])}function ce(t){return 128==(128&t[ht])}function ue(t,e){return null==e?null:t[e]}function he(t){t[Pt]=0}function de(t,e){t[ft]+=e;let n=t,i=t[dt];for(;null!==i&&(1===e&&1===n[ft]||-1===e&&0===n[ft]);)i[ft]+=e,n=i,i=i[dt]}const pe={lFrame:Re(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function fe(){return pe.bindingsEnabled}function ge(){return pe.lFrame.lView}function me(){return pe.lFrame.tView}function ve(t){return pe.lFrame.contextLView=t,t[vt]}function _e(){let t=ye();for(;null!==t&&64===t.type;)t=t.parent;return t}function ye(){return pe.lFrame.currentTNode}function be(t,e){const n=pe.lFrame;n.currentTNode=t,n.isParent=e}function we(){return pe.lFrame.isParent}function Ce(){pe.lFrame.isParent=!1}function xe(){return pe.isInCheckNoChangesMode}function Oe(t){pe.isInCheckNoChangesMode=t}function ke(){const t=pe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Me(){return pe.lFrame.bindingIndex}function Pe(){return pe.lFrame.bindingIndex++}function Se(t){const e=pe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ee(t,e){const n=pe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Te(e)}function Te(t){pe.lFrame.currentDirectiveIndex=t}function Ae(t){const e=pe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ie(){return pe.lFrame.currentQueryIndex}function De(t){pe.lFrame.currentQueryIndex=t}function Le(t){const e=t[ut];return 2===e.type?e.declTNode:1===e.type?t[gt]:null}function Ne(t,e,n){if(n&T.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&T.Host||(i=Le(r),null===i)||(r=r[Ot],10&i.type)););if(null===i)return!1;e=i,t=r}const i=pe.lFrame=ze();return i.currentTNode=e,i.lView=t,!0}function Fe(t){const e=ze(),n=t[ut];pe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ze(){const t=pe.lFrame,e=null===t?null:t.child;return null===e?Re(t):e}function Re(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Be(){const t=pe.lFrame;return pe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const je=Be;function Ue(){const t=Be();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $e(){return pe.lFrame.selectedIndex}function Ve(t){pe.lFrame.selectedIndex=t}function Ye(){const t=pe.lFrame;return oe(t.tView,t.selectedIndex)}function qe(){pe.lFrame.currentNamespace=Jt}function He(){pe.lFrame.currentNamespace=null}function Ze(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[l]<0&&(t[Pt]+=65536),(a>11>16&&(3&t[ht])===e){t[ht]+=2048,Xt(4,s,o);try{o.call(s)}finally{Xt(5,s,o)}}}else{Xt(4,s,o);try{o.call(s)}finally{Xt(5,s,o)}}}const Ke=-1;class tn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function en(t,e,n){const i=te(t);let r=0;for(;re){s=o-1;break}}}for(;o>16,i=e;for(;n>0;)i=i[Ot],n--;return i}let un=!0;function hn(t){const e=un;return un=t,e}const dn=255,pn=5;let fn=0;function gn(t,e){const n=vn(t,e);if(-1!==n)return n;const i=e[ut];i.firstCreatePass&&(t.injectorIndex=e.length,mn(i.data,t),mn(e,null),mn(i.blueprint,null));const r=_n(t,e),o=t.injectorIndex;if(an(r)){const t=ln(r),n=cn(r,e),i=n[ut].data;for(let r=0;r<8;r++)e[o+r]=n[t+r]|i[t+r]}return e[o+8]=r,o}function mn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function vn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _n(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[ut],e=t.type;if(i=2===e?t.declTNode:1===e?r[gt]:null,null===i)return Ke;if(n++,r=r[Ot],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ke}function yn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=fn++);const r=i&dn,o=1<>pn)]|=o}(t,e,n)}function bn(t,e,n){if(n&T.Optional)return t;y(e,"NodeInjector")}function wn(t,e,n,i){if(n&T.Optional&&void 0===i&&(i=null),0==(n&(T.Self|T.Host))){const r=t[_t],o=I(void 0);try{return r?r.get(e,i,n&T.Optional):D(e,i,n&T.Optional)}finally{I(o)}}return bn(i,e,n)}function Cn(t,e,n,i=T.Default,r){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?e&dn:On:e}(n);if("function"==typeof o){if(!Ne(e,t,i))return i&T.Host?bn(r,n,i):wn(e,n,i,r);try{const t=o(i);if(null!=t||i&T.Optional)return t;y(n)}finally{je()}}else if("number"==typeof o){let r=null,s=vn(t,e),a=Ke,l=i&T.Host?e[kt][gt]:null;for((-1===s||i&T.SkipSelf)&&(a=-1===s?_n(t,e):e[s+8],a!==Ke&&En(i,!1)?(r=e[ut],s=ln(a),e=cn(a,e)):s=-1);-1!==s;){const t=e[ut];if(Sn(o,s,t.data)){const t=kn(s,e,n,r,i,l);if(t!==xn)return t}a=e[s+8],a!==Ke&&En(i,e[ut].data[s+8]===l)&&Sn(o,s,e)?(r=t,s=ln(a),e=cn(a,e)):s=-1}}}return wn(e,n,i,r)}const xn={};function On(){return new Tn(_e(),ge())}function kn(t,e,n,i,r,o){const s=e[ut],a=s.data[t+8],l=Mn(a,s,n,null==i?Rt(a)&&un:i!=s&&0!=(3&a.type),r&T.Host&&o===a);return null!==l?Pn(e,s,l,a):xn}function Mn(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=t.directiveEnd,u=o>>20,h=r?a+u:c;for(let t=i?a:a+u;t=l&&e.type===n)return t}if(r){const t=s[l];if(t&&jt(t)&&t.type===n)return l}return null}function Pn(t,e,n,i){let r=t[n];const o=e.data;if(r instanceof tn){const s=r;s.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(_(o[n]));const a=hn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?I(s.injectImpl):null;Ne(t,i,T.Default);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const i=Yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&I(l),hn(a),s.resolving=!1,je()}}return r}function Sn(t,e,n){const i=1<>pn)]&i)}function En(t,e){return!(t&T.Self||t&T.Host&&e)}class Tn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Cn(this._tNode,this._lView,t,n,e)}}function An(t){return L((()=>{const e=t.prototype.constructor,n=e[X]||In(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[X]||In(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t}))}function In(t){return g(t)?()=>{const e=In(f(t));return e&&e()}:Ut(t)}function Dn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Ln)?t[Ln]:Object.defineProperty(t,Ln,{value:[]})[Ln];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}))}class Fn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.ɵprov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const zn=new Fn("AnalyzeForEntryComponents"),Rn=Function;function Bn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?jn(t,e):e(t)))}function Un(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function $n(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Vn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;){const e=r-2;t[r]=t[e],r--}t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function qn(t,e){const n=Hn(t,e);if(n>=0)return t[1|n]}function Hn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),o=t[n<<1];if(e===o)return n<<1;o>e?r=n:i=n+1}return~(r<<1)}(t,e)}const Zn={},Gn="__NG_DI_FLAG__",Xn="ngTempTokenPath",Jn=/\n/gm,Qn="__source",Wn=l({provide:String,useValue:l});let Kn;function ti(t){const e=Kn;return Kn=t,e}function ei(t,e=T.Default){if(void 0===Kn)throw new Error("inject() must be called from an injection context");return null===Kn?D(t,void 0,e):Kn.get(t,e&T.Optional?null:void 0,e)}function ni(t,e=T.Default){return(A||ei)(f(t),e)}const ii=ni;function ri(t){const e=[];for(let n=0;n({token:t}))),-1),ai=oi(Nn("Optional"),8),li=oi(Nn("Self"),2),ci=oi(Nn("SkipSelf"),4);var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();const hi="__ngContext__";function di(t,e){t[hi]=e}function pi(t){const e=function(t){return t[hi]||null}(t);return e?Array.isArray(e)?e:e.lView:null}let fi;function gi(t,e){return fi(t,e)}function mi(t){const e=t[dt];return Ft(e)?e[dt]:e}function vi(t){return yi(t[Ct])}function _i(t){return yi(t[pt])}function yi(t){for(;null!==t&&!Ft(t);)t=t[pt];return t}function bi(t,e,n,i,r){if(null!=i){let o,s=!1;Ft(i)?o=i:Nt(i)&&(s=!0,i=i[ct]);const a=ne(i);0===t&&null!==n?null==r?Si(e,n,a):Pi(e,n,a,r||null,!0):1===t&&null!==n?Pi(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Ti(t,e);i&&function(t,e,n,i){te(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,i,r){const o=n[It];o!==ne(n)&&bi(e,t,i,o,r);for(let r=Lt;r0&&(t[n-1][pt]=i[pt]);const s=$n(t,Lt+e);Ui(i[ut],r=i,r[bt],2,null,null),r[ct]=null,r[gt]=null;const a=s[St];null!==a&&a.detachView(s[ut]),i[dt]=null,i[pt]=null,i[ht]&=-129}var r;return i}function Oi(t,e){if(!(256&e[ht])){const n=e[bt];te(n)&&n.destroyNode&&Ui(t,e,n,3,null,null),function(t){let e=t[Ct];if(!e)return ki(t[ut],t);for(;e;){let n=null;if(Nt(e))n=e[Ct];else{const t=e[Lt];t&&(n=t)}if(!n){for(;e&&!e[pt]&&e!==t;)Nt(e)&&ki(e[ut],e),e=e[dt];null===e&&(e=t),Nt(e)&&ki(e[ut],e),n=e&&e[pt]}e=n}}(e)}}function ki(t,e){if(!(256&e[ht])){e[ht]&=-129,e[ht]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let t=0;t=0?i[r=l]():i[r=-l].unsubscribe(),t+=2}else{const e=i[r=n[t+1]];n[t].call(e)}if(null!==i){for(let t=r+1;tt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}function Hi(){if(void 0===Li&&(Li=null,U.trustedTypes))try{Li=U.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Li}function Zi(t){var e;return(null===(e=Hi())||void 0===e?void 0:e.createHTML(t))||t}function Gi(t){var e;return(null===(e=Hi())||void 0===e?void 0:e.createScriptURL(t))||t}class Xi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ji extends Xi{getTypeName(){return"HTML"}}class Qi extends Xi{getTypeName(){return"Style"}}class Wi extends Xi{getTypeName(){return"Script"}}class Ki extends Xi{getTypeName(){return"URL"}}class tr extends Xi{getTypeName(){return"ResourceURL"}}function er(t){return t instanceof Xi?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){const n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ir(t){return t instanceof Xi&&t.getTypeName()||null}function rr(t){return new Ji(t)}function or(t){return new Qi(t)}function sr(t){return new Wi(t)}function ar(t){return new Ki(t)}function lr(t){return new tr(t)}class cr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(qi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(t){return null}}}class ur{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=qi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0pr(t.trim()))).join(", ")),this.buf.push(" ",r,'="',Sr(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();br.hasOwnProperty(e)&&!mr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Sr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Mr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(Mr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Pr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Er;function Tr(t,e){let n=null;try{Er=Er||function(t){const e=new ur(t);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(t){return!1}}()?new cr(e):e}(t);let i=e?String(e):"";n=Er.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Er.getInertBodyElement(i)}while(i!==o);return qi((new kr).sanitizeChildren(Ar(n)||n))}finally{if(n){const t=Ar(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ar(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ir=(()=>((Ir=Ir||{})[Ir.NONE=0]="NONE",Ir[Ir.HTML=1]="HTML",Ir[Ir.STYLE=2]="STYLE",Ir[Ir.SCRIPT=3]="SCRIPT",Ir[Ir.URL=4]="URL",Ir[Ir.RESOURCE_URL=5]="RESOURCE_URL",Ir))();function Dr(t){const e=Fr();return e?Zi(e.sanitize(Ir.HTML,t)||""):nr(t,"HTML")?Zi(er(t)):Tr(Kt(),v(t))}function Lr(t){const e=Fr();return e?e.sanitize(Ir.URL,t)||"":nr(t,"URL")?er(t):pr(v(t))}function Nr(t){const e=Fr();if(e)return Gi(e.sanitize(Ir.RESOURCE_URL,t)||"");if(nr(t,"ResourceURL"))return Gi(er(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Fr(){const t=ge();return t&&t[wt]}function zr(t){return t.ngOriginalError}function Rr(t,...e){t.error(...e)}class Br{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t&&t.ngErrorLogger||Rr}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(zr(t)):null}_findOriginalError(t){let e=t&&zr(t);for(;e&&zr(e);)e=zr(e);return e||null}}const jr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(U))();function Ur(t){return t.ownerDocument.defaultView}function $r(t){return t.ownerDocument}function Vr(t){return t instanceof Function?t():t}function Yr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const qr="ng-template";function Hr(t,e,n){let i=0;for(;io?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Yr(e,c,0)||2&i&&c!==t){if(Jr(i))return!1;s=!0}}}}else{if(!s&&!Jr(i)&&!Jr(l))return!1;if(s&&Jr(l))continue;s=!1,i=l|1&i}}return Jr(i)||s}function Jr(t){return 0==(1&t)}function Qr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""===r||Jr(s)||(e+=to(o,r),r=""),i=s,o=o||!Jr(i);n++}return""!==r&&(e+=to(o,r)),e}const no={};function io(t){ro(me(),ge(),$e()+t,xe())}function ro(t,e,n,i){if(!i)if(3==(3&e[ht])){const i=t.preOrderCheckHooks;null!==i&&Ge(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Xe(e,i,0,n)}Ve(n)}function oo(t,e){return t<<17|e<<2}function so(t){return t>>17&32767}function ao(t){return 2|t}function lo(t){return(131068&t)>>2}function co(t,e){return-131069&t|e<<2}function uo(t){return 1|t}function ho(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iEt&&ro(t,e,Et,xe()),Xt(s?2:0,r),n(i,r)}finally{Ve(o),Xt(s?3:1,r)}}function bo(t,e,n){if(zt(e)){const i=e.directiveStart,r=e.directiveEnd;for(let e=i;e0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,r,s)}}function To(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ao(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Io(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&jo(n)}}function jo(t){for(let e=vi(t);null!==e;e=_i(e))for(let t=Lt;t0&&jo(n)}const e=t[ut].components;if(null!==e)for(let n=0;n0&&jo(i)}}function Uo(t,e){const n=ae(e,t),i=n[ut];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Go(t){return t[mt]||(t[mt]=[])}function Xo(t){return t.cleanup||(t.cleanup=[])}function Jo(t,e){const n=t[_t],i=n?n.get(Br,null):null;i&&i.handleError(e)}function Qo(t,e,n,i,r){for(let o=0;othis.processProvider(n,t,e))),jn([t],(t=>this.processInjectorType(t,[],r))),this.records.set(ts,hs(void 0,this));const o=this.records.get(ns);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((t=>t.ngOnDestroy()))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Zn,n=T.Default){this.assertNotDestroyed();const i=ti(this),r=I(void 0);try{if(!(n&T.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof Fn)&&x(t);e=n&&this.injectableDefInScope(n)?hs(cs(t),is):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const i=n&T.Self?ss():this.parent;return e=n&T.Optional&&e===Zn?null:e,i.get(t,e)}catch(e){if("NullInjectorError"===e.name){if((e[Xn]=e[Xn]||[]).unshift(u(t)),i)throw e;return function(t,e,n,i){const r=t[Xn];throw e[Qn]&&r.unshift(e[Qn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"ɵ"==t.charAt(1)?t.substr(2):t;let r=u(e);if(Array.isArray(e))r=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Jn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[Xn]=null,t}(e,t,"R3InjectorError",this.source)}throw e}finally{I(r),ti(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach((t=>this.get(t)))}toString(){const t=[];return this.records.forEach(((e,n)=>t.push(u(n)))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=k(t);const r=null==i&&t.ngModule||void 0,o=void 0===r?t:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=k(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{jn(i.imports,(i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))}))}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||V)))}}this.injectorDefTypes.add(o);const a=Ut(o)||(()=>new o);this.records.set(o,hs(a,is));const l=i.providers;if(null!=l&&!s){const e=t;jn(l,(t=>this.processProvider(t,e,l)))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=ps(t=f(t))?t:f(t&&t.provide);const r=function(t,e,n){return ds(t)?hs(void 0,t.useValue):hs(us(t),is)}(t);if(ps(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=hs(void 0,is,!0),e.factory=()=>ri(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===is&&(e.value=rs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function cs(t){const e=x(t),n=null!==e?e.factory:Ut(t);if(null!==n)return n;if(t instanceof Fn)throw new Error(`Token ${u(t)} is missing a ɵprov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Vn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[M]||t[S]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function us(t,e,n){let i;if(ps(t)){const e=f(t);return Ut(e)||cs(e)}if(ds(t))i=()=>f(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ri(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ni(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ut(e)||cs(e);i=()=>new e(...ri(t.deps))}var r;return i}function hs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ds(t){return null!==t&&"object"==typeof t&&Wn in t}function ps(t){return"function"==typeof t}const fs=function(t,e,n){return function(t,e=null,n=null,i){const r=as(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let gs=(()=>{class t{static create(t,e){return Array.isArray(t)?fs(t,e,""):fs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Zn,t.NULL=new es,t.ɵprov=b({token:t,providedIn:"any",factory:()=>ni(ts)}),t.__NG_ELEMENT_ID__=-1,t})();function ms(t,e){Ze(pi(t)[ut],_e())}function vs(t){let e=(i=t.type,Object.getPrototypeOf(i.prototype).constructor),n=!0;var i;const r=[t];for(;e;){let i;if(jt(t))i=e.ɵcmp||e.ɵdir;else{if(e.ɵcmp)throw new Error("Directives cannot inherit Components");i=e.ɵdir}if(i){if(n){r.push(i);const e=t;e.inputs=_s(t.inputs),e.declaredInputs=_s(t.declaredInputs),e.outputs=_s(t.outputs);const n=i.hostBindings;n&&ws(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&ys(t,o),s&&bs(t,s),c(t.inputs,i.inputs),c(t.declaredInputs,i.declaredInputs),c(t.outputs,i.outputs),jt(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=on(r.hostAttrs,n=on(n,r.hostAttrs))}}(r)}function _s(t){return t===$?{}:t===V?[]:t}function ys(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function bs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function ws(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Cs=null;function xs(){if(!Cs){const t=U.Symbol;if(t&&t.iterator)Cs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ne(t[i.index])):i.index;if(te(n)){let s=null;if(!a&&l&&(s=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let t=0;ti?n[i]:null}"string"==typeof o&&(t+=2)}return null}(t,e,r,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=Xs(i,e,u,o,!1);const t=n.listen(f,r,o);h.push(o,t),c&&c.push(r,m,g,g+1)}}else o=Xs(i,e,u,o,!0),f.addEventListener(r,o,s),h.push(o),c&&c.push(r,m,g,s)}else o=Xs(i,e,u,o,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[r])){const t=f.length;if(t)for(let n=0;n0;)e=e[Ot],t--;return e}(t,pe.lFrame.contextLView))[vt]}(t)}function Qs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const na={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ia(t){return t.substring(na.key,na.keyEnd)}function ra(t,e){const n=na.textEnd;return n===e?-1:(e=na.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,na.key=e,n),oa(t,e,n))}function oa(t,e,n){for(;e=0;n=ra(e,n))Yn(t,ia(e),!0)}function ua(t,e,n,i){const r=ge(),o=me(),s=Se(2);o.firstUpdatePass&&da(o,t,s,i),e!==no&&Ss(r,s,e)&&ga(o,o.data[$e()],r,r[bt],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(er(t)))),t}(e,n),i,s)}function ha(t,e){return e>=t.expandoStartIndex}function da(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[$e()],s=ha(t,n);_a(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=Ae(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=fa(n=pa(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=pa(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==lo(i))return t[so(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=pa(null,t,e,n[1],i),n=fa(n,e.attrs,i),function(t,e,n,i){t[so(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else o=function(t,e,n){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=so(t[a+1]);t[i+1]=oo(e,a),0!==e&&(t[e+1]=co(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=oo(a,0),0!==a&&(t[a+1]=co(t[a+1],i)),a=i;else t[i+1]=oo(l,0),0===a?a=i:t[l+1]=co(t[l+1],i),l=i;u&&(t[i+1]=ao(t[i+1])),ta(t,c,i,!0),ta(t,c,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Hn(o,e)>=0&&(n[i+1]=uo(n[i+1]))}(e,c,t,i,o),s=oo(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function pa(t,e,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[r+1];u===no&&(u=c?V:void 0);let h=c?qn(u,i):l===i?u:void 0;if(o&&!va(h)&&(h=qn(e,i)),va(h)&&(a=h,s))return a;const d=t[r+1];r=s?so(d):lo(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=qn(t,i))}return a}function va(t){return void 0!==t}function _a(t,e){return 0!=(t.flags&(e?16:32))}function ya(t,e=""){const n=ge(),i=me(),r=t+Et,o=i.firstCreatePass?fo(i,r,1,e,null):i.data[r],s=n[r]=function(t,e){return te(t)?t.createText(e):t.createTextNode(e)}(n[bt],e);Fi(i,n,s,o),be(o,!1)}function ba(t){return wa("",t,""),ba}function wa(t,e,n){const i=ge(),r=function(t,e,n,i){return Ss(t,Pe(),n)?e+v(n)+i:no}(i,t,e,n);return r!==no&&Wo(i,$e(),r),wa}function Ca(t,e,n,i,r){const o=ge(),s=function(t,e,n,i,r,o){const s=Es(t,Me(),n,r);return Se(2),s?e+v(n)+i+v(r)+o:no}(o,t,e,n,i,r);return s!==no&&Wo(o,$e(),s),Ca}function xa(t,e,n){const i=ge();return Ss(i,Pe(),e)&&Po(me(),Ye(),i,t,e,i[bt],n,!0),xa}function Oa(t,e,n){const i=ge();if(Ss(i,Pe(),e)){const r=me(),o=Ye();Po(r,o,i,t,e,function(t,e,n){return(null===t||jt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[Tt])return t;t=t[ct]}return null}(n[e.index])),n[bt]}(Ae(r.data),o,i),n,!0)}return Oa}const ka=void 0;var Ma=["en",[["a","p"],["AM","PM"],ka],[["AM","PM"],ka,ka],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ka,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ka,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ka,"{1} 'at' {0}",ka],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Pa={};function Sa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ta(e);if(n)return n;const i=e.split("-")[0];if(n=Ta(i),n)return n;if("en"===i)return Ma;throw new Error(`Missing locale data for the locale "${t}".`)}function Ea(t){return Sa(t)[Aa.PluralCase]}function Ta(t){return t in Pa||(Pa[t]=U.ng&&U.ng.common&&U.ng.common.locales&&U.ng.common.locales[t]),Pa[t]}var Aa=(()=>((Aa=Aa||{})[Aa.LocaleId=0]="LocaleId",Aa[Aa.DayPeriodsFormat=1]="DayPeriodsFormat",Aa[Aa.DayPeriodsStandalone=2]="DayPeriodsStandalone",Aa[Aa.DaysFormat=3]="DaysFormat",Aa[Aa.DaysStandalone=4]="DaysStandalone",Aa[Aa.MonthsFormat=5]="MonthsFormat",Aa[Aa.MonthsStandalone=6]="MonthsStandalone",Aa[Aa.Eras=7]="Eras",Aa[Aa.FirstDayOfWeek=8]="FirstDayOfWeek",Aa[Aa.WeekendRange=9]="WeekendRange",Aa[Aa.DateFormat=10]="DateFormat",Aa[Aa.TimeFormat=11]="TimeFormat",Aa[Aa.DateTimeFormat=12]="DateTimeFormat",Aa[Aa.NumberSymbols=13]="NumberSymbols",Aa[Aa.NumberFormats=14]="NumberFormats",Aa[Aa.CurrencyCode=15]="CurrencyCode",Aa[Aa.CurrencySymbol=16]="CurrencySymbol",Aa[Aa.CurrencyName=17]="CurrencyName",Aa[Aa.Currencies=18]="Currencies",Aa[Aa.Directionality=19]="Directionality",Aa[Aa.PluralCase=20]="PluralCase",Aa[Aa.ExtraData=21]="ExtraData",Aa))();const Ia="en-US";let Da=Ia;function La(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Da=t.toLowerCase().replace(/_/g,"-"))}function Na(t,e,n,i,r){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(ps(t)||!t.multi){const i=new tn(l,r,Ds),p=Ra(a,e,r?u:u+d,h);-1===p?(yn(gn(c,s),o,a),Fa(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=Ra(a,e,u+d,h),f=Ra(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){yn(gn(c,s),o,a);const u=function(t,e,n,i,r){const o=new tn(t,n,Ds);return o.multi=[],o.index=e,o.componentProviders=0,za(o,r,i&&!n),o}(r?ja:Ba,n.length,r,i,l);!r&&m&&(n[f].providerFactory=u),Fa(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else Fa(o,t,p>-1?p:f,za(n[r?f:p],l,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function Fa(t,e,n,i){const r=ps(e);if(r||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,o]):s[t+1].push(i,o)}else s.push(n,o)}}}function za(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ra(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=me();if(i.firstCreatePass){const r=jt(t);Na(n,i.data,i.blueprint,r,!0),Na(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Va{}class Ya{}class qa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ha=(()=>{class t{}return t.NULL=new qa,t})();function Za(...t){}function Ga(t,e){return new Ja(re(t,e))}const Xa=function(){return Ga(_e(),ge())};let Ja=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Xa,t})();function Qa(t){return t instanceof Ja?t.nativeElement:t}class Wa{}let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>tl(),t})();const tl=function(){const t=ge(),e=ae(_e().index,t);return function(t){return t[bt]}(Nt(e)?e:t)};let el=(()=>{class t{}return t.ɵprov=b({token:t,providedIn:"root",factory:()=>null}),t})();class nl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const il=new nl("12.2.17");class rl{constructor(){}supports(t){return ks(t)}create(t){return new sl(t)}}const ol=(t,e)=>e;class sl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ol}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const o=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),o=!0),r=r._next,e++})),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new al(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new cl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}}class al{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ll{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class cl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ll,this.map.set(e,n)),n.add(t)}get(t,e){const n=t,i=this.map.get(n);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ul(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}})),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new pl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((n=>e(t[n],n)))}}class pl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function fl(){return new gl([new rl])}let gl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||fl()),deps:[[t,new ci,new ai]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.ɵprov=b({token:t,providedIn:"root",factory:fl}),t})();function ml(){return new vl([new hl])}let vl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ml()),deps:[[t,new ci,new ai]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.ɵprov=b({token:t,providedIn:"root",factory:ml}),t})();function _l(t,e,n,i,r=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&i.push(ne(o)),Ft(o))for(let t=Lt;t-1&&(xi(t,n),$n(e,n))}this._attachedToViewContainer=!1}Oi(this._lView[ut],this._lView)}onDestroy(t){ko(this._lView[ut],this._lView,null,t)}markForCheck(){Vo(this._cdRefInjectingView||this._lView)}detach(){this._lView[ht]&=-129}reattach(){this._lView[ht]|=128}detectChanges(){Yo(this._lView[ut],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Oe(!0);try{Yo(t,e,n)}finally{Oe(!1)}}(this._lView[ut],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ui(this._lView[ut],t=this._lView,t[bt],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class bl extends yl{constructor(t){super(t),this._view=t}detectChanges(){qo(this._view)}checkNoChanges(){!function(t){Oe(!0);try{qo(t)}finally{Oe(!1)}}(this._view)}get context(){return null}}const wl=function(t){return function(t,e,n){if(Rt(t)&&!n){const n=ae(t.index,e);return new yl(n,n)}if(47&t.type){const t=e[kt];return new yl(t,e)}return null}(_e(),ge(),16==(16&t))};let Cl=(()=>{class t{}return t.__NG_ELEMENT_ID__=wl,t})();const xl=[new hl],Ol=new gl([new rl]),kl=new vl(xl),Ml=function(){return Tl(_e(),ge())};let Pl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ml,t})();const Sl=Pl,El=class extends Sl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=po(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null),i=this._declarationLView[this._declarationTContainer.index];n[Mt]=i;const r=this._declarationLView[St];return null!==r&&(n[St]=r.createEmbeddedView(e)),mo(e,n,t),new yl(n)}};function Tl(t,e){return 4&t.type?new El(e,t,Ga(t,e)):null}class Al{}class Il{}const Dl=function(){return Bl(_e(),ge())};let Ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=Dl,t})();const Nl=Ll,Fl=class extends Nl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ga(this._hostTNode,this._hostLView)}get injector(){return new Tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=_n(this._hostTNode,this._hostLView);if(an(t)){const e=cn(t,this._hostLView),n=ln(t),i=e[ut].data[n+8];return new Tn(i,e)}return new Tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=zl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Lt}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){const t=o.get(Al,null);t&&(r=t)}const s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[ut];if(Ft(n[dt])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[dt],i=new Fl(e,e[gt],e[dt]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,i){const r=Lt+i,o=n.length;i>0&&(n[r-1][pt]=e),ijr});class Yl extends Ya{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(eo).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return $l(this.componentDef.inputs)}get outputs(){return $l(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const o=t.get(n,jl,r);return o!==jl||i===jl?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(Wa,ee),s=r.get(el,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(te(t)){const i=n===F.ShadowDom;return t.selectRootElement(e,i)}let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):wi(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Jt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:jr,clean:Zo,playerHandler:null,flags:0},d=Oo(0,null,null,1,0,null,null,null,null,null),p=po(null,d,h,u,null,null,o,a,s,r);let f,g;Fe(p);try{const t=function(t,e,n,i,r,o){const s=n[ut],a=Et;n[a]=t;const l=fo(s,a,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Ko(l,c,!0),null!==t&&(en(r,t,c),null!==l.classes&&Yi(r,t,l.classes),null!==l.styles&&Vi(r,t,l.styles)));const u=i.createRenderer(t,e),h=po(n,xo(e),null,e.onPush?64:16,n[a],l,i,u,null,null);return s.firstCreatePass&&(yn(gn(l,n),s,e.type),Ao(s,l),Do(l,n.length,1)),$o(n,h),n[a]=h}(c,this.componentDef,p,o,a);if(c)if(n)en(a,c,["ng-version",il.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Yi(a,c,e.join(" "))}if(g=oe(d,Et),void 0!==e){const t=g.projection=[];for(let n=0;nt(s,e))),e.contentQueries){const t=_e();e.contentQueries(1,s,t.directiveStart)}const a=_e();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ve(a.index),Eo(n[ut],a,0,a.directiveStart,a.directiveEnd,e),To(e,s)),s}(t,this.componentDef,p,h,[ms]),mo(d,p,null)}finally{Ue()}return new ql(this.componentType,f,Ga(g,p),p,g)}}class ql extends Va{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new bl(i),this.componentType=t}get injector(){return new Tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Hl=new Map;class Zl extends Al{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ul(this);const n=lt(t),i=t[G]||null;i&&La(i),this._bootstrapComponents=Vr(n.bootstrap),this._r3Injector=as(t,e,[{provide:Al,useValue:this},{provide:Ha,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=gs.THROW_IF_NOT_FOUND,n=T.Default){return t===gs||t===Al||t===ts?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((t=>t())),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Gl extends Il{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,Hl.get(r),n),Hl.set(r,n));const o=Vr(i.imports);for(const n of o)e.has(n)||(e.add(n),t(n))}(t)}(t)}create(t){return new Zl(this.moduleType,t)}}function Xl(t,e,n){const i=ke()+t,r=ge();return r[i]===no?Ps(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Jl(t,e,n,i){return Kl(ge(),ke(),t,e,n,i)}function Ql(t,e,n,i,r){return tc(ge(),ke(),t,e,n,i,r)}function Wl(t,e){const n=t[e];return n===no?void 0:n}function Kl(t,e,n,i,r,o){const s=e+n;return Ss(t,s,r)?Ps(t,s+1,o?i.call(o,r):i(r)):Wl(t,s+1)}function tc(t,e,n,i,r,o,s){const a=e+n;return Es(t,a,r,o)?Ps(t,a+2,s?i.call(s,r,o):i(r,o)):Wl(t,a+2)}function ec(t,e){const n=me();let i;const r=t+Et;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=i.factory||(i.factory=Ut(i.type)),s=I(Ds);try{const t=hn(!1),e=o();return hn(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,ge(),r,e),e}finally{I(s)}}function nc(t,e,n){const i=t+Et,r=ge(),o=se(r,i);return sc(r,oc(r,i)?Kl(r,ke(),e,o.transform,n,o):o.transform(n))}function ic(t,e,n,i){const r=t+Et,o=ge(),s=se(o,r);return sc(o,oc(o,r)?tc(o,ke(),e,s.transform,n,i,s):s.transform(n,i))}function rc(t,e,n,i,r){const o=t+Et,s=ge(),a=se(s,o);return sc(s,oc(s,o)?function(t,e,n,i,r,o,s,a){const l=e+n;return function(t,e,n,i,r){const o=Es(t,e,n,i);return Ss(t,e+2,r)||o}(t,l,r,o,s)?Ps(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Wl(t,l+3)}(s,ke(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function oc(t,e){return t[ut].data[e].pure}function sc(t,e){return Os.isWrapped(e)&&(e=Os.unwrap(e),t[Me()]=no),e}class ac extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,o,s;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(o=e.error)||void 0===o?void 0:o.bind(e),c=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(l=lc(l),a&&(a=lc(a)),c&&(c=lc(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w&&t.add(u),u}}function lc(t){return e=>{setTimeout(t,void 0,e)}}const cc=ac;function uc(){return this._results[xs()]()}class hc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xs(),n=hc.prototype;n[e]||(n[e]=uc)}get changes(){return this._changes||(this._changes=new cc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=Bn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(s[t/2]);else{const r=o[t+1],s=e[-n];for(let t=Lt;t{class t{constructor(t){this.appInits=t,this.resolve=Za,this.reject=Za,this.initialized=!1,this.done=!1,this.donePromise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let e=0;e{n.subscribe({complete:t,error:e})}));t.push(e)}}Promise.all(t).then((()=>{e()})).catch((t=>{this.reject(t)})),0===t.length&&e(),this.initialized=!0}}return t.ɵfac=function(e){return new(e||t)(ni(Ec,8))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Ac=new Fn("AppId"),Ic={provide:Ac,useFactory:function(){return`${Dc()}${Dc()}${Dc()}`},deps:[]};function Dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lc=new Fn("Platform Initializer"),Nc=new Fn("Platform ID"),Fc=new Fn("appBootstrapListener");let zc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Rc=new Fn("LocaleId"),Bc=new Fn("DefaultCurrencyCode");class jc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Uc=function(t){return new Gl(t)},$c=Uc,Vc=function(t){return Promise.resolve(Uc(t))},Yc=function(t){const e=Uc(t),n=Vr(lt(t).declarations).reduce(((t,e)=>{const n=at(e);return n&&t.push(new Yl(n)),t}),[]);return new jc(e,n)},qc=Yc,Hc=function(t){return Promise.resolve(Yc(t))};let Zc=(()=>{class t{constructor(){this.compileModuleSync=$c,this.compileModuleAsync=Vc,this.compileModuleAndAllComponentsSync=qc,this.compileModuleAndAllComponentsAsync=Hc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Gc=(()=>Promise.resolve(0))();function Xc(t){"undefined"==typeof Zone?Gc.then((()=>{t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Jc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cc(!1),this.onMicrotaskEmpty=new cc(!1),this.onStable=new cc(!1),this.onError=new cc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=U.requestAnimationFrame,e=U.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(U,(()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{t.lastRequestAnimationFrameId=-1,Kc(t),t.isCheckStableRunning=!0,Wc(t),t.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),t.fakeTopEventTask.invoke()})),Kc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return tu(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),eu(t)}},onInvoke:(n,i,r,o,s,a,l)=>{try{return tu(t),n.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),eu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Kc(t),Wc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular((()=>t.onError.emit(r))),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Jc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,Qc,Za,Za);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Qc={};function Wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((()=>t.onStable.emit(null)))}finally{t.isStable=!0}}}function Kc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function tu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function eu(t){t._nesting--,Wc(t)}class nu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cc,this.onMicrotaskEmpty=new cc,this.onStable=new cc,this.onError=new cc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let iu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{Jc.assertNotInAngularZone(),Xc((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Xc((()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1}));else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter((e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1))),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((t=>({source:t.source,creationLocation:t.creationLocation,data:t.data}))):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout((()=>{this._callbacks=this._callbacks.filter((t=>t.timeoutId!==i)),t(this._didWork,this.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.ɵfac=function(e){return new(e||t)(ni(Jc))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})(),ru=(()=>{class t{constructor(){this._applications=new Map,lu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return lu.findTestabilityInTree(this,t,e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();class ou{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function su(t){lu=t}let au,lu=new ou,cu=!0,uu=!1;function hu(){return uu=!0,cu}function du(){if(uu)throw new Error("Cannot enable prod mode after platform setup.");cu=!1}let pu=function(){};const fu=new Fn("AllowMultipleToken");class gu{constructor(t,e){this.name=t,this.token=e}}function mu(t,e,n=[]){const i=`Platform: ${e}`,r=new Fn(i);return(e=[])=>{let o=vu();if(!o||o.injector.get(fu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:ns,useValue:"platform"});!function(t){if(au&&!au.destroyed&&!au.injector.get(fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pu(),au=t.get(_u);const e=t.get(Lc,null);e&&e.forEach((t=>t()))}(gs.create({providers:t,name:i}))}return function(t){const e=vu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function vu(){return au&&!au.destroyed?au:null}let _u=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new nu:("zone.js"===t?void 0:t)||new Jc({enableLongStackTrace:hu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Jc,useValue:n}];return n.run((()=>{const e=gs.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),o=r.injector.get(Br,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular((()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy((()=>{wu(this._modules,r),t.unsubscribe()}))})),function(t,e,n){try{const i=n();return Ys(i)?i.catch((n=>{throw e.runOutsideAngular((()=>t.handleError(n))),n})):i}catch(n){throw e.runOutsideAngular((()=>t.handleError(n))),n}}(o,n,(()=>{const t=r.injector.get(Tc);return t.runInitializers(),t.donePromise.then((()=>(La(r.injector.get(Rc,Ia)||Ia),this._moduleDoBootstrap(r),r)))}))}))}bootstrapModule(t,e=[]){const n=yu({},e);return function(t,e,n){const i=new Gl(n);return Promise.resolve(i)}(this.injector,0,t).then((t=>this.bootstrapModuleFactory(t,n)))}_moduleDoBootstrap(t){const e=t.injector.get(bu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((t=>e.bootstrap(t)));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((t=>t.destroy())),this._destroyListeners.forEach((t=>t())),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.ɵfac=function(e){return new(e||t)(ni(gs))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function yu(t,e){return Array.isArray(e)?e.reduce(yu,t):Object.assign(Object.assign({},t),e)}let bu=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run((()=>{this.tick()}))}});const l=new o.y((t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular((()=>{t.next(this._stable),t.complete()}))})),c=new o.y((t=>{let e;this._zone.runOutsideAngular((()=>{e=this._zone.onStable.subscribe((()=>{Jc.assertNotInAngularZone(),Xc((()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))}))}))}));const n=this._zone.onUnstable.subscribe((()=>{Jc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular((()=>{t.next(!1)})))}));return()=>{e.unsubscribe(),n.unsubscribe()}}));this.isStable=(0,s.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ya?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Al),r=e||n.selector,o=n.create(gs.NULL,[],r,i),s=o.location.nativeElement,a=o.injector.get(iu,null),l=a&&o.injector.get(ru);return a&&l&&l.registerApplication(s,a),o.onDestroy((()=>{this.detachView(o.hostView),wu(this.components,o),l&&l.unregisterApplication(s)})),this._loadComponent(o),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular((()=>this._exceptionHandler.handleError(t)))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;wu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Fc,[]).concat(this._bootstrapListeners).forEach((e=>e(t)))}ngOnDestroy(){this._views.slice().forEach((t=>t.destroy())),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.ɵfac=function(e){return new(e||t)(ni(Jc),ni(gs),ni(Br),ni(Ha),ni(Tc))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function wu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Cu{}class xu{}const Ou={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let ku=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ou}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(88499)(e).then((t=>t[i])).then((t=>Mu(t,e,i))).then((t=>this._compiler.compileModuleAsync(t)))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(88499)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then((t=>t[i+r])).then((t=>Mu(t,e,i)))}}return t.ɵfac=function(e){return new(e||t)(ni(Zc),ni(xu,8))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function Mu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Pu=function(t){return null},Su=mu(null,"core",[{provide:Nc,useValue:"unknown"},{provide:_u,deps:[gs]},{provide:ru,deps:[]},{provide:zc,deps:[]}]),Eu=[{provide:bu,useClass:bu,deps:[Jc,gs,Br,Ha,Tc]},{provide:Vl,deps:[Jc],useFactory:function(t){let e=[];return t.onStable.subscribe((()=>{for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Tc,useClass:Tc,deps:[[new ai,Ec]]},{provide:Zc,useClass:Zc,deps:[]},Ic,{provide:gl,useFactory:function(){return Ol},deps:[]},{provide:vl,useFactory:function(){return kl},deps:[]},{provide:Rc,useFactory:function(t){return La(t=t||"undefined"!=typeof $localize&&$localize.locale||Ia),t},deps:[[new si(Rc),new ai,new ci]]},{provide:Bc,useValue:"USD"}];let Tu=(()=>{class t{constructor(t){}}return t.ɵfac=function(e){return new(e||t)(ni(bu))},t.ɵmod=nt({type:t}),t.ɵinj=C({providers:Eu}),t})()},24751:(t,e,n)=>{n.d(e,{gN:()=>R,Fj:()=>p,NI:()=>lt,oH:()=>bt,cw:()=>ct,sg:()=>Ct,u5:()=>Ot,Cf:()=>m,JU:()=>u,a5:()=>B,JJ:()=>U,JL:()=>$,On:()=>pt,eT:()=>vt,UX:()=>kt,kI:()=>y,_Y:()=>ft});var i=n(74788),r=n(12057),o=n(97968),s=n(35758),a=n(88002);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const u=new i.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,i.Gpc)((()=>p)),multi:!0},d=new i.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){const e=null==t?"":t;this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(d,8))},t.ɵdir=i.lG2({type:t,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(t,e){1&t&&i.NdJ("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i._Bn([h]),i.qOj]}),t})();function f(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=new i.OlP("NgValidators"),v=new i.OlP("NgAsyncValidators"),_=/^(?=.{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])?)*$/;class y{static min(t){return function(t){return e=>{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return f(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return f(t.value)||_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>f(e.value)||!g(e.value)?null:e.value.lengthg(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return b;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(f(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return M(t)}static composeAsync(t){return S(t)}}function b(t){return null}function w(t){return null!=t}function C(t){const e=(0,i.QGY)(t)?(0,o.D)(t):t;return(0,i.CqO)(e),e}function x(t){let e={};return t.forEach((t=>{e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function O(t,e){return e.map((e=>e(t)))}function k(t){return t.map((t=>function(t){return!t.validate}(t)?t:e=>t.validate(e)))}function M(t){if(!t)return null;const e=t.filter(w);return 0==e.length?null:function(t){return x(O(t,e))}}function P(t){return null!=t?M(k(t)):null}function S(t){if(!t)return null;const e=t.filter(w);return 0==e.length?null:function(t){const n=O(t,e).map(C);return(0,s.D)(n).pipe((0,a.U)(x))}}function E(t){return null!=t?S(k(t)):null}function T(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function A(t){return t._rawValidators}function I(t){return t._rawAsyncValidators}function D(t){return t?Array.isArray(t)?t:[t]:[]}function L(t,e){return Array.isArray(t)?t.includes(e):t===e}function N(t,e){const n=D(e);return D(t).forEach((t=>{L(n,t)||n.push(t)})),n}function F(t,e){return D(e).filter((e=>!L(t,e)))}let z=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=P(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=E(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach((t=>t())),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t}),t})(),R=(()=>{class t extends z{get formDirective(){return null}get path(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();class B extends z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class j{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let U=(()=>{class t extends j{constructor(t){super(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(B,2))},t.ɵdir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),$=(()=>{class t extends j{constructor(t){super(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,10))},t.ɵdir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function V(t,e){H(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&G(t,e)}))}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy((()=>{t._unregisterOnChange(n)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&G(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy((()=>{t._unregisterOnDisabledChange(n)}))}}(t,e)}function Y(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Z(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange((()=>{})))}function q(t,e){t.forEach((t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}))}function H(t,e){const n=A(t);null!==e.validator?t.setValidators(T(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=I(t);null!==e.asyncValidator?t.setAsyncValidators(T(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();q(e._rawValidators,r),q(e._rawAsyncValidators,r)}function Z(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=A(t);if(Array.isArray(i)&&i.length>0){const r=i.filter((t=>t!==e.validator));r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=I(t);if(Array.isArray(i)&&i.length>0){const r=i.filter((t=>t!==e.asyncValidator));r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return q(e._rawValidators,i),q(e._rawAsyncValidators,i),n}function G(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function J(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach((t=>{var e;t.constructor===p?n=t:(e=t,Object.getPrototypeOf(e.constructor)===c?i=t:r=t)})),r||i||n||null}function Q(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const W="VALID",K="INVALID",tt="PENDING",et="DISABLED";function nt(t){return(st(t)?t.validators:t)||null}function it(t){return Array.isArray(t)?P(t):t||null}function rt(t,e){return(st(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?E(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class at{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=it(this._rawValidators),this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===W}get invalid(){return this.status===K}get pending(){return this.status==tt}get disabled(){return this.status===et}get enabled(){return this.status!==et}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=it(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(t)}addValidators(t){this.setValidators(N(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(N(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(F(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(F(t,this._rawAsyncValidators))}hasValidator(t){return L(this._rawValidators,t)}hasAsyncValidator(t){return L(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild((t=>t.markAllAsTouched()))}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild((t=>{t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild((t=>{t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=tt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=et,this.errors=null,this._forEachChild((e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!0)))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=W,this._forEachChild((e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!1)))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==W&&this.status!==tt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild((e=>e._updateTreeValidity(t))),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:W}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=tt,this._hasOwnPendingAsyncValidator=!0;const e=C(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe((e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach((t=>{i=i instanceof ct?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ut&&i.at(t)||null})),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tt)?tt:this._anyControlsHaveStatus(K)?K:W}_anyControlsHaveStatus(t){return this._anyControls((e=>e.status===t))}_anyControlsDirty(){return this._anyControls((t=>t.dirty))}_anyControlsTouched(){return this._anyControls((t=>t.touched))}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}}class lt extends at{constructor(t=null,e,n){super(nt(e),rt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((t=>t(this.value,!1!==e.emitViewToModelChange))),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Q(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Q(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ct extends at{constructor(t,e,n){super(nt(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach((n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach((n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},((t,e,n)=>(t[n]=e instanceof lt?e.value:e.getRawValue(),t)))}_syncPendingControls(){let t=this._reduceChildren(!1,((t,e)=>!!e._syncPendingControls()||t));return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach((e=>{const n=this.controls[e];n&&t(n,e)}))}_setUpControls(){this._forEachChild((t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}))}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},((t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t)))}_reduceChildren(t,e){let n=t;return this._forEachChild(((t,i)=>{n=e(n,t,i)})),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)}))}}class ut extends at{constructor(t,e,n){super(nt(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach(((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach(((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map((t=>t instanceof lt?t.value:t.getRawValue()))}clear(t={}){this.controls.length<1||(this._forEachChild((t=>t._registerOnCollectionChange((()=>{})))),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce(((t,e)=>!!e._syncPendingControls()||t),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach(((e,n)=>{t(e,n)}))}_updateValue(){this.value=this.controls.filter((t=>t.enabled||this.disabled)).map((t=>t.value))}_anyControls(t){return this.controls.some((e=>e.enabled&&t(e)))}_setUpControls(){this._forEachChild((t=>this._registerControl(t)))}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)}))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ht={provide:B,useExisting:(0,i.Gpc)((()=>pt))},dt=(()=>Promise.resolve(null))();let pt=(()=>{class t extends B{constructor(t,e,n,r){super(),this.control=new lt,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=J(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),X(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?(t=this.name,[...this._parent.path,t]):[this.name];var t}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){V(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){dt.then((()=>{this.control.setValue(t,{emitViewToModelChange:!1})}))}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;dt.then((()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,9),i.Y36(m,10),i.Y36(v,10),i.Y36(u,10))},t.ɵdir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([ht]),i.qOj,i.TTD]}),t})(),ft=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),gt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const mt={provide:u,useExisting:(0,i.Gpc)((()=>vt)),multi:!0};let vt=(()=>{class t extends c{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.NdJ("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i._Bn([mt]),i.qOj]}),t})();const _t=new i.OlP("NgModelWithFormControlWarning"),yt={provide:B,useExisting:(0,i.Gpc)((()=>bt))};let bt=(()=>{class t extends B{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=J(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Y(e,this,!1),V(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}X(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Y(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(v,10),i.Y36(u,10),i.Y36(_t,8))},t.ɵdir=i.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([yt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const wt={provide:R,useExisting:(0,i.Gpc)((()=>Ct))};let Ct=(()=>{class t extends R{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange((()=>{})))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return V(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Y(t.control||null,t,!1),Q(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.form,n=this.directives,e._syncPendingControls(),n.forEach((t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})),this.ngSubmit.emit(t),!1;var e,n}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach((t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(Y(e||null,t),n instanceof lt&&(V(n,t),t.control=n))})),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){H(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);if(e){const n=function(t,e){return Z(t,e)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange((()=>{}))}_updateValidators(){H(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){this.form}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(v,10))},t.ɵdir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([wt]),i.qOj,i.TTD]}),t})(),xt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[gt]]}),t})(),Ot=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[xt]}),t})(),kt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[xt]}),t})()},91211:(t,e,n)=>{n.d(e,{b2:()=>Y,H7:()=>F,s3:()=>p,Dx:()=>H,q6:()=>$,se:()=>M});var i=n(12057),r=n(74788);class o extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class s extends o{static makeCurrent(){(0,i.HT)(new s)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),u=[{provide:r.ip1,useFactory:function(t,e,n){return()=>{n.get(r.CZH).donePromise.then((()=>{const n=(0,i.q)(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push((t=>{const e=r.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const o=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(o)}))}))}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();r.ip1,r.PXZ;const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach((t=>t.manager=this)),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let e=0;e{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach((t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))})),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),v=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach((t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))}))}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(((e,n)=>{this._addStylesToHost(t,n,e)}))}ngOnDestroy(){this._hostNodes.forEach((t=>t.forEach(_)))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function _(t){(0,i.q)().remove(t)}const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},b=/%COMP%/g,w="%COMP%",C=`_nghost-${w}`,x=`_ngcontent-${w}`;function O(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let M=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new P(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=O(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.ɵfac=function(e){return new(e||t)(r.LFG(f),r.LFG(v),r.LFG(r.AFp))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class P{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=y[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=y[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,n,i&r.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,k(n)):this.eventManager.addEventListener(t,e,k(n))}}class S extends P{constructor(t,e,n,i){super(t),this.component=n;const r=O(i+"-"+n.id,n.styles,[]);var o;e.addStyles(r),this.contentAttr=(o=i+"-"+n.id,x.replace(b,o)),this.hostAttr=function(t){return C.replace(b,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends P{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=O(i.id,i.styles,[]);for(let t=0;t{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();i.K0,r.c2e;const A=["alt","control","meta","shift"],I={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},D={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},L={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let N=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>(0,i.q)().onAndCancel(e,o.domEventName,s)))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let o="";if(A.forEach((t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")})),o+=r,0!=n.length||0===r.length)return null;const s={};return s.domEventName=i,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&D.hasOwnProperty(e)&&(e=D[e]))}return I[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),A.forEach((i=>{i!=n&&(0,L[i])(t)&&(e+=i+".")})),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded((()=>n(r)))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(R)},token:t,providedIn:"root"}),t})();function z(t){return new R(t.get(i.K0))}let R=(()=>{class t extends F{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=(0,r.Yz7)({factory:function(){return z((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const B=i.bD,j=[{provide:r.Lbi,useValue:B},{provide:r.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}],U=(r.Tiy,i.K0,[]),$=(0,r.eFA)(r._c5,"browser",j),V=[U,{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:T,multi:!0,deps:[i.K0,r.R0b,r.Lbi]},{provide:p,useClass:N,multi:!0,deps:[i.K0]},[],{provide:M,useClass:M,deps:[f,v,r.AFp]},{provide:r.FYo,useExisting:M},{provide:m,useExisting:v},{provide:v,useClass:v,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},u]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(t,12))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:V,imports:[i.ez,r.hGG]}),t})();function q(){return new H((0,r.LFG)(i.K0))}let H=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=(0,r.Yz7)({factory:q,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},34016:(t,e,n)=>{n.d(e,{gz:()=>Ht,m2:()=>j,F0:()=>mn,Od:()=>wn,yS:()=>yn,Bz:()=>In,lC:()=>Cn,Hx:()=>xt});var i=n(12057),r=n(74788),o=n(97968),s=n(25917),a=n(26215),l=n(9112),c=n(29856),u=n(13410),h=n(22416),d=n(41439),p=n(59193),f=n(52441),g=n(79765),m=n(45435),v=n(77393),_=n(7108);function y(t){return function(e){return 0===t?(0,p.c)():e.lift(new b(t))}}class b{constructor(t){if(this.total=t,this.total<0)throw new _.W}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends v.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t))}return t===e}function ct(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function dt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,s.of)(t)}const pt={exact:function t(e,n,i){if(!Ct(e.segments,n.segments))return!1;if(!_t(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:mt},ft={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((n=>lt(t[n],e[n])))},ignored:()=>!0};function gt(t,e,n){return pt[n.paths](t.root,e.root,n.matrixParams)&&ft[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function mt(t,e,n){return vt(t,e,e.segments,n)}function vt(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!!Ct(r,n)&&!e.hasChildren()&&!!_t(r,n,i)}if(t.segments.length===n.length){if(!Ct(t.segments,n))return!1;if(!_t(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!mt(t.children[n],e.children[n],i))return!1}return!0}{const r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!Ct(t.segments,r)&&!!_t(t.segments,r,i)&&!!t.children[et]&&vt(t.children[et],e,o,i)}}function _t(t,e,n){return e.every(((e,i)=>ft[n](t[i].parameters,e.parameters)))}class yt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class bt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,((t,e)=>t.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mt(this)}}class wt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function Ct(t,e){return t.length===e.length&&t.every(((t,n)=>t.path===e[n].path))}class xt{}class Ot{parse(t){const e=new Rt(t);return new yt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Pt(t.root,!0)}`,n=function(t){const e=Object.keys(t).map((e=>{const n=t[e];return Array.isArray(n)?n.map((t=>`${Et(e)}=${Et(t)}`)).join("&"):`${Et(e)}=${Et(n)}`})).filter((t=>!!t));return e.length?`?${e.join("&")}`:""}(t.queryParams);var i;return`${e}${n}${"string"==typeof t.fragment?`#${i=t.fragment,encodeURI(i)}`:""}`}}const kt=new Ot;function Mt(t){return t.segments.map((t=>Dt(t))).join("/")}function Pt(t,e){if(!t.hasChildren())return Mt(t);if(e){const e=t.children[et]?Pt(t.children[et],!1):"",n=[];return ht(t.children,((t,e)=>{e!==et&&n.push(`${e}:${Pt(t,!1)}`)})),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ht(t.children,((t,i)=>{i===et&&(n=n.concat(e(t,i)))})),ht(t.children,((t,i)=>{i!==et&&(n=n.concat(e(t,i)))})),n}(t,((e,n)=>n===et?[Pt(t.children[et],!1)]:[`${n}:${Pt(e,!1)}`]));return 1===Object.keys(t.children).length&&null!=t.children[et]?`${Mt(t)}/${e[0]}`:`${Mt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return St(t).replace(/%3B/gi,";")}function Tt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function It(t){return At(t.replace(/\+/g,"%20"))}function Dt(t){return`${Tt(t.path)}${e=t.parameters,Object.keys(e).map((t=>`;${Tt(t)}=${Tt(e[t])}`)).join("")}`;var e}const Lt=/^[^\/()?;=#]+/;function Nt(t){const e=t.match(Lt);return e?e[0]:""}const Ft=/^[^=?&#]+/,zt=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[et]=new bt(t,e)),n}parseSegment(){const t=Nt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new wt(At(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Nt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Nt(this.remaining);t&&(n=t,this.capture(n))}t[At(e)]=At(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ft);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=It(e),r=It(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Nt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=et);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[et]:new bt([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Bt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=jt(t,this._root);return e?e.children.map((t=>t.value)):[]}firstChild(t){const e=jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map((t=>t.value)).filter((e=>e!==t))}pathFromRoot(t){return Ut(t,this._root).map((t=>t.value))}}function jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=jt(t,n);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ut(t,n);if(i.length)return i.unshift(e),i}return[]}class $t{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vt(t){const e={};return t&&t.children.forEach((t=>e[t.value.outlet]=t)),e}class Yt extends Bt{constructor(t,e){super(t),this.snapshot=e,Jt(this,t)}toString(){return this.snapshot.toString()}}function qt(t,e){const n=function(t,e){const n=new Gt([],{},{},"",{},et,e,null,t.root,-1,{});return new Xt("",new $t(n,[]))}(t,e),i=new a.X([new wt("",{})]),r=new a.X({}),o=new a.X({}),s=new a.X({}),l=new a.X(""),c=new Ht(i,r,s,l,o,et,e,n.root);return c.snapshot=n.root,new Yt(new $t(c,[]),n)}class Ht{constructor(t,e,n,i,r,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,k.U)((t=>it(t))))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,k.U)((t=>it(t))))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce(((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)})),{params:{},data:{},resolve:{}})}(n.slice(i))}class Gt{constructor(t,e,n,i,r,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=it(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map((t=>t.toString())).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xt extends Bt{constructor(t,e){super(e),this.url=t,Jt(this,e)}toString(){return Qt(this._root)}}function Jt(t,e){e.value._routerState=t,e.children.forEach((e=>Jt(t,e)))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,at(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),at(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nat(t.parameters,r[e].parameters)));var i,r;const o=!t.parent!=!e.parent;return n&&!o&&(!t.parent||Kt(t.parent,e.parent))}function te(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map((e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return te(t,e,i);return te(t,e)}))}(t,e,n);return new $t(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ee(e,t),t}}const n=(i=e.value,new Ht(new a.X(i.url),new a.X(i.params),new a.X(i.queryParams),new a.X(i.fragment),new a.X(i.data),i.outlet,i.component,i)),r=e.children.map((e=>te(t,e)));return new $t(n,r)}var i}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{o[e]=Array.isArray(t)?t.map((t=>`${t}`)):`${t}`})),n.root===t?new yt(e,o,r):new yt(oe(n.root,t,e),o,r)}function oe(t,e,n){const i={};return ht(t.children,((t,r)=>{i[r]=t===e?n:oe(t,e,n)})),new bt(t.segments,i)}class se{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ne(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(ie);if(i&&i!==ut(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function le(t,e,n){if(t||(t=new bt([],{})),0===t.segments.length&&t.hasChildren())return ce(t,e,n);const i=function(t,e,n){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;const e=t.segments[r],s=n[i];if(ie(s))break;const a=`${s}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!pe(a,l,e))return o;i+=2}else{if(!pe(a,{},e))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=le(t.children[i],e,n))})),ht(t.children,((t,e)=>{void 0===i[e]&&(r[e]=t)})),new bt(t.segments,r)}}function ue(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ue(new bt([],{}),0,t))})),e}function de(t){const e={};return ht(t,((t,n)=>e[n]=`${t}`)),e}function pe(t,e,n){return t==n.path&&at(e,n.parameters)}class fe{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach((t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]})),ht(i,((t,e)=>{this.deactivateRouteAndItsChildren(t,n)}))}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Vt(t);for(const t of Object.keys(r))this.deactivateRouteAndItsChildren(r[t],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach((t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new K(t.value.snapshot))})),t.children.length&&this.forwardEvent(new Q(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Wt(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ge(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ge(t){Wt(t.value),t.children.forEach(ge)}class me{constructor(t,e){this.routes=t,this.module=e}}function ve(t){return"function"==typeof t}function _e(t){return t instanceof yt}const ye=Symbol("INITIAL_VALUE");function be(){return(0,M.w)((t=>(0,l.aj)(t.map((t=>t.pipe((0,P.q)(1),(0,S.O)(ye))))).pipe((0,E.R)(((t,e)=>{let n=!1;return e.reduce(((t,i,r)=>{if(t!==ye)return t;if(i===ye&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||_e(i))return i}return t}),t)}),ye),(0,m.h)((t=>t!==ye)),(0,k.U)((t=>_e(t)?t:!0===t)),(0,P.q)(1))))}let we=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[Cn]},encapsulation:2}),t})();function Ce(t,e=""){for(let n=0;nMe(t)===e));return n.push(...t.filter((t=>Me(t)!==e))),n}const Se={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ee(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Se):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(n,t,e);if(!r)return Object.assign({},Se);const o={};ht(r.posParams,((t,e)=>{o[e]=t.path}));const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Te(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some((n=>Ae(t,e,n)&&Me(n)!==et))}(t,n,i)){const r=new bt(e,function(t,e,n,i){const r={};r[et]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Me(i)!==et){const n=new bt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Me(i)]=n}return r}(t,e,i,new bt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((n=>Ae(t,e,n)))}(t,n,i)){const o=new bt(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(Ae(t,n,a)&&!r[Me(a)]){const n=new bt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Me(a)]=n}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new bt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ie(t,e,n,i){return!!(Me(t)===i||i!==et&&Ae(e,n,t))&&("**"===t.path||Ee(e,t,n).matched)}function De(t,e,n){return 0===e.length&&!t.children[n]}class Le{constructor(t){this.segmentGroup=t||null}}class Ne{constructor(t){this.urlTree=t}}function Fe(t){return new c.y((e=>e.error(new Le(t))))}function ze(t){return new c.y((e=>e.error(new Ne(t))))}function Re(t){return new c.y((e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`))))}class Be{constructor(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Te(this.urlTree.root,[],[],this.config).segmentGroup,e=new bt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,k.U)((t=>this.createUrlTree(je(t),this.urlTree.queryParams,this.urlTree.fragment)))).pipe((0,T.K)((t=>{if(t instanceof Ne)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Le)throw this.noMatchError(t);throw t})))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,et).pipe((0,k.U)((e=>this.createUrlTree(je(e),t.queryParams,t.fragment)))).pipe((0,T.K)((t=>{if(t instanceof Le)throw this.noMatchError(t);throw t})))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new bt([],{[et]:t}):t;return new yt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,k.U)((t=>new bt([],t)))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const t of Object.keys(n.children))"primary"===t?i.unshift(t):i.push(t);return(0,o.D)(i).pipe((0,A.b)((i=>{const r=n.children[i],o=Pe(e,i);return this.expandSegmentGroup(t,o,r,i).pipe((0,k.U)((t=>({segment:t,outlet:i}))))})),(0,E.R)(((t,e)=>(t[e.outlet]=e.segment,t)),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,m.h)(((e,n)=>t(e,n,i))):O.y,y(1),n?(0,x.d)(e):(0,C.T)((()=>new u.K)))}())}expandSegment(t,e,n,i,r,a){return(0,o.D)(n).pipe((0,A.b)((o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe((0,T.K)((t=>{if(t instanceof Le)return(0,s.of)(null);throw t}))))),(0,I.P)((t=>!!t)),(0,T.K)(((t,n)=>{if(t instanceof u.K||"EmptyError"===t.name){if(De(e,i,r))return(0,s.of)(new bt([],{}));throw new Le(e)}throw t})))}expandSegmentAgainstRoute(t,e,n,i,r,o,s){return Ie(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):Fe(e):Fe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ze(r):this.lineralizeSegments(n,r).pipe((0,D.zg)((n=>{const r=new bt(n,{});return this.expandSegment(t,r,e,n,i,!1)})))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ee(e,i,r);if(!s)return Fe(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?ze(u):this.lineralizeSegments(i,u).pipe((0,D.zg)((i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1))))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,k.U)((t=>(n._loadedConfig=t,new bt(i,{}))))):(0,s.of)(new bt(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=Ee(e,n,i);if(!o)return Fe(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,D.zg)((t=>{const i=t.module,o=t.routes,{segmentGroup:l,slicedSegments:u}=Te(e,a,c,o),h=new bt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,o,h).pipe((0,k.U)((t=>new bt(a,t))));if(0===o.length&&0===u.length)return(0,s.of)(new bt(a,{}));const d=Me(n)===r;return this.expandSegment(i,h,o,u,d?et:r,!0).pipe((0,k.U)((t=>new bt(a.concat(t.segments),t.children))))})))}getChildConfig(t,e,n){return e.children?(0,s.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,s.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,D.zg)((n=>n?this.configLoader.load(t.injector,e).pipe((0,k.U)((t=>(e._loadedConfig=t,t)))):function(t){return new c.y((e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))))}(e)))):(0,s.of)(new me([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map((i=>{const r=t.get(i);let o;if(function(t){return t&&ve(t.canLoad)}(r))o=r.canLoad(e,n);else{if(!ve(r))throw new Error("Invalid CanLoad guard");o=r(e,n)}return dt(o)}));return(0,s.of)(r).pipe(be(),(0,L.b)((t=>{if(!_e(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e})),(0,k.U)((t=>!0===t)))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[et])return Re(t.redirectTo);i=i.children[et]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new yt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ht(t,((t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let o={};return ht(e.children,((e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)})),new bt(r,o)}createSegments(t,e,n,i){return e.map((e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n)))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function je(t){const e={};for(const n of Object.keys(t.children)){const i=je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[et]){const e=t.children[et];return new bt(t.segments.concat(e.segments),e.children)}return t}(new bt(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $e{constructor(t,e){this.component=t,this.route=e}}function Ve(t,e,n){const i=t._root;return qe(i,e?e._root:null,n,[i.value])}function Ye(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function qe(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Vt(e);return t.children.forEach((t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ct(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ct(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,e)||!at(t.queryParams,e.queryParams);default:return!Kt(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ue(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?qe(t,e,a?a.children:null,i,r):qe(t,e,n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new $e(a.outlet.component,s))}else s&&He(e,a,r),r.canActivateChecks.push(new Ue(i)),o.component?qe(t,null,a?a.children:null,i,r):qe(t,null,n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),ht(o,((t,e)=>He(t,n.getContext(e),r))),r}function He(t,e,n){const i=Vt(t),r=t.value;ht(i,((t,i)=>{r.component?He(t,e?e.children.getContext(i):null,n):He(t,e,n)})),r.component&&e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new $e(e.outlet.component,r)):n.canDeactivateChecks.push(new $e(null,r))}class Ze{}function Ge(t){return new c.y((e=>e.error(t)))}class Xe{constructor(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const t=Te(this.urlTree.root,[],[],this.config.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,et);if(null===e)return null;const n=new Gt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new $t(n,e),r=new Xt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Zt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach((t=>this.inheritParamsAndData(t)))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],o=Pe(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const i=Qe(n);return i.sort(((t,e)=>t.value.outlet===et?-1:e.value.outlet===et?1:t.value.outlet.localeCompare(e.value.outlet))),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return De(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Ie(t,e,n,i))return null;let r,o=[],s=[];if("**"===t.path){const i=n.length>0?ut(n).parameters:{};r=new Gt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Me(t),t.component,t,We(e),Ke(e)+n.length,en(t))}else{const i=Ee(e,t,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new Gt(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Me(t),t.component,t,We(e),Ke(e)+o.length,en(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Te(e,o,s,a.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new $t(r,t)]}if(0===a.length&&0===c.length)return[new $t(r,[])];const u=Me(t)===i,h=this.processSegment(a,l,c,u?et:i);return null===h?null:[new $t(r,h)]}}function Je(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],n=new Set;for(const i of t){if(!Je(i)){e.push(i);continue}const t=e.find((t=>i.value.routeConfig===t.value.routeConfig));void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const t of n){const n=Qe(t.children);e.push(new $t(t.value,n))}return e.filter((t=>!n.has(t)))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function tn(t){return t.data||{}}function en(t){return t.resolve||{}}function nn(t){return(0,M.w)((e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,k.U)((()=>e))):(0,s.of)(e)}))}class rn{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}class on extends rn{}const sn=new r.OlP("ROUTES");class an{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,k.U)((n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new me(ct(i.injector.get(sn,void 0,r.XFs.Self|r.XFs.Optional)).map(ke),i)})),(0,T.K)((t=>{throw e._loader$=void 0,t})));return e._loader$=new f.c(n,(()=>new g.xQ)).pipe((0,N.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,D.zg)((t=>t instanceof r.YKP?(0,s.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t)))))}}class ln{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null}}class cn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ln,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class un{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hn(t){throw t}function dn(t,e,n){return e.parse("/")}function pn(t,e){return(0,s.of)(null)}const fn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mn=(()=>{class t{constructor(t,e,n,i,o,s,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=hn,this.malformedUriErrorHandler=dn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pn,afterPreactivation:pn},this.urlHandlingStrategy=new un,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(r.h0i),this.console=o.get(r.c2e);const u=o.get(r.R0b);this.isNgZoneEnabled=u instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new yt(new bt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new an(s,l,(t=>this.triggerEvent(new G(t))),(t=>this.triggerEvent(new X(t)))),this.routerState=qt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.ɵrouterPageId}setupNavigations(t){const e=this.events;return t.pipe((0,m.h)((t=>0!==t.id)),(0,k.U)((t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)}))),(0,M.w)((t=>{let n=!1,i=!1;return(0,s.of)(t).pipe((0,L.b)((t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}})),(0,M.w)((t=>{const n=this.browserUrlTree.toString(),i=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return vn(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,s.of)(t).pipe((0,M.w)((t=>{const n=this.transitions.getValue();return e.next(new B(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)})),(r=this.ngModule.injector,o=this.configLoader,a=this.urlSerializer,l=this.config,(0,M.w)((t=>function(t,e,n,i,r){return new Be(t,e,n,i,r).apply()}(r,o,a,t.extractedUrl,l).pipe((0,k.U)((e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))))),(0,L.b)((t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,e,n,i,r){return(0,D.zg)((o=>function(t,e,n,i,r="emptyOnly",o="legacy"){try{const a=new Xe(t,e,n,i,r,o).recognize();return null===a?Ge(new Ze):(0,s.of)(a)}catch(t){return Ge(t)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe((0,k.U)((t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))))}(this.rootComponentType,this.config,(t=>this.serializeUrl(t)),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,L.b)((t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)})));var r,o,a,l;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,l=new B(n,this.serializeUrl(i),r,o);e.next(l);const c=qt(i,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E})),nn((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})})),(0,L.b)((t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,k.U)((t=>Object.assign(Object.assign({},t),{guards:Ve(t.targetSnapshot,t.currentSnapshot,this.rootContexts)}))),function(t,e){return(0,D.zg)((n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,D.zg)((t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);const a=o.map((o=>{const s=Ye(o,e,r);let a;if(function(t){return t&&ve(t.canDeactivate)}(s))a=dt(s.canDeactivate(t,e,n,i));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=dt(s(t,e,n,i))}return a.pipe((0,I.P)())}));return(0,s.of)(a).pipe(be())}(t.component,t.route,n,e,i))),(0,I.P)((t=>!0!==t),!0))}(l,i,r,t).pipe((0,D.zg)((n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,o.D)(e).pipe((0,A.b)((e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new J(t)),(0,s.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new W(t)),(0,s.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t))).filter((t=>null!==t)).map((e=>(0,d.P)((()=>{const r=e.guards.map((r=>{const o=Ye(r,e.node,n);let s;if(function(t){return t&&ve(t.canActivateChild)}(o))s=dt(o.canActivateChild(i,t));else{if(!ve(o))throw new Error("Invalid CanActivateChild guard");s=dt(o(i,t))}return s.pipe((0,I.P)())}));return(0,s.of)(r).pipe(be())}))));return(0,s.of)(r).pipe(be())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map((i=>(0,d.P)((()=>{const r=Ye(i,e,n);let o;if(function(t){return t&&ve(t.canActivate)}(r))o=dt(r.canActivate(e,t));else{if(!ve(r))throw new Error("Invalid CanActivate guard");o=dt(r(e,t))}return o.pipe((0,I.P)())}))));return(0,s.of)(r).pipe(be())}(t,e.route,n)))),(0,I.P)((t=>!0!==t),!0))}(i,a,t,e):(0,s.of)(n))),(0,k.U)((t=>Object.assign(Object.assign({},n),{guardsResult:t}))))}))}(this.ngModule.injector,(t=>this.triggerEvent(t))),(0,L.b)((t=>{if(_e(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)})),(0,m.h)((t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1))),nn((t=>{if(t.guards.canActivateChecks.length)return(0,s.of)(t).pipe((0,L.b)((t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,M.w)((t=>{let e=!1;return(0,s.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,D.zg)((t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,s.of)(t);let a=0;return(0,o.D)(r).pipe((0,A.b)((t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,s.of)({});const a={};return(0,o.D)(r).pipe((0,D.zg)((r=>function(t,e,n,i){const r=Ye(t,e,i);return r.resolve?dt(r.resolve(e,n)):dt(r(e,n))}(t[r],e,n,i).pipe((0,L.b)((t=>{a[r]=t}))))),y(1),(0,D.zg)((()=>Object.keys(a).length===r.length?(0,s.of)(a):p.E)))}(t._resolve,t,e,i).pipe((0,k.U)((e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Zt(t,n).resolve),null))))}(t.route,e,n,i))),(0,L.b)((()=>a++)),y(1),(0,D.zg)((e=>a===r.length?(0,s.of)(t):p.E)))}))),(0,L.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,i})),(0,L.b)((t=>{const e=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})))})),nn((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})})),(0,k.U)((t=>{const e=function(t,e,n){const i=te(t,e._root,n?n._root:void 0);return new Yt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})})),(0,L.b)((t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)})),(r=this.rootContexts,a=this.routeReuseStrategy,l=t=>this.triggerEvent(t),(0,k.U)((t=>(new fe(a,t.targetRouterState,t.currentRouterState,l).activate(r),t)))),(0,L.b)({next(){n=!0},complete(){n=!0}}),(0,F.x)((()=>{var e;if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)})),(0,T.K)((n=>{if(i=!0,(r=n)&&r[rt]){const i=_e(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new U(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout((()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new $(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(e){t.reject(e)}}var r;return p.E})));var r,a,l})))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe((t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout((()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.ɵrouterPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)}),0),this.lastLocationChangeInfo=e})))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ce(t),this.config=t.map(ke),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return re(e.root,e.root,e,i,r);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new se(!0,0,t);let e=0,n=!1;const i=t.reduce(((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ht(i.outlets,((t,n)=>{e[n]="string"==typeof t?t.split("/"):t})),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach(((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[...t,i]}),[]);return new se(n,e,i)}(n);if(o.toRoot())return re(e.root,new bt([],{}),e,i,r);const s=function(t,e,n){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment,i=t===e.root;return new ae(t,i,0)}const i=ne(t.commands[0])?0:1,r=n.snapshot._lastPathIndex+i;return function(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ae(i,!1,r-o)}(n.snapshot._urlSegment,r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?ce(s.segmentGroup,s.index,o.commands):le(s.segmentGroup,s.index,o.commands);return re(s.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=_e(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e}),{})}processNavigations(){this.navigations.subscribe((t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)}),(t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}))}scheduleNavigation(t,e,n,i,r){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=vn(e)&&a&&!vn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;r?(u=r.resolve,h=r.reject,d=r.promise):d=new Promise(((t,e)=>{u=t,h=e}));const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.ɵrouterPageId?n.ɵrouterPageId:i.replaceUrl||i.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch((t=>Promise.reject(t)))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new U(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,ɵrouterPageId:e}:{navigationId:t}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(xt),r.LFG(cn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function vn(t){return"imperative"!==t}let _n=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new g.xQ,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:bn(this.skipLocationChange),replaceUrl:bn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:bn(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(Ht),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})(),yn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe((t=>{t instanceof j&&this.updateTargetUrlAndHref()}))}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:bn(this.skipLocationChange),replaceUrl:bn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:bn(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(Ht),r.Y36(i.S$))},t.ɵdir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function bn(t){return""===t||!!t}let wn=(()=>{class t{constructor(t,e,n,i,r,o){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe((t=>{t instanceof j&&this.update()}))}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,z.J)()).subscribe((t=>{this.update(),this.subscribeToEachLinkOnChanges()}))}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter((t=>!!t)).map((t=>t.onChanges));this.linkInputChangesSubscription=(0,o.D)(e).pipe((0,z.J)()).subscribe((t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()}))}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((t=>!!t))}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach((e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)})))}))}isLinkActive(t){const e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(_n,8),r.Y36(yn,8))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,_n,5),r.Suo(n,yn,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),Cn=(()=>{class t{constructor(t,e,n,i,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=i||et,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=t._futureSnapshot.routeConfig.component,i=(e=e||this.resolver).resolveComponentFactory(n),r=this.parentContexts.getOrCreateContext(this.name).children,o=new xn(t,r,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(cn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.ɵdir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class xn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ht?this.route:t===cn?this.childContexts:this.parent.get(t,e)}}class On{}class kn{preload(t,e){return(0,s.of)(null)}}let Mn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new an(e,n,(e=>t.triggerEvent(new G(e))),(e=>t.triggerEvent(new X(e))))}setUpPreloading(){this.subscription=this.router.events.pipe((0,m.h)((t=>t instanceof j)),(0,A.b)((()=>this.preload()))).subscribe((()=>{}))}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,z.J)(),(0,k.U)((t=>{})))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,(()=>(e._loadedConfig?(0,s.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,D.zg)((t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(mn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(On))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Pn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe((t=>{t instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof j&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))}))}consumeScrollEvents(){return this.router.events.subscribe((t=>{t instanceof tt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))}))}scheduleScrollEvent(t,e){this.router.triggerEvent(new tt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(mn),r.LFG(i.EM),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const Sn=new r.OlP("ROUTER_CONFIGURATION"),En=new r.OlP("ROUTER_FORROOT_GUARD"),Tn=[i.Ye,{provide:xt,useClass:Ot},{provide:mn,useFactory:function(t,e,n,i,r,o,s,a={},l,c){const u=new mn(null,t,e,n,i,r,o,ct(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe((t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)})),u},deps:[xt,cn,i.Ye,r.zs3,r.v3s,r.Sil,sn,Sn,[class{},new r.FiY],[class{},new r.FiY]]},cn,{provide:Ht,useFactory:function(t){return t.routerState.root},deps:[mn]},{provide:r.v3s,useClass:r.EAV},Mn,kn,class{preload(t,e){return e().pipe((0,T.K)((()=>(0,s.of)(null))))}},{provide:Sn,useValue:{enableTracing:!1}}];function An(){return new r.PXZ("Router",mn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Tn,Fn(e),{provide:En,useFactory:Nn,deps:[[mn,new r.FiY,new r.tp0]]},{provide:Sn,useValue:n||{}},{provide:i.S$,useFactory:Ln,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Sn]},{provide:Pn,useFactory:Dn,deps:[mn,i.EM,Sn]},{provide:On,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:kn},{provide:r.PXZ,multi:!0,useFactory:An},[zn,{provide:r.ip1,multi:!0,useFactory:Rn,deps:[zn]},{provide:jn,useFactory:Bn,deps:[zn]},{provide:r.tb,multi:!0,useExisting:jn}]]}}static forChild(e){return{ngModule:t,providers:[Fn(e)]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(En,8),r.LFG(mn,8))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();function Dn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pn(t,e,n)}function Ln(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Nn(t){return"guarded"}function Fn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let zn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then((()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise((e=>t=e)),n=this.injector.get(mn),i=this.injector.get(Sn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e}))}bootstrapListener(t){const e=this.injector.get(Sn),n=this.injector.get(Mn),i=this.injector.get(Pn),o=this.injector.get(mn),s=this.injector.get(r.z2F);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function Rn(t){return t.appInitializer.bind(t)}function Bn(t){return t.bootstrapListener.bind(t)}const jn=new r.OlP("Router Initializer")},45642:(t,e,n)=>{n.d(e,{ro:()=>s,U5:()=>a});var i=n(74788),r=n(25219),o=n(97582);let s=(()=>{class t{constructor(t,e){this.ngZone=t,this.elementRef=e,this.maskedElement=null,this.maskito=r.A_,this.maskitoElement=r.gI}ngOnChanges(){var t;return(0,o.mG)(this,void 0,void 0,(function*(){null===(t=this.maskedElement)||void 0===t||t.destroy();const e=this.maskitoElement,n=yield e(this.elementRef.nativeElement);this.maskitoElement===e&&this.ngZone.runOutsideAngular((()=>{this.maskedElement=new r.C8(n,this.maskito)}))}))}ngOnDestroy(){var t;null===(t=this.maskedElement)||void 0===t||t.destroy()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[i.TTD]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},25219:(t,e,n)=>{n.d(e,{gI:()=>i,A_:()=>r,C8:()=>C,CV:()=>w});const i=t=>t.querySelector("input,textarea")||t,r={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"};class o{constructor(){this.now=null,this.past=[],this.future=[]}undo(){const t=this.past.pop();t&&this.now&&(this.future.push(this.now),this.updateElement(t,"historyUndo"))}redo(){const t=this.future.pop();t&&this.now&&(this.past.push(this.now),this.updateElement(t,"historyRedo"))}updateHistory(t){if(!this.now)return void(this.now=t);const e=this.now.value!==t.value,n=this.now.selection.some(((e,n)=>e!==t.selection[n]));(e||n)&&(e&&(this.past.push(this.now),this.future=[]),this.now=t)}updateElement(t,e){this.now=t,this.updateElementState(t,{inputType:e,data:null})}}function s(t){return"string"==typeof t}function a(t,e,n,i){let r="";for(let o=e.length;o{const i=e[n];return s(i)?t===i:t.match(i)})):e.test(t)}function c(t,e,n=null){if(l(t.value,e))return t;const{value:i,selection:r}=Array.isArray(e)?function(t,e,n){let i=null,r=null;const o=Array.from(t.value).reduce(((o,l,c)=>{const u=o+a(e,o,l,n),h=e[u.length];return s(h)?u+h:l.match(h)?(null===i&&c>=t.selection[0]&&(i=u.length),null===r&&c>=t.selection[1]&&(r=u.length),u+l):u}),""),c=a(e,o,"",n);return{value:l(o+c,e)?o+c:o,selection:[null!=i?i:o.length,null!=r?r:o.length]}}(t,e,n):function({value:t,selection:e},n){const[i,r]=e;let o=i,s=r;return{value:Array.from(t).reduce(((t,e,a)=>{const l=t+e;return i===a&&(o=t.length),r===a&&(s=t.length),l.match(n)?l:t}),""),selection:[o,s]}}(t,e);return{selection:r,value:Array.isArray(e)?i.slice(0,e.length):i}}function u(t,e){if(!Array.isArray(e))return t;const[n,i]=t.selection,r=[],o=Array.from(t.value).reduce(((t,o,a)=>{const l=e[a];return a===n&&r.push(t.length),a===i&&r.push(t.length),s(l)&&l===o?t:t+o}),"");return r.length<2&&r.push(...Array(2-r.length).fill(o.length)),{value:o,selection:[r[0],r[1]]}}class h{constructor(t,e){this.initialElementState=t,this.maskOptions=e,this.value="",this.selection=[0,0];const{value:n,selection:i}=c(t,this.getMaskExpression(t));this.value=n,this.selection=i}addCharacters([t,e],n){const{value:i}=this,r=this.getMaskExpression({value:i.slice(0,t)+n+i.slice(e),selection:[t+n.length,t+n.length]}),o={value:i,selection:[t,e]},s=u(o,r),[a,l]=function({value:t,selection:e},n,i){const[r,o]=e;return{value:t,selection:"replace"===("function"==typeof i?i({value:t,selection:e}):i)?[r,r+n.length]:[r,o]}}(s,n,this.maskOptions.overwriteMode).selection,h=s.value.slice(0,a)+n,d=h.length,p=c({value:h+s.value.slice(l),selection:[d,d]},r,o);if(i.slice(0,a)===c({value:h,selection:[d,d]},r,o).value||function(t,...e){return e.every((({value:e,selection:n})=>e===t.value&&n[0]===t.selection[0]&&n[1]===t.selection[1]))}(this,p))throw new Error("Invalid mask value");this.value=p.value,this.selection=p.selection}deleteCharacters([t,e]){if(t===e||!e)return;const{value:n}=this,i=this.getMaskExpression({value:n.slice(0,t)+n.slice(e),selection:[t,t]}),r={value:n,selection:[t,e]},o=u(r,i),[s,a]=o.selection,l=c({value:o.value.slice(0,s)+o.value.slice(a),selection:[s,s]},i,r);this.value=l.value,this.selection=l.selection}getMaskExpression(t){const{mask:e}=this.maskOptions;return"function"==typeof e?e(t):e}}class d{constructor(t){this.element=t,this.listeners=[]}listen(t,e,n){const i=e;this.element.addEventListener(t,i,n),this.listeners.push((()=>this.element.removeEventListener(t,i)))}destroy(){this.listeners.forEach((t=>t()))}}function p(t,e,n){return t.ctrlKey===!!(1&e)&&t.altKey===!!(2&e)&&t.shiftKey===!!(4&e)&&t.metaKey===!!(8&e)&&t.keyCode===n}function f({value:t,selection:e},n){const[i,r]=e;if(i!==r)return[i,r];const o=n?t.slice(i).indexOf("\n")+1||t.length:t.slice(0,r).lastIndexOf("\n")+1;return[n?i:o,n?o:r]}function g({value:t,selection:e},n){const[i,r]=e;return i!==r?[i,r]:(n?[i,r+1]:[i-1,r]).map((e=>Math.min(Math.max(e,0),t.length)))}const m=/\s+$/g,v=/^\s+/g,_=/\s/;function y({value:t,selection:e},n){const[i,r]=e;if(i!==r)return[i,r];if(n){const e=t.slice(i),[n]=e.match(v)||[""],r=e.replace(v,"").search(_);return[i,-1!==r?i+n.length+r:t.length]}const o=t.slice(0,r),[s]=o.match(m)||[""],a=o.replace(m,"").split("").reverse().findIndex((t=>t.match(_)));return[-1!==a?r-s.length-a:0,r]}function b(t=[]){return(e,...n)=>t.reduce(((t,e)=>Object.assign(Object.assign({},t),e(t,...n))),e)}function w(t,e){const n=Object.assign(Object.assign({},r),e),i=b(n.preprocessors),o=b(n.postprocessors),s="string"==typeof t?{value:t,selection:[0,0]}:t,{elementState:a}=i({elementState:s,data:""},"validation"),l=new h(a,n),{value:c,selection:u}=o(l,s);return"string"==typeof t?c:{value:c,selection:u}}class C extends o{constructor(t,e){super(),this.element=t,this.maskitoOptions=e,this.isTextArea="TEXTAREA"===this.element.nodeName,this.eventListener=new d(this.element),this.options=Object.assign(Object.assign({},r),this.maskitoOptions),this.preprocessor=b(this.options.preprocessors),this.postprocessor=b(this.options.postprocessors),this.teardowns=this.options.plugins.map((t=>t(this.element,this.options))),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",(t=>function(t){return p(t,1,89)||p(t,5,90)||p(t,12,90)}(t)?(t.preventDefault(),this.redo()):function(t){return p(t,1,90)||p(t,8,90)}(t)?(t.preventDefault(),this.undo()):void 0)),function(t){return"onbeforeinput"in t}(t)?this.eventListener.listen("beforeinput",(t=>{const e=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"historyUndo":return t.preventDefault(),this.undo();case"historyRedo":return t.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:e,selection:g(this.elementState,e)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:t,isForward:e,selection:y(this.elementState,e),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:t,isForward:e,selection:f(this.elementState,e),force:!0});case"insertLineBreak":return this.handleEnter(t);default:return this.handleInsert(t,t.data||"")}})):(this.eventListener.listen("keydown",(t=>this.handleKeydown(t))),this.eventListener.listen("paste",(t=>{var e;return this.handleInsert(t,(null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text/plain"))||"")}))),this.eventListener.listen("input",(()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)}))}get elementState(){const{value:t,selectionStart:e,selectionEnd:n}=this.element;return{value:t,selection:[e||0,n||0]}}get maxLength(){const{maxLength:t}=this.element;return-1===t?1/0:t}destroy(){this.eventListener.destroy(),this.teardowns.forEach((t=>null==t?void 0:t()))}updateElementState({value:t,selection:e},n={inputType:"insertText",data:null}){const i=this.elementState.value;this.updateValue(t),this.updateSelectionRange(e),i!==t&&this.dispatchInputEvent(n)}updateSelectionRange([t,e]){var n,i;this.element.selectionStart===t&&this.element.selectionEnd===e||null===(i=(n=this.element).setSelectionRange)||void 0===i||i.call(n,t,e)}updateValue(t){this.element.value=t}ensureValueFitsMask(){this.updateElementState(w(this.elementState,this.options))}dispatchInputEvent(t={inputType:"insertText",data:null}){const e="undefined"!=typeof window?window:globalThis;(null==e?void 0:e.InputEvent)&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},t),{bubbles:!0,cancelable:!1})))}handleKeydown(t){const e=t.key,n="Delete"===e;switch(e){case"Backspace":case"Delete":return this.handleDelete({event:t,isForward:n,selection:g(this.elementState,n)});case"Enter":return this.handleEnter(t)}(function({key:t,ctrlKey:e,metaKey:n,altKey:i}){const r=e||n||i,o=/^.$/u.test(t);return!r&&"Backspace"!==t&&o})(t)&&this.handleInsert(t,e)}handleDelete({event:t,selection:e,isForward:n,force:i=!1}){const r={value:this.elementState.value,selection:e},[o,s]=r.selection,{elementState:a}=this.preprocessor({elementState:r,data:""},n?"deleteForward":"deleteBackward"),l=new h(a,this.options),[c,u]=a.selection;l.deleteCharacters([c,u]);const d=this.postprocessor(l,r);if(r.value.slice(0,o)+r.value.slice(s)===d.value&&!i)return;if(t.preventDefault(),function(t,...e){return e.every((({value:e})=>e===t.value))}(r,a,l,d))return this.updateSelectionRange(n?[u,u]:[c,c]);const p=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(d,{inputType:"inputType"in t?t.inputType:p,data:null}),this.updateHistory(d)}handleInsert(t,e){const n=this.elementState,{elementState:i,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),o=new h(i,this.options);try{o.addCharacters(i.selection,r)}catch(e){return t.preventDefault()}const[s,a]=i.selection,l=i.value.slice(0,s)+e+i.value.slice(a),c=this.postprocessor(o,n);if(c.value.length>this.maxLength)return t.preventDefault();l!==c.value&&(t.preventDefault(),this.updateElementState(c,{data:e,inputType:"inputType"in t?t.inputType:"insertText"}),this.updateHistory(c))}handleEnter(t){this.isTextArea&&this.handleInsert(t,"\n")}}},72878:(t,e,n)=>{n.d(e,{f8:()=>A,vZ:()=>y});var i=n(25219);new Date("0001-01-01"),new Date("9999-12-31");const r=" ",o="–",s="—",a="-",l="−",c=/[\\^$.*+?()[\]{}|]/g,u=RegExp(c.source);function h(t){return t&&u.test(t)?t.replace(c,"\\$&"):t}function d(t){return t}function p(t){return t?({value:e,selection:n},i)=>e.endsWith(t)||!e&&!i.value.endsWith(t)?{value:e,selection:n}:e.endsWith(t)||i.value.endsWith(t)?{selection:n,value:Array.from(t).reverse().reduce(((t,e,n)=>{const i=t.length-1-n;return t[i]!==e?t.slice(0,i+1)+e+t.slice(i+1):t}),e)}:{selection:n,value:e+t}:d}function f(t){return t?({value:e,selection:n},i)=>{if(e.startsWith(t)||!e&&!i.value.startsWith(t))return{value:e,selection:n};const[r,o]=n,s=Array.from(t).reduce(((t,n,i)=>(t+e)[i]===n?t:t+n),"");return{selection:[r+s.length,o+s.length],value:s+e}}:d}function g(t,e,n){return(i,r)=>{const o=()=>e(i,r);return i.addEventListener(t,o,n),()=>i.removeEventListener(t,o,n)}}function m({decimalSeparator:t,isNegativeAllowed:e,precision:n,thousandSeparator:i,prefix:r,postfix:o}){const s=v(r),a="\\d",c=e?`${l}?`:"",u=i?`[${a}${h(i)}]*`:`[${a}]*`,d=n>0?`(${h(t)}${a}{0,${Number.isFinite(n)?n:""}})?`:"",p=v(o);return new RegExp(`^${s}${c}${u}${d}${p}$`)}function v(t){return t?`${t.split("").map((t=>`${h(t)}?`)).join("")}`:""}function _(t,e){return","===t||"."===t?[".",",","б","ю"].filter((n=>n!==e&&n!==t)):[]}function y(t,e="."){const n=!!t.match(new RegExp(`^\\D*[${l}\\${a}${o}${s}]`)),i=t.replace(new RegExp(`[^\\d${h(e)}]`,"g"),"").replace(e,".");return i?Number((n?a:"")+i):NaN}function b({min:t,max:e,decimalSeparator:n}){return g("blur",((r,o)=>{const s=y(r.value,n),a=function(t,e,n){const i=Math.min(Number(n),Math.max(Number(e),Number(t)));return t instanceof Date?new Date(i):i}(s,t,e);s!==a&&(r.value=(0,i.CV)(function(t){const e=String(t),[n,i]=e.split("e-");let r=e;if(i){const[,e]=n.split("."),o=Number(i)+((null==e?void 0:e.length)||0);r=t.toFixed(o)}return r}(a),o),r.dispatchEvent(new Event("input")))}),{capture:!0})}function w(t){return g("blur",(e=>{const n=e.value.replace(new RegExp(`^(\\D+)?${h(t)}`),`$10${t}`);n!==e.value&&(e.value=n,e.dispatchEvent(new Event("input")))}),{capture:!0})}function C({decimalSeparator:t,precision:e,decimalZeroPadding:n}){return e<=0||!n?d:({value:n,selection:i})=>{const[r,o=""]=n.split(t);return n.includes(t)||r?{value:r+t+o.padEnd(e,"0"),selection:i}:{value:n,selection:i}}}function x(t,e){const n=t=>{const n=h(e);return t.replace(new RegExp(`^(\\D+)?[0${n}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${n}]+(?=[1-9])`),"$1")},i=(t,e)=>{const i=t.slice(0,e),r=t.slice(e).startsWith("0");return i.length-n(i).length+(r?1:0)};return({value:e,selection:r})=>{const[o,s]=r,a=e.includes(t),[l,c=""]=e.split(t),u=n(l);if(l===u)return{value:e,selection:r};const h=o-i(e,o),d=s-i(e,s);return{value:u+(a?t:"")+c,selection:[Math.max(h,0),Math.max(d,0)]}}}function O({min:t,max:e,decimalSeparator:n}){return({value:i,selection:r})=>{const o=y(i,n),s=o>0?Math.min(o,e):Math.max(o,t);if(!Number.isNaN(o)&&s!==o){const t=`${s}`.replace(".",n).replace(a,l);return{value:t,selection:[t.length,t.length]}}return{value:i,selection:r}}}function k({decimalSeparator:t,thousandSeparator:e,decimalZeroPadding:n}){return({elementState:i,data:r},o)=>{const{value:s,selection:a}=i,[l,c]=a,u=s.slice(l,c),h=n?[t,e]:[e],d=n&&l>s.indexOf(t)&&Boolean(u.match(/^0+$/gi));return"deleteBackward"!==o&&"deleteForward"!==o||!h.includes(u)&&!d?{elementState:i,data:r}:{elementState:{value:s,selection:"deleteForward"===o?[c,c]:[l,l]},data:r}}}function M({decimalSeparator:t,precision:e}){const n=new RegExp(`^\\D*${h(t)}`);return({elementState:i,data:r})=>{const{value:o,selection:s}=i,[a]=s;return e<=0||o.includes(t)||!r.match(n)?{elementState:i,data:r}:{elementState:i,data:o.slice(0,a).match(/\d+/)?r:`0${r}`}}}function P(t,e){const n=new RegExp(`[${e.join("")}]`,"gi");return({elementState:e,data:i})=>{const{value:r,selection:o}=e;return{elementState:{selection:o,value:r.replace(n,t)},data:i.replace(n,t)}}}function S(t){return({elementState:e,data:n})=>{const{value:i,selection:r}=e,[o,s]=r;return{elementState:e,data:!i.includes(t)||i.slice(o,s+1).includes(t)?n:n.replace(new RegExp(h(t),"gi"),"")}}}function E({thousandSeparator:t,decimalSeparator:e,prefix:n,postfix:i}){if(!t)return d;const r=new RegExp(`^${h(n)}${l}?`),o=new RegExp(`${h(i)}$`);return({value:n,selection:i})=>{const[s,a=""]=n.split(e),[l,c]=i;let[u,h]=i;const d=s.replace(r,"").replace(o,""),[p=""]=s.match(r)||[],[f=""]=s.match(o)||[];return{value:p+Array.from(d).reduceRight(((e,n,i)=>{const r=!(!i&&n===t)&&e.length&&(e.length+1)%4==0;return n===t&&r?n+e:n!==t||r?r?(i<=l&&u++,i<=c&&h++,n+t+e):n+e:(i&&i<=l&&u--,i&&i<=c&&h--,e)}),"")+f+(n.includes(e)?e:"")+a,selection:[u,h]}}}function T(t,e){if(t>0)return d;const n=new RegExp(`${h(e)}.*$`,"g");return({elementState:t,data:e})=>{const{value:i,selection:r}=t,[o,s]=r,a=i.replace(n,"");return{elementState:{selection:[Math.min(o,a.length),Math.min(s,a.length)],value:a},data:e.replace(n,"")}}}function A({max:t=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:n=0,thousandSeparator:c=r,decimalSeparator:u=".",decimalPseudoSeparators:h=_(u,c),decimalZeroPadding:d=!1,prefix:g="",postfix:v=""}={}){const y=[a,o,s].filter((t=>t!==c&&t!==u));return Object.assign(Object.assign({},i.A_),{mask:m({decimalSeparator:u,precision:n,thousandSeparator:c,prefix:g,postfix:v,isNegativeAllowed:e<0}),preprocessors:[P(l,y),P(u,h),M({decimalSeparator:u,precision:n}),k({decimalSeparator:u,decimalZeroPadding:d,thousandSeparator:c}),T(n,u),S(u)],postprocessors:[x(u,c),O({decimalSeparator:u,min:e,max:t}),f(g),p(v),E({decimalSeparator:u,thousandSeparator:c,prefix:g,postfix:v}),C({decimalSeparator:u,decimalZeroPadding:d,precision:n})],plugins:[w(u),b({min:e,max:t,decimalSeparator:u})],overwriteMode:d?({value:t,selection:[e]})=>e<=t.indexOf(u)?"shift":"replace":"shift"})}new RegExp(`[${[":","."].map(h).join("")}]$`)},62579:(t,e,n)=>{n.d(e,{L1:()=>p,ux:()=>f,H3:()=>g,Ct:()=>m,yZ:()=>_,m9:()=>d});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),c=n(87519),u=n(47349),h=n(12057);const d=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(h.K0);if(!t)throw new Error("Window is not available");return t}}),p=new i.OlP("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:t,cancelAnimationFrame:e}=(0,i.f3M)(d);return new r.y((n=>{let i=NaN;const r=e=>{n.next(e),i=t(r)};return i=t(r),()=>{e(i)}})).pipe((0,s.B)())}}),f=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(d).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(d).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(d).CSS||{escape:t=>t,supports:()=>!1}})),g=(new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(d).history}),new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(d).localStorage})),m=new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(d).location}),v=new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(d).navigator}),_=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(v).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(v).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(h.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)((()=>"hidden"!==t.visibilityState)),(0,c.x)(),(0,u.d)({refCount:!1,bufferSize:1}))}}),new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(d).performance}),new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(d).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(d).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(d);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(d).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(v).userAgent}))},23764:(t,e,n)=>{n.d(e,{k2:()=>o,Vi:()=>l,NI:()=>u,IM:()=>c});var i=n(74788),r=n(29856);const o=new i.OlP("MutationObserver config");function s(t,e){return null!==t.getAttribute(e)||void 0}function a({nativeElement:t}){const e=t.getAttribute("attributeFilter");return{attributeFilter:null==e?void 0:e.split(",").map((t=>t.trim())),attributeOldValue:s(t,"attributeOldValue"),attributes:s(t,"attributes"),characterData:s(t,"characterData"),characterDataOldValue:s(t,"characterDataOldValue"),childList:s(t,"childList"),subtree:s(t,"subtree")}}let l=(()=>{class t extends MutationObserver{constructor({nativeElement:t},e,n,r,o,s,a,l,c){super((t=>{this.waMutationObserver.emit(t)})),this.waMutationObserver=new i.vpe,this.observe(t,e)}ngOnDestroy(){this.disconnect()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o),i.$8M("attributeFilter"),i.$8M("attributeOldValue"),i.$8M("attributes"),i.$8M("characterData"),i.$8M("characterDataOldValue"),i.$8M("childList"),i.$8M("subtree"))},t.ɵdir=i.lG2({type:t,selectors:[["","waMutationObserver",""]],outputs:{waMutationObserver:"waMutationObserver"},exportAs:["MutationObserver"],features:[i._Bn([{provide:o,deps:[i.SBq],useFactory:a}]),i.qOj]}),t})(),c=(()=>{class t extends r.y{constructor({nativeElement:t},e){super((n=>{const i=new MutationObserver((t=>{n.next(t)}));return i.observe(t,e),()=>{i.disconnect()}}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(o))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},34978:(t,e,n)=>{n.d(e,{c0:()=>co,JF:()=>uo,FU:()=>fo,mG:()=>go,zb:()=>Mo,Lx:()=>So,B7:()=>mo,f2:()=>Do,u4:()=>Lo,$5:()=>Go,qn:()=>Xo,qo:()=>Ko,Lq:()=>ts,nj:()=>Wo});var i=n(74788),r=n(64548),o=n(44427),s=n(26215),a=n(79765),l=n(41291),c=n(66682),u=n(43190),h=n(88002),d=n(39761),p=n(46782),f=n(45435),g=n(19773),m=n(15257),v=n(87519),_=n(9945),y=n(12057),b=n(59193),w=n(40205),C=n(56693),x=n(59796),O=n(77393),k=n(20377),M=n(85345);class P{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new S(t,this.resultSelector))}}class S extends O.L{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;(0,x.k)(t)?e.push(new T(t)):"function"==typeof t[k.hZ]?e.push(new E(t[k.hZ]())):e.push(new A(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class A extends M.Ds{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[k.hZ](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return(0,M.ft)(this.observable,new M.IY(this))}}var I=n(97968),D=n(71023);class L extends D.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((()=>t.flush(null)))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var N=n(69457);class F extends N.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{class t{constructor(t,e,n){var i;this.doc=t,this._options=n,this._ready=new s.X(null),this.ready=this._ready.asObservable().pipe((0,f.h)((t=>!!t)),(0,h.U)((t=>t)),(0,m.q)(1)),(0,y.NF)(e)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe((0,u.w)((e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe((0,R.b)((()=>this._ready.next(e))))):(this._ready.next(e),b.E))),(0,B.K)((t=>(console.error("[HLJS] ",t),b.E)))).subscribe(),(null===(i=this._options)||void 0===i?void 0:i.themePath)&&this.loadTheme(this._options.themePath))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,w._)((()=>"The full library and the core library were imported, only one of them should be imported!"));if(this._options.fullLibraryLoader&&this._options.languages)return(0,w._)((()=>"The highlighting languages were imported they are not needed!"));if(this._options.coreLibraryLoader&&!this._options.languages)return(0,w._)((()=>"The highlighting languages were not imported!"));if(!this._options.coreLibraryLoader&&this._options.languages)return(0,w._)((()=>"The core library was not imported!"));if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe((0,u.w)((t=>this._loadLanguages(t))))}return(0,w._)((()=>"Highlight.js library was not imported!"))}_loadLanguages(t){return function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),(0,C.n)(t,void 0).lift(new P(e))}(...Object.entries(this._options.languages).map((([e,n])=>V(n()).pipe((0,R.b)((n=>t.registerLanguage(e,n))))))).pipe((0,h.U)((()=>t)))}loadCoreLibrary(){return V(this._options.coreLibraryLoader())}loadFullLibrary(){return V(this._options.fullLibraryLoader())}loadLineNumbers(){return V(this._options.lineNumbersLoader())}setTheme(t){this._themeLinkElement.href=t}loadTheme(t){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=t,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y.K0),i.LFG(i.Lbi),i.LFG(U,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const V=t=>(0,I.D)(t).pipe((0,f.h)((t=>!!t&&!!t.default)),(0,h.U)((t=>t.default)));let Y=(()=>{class t{constructor(t,e){this._loader=t,this._hljs=null,t.ready.subscribe((t=>{this._hljs=t,e&&e.config&&(t.configure(e.config),t.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))}))}get hljs(){return this._hljs}highlight(t,{language:e,ignoreIllegals:n}){return this._loader.ready.pipe((0,h.U)((i=>i.highlight(t,{language:e,ignoreIllegals:n}))))}highlightAuto(t,e){return this._loader.ready.pipe((0,h.U)((n=>n.highlightAuto(t,e))))}highlightElement(t){return this._loader.ready.pipe((0,h.U)((e=>e.highlightElement(t))))}highlightAll(){return this._loader.ready.pipe((0,h.U)((t=>t.highlightAll())))}configure(t){return this._loader.ready.pipe((0,h.U)((e=>e.configure(t))))}registerLanguage(t,e){return this._loader.ready.pipe((0,R.b)((n=>n.registerLanguage(t,e))))}unregisterLanguage(t){return this._loader.ready.pipe((0,R.b)((e=>e.unregisterLanguage(t))))}registerAliases(t,{languageName:e}){return this._loader.ready.pipe((0,R.b)((n=>n.registerAliases(t,{languageName:e}))))}listLanguages(){return this._loader.ready.pipe((0,h.U)((t=>t.listLanguages())))}getLanguage(t){return this._loader.ready.pipe((0,h.U)((e=>e.getLanguage(t))))}safeMode(){return this._loader.ready.pipe((0,h.U)((t=>t.safeMode())))}debugMode(){return this._loader.ready.pipe((0,h.U)((t=>t.debugMode())))}lineNumbersBlock(t){return this._loader.ready.pipe((0,f.h)((t=>!!t.lineNumbersBlock)),(0,R.b)((e=>e.lineNumbersBlock(t))))}}return t.ɵfac=function(e){return new(e||t)(i.LFG($),i.LFG(U,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),q=(()=>{class t{constructor(t,e,n,r){this._hljs=e,this._sanitizer=n,this._options=r,this.highlighted=new i.vpe,this._nativeElement=t.nativeElement}ngOnChanges(t){var e;null!==(null===(e=null==t?void 0:t.code)||void 0===e?void 0:e.currentValue)&&t.code.currentValue!==t.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(t,e){this.setTextContent(t),this._hljs.highlightAuto(t,e).subscribe((t=>{this.setInnerHTML(null==t?void 0:t.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(t)}))}addLineNumbers(){this.destroyLineNumbersObserver(),z.schedule((()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver((()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()})),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})}))}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){z.schedule((()=>this._nativeElement.textContent=t))}setInnerHTML(t){z.schedule((()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(i.q3G.HTML,t)||""))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(Y),i.Y36(j.H7),i.Y36(U,8))},t.ɵdir=i.lG2({type:t,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[i.TTD]}),t})(),H=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var Z=n(97582);let G=(()=>{class t{transform(t,e,...n){return t.filter((t=>e(t,...n)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilter",type:t,pure:!0}),t})(),X=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),J=(()=>{class t{transform(t,e,n){var i;return null!==(i=null==t?void 0:t.replace(e,n))&&void 0!==i?i:""}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiReplace",type:t,pure:!0}),t})(),Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var W=n(46732),K=n(56210),tt=n(42420),et=n(37801),nt=n(221),it=n(33770),rt=n(63658),ot=n(44358),st=n(85648),at=n(75675),lt=n(11927),ct=n(99434),ut=n(2330),ht=n(66749),dt=n(92668),pt=n(24751),ft=n(76480),gt=n(57179),mt=n(79456),vt=n(77320),_t=n(54789),yt=n(91489),bt=n(89570);function wt(t,e){if(1&t&&i._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.ekj("t-mark_on",!n.empty),i.Q6J("src",t)}}const Ct=function(t){return{$implicit:t}},xt=["*"],Ot={size:"m",appearances:{unchecked:vt.Nm.Outline,checked:vt.Nm.Primary,indeterminate:vt.Nm.Primary},icons:{checked:({$implicit:t})=>"m"===t?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>"m"===t?"tuiIconMinus":"tuiIconMinusLarge"}},kt=new i.OlP("[TUI_CHECKBOX_OPTIONS]",{factory:()=>Ot});let Mt=(()=>{class t{constructor(t){this.options=t,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(t){!1!==t&&this.setCurrentIcon(t),this.value=t}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return!1===this.value}setCurrentIcon(t){this.icon=null===t?this.options.icons.indeterminate:this.options.icons.checked}}return t.ɵfac=function(e){return new(e||t)(i.Y36(kt))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:xt,decls:3,vars:10,consts:[["tuiWrapper","",3,"appearance","disabled","focus","hover","active","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,wt,1,3,"tui-svg",1),i.Hsn(2),i.qZA()),2&t&&(i.Q6J("appearance",e.appearance)("disabled",e.disabled)("focus",e.focused)("hover",e.hovered)("active",e.pressed)("invalid",e.invalid),i.xp6(1),i.Q6J("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",i.VKq(8,Ct,e.size)))},directives:[yt.o,bt.Li,_t.PN],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),Pt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[_t.EI,yt.W,bt.wq]]}),t})();var St=n(12130),Et=n(44541),Tt=n(13633),At=n(75059),It=n(88491);const Dt=["focusableElement"];let Lt=(()=>{class t extends ft.F9{constructor(t,e,n){super(t,n),this.options=e,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get computedFocusable(){return this.interactive&&this.focusable}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(kt),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox"]],viewQuery:function(t,e){if(1&t&&i.Gf(Dt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],decls:3,vars:11,consts:[[3,"size","disabled","focused","hovered","pressed","invalid","value"],["type","checkbox","automation-id","tui-checkbox__native",1,"t-native",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(t,e){1&t&&(i.TgZ(0,"tui-primitive-checkbox",0),i.TgZ(1,"input",1,2),i.NdJ("tuiCheckedChange",(function(t){return e.value=t}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("size",e.size)("disabled",e.disabled)("focused",e.computedFocusVisible)("hovered",e.pseudoHover)("pressed",e.pseudoActive)("invalid",e.computedInvalid)("value",e.value),i.xp6(1),i.Q6J("disabled",e.disabled)("id",e.id)("tuiFocusable",e.computedFocusable)("tuiChecked",e.value))},directives:[Mt,Et.t,Tt.t,At.U,It.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%] tui-primitive-checkbox[_ngcontent-%COMP%]{pointer-events:none}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}"],changeDetection:0}),t})(),Nt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Et.S,Tt.u,At.F,It.c,Pt]]}),t})();const Ft=["*"];let zt=(()=>{class t extends ft.F9{constructor(t,e,n,i){super(t,e),this.mode$=n,this.options=i,this.size=this.options.size}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get nativeFocusableElement(){return this.checkbox?this.checkbox.nativeFocusableElement:null}onFocused(t){this.updateFocused(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(mt.Au),i.Y36(kt))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(t,e){if(1&t&&i.Gf(Lt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.checkbox=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t),St.CV]),i.qOj],ngContentSelectors:Ft,decls:4,vars:12,consts:[[1,"t-wrapper"],[3,"disabled","readOnly","focusable","nativeId","pseudoInvalid","pseudoFocus","pseudoHover","pseudoActive","size","ngModel","ngModelChange","focusedChange"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"label",0),i.TgZ(1,"tui-checkbox",1),i.NdJ("ngModelChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.qZA(),i.TgZ(2,"div",2),i.Hsn(3),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Q6J("disabled",e.computedDisabled)("readOnly",e.readOnly)("focusable",e.focusable)("nativeId",e.nativeId)("pseudoInvalid",e.computedInvalid)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("pseudoActive",e.pseudoActive)("size",e.size)("ngModel",e.value),i.xp6(1),i.ekj("t-content_disabled",e.computedDisabled))},directives:[Lt,pt.JJ,pt.On],styles:["[_nghost-%COMP%]{position:relative;display:block;line-height:0}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;cursor:pointer}._disabled[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{cursor:default}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);line-height:1rem;word-wrap:break-word;min-width:0}.t-content_disabled[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-left:.5rem}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-left:.75rem}"],changeDetection:0}),t})(),Rt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,Nt]]}),t})();var Bt=n(75452),jt=n(49941);const Ut=["*"];let $t=(()=>{class t{constructor(){this.name="tui-radio-group-"+t.index++}}return t.index=0,t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-group"]],inputs:{name:"name"},ngContentSelectors:Ut,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),t})();const Vt=["focusableElement"];function Yt(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Q6J("@tuiScaleIn",t.animation)}}const qt={size:"m",appearances:{unchecked:vt.Nm.Outline,checked:vt.Nm.Primary}},Ht=new i.OlP("[TUI_RADIO_OPTIONS]",{factory:()=>qt});let Zt=(()=>{class t extends ft.F9{constructor(t,e,n,i,r){super(t,e),this.animation=n,this.options=i,this.radioGroup=r,this.identityMatcher=it.bg,this.name=null,this.size=this.options.size,this.pseudoDisabled=!1}get appearance(){return this.checked?this.options.appearances.checked:this.options.appearances.unchecked}get computedDisabled(){return this.disabled||this.pseudoDisabled}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get checked(){return null===this.value?null===this.item:void 0!==this.item&&null!==this.item&&this.identityMatcher(this.value,this.item)}get computedName(){return this.name||this.radioGroupName||this.controlName||""}get isFocusable(){return!this.readOnly&&this.computedFocusable}onChecked(t){t&&(this.value=void 0!==this.item?this.item:this.fallbackValue)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}get radioGroupName(){return null===this.radioGroup?null:this.radioGroup.name}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(mt.Pw),i.Y36(Ht),i.Y36($t,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio"]],viewQuery:function(t,e){if(1&t&&i.Gf(Vt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size),i.ekj("_disabled",e.computedDisabled))},inputs:{item:"item",identityMatcher:"identityMatcher",name:"name",size:"size",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],decls:4,vars:12,consts:[["tuiWrapper","",3,"appearance","disabled","focus","hover","active","invalid"],["class","t-mark",4,"ngIf"],["type","radio",1,"t-native",3,"id","disabled","tuiChecked","tuiFocusable","tuiFocusedChange","tuiCheckedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-mark"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,Yt,1,1,"div",1),i.TgZ(2,"input",2,3),i.NdJ("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiCheckedChange",(function(t){return e.onChecked(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("active",e.pseudoActive)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("ngIf",e.checked),i.xp6(1),i.Q6J("id",e.id)("disabled",e.computedDisabled)("tuiChecked",e.checked)("tuiFocusable",e.isFocusable),i.uIk("name",e.computedName))},directives:[yt.o,y.O5,Et.t,Tt.t,At.U,It.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%]{pointer-events:none}.t-mark[_ngcontent-%COMP%]{position:absolute;background-color:currentColor;border-radius:100%}[data-size=m][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.25rem;width:.5rem;height:.5rem}[data-size=l][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.4375rem;width:.625rem;height:.625rem}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]{cursor:default}"],data:{animation:[jt.gI]},changeDetection:0}),t})(),Gt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Et.S,Tt.u,At.F,It.c,yt.W]]}),t})();function Xt(t,e){1&t&&i.GkF(0)}const Jt=["*"];let Qt=(()=>{class t extends ft.F9{constructor(t,e,n){super(t,e),this.modeDirective=n,this.identityMatcher=it.bg,this.contentAlign="right",this.size="l",this.hideRadio=!1,this.pseudoDisabled=!1}get nativeFocusableElement(){return this.radio?this.radio.nativeFocusableElement:null}get focused(){return!!this.radio&&this.radio.focused}get computedDisabled(){return this.disabled||this.pseudoDisabled}get checked(){var t;return!!(null===(t=this.radio)||void 0===t?void 0:t.checked)&&this.hideRadio}get checkboxSize(){return"l"===this.size?"l":"m"}get appearance(){var t;return(null===(t=this.modeDirective)||void 0===t?void 0:t.mode)?this.checked?vt.Nm.Primary:vt.Nm.Secondary:this.checked?vt.Nm.WhiteblockActive:vt.Nm.Whiteblock}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(Bt.w,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-block"]],viewQuery:function(t,e){if(1&t&&i.Gf(Zt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.radio=t.first)}},hostVars:8,hostBindings:function(t,e){2&t&&(i.uIk("data-align",e.contentAlign)("data-size",e.size),i.ekj("_hidden_input",e.hideRadio)("_disabled",e.computedDisabled)("_active",e.checked))},inputs:{item:"item",identityMatcher:"identityMatcher",contentAlign:"contentAlign",size:"size",hideRadio:"hideRadio",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],ngContentSelectors:Jt,decls:7,vars:22,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"appearance","disabled","focus","hover","active","invalid"],[1,"t-view",3,"focusable","identityMatcher","item","name","nativeId","readOnly","pseudoDisabled","pseudoInvalid","pseudoFocus","pseudoHover","pseudoActive","size","ngModel","ngModelChange","focusedChange","focusVisibleChange"],[1,"t-label"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Xt,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"label",1),i.TgZ(3,"tui-radio",2),i.NdJ("ngModelChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)}))("focusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.TgZ(4,"div",3),i.TgZ(5,"div",4),i.Hsn(6),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngIf",e.modeDirective&&i.lcZ(1,20,e.modeDirective.change$)),i.xp6(2),i.Q6J("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("active",e.pseudoActive)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("focusable",e.focusable)("identityMatcher",e.identityMatcher)("item",e.item)("name",e.computedName||"")("nativeId",e.nativeId)("readOnly",e.readOnly)("pseudoDisabled",e.computedDisabled)("pseudoInvalid",e.computedInvalid)("pseudoFocus",!1)("pseudoHover",e.pseudoHover)("pseudoActive",e.pseudoActive)("size",e.checkboxSize)("ngModel",e.value))},directives:[y.O5,yt.o,Zt,pt.JJ,pt.On],pipes:[y.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);display:inline-block;vertical-align:top;align-items:flex-start;border-radius:var(--tui-radius-m)}[data-size=m][_nghost-%COMP%], [data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m)}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:inherit;box-sizing:border-box;border-radius:inherit;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:0 1rem 0 0}[data-align=right][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:0 0 0 1rem}[data-size=s]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1rem}[data-size=m]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1.5rem}[data-size=l]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 2.25rem}[data-size=s][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-s) / 2 - .5rem) .5rem}[data-size=m][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-m) / 2 - .5rem) .75rem}[data-size=l][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-l) / 2 - .75rem) 1rem}._hidden_input[_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{position:absolute;height:1px;width:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);-webkit-clip-path:inset(0);clip-path:inset(0)}.t-label[_ngcontent-%COMP%]{display:flex;flex-grow:1;align-self:flex-start;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}._hidden_input[_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{text-align:center;justify-content:center}.t-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),Wt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,Gt,yt.W]]}),t})();const Kt=["*"];let te=(()=>{class t{constructor(t){this.mode$=t,this.size="m",this.status="default",this.hoverable=!1}get padding(){var t;return this.isEmpty?"none":(0,lt.dt)(null===(t=this.value)||void 0===t?void 0:t.valueOf())?"m":"l"}get outputValue(){var t;const e=null===(t=this.value)||void 0===t?void 0:t.valueOf();return(0,lt.dt)(e)&&e>99?"99+":(0,lt.Pc)(this.value)?String(this.value):""}get isEmpty(){return!this.value&&0!==this.value}titleText({offsetWidth:t,scrollWidth:e}){return t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez]]}),t})();var ne=n(34016),ie=n(64493),re=n(23917),oe=n(87941),se=n(98952),ae=n(56747),le=n(23764),ce=n(54487),ue=n(74235),he=n(25917),de=n(54395),pe=n(62579),fe=n(30126);const ge=["tuiTab",""];function me(t,e){1&t&&i.GkF(0)}const ve=["*"];function _e(t,e){1&t&&i.GkF(0)}function ye(t,e){if(1&t&&i._UZ(0,"tui-underline",2),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}function be(t,e){1&t&&i.GkF(0)}function we(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function Ce(t,e){if(1&t&&(i.TgZ(0,"div"),i.GkF(1,12),i.qZA()),2&t){const t=i.oxw(),e=t.index,n=t.$implicit,r=i.oxw();i.ekj("t-overflown",r.isOverflown(e)),i.xp6(1),i.Q6J("ngTemplateOutlet",n)}}function xe(t,e){if(1&t&&(i.ynx(0),i.YNc(1,we,1,1,"ng-container",10),i.YNc(2,Ce,2,3,"ng-template",null,11,i.W1O),i.BQk()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw();i.xp6(1),i.Q6J("ngIf",t<=r.lastVisibleIndex)("ngIfElse",n)}}function Oe(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function ke(t,e){if(1&t&&(i._uU(0),i.ALo(1,"async"),i._UZ(2,"tui-svg",13)),2&t){const t=i.oxw();i.hij(" ",i.lcZ(1,3,t.moreWord$)," "),i.xp6(2),i.ekj("t-icon_rotated",t.open)}}function Me(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function Pe(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",17),i.NdJ("tui-tab-activate",(function(){const e=i.CHM(t).index;return i.oxw(2).onClick(e)})),i.YNc(1,Me,1,1,"ng-container",18),i.qZA()}if(2&t){const t=e.index,n=i.oxw(2);i.xp6(1),i.Q6J("ngIf",n.shouldShow(t))}}function Se(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",14,15),i.NdJ("keydown.arrowUp.prevent",(function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!0)}))("keydown.arrowDown.prevent",(function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!1)})),i.YNc(2,Pe,2,1,"div",16),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngForOf",t.items)}}function Ee(t,e){if(1&t&&i._UZ(0,"tui-underline",19),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}const Te=new i.OlP("[TUI_TAB_EVENT]"),Ae=[rt.a3,rt.ku,oe.Ok,{provide:Te,deps:[i.SBq,oe.Ok,[new i.FiY,le.IM],[new i.FiY,ne.Od]],useFactory:({nativeElement:t},e,n,i)=>{const r=i&&n?n.pipe((0,f.h)((()=>i.isActive))):b.E;return(0,c.T)(r,e.pipe((0,f.h)(ce.y)),t.matches("button")?(0,ht.mL)(t,"click"):b.E).pipe((0,h.U)((()=>t.dispatchEvent(new CustomEvent("tui-tab-activate",{bubbles:!0})))))}},St.CV];let Ie=(()=>{class t{constructor(t,e,n,i,r,o){this.routerLinkActive=t,this.el=e,this.mode$=n,this.event$=i,this.margin=r,this.focusVisible=!1,o.subscribe((t=>{this.focusVisible=t}))}get isActive(){return!!this.routerLinkActive&&this.routerLinkActive.isActive}ngOnDestroy(){(0,gt.V8)(this.el.nativeElement)&&this.el.nativeElement.blur()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ne.Od,8),i.Y36(i.SBq),i.Y36(mt.Au),i.Y36(Te),i.Y36(ae.WO),i.Y36(rt.ku))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.Udp("cursor","pointer")("--tui-tab-margin",e.margin,"px"),i.ekj("_focus-visible",e.focusVisible)("_active",e.isActive))},features:[i._Bn(Ae)],attrs:ge,ngContentSelectors:ve,decls:4,vars:3,consts:[[4,"ngIf"],[1,"t-highlight"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,me,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"span",1),i.Hsn(3),i.qZA()),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.event$))},directives:[y.O5],pipes:[y.Ov],styles:['._underline[_nghost-%COMP%]:hover, ._underline [_nghost-%COMP%]:hover{box-shadow:inset 0 -2px var(--tui-base-03)}tui-tabs > [_nghost-%COMP%]:first-child, tui-tabs > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, tui-tabs > :first-child[_nghost-%COMP%], tui-tabs > :first-child [_nghost-%COMP%], [tuiTabs] > :first-child[_nghost-%COMP%], [tuiTabs] > :first-child [_nghost-%COMP%]{margin-left:0}[_nghost-%COMP%]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;flex-shrink:0;height:100%;box-sizing:border-box;justify-content:space-between;align-items:center;white-space:nowrap;cursor:pointer;outline:none;text-decoration:none;color:inherit;margin-left:var(--tui-tab-margin, 1.5rem)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[_nghost-%COMP%]:not([data-mode])._active{opacity:1;color:var(--tui-text-01);box-shadow:none}[data-mode=onDark][_nghost-%COMP%]{color:#ffffffb8}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark]._active[_nghost-%COMP%]{color:#fff}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-text-01);color:#fff}._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-selection)}._android[_nghost-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:3rem;flex:1;flex-shrink:0;justify-content:center;margin:0;text-transform:uppercase;color:var(--tui-base-09);opacity:.5;font-size:.875rem;font-weight:500;letter-spacing:-.008125rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._android[_nghost-%COMP%]:hover{box-shadow:none}._android._active[_nghost-%COMP%]{opacity:1;color:var(--tui-base-09)}._android[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}._ios[_nghost-%COMP%]{height:1.75rem;flex:1;flex-shrink:0;justify-content:center;margin:0;color:var(--tui-base-01);opacity:1;font-size:.8125rem;font-weight:500;letter-spacing:-.005rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._ios[_nghost-%COMP%]:hover{box-shadow:none}._ios._active[_nghost-%COMP%]{font-size:.875rem;font-weight:600;color:var(--tui-link)}._ios[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}@media (hover: hover){[_nghost-%COMP%]:hover{color:var(--tui-text-01)}}.t-highlight[_ngcontent-%COMP%]{display:inline-flex;width:100%;align-items:center;justify-content:inherit}.t-highlight[_ngcontent-%COMP%] >*{flex-shrink:0}tui-tabs[data-vertical][_nghost-%COMP%], tui-tabs[data-vertical] [_nghost-%COMP%], [tuiTabs][data-vertical][_nghost-%COMP%], [tuiTabs][data-vertical] [_nghost-%COMP%]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical][_nghost-%COMP%]:after, tui-tabs[data-vertical] [_nghost-%COMP%]:after, [tuiTabs][data-vertical][_nghost-%COMP%]:after, [tuiTabs][data-vertical] [_nghost-%COMP%]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-primary);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical][_nghost-%COMP%]:hover, tui-tabs[data-vertical] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical][_nghost-%COMP%]:hover, [tuiTabs][data-vertical] [_nghost-%COMP%]:hover{box-shadow:inset -2px 0 var(--tui-base-03)}tui-tabs[data-vertical]._active[_nghost-%COMP%]:after, tui-tabs[data-vertical] ._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical]._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical] ._active[_nghost-%COMP%]:after{transform:none}tui-tabs[data-vertical="right"][_nghost-%COMP%], tui-tabs[data-vertical="right"] [_nghost-%COMP%], [tuiTabs][data-vertical="right"][_nghost-%COMP%], [tuiTabs][data-vertical="right"] [_nghost-%COMP%]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical="right"][_nghost-%COMP%]:after, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical="right"][_nghost-%COMP%]:hover, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:hover{box-shadow:inset 2px 0 var(--tui-base-03)}'],changeDetection:0}),t})(),De=(()=>{class t{constructor(t){this.el=t,this.activeItemIndex=0,this.activeItemIndexChange=new i.vpe}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}onActivate(t,e){const n=this.tabs.findIndex((t=>t===e));t.stopPropagation(),n!==this.activeItemIndex&&(this.activeItemIndexChange.emit(n),this.activeItemIndex=n)}moveFocus(t,e){const{tabs:n}=this;(0,gt.VR)(n.indexOf(t),n,e)}ngAfterViewChecked(){const{tabs:t,activeElement:e}=this;t.forEach((t=>{const n=t===e;t.classList.toggle("_active",n),t.setAttribute("tabIndex",n?"0":"-1")}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["tui-tabs"],["nav","tuiTabs",""]],hostBindings:function(t,e){1&t&&i.NdJ("tui-tab-activate",(function(t){return e.onActivate(t,t.target)}))},inputs:{activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"}}),t})();const Le={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0},Ne=new i.OlP("[TUI_TABS_OPTIONS]",{factory:()=>Le});let Fe=(()=>{class t{constructor({nativeElement:t},e,n,i){this.ngZone=e,this.animationFrame$=n,this.mode$=i,this.el$=new ue.t(1),this.refresh$=this.el$.pipe((0,u.w)((t=>t?this.animationFrame$.pipe((0,h.U)((()=>t)),(0,ht.fL)(this.ngZone)):(0,he.of)(null))),(0,_.B)()),this.transition$=(0,fe.Gt)(this.el$.pipe((0,h.U)((t=>t&&"all")),(0,de.b)(50))),this.transform$=(0,fe.Gt)(this.refresh$.pipe((0,h.U)((t=>t?`translate3d(${t.offsetLeft}px, 0, 0)`:null)))),this.width$=(0,fe.Gt)(this.refresh$.pipe((0,h.U)((t=>(null==t?void 0:t.clientWidth)||0)))),t["$.style.transitionProperty"]=this.transition$,t["$.style.transform"]=this.transform$,t["$.style.width.px"]=this.width$}set element(t){this.el$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(pe.L1),i.Y36(mt.Au))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-underline"]],hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))("$.style.transitionProperty",(function(){return e.transition$()}))("$.style.transform",(function(){return e.transform$()}))("$.style.width.px",(function(){return e.width$()}))},inputs:{element:"element"},features:[i._Bn([St.CV])],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:0;height:100%;color:var(--tui-primary);transform:scale(0);box-shadow:inset 0 -.1875rem 0 -.0625rem;transition-property:none;pointer-events:none}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}"],changeDetection:0}),t})(),ze=(()=>{class t{constructor(t,e,n,i,r){this.options=t,this.el=e,this.tabs=n,this.children=it.Mm,this.underline=this.options.underline,r.pipe((0,f.h)((()=>this.underline))).subscribe((()=>{i.detectChanges()}))}get activeItemIndex(){return this.tabs.activeItemIndex}set activeItemIndex(t){this.tabs.activeItemIndex=t}get activeElement(){return this.tabs.activeElement}onKeyDownArrow(t,e){this.tabs.moveFocus(t,e)}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex)}scrollTo(t){const e=this.tabs.tabs[t];if(!e)return;const{offsetLeft:n,offsetWidth:i}=e,{nativeElement:r}=this.el;nr.scrollLeft+r.offsetWidth&&(r.scrollLeft=n+i-r.offsetWidth)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(Ne),i.Y36(i.SBq),i.Y36(De),i.Y36(i.sBO),i.Y36(rt.tl))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Ie,4),2&t){let t;i.iGM(t=i.CRH())&&(e.children=t)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("keydown.arrowRight.prevent",(function(t){return e.onKeyDownArrow(t.target,1)}))("keydown.arrowLeft.prevent",(function(t){return e.onKeyDownArrow(t.target,-1)})),2&t&&i.ekj("_underline",e.underline)},inputs:{underline:"underline"},features:[i._Bn([rt.a3,rt.tl,le.IM,{provide:le.k2,useValue:{childList:!0}}])],ngContentSelectors:ve,decls:4,vars:4,consts:[[4,"ngIf"],["class","t-underline",3,"element",4,"ngIf"],[1,"t-underline",3,"element"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,_e,1,0,"ng-container",0),i.ALo(1,"async"),i.Hsn(2),i.YNc(3,ye,1,1,"tui-underline",1)),2&t&&(i.Q6J("ngIf",i.lcZ(1,2,e.children.changes)),i.xp6(3),i.Q6J("ngIf",e.underline))},directives:[y.O5,Fe],pipes:[y.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);height:var(--tui-height-l);color:var(--tui-text-02);box-shadow:inset 0 -1px var(--tui-base-03);overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-underline[_ngcontent-%COMP%]{z-index:-1}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"scrollTo",null),t})();const Re=new i.OlP("[TUI_TABS_REFRESH]"),Be=[rt.tl,rt.a3,le.IM,(0,se.fx)({align:"right"}),{provide:le.k2,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:Re,deps:[rt.tl,le.IM,rt.a3,y.K0,i.SBq,i.sBO],useFactory:(t,e,n,{body:i},{nativeElement:r},o)=>(0,c.T)(t,e.pipe((0,R.b)((()=>o.detectChanges())))).pipe((0,f.h)((()=>i.contains(r))),(0,de.b)(0),(0,d.O)(null),(0,p.R)(n))}];let je=(()=>{class t{constructor(t,e,n,r,o,s){this.options=t,this.margin=e,this.refresh$=n,this.el=r,this.cdr=o,this.moreWord$=s,this.maxIndex=1/0,this.underline=this.options.underline,this.activeItemIndex=0,this.itemsLimit=this.options.itemsLimit,this.activeItemIndexChange=new i.vpe,this.items=it.Mm,this.open=!1}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){var t;const{tabs:e}=this,n=(0,st.Ki)(this.activeItemIndex||0,0,e.length-2);return this.options.exposeActive||this.lastVisibleIndex>=n?e[n]||null:(null===(t=this.moreButton)||void 0===t?void 0:t.nativeElement)||null}get isMoreAlone(){return this.lastVisibleIndex<0&&!this.options.exposeActive}get isMoreVisible(){return this.lastVisibleIndex=this.items.length)return this.maxIndex;const t=this.itemsLimit-1>this.activeItemIndex||!this.options.exposeActive?1:2;return Math.min(this.itemsLimit-t,this.maxIndex)}ngAfterViewInit(){this.refresh$.pipe((0,h.U)((()=>this.getMaxIndex())),(0,f.h)((t=>this.maxIndex!==t))).subscribe((t=>{this.maxIndex=t,this.cdr.detectChanges()}))}onActiveItemIndexChange(t){this.updateActiveItemIndex(t)}onClick(t){this.open=!1,this.focusMore(),this.updateActiveItemIndex(t)}onArrowRight(t){(0,ie.ve)(t.target)&&(0,gt.V8)(t.target)&&this.focusMore()}onArrowLeft(){const{tabs:t}=this;let e=t.length-2;for(;e>=0;){if(t[e].focus(),(0,gt.V8)(t[e]))return;e--}}onWrapperArrow(t,e,n){const i=t.target,r=(0,gt.BW)({initial:i,root:e,previous:n});r&&r.focus()}isOverflown(t){return t!==this.activeItemIndex||!this.options.exposeActive}shouldShow(t){return t>this.lastVisibleIndex&&this.isOverflown(t)}focusMore(){this.moreButton&&this.moreButton.nativeElement.focus()}getMaxIndex(){const{tabs:t,activeItemIndex:e,margin:n}=this;if(t.length<2)return 0;const{exposeActive:i,minMoreWidth:r}=this.options,{clientWidth:o}=this.el.nativeElement,s=t[e]?t[e].scrollWidth:0,a=Math.max(t[t.length-1].scrollWidth,r);let l=t.length-2,c=t.reduce(((t,{scrollWidth:e})=>t+e),0)+l*n-t[t.length-1].scrollWidth;if(c<=o)return 1/0;for(;l;)if(c-=t[l].scrollWidth+n,l--,c+(i&&e>l?s+n:0)+a+n+(0,st.HW)(this.maxIndex===l-1){class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,re.jh,_t.EI,Tt.u,K.H]]}),t})();var $e=n(59328),Ve=n(40719);const Ye=["wrapper"];function qe(t,e){if(1&t&&(i.TgZ(0,"tui-loader",4),i.GkF(1,5),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("overlay",!0)("showLoader",t.loading),i.xp6(1),i.Q6J("ngTemplateOutlet",t.content)}}function He(t,e){if(1&t&&(i.ynx(0),i.Hsn(1),i.YNc(2,qe,2,3,"tui-loader",3),i.BQk()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.async)("ngIfElse",t.content)}}const Ze=["*"];let Ge=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiExpandContent",""]]}),t})(),Xe=(()=>{class t{constructor(t){this.cdr=t,this.state=0,this.async=!1,this.content=null,this.expanded=null}set expandedSetter(t){if(null!==this.expanded){if(0!==this.state)return this.expanded=t,void(this.state=3);this.expanded=t,this.retrigger(this.async&&t?1:3)}else this.expanded=t}get overflow(){return 0!==this.state}get loading(){return!!this.expanded&&this.async&&1===this.state}get height(){const{expanded:t,state:e,contentWrapper:n}=this;return t&&2===e||!t&&3===e?0:n&&(!t&&2===e||t&&3===e)?n.nativeElement.offsetHeight:n&&t&&1===e?Math.max(n.nativeElement.offsetHeight,48):null}get contentVisible(){return this.expanded||0!==this.state}onTransitionEnd({propertyName:t}){"opacity"===t&&3===this.state&&(this.state=0)}onExpandLoaded(t){t.stopPropagation(),1===this.state&&this.retrigger(3)}retrigger(t){this.state=2,setTimeout((()=>{2===this.state&&(this.state=t,this.cdr.markForCheck())}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-expand"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Ge,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.content=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(Ye,5),2&t){let t;i.iGM(t=i.CRH())&&(e.contentWrapper=t.first)}},hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("transitionend.self",(function(t){return e.onTransitionEnd(t)}))("tui-expand-loaded",(function(t){return e.onExpandLoaded(t)})),2&t&&(i.uIk("aria-expanded",e.expanded),i.Udp("height",e.height,"px"),i.ekj("_expanded",e.expanded)("_overflow",e.overflow)("_loading",e.loading))},inputs:{async:"async",expandedSetter:["expanded","expandedSetter"]},ngContentSelectors:Ze,decls:3,vars:3,consts:[[1,"t-wrapper"],["wrapper",""],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0,1),i.YNc(2,He,3,2,"ng-container",2),i.qZA()),2&t&&(i.Q6J("@tuiParentAnimation",void 0)("@.disabled",e.overflow),i.xp6(2),i.Q6J("ngIf",e.contentVisible))},directives:[y.O5,Ve.kM,y.tP],styles:['[_nghost-%COMP%]{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translate(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[it.Kx]},changeDetection:0}),t})(),Je=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Ve.dS]]}),t})();var Qe=n(95974);const We=["focusableElement"];function Ke(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=i.oxw();i.ekj("t-icon_open",t.open)}}function tn(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function en(t,e){if(1&t&&(i.TgZ(0,"div",10),i.YNc(1,tn,2,1,"ng-container",11),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("polymorpheusOutlet",t.lazyContent)}}function nn(t,e){if(1&t&&i.YNc(0,en,2,1,"div",9),2&t){const t=i.oxw();i.Q6J("ngIf",t.lazyContent)}}function rn(t,e){1&t&&(i.TgZ(0,"div",12),i.Hsn(1,1),i.qZA())}const on=["*",[["","tuiAccordionItemContent",""]]],sn=["*","[tuiAccordionItemContent]"],an=[[["tui-accordion-item"]]],ln=["tui-accordion-item"];let cn=(()=>{class t extends bt.GL{constructor(t,e){super(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","tuiAccordionItemContent",""]],features:[i.qOj]}),t})(),un=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccordionItemContent","",5,"ng-template"]]}),t})(),hn=(()=>{class t extends ft.Xn{constructor(t,e){super(),this.cdr=t,this.mode$=e,this.noPadding=!1,this.showArrow=!0,this.borders="all",this.size="m",this.disabled=!1,this.disableHover=!1,this.open=!1,this.async=!1,this.openChange=new i.vpe}get nativeFocusableElement(){return this.disabled||!this.focusableElement?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onRowToggle(){this.disabled||this.updateOpen(!this.open)}onItemKeyDownEsc(t){this.open&&(t.stopPropagation(),this.updateOpen(!1))}close(){this.updateOpen(!1),this.cdr.markForCheck()}updateOpen(t){this.open!==t&&(this.open=t,this.openChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(mt.Au))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion-item"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,un,5),i.Suo(n,cn,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.eagerContent=t.first),i.iGM(t=i.CRH())&&(e.lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(We,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-borders",e.borders)("data-size",e.size),i.ekj("_no-padding",e.noPadding)("_has-arrow",e.showArrow)("_disabled",e.disabled))},inputs:{noPadding:"noPadding",showArrow:"showArrow",borders:"borders",size:"size",disabled:"disabled",disableHover:"disableHover",open:"open",async:"async"},outputs:{openChange:"openChange"},features:[i._Bn([(0,ct.FT)(t),St.CV]),i.qOj],ngContentSelectors:sn,decls:9,vars:10,consts:[["automation-id","tui-accordion__item-wrapper",1,"t-wrapper"],["automation-id","tui-accordion__item-header","type","button",1,"t-header",3,"disabled","tuiFocusable","tuiFocusVisibleChange","tuiFocusedChange","keydown.esc","click"],["focusableElement",""],["automation-id","tui-accordion__item-title",1,"t-title"],["automation-id","tui-accordion__item-arrow","src","tuiIconChevronDownLarge","class","t-icon",3,"t-icon_open",4,"ngIf"],[3,"async","expanded"],["tuiExpandContent",""],["class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-arrow","src","tuiIconChevronDownLarge",1,"t-icon"],["automation-id","tui-accordion__item-content","class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-content",1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(on),i.TgZ(0,"div",0),i.TgZ(1,"button",1,2),i.NdJ("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("keydown.esc",(function(t){return e.onItemKeyDownEsc(t)}))("click",(function(){return e.onRowToggle()})),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i.YNc(5,Ke,1,2,"tui-svg",4),i.qZA(),i.TgZ(6,"tui-expand",5),i.YNc(7,nn,1,1,"ng-template",6),i.YNc(8,rn,2,0,"div",7),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.ekj("t-header_open",e.open)("t-header_hoverable",!e.disableHover),i.Q6J("disabled",e.computedDisabled)("tuiFocusable",e.computedFocusable),i.xp6(4),i.Q6J("ngIf",e.showArrow),i.xp6(1),i.Q6J("async",e.async)("expanded",e.open),i.xp6(2),i.Q6J("ngIf",e.eagerContent))},directives:[Tt.t,It.q,At.U,y.O5,Xe,Ge,_t.PN,bt.Li],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden;border-radius:var(--tui-radius-l)}[data-borders=top-bottom][_nghost-%COMP%]{border-radius:0!important}.t-wrapper[_ngcontent-%COMP%]{position:relative;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;border:1px solid var(--tui-base-04);pointer-events:none}[_nghost-%COMP%]:not([data-borders]) .t-wrapper[_ngcontent-%COMP%]:after{border-width:0}[data-borders=all][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-borders=top-bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0}[data-borders=top][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-bottom-width:0}[data-borders=bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-top-width:0}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-text-01)}._focus-visible[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border:2px solid var(--tui-focus)}[_nghost-%COMP%]:not([data-mode]) .t-wrapper[_ngcontent-%COMP%]{background:var(--tui-base-01)}.t-header[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:100%;font:var(--tui-font-text-l);align-items:center;box-sizing:border-box;border-bottom:1px solid var(--tui-base-04);min-height:var(--tui-height-l);padding:.75rem 1.25rem;color:var(--tui-text-01);cursor:pointer;text-align:left;outline:none}[data-mode=onDark][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{color:var(--tui-text-01-night);border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{border-color:var(--tui-text-01)}[_nghost-%COMP%]:not([data-borders]) .t-header[_ngcontent-%COMP%]{border-bottom-width:0;box-shadow:none}._has-arrow[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-right:.75rem}[data-mode=onDark][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[data-mode=onLight][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear)}[data-size=s][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-m);min-height:var(--tui-height-m);padding:.625rem .75rem .625rem 1rem}._no-padding[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0}._disabled[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]:hover:not([data-mode]) .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-base-02)}[_nghost-%COMP%]:hover[data-mode=onDark] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[_nghost-%COMP%]:hover[data-mode=onLight] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear)}.t-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;flex-grow:1}._has-arrow[_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{margin-right:.5rem}.t-icon[_ngcontent-%COMP%]{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1.5rem;height:1.5rem;margin-left:auto;color:var(--tui-base-06)}.t-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}[data-mode][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[_nghost-%COMP%]:hover[data-mode] .t-icon[_ngcontent-%COMP%]{opacity:.8}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01)}[_nghost-%COMP%]:hover:not([data-mode]) .t-icon[_ngcontent-%COMP%]{color:var(--tui-base-07)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);padding:1.25rem;word-wrap:break-word}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);padding:1rem}'],changeDetection:0}),t})(),dn=(()=>{class t{constructor(t){this.destroy$=t,this.closeOthers=!0,this.rounded=!0,this.accordionItems=it.Mm}ngAfterContentInit(){const{accordionItems:t}=this,e=(0,ht.ll)(t),n=e.pipe((0,$e.G)(),(0,h.U)((([t,e])=>e.find((e=>!t.includes(e)&&e.open)))),(0,f.h)(lt.Pc));(0,c.T)(e.pipe((0,u.w)((t=>(0,c.T)(...t.map((t=>t.openChange.pipe((0,f.h)(ce.y),(0,h.U)((()=>t))))))))),n).pipe((0,f.h)((()=>this.closeOthers)),(0,p.R)(this.destroy$)).subscribe((e=>{t.forEach((t=>{e!==t&&t.close()}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(rt.a3,2))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,hn,4),2&t){let t;i.iGM(t=i.CRH())&&(e.accordionItems=t)}},inputs:{closeOthers:"closeOthers",rounded:"rounded"},features:[i._Bn([rt.a3])],ngContentSelectors:ln,decls:2,vars:2,consts:[["tuiGroup","","automation-id","tui-accordion__group","orientation","vertical","size","l",1,"t-group",3,"collapsed","rounded"]],template:function(t,e){1&t&&(i.F$t(an),i.TgZ(0,"div",0),i.Hsn(1),i.qZA()),2&t&&i.Q6J("collapsed",!0)("rounded",e.rounded)},directives:[Qe.gZ],styles:["[_nghost-%COMP%]{display:block}.t-group[_ngcontent-%COMP%]{display:flex}"],changeDetection:0}),t})(),pn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,At.F,It.c,Tt.u,bt.wq,_t.EI,Qe.n6,Je]]}),t})();var fn=n(66640),gn=n(79588),mn=n(22759);let vn=(()=>{class t{constructor(t,e,n){this.el=t,this.ngZone=e,this.destroy$=n,this.eventName=""}ngOnInit(){(0,mn.R)(this.el.nativeElement,this.eventName,{passive:!1}).pipe((0,ht.fL)(this.ngZone),(0,ht.mp)(),(0,p.R)(this.destroy$)).subscribe()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(rt.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[i._Bn([rt.a3])]}),t})(),_n=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const yn=["input"];function bn(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function wn(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,bn,2,1,"ng-container",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.leftContent)}}function Cn(t,e){if(1&t&&i._UZ(0,"tui-loader",8),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("size",t.loaderSize)}}function xn(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-svg",10),i.NdJ("click",(function(e){return i.CHM(t),i.oxw(2).remove(e)})),i.qZA()}if(2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const On=function(t){return{$implicit:t}};function kn(t,e){if(1&t&&(i.ynx(0),i.YNc(1,xn,1,1,"tui-svg",9),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconCleaner)("polymorpheusOutletContext",i.VKq(2,On,t.size))}}function Mn(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"input",11,12),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onInput(e)}))("blur",(function(){return i.CHM(t),i.oxw().onBlur()}))("keydown",(function(e){return i.CHM(t),i.oxw().onKeyDown(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("ngModel",t.editedText),i.uIk("maxLength",t.maxLength)}}const Pn={size:"m",status:"default",autoColor:!1},Sn=new i.OlP("[TUI_TAG_OPTIONS]",{factory:()=>Pn});let En=(()=>{class t{constructor(t,e,n,r){this.el=t,this.mode$=e,this.options=n,this.controller=r,this.value="",this.editable=!1,this.separator=",",this.maxLength=null,this.size=this.options.size,this.showLoader=!1,this.status=this.options.status,this.hoverable=!1,this.removable=!1,this.disabled=!1,this.autoColor=this.options.autoColor,this.edited=new i.vpe,this.editing=!1,this.editedText=null}set input(t){t&&t.nativeElement.focus()}get backgroundColor(){return this.autoColor?function(t){if(""===t)return"";let e=0;for(let n=0;n1?this.save(String(e)):this.editedText=t}onKeyDown(t){switch(t.stopPropagation(),t.key.toLowerCase()){case"enter":t.preventDefault(),this.save(this.editedText||"");break;case"escape":case"esc":t.preventDefault(),this.stopEditing(),this.el.nativeElement.focus()}}onBlur(){null!==this.editedText&&this.save(this.editedText)}get canEdit(){return this.editable&&!this.disabled&&!this.showLoader}stopEditing(){this.editing=!1,this.editedText=null}save(t){this.stopEditing(),this.edited.emit(t.trim())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(mt.Au),i.Y36(Sn),i.Y36(gn.Cs))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(t,e){if(1&t&&i.Gf(yn,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.input=t.first)}},hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))("keydown.enter",(function(t){return e.edit(t)}))("keydown.delete",(function(t){return e.remove(t)}))("keydown.backspace",(function(t){return e.remove(t)})),2&t&&(i.uIk("data-size",e.size)("data-status",e.status),i.ekj("_hoverable",e.hoverable)("_disabled",e.disabled)("_autocolor",e.autoColor)("_editing",e.editing))},inputs:{value:"value",editable:"editable",separator:"separator",maxLength:"maxLength",size:"size",showLoader:"showLoader",status:"status",hoverable:"hoverable",removable:"removable",disabled:"disabled",autoColor:"autoColor",leftContent:"leftContent"},outputs:{edited:"edited"},features:[i._Bn([gn.Y0,St.CV])],decls:6,vars:7,consts:[[1,"t-tag",3,"dblclick"],["class","t-content",4,"ngIf"],["automation-id","tui-tag__text",1,"t-text",3,"textContent"],["class","t-content",3,"inheritColor","size",4,"ngIf"],[4,"ngIf"],["automation-id","tui-tag__edit","type","text","class","t-edit",3,"ngModel","ngModelChange","blur","keydown",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content",3,"inheritColor","size"],["tuiPreventDefault","mousedown","automation-id","tui-tag__remove","class","t-icon",3,"src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiPreventDefault","mousedown","automation-id","tui-tag__remove",1,"t-icon",3,"src","click"],["automation-id","tui-tag__edit","type","text",1,"t-edit",3,"ngModel","ngModelChange","blur","keydown"],["input",""]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.NdJ("dblclick",(function(t){return e.edit(t)})),i.YNc(1,wn,2,1,"div",1),i._UZ(2,"span",2),i.YNc(3,Cn,1,2,"tui-loader",3),i.YNc(4,kn,2,4,"ng-container",4),i.qZA(),i.YNc(5,Mn,2,2,"input",5)),2&t&&(i.Udp("background-color",e.backgroundColor),i.xp6(1),i.Q6J("ngIf",e.leftContent),i.xp6(1),i.Q6J("textContent",e.displayText),i.xp6(1),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.canRemove),i.xp6(1),i.Q6J("ngIf",e.editing))},directives:[y.O5,bt.Li,Ve.kM,_t.PN,vn,pt.Fj,pt.JJ,pt.On],styles:['[_nghost-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;font:var(--tui-font-text-s);line-height:1.25rem;border-radius:var(--tui-radius-s);max-width:100%;cursor:default;outline:none;text-decoration:none;padding:0;border:0}[_nghost-%COMP%]:after{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;pointer-events:none}._hoverable[_nghost-%COMP%]:hover[data-status=custom]:after, ._hoverable[_nghost-%COMP%]:active[data-status=custom]:after{background-color:var(--tui-clear)}[_nghost-%COMP%]:focus:after{border:2px solid var(--tui-focus)}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;border-radius:var(--tui-radius-xs)}[data-status=primary][_nghost-%COMP%]{background-color:var(--tui-primary);color:var(--tui-primary-text)}[data-status=primary]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-primary-hover)}[data-status=primary]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-primary-active)}[data-status=error][_nghost-%COMP%]{background-color:var(--tui-error-bg);color:var(--tui-text-01)}[data-status=error]._hoverable[_nghost-%COMP%]:hover, [data-status=error]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-hover)}[data-status=error][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-error-bg-night);color:var(--tui-text-01-night)}[data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-night-hover)}[data-status=success][_nghost-%COMP%]{background-color:var(--tui-success-bg);color:var(--tui-text-01)}[data-status=success]._hoverable[_nghost-%COMP%]:hover, [data-status=success]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-hover)}[data-status=success][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-success-bg-night);color:var(--tui-text-01-night)}[data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-night-hover)}[data-status=warning][_nghost-%COMP%]{background-color:var(--tui-warning-bg);color:var(--tui-text-01)}[data-status=warning]._hoverable[_nghost-%COMP%]:hover, [data-status=warning]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-hover)}[data-status=warning][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-warning-bg-night);color:var(--tui-text-01-night)}[data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-night-hover)}[data-status=default][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-base-06)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:hover{background-color:var(--tui-base-07)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:active{background-color:var(--tui-base-08)}[data-status=default][data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-clear-inverse)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-inverse-hover)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-inverse-active)}[data-status=default][data-mode=onDark][_nghost-%COMP%]:focus:after{border:2px solid var(--tui-base-01)}[data-status=default][data-mode=onLight][_nghost-%COMP%]{background-color:var(--tui-clear);color:var(--tui-text-01)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-hover)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-active)}._editing[_nghost-%COMP%]{background:transparent!important}._disabled[_nghost-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}._hoverable[_nghost-%COMP%]{cursor:pointer}._autocolor[_nghost-%COMP%]{color:#000c}.t-text[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:.02em}.t-tag[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;width:auto;align-items:center;grid-gap:.25rem;gap:.25rem;font:inherit;border-radius:inherit}[data-size=s][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:1.25rem;padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-xs);padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-s);padding:0 .75rem}._editing[_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{visibility:hidden}.t-edit[_ngcontent-%COMP%]{margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;font:inherit;color:var(--tui-text-01);width:100%;height:100%;box-sizing:border-box;padding:0 .5rem}.t-edit[_ngcontent-%COMP%]:-webkit-autofill, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-size=s][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .75rem}.t-icon[_ngcontent-%COMP%]{width:1rem;height:100%;cursor:pointer;pointer-events:all;opacity:var(--tui-disabled-opacity)}.t-icon[_ngcontent-%COMP%]:hover{opacity:1}.t-content[_ngcontent-%COMP%]{width:1rem;height:1rem}'],changeDetection:0}),t})(),Tn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,_n,_t.EI,Ve.dS,bt.wq]]}),t})();var An=n(74337),In=n(4246),Dn=n(25470),Ln=n(72764),Nn=n(21673);let Fn=(()=>{class t extends ft.GM{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-theme-night"]],features:[i.qOj],decls:0,vars:0,template:function(t,e){},styles:[":root{--tui-base-01: #222;--tui-base-02: #333;--tui-base-03: #808080;--tui-base-04: #959595;--tui-base-05: #b0b0b0;--tui-base-06: #d7d7d7;--tui-base-07: #ededed;--tui-base-08: #f6f6f6;--tui-base-09: #fff;--tui-focus: rgba(51, 51, 51, .64);--tui-secondary: rgba(255, 255, 255, .16);--tui-secondary-hover: rgba(255, 255, 255, .24);--tui-secondary-active: rgba(255, 255, 255, .4);--tui-clear: rgba(255, 255, 255, .16);--tui-clear-disabled: rgba(255, 255, 255, .08);--tui-clear-hover: rgba(255, 255, 255, .24);--tui-clear-active: rgba(255, 255, 255, .4);--tui-error-fill: #ff8c67;--tui-error-bg: rgba(244, 87, 37, .32);--tui-error-bg-hover: rgba(244, 87, 37, .4);--tui-success-fill: #4ac99b;--tui-success-bg: rgba(74, 201, 155, .32);--tui-success-bg-hover: rgba(74, 201, 155, .4);--tui-warning-fill: #ffc700;--tui-warning-bg: rgba(255, 199, 0, .32);--tui-warning-bg-hover: rgba(255, 199, 0, .4);--tui-info-fill: #70b6f6;--tui-info-bg: rgba(112, 182, 246, .32);--tui-info-bg-hover: rgba(112, 182, 246, .4);--tui-neutral-fill: #959ba4;--tui-neutral-bg: rgba(149, 155, 164, .32);--tui-neutral-bg-hover: rgba(149, 155, 164, .48);--tui-text-01: #ffffff;--tui-text-02: rgba(255, 255, 255, .72);--tui-text-03: rgba(255, 255, 255, .6);--tui-link: #6788ff;--tui-link-hover: #526ed3;--tui-positive: #44c596;--tui-positive-hover: #3aa981;--tui-negative: #ff8c67;--tui-negative-hover: #bb593a;--tui-autofill: var(--tui-autofill-night);--tui-elevation-01: #222;--tui-elevation-02: #222}tui-notification{--tui-base-01: #000}\n"],encapsulation:2,changeDetection:0}),t})(),zn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var Rn=n(12628),Bn=n(82847),jn=n(90022),Un=n(75111),$n=n(1515),Vn=n(52697),Yn=n(60885),qn=n(80134),Hn=n(21022),Zn=n(72361);function Gn(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Xn(t,e){if(1&t&&(i.TgZ(0,"label",4),i.YNc(1,Gn,2,1,"ng-container",5),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function Jn(t,e){if(1&t&&i._UZ(0,"div",6),2&t){const t=e.polymorpheusOutlet;i.Q6J("innerHTML",t,i.oJD)}}let Qn=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.destroy$=e,this.options=n,this.animation=i,this.item=r,this.autoClose="function"==typeof this.item.autoClose?this.item.autoClose(this.item.status):this.item.autoClose}ngOnInit(){this.initAutoClose()}closeNotification(){this.item.$implicit.complete()}initAutoClose(){this.autoClose&&(0,l.H)((0,lt.dt)(this.autoClose)?this.autoClose:this.options.defaultAutoCloseTime).pipe((0,p.R)((0,mn.R)(this.el.nativeElement,"mouseenter")),(0,Zn.a)((()=>(0,mn.R)(this.el.nativeElement,"mouseleave"))),(0,p.R)(this.destroy$)).subscribe((()=>this.closeNotification()))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(rt.a3,2),i.Y36(mt.Ln),i.Y36(mt.Pw),i.Y36(bt.yf))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(t,e){2&t&&i.d8E("@tuiFadeIn",e.animation)("@tuiSlideInRight",e.animation)("@tuiHeightCollapse",e.animation)},features:[i._Bn([rt.a3])],decls:4,vars:6,consts:[[3,"status","hasIcon","hideClose","close"],["automation-id","tui-notification-alert__heading","class","t-heading",4,"ngIf"],["automation-id","tui-notification-alert__content",1,"t-content"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification-alert__heading",1,"t-heading"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-notification",0),i.NdJ("close",(function(){return e.closeNotification()})),i.YNc(1,Xn,2,2,"label",1),i.TgZ(2,"div",2),i.YNc(3,Jn,1,1,"div",3),i.qZA(),i.qZA()),2&t&&(i.Q6J("status",e.item.status)("hasIcon",e.item.hasIcon)("hideClose",!e.item.hasCloseButton),i.xp6(1),i.Q6J("ngIf",e.item.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.item))},directives:[Yn.Ls,y.O5,bt.Li],styles:["[_nghost-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:block;border-radius:var(--tui-radius-m);width:18rem;margin:2rem 3rem 0 auto}tui-root._mobile [_nghost-%COMP%]{margin:1rem 1rem 0 auto}[_nghost-%COMP%]:not(:first-child){margin-top:.75rem}.t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:bold;margin:0}.t-content[_ngcontent-%COMP%]{color:var(--tui-text-01);word-wrap:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[jt.QF,jt.hN,jt.eu]},changeDetection:0}),t})(),Wn=(()=>{class t extends ft.d5{constructor(t,e){super(e),this.defaultOptions=t,this.component=new bt.Al(Qn)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(mt.Ln),i.LFG(rt.ll))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),Kn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,ct.XH)(Wn)],imports:[[y.ez,bt.wq,Yn.Hi]]}),t})();var ti=n(12067),ei=n(20707),ni=n(56083);class ii{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(t){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let ri=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new ii(t,this._document)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y.K0))},t.ɵprov=i.Yz7({factory:function(){return new t(i.LFG(y.K0))},token:t,providedIn:"root"}),t})();const oi=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let si=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}copy(t=this.attempts){if(t>1){let e=t;const n=this._clipboard.beginCopy(this.text);this._pending.add(n);const i=()=>{const t=n.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular((()=>setTimeout(i,1)))};i()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((t=>t.destroy())),this._pending.clear(),this._destroyed=!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ri),i.Y36(i.R0b),i.Y36(oi,8))},t.ɵdir=i.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),ai=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var li=n(66174),ci=n(75122);const ui=["tuiSidebar",""];function hi(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}let di=(()=>{class t extends bt.GL{constructor(t,e,n,i){super(t,i),this.content=t,this.injector=e,this.portalService=n,this.component=new bt.Al(pi,this.injector),this.sidebarRef=null,this.direction="left",this.autoWidth=!1}set tuiSidebar(t){t?this.show():this.hide()}ngOnDestroy(){this.hide()}show(){null===this.sidebarRef&&(this.sidebarRef=this.portalService.add(this.component),this.sidebarRef.changeDetectorRef.detectChanges())}hide(){null!==this.sidebarRef&&(this.portalService.remove(this.sidebarRef),this.sidebarRef=null)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(i.zs3),i.Y36(ci.ae),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiSidebar",""]],inputs:{direction:["tuiSidebarDirection","direction"],autoWidth:["tuiSidebarAutoWidth","autoWidth"],tuiSidebar:"tuiSidebar"},features:[i.qOj]}),t})(),pi=(()=>{class t{constructor(t,e){this.options=t,this.directive=e,this.left=Object.assign(Object.assign({},this.options),{value:"left"}),this.right=Object.assign(Object.assign({},this.options),{value:"right"})}get animation(){return"left"===this.direction?this.left:this.right}get directionHostClass(){return`t-${this.directive.direction}`}get direction(){return this.directive.direction}get content(){return this.directive.content}get autoWidth(){return this.directive.autoWidth}ngDoCheck(){this.directive.check()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(mt.Pw),i.Y36(di))},t.ɵcmp=i.Xpm({type:t,selectors:[["aside","tuiSidebar",""]],hostVars:3,hostBindings:function(t,e){2&t&&(i.d8E("@tuiSlideIn",e.animation),i.Tol(e.directionHostClass))},attrs:ui,decls:2,vars:3,consts:[["tuiActiveZone","",1,"t-wrapper"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,hi,2,1,"ng-container",1),i.qZA()),2&t&&(i.ekj("t-wrapper_auto-width",e.autoWidth),i.xp6(1),i.Q6J("polymorpheusOutlet",e.content))},directives:[nt.e,bt.Li],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}[_nghost-%COMP%]:before, [_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;content:"";height:100%;background:rgba(0,0,0,.38);animation:tuiFadeIn var(--tui-duration)}[_nghost-%COMP%]:before{left:-100%;width:200%}[_nghost-%COMP%]:after{left:100%}.ng-animating[_nghost-%COMP%]:before, .ng-animating[_nghost-%COMP%]:after{opacity:0;transition:opacity var(--tui-duration)}.t-right[_nghost-%COMP%]{justify-content:flex-end}.t-left[_nghost-%COMP%]{justify-content:flex-start}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width[_ngcontent-%COMP%]{width:auto}'],data:{animation:[jt.Gw]},changeDetection:0}),t})(),fi=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[nt.A,bt.wq]]}),t})();var gi=n(46331);const mi=new i.OlP("[TUI_THEME_STORAGE_KEY]",{factory:()=>"tuiTheme"}),vi="Taiga UI",_i=new i.OlP("[TUI_THEME_NAME]",{factory:()=>vi});let yi=(()=>{class t extends s.X{constructor(t,e,n){super(n.getItem(e)||t),this.initialTheme=t,this.key=e,this.storage=n}next(t){this.storage.setItem(this.key,t),super.next(t)}get isDefaultTheme(){return this.value===vi}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_i),i.LFG(mi),i.LFG(pe.H3))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const bi=new i.OlP("[TUI_THEME_NIGHT_STORAGE_KEY]",{factory:()=>"tuiNight"}),wi=new i.OlP("[TUI_USE_DEFAULT_NIGHT_THEME]",{factory:it.Ye});let Ci=(()=>{class t extends s.X{constructor(t,e,n,i){super("true"===e.getItem(n)||null===e.getItem(n)&&t.matchMedia("(prefers-color-scheme: dark)").matches),this.win=t,this.storage=e,this.key=n,this.useDefaultNightTheme=i}next(t){this.storage.setItem(this.key,String(t)),super.next(t)}toggle(){this.next(!this.value)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(pe.m9),i.LFG(pe.H3),i.LFG(bi),i.LFG(wi))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();function xi(t,e){if(1&t&&(i.TgZ(0,"p",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.filename,"\n")}}function Oi(t,e){if(1&t&&(i.TgZ(0,"pre",3),i._UZ(1,"code",4),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("lineNumbers",!0)("highlight",t)}}function ki(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",1),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClick()})),i.TgZ(1,"span",2),i.ALo(2,"async"),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i._uU(5),i.qZA(),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("title",t[0]),i.xp6(1),i.ekj("t-content_moved",i.lcZ(2,5,n.copied$)),i.xp6(2),i.uIk("data-text",t[0]),i.xp6(2),i.hij(" ",t[1]," ")}}const Mi=["*"],Pi=["content"],Si=["resizer"];function Ei(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",11),i.TgZ(2,"code"),i._uU(3,"tuiMode"),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.hij(" ",t.texts[0]," ")}}function Ti(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(2);i.Q6J("items",t.items)}}function Ai(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"tui-select",12),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(2," tuiMode "),i.YNc(3,Ti,1,1,"tui-data-list-wrapper",13),i.qZA(),i.BQk()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("tuiTextfieldCleaner",!0)("tuiHintContent",e)("ngModel",t.mode)}}function Ii(t,e){if(1&t){const t=i.EpF();i._uU(0," tuiMode: "),i._UZ(1,"tui-tooltip",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-radio-block",17),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(4," null "),i.qZA(),i.TgZ(5,"tui-radio-block",18),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(6," onDark "),i.qZA(),i.TgZ(7,"tui-radio-block",19),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(8," onLight "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("content",e),i.xp6(1),i.Q6J("collapsed",!0),i.xp6(1),i.Q6J("item",null)("hideRadio",!0)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode)}}function Di(t,e){if(1&t&&i._UZ(0,"tui-svg",27),2&t){const t=i.oxw(2);i.ekj("t-icon_rotated",t.expanded)}}function Li(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(3);i.Q6J("items",t.updateOnVariants)}}const Ni=function(){return{standalone:!0}};function Fi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"pre",28),i._uU(1),i.ALo(2,"json"),i.qZA(),i.TgZ(3,"div",29),i.TgZ(4,"tui-select",30),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(2).updateOnChange(e)})),i._uU(5," updateOn "),i.YNc(6,Li,1,1,"tui-data-list-wrapper",13),i.qZA(),i.TgZ(7,"button",31),i._uU(8," Reset "),i.qZA(),i.TgZ(9,"button",32),i._uU(10," Submit "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.hij("Form data: ",i.lcZ(2,3,t.testForm.value),""),i.xp6(3),i.Q6J("ngModel",t.updateOn)("ngModelOptions",i.DdM(5,Ni))}}function zi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",20),i.TgZ(1,"div",21),i.GkF(2,22),i.qZA(),i.TgZ(3,"button",23),i.NdJ("click",(function(){return i.CHM(t),i.oxw().toggleDetails()})),i._uU(4),i.qZA(),i.YNc(5,Di,1,2,"ng-template",null,24,i.W1O),i.TgZ(7,"tui-expand",25),i.YNc(8,Fi,11,6,"ng-template",26),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(6),e=i.oxw();i.Q6J("formGroup",e.testForm),i.xp6(2),i.Q6J("ngTemplateOutlet",e.template),i.xp6(1),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.texts[2]," "),i.xp6(3),i.Q6J("expanded",e.expanded)}}const Ri=function(){return[1,0]};function Bi(t,e){if(1&t&&(i.TgZ(0,"h1",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.heading,"\n")}}function ji(t,e){if(1&t&&(i.TgZ(0,"th",10),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.hij(" ",t.texts[3]," ")}}function Ui(t,e){1&t&&i._UZ(0,"tui-badge",20)}function $i(t,e){1&t&&(i.TgZ(0,"span",21),i._uU(1," deprecated "),i.qZA())}function Vi(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",24),i.TgZ(2,"code"),i._uU(3,"ng-polymorpheus"),i.qZA(),i.qZA()),2&t){const t=i.oxw(5);i.hij(" ",t.texts[4]," ")}}function Yi(t,e){if(1&t&&(i.TgZ(0,"tui-tooltip",22),i.YNc(1,Vi,4,1,"ng-template",null,23,i.W1O),i.qZA()),2&t){const t=i.MAs(2),e=i.oxw().$implicit;i.Q6J("describeId",e.attrName)("content",t)}}function qi(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",34),2&t){i.oxw(2);const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("items",e.documentationPropertyValues)("itemContent",t)}}function Hi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-select",31),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(3).$implicit.onValueChange(e)})),i.ALo(1,"tuiShowCleanerPipe"),i.TgZ(2,"code",32),i._uU(3,"null"),i.qZA(),i.YNc(4,qi,1,2,"tui-data-list-wrapper",33),i.qZA()}if(2&t){i.oxw();const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("tuiTextfieldCleaner",i.lcZ(1,5,e.documentationPropertyType))("tuiTextfieldLabelOutside",!0)("nativeId",e.attrName)("valueContent",t)("ngModel",e.documentationPropertyValue)}}function Zi(t,e){if(1&t&&(i.TgZ(0,"code"),i._uU(1),i.ALo(2,"tuiInspectAny"),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,t))}}function Gi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toggle",41),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("showIcons",!0)("ngModel",t.documentationPropertyValue)}}function Xi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldLabelOutside",!0)("tuiTextfieldCleaner",!0)("value",t.documentationPropertyValue||"")}}function Ji(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",43),i.TgZ(1,"tui-primitive-textfield",44),i.NdJ("valueChange",(function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onColorChange(n,e)})),i.ALo(2,"tuiGetOpacity"),i.ALo(3,"tuiGetColorPipe"),i._UZ(4,"input",45),i.qZA(),i.TgZ(5,"tui-input-number",46),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onOpacityChange(n,e)})),i.ALo(6,"tuiGetOpacity"),i._uU(7," Opacity "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("tuiTextfieldLabelOutside",!0)("tuiInputOpacity",i.lcZ(2,8,t.documentationPropertyValue))("value",i.lcZ(3,10,t.documentationPropertyValue)),i.uIk("id",t.attrName),i.xp6(4),i.Q6J("step",1)("min",0)("max",100)("ngModel",i.lcZ(6,12,t.documentationPropertyValue))}}function Qi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-input-number",47),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e||0)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldLabelOutside",!0)("step",1)("ngModel",t.documentationPropertyValue)}}function Wi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(5).$implicit.onValueChange(e)})),i._uU(1," Default content "),i.qZA()}if(2&t){const t=i.oxw(5).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldLabelOutside",!0)("tuiTextfieldCleaner",!0)("value",t.documentationPropertyValue.toString())}}function Ki(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Wi,2,4,"tui-primitive-textfield",48),i.ALo(2,"tuiIsPrimitivePolymorpheusContentPipe"),i.BQk()),2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,t.documentationPropertyValue))}}function tr(t,e){if(1&t&&(i.ynx(0,35),i.YNc(1,Gi,1,3,"tui-toggle",36),i.YNc(2,Xi,1,4,"tui-primitive-textfield",37),i.YNc(3,Ji,8,14,"div",38),i.YNc(4,Qi,1,4,"tui-input-number",39),i.YNc(5,Ki,3,3,"ng-container",40),i.BQk()),2&t){const t=i.oxw(3).$implicit;i.Q6J("ngSwitch",t.documentationPropertyType),i.xp6(1),i.Q6J("ngSwitchCase","boolean"),i.xp6(1),i.Q6J("ngSwitchCase","string"),i.xp6(1),i.Q6J("ngSwitchCase","color"),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngSwitchCase","PolymorpheusContent")}}function er(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Hi,5,7,"tui-select",28),i.YNc(2,Zi,3,3,"ng-template",null,29,i.W1O),i.YNc(4,tr,6,6,"ng-template",null,30,i.W1O),i.BQk()),2&t){const t=i.MAs(5),e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf",e.hasItems)("ngIfElse",t)}}function nr(t,e){if(1&t&&(i.TgZ(0,"tui-notification",49),i.ALo(1,"async"),i._uU(2," Emit! "),i.qZA()),2&t){const t=i.oxw(2).$implicit;i.Q6J("@emitEvent",i.lcZ(1,1,t.emits$))}}function ir(t,e){if(1&t&&(i.TgZ(0,"td",25),i.YNc(1,er,6,2,"ng-container",26),i.YNc(2,nr,3,3,"ng-template",null,27,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",e.shouldShowValues)("ngIfElse",t)}}function rr(t,e){if(1&t&&(i.TgZ(0,"tr",11),i.TgZ(1,"td",12),i.TgZ(2,"div",13),i._uU(3),i.ALo(4,"tuiStripOptionalPipe"),i.YNc(5,Ui,1,0,"tui-badge",14),i.ALo(6,"tuiIsOptionalPipe"),i.qZA(),i.YNc(7,$i,2,0,"span",15),i.GkF(8,16),i.qZA(),i.TgZ(9,"td",12),i.TgZ(10,"span",17),i._uU(11),i.YNc(12,Yi,3,2,"tui-tooltip",18),i.ALo(13,"tuiShowContentTooltip"),i.qZA(),i.qZA(),i.YNc(14,ir,4,2,"td",19),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(3);i.ekj("t-deprecated",t.documentationPropertyDeprecated),i.xp6(3),i.hij(" ",i.lcZ(4,9,t.attrName)," "),i.xp6(2),i.Q6J("ngIf",i.lcZ(6,11,t.attrName)),i.xp6(2),i.Q6J("ngIf",t.documentationPropertyDeprecated),i.xp6(1),i.Q6J("ngTemplateOutlet",t.template),i.xp6(3),i.hij(" ",t.documentationPropertyType," "),i.xp6(1),i.Q6J("ngIf",i.lcZ(13,13,t.documentationPropertyType)),i.xp6(2),i.Q6J("ngIf",n.showValues)}}function or(t,e){if(1&t&&(i.TgZ(0,"table",4),i.TgZ(1,"tr",5),i.TgZ(2,"th",6),i._uU(3),i.qZA(),i.TgZ(4,"th",7),i._uU(5),i.qZA(),i.YNc(6,ji,2,1,"th",8),i.qZA(),i.YNc(7,rr,15,15,"tr",9),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.xp6(3),i.Oqu(e.texts[2]),i.xp6(2),i.Oqu(e.type),i.xp6(1),i.Q6J("ngIf",e.showValues&&!e.isAPI),i.xp6(1),i.Q6J("ngForOf",t)}}function sr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,or,8,4,"table",3),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t.length)}}function ar(t,e){if(1&t&&i._UZ(0,"span",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}function lr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).copyExampleLink()})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("title",i.lcZ(1,1,t.copy$))}}function cr(t,e){if(1&t&&(i.TgZ(0,"h3",5),i.YNc(1,ar,1,1,"span",6),i.ALo(2,"tuiDocExampleCapitalize"),i.YNc(3,lr,2,3,"button",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,2,t.heading)),i.xp6(2),i.Q6J("ngIf",t.id)}}function ur(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function hr(t,e){if(1&t&&(i.TgZ(0,"h4",10),i.YNc(1,ur,2,1,"ng-container",11),i.ALo(2,"tuiDocExampleCapitalize"),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,1,t.description))}}function dr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function pr(t,e){if(1&t&&(i.TgZ(0,"button",20),i.YNc(1,dr,2,1,"ng-container",11),i.qZA()),2&t){const t=i.oxw().$implicit,e=i.oxw(3);i.xp6(1),i.Q6J("polymorpheusOutlet",e.getTabTitle(t))}}function fr(t,e){1&t&&(i.ynx(0),i.YNc(1,pr,2,1,"button",19),i.BQk())}function gr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function mr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,gr,2,1,"ng-container",11),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("polymorpheusOutlet",t)}}function vr(t,e){if(1&t&&(i.TgZ(0,"button",24),i._uU(1),i.qZA()),2&t){const t=i.oxw(4);i.xp6(1),i.hij(" Edit on ",t.codeEditor.name," ")}}function _r(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-loader",21),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(2).ngIf;return i.oxw().edit(e)})),i.ALo(1,"async"),i.YNc(2,mr,2,1,"ng-container",22),i.YNc(3,vr,2,1,"ng-template",null,23,i.W1O),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(3);i.Q6J("overlay",!0)("showLoader",!!i.lcZ(1,4,e.loading$)),i.xp6(2),i.Q6J("ngIf",null==e.codeEditor?null:e.codeEditor.content)("ngIfElse",t)}}function yr(t,e){if(1&t&&i.GkF(0,28),2&t){i.oxw(4);const t=i.MAs(5);i.Q6J("ngTemplateOutlet",t)}}const br=function(t){return{$implicit:t}};function wr(t,e){if(1&t&&i.GkF(0,29),2&t){const t=i.oxw(2).ngIf,e=i.oxw().ngIf,n=i.oxw(),r=i.MAs(7);i.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",i.VKq(2,br,e[t[n.activeItemIndex]]||""))}}function Cr(t,e){if(1&t&&(i.TgZ(0,"div",25),i.YNc(1,yr,1,1,"ng-container",26),i.YNc(2,wr,1,4,"ng-template",null,27,i.W1O),i.qZA()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw(3);i.ekj("t-content_animated",!r.isCypress)("t-content_visible",r.activeItemIndex===t),i.xp6(1),i.Q6J("ngIf",t===r.defaultTabIndex)("ngIfElse",n)}}function xr(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"div",14),i.TgZ(2,"tui-tabs-with-more",15),i.NdJ("activeItemIndexChange",(function(e){return i.CHM(t),i.oxw(2).activeItemIndex=e})),i.YNc(3,fr,2,0,"ng-container",16),i.qZA(),i.YNc(4,_r,5,6,"tui-loader",17),i.ALo(5,"tuiMapper"),i.qZA(),i.YNc(6,Cr,4,6,"div",18),i.BQk()}if(2&t){const t=e.ngIf,n=i.oxw().ngIf,r=i.oxw();i.xp6(2),i.Q6J("activeItemIndex",r.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t),i.xp6(1),i.Q6J("ngIf",i.xi3(5,4,n,r.visible)),i.xp6(2),i.Q6J("ngForOf",t)}}function Or(t,e){if(1&t&&(i.TgZ(0,"div",12),i.YNc(1,xr,7,7,"ng-container",13),i.ALo(2,"tuiDocExampleGetTabs"),i.qZA()),2&t){const t=e.ngIf,n=i.oxw();i.xp6(1),i.Q6J("ngIf",i.xi3(2,1,t,n.defaultTab))}}function kr(t,e){1&t&&(i.TgZ(0,"div",30),i.Hsn(1),i.qZA())}function Mr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Pr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Mr,2,1,"ng-container",34),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit;i.xp6(1),i.Q6J("polymorpheusOutlet",t)("polymorpheusOutletContext",i.VKq(2,br,n))}}function Sr(t,e){if(1&t&&(i.TgZ(0,"section",31),i.YNc(1,Pr,2,4,"ng-container",16),i._UZ(2,"tui-doc-copy",32),i.qZA(),i._UZ(3,"tui-doc-code",33)),2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.Q6J("ngForOf",n.codeActions),i.xp6(1),i.Q6J("cdkCopyToClipboard",t),i.xp6(1),i.Q6J("code",t)}}function Er(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",14),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(4),n=i.MAs(1);return e.onClick(n)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.Q6J("routerLink",t.route)("fragment",t.fragment),i.xp6(1),i.hij(" ",t.title," ")}}function Tr(t,e){if(1&t&&(i.TgZ(0,"tui-opt-group",12),i.YNc(1,Er,2,3,"a",13),i.qZA()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(3);i.Q6J("label",r.labels[n]||""),i.xp6(1),i.Q6J("ngForOf",t)}}function Ar(t,e){if(1&t&&(i.TgZ(0,"tui-data-list"),i.YNc(1,Tr,2,2,"tui-opt-group",11),i.ALo(2,"async"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.filtered$))}}function Ir(t,e){1&t&&(i.ynx(0),i.YNc(1,Ar,3,3,"tui-data-list",10),i.BQk())}const Dr=function(t,e){return{item:t,index:e}};function Lr(t,e){if(1&t&&i.GkF(0,19),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2).index;i.oxw();const o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,Dr,t,100*r+n))}}function Nr(t,e){if(1&t&&(i.TgZ(0,"div",18),i.YNc(1,Lr,1,5,"ng-container",8),i.qZA()),2&t){const t=i.oxw().index,e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.items[t])}}function Fr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-accordion-item",15),i.NdJ("openChange",(function(e){const n=i.CHM(t).index;return!!(i.oxw().openPagesArr[n]=e)})),i.TgZ(1,"span",16),i.TgZ(2,"strong"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,Nr,2,1,"ng-template",17),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw();i.Q6J("borders",null)("open",!!r.openPagesArr[n]),i.xp6(3),i.Oqu(t)}}function zr(t,e){if(1&t&&i.GkF(0,19),2&t){const t=e.$implicit,n=e.index,r=i.oxw(),o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,Dr,t,r.items.length-1+n))}}function Rr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",22),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).closeMenu()})),i._uU(1),i.qZA()}if(2&t){const t=i.oxw().item,e=i.oxw();i.Q6J("routerLink",t.route)("tuiScrollIntoViewLink",e.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," ")}}function Br(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(2).index;return i.oxw().onGroupClick(e)})),i._UZ(1,"tui-svg",29),i._uU(2),i.qZA()}if(2&t){const t=i.oxw(2),e=t.index,n=t.item,r=i.oxw();i.xp6(1),i.ekj("t-chevron_active",!!r.openPagesGroupsArr[e]),i.xp6(1),i.hij(" ",n.title," ")}}function jr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",30),i.NdJ("click",(function(){return i.CHM(t),i.oxw(3).closeMenu()})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(3);i.Q6J("routerLink",t.route)("fragment",t.fragment)("tuiScrollIntoViewLink",n.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," ")}}const Ur=function(){return{exact:!1}};function $r(t,e){if(1&t&&(i.TgZ(0,"div",23),i.YNc(1,Br,3,3,"button",24),i.TgZ(2,"tui-expand",25),i.TgZ(3,"div",26),i.YNc(4,jr,2,4,"a",27),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(),e=t.item,n=t.index,r=i.oxw();i.Q6J("routerLinkActiveOptions",i.DdM(4,Ur)),i.xp6(1),i.Q6J("ngIf",e.subPages),i.xp6(1),i.Q6J("expanded",!!r.openPagesGroupsArr[n]),i.xp6(2),i.Q6J("ngForOf",r.$pages(e.subPages))}}function Vr(t,e){if(1&t&&(i.YNc(0,Rr,2,3,"a",20),i.YNc(1,$r,5,5,"ng-template",null,21,i.W1O)),2&t){const t=e.item,n=i.MAs(2);i.Q6J("ngIf",!t.subPages)("ngIfElse",n)}}const Yr=["tuiDocHeader",""];function qr(t,e){1&t&&i._UZ(0,"tui-doc-navigation",4)}function Hr(t,e){if(1&t&&i._UZ(0,"img",5),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t,i.LSH)}}function Zr(t,e){1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t&&(i.xp6(1),i.Oqu(", "))}function Gr(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"a",2),i.YNc(2,Zr,2,1,"ng-container",3),i.BQk()),2&t){const t=e.$implicit,n=e.last,r=i.oxw();i.xp6(1),i.Q6J("routerLink",r.getRouterLink(t))("innerText",t),i.xp6(1),i.Q6J("ngIf",!n)}}function Xr(t,e){if(1&t&&i._UZ(0,"a",1),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.Q6J("title",n.text)("href",t,i.LSH)}}function Jr(t,e){1&t&&i._UZ(0,"tui-theme-night")}const Qr=[[["tuiDocNavigation"]],[["tuiDocHeader"]],[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],Wr=["tuiDocNavigation","tuiDocHeader","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];function Kr(t,e){1&t&&i._UZ(0,"tui-tag",9)}function to(t,e){if(1&t&&i._UZ(0,"tui-tag",10),2&t){const t=i.oxw();i.Q6J("value",t.package)("autoColor",!0)}}const eo=function(t){return{exact:t}};function no(t,e){if(1&t&&(i.TgZ(0,"a",14),i.ALo(1,"tuiReplace"),i._uU(2),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw().first,n=i.oxw(2);i.Q6J("routerLinkActiveOptions",i.VKq(7,eo,e))("routerLink",e?"./":i.Dn7(1,3,t,n.from,n.to)),i.xp6(2),i.hij(" ",t," ")}}function io(t,e){1&t&&(i.ynx(0),i.YNc(1,no,3,9,"a",13),i.BQk())}function ro(t,e){if(1&t&&(i.ynx(0),i.YNc(1,io,2,0,"ng-container",12),i.BQk()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.pageTab||r.defaultTabs[n])}}function oo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-tabs-with-more",11),i.NdJ("activeItemIndexChange",(function(e){return i.CHM(t),i.oxw().activeItemIndex=e})),i.YNc(1,ro,2,1,"ng-container",8),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeItemIndex",t.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t.tabConnectors)}}function so(t,e){if(1&t&&i._UZ(0,"tui-doc-see-also",15),2&t){const t=i.oxw();i.Q6J("seeAlso",t.seeAlso)}}function ao(t,e){if(1&t&&i.GkF(0,17),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t.template)}}function lo(t,e){if(1&t&&(i.ynx(0),i.YNc(1,ao,1,1,"ng-container",16),i.BQk()),2&t){const t=e.index,n=i.oxw();i.xp6(1),i.Q6J("ngIf",t===n.activeItemIndex)}}let co=(()=>{class t{constructor(t){this.markdownCodeProcessor=t,this.rawLoader$$=new s.X(""),this.filename="",this.processor$=this.rawLoader$$.pipe((0,u.w)(o.JQ),(0,h.U)((t=>this.markdownCodeProcessor(t))))}set code(t){this.rawLoader$$.next(t)}get hasFilename(){return!!this.filename}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.Es))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-code"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_has-filename",e.hasFilename)},inputs:{filename:"filename",code:"code"},decls:3,vars:4,consts:[["class","t-header",4,"ngIf"],["class","t-code",4,"ngFor","ngForOf"],[1,"t-header"],[1,"t-code"],[3,"lineNumbers","highlight"]],template:function(t,e){1&t&&(i.YNc(0,xi,2,1,"p",0),i.YNc(1,Oi,2,2,"pre",1),i.ALo(2,"async")),2&t&&(i.Q6J("ngIf",e.filename),i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,e.processor$)))},directives:[y.O5,y.sg,q],pipes:[y.Ov],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}.t-code[_ngcontent-%COMP%]{margin:0}.t-code[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{margin-top:1rem}.hljs[_ngcontent-%COMP%]:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar, .hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}._has-filename[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){border-radius:.75rem}tui-root._mobile[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty), tui-root._mobile [_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){padding:1rem}"],changeDetection:0}),t})(),uo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,H]]}),t})(),ho=(()=>{class t{constructor(t){this.texts$=t,this.copy$=new a.xQ}get copied$(){return this.copy$.pipe((0,u.w)((()=>(0,l.H)(1500).pipe((0,h.U)(it.Iy),(0,d.O)(!0)))))}onClick(){this.copy$.next()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ae.UV))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-copy"]],features:[i._Bn([rt.a3])],ngContentSelectors:Mi,decls:2,vars:3,consts:[["tuiButton","","type","button","appearance","","size","s","class","t-copy",3,"title","click",4,"ngIf"],["tuiButton","","type","button","appearance","","size","s",1,"t-copy",3,"title","click"],[1,"t-content"],[1,"t-initial"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,ki,6,7,"button",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[y.O5,Rn.v0],pipes:[y.Ov],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle}.t-copy[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:100%;color:var(--tui-text-01);background:var(--tui-base-01);overflow:hidden}.t-copy[_ngcontent-%COMP%]:hover{background:var(--tui-base-02)}.t-initial[_ngcontent-%COMP%]{white-space:nowrap}.t-initial[_ngcontent-%COMP%]:empty:before{content:attr(data-text)}.t-content[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;flex-direction:column;transform:translateY(1rem);text-align:center;line-height:2rem}.t-content_moved[_ngcontent-%COMP%]{transform:translateY(-1rem)}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"copied$",null),t})(),po=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Rn.fN]]}),t})(),fo=(()=>{class t{constructor(t,e,n,i,r,s){var l,c;this.isMobile=t,this.el=e,this.locationRef=n,this.urlSerializer=i,this.texts=r,this.urlStateHandler=s,this.control=null,this.sticky=!0,this.template=null,this.updateOnVariants=["change","blur","submit"],this.updateOn=this.params.updateOn||this.updateOnVariants[0],this.opaque=(0,o.cd)(null===(l=this.params.sandboxOpaque)||void 0===l||l),this.expanded=(0,o.cd)(null!==(c=this.params.sandboxExpanded)&&void 0!==c&&c),this.mode=this.params.tuiMode||null,this.sandboxWidth=(0,st.oY)(this.params.sandboxWidth),this.change$=new a.xQ,this.items=["onLight","onDark"]}onResize(){this.updateWidth(),this.onMouseUp()}onMouseUp(){this.updateUrl({sandboxWidth:this.sandboxWidth})}ngOnInit(){this.createForm(),this.updateWidth(this.sandboxWidth+this.delta)}onModeChange(t){this.mode=t,this.updateUrl({sandboxWidth:this.sandboxWidth}),this.change$.next()}toggleDetails(){this.expanded=!this.expanded,this.updateUrl({sandboxExpanded:this.expanded})}changeOpaque(t){this.opaque=t,this.updateUrl({sandboxOpaque:this.opaque})}updateOnChange(t){this.updateOn=t,this.updateUrl({updateOn:t}),this.createForm()}updateWidth(t=NaN){if(!this.resizer||!this.resizeable||!this.content)return;const e=t||this.resizeable.nativeElement.clientWidth,n=this.el.nativeElement.clientWidth,i=Math.round((0,st.Ki)(e,160,n))-this.delta,r=et))}])],ngContentSelectors:Mi,decls:16,vars:14,consts:[[1,"t-bg-toggle",3,"tuiMode"],["tooltip",""],[4,"ngIf","ngIfElse"],["desktop",""],["size","m",1,"t-checkbox",3,"ngModel","ngModelChange"],["tuiResizeable","",1,"t-wrapper"],["id","demo-content",1,"t-content"],["content",""],["class","t-form",3,"formGroup",4,"ngIf"],[1,"t-resizer",3,"tuiResizer","tuiSizeChange"],["resizer",""],["tuiLink","","tuiMode","onDark","routerLink","/directives/mode"],["tuiTextfieldSize","s",1,"t-mode",3,"tuiTextfieldCleaner","tuiHintContent","ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],[3,"items"],["describeId","form",3,"content"],["tuiGroup","",1,"t-group",3,"collapsed"],["size","s","nativeId","form",1,"tui-group__auto-width-item",3,"item","hideRadio","ngModel","ngModelChange"],["item","onDark","size","s","nativeId","form",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],["item","onLight","size","s","nativeId","form",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],[1,"t-form",3,"formGroup"],[1,"t-input-wrapper"],[3,"ngTemplateOutlet"],["tuiButton","","type","button","size","s","automation-id","tui-demo-button__toggle-details",1,"t-button",3,"iconRight","click"],["icon",""],[1,"t-expand",3,"expanded"],["tuiExpandContent",""],["src","tuiIconChevronDown",1,"t-icon"],[1,"t-value"],["tuiGroup","",1,"t-form-controls"],["tuiTextfieldSize","s","automation-id","tui-demo-select__expand-update-on",1,"t-select",3,"ngModel","ngModelOptions","ngModelChange"],["tuiButton","","type","reset","size","s","automation-id","tui-demo-button__reset-state",1,"tui-group__auto-width-item"],["tuiButton","","type","submit","size","s","automation-id","tui-demo-button__submit-state",1,"tui-group__auto-width-item"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,Ei,4,1,"ng-template",null,1,i.W1O),i.YNc(3,Ai,4,3,"ng-container",2),i.YNc(4,Ii,9,9,"ng-template",null,3,i.W1O),i.TgZ(6,"tui-checkbox-labeled",4),i.NdJ("ngModelChange",(function(t){return e.changeOpaque(t)})),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",5),i.TgZ(9,"div",6),i.TgZ(10,"div",null,7),i.YNc(12,zi,9,5,"form",8),i.Hsn(13),i.qZA(),i.qZA(),i.TgZ(14,"div",9,10),i.NdJ("tuiSizeChange",(function(t){return e.updateWidth(t[0])})),i.qZA(),i.qZA()),2&t){const t=i.MAs(5);i.Q6J("tuiMode",null),i.xp6(3),i.Q6J("ngIf",e.isMobile)("ngIfElse",t),i.xp6(3),i.Q6J("ngModel",e.opaque),i.xp6(1),i.hij(" ",e.texts[1]," "),i.xp6(1),i.ekj("t-wrapper_dark","onDark"===e.mode)("t-wrapper_gray","onLight"===e.mode)("t-wrapper_transparent",!e.opaque),i.xp6(4),i.Q6J("ngIf",e.testForm),i.xp6(2),i.Q6J("tuiResizer",i.DdM(13,Ri))}},directives:[Bt.w,y.O5,zt,pt.JJ,pt.On,W.U_,W.L$,Bn.V,ne.yS,An.uJ,An.OI,gn.sz,gn.be,jn.bZ,Un.gX,In.eC,$n.w,Qe.gZ,Qt,pt._Y,pt.JL,pt.sg,y.tP,Rn.v0,Xe,Ge,_t.PN],pipes:[y.Ts],styles:['[_nghost-%COMP%]{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle[_ngcontent-%COMP%]{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:auto}.t-wrapper[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;min-width:10rem;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark[_ngcontent-%COMP%]{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray[_ngcontent-%COMP%]{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}tui-root._mobile[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:auto}.t-content[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1rem}.t-form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}.t-expand[_ngcontent-%COMP%]{width:100%}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-icon_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-value[_ngcontent-%COMP%]{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode[_ngcontent-%COMP%]{width:12.5rem}.t-select[_ngcontent-%COMP%]{max-width:15rem}.t-resizer[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;position:relative;width:3.5rem;min-height:inherit;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-left:1px solid var(--tui-base-03);outline:none;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer[_ngcontent-%COMP%]:before, .t-resizer[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.75rem;left:50%;bottom:calc(50% + 1rem);width:1px;background:var(--tui-base-04);box-shadow:-.25rem 0 var(--tui-base-04);transform:translate(0)}.t-resizer[_ngcontent-%COMP%]:after{bottom:.75rem;top:calc(50% + 1rem)}tui-root._mobile[_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%]{display:none}.t-resizer-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light[_ngcontent-%COMP%] .t-resizer-text[_ngcontent-%COMP%]{background:#3e464e}.t-group[_ngcontent-%COMP%], .t-checkbox[_ngcontent-%COMP%]{margin-left:.75rem}.t-button[_ngcontent-%COMP%], .t-form-controls[_ngcontent-%COMP%]{margin-top:.75rem}@supports ((position: -webkit-sticky) or (position: sticky)){@media screen and (min-height: 37.5rem){._sticky[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}'],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"updateUrl",null),t})(),go=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.UX,pt.u5,ne.Bz,Bn.j,Rn.fN,An.Jy,Je,Qe.n6,$n.Q,Bt.z,Wt,Rt,_t.EI,In.zX,Un.pc,gn.cn,jn.go,W.gj]]}),t})(),mo=(()=>{class t{constructor(t,e,n,r,o){this.template=t,this.locationRef=e,this.activatedRoute=n,this.urlSerializer=r,this.urlStateHandler=o,this.documentationPropertyName="",this.documentationPropertyMode=null,this.documentationPropertyType="",this.documentationPropertyDeprecated=!1,this.documentationPropertyValues=null,this.documentationPropertyValueChange=new i.vpe,this.changed$=new a.xQ,this.emits$=new s.X(1)}ngOnInit(){this.parseParams(this.activatedRoute.snapshot.queryParams)}get attrName(){switch(this.documentationPropertyMode){case"input":return`[${this.documentationPropertyName}]`;case"output":return`(${this.documentationPropertyName})`;case"input-output":return`[(${this.documentationPropertyName})]`;default:return this.documentationPropertyName}}get hasItems(){return!!this.documentationPropertyValues}get shouldShowValues(){return"output"!==this.documentationPropertyMode}ngOnChanges(){this.changed$.next()}onValueChange(t){this.documentationPropertyValue=t,this.documentationPropertyValueChange.emit(t),this.setQueryParam(t)}emitEvent(t){console.info(this.attrName,t),this.emits$.next(this.emits$.value+1)}parseParams(t){const e=t[this.documentationPropertyName],n=t[`${this.documentationPropertyName}$`];if(!e&&!n)return;let i=n&&this.documentationPropertyValues?this.documentationPropertyValues[n]:(0,o.p8)(e);"string"===this.documentationPropertyType&&(0,lt.dt)(i)&&(i=i.toString()),this.onValueChange(i)}setQueryParam(t){const e=this.urlSerializer.parse(this.locationRef.path()),n=t instanceof Object,i=n&&this.documentationPropertyValues?this.documentationPropertyValues.indexOf(t):t,r=n?"$":"",o=this.documentationPropertyName+r;e.queryParams=Object.assign(Object.assign({},e.queryParams),{[o]:i}),this.locationRef.go(this.urlStateHandler(e))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(y.Ye),i.Y36(ne.gz),i.Y36(ne.Hx),i.Y36(r.Ii))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","documentationPropertyName",""]],inputs:{documentationPropertyName:"documentationPropertyName",documentationPropertyMode:"documentationPropertyMode",documentationPropertyType:"documentationPropertyType",documentationPropertyValue:"documentationPropertyValue",documentationPropertyDeprecated:"documentationPropertyDeprecated",documentationPropertyValues:"documentationPropertyValues"},outputs:{documentationPropertyValueChange:"documentationPropertyValueChange"},exportAs:["documentationProperty"],features:[i.TTD]}),t})(),vo=(()=>{class t{transform(t){if(4===t.length)return t.split("").reduce(((t,e)=>[...t,e,e]),[]).join("").replace("#","");if(t.startsWith("#"))return t;if("transparent"===t)return"#000000";const e=t.replace("rgb(","").replace("rgba(","").replace(")","").replace(" ","").split(",").map((t=>Number.parseInt(t,10)));return(0,ut.WS)(...e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiGetColorPipe",type:t,pure:!0}),t})(),_o=(()=>{class t{transform(t){if(t.startsWith("#")||t.startsWith("rgb("))return 100;if("transparent"===t)return 0;const e=t.lastIndexOf(","),n=t.slice(e).replace(")","").replace(" ","").replace(",","");return Math.round(100*Number.parseFloat(n))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiGetOpacity",type:t,pure:!0}),t})(),yo=(()=>{class t{constructor(t,e){this.renderer=t,this.focusable=e}set tuiInputOpacity(t){const{nativeFocusableElement:e}=this.focusable;e&&this.renderer.setStyle(e,"opacity",t/100)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(ct.KZ))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiInputOpacity",""]],inputs:{tuiInputOpacity:"tuiInputOpacity"}}),t})(),bo=(()=>{class t{transform(t){return t.replace("?","")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiStripOptionalPipe",type:t,pure:!0}),t})(),wo=(()=>{class t{transform(t){return t.includes("?")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiIsOptionalPipe",type:t,pure:!0}),t})(),Co=(()=>{class t{transform(t){return t.includes("PolymorpheusContent")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiShowContentTooltip",type:t,pure:!0}),t})(),xo=(()=>{class t{transform(t){return t.includes("null")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiShowCleanerPipe",type:t,pure:!0}),t})(),Oo=(()=>{class t{constructor(t){this.isCypress=t}transform(t,e=2){return this.isCypress&&"function"==typeof t?"λ(x) => y":(0,o.sj)(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ct.B4,16))},t.ɵpipe=i.Yjl({name:"tuiInspectAny",type:t,pure:!0}),t})(),ko=(()=>{class t{transform(t){return(0,lt.Aj)(t)||(0,lt.dt)(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiIsPrimitivePolymorpheusContentPipe",type:t,pure:!0}),t})(),Mo=(()=>{class t{constructor(t,e,n,i,r,o){this.cdr=t,this.texts=e,this.excludedProperties=n,this.destroy$=i,this.getColor=r,this.getOpacity=o,this.heading="",this.showValues=!0,this.isAPI=!1,this.propertiesConnectors=it.Mm,this.activeItemIndex=0,this.matcher=(t,e)=>!e.has(t.documentationPropertyName)}ngAfterContentInit(){(0,ht.ll)(this.propertiesConnectors).pipe((0,u.w)((t=>(0,c.T)(...t.map((({changed$:t})=>t))))),(0,ht.NA)(this.cdr),(0,p.R)(this.destroy$)).subscribe()}get type(){return this.isAPI?this.texts[0]:this.texts[1]}onColorChange(t,e){const n=this.getOpacity.transform(t.documentationPropertyValue||"");if(100===n)return void t.onValueChange(e);const i=`rgba(${(0,ut.RO)(e).join(", ")}, ${n/100})`;t.onValueChange(i)}onOpacityChange(t,e){const n=this.getColor.transform(t.documentationPropertyValue||""),i=`rgba(${(0,ut.RO)(n)}, ${(e||0)/100})`;t.onValueChange(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(r.IK),i.Y36(r.et),i.Y36(rt.a3,2),i.Y36(vo),i.Y36(_o))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-documentation"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,mo,4),2&t){let t;i.iGM(t=i.CRH())&&(e.propertiesConnectors=t)}},inputs:{heading:"heading",showValues:"showValues",isAPI:"isAPI"},features:[i._Bn([vo,_o,rt.a3])],ngContentSelectors:Mi,decls:4,vars:6,consts:[["class","t-heading",4,"ngIf"],[4,"ngIf"],[1,"t-heading"],["class","t-table",4,"ngIf"],[1,"t-table"],[1,"t-row","t-row_header"],[1,"t-th","t-cell","t-cell_prop"],[1,"t-th"],["class","t-th t-cell t-th_value",4,"ngIf"],["class","t-row",3,"t-deprecated",4,"ngFor","ngForOf"],[1,"t-th","t-cell","t-th_value"],[1,"t-row"],[1,"t-cell"],["automation-id","tui-documentation__property-name",1,"t-property"],["size","s","value","Optional",4,"ngIf"],["class","t-deprecated-label",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"type"],[3,"describeId","content",4,"ngIf"],["class","t-cell t-cell_value",4,"ngIf"],["size","s","value","Optional"],[1,"t-deprecated-label"],[3,"describeId","content"],["content",""],["tuiLink","","tuiMode","onDark","target","_blank","rel","noreferrer","href","https://github.com/tinkoff/ng-polymorpheus"],[1,"t-cell","t-cell_value"],[4,"ngIf","ngIfElse"],["elseEmitter",""],["tuiTextfieldSize","m","tuiDropdownLimitWidth","min",3,"tuiTextfieldCleaner","tuiTextfieldLabelOutside","nativeId","valueContent","ngModel","ngModelChange",4,"ngIf","ngIfElse"],["selectContent",""],["noItems",""],["tuiTextfieldSize","m","tuiDropdownLimitWidth","min",3,"tuiTextfieldCleaner","tuiTextfieldLabelOutside","nativeId","valueContent","ngModel","ngModelChange"],[1,"t-exception"],[3,"items","itemContent",4,"tuiDataList"],[3,"items","itemContent"],[3,"ngSwitch"],["size","l",3,"nativeId","showIcons","ngModel","ngModelChange",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldLabelOutside","tuiTextfieldCleaner","value","valueChange",4,"ngSwitchCase"],["tuiGroup","",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldLabelOutside","step","ngModel","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],["size","l",3,"nativeId","showIcons","ngModel","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldLabelOutside","tuiTextfieldCleaner","value","valueChange"],["tuiGroup",""],["tuiTextfieldSize","m",3,"tuiTextfieldLabelOutside","tuiInputOpacity","value","valueChange"],["tuiTextfield","","type","text"],["tuiTextfieldSize","m",3,"step","min","max","ngModel","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldLabelOutside","step","ngModel","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldLabelOutside","tuiTextfieldCleaner","value","valueChange",4,"ngIf"],[1,"t-output"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Bi,2,1,"h1",0),i.Hsn(1),i.YNc(2,sr,2,1,"ng-container",1),i.ALo(3,"tuiFilter")),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(2),i.Q6J("ngIf",i.Dn7(3,2,e.propertiesConnectors,e.matcher,e.excludedProperties)))},directives:[y.O5,y.sg,y.tP,te,$n.w,Bn.V,Bt.w,An.uJ,An.OI,gn.sz,se.Ek,gn.be,gn.xT,pt.JJ,pt.On,Un.gX,In.eC,y.RF,y.n9,Dn.ph,Vn.yc,Vn.B1,Qe.gZ,yo,Vn.MB,Ln.qS,Ln.g5,Yn.Ls],pipes:[G,bo,wo,Co,xo,Oo,_o,vo,ko,y.Ov],styles:["[_nghost-%COMP%]{display:block;min-width:100%}.t-table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.t-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--tui-base-03)}tui-root._mobile[_nghost-%COMP%] .t-row[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}tui-root._mobile[_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%]{display:none}.t-cell[_ngcontent-%COMP%]{padding:1rem 1rem .875rem}.t-cell[_ngcontent-%COMP%]:first-child{padding-left:0}.t-cell[_ngcontent-%COMP%]:last-child{padding-right:0}.t-cell_prop[_ngcontent-%COMP%]{width:40%}.t-cell_value[_ngcontent-%COMP%]{text-align:right}tui-root._mobile[_nghost-%COMP%] .t-cell[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-cell[_ngcontent-%COMP%]{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th[_ngcontent-%COMP%]{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-th_value[_ngcontent-%COMP%]{max-width:20rem;text-align:right}tui-root._mobile[_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%]{width:9.375rem}.t-property[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}tui-root._mobile[_nghost-%COMP%] .t-property[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-property[_ngcontent-%COMP%]{padding:.5rem 0}.t-type[_ngcontent-%COMP%]{font-family:monospace}.t-deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label[_ngcontent-%COMP%]{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:max-content}.t-output[_ngcontent-%COMP%]{text-align:left;opacity:0}.t-heading[_ngcontent-%COMP%]{font:var(--tui-font-heading-4)}"],data:{animation:[(0,ni.X$)("emitEvent",[(0,ni.eR)(":increment",[(0,ni.oB)({opacity:1}),(0,ni.jt)("500ms ease-in")])])]},changeDetection:0}),t})(),Po=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),So=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,ne.Bz,ee,An.Jy,Dn.YM,$n.Q,Bn.j,Ln._H,Bt.z,Qe.n6,Po,Vn.KW,gn.cn,se.dp,Un.pc,In.zX,Yn.Hi,X]]}),t})();const Eo={codeEditorVisibilityHandler:t=>Boolean(t[li.N.TS]&&t[li.N.HTML]),tabTitles:new Map},To=new i.OlP("[TUI_DOC_EXAMPLE_OPTIONS]",{factory:()=>Eo});let Ao=(()=>{class t{transform(t){return(0,lt.Aj)(t)?(0,ti.ag)(t):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiDocExampleCapitalize",type:t,pure:!0}),t})(),Io=(()=>{class t{transform(t,e){return[e,...Object.keys(t)]}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiDocExampleGetTabs",type:t,pure:!0}),t})(),Do=(()=>{class t{constructor(t,e,n,i,r,l,c,d,p,f,g,m,v){this.clipboard=t,this.alerts=e,this.location=n,this.copyTexts$=i,this.texts=r,this.codeEditor=l,this.processContent=c,this.isCypress=d,this.codeActions=p,this.router=f,this.route=g,this.ngLocation=m,this.options=v,this.rawLoader$$=new s.X({}),this.id=null,this.componentName=this.location.pathname.slice(1),this.defaultTabIndex=0,this.defaultTab=this.texts[this.defaultTabIndex],this.activeItemIndex=this.defaultTabIndex,this.copy$=this.copyTexts$.pipe((0,h.U)((([t])=>t))),this.processor$=this.rawLoader$$.pipe((0,u.w)(o.vP),(0,h.U)((t=>this.processContent(t)))),this.loading$=new a.xQ,this.visible=t=>Boolean(this.codeEditor&&this.options.codeEditorVisibilityHandler(t))}set content(t){this.rawLoader$$.next(t)}getTabTitle(t){return this.options.tabTitles.get(t)||t}copyExampleLink(){const t=this.location.href.indexOf("#"),e=`${t>-1?this.location.href.slice(0,Math.max(0,t)):this.location.href}#${this.id}`;this.setFragmentWithoutRedirect(this.id),this.clipboard.copy(e),this.alerts.open(this.texts[1],{label:this.texts[2],status:vt.tK.Success}).subscribe()}edit(t){var e;this.loading$.next(!0),null===(e=this.codeEditor)||void 0===e||e.edit(this.componentName,this.id||"",t).then((()=>this.loading$.next(!1))).catch((()=>this.loading$.next(!1)))}setFragmentWithoutRedirect(t){const e=this.router.createUrlTree([],{relativeTo:this.route,fragment:t||""}).toString();this.ngLocation.go(e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ri),i.Y36(Wn),i.Y36(pe.Ct),i.Y36(ae.UV),i.Y36(r.mv),i.Y36(r.lW,8),i.Y36(r.$_),i.Y36(ct.B4),i.Y36(r.mT),i.Y36(ne.F0),i.Y36(ne.gz),i.Y36(y.Ye),i.Y36(To))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-example"]],inputs:{id:"id",heading:"heading",description:"description",content:"content",componentName:"componentName"},ngContentSelectors:Mi,decls:8,vars:5,consts:[["class","t-title",4,"ngIf"],["class","t-description",4,"ngIf"],["class","t-example",4,"ngIf"],["preview",""],["codeSection",""],[1,"t-title"],[3,"textContent",4,"polymorpheusOutlet"],["tuiIconButton","","type","button","size","xs","icon","tuiIconLink","appearance","icon","class","t-link-icon",3,"title","click",4,"ngIf"],[3,"textContent"],["tuiIconButton","","type","button","size","xs","icon","tuiIconLink","appearance","icon",1,"t-link-icon",3,"title","click"],[1,"t-description"],[4,"polymorpheusOutlet"],[1,"t-example"],[4,"ngIf"],[1,"t-tabs-wrapper"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngFor","ngForOf"],["size","xs",3,"overlay","showLoader","click",4,"ngIf"],["class","t-content",3,"t-content_animated","t-content_visible",4,"ngFor","ngForOf"],["tuiTab","",4,"tuiItem"],["tuiTab",""],["size","xs",3,"overlay","showLoader","click"],[4,"ngIf","ngIfElse"],["defaultEditContent",""],["tuiButton","","appearance","flat","size","s","type","button"],[1,"t-content"],[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],["anotherTab",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["automation-id","tui-doc-example",1,"t-demo"],[1,"t-code-actions"],[3,"cdkCopyToClipboard"],[3,"code"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,cr,4,4,"h3",0),i.YNc(1,hr,3,3,"h4",1),i.YNc(2,Or,3,4,"div",2),i.ALo(3,"async"),i.YNc(4,kr,2,0,"ng-template",null,3,i.W1O),i.YNc(6,Sr,4,3,"ng-template",null,4,i.W1O)),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(1),i.Q6J("ngIf",e.description),i.xp6(1),i.Q6J("ngIf",i.lcZ(3,3,e.processor$)))},directives:[y.O5,bt.Li,Rn.v0,je,y.sg,K.w,Ie,Ve.kM,y.tP,ho,si,co],pipes:[y.Ov,Ao,Io,tt.c],styles:["[_nghost-%COMP%]{position:relative;display:block;padding-top:3.5rem;clear:right}[_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%], tui-root._mobile [_nghost-%COMP%]{padding-top:2rem}.t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-5);margin:0 0 .5rem}tui-root._mobile[_nghost-%COMP%] .t-title[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-6)}.t-description[_ngcontent-%COMP%]{font:var(--tui-font-text-m);font-weight:normal;margin:0}.t-example[_ngcontent-%COMP%]{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem #0000001a}tui-root._mobile[_nghost-%COMP%] .t-example[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-example[_ngcontent-%COMP%]{margin-top:.75rem}.t-tabs-wrapper[_ngcontent-%COMP%]{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}tui-root._mobile[_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%]{padding:0 1rem}.t-tabs[_ngcontent-%COMP%]{flex-grow:1}.t-demo[_ngcontent-%COMP%]{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar, .t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}tui-root._mobile[_nghost-%COMP%] .t-demo[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-demo[_ngcontent-%COMP%]{padding:1rem}.t-code-actions[_ngcontent-%COMP%]{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:.5rem}.t-link-icon[_ngcontent-%COMP%]{margin-left:.3rem;vertical-align:baseline}.t-content[_ngcontent-%COMP%]{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated[_ngcontent-%COMP%]{transition:opacity .3s ease-in-out}.t-content_visible[_ngcontent-%COMP%]{height:auto;visibility:visible;opacity:1}"],changeDetection:0}),t})(),Lo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ai,Ue,Rn.fN,po,uo,bt.wq,tt.I,Ve.dS]]}),t})();const No=new i.OlP("[NAVIGATION_TITLE]"),Fo=new i.OlP("[NAVIGATION_LABELS]"),zo=new i.OlP("[NAVIGATION_ITEMS]"),Ro=[rt.a3,{provide:No,deps:[ne.F0,ne.gz,r.Yx,rt.a3],useFactory:(t,e,n,i)=>t.events.pipe((0,f.h)((t=>t instanceof ne.m2)),(0,h.U)((()=>e.firstChild)),(0,f.h)(lt.Pc),(0,g.zg)((({data:t})=>t)),(0,h.U)((({title:t})=>`${n}${t}`)),(0,p.R)(i))},{provide:Fo,deps:[r.V5],useFactory:Bo},{provide:zo,deps:[r.V5],useFactory:t=>[...Bo(t).map((e=>t.filter((({section:t})=>t===e)))),t.filter((t=>!t.section))]}];function Bo(t){return t.map((({section:t})=>t)).filter(lt.Pc).filter(((t,e,n)=>n.indexOf(t)===e))}let jo=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,p,g,m){this.doc=i,this.mode=r,this.sidebar=o,this.labels=s,this.items=a,this.searchText=l,this.router=c,this.activatedRoute=u,this.destroy$=p,this.readyToScroll$=g,this.scrollBehavior=m,this.menuOpen=!1,this.openPagesArr=[],this.openPagesGroupsArr=[],this.active="",this.search=new pt.NI(""),this.filtered$=(0,ht.EK)(this.search).pipe((0,f.h)((t=>t.length>2)),(0,h.U)((t=>this.filterItems(this.flattenSubPages(this.items),t)))),this.mode$=this.mode.change$.pipe((0,d.O)(null),(0,h.U)((()=>this.mode.mode||"onLight"))),n.subscribe((n=>{t.markForCheck(),e.setTitle(n),this.openActivePageGroup(),this.handleAnchorLink(this.activatedRoute.snapshot.fragment||"")}))}get canOpen(){var t,e;return(null!==(e=null===(t=this.search.value)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>2}get itemsWithoutSections(){return this.items[this.items.length-1]}$pages(t){return t}isActive(t){return t===this.active}onGroupClick(t){this.openPagesGroupsArr[t]=!this.openPagesGroupsArr[t]}closeMenu(){this.menuOpen=!1}onClick(t){t.open=!1,this.menuOpen=!1,this.search.setValue(""),this.openActivePageGroup()}filterItems(t,e){return t.map((t=>(0,lt.pf)(t.filter((({title:t,keywords:n=""})=>(t=t.toLowerCase(),e=e.toLowerCase(),n=n.toLowerCase(),t.includes(e)||n.includes(e)||t.includes((0,o.OO)(e))||n.includes((0,o.OO)(e))||e.replace(/-/gi,"").includes(t)))),"title")))}flattenSubPages(t){return t.reduce(((t,e)=>[...t,e.reduce(((t,e)=>"subPages"in e?[...t,...e.subPages]:[...t,e]),[])]),[])}isActiveRoute(t){return this.router.isActive(t,{paths:"subset",queryParams:"subset",fragment:"ignored",matrixParams:"ignored"})}handleAnchorLink(t){this.readyToScroll$.pipe((0,f.h)(Boolean),(0,m.q)(1),(0,p.R)(this.destroy$)).subscribe((()=>this.navigateToAnchorLink(t)))}openActivePageGroup(){this.items.forEach(((t,e)=>{t.forEach(((t,n)=>{"route"in t&&this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.active=t.route),"subPages"in t&&t.subPages.forEach((t=>{this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.openPagesGroupsArr[100*e+n]=!0,this.active=t.route)}))}))}))}navigateToAnchorLink(t){const e=t?this.doc.querySelectorAll(`#${t}`):[],n=e.length&&e[e.length-1];n&&(n.classList.add("tui-doc-animated-example"),n.scrollIntoView({block:"start",inline:"nearest",behavior:this.scrollBehavior}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(j.Dx),i.Y36(No),i.Y36(y.K0),i.Y36(Bt.w),i.Y36(di,8),i.Y36(Fo),i.Y36(zo),i.Y36(r.EI),i.Y36(ne.F0),i.Y36(ne.gz),i.Y36(rt.a3,2),i.Y36(r.V1),i.Y36(r.n1))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-navigation"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_open",e.menuOpen)},features:[i._Bn(Ro)],ngContentSelectors:Mi,decls:14,vars:13,consts:[["tuiTextfieldSize","m","tuiTextfieldIconLeft","tuiIconSearch",1,"t-input",3,"formControl","tuiAutoFocus","tuiTextfieldCleaner","tuiTextfieldLabelOutside"],["input",""],[4,"ngIf"],[1,"t-navigation"],[1,"t-scrollbar",3,"tuiMode"],[3,"closeOthers","rounded"],["size","s",3,"borders","open","openChange",4,"ngFor","ngForOf"],[1,"t-items-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["pages",""],[4,"tuiDataList"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["tuiOption","",3,"routerLink","fragment","click",4,"ngFor","ngForOf"],["tuiOption","",3,"routerLink","fragment","click"],["size","s",3,"borders","open","openChange"],[1,"t-label"],["tuiAccordionItemContent",""],[1,"t-section"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["tuiLink","","routerLinkActive","t-sublink_active","class","t-sublink",3,"routerLink","tuiScrollIntoViewLink","click",4,"ngIf","ngIfElse"],["subPagesTemplate",""],["tuiLink","","routerLinkActive","t-sublink_active",1,"t-sublink",3,"routerLink","tuiScrollIntoViewLink","click"],["routerLinkActive","",1,"t-subsection",3,"routerLinkActiveOptions"],["tuiLink","","type","button","class","t-sublink t-sublink_subsection",3,"click",4,"ngIf"],[1,"t-expand",3,"expanded"],[1,"t-section","t-section_bordered"],["tuiLink","","routerLinkActive","t-sublink_active","class","t-sublink t-sublink_small",3,"routerLink","fragment","tuiScrollIntoViewLink","click",4,"ngFor","ngForOf"],["tuiLink","","type","button",1,"t-sublink","t-sublink_subsection",3,"click"],["src","tuiIconChevronRight",1,"t-chevron"],["tuiLink","","routerLinkActive","t-sublink_active",1,"t-sublink","t-sublink_small",3,"routerLink","fragment","tuiScrollIntoViewLink","click"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"tui-input",0,1),i._uU(2),i.YNc(3,Ir,2,0,"ng-container",2),i.qZA(),i.TgZ(4,"nav",3),i.TgZ(5,"tui-scrollbar",4),i.ALo(6,"async"),i.TgZ(7,"tui-accordion",5),i.YNc(8,Fr,5,3,"tui-accordion-item",6),i.qZA(),i.TgZ(9,"div",7),i.YNc(10,zr,1,5,"ng-container",8),i.qZA(),i.YNc(11,Vr,3,2,"ng-template",null,9,i.W1O),i.qZA(),i.qZA(),i.Hsn(13)),2&t&&(i.Q6J("formControl",e.search)("tuiAutoFocus",!!e.sidebar)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0),i.xp6(2),i.hij(" ",e.searchText," "),i.xp6(1),i.Q6J("ngIf",e.canOpen),i.xp6(2),i.Q6J("tuiMode",i.lcZ(6,11,e.mode$)),i.xp6(2),i.Q6J("closeOthers",!1)("rounded",!1),i.xp6(1),i.Q6J("ngForOf",e.labels),i.xp6(2),i.Q6J("ngForOf",e.itemsWithoutSections))},directives:[Nn.K3,Nn.wU,gn.sz,gn.aR,pt.JJ,pt.oH,et.k,gn.be,gn.xT,y.O5,qn.IB,Bt.w,dn,y.sg,Un.gX,Un.qi,Un.Rs,Un.vK,ne.yS,hn,cn,y.tP,Bn.V,ne.Od,gi.$E,Xe,_t.PN],pipes:[y.Ov],styles:["[_nghost-%COMP%]{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input[_ngcontent-%COMP%]{margin:1.25rem}.t-navigation[_ngcontent-%COMP%]{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:smooth;width:100%}@media screen and (prefers-reduced-motion: reduce){.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}}.t-items-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 1rem}.t-label[_ngcontent-%COMP%]{margin-left:.5rem}.t-expand[_ngcontent-%COMP%]{margin-left:.25rem}.t-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered[_ngcontent-%COMP%]{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection[_ngcontent-%COMP%]{margin-left:.5rem}.t-sublink[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small[_ngcontent-%COMP%]{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection[_ngcontent-%COMP%]{margin-left:0;line-height:1.6rem}.t-sublink.t-sublink.t-sublink_active[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-chevron[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active[_ngcontent-%COMP%]{transform:rotate(90deg)}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"filterItems",null),(0,Z.gn)([ot.UM],t.prototype,"flattenSubPages",null),t})(),Uo=(()=>{class t{constructor(t,e,n,i){this.logo=t,this.menu=e,this.router=n,this.swipes$=i,this.stream$=new a.xQ,this.open$=(0,c.T)(this.router.events.pipe((0,h.U)(it.Iy)),this.stream$,this.swipes$.pipe((0,f.h)((t=>"left"===t.direction||"right"===t.direction)),(0,h.U)((t=>"right"===t.direction)))).pipe((0,d.O)(!1),(0,v.x)())}onClick(){this.stream$.next(!0)}onActiveZone(t){t||this.stream$.next(!1)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.Or),i.Y36(r.gG),i.Y36(ne.F0),i.Y36(rt.$D))},t.ɵcmp=i.Xpm({type:t,selectors:[["header","tuiDocHeader",""]],attrs:Yr,ngContentSelectors:Mi,decls:6,vars:5,consts:[["tuiIconButton","","icon","tuiIconMenuLarge","appearance","icon","type","button",1,"t-menu",3,"title","click","tuiActiveZoneChange"],["class","t-navigation",4,"tuiSidebar"],[1,"t-logo"],["alt","Logo","class","t-img",3,"src",4,"polymorpheusOutlet"],[1,"t-navigation"],["alt","Logo",1,"t-img",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"button",0),i.NdJ("click",(function(){return e.onClick()}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.YNc(1,qr,1,0,"tui-doc-navigation",1),i.ALo(2,"async"),i.qZA(),i.TgZ(3,"div",2),i.YNc(4,Hr,1,1,"img",3),i.qZA(),i.Hsn(5)),2&t&&(i.Q6J("title",e.menu),i.xp6(1),i.Q6J("tuiSidebar",!!i.lcZ(2,3,e.open$)),i.xp6(3),i.Q6J("polymorpheusOutlet",e.logo))},directives:[Rn.v0,nt.e,di,bt.Li,jo],pipes:[y.Ov],styles:["[_nghost-%COMP%]{box-shadow:0 .125rem 1rem #00000014;position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo[_ngcontent-%COMP%]{margin-right:auto;font:var(--tui-font-heading-5)}.t-img[_ngcontent-%COMP%]{display:block}.t-menu[_ngcontent-%COMP%]{margin-left:-1.25rem}@media screen and (min-width: 48em){.t-menu[_ngcontent-%COMP%]{display:none}}.t-navigation[_ngcontent-%COMP%]{min-height:100%}"],changeDetection:0}),t})(),$o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.UX,ne.Bz,bt.wq,gi.SK,Rn.fN,Nn.Qf,gn.cn,nt.A,dt.WD,Bt.z,Bn.j,Je,re.jh,se.dp,pn,qn.Jy,_t.EI,Un.pc,et.Q7]]}),t})(),Vo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,Rn.fN,fi,nt.A,$o]]}),t})(),Yo=(()=>{class t{constructor(t,e){this.text=t,this.pages=e,this.seeAlso=[]}getRouterLink(t){var e,n;return null!==(n=null===(e=this.pages.get(t))||void 0===e?void 0:e.route)&&void 0!==n?n:""}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.VX),i.Y36(r._Z))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-see-also"]],inputs:{seeAlso:"seeAlso"},decls:3,vars:2,consts:[[1,"t-header"],[4,"ngFor","ngForOf"],["tuiLink","",3,"routerLink","innerText"],[4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"h5",0),i._uU(1),i.qZA(),i.YNc(2,Gr,3,3,"ng-container",1)),2&t&&(i.xp6(1),i.Oqu(e.text),i.xp6(1),i.Q6J("ngForOf",e.seeAlso))},directives:[y.sg,Bn.V,ne.yS,y.O5],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"],changeDetection:0}),t})(),qo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,Bn.j]]}),t})(),Ho=(()=>{class t{constructor(t,e){this.sourceCode=t,this.text=e,this.header="",this.package="",this.type="",this.path=""}get pathOptions(){return this.getPathOptions(this.header,this.package,this.type,this.path)}getPathOptions(t,e,n,i){return{header:t,package:e,type:n,path:i}}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.yO),i.Y36(r.as))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-source-code"]],inputs:{header:"header",package:"package",type:"type",path:"path"},decls:1,vars:2,consts:[["tuiIconButton","","type","button","icon","tuiIconCode","appearance","icon","target","_blank","size","s",3,"title","href",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiIconButton","","type","button","icon","tuiIconCode","appearance","icon","target","_blank","size","s",3,"title","href"]],template:function(t,e){1&t&&i.YNc(0,Xr,1,2,"a",0),2&t&&i.Q6J("polymorpheusOutlet",e.sourceCode)("polymorpheusOutletContext",e.pathOptions)},directives:[bt.Li,Rn.v0],encapsulation:2,changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"getPathOptions",null),t})(),Zo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,Rn.fN]]}),t})(),Go=(()=>{class t{constructor(t,e){this.theme=t,this.night=e,this.change$=this.night,this.night$=this.change$.pipe((0,d.O)(null),(0,h.U)((()=>this.night.value)),(0,v.x)(),(0,_.B)())}get mode(){return this.night.value?"onDark":null}}return t.ɵfac=function(e){return new(e||t)(i.Y36(yi),i.Y36(Ci))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-main"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-mode",e.mode)},features:[i._Bn([{provide:Bt.w,useExisting:(0,i.Gpc)((()=>t))},rt.$D])],ngContentSelectors:Wr,decls:21,vars:4,consts:[[4,"ngIf"],[1,"tui-doc-page"],[1,"tui-doc-navigation"],[1,"tui-doc-content"],[1,"tui-doc-outlet"],["tuiDocHeader",""],["tuiIconButton","","tuiMode","onLight","appearance","secondary","size","s","shape","rounded","type","button",1,"tui-doc-night-mode-switch",3,"icon","click"],["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(t,e){1&t&&(i.F$t(Qr),i.YNc(0,Jr,1,0,"tui-theme-night",0),i.ALo(1,"async"),i.TgZ(2,"tui-root"),i.TgZ(3,"div",1),i.TgZ(4,"tui-doc-navigation",2),i.Hsn(5),i.qZA(),i.TgZ(6,"div",3),i._UZ(7,"router-outlet",4),i.qZA(),i.qZA(),i.TgZ(8,"header",5),i.Hsn(9,1),i.TgZ(10,"button",6),i.NdJ("click",(function(){return e.night.toggle()})),i.qZA(),i.qZA(),i.ynx(11,7),i.Hsn(12,2),i.BQk(),i.ynx(13,8),i.Hsn(14,3),i.BQk(),i.ynx(15,9),i.Hsn(16,4),i.BQk(),i.ynx(17,10),i.Hsn(18,5),i.BQk(),i.ynx(19,11),i.Hsn(20,6),i.BQk(),i.qZA()),2&t&&(i.Q6J("ngIf",e.theme.isDefaultTheme&&e.night.useDefaultNightTheme&&i.lcZ(1,2,e.night$)),i.xp6(10),i.Q6J("icon",e.night.value?"tuiIconSun":"tuiIconMoon"))},directives:[y.O5,Hn.G,jo,ne.lC,Uo,Rn.v0,Bt.w,Fn],pipes:[y.Ov],styles:['html{scroll-padding-top:4rem;height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}body{background:var(--tui-base-01);height:auto}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*="language-"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;box-shadow:inset 0 -2px var(--tui-secondary);padding:.375rem .5rem;font-size:.875rem;border-radius:.5rem}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{position:relative;z-index:0;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9625em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9625em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-animated-example{animation:1s .3s tuiShaking}.tui-doc-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:normal;color:var(--tui-text-01)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:bold;color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:bold;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:normal}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:bold}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:bold}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n'],encapsulation:2}),t})(),Xo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,zn,Vo,Hn.W,ei.up,Kn,Rn.fN,Bt.z,$o]]}),t})();const Jo=new i.OlP("[PAGE_SEE_ALSO]"),Qo=[{provide:Jo,deps:[i.SBq,r.UL],useFactory:({nativeElement:t},e)=>{const n=t.getAttribute("header"),i=e.filter((t=>t.includes(n)))||[],r=new Set(i.join().split(",").filter((t=>t&&t!==n)));return Array.from(r)}}];let Wo=(()=>{class t{constructor(t){this.template=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","pageTab",""]],inputs:{pageTab:"pageTab"}}),t})(),Ko=(()=>{class t{constructor(t,e){this.defaultTabs=t,this.seeAlso=e,this.header="",this.package="",this.type="",this.path="",this.deprecated=!1,this.tabConnectors=it.Mm,this.activeItemIndex=0,this.from=/ /g,this.to="_"}get showSeeAlso(){return!!this.seeAlso.length&&0===this.activeItemIndex}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.AC),i.Y36(Jo))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-page"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Wo,4),2&t){let t;i.iGM(t=i.CRH())&&(e.tabConnectors=t)}},inputs:{header:"header",package:"package",type:"type",path:"path",deprecated:"deprecated"},features:[i._Bn(Qo)],ngContentSelectors:Mi,decls:11,vars:10,consts:[[1,"t-header"],[1,"t-title"],["value","deprecated","status","custom","class","t-tag t-tag_deprecated",4,"ngIf"],["status","custom","class","t-tag t-tag_package",3,"value","autoColor",4,"ngIf"],["class","t-tabs",3,"activeItemIndex","activeItemIndexChange",4,"ngIf"],[1,"t-source-code",3,"header","package","type","path"],[1,"t-content"],["class","t-see-also",3,"seeAlso",4,"ngIf"],[4,"ngFor","ngForOf"],["value","deprecated","status","custom",1,"t-tag","t-tag_deprecated"],["status","custom",1,"t-tag","t-tag_package",3,"value","autoColor"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngIf"],["tuiTab","","routerLinkActive","",3,"routerLinkActiveOptions","routerLink",4,"tuiItem"],["tuiTab","","routerLinkActive","",3,"routerLinkActiveOptions","routerLink"],[1,"t-see-also",3,"seeAlso"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"header",0),i.TgZ(1,"h1",1),i._uU(2),i.YNc(3,Kr,1,0,"tui-tag",2),i.YNc(4,to,1,2,"tui-tag",3),i.qZA(),i.YNc(5,oo,2,2,"tui-tabs-with-more",4),i._UZ(6,"tui-doc-source-code",5),i.qZA(),i.TgZ(7,"div",6),i.Hsn(8),i.YNc(9,so,1,1,"tui-doc-see-also",7),i.YNc(10,lo,2,1,"ng-container",8),i.qZA()),2&t&&(i.xp6(2),i.hij(" ",e.header," "),i.xp6(1),i.Q6J("ngIf",!!e.deprecated||""===e.deprecated),i.xp6(1),i.Q6J("ngIf",e.package),i.xp6(1),i.Q6J("ngIf",e.tabConnectors.length),i.xp6(1),i.Q6J("header",e.header)("package",e.package)("type",e.type)("path",e.path),i.xp6(3),i.Q6J("ngIf",e.showSeeAlso),i.xp6(1),i.Q6J("ngForOf",e.tabConnectors))},directives:[y.O5,Ho,y.sg,En,je,K.w,Ie,ne.yS,ne.Od,Yo,y.tP],pipes:[J],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title[_ngcontent-%COMP%]{min-width:100%;font-size:inherit;margin:0}.t-tag[_ngcontent-%COMP%]{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-fill)}.t-tag.t-tag_package[_ngcontent-%COMP%]{color:#000}.t-tabs[_ngcontent-%COMP%]{flex:1;margin:1.125rem .3125rem 0 0}tui-root._mobile[_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%]{margin-top:.25rem}.t-content[_ngcontent-%COMP%]{padding:2rem 0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:2rem 1.25rem;margin:0}.t-see-also[_ngcontent-%COMP%]{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}tui-root._mobile[_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%]{float:none;width:100%;margin:0 0 1.5rem}.t-source-code[_ngcontent-%COMP%]{align-self:flex-end;line-height:2.75rem;margin-left:auto}"],changeDetection:0}),t})(),ts=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,qo,Ue,Tn,Zo,Q]]}),t})()},46331:(t,e,n)=>{n.d(e,{$E:()=>d,SK:()=>p,v_:()=>f,Zp:()=>g});var i=n(74788),r=n(64548),o=n(64493),s=n(63658),a=n(74235),l=n(45435),c=n(43190),u=n(54395),h=n(46782);let d=(()=>{class t{constructor(t,{nativeElement:e},n){this.readyToScroll$=n,this.scroll$=new a.t(1),this.readyToScroll$.pipe((0,l.h)(Boolean),(0,c.w)((()=>this.scroll$)),(0,u.b)(750),(0,l.h)((t=>t&&!!(0,o.PU)(e))),(0,h.R)(t)).subscribe((()=>{e.scrollIntoView()}))}set tuiScrollIntoViewLink(t){this.scroll$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.a3,2),i.Y36(i.SBq),i.Y36(r.V1))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoViewLink",""]],inputs:{tuiScrollIntoViewLink:"tuiScrollIntoViewLink"},features:[i._Bn([s.a3])]}),t})(),p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),f=(()=>{class t{constructor(){this.code=""}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["code","tuiText",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("textContent",e.code)},inputs:{code:["tuiText","code"]}}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},66174:(t,e,n)=>{n.d(e,{N:()=>i});const i={TS:"TypeScript",LESS:"LESS",HTML:"HTML"}},64548:(t,e,n)=>{n.d(e,{mT:()=>u,lW:()=>h,AC:()=>d,ru:()=>m,IK:()=>v,$_:()=>p,Es:()=>f,mv:()=>_,et:()=>g,Or:()=>x,_Z:()=>M,gG:()=>y,V5:()=>k,V1:()=>O,n1:()=>P,EI:()=>b,UL:()=>S,VX:()=>w,yO:()=>E,as:()=>C,Yx:()=>T,Ii:()=>A});var i=n(74788),r=n(44427),o=n(54487),s=n(41439),a=n(41291),l=n(25917),c=n(43190);const u=new i.OlP("[TUI_DOC_CODE_ACTIONS]",{factory:()=>""}),h=new i.OlP("[TUI_DOC_CODE_EDITOR]"),d=new i.OlP("[TUI_DOC_DEFAULT_TABS]",{factory:()=>[]}),p=new i.OlP("[TUI_DOC_EXAMPLE_CONTENT_PROCESSOR]",{factory:()=>o.y}),f=new i.OlP("[TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR]",{factory:()=>r.vi}),g=new i.OlP("[TUI_DOC_EXCLUDED_PROPERTIES]",{factory:()=>new Set([])}),m=new i.OlP("[TUI_DOC_DEMO_TEXTS]",{factory:()=>["Read more more about modes: ","Background","Form value"]}),v=new i.OlP("[TUI_DOC_DOCUMENTATION_TEXTS]",{factory:()=>["Argument","Type","Name and description","Value","Learn about our dynamic templates from "]}),_=new i.OlP("[TUI_DOC_EXAMPLE_TEXTS]",{factory:()=>["Preview","Link to a sample was successfully copied","Done"]}),y=new i.OlP("[TUI_DOC_MENU_TEXT]",{factory:()=>"Menu"}),b=new i.OlP("[TUI_DOC_SEARCH_TEXT]",{factory:()=>"Search"}),w=new i.OlP("[TUI_DOC_SEE_ALSO_TEXT]",{factory:()=>"See also"}),C=new i.OlP("[TUI_DOC_SOURCE_CODE_TEXT]",{factory:()=>"Source code"}),x=new i.OlP("[TUI_DOC_LOGO]",{factory:()=>""}),O=new i.OlP("[TUI_DOC_PAGE_LOADED]",{factory:()=>(0,s.P)((()=>(0,a.H)(200).pipe((0,c.w)((()=>(0,l.of)(!0))))))}),k=new i.OlP("[TUI_DOC_PAGES]",{factory:()=>[]}),M=new i.OlP("[TUI_DOC_MAP_PAGES]",{factory:()=>{const t=(0,i.f3M)(k);return(0,r.S4)(t)}}),P=new i.OlP("[TUI_DOC_SCROLL_BEHAVIOR]",{factory:()=>"smooth"}),S=new i.OlP("[TUI_DOC_SEE_ALSO]",{factory:()=>[]}),E=new i.OlP("[TUI_DOC_SOURCE_CODE]",{factory:()=>null}),T=new i.OlP("[TUI_DOC_TITLE]",{factory:()=>""}),A=new i.OlP("[TUI_DOC_URL_STATE_HANDLER]",{factory:()=>String})},44427:(t,e,n)=>{n.d(e,{p8:()=>a,cd:()=>s,Ve:()=>l,sj:()=>c,JQ:()=>h,vP:()=>d,S4:()=>p,OO:()=>g,vi:()=>u});var i=n(4841),r=n.n(i),o=n(97582);function s(t){return"true"===(null==t?void 0:t.toString())}function a(t){const e=String(t).trim();if(function(t){return["undefined","null","NaN"].includes(t)}(e))return null;if(function(t){return"true"===t||"false"===t}(e))return"true"===String(e);if(function(t){return!!t.trim()&&!Number.isNaN(Number(t))&&!t.startsWith("+")}(e))return Number(e);const n=decodeURIComponent(e);try{return function(t){return t.startsWith("[")&&t.endsWith("]")}(n)||function(t){return t.startsWith("{")&&t.endsWith("}")}(n)?JSON.parse(n):n}catch(t){return n}}function l(t){return[{path:"",component:t,children:[{path:":tab",component:t}]}]}function c(t,e){if(null===t)return"null";switch(typeof t){case"string":return`'${t}'`;case"undefined":case"number":case"boolean":case"function":return String(t)}return t instanceof RegExp?String(t):Array.isArray(t)?function(t,e){if(0===e)return"[…]";let n="",i=!0;for(let r=0;r"code"===t&&"fence"===e)).map((({content:t})=>t.trim()));return e.length?e:[t]}function h(t){return(0,o.mG)(this,void 0,void 0,(function*(){return t instanceof Promise?(yield t).default:t}))}function d(t){return(0,o.mG)(this,void 0,void 0,(function*(){const e={};for(const[n,i]of Object.entries(t))i&&(e[n]=yield h(i));return e}))}function p(t){const e=new Map;for(const n of t)if("subPages"in n)for(const t of n.subPages)e.set(t.title,t);else e.set(n.title,n);return e}const f={а:"f",б:",",в:"d",г:"u",д:"l",е:"t",ё:"`",ж:";",з:"p",и:"b",й:"q",к:"r",л:"k",м:"v",н:"y",о:"j",п:"g",р:"h",с:"c",т:"n",у:"e",ф:"a",х:"[",ц:"w",ч:"x",ш:"i",щ:"o",ъ:"]",ы:"s",ь:"m",ю:".",я:"z"};function g(t){let e="";for(let n=0;n{n.d(e,{iK:()=>c});var i=n(74788),r=n(49941),o=n(89570),s=n(76480);function a(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}let l=(()=>{class t{constructor(t){this.context=t}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.yf))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview-dialog"]],hostBindings:function(t,e){1&t&&i.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,i.evT)},decls:2,vars:3,consts:[[1,"t-dialog-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,a,2,1,"ng-container",1),i.qZA()),2&t&&(i.Q6J("@tuiSlideInTop",void 0),i.xp6(1),i.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[o.Li],styles:[".t-dialog-content{position:fixed;width:100%;height:100%}[tuiWrapper][data-appearance=preview-action]{background:rgba(104,104,104,.96);color:var(--tui-text-01-night)}@media (hover: hover){[tuiWrapper][data-appearance=preview-action]:hover:not(._no-hover),[tuiWrapper][data-appearance=preview-action][data-state=hover]{background:rgba(159,159,159,.86)}}[tuiWrapper][data-appearance=preview-action]:active:not(._no-active),[tuiWrapper][data-appearance=preview-action][data-state=active],[tuiWrapper][data-appearance=preview-action][data-state=active]:hover{background:rgba(159,159,159,.75)}\n"],encapsulation:2,data:{animation:[r.X9]},changeDetection:0}),t})(),c=(()=>{class t extends s.d5{constructor(){super(...arguments),this.defaultOptions={},this.component=new o.Al(l)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},42991:(t,e,n)=>{n.d(e,{vy:()=>ut,mE:()=>ft,E6:()=>mt});var i=n(74788),r=n(63658);let o=(()=>{class t{constructor(t){this.tuiPan=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.l))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPan",""]],outputs:{tuiPan:"tuiPan"},features:[i._Bn([r.l])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),a=(()=>{class t{constructor(t){this.tuiZoom=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.bW))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiZoom",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("touch-action","none")},outputs:{tuiZoom:"tuiZoom"},features:[i._Bn([r.bW])]}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var c=n(5962),u=n(33770),h=n(85648),d=n(66749),p=n(75675),f=n(99434),g=n(69727),m=n(24751),v=n(41213),_=n(44358),y=n(76480),b=n(57179),w=(n(18939),n(18269));function C(t,e){const n=t.findIndex(((t,n)=>n&&e(t)));return[t[n-1],t[n]]}u.kU,w.hW,w.hW,w.hW,w.hW,w.hW,w.hW,u.fv,w.hW,w.hW,u.fv,w.hW,w.hW,w.hW,w.hW,w.hW,w.hW;var x=n(97582),O=n(62579),k=n(15257),M=n(12057);const P=["type","range","tuiSlider",""],S=["tuiSliderThumbLabel",""];function E(t,e){1&t&&i.GkF(0)}const T=["*",[["input","type","range"]]],A=["*","input[type=range]"],I={size:"m",trackColor:"var(--tui-base-03)"},D=new i.OlP("[TUI_SLIDER_OPTIONS]",{factory:()=>I});let L=(()=>{class t{constructor(t,e,n,i,r,o){var s;this.control=t,this.options=n,this.el=i,this.userAgent=r,this.injector=o,this.size=this.options.size,this.segments=1,t instanceof m.On&&(null===(s=t.valueChanges)||void 0===s||s.pipe((0,d.NA)(e),(0,k.q)(1)).subscribe())}get min(){return Number(this.el.nativeElement.min)}get max(){return Number(this.el.nativeElement.max||100)}get step(){return Number(this.el.nativeElement.step)||1}get value(){const{el:t,control:e,hasKeySteps:n}=this;return!n&&e instanceof m.On?e.viewModel:Number(t.nativeElement.value)||0}set value(t){this.el.nativeElement.value=`${t}`}get valuePercentage(){return 100*(this.value-this.min)/(this.max-this.min)||0}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return(0,v.xz)(u.FS,this.userAgent)}get hasKeySteps(){return Boolean(this.injector.get(N,null))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m.a5,10),i.Y36(i.sBO),i.Y36(D),i.Y36(i.SBq),i.Y36(O.yZ),i.Y36(i.zs3))},t.ɵcmp=i.Xpm({type:t,selectors:[["input","type","range","tuiSlider",""]],hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(){return 0})),2&t&&(i.uIk("data-size",e.size),i.Udp("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),i.ekj("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:P,decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{display:block;width:100%;color:var(--tui-primary);cursor:pointer}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[_nghost-%COMP%]:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:not(._old-edge)::-webkit-slider-container{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.375rem,0;background-size:calc(100% - 1rem),calc(100% - 1rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.375rem;background-size:calc(100% - 1rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}._old-edge[_nghost-%COMP%]::-ms-thumb{background:currentColor;border-radius:50%}._old-edge[_nghost-%COMP%]::-ms-fill-lower{background:currentColor}._old-edge[_nghost-%COMP%]::-ms-track{background:var(--tui-slider-track-color);border:none}"],changeDetection:0}),(0,x.gn)([_.UM],t.prototype,"hasKeySteps",null),t})(),N=(()=>{class t extends y.M${constructor(t,e,n,i){super(t,e),this.el=n,this.slider=i}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return(0,b.V8)(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=function(t,e){const[[n,i],[r,o]]=C(e,(([e,n])=>t<=e)),s=(t-n)/(r-n)*(o-i)+i;return(0,h.FG)(s,7)}(this.slider.valuePercentage,this.keySteps)}writeValue(t){if(null===t)return;const e=(0,h.Ki)(t,this.min,this.max);this.slider.value=this.transformToNativeValue(e)}getFallbackValue(){return 0}transformToNativeValue(t){const{min:e,max:n}=this.slider;return function(t,e){const[[n,i],[r,o]]=C(e,(([e,n])=>t<=n));return(r-n)*((t-i)/(o-i)||0)+n}(t,this.keySteps)*(n-e)/100+e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m.a5,10),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36((0,i.Gpc)((()=>L))))},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(){return e.updateControlValue()}))("change",(function(){return e.updateControlValue()})),2&t&&(i.Ikx("disabled",e.computedDisabled),i.uIk("aria-valuenow",e.safeCurrentValue)("aria-valuemin",e.min)("aria-valuemax",e.max))},inputs:{keySteps:"keySteps"},features:[i.qOj]}),t})();new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"]);let F=(()=>{class t{get size(){var t;return(null===(t=this.slider)||void 0===t?void 0:t.size)||"m"}get ratio(){var t;return((null===(t=this.slider)||void 0===t?void 0:t.valuePercentage)||0)/100}get ghostLeft(){var t;return this.ratio*((null===(t=this.slider)||void 0===t?void 0:t.el.nativeElement.offsetWidth)||0)}ngAfterContentInit(){}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["","tuiSliderThumbLabel",""]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,L,5),i.Suo(n,m.a5,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.slider=t.first),i.iGM(t=i.CRH())&&(e.control=t.first)}},attrs:S,ngContentSelectors:A,decls:5,vars:8,consts:[[4,"ngIf"],[1,"t-ghost"]],template:function(t,e){1&t&&(i.F$t(T),i.YNc(0,E,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.Hsn(3),i.qZA(),i.Hsn(4,1)),2&t&&(i.Q6J("ngIf",i.lcZ(1,6,null==e.control?null:e.control.valueChanges)),i.xp6(2),i.Udp("left",e.ghostLeft,"px")("--tui-slider-thumb-ratio",e.ratio),i.uIk("data-size",e.size))},directives:[M.O5],pipes:[M.Ov],styles:["[_nghost-%COMP%]{position:relative}.t-ghost[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s][_ngcontent-%COMP%]{width:.5rem;height:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem))}.t-ghost[data-size=m][_ngcontent-%COMP%]{width:1rem;height:1rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -1rem))}"],changeDetection:0}),t})(),z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[M.ez]]}),t})();var R=n(12628),B=n(90022),j=n(49941),U=n(54789),$=n(40719),V=n(66682),Y=n(25917),q=n(41291),H=n(26215),Z=n(9112),G=n(47232);const X=new i.OlP("[TUI_PREVIEW_TEXTS]",{factory:(0,G.v)("previewTexts")}),J=new i.OlP("[TUI_PREVIEW_ZOOM_TEXTS]",{factory:(0,G.v)("zoomTexts")});var Q=n(43190),W=n(88002),K=n(39761),tt=n(23764),et=n(23378),nt=n(89570);function it(t,e){if(1&t&&(i._uU(0),i.ALo(1,"percent"),i.ALo(2,"async")),2&t){const t=i.oxw(2);i.hij(" ",i.lcZ(1,1,i.lcZ(2,3,t.valueChange)||t.value)," ")}}function rt(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"section",1),i.TgZ(2,"button",2),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onMinus()})),i.qZA(),i.TgZ(3,"label",3),i._UZ(4,"div",4),i.ALo(5,"async"),i.YNc(6,it,3,5,"ng-template",null,5,i.W1O),i.TgZ(8,"input",6),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModelChange(e)})),i.qZA(),i.qZA(),i.TgZ(9,"button",7),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onPlus()})),i.qZA(),i.qZA(),i.TgZ(10,"button",8),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onReset()})),i.qZA(),i.BQk()}if(2&t){const t=e.ngIf,n=i.MAs(7),r=i.oxw();i.xp6(2),i.Q6J("title",t.zoomOut)("disabled",r.leftButtonDisabled),i.xp6(2),i.Q6J("tuiHint",n)("tuiHintManual",!!i.lcZ(5,12,r.hintShow$)),i.xp6(4),i.Q6J("min",r.min)("max",r.max)("ngModel",r.value),i.xp6(1),i.Q6J("title",t.zoomIn)("disabled",r.rightButtonDisabled),i.xp6(1),i.ekj("t-invisible",!r.collapseVisible),i.Q6J("tuiHint",t.reset)}}function ot(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).rotate()})),i.qZA()}if(2&t){const t=i.oxw().ngIf;i.Q6J("tuiHint",t.rotate)}}function st(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-preview-zoom",10),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(2).zoom$.next(e)}))("reset",(function(){return i.CHM(t),i.oxw(2).reset()})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("min",t.minZoom)("value",i.lcZ(1,2,t.zoom$)||1)}}function at(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"section",1,2),i.NdJ("tuiPan",(function(e){return i.CHM(t),i.oxw().onPan(e)}))("tuiZoom",(function(e){return i.CHM(t),i.oxw().onZoom(e)}))("tuiResize",(function(e){return i.CHM(t),i.oxw().onResize(e)}))("waMutationObserver",(function(){i.CHM(t);const e=i.MAs(2);return i.oxw().onMutation(e)})),i.ALo(3,"async"),i.ALo(4,"async"),i.ALo(5,"async"),i.Hsn(6),i.qZA(),i.TgZ(7,"header",3),i.TgZ(8,"div",4),i.Hsn(9,1),i.qZA(),i.Hsn(10,2),i.TgZ(11,"div",5),i.Hsn(12,3),i.qZA(),i.qZA(),i.TgZ(13,"footer",6),i.YNc(14,ot,1,1,"button",7),i.YNc(15,st,2,4,"tui-preview-zoom",8),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(1),i.Udp("transform",i.lcZ(3,10,t.wrapperTransform$))("cursor",i.lcZ(4,12,t.cursor$)),i.ekj("t-not-interactive-content",t.zoomable)("t-transitive",i.lcZ(5,14,t.transitioned$)),i.xp6(13),i.Q6J("ngIf",t.rotatable),i.xp6(1),i.Q6J("ngIf",t.zoomable)}}const lt=["*",[["tui-preview-title"]],[["tui-preview-pagination"]],[["","tuiPreviewAction",""]]],ct=["*","tui-preview-title","tui-preview-pagination","[tuiPreviewAction]"];let ut=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPreviewAction",""]],features:[i._Bn([(0,R.O0)({appearance:"preview-action",shape:"rounded",size:"s"})])]}),t})(),ht=(()=>{class t{constructor(t){this.zoomTexts$=t,this.min=.5,this.max=2,this.value=1,this.valueChange=new i.vpe,this.reset=new i.vpe,this.hintShow$=this.valueChange.pipe((0,Q.w)((()=>(0,V.T)((0,Y.of)(!0),(0,q.H)(1e3).pipe((0,W.U)(u.Iy))))),(0,K.O)(!1))}get leftButtonDisabled(){return this.value===this.min}get rightButtonDisabled(){return this.value===this.max}get collapseVisible(){return this.value>this.min}onModelChange(t){const e=(0,h.Ki)(t,this.min,this.max);e!==this.value&&(this.value=e,this.valueChange.emit(e))}onReset(){this.reset.emit()}onMinus(){this.onModelChange(this.value-.5)}onPlus(){this.onModelChange(this.value<1?1:this.value+.5)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(J))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview-zoom"]],inputs:{min:"min",max:"max",value:"value"},outputs:{valueChange:"valueChange",reset:"reset"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"t-zoom"],["type","button","tuiIconButton","","tuiPreviewAction","","icon","tuiIconMinus",1,"t-sign_minus",3,"title","disabled","click"],["tuiSliderThumbLabel",""],["tuiHintAppearance","onDark","tuiHintDirection","top-right",3,"tuiHint","tuiHintManual"],["hint",""],["tuiSlider","","type","range","step","any",1,"t-slider",3,"min","max","ngModel","ngModelChange"],["type","button","tuiIconButton","","tuiPreviewAction","","icon","tuiIconPlus",1,"t-sign_plus",3,"title","disabled","click"],["type","button","tuiIconButton","","tuiPreviewAction","","icon","tuiIconMinimize","tuiHintDirection","top-right","tuiHintAppearance","onDark","tuiHintDescribe","",1,"t-reset-button",3,"tuiHint","click"]],template:function(t,e){1&t&&(i.YNc(0,rt,11,14,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.zoomTexts$))},directives:[M.O5,R.v0,ut,F,B.D,B.xn,B.t6,B.DM,B.ZY,L,m.eT,m.Fj,m.JJ,m.On,B.$o],pipes:[M.Ov,M.Zx],styles:["[_nghost-%COMP%]{position:relative;display:flex}.t-zoom[_ngcontent-%COMP%]{border-radius:1rem;background:rgba(104,104,104,.96);color:var(--tui-text-01-night);font:var(--tui-font-text-s);display:flex;justify-content:space-between;align-items:center;width:12rem}.t-slider[_ngcontent-%COMP%]{width:7.5rem}.t-sign_minus[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible[_ngcontent-%COMP%]{visibility:hidden}.t-reset-button[_ngcontent-%COMP%]{margin-left:.3125rem}"],changeDetection:0}),t})();const dt=.8,pt=[0,0];let ft=(()=>{class t{constructor(t,e){this.el=t,this.texts$=e,this.zoomable=!0,this.rotatable=!1,this.minZoom=1,this.width=0,this.height=0,this.zoom$=new H.X(this.minZoom),this.rotation$=new H.X(0),this.coordinates$=new H.X(pt),this.transitioned$=(0,V.T)((0,d.mM)(this.el.nativeElement).pipe((0,W.U)((({stage:t})=>t!==d.nc.Continues))),(0,d.mL)(this.el.nativeElement,"touchmove",{passive:!0}).pipe((0,W.U)(u.Iy)),(0,d.mL)(this.el.nativeElement,"wheel",{passive:!0}).pipe((0,W.U)(u.Iy))),this.cursor$=(0,d.mM)(this.el.nativeElement).pipe((0,W.U)((({stage:t})=>t===d.nc.Continues?"grabbing":"initial")),(0,K.O)("initial")),this.wrapperTransform$=(0,Z.aj)([this.coordinates$.pipe((0,W.U)((([t,e])=>`${(0,p.O)(t)}, ${(0,p.O)(e)}`))),this.zoom$,this.rotation$]).pipe((0,W.U)((([t,e,n])=>`translate(${t}) scale(${e}) rotate(${n}deg)`)))}rotate(){this.rotation$.next(this.rotation$.value-90)}onPan(t){this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+t[0],this.coordinates$.value[1]+t[1]))}onMutation(t){const{clientWidth:e,clientHeight:n}=t;this.refresh(e,n)}onZoom({clientX:t,clientY:e,delta:n}){this.zoomable&&this.processZoom(t,e,n)}onResize(t){if(0===t.length)return;const{width:e,height:n}=t[0].contentRect;this.refresh(e,n)}reset(){this.zoom$.next(this.minZoom),this.coordinates$.next(pt)}get offsets(){return{offsetX:(this.zoom$.value-this.minZoom)*this.width/2,offsetY:(this.zoom$.value-this.minZoom)*this.height/2}}calculateMinZoom(t,e,n,i){const r=t>n*dt||e>i*dt,{clientHeight:o,clientWidth:s}=this.el.nativeElement;return r?(0,h.FG)(Math.min(o*dt/t,s*dt/e),2):1}refresh(t,e){this.width=t,this.height=e,this.minZoom=this.calculateMinZoom(e,t,this.el.nativeElement.clientHeight,this.el.nativeElement.clientWidth),this.zoom$.next(this.minZoom),this.coordinates$.next(pt),this.rotation$.next(0)}processZoom(t,e,n){const i=this.zoom$.value,r=(0,h.Ki)(i+n,this.minZoom,2),o=this.getScaleCenter({clientX:t,clientY:e},this.coordinates$.value,this.zoom$.value),s=o[0]*i-o[0]*r,a=o[1]*i-o[1]*r;this.zoom$.next(r),this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+s,this.coordinates$.value[1]+a))}getGuardedCoordinates(t,e){const{offsetX:n,offsetY:i}=this.offsets;return[(0,h.Ki)(t,-n,n),(0,h.Ki)(e,-i,i)]}getScaleCenter({clientX:t,clientY:e},[n,i],r){return[(t-n-this.el.nativeElement.offsetWidth/2)/r,(e-i-this.el.nativeElement.offsetHeight/2)/r]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(X))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview"]],inputs:{zoomable:"zoomable",rotatable:"rotatable"},ngContentSelectors:ct,decls:2,vars:3,consts:[[4,"ngIf"],["subtree","","childList","","characterData","","attributeFilter","src",1,"t-wrapper",3,"tuiPan","tuiZoom","tuiResize","waMutationObserver"],["contentWrapper",""],[1,"t-header"],[1,"t-title"],[1,"t-actions"],[1,"t-footer"],["tuiIconButton","","tuiPreviewAction","","type","button","icon","tuiIconRotate","tuiHintDirection","top-right","tuiHintAppearance","onDark","tuiHintDescribe","","class","t-rotate-button",3,"tuiHint","click",4,"ngIf"],[3,"min","value","valueChange","reset",4,"ngIf"],["tuiIconButton","","tuiPreviewAction","","type","button","icon","tuiIconRotate","tuiHintDirection","top-right","tuiHintAppearance","onDark","tuiHintDescribe","",1,"t-rotate-button",3,"tuiHint","click"],[3,"min","value","valueChange","reset"]],template:function(t,e){1&t&&(i.F$t(lt),i.YNc(0,at,16,16,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[M.O5,o,a,c.$,tt.Vi,R.v0,ut,B.$o,B.D,B.xn,B.t6,B.DM,ht],pipes:[M.Ov],styles:["[_nghost-%COMP%]{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.t-header[_ngcontent-%COMP%]{position:fixed;top:1rem;display:flex;width:100%;padding:0 1rem;box-sizing:border-box}.t-footer[_ngcontent-%COMP%]{position:absolute;bottom:1rem;display:flex;width:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions[_ngcontent-%COMP%]{display:flex;flex:1;justify-content:flex-end}.t-actions[_ngcontent-%COMP%] >*{margin-left:.625rem}.t-rotate-button[_ngcontent-%COMP%]{margin-right:.3125rem}.t-title[_ngcontent-%COMP%]{flex:1}tui-root._mobile[_nghost-%COMP%] .t-title[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{display:none}.t-not-interactive-content[_ngcontent-%COMP%] >*{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{will-change:transform}.t-transitive[_ngcontent-%COMP%]{transition-duration:.3s}"],data:{animation:[j.X9]},changeDetection:0}),t})(),gt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,f.Q)(et.iK)],imports:[[M.ez,nt.wq,tt.NI,R.fN,m.u5,z,B.go,g.N,c.k,U.EI,$.dS,s,l,gt]]}),t})()},76480:(t,e,n)=>{n.d(e,{M$:()=>O,QJ:()=>M,d5:()=>P,Xn:()=>C,F9:()=>S,Er:()=>T,N9:()=>E,GM:()=>A,FX:()=>x,wB:()=>k});var i=n(74788),r=n(24751),o=(n(18939),n(33770)),s=n(11927),a=n(79765),l=n(66682),c=n(29856),u=n(26215),h=n(87874),d=n(39761),p=n(88002),f=n(45435),g=n(87519),m=n(43190),v=n(46782),_=n(63658),y=n(27788),b=n(12057);const w=["viewContainer"];let C=(()=>{class t{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new i.vpe,this.focusVisibleChange=new i.vpe,this.focusVisible=!1,this.autoIdString=`tui_interactive_${t.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focused)}get computedFocusVisible(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,hostVars:6,hostBindings:function(t,e){2&t&&i.ekj("_disabled",e.computedDisabled)("_focused",e.computedFocused)("_focus-visible",e.computedFocusVisible)},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),t})();class x{}let O=(()=>{class t extends C{constructor(t,e,n){super(),this.ngControl=t,this.cdr=e,this.valueTransformer=n,this.refresh$=new a.xQ,this.onTouched=o.iD,this.onChange=o.iD,this.fallbackValue=this.getFallbackValue(),this.destroy$=new a.xQ,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(null!==this.pseudoInvalid?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var t;return null!==(t=this.previousInternalValue)&&void 0!==t?t:this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){var t;return null!==(t=this.rawValue)&&void 0!==t?t:this.fallbackValue}get invalid(){return this.safeNgControlData((({invalid:t})=>t),!1)}get valid(){return this.safeNgControlData((({valid:t})=>t),!1)}get touched(){return this.safeNgControlData((({touched:t})=>t),!1)}get disabled(){return this.safeNgControlData((({disabled:t})=>t),!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData((({control:t})=>t),null)}get computedName(){var t,e;return null!==(e=null===(t=this.controlName)||void 0===t?void 0:t.toString())&&void 0!==e?e:null}get controlName(){var t,e,n;return null!==(n=null===(e=null===(t=this.ngControl)||void 0===t?void 0:t.name)||void 0===e?void 0:e.toString())&&void 0!==n?n:null}get rawValue(){const{ngControl:t}=this;if(null===t)return;const e=t instanceof r.On&&void 0===this.previousInternalValue?t.viewModel:t.value;return this.fromControlValue(e)}ngOnInit(){this.refresh$.pipe((0,h.g)(0),(0,d.O)(null),(0,p.U)((()=>{var t;return null===(t=this.ngControl)||void 0===t?void 0:t.control})),(0,f.h)(s.Pc),(0,g.x)(),(0,m.w)((t=>(0,l.T)(t.valueChanges,t.statusChanges))),(0,v.R)(this.destroy$)).subscribe((()=>{this.refreshLocalValue(this.safeCurrentValue)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=e=>{t(this.toControlValue(e))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){const e=this.ngControl instanceof r.On&&void 0===this.previousInternalValue?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(e))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,e){return t===e}safeNgControlData(t,e){var n;return null!==(n=this.ngControl&&t(this.ngControl))&&void 0!==n?n:e}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,8),i.Y36(i.sBO),i.Y36(x,8))},t.ɵdir=i.lG2({type:t,hostVars:4,hostBindings:function(t,e){2&t&&i.ekj("_readonly",e.readOnly)("_invalid",e.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[i.qOj]}),t})();function k(t){return{provide:O,useExisting:t}}let M=(()=>{class t{constructor(){this.change$=new a.xQ}ngOnChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,features:[i.TTD]}),t})(),P=(()=>{class t extends c.y{constructor(t){super((t=>this.dialogs$.subscribe(t))),this.idService=t,this.dialogs$=new u.X([])}open(t,e={}){return new c.y((n=>{const i=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{content:t,completeWith:t=>{n.next(t),n.complete()},$implicit:n,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,i]),()=>{this.dialogs$.next(this.dialogs$.value.filter((t=>t!==i)))}}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_.ll))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),S=(()=>{class t extends O{getFallbackValue(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})(),E=(()=>{class t{get safeHost(){if(!this.host)throw new y.ZB;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroy()}addTemplate(t,e){return this.safeHost.addTemplateChild(t,e)}removeTemplate(t){t.destroy()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),T=(()=>{class t{constructor(t,e,n){this.injector=t,this.el=e,n.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(e){const n=e.createInjector(this.injector),r=n.get(i._Vd).resolveComponentFactory(e.component),o=[{provide:t,useValue:this}],s=i.zs3.create({parent:n,providers:o}),a=this.vcr.createComponent(r,void 0,s);return a.changeDetectorRef.detectChanges(),a}addTemplateChild(t,e){return this.vcr.createEmbeddedView(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.gxx),i.Y36(i.SBq),i.Y36(E))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(w,5,i.s_b),2&t){let t;i.iGM(t=i.CRH())&&(e.vcr=t.first)}}}),t})(),A=(()=>{class t{constructor(t){if(this.doc=t,null!==this.style)return void this.addTheme();const e=this.doc.head.querySelectorAll("style");this.constructor.style=e[e.length-1]}get style(){return this.constructor.style}ngOnDestroy(){this.removeTheme()}addTheme(){this.style&&this.doc.head.appendChild(this.style)}removeTheme(){this.style&&this.doc.head.contains(this.style)&&this.doc.head.removeChild(this.style)}}return t.style=null,t.ɵfac=function(e){return new(e||t)(i.Y36(b.K0))},t.ɵdir=i.lG2({type:t}),t})()},18939:(t,e,n)=>{n.d(e,{T:()=>o,z:()=>r});var i=n(33770);const r={enabled:!1,get assert(){return i.iD}};class o{constructor(t,e={}){this.message=t,this.context=e}}},75122:(t,e,n)=>{n.d(e,{qY:()=>a,mL:()=>l,ae:()=>s});var i=n(74788),r=n(76480);const o=["*"];let s=(()=>{class t extends r.N9{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),a=(()=>{class t extends r.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dropdown-host"]],features:[i._Bn([{provide:r.N9,useExisting:s},{provide:r.Er,useExisting:t}]),i.qOj],ngContentSelectors:o,decls:3,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&(i.F$t(),i.Hsn(0),i.GkF(1,null,0))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},33770:(t,e,n)=>{n.d(e,{Iy:()=>o,Ye:()=>s,F:()=>y,fv:()=>b,em:()=>w,f$:()=>_,kU:()=>C,tU:()=>x,FS:()=>a,LZ:()=>c,Jy:()=>d,iD:()=>u,Mm:()=>l,Yg:()=>m,bg:()=>f,yZ:()=>p,Kx:()=>g,Ml:()=>O,Lw:()=>v});var i=n(74788),r=n(56083);const o=()=>!1,s=()=>!0,a=79,l=new i.n_E,c=[],u=()=>{},h={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},d=Object.assign(Object.assign({},h),{toJSON:()=>h}),p=t=>String(t),f=(t,e)=>t===e||function(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}(t,e),g=(0,r.X$)("tuiParentAnimation",[(0,r.eR)("* => void",[(0,r.oB)({overflow:"hidden"}),(0,r.IO)(":scope > *",[(0,r.pV)()],{optional:!0})])]),m=((0,r.X$)("tuiParentStop",[(0,r.eR)(":enter",[])]),1e3/15),v=t=>"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,_=" ",y="–",b="-",w="−",C="+",x="​",O="3.35.0"},34887:(t,e,n)=>{n.d(e,{K1:()=>d,Oy:()=>p,TU:()=>h});var i=n(33770),r=n(74788),o=(n(18939),n(36424)),s=n(27788),a=n(85648);const l=12;`${i.f$}${i.F}${i.f$}`.length,new r.OlP("[TUI_DATE_FORMAT]",{factory:()=>"DMY"}),new r.OlP("[TUI_DATE_SEPARATOR]",{factory:()=>"."});class c{constructor(t){this.year=t}static isValidYear(t){return Number.isInteger(t)&&(0,a.wf)(t,0,1e4)}static isLeapYear(t){return t%400==0||t%4==0&&t%100!=0}static getAbsoluteLeapYears(t){return Math.ceil(t/400)+(Math.ceil(t/4)-Math.ceil(t/100))}static lengthBetween(t,e){return e.year-t.year}static normalizeYearPart(t){return(0,a.G1)(t,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return c.isLeapYear(this.year)}get absoluteLeapYears(){return c.getAbsoluteLeapYears(this.year)}yearBefore({year:t}){return this.year=t}yearAfter({year:t}){return this.year>t}append({year:t=0}){const e=this.year+t;return new c(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](t){return Date.prototype[Symbol.toPrimitive].call(this,t)}toJSON(){return this.formattedYear}}class u extends c{constructor(t,e){super(t),this.month=e}static isValidMonth(t,e){return c.isValidYear(t)&&u.isValidMonthPart(e)}static getMonthDaysCount(t,e){switch(t){case o.B.February:return e?29:28;case o.B.April:case o.B.June:case o.B.September:case o.B.November:return 30;default:return 31}}static currentLocal(){const t=new Date;return new u(t.getFullYear(),t.getMonth())}static currentUtc(){const t=new Date;return new u(t.getUTCFullYear(),t.getUTCMonth())}static lengthBetween(t,e){const n=t.month+12*t.year;return e.month+12*e.year-n}static normalizeMonthPart(t){return(0,a.G1)(t,0,11)}static isValidMonthPart(t){return Number.isInteger(t)&&(0,a.wf)(t,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return u.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(t){return this.yearBefore(t)||this.yearSame(t)&&this.month=t.month}monthAfter(t){return this.yearAfter(t)||this.yearSame(t)&&this.month>t.month}append({year:t=0,month:e=0}){const n=(this.year+t)*l+this.month+e;return new u(Math.floor(n/l),n%l)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}}class h extends u{constructor(t,e,n){super(t,e),this.day=n}static fromLocalNativeDate(t){return new h(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new h(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(t,e,n){return u.isValidMonth(t,e)&&Number.isInteger(n)&&(0,a.wf)(n,1,u.getMonthDaysCount(e,c.isLeapYear(t))+1)}static currentLocal(){const t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate();return new h(e,n,i)}static currentUtc(){const t=new Date,e=t.getUTCFullYear(),n=t.getUTCMonth(),i=t.getUTCDate();return new h(e,n,i)}static normalizeOf(t,e,n){const i=c.normalizeYearPart(t),r=u.normalizeMonthPart(e),o=h.normalizeDayPart(n,r,i);return new h(i,r,o)}static lengthBetween(t,e){return Math.round((e.toLocalNativeDate().getTime()-t.toLocalNativeDate().getTime())/864e5)}static parseRawDateString(t,e="DMY"){switch(e){case"YMD":return{day:parseInt(t.slice(8,10),10),month:parseInt(t.slice(5,7),10)-1,year:parseInt(t.slice(0,4),10)};case"MDY":return{day:parseInt(t.slice(3,5),10),month:parseInt(t.slice(0,2),10)-1,year:parseInt(t.slice(6,10),10)};default:return{day:parseInt(t.slice(0,2),10),month:parseInt(t.slice(3,5),10)-1,year:parseInt(t.slice(6,10),10)}}}static normalizeParse(t,e="DMY"){const{day:n,month:i,year:r}=this.parseRawDateString(t,e);return h.normalizeOf(r,i,n)}static jsonParse(t){const{day:e,month:n,year:i}=this.parseRawDateString(t,"YMD");if(!c.isValidYear(i))throw new s.JY(i);if(!u.isValidMonth(i,n))throw new s.AM(n);if(!Number.isInteger(e)||!(0,a.wf)(e,1,u.getMonthDaysCount(n,c.isLeapYear(i))+1))throw new s.I4(e);return new h(i,n,e)}static normalizeDayPart(t,e,n){const i=u.getMonthDaysCount(e,c.isLeapYear(n));return(0,a.G1)(t,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const t=this.dayOfWeek(!1);return t===o.L.Saturday||t===o.L.Sunday}dayOfWeek(t=!0){const e=t?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(t){return this.monthBefore(t)||this.monthSame(t)&&this.day=t.day}dayAfter(t){return this.monthAfter(t)||this.monthSame(t)&&this.day>t.day}dayLimit(t,e){return null!==t&&this.dayBefore(t)?t:null!==e&&this.dayAfter(e)?e:this}append({year:t=0,month:e=0,day:n=0}){const i=(this.year+t)*l+this.month+e;let r=Math.floor(i/l),s=i%l,a=Math.min(this.day,u.getMonthDaysCount(s,c.isLeapYear(r)))+n;for(;a>u.getMonthDaysCount(s,c.isLeapYear(r));)a-=u.getMonthDaysCount(s,c.isLeapYear(r)),s===o.B.December?(r++,s=o.B.January):s++;for(;a<1;)s===o.B.January?(r--,s=o.B.December):s--,a+=u.getMonthDaysCount(s,c.isLeapYear(r));return new h(r,s,a)}getFormattedDay(t,e){const n=this.formattedDayPart,i=this.formattedMonthPart,r=this.formattedYear;switch(t){case"YMD":return`${r}${e}${i}${e}${n}`;case"MDY":return`${i}${e}${n}${e}${r}`;default:return`${n}${e}${i}${e}${r}`}}toString(t="DMY",e="."){return this.getFormattedDay(t,e)}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}}const d=new h(0,0,1),p=new h(9999,11,31);Symbol.toPrimitive},44358:(t,e,n)=>{n.d(e,{UM:()=>o});var i=n(27788);function r(t,e,n=!0){return function(){const i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function o(t,e,n){if("function"==typeof t){const n=e;if("getter"===n.kind)return r(t,n.name);if("method"===n.kind)return function(t){let e,n=[],i=!1;return function(...r){return i&&n.length===r.length&&r.every(((t,e)=>t===n[e]))||(n=r,e=t.apply(this,r),i=!0),e}}(t);throw new i.jw}const{get:o,enumerable:s,value:a}=n,l=e;if(o)return{configurable:!0,enumerable:s,get:r(o,l,s)};if("function"!=typeof a)throw new i.jw;const c=a;return{configurable:!0,enumerable:s,get(){let t,e=[],n=!1;const i=(...i)=>(n&&e.length===i.length&&i.every(((t,n)=>t===e[n]))||(e=i,t=c.apply(this,i),n=!0),t);return Object.defineProperty(this,l,{configurable:!0,value:i}),i}}}},221:(t,e,n)=>{n.d(e,{e:()=>p,A:()=>f});var i=n(20123),r=n(74788),o=n(44358),s=n(66749),a=n(99434),l=n(11927),c=n(88002),u=n(39761),h=n(87519),d=n(13653);let p=(()=>{class t{constructor(t,e,n,i){this.active$=t,this.ngZone=e,this.el=n,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,c.U)((t=>!!t&&this.contains(t))),(0,u.O)(!1),(0,h.x)(),(0,d.T)(1),(0,s.Yr)(this.ngZone)),this.directParentActiveZone&&this.directParentActiveZone.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){this.directParentActiveZone&&this.directParentActiveZone.removeSubActiveZone(this),this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this)}contains(t){return this.el.nativeElement.contains(t)||this.subActiveZones.some(((e,n,i)=>i.indexOf(e)===n&&e.contains(t)))}setZone(t){this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this),t&&t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=(0,l.WX)(this.subActiveZones,this.subActiveZones.indexOf(t))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(a.wk),r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(t,12))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),(0,i.gn)([o.UM],t.prototype,"setZone",null),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},37801:(t,e,n)=>{n.d(e,{k:()=>D,Q7:()=>L,f$:()=>T});var i=n(74788),r=n(63658),o=n(59796),s=n(56693),a=n(55197),l=n(96563);class c{call(t,e){return e.subscribe(new u(t))}}class u extends a.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n{class t{constructor(t,e){this.focusable=t,this.el=e}get element(){var t;return(null===(t=this.focusable)||void 0===t?void 0:t.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t}),t})(),k=(()=>{class t extends O{constructor(t,e,n){super(t,e),this.animationFrame$=n}setFocus(){var t;this.isTextFieldElement?function(...t){if(1===t.length){if(!(0,o.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}((0,h.H)(1e3),this.animationFrame$.pipe((0,g.p)(w.Yg),(0,m.U)((()=>this.element.closest(".ng-animating"))),(t=Boolean,e=>e.lift(new p(t))),(0,v.q)(1))).subscribe((()=>this.element.focus())):this.element.focus()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(b.KZ,10),i.Y36(i.SBq),i.Y36(y.L1))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const M=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"];let P=(()=>{class t extends O{constructor(t,e,n,i,r){super(t,e),this.renderer=n,this.ngZone=i,this.win=r,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.ngZone.runOutsideAngular((()=>this.iosWebkitAutofocus())):this.element.focus()}iosWebkitAutofocus(){var t;const e=this.makeFakeInput(),n=this.getDurationTimeBeforeFocus();let i=0,r=0;const o=()=>e.focus({preventScroll:!0}),s=()=>{clearTimeout(i),i=this.win.setTimeout((()=>{clearTimeout(r),e.removeEventListener("blur",o),e.removeEventListener("focus",s),r=this.win.setTimeout((()=>{this.element.focus({preventScroll:!1}),e.remove()}),n)}))};e.addEventListener("blur",o,{once:!0}),e.addEventListener("focus",s),this.insideDialog()?this.win.document.body.appendChild(e):null===(t=this.element.parentElement)||void 0===t||t.appendChild(e),e.focus({preventScroll:!0})}makeFakeInput(){const t=this.renderer.createElement("input"),e=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(t),t.style.height=(0,C.O)(e.height),t.style.width=(0,C.O)(e.width/2),t.style.position="fixed",t.style.zIndex="-99999999",t.style.caretColor="transparent",t.style.border="none",t.style.outline="none",t.style.color="transparent",t.style.background="transparent",t.style.cursor="none",t.style.fontSize=(0,C.O)(16),t.style.top=(0,C.O)(e.top),t.style.left=(0,C.O)(e.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){const t=this.win.document;for(const e of[t.documentElement,t.body])e.style.setProperty("overflow","auto"),e.style.setProperty("height","100%")}patchFakeInputFromFocusableElement(t){M.forEach((e=>{const n=this.element.getAttribute(e);(0,x.Pc)(n)&&t.setAttribute(e,n)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(b.KZ,10),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(y.m9))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const S={delay:NaN},E=new i.OlP("[TUI_AUTOFOCUS_OPTIONS]",{factory:()=>S});function T(t){return{provide:E,useValue:Object.assign(Object.assign({},S),t)}}const A=new i.OlP("[TUI_AUTOFOCUS_HANDLER]"),I=[{provide:A,useFactory:(t,e,n,i,r,o,s)=>s?new P(t,e,i,r,o):new k(t,e,n),deps:[[new i.FiY,new i.PiD,b.KZ],i.SBq,y.L1,i.Qsj,i.R0b,y.m9,b.FA]},r.a3];let D=(()=>{class t{constructor(t,e,n){this.handler=t,this.options=e,this.destroy$=n,this.autoFocus=!0}ngAfterViewInit(){var t;null!=(t=this.autoFocus)&&"false"!=`${t}`&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then((()=>this.handler.setFocus())):(0,h.H)(this.options.delay).pipe((0,_.R)(this.destroy$)).subscribe((()=>this.handler.setFocus()))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(A),i.Y36(E),i.Y36(r.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[i._Bn(I)]}),t})(),L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},44541:(t,e,n)=>{n.d(e,{t:()=>r,S:()=>o});var i=n(74788);let r=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new i.vpe}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(t){this.checked=t||!1,this.indeterminate=null===t}onChange({checked:t}){this.checked=t,this.indeterminate=!1,this.tuiCheckedChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("change",(function(t){return e.onChange(t.target)})),2&t&&i.Ikx("checked",e.isChecked)("indeterminate",e.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},69727:(t,e,n)=>{n.d(e,{N:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},32498:(t,e,n)=>{n.d(e,{U:()=>r,D:()=>o});var i=n(74788);let r=(()=>{class t{constructor({nativeElement:t}){return new i.SBq(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiElement",""]],exportAs:["elementRef"]}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},88491:(t,e,n)=>{n.d(e,{q:()=>o,c:()=>s});var i=n(74788),r=n(63658);let o=(()=>{class t{constructor(t){this.tuiFocusVisibleChange=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.ku))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[i._Bn([r.a3,r.ku])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},13633:(t,e,n)=>{n.d(e,{t:()=>r,u:()=>o});var i=n(74788);let r=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("tabIndex",e.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},75059:(t,e,n)=>{n.d(e,{U:()=>h,F:()=>d});var i=n(74788),r=n(66749),o=n(57179),s=n(66682),a=n(88002),l=n(39761),c=n(87519),u=n(13653);let h=(()=>{class t{constructor({nativeElement:t},e){this.tuiFocusedChange=(0,s.T)((0,r.mL)(t,"focusin"),(0,r.mL)(t,"focusout")).pipe((0,a.U)((()=>(0,o.V8)(t))),(0,l.O)(!1),(0,c.x)(),(0,u.T)(1),(0,r.Yr)(e))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},96111:(t,e,n)=>{n.d(e,{co:()=>f,VE:()=>g,gs:()=>p});var i=n(74788),r=n(33770),o=n(66749),s=n(64493),a=n(29856),l=n(66682),c=n(88002),u=n(45435),h=n(87519);function d({currentTarget:t,relatedTarget:e}){return!(0,s.ve)(e)||!(0,s.ve)(t)||!t.contains(e)}let p=(()=>{class t extends a.y{constructor(t,e){super((t=>this.stream$.subscribe(t))),this.el=t,this.ngZone=e,this.stream$=(0,l.T)((0,o.mL)(this.el.nativeElement,"mouseenter").pipe((0,c.U)(r.Ye)),(0,o.mL)(this.el.nativeElement,"mouseleave").pipe((0,c.U)(r.Iy)),(0,o.mL)(this.el.nativeElement,"mouseout").pipe((0,u.h)(d),(0,c.U)(r.Iy))).pipe((0,h.x)(),(0,o.Yr)(this.ngZone))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),f=(()=>{class t{constructor(t){this.tuiHoveredChange=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(p))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[i._Bn([p])]}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},56210:(t,e,n)=>{n.d(e,{w:()=>r,H:()=>o});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiItem",""]]}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},92668:(t,e,n)=>{n.d(e,{Ls:()=>o,WD:()=>s});var i=n(74788);class r{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}}let o=(()=>{class t{constructor(t,e){t.createEmbeddedView(e,new r(this))}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},71486:(t,e,n)=>{n.d(e,{W:()=>h,e:()=>d});var i=n(74788),r=n(66749),o=n(63658),s=n(64493),a=n(45435),l=n(46782),c=n(43190),u=n(68307);let h=(()=>{class t{constructor({nativeElement:t},e,n){this.mode="scroll",(0,r.mL)(t,"wheel",{passive:!1}).pipe((0,a.h)((()=>this.enabled)),(0,r.fL)(e),(0,l.R)(n)).subscribe((t=>{this.processEvent(t,!!t.deltaY,t.deltaY?t.deltaY<0:t.deltaX<0)})),(0,r.mL)(t,"touchstart",{passive:!0}).pipe((0,c.w)((({touches:e})=>{let n,{clientX:i,clientY:o}=e[0],s=0,l=0;return(0,r.mL)(t,"touchmove",{passive:!1}).pipe((0,a.h)((()=>this.enabled)),(0,u.b)((t=>{const e=t.changedTouches[0];s=i-e.clientX,l=o-e.clientY,i=e.clientX,o=e.clientY,void 0===n&&(n=Math.abs(l)>Math.abs(s)),this.processEvent(t,n,n?l<0:s<0)})))})),(0,r.fL)(e),(0,l.R)(n)).subscribe()}get enabled(){return"none"!==this.mode}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(t,e,n){var i;const{target:r,currentTarget:o,cancelable:a}=t;a&&(0,s.ve)(r)&&"range"!==(null===(i=r)||void 0===i?void 0:i.type)&&("all"!==this.mode||(!e||o.contains((0,s.Hs)(r)))&&(e||o.contains((0,s.Hs)(r,!1)))?e&&(n&&!(0,s.ty)(r,o,!0,!1)||!n&&!(0,s.ty)(r,o,!0,!0))?t.preventDefault():e||(!n||(0,s.ty)(r,o,!1,!1))&&(n||(0,s.ty)(r,o,!1,!0))||t.preventDefault():t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(o.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("overscroll-behavior",e.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[i._Bn([o.a3])]}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},5962:(t,e,n)=>{n.d(e,{$:()=>o,k:()=>s});var i=n(74788),r=n(63658);let o=(()=>{class t{constructor(t){this.tuiResize=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.tl))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiResize",""]],outputs:{tuiResize:"tuiResize"},features:[i._Bn([r.a3,r.tl])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},46732:(t,e,n)=>{n.d(e,{U_:()=>s,L$:()=>a,gj:()=>l});var i=n(74788),r=n(32498),o=n(75675);let s=(()=>{class t extends r.U{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiResizeable",""]],features:[i.qOj]}),t})(),a=(()=>{class t{constructor(t){this.resizeable=t,this.tuiResizer=[0,0],this.tuiSizeChange=new i.vpe,this.x=NaN,this.y=NaN,this.width=0,this.height=0}get cursor(){return this.tuiResizer[0]?this.tuiResizer[1]?this.tuiResizer[0]*this.tuiResizer[1]>0?"nwse-resize":"nesw-resize":"ew-resize":"ns-resize"}onTouchStart({touches:t}){this.onMouseDown(t[0].clientX,t[0].clientY)}onMouseDown(t,e){this.x=t,this.y=e,this.width=this.resizeable.nativeElement.clientWidth,this.height=this.resizeable.nativeElement.clientHeight}onMouseMove({x:t,y:e,buttons:n}){n?this.onMove(t,e):this.onMouseUp()}onTouchMove({touches:t}){this.onMove(t[0].clientX,t[0].clientY)}onMouseUp(){this.x=NaN}onMove(t,e){if(Number.isNaN(this.x))return;const{style:n}=this.resizeable.nativeElement,i=[this.width+this.tuiResizer[0]*(t-this.x),this.height+this.tuiResizer[1]*(e-this.y)];this.tuiResizer[0]&&(n.width=(0,o.O)(i[0])),this.tuiResizer[1]&&(n.height=(0,o.O)(i[1])),this.tuiSizeChange.emit(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiResizer",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("touchstart.silent.passive",(function(t){return e.onTouchStart(t)}))("mousedown.silent.prevent",(function(t){return e.onMouseDown(t.x,t.y)}))("mousemove.silent",(function(t){return e.onMouseMove(t)}),!1,i.evT)("touchmove.silent",(function(t){return e.onTouchMove(t)}),!1,i.evT)("mouseup.silent",(function(){return e.onMouseUp()}),!1,i.evT)("touchend.silent",(function(){return e.onMouseUp()}),!1,i.evT),2&t&&i.Udp("touch-action","none")("cursor",e.cursor)},inputs:{tuiResizer:"tuiResizer"},outputs:{tuiSizeChange:"tuiSizeChange"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},36424:(t,e,n)=>{n.d(e,{L:()=>i,B:()=>r});var i=(()=>(function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(i||(i={})),i))(),r=(()=>(function(t){t[t.January=0]="January",t[t.February=1]="February",t[t.March=2]="March",t[t.April=3]="April",t[t.May=4]="May",t[t.June=5]="June",t[t.July=6]="July",t[t.August=7]="August",t[t.September=8]="September",t[t.October=9]="October",t[t.November=10]="November",t[t.December=11]="December"}(r||(r={})),r))()},27788:(t,e,n)=>{n.d(e,{I4:()=>i,AM:()=>r,JY:()=>o,ZB:()=>s,aq:()=>a,jw:()=>l,pb:()=>c,j2:()=>u}),Error,Error;class i extends Error{constructor(t){super("")}}class r extends Error{constructor(t){super("")}}class o extends Error{constructor(t){super("")}}class s extends Error{constructor(){super("")}}class a extends Error{constructor(){super("")}}class l extends Error{constructor(){super("")}}Error;class c extends Error{constructor(){super("")}}class u extends Error{constructor(){super("")}}Error,Error},66749:(t,e,n)=>{n.d(e,{nc:()=>A,EK:()=>E,mM:()=>D,ix:()=>z,Xd:()=>R,fw:()=>B,mp:()=>U,ll:()=>j,pt:()=>$,vm:()=>V,mL:()=>T,NA:()=>Y,Yr:()=>H,fL:()=>q});var i=n(27788),r=n(29856),o=n(22759),s=n(66682),a=n(22416),l=n(34022),c=n(41291),u=n(59193),h=n(25917),d=n(77393);class p{call(t,e){return e.subscribe(new f(t))}}class f extends d.L{_next(t){}}var g=n(39761),m=n(15257),v=n(88002),_=n(70409),y=n(79196),b=n(43190),w=n(87519),C=n(47349),x=n(45435),O=n(57057),k=n(68307),M=n(11927),P=n(33770),S=n(57179);function E(t){return new r.y((e=>{if(!t.valueChanges)throw new i.j2;t.valueChanges.pipe((0,g.O)(t.value)).subscribe(e)}))}function T(t,e,n={}){return(0,o.R)(t,e,n)}var A=(()=>(function(t){t[t.Start=0]="Start",t[t.Continues=1]="Continues",t[t.End=2]="End"}(A||(A={})),A))();class I{constructor(t,e){this.stage=t,this.event=e}}function D(t){const{ownerDocument:e}=t;if(!e)throw new i.aq;return(0,a.z)(T(t,"mousedown").pipe((0,m.q)(1),(0,v.U)((t=>new I(A.Start,t)))),(0,s.T)(T(e,"mousemove").pipe((0,v.U)((t=>new I(A.Continues,t)))),(n=e,(0,s.T)(T(n,"mouseup"),T(n,"dragend"))).pipe((0,m.q)(1),(0,v.U)((t=>new I(A.End,t))),function(...t){return e=>(0,a.z)(e,(0,h.of)(...t))}(null))).pipe((0,_.o)(M.Pc))).pipe((0,y.r)());var n}function L(t=0){return(0,l.z)((0,b.w)((()=>(0,c.H)(t).pipe((0,v.U)(P.Iy),(0,g.O)(!0)))),(0,w.x)())}let N,F;function z(t){const e=T(t,"blur"),{ownerDocument:n}=t;if(!n)throw new i.aq;return F&&N||(N=T(n,"mouseup",{capture:!0}).pipe(L(),(0,g.O)(!1),(0,C.d)({bufferSize:1,refCount:!0})),F=T(n,"mousedown",{capture:!0}).pipe(L(),(0,g.O)(!1),(0,C.d)({bufferSize:1,refCount:!0}))),(0,s.T)((0,a.z)(T(t,"focus").pipe((0,m.q)(1)),e.pipe((0,x.h)((()=>!(0,S.V8)(t))),(0,m.q)(1),(function(t){return t.lift(new p)}))).pipe((0,y.r)(),(0,O.M)(F,N,((t,e,n)=>e||n)),(0,x.h)(M.Mv))).pipe((0,b.w)((()=>e.pipe((0,v.U)(P.Iy),(0,m.q)(1),(0,g.O)(!0)))),(0,w.x)())}function R(t,e=Boolean){return(0,l.z)((0,b.w)((n=>e(n)?t(n):u.E)))}function B(t){var e,n;return"observed"in t?t.observed:!!(null===(n=null===(e=t)||void 0===e?void 0:e.observers)||void 0===n?void 0:n.length)}function j(t){return t.changes.pipe((0,g.O)(null),(0,v.U)((()=>(0,M.gD)(t))))}function U(){return(0,k.b)((t=>t.preventDefault()))}function $(t){return T(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function V(){return(0,k.b)((t=>{t.stopPropagation()}))}function Y(t){return(0,k.b)((()=>{t.markForCheck()}))}function q(t){return e=>new r.y((n=>t.runOutsideAngular((()=>e.subscribe(n)))))}function H(t){return(0,l.z)(q(t),function(t){return e=>new r.y((n=>e.subscribe({next:e=>t.run((()=>n.next(e))),error:e=>t.run((()=>n.error(e))),complete:()=>t.run((()=>n.complete()))})))}(t))}},42420:(t,e,n)=>{n.d(e,{c:()=>r,I:()=>o});var i=n(74788);let r=(()=>{class t{transform(t,e,...n){return e(t,...n)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiMapper",type:t,pure:!0}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},63658:(t,e,n)=>{n.d(e,{a3:()=>z,gH:()=>R,ku:()=>B,ll:()=>j,AQ:()=>$,l:()=>V,b0:()=>U,tl:()=>Y,Fr:()=>q,$D:()=>H,bW:()=>Z});var i=n(74788),r=n(74235),o=n(29856),s=n(41439),a=n(66682),l=n(22759),c=n(97968),u=n(66749),h=n(46782),d=n(87874),p=n(43219),f=n(88002),g=n(39761),m=n(87519),v=n(43190),_=n(45435),y=n(59328),b=n(79196),w=n(5304),C=n(54395),x=n(9945),O=n(47349),k=n(42145),M=n(6249),P=n(33770),S=n(64493),E=n(12057);const T=new i.OlP("Box model to observe changes",{providedIn:"root",factory:()=>"content-box"}),A=new i.OlP("Resize Observer API support",{providedIn:"root",factory:()=>!!(0,i.f3M)(M.m9).ResizeObserver});let I=(()=>{class t extends o.y{constructor({nativeElement:t},e,n,i){let r;return super((o=>{if(n)return r=new ResizeObserver((t=>{e.run((()=>{o.next(t)}))})),r.observe(t,{box:i}),()=>{r.disconnect()};o.error("ResizeObserver is not supported in your browser")})),this.pipe((0,x.B)())}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(A),i.LFG(T))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var D=n(11927),L=n(20123),N=n(59178),F=n(99434);let z=(()=>{class t extends r.t{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),R=(()=>{class t{constructor(t,e){this.resolver=t,this.injector=e,this.map=new Map}addComponent(t){this.map.has(t)||this.map.set(t,this.resolver.resolveComponentFactory(t).create(this.injector))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i._Vd),i.LFG(i.gxx))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),B=(()=>{class t extends o.y{constructor({nativeElement:t},e,n){super((t=>this.focusVisible$.subscribe(t))),this.focusVisible$=(0,u.ix)(t).pipe((0,u.NA)(e),(0,h.R)(n))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.sBO),i.LFG(z,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),j=(()=>{class t{generate(){return`tui_${t.autoId++}${Date.now()}`}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),U=(()=>{class t extends o.y{constructor(t,e){super((t=>this.callback$.subscribe(t))),this.callback$=(0,s.P)((()=>{let{nativeElement:n}=t;const i=[e,n];for(;n.parentElement;)n=n.parentElement,i.push(n);return(0,a.T)(...i.map((t=>(0,u.mL)(t,"scroll"))))}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(M.m9))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),$=(()=>{class t extends o.y{constructor(t,{nativeElement:e},n,i,r,o){super((t=>this.obscured$.subscribe(t))),this.obscured$=(0,a.T)((0,a.T)(t,(0,l.R)(i,"resize")).pipe((0,d.g)(0)),o.pipe((0,p.p)(P.Yg))).pipe((0,f.U)((()=>(0,S.PU)(e))),(0,g.O)(null),(0,m.x)(),(0,u.Yr)(n),(0,h.R)(r))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(U,2),i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(M.m9),i.LFG(z,2),i.LFG(M.L1))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{class t extends o.y{constructor({nativeElement:t},e){super((n=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}),(0,u.mL)(t,"mousedown")).pipe((0,v.w)((()=>(0,a.T)((0,u.mL)(e,"touchmove",{passive:!0}).pipe((0,_.h)((({touches:t})=>t.length<2)),(0,f.U)((({touches:t})=>t[0]))),(0,u.mL)(e,"mousemove")))),(0,y.G)(),(0,f.U)((([t,e])=>[e.clientX-t.clientX,e.clientY-t.clientY])),(0,h.R)((0,a.T)((0,u.mL)(e,"touchend"),(0,u.mL)(e,"mouseup"))),(0,b.r)()).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(E.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),Y=(()=>{class t extends I{constructor(t,e,n,i,r,o){return super(t,e,i,r),this.pipe((0,w.K)((()=>o.pipe((0,p.p)(P.Yg),(0,f.U)((()=>`${t.nativeElement.clientWidth} ${t.nativeElement.clientHeight}`)),(0,m.x)(),(0,f.U)((()=>P.LZ))))),(0,C.b)(0),(0,u.fL)(e),(0,x.B)(),(0,h.R)(n))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(z,2),i.LFG(A),i.LFG(T),i.LFG(M.L1))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),q=(()=>{class t{constructor(t,e){this.win=t,this.platformId=e,this.cache=new Map}request(t){const e=this.cache.get(t);if(e)return e;const n=("AbortController"in this.win||(0,E.PM)(this.platformId)?function(t,e={}){const{selector:n}=e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const r=new AbortController,o=r.signal;let s=!0,a=!1;const l=new N.w;let u;if(l.add((()=>{a=!0,s&&r.abort()})),i){if(i.signal)if(i.signal.aborted)r.abort();else{const t=i.signal,e=()=>{o.aborted||r.abort()};t.addEventListener("abort",e),l.add((()=>t.removeEventListener("abort",e)))}u=Object.assign({},i,{signal:o})}else u={signal:o};return fetch(t,u).then((t=>{n?l.add((0,c.D)(n(t)).subscribe((t=>e.next(t)),(t=>{s=!1,a||e.error(t)}),(()=>{s=!1,e.complete()}))):(s=!1,e.next(t),e.complete())})).catch((t=>{s=!1,a||e.error(t)})),l}))}(t):(0,s.P)((()=>(0,c.D)(fetch(t))))).pipe((0,v.w)((e=>(0,L.mG)(this,void 0,void 0,(function*(){if(e.ok)return e.text();throw new Error(`Failed to load ${t} (${e.statusText})`)})))),(0,O.d)({bufferSize:1,refCount:!1}));return this.cache.set(t,n),n}}return t.ɵfac=function(e){return new(e||t)(i.LFG(M.m9),i.LFG(i.Lbi))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),H=(()=>{class t extends o.y{constructor({nativeElement:t},{timeout:e,threshold:n},i){super((r=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}),(0,u.mL)(i,"touchend")).pipe((0,y.G)(),(0,_.h)((([t,e])=>!!t.touches.length&&t.touches[0].identifier===e.changedTouches[0].identifier)),(0,f.U)((([t,i])=>{const r=t.touches[0].clientX,o=t.touches[0].clientY,s=r-i.changedTouches[0].clientX,a=o-i.changedTouches[0].clientY,l=i.timeStamp-t.timeStamp;return(Math.abs(s)>n||Math.abs(a)>n)&&l{class t extends o.y{constructor({nativeElement:t},{wheelSensitivity:e}){super((n=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}).pipe((0,_.h)((({touches:t})=>t.length>1)),(0,v.w)((e=>(0,u.mL)(t,"touchmove",{passive:!0}).pipe((0,u.mp)(),(0,k.R)(((t,e)=>{const n=(0,D.q2)(e);return{event:e,distance:n,delta:.01*(n-t.distance)}}),{event:e,distance:(0,D.q2)(e),delta:0}),(0,f.U)((({event:t,delta:e})=>({clientX:(t.touches[0].clientX+t.touches[1].clientX)/2,clientY:(t.touches[0].clientY+t.touches[1].clientY)/2,delta:e,event:t}))),(0,h.R)((0,u.mL)(t,"touchend")))))),(0,u.mL)(t,"wheel",{passive:!1}).pipe((0,u.mp)(),(0,f.U)((t=>({clientX:t.clientX,clientY:t.clientY,delta:-t.deltaY*e,event:t}))))).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(F.AK))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},99434:(t,e,n)=>{n.d(e,{wk:()=>E,bS:()=>A,qY:()=>D,KZ:()=>N,XG:()=>U,B4:()=>$,FA:()=>z,fL:()=>j,Sg:()=>V,jF:()=>Y,i0:()=>q,s6:()=>H,AK:()=>Z,XH:()=>I,Q:()=>L,FT:()=>F});var i=n(12057),r=n(74788),o=n(6249),s=n(66749);const a=/ipad|iphone|ipod/;function l(t){return a.test(t.userAgent.toLowerCase())||function(t){return t.platform.startsWith("Mac")||"iPhone"===t.platform}(t)&&t.maxTouchPoints>1}const c=/^((?!chrome|android).)*safari/i;var u=n(64493),h=n(26215),d=n(41291),p=n(66682),f=n(25917),g=n(43190),m=n(88002),v=n(39761),_=n(9945),y=n(46782),b=n(72361),w=n(57057),C=n(45435),x=n(15257),O=n(87519),k=n(47349),M=n(79221),P=n(33770);const S=new r.OlP("[TUI_REMOVED_ELEMENT]",{factory:()=>{const t={onRemovalComplete:()=>{}},e=new h.X(null),n=(0,r.f3M)(M.Th,r.XFs.Optional)||t,{onRemovalComplete:i=t.onRemovalComplete}=n;return n.onRemovalComplete=(t,r)=>{e.next(t),i.call(n,t,r)},e.pipe((0,g.w)((t=>(0,d.H)(0).pipe((0,m.U)((()=>null)),(0,v.O)(t)))),(0,_.B)())}}),E=new r.OlP("[TUI_ACTIVE_ELEMENT]",{factory:()=>{const t=(0,r.f3M)(S),e=(0,r.f3M)(o.m9),n=(0,r.f3M)(i.K0),a=(0,s.mL)(e,"focusout"),l=(0,s.mL)(e,"focusin"),c=(0,s.mL)(e,"blur"),h=(0,s.mL)(e,"mousedown"),k=(0,s.mL)(e,"mouseup");return(0,p.T)(a.pipe((0,y.R)(h),(0,b.a)((()=>k)),(0,w.M)(t),(0,C.h)((([t,e])=>T((0,u.mA)(t),e))),(0,m.U)((([{relatedTarget:t}])=>t))),c.pipe((0,m.U)((()=>n.activeElement)),(0,C.h)((t=>!!(null==t?void 0:t.matches("iframe"))))),l.pipe((0,g.w)((t=>{const e=(0,u.mA)(t),i=(0,u.Wf)(e);return i===n?(0,f.of)(e):function(t){return(0,p.T)((0,s.mL)(t,"focusin").pipe((0,m.U)((({target:t})=>t))),(0,s.mL)(t,"focusout").pipe((0,C.h)((({target:t,relatedTarget:e})=>!!e&&T(t))),(0,m.U)((({relatedTarget:t})=>t))))}(i).pipe((0,v.O)(e))}))),h.pipe((0,g.w)((t=>{const e=(0,u.mA)(t);return n.activeElement&&n.activeElement!==n.body?a.pipe((0,x.q)(1),(0,m.U)((()=>e)),(0,y.R)((0,d.H)(0))):(0,f.of)(e)})))).pipe((0,O.x)(),(0,_.B)())}});function T(t,e=null){return(0,u.Wf)(t).activeElement!==t&&!t.matches(":disabled")&&!(null==e?void 0:e.contains(t))}const A=new r.OlP("[TUI_ALERTS]",{factory:()=>[]});function I(t){return{provide:A,multi:!0,useExisting:t}}new r.OlP("[TUI_DEFAULT_RENDERER]",{factory:()=>(0,r.f3M)(r.FYo).createRenderer(null,null)});const D=new r.OlP("[TUI_DIALOGS]",{factory:()=>[]});function L(t){return{provide:D,multi:!0,useExisting:t}}new r.OlP("[TUI_ENSURE_BASE_HREF]",{factory:()=>{const t=(0,r.f3M)(i.K0).createElement("a");return t.href="",t.pathname}});const N=new r.OlP("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function F(t){return{provide:N,useExisting:t}}const z=new r.OlP("[TUI_IS_IOS]",{factory:()=>l((0,r.f3M)(o.s5))}),R=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,B=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,j=new r.OlP("[TUI_IS_MOBILE]",{factory:()=>R.test((0,r.f3M)(o.yZ).toLowerCase())||B.test((0,r.f3M)(o.yZ).slice(0,4).toLowerCase())}),U=new r.OlP("[TUI_IS_ANDROID]",{factory:()=>(0,r.f3M)(j)&&!(0,r.f3M)(z)}),$=(new r.OlP("[TUI_IS_APPLE]",{factory:()=>{return l(t=(0,r.f3M)(o.s5))||c.test(t.userAgent.toLowerCase());var t}}),new r.OlP("[TUI_IS_CHROMIUM]",{factory:()=>!!(0,r.f3M)(o.m9).chrome}),new r.OlP("[TUI_IS_CYPRESS]",{factory:()=>!!(0,r.f3M)(o.m9).Cypress})),V=(new r.OlP("[TUI_IS_FIREFOX]",{factory:()=>{var t;return void 0!==(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.mozCancelFullScreen)}}),new r.OlP("[TUI_IS_STACKBLITZ]",{factory:()=>(0,r.f3M)(o.m9).location.host.endsWith("stackblitz.io")})),Y=new r.OlP("[TUI_IS_WEBKIT]",{factory:()=>{var t;return!!(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.webkitConvertPointFromNodeToPage)}}),q=new r.OlP("[TUI_RANGE]",{factory:()=>(0,i.NF)((0,r.f3M)(r.Lbi))?new Range:{}}),H=new r.OlP("[TUI_SWIPE_OPTIONS]",{factory:()=>({timeout:500,threshold:30})}),Z=(new r.OlP("[TUI_TAKE_ONLY_TRUSTED_EVENTS]",{factory:P.Ye}),new r.OlP("[TUI_TOUCH_SUPPORTED]",{factory:()=>(0,r.f3M)(o.m9).matchMedia("(any-pointer: coarse)").matches}),new r.OlP("[TUI_WINDOW_HEIGHT]",{factory:()=>{const t=(0,r.f3M)(o.m9);return(0,s.mL)(t,"resize").pipe((0,v.O)(null),(0,m.U)((()=>t.innerHeight)),(0,k.d)({bufferSize:1,refCount:!0}))}}),new r.OlP("[TUI_ZOOM_OPTIONS]",{factory:()=>({wheelSensitivity:.01})}))},41213:(t,e,n)=>{n.d(e,{xz:()=>r,oK:()=>o,Ex:()=>s});const i="edge/";function r(t,e){return parseInt(e.slice(e.toLowerCase().indexOf(i)+i.length),10){function i(t){const e=t.replace("#","").split("").map(((t,e,n)=>3===n.length?t+t:t)).join("").match(/.{2}/g);return e?e.map((t=>Number.parseInt(t,16))):[0,0,0]}function r(t,e,n){return[o(t,e,n,5),o(t,e,n,3),o(t,e,n,1)]}function o(t,e,n,i){const r=(i+t/60)%6;return Math.round(n-n*e*Math.max(Math.min(r,4-r,1),0))}n.d(e,{RO:()=>i,qZ:()=>r,Mp:()=>a,WS:()=>l,bD:()=>c});const s=[0,0,0,1];function a(t){const e=t.replace("#","").replace("rgba(","").replace("rgb(","").replace(")",""),n=e.split(",").map((t=>parseFloat(t)));if(4===n.length)return n;if(3===n.length)return n.concat(1);const i=e.match(new RegExp(`(.{${e.length/3}})`,"g"));if(!i)return s;const r=i.map((t=>parseInt(e.length%2?t+t:t,16)));return[r[0]||s[0],r[1]||s[1],r[2]||s[2],void 0===r[3]?s[3]:r[3]]}function l(t,e,n){return`#${[t,e,n].map((t=>t.toString(16).padStart(2,"0"))).join("")}`}function c(t,e,n){const i=Math.max(t,e,n),r=i-Math.min(t,e,n),o=r&&(i===t?(e-n)/r:i===e?2+(n-t)/r:4+(t-e)/r);return[60*(o<0?o+6:o),i&&r/i,i]}},64493:(t,e,n)=>{n.d(e,{ty:()=>o,PP:()=>s,mA:()=>h,Wf:()=>d,PU:()=>p,YX:()=>f,Hs:()=>g,ve:()=>l,Hn:()=>m,dW:()=>c,wq:()=>u,qY:()=>a,dD:()=>v});var i=n(85648),r=n(11927);function o(t,e,n,i){return n?function(t,e,n){let i=t;for(;i!==e.parentElement;){if(Math.floor(i.scrollTop)>0&&!n||Math.ceil(i.scrollTop+i.clientHeight)0&&!n||Math.ceil(i.scrollLeft+i.clientWidth)!t.contains(e)));return 4===m.length?m:null}function f(t,e){let{offsetTop:n,offsetLeft:i,offsetParent:r}=e;for(;c(r)&&r!==t;)n+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return{offsetTop:n,offsetLeft:i}}function g(t,e=!0){return null===t?null:e&&t.scrollHeight>t.clientHeight||!e&&t.scrollWidth>t.clientWidth?t:g(t.parentElement,e)}function m(t){return a(t)&&!t.readOnly||!!t.isContentEditable}function v(t=0,e=0){const n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON:()=>n})}n(18939)},57179:(t,e,n)=>{n.d(e,{hp:()=>s,BW:()=>c,ie:()=>o,V8:()=>u,zb:()=>h,dT:()=>a,_h:()=>l,VR:()=>d,Pg:()=>p});var i=n(64493),r=n(33770);function o({activeElement:t}){if(!(null==t?void 0:t.shadowRoot))return t;let e=t.shadowRoot.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function s(t){const e=o(t);(0,i.dW)(e)&&e.blur()}function a(t){if(t.hasAttribute("disabled")||"-1"===t.getAttribute("tabIndex"))return!1;if((0,i.dW)(t)&&t.isContentEditable||"0"===t.getAttribute("tabIndex"))return!0;switch(t.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return t.hasAttribute("controls");case"INPUT":return"hidden"!==t.getAttribute("type");case"A":case"LINK":return t.hasAttribute("href");default:return!1}}function l(t){return!t.hasAttribute("disabled")&&("-1"===t.getAttribute("tabIndex")||a(t))}function c({initial:t,root:e,previous:n=!1,keyboard:o=!0}){if(!e.ownerDocument)return null;const s=o?a:l,c=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,r.Lw);for(c.currentNode=t;n?c.previousNode():c.nextNode();)if((0,i.dW)(c.currentNode)&&(t=c.currentNode),(0,i.dW)(t)&&s(t))return t;return null}function u(t){return!!(null==t?void 0:t.ownerDocument)&&o(t.ownerDocument)===t}function h(t){if(!t.ownerDocument||!t.contains)return!1;const e=o(t.ownerDocument);return null!==e&&t.contains(e)}function d(t,e,n){for(t+=n;t>=0&&t{function i(t){return`${t}px`}n.d(e,{O:()=>i}),n(18939)},85648:(t,e,n)=>{function i(t,e,n){return Math.min(n,Math.max(e,t))}function r(t,e,n){return t>=e&&t=n?n:Math.round(t)}n.d(e,{Ki:()=>i,wf:()=>r,G1:()=>o,FG:()=>a,h0:()=>c,HW:()=>u,oY:()=>h}),n(18939);const s=292;function a(t,e=0){return l(t,e,Math.round)}function l(t,e,n){if(t===1/0)return t;e=Math.min(e,s);const i=`${t}e`.split("e"),r=`${n(Number(`${i[0]}e${Number(i[1])+e}`))}e`.split("e");return Number(`${r[0]}e${Number(r[1])-e}`)}function c({value:t,precision:e,method:n}){switch(n){case"round":return a(t,e);case"ceil":return function(t,e=0){return l(t,e,Math.ceil)}(t,e);case"floor":return function(t,e=0){return l(t,e,Math.floor)}(t,e);default:return function(t,e=0){return l(t,e,Math.trunc)}(t,e)}}function u(t){return t?1:0}function h(t){return parseInt(t,10)}},11927:(t,e,n)=>{n.d(e,{WX:()=>r,xT:()=>s,A2:()=>a,q2:()=>l,gD:()=>c,M8:()=>u,Mv:()=>h,dt:()=>d,Pc:()=>p,Aj:()=>o,lj:()=>f,pf:()=>g});var i=n(34887);function r(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}function o(t){return"string"==typeof t}function s(t){return JSON.parse(JSON.stringify(t,((t,e)=>function(t){const e=o(t)?t.trim():t;return[void 0,null,NaN,""].includes(e)}(e)?void 0:e)))}function a(t,e){const n=t instanceof i.TU?Number(t.toUtcNativeDate()):t,r=e instanceof i.TU?Number(e.toUtcNativeDate()):e;return n===r?0:o(n)&&o(r)?n.localeCompare(r):n>r?1:-1}function l({touches:t}){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)}function c(t){let e=[];return t.find(((t,n,i)=>(e=i,!0))),e}function u(t,e){return Math.abs(e)>Math.abs(t)?e>0?"top":"bottom":t>0?"left":"right"}function h(t){return!t}function d(t){return"number"==typeof t}function p(t){return null!=t}function f(t){return new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|localhost|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}function g(t,e){return Array.from(t.reduce(((t,n)=>t.has(n[e])?t:t.set(n[e],n)),new Map).values())}},68192:(t,e,n)=>{n.d(e,{N:()=>r});var i=n(11927);function r(t,e){if((0,i.Aj)(t)){const n=function(t){var e;const n=(null!==(e=t.match(/url\(("?)('*)#(.*?)('*)\)/g))&&void 0!==e?e:[]).map((t=>t.slice(4,t.length-1).replace(/['"#]+/g,"")));return Array.from(new Set(n))}(t);return n.reduce(((t,n)=>{const i=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r=`${n}_${e||Math.floor(Math.random()*Date.now())}`;return t.replace(new RegExp(`"${i}"`,"g"),`"${r}"`).replace(new RegExp(`'${i}'`,"g"),`'${r}'`).replace(new RegExp(`url\\('#${i}'\\)`,"g"),`url('#${r}')`).replace(new RegExp(`url\\("#${i}"\\)`,"g"),`url("#${r}")`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${r})`)}),t)}return t}},6249:(t,e,n)=>{n.d(e,{L1:()=>p,UA:()=>f,s5:()=>g,yZ:()=>m,m9:()=>d});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),c=n(87519),u=n(47349),h=n(12057);const d=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(h.K0);if(!t)throw new Error("Window is not available");return t}}),p=new i.OlP("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:t,cancelAnimationFrame:e}=(0,i.f3M)(d);return new r.y((n=>{let i=NaN;const r=e=>{n.next(e),i=t(r)};return i=t(r),()=>{e(i)}})).pipe((0,s.B)())}}),f=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(d).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(d).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(d).CSS||{escape:t=>t,supports:()=>!1}}),new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(d).history})),g=(new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(d).localStorage}),new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(d).location}),new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(d).navigator})),m=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(g).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(g).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(h.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)((()=>"hidden"!==t.visibilityState)),(0,c.x)(),(0,u.d)({refCount:!1,bufferSize:1}))}}),new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(d).performance}),new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(d).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(d).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(d);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(d).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(g).userAgent}))},43631:(t,e,n)=>{n.d(e,{FP:()=>f,D1:()=>g,kk:()=>u,uG:()=>m,O4:()=>y,c2:()=>d,UK:()=>h,P7:()=>_,Ic:()=>C,Fe:()=>p,Sv:()=>w,ei:()=>v,Wk:()=>b});var i=n(74788),r=n(63658),o=n(76480),s=n(29856),a=n(66682),l=n(87519),c=n(46782);class u extends s.y{}function h(t){return{provide:u,multi:!0,useExisting:t}}class d{}function p(t){return{provide:d,multi:!0,useExisting:t}}let f=(()=>{class t{constructor(t,e,n){this.destroy$=t,this.drivers=e,this.vehicles=n}ngOnInit(){const t=this.vehicles.find((({type:t})=>t===this.type));(0,a.T)(...this.drivers.filter((({type:t})=>t===this.type))).pipe((0,l.x)(),(0,c.R)(this.destroy$)).subscribe((e=>{null==t||t.toggle(e)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(u),i.Y36(d))},t.ɵdir=i.lG2({type:t}),t})(),g=(()=>{class t{constructor(t){this.host=t}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var t;return(null===(t=this.host.value)||void 0===t?void 0:t.toString())||""}process(t){}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.M$))},t.ɵdir=i.lG2({type:t}),t})();class m{}function v(t){return{provide:m,deps:[[new i.tp0,m]],useFactory:e=>e.find((e=>e.type===t))}}function _(t){return{provide:m,multi:!0,useExisting:t}}class y{}function b(t,e){return{provide:y,deps:[[new i.tp0,y],e],useFactory:w(t)}}function w(t){return(e,n)=>e.find((e=>e!==n&&e.type===t))||n}function C(t){return{provide:y,multi:!0,useExisting:t}}},49941:(t,e,n)=>{n.d(e,{i9:()=>c,QF:()=>l,eu:()=>a,gI:()=>u,Gw:()=>h,hN:()=>d,X9:()=>p});var i=n(56083);const r="{{duration}}ms ease-in-out",o={params:{duration:300}},s=300,a=(0,i.X$)("tuiHeightCollapse",[(0,i.eR)(":enter",[(0,i.oB)({height:0}),(0,i.jt)(r,(0,i.oB)({height:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({height:"*"}),(0,i.jt)(r,(0,i.oB)({height:0}))],o)]),l=((0,i.X$)("tuiHeightCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({height:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({height:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiWidthCollapse",[(0,i.eR)(":enter",[(0,i.oB)({width:0}),(0,i.jt)(r,(0,i.oB)({width:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({width:"*"}),(0,i.jt)(r,(0,i.oB)({width:0}))],o)]),(0,i.X$)("tuiWidthCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({width:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({width:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeIn",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0}),(0,i.jt)(r,(0,i.oB)({opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({opacity:1}),(0,i.jt)(r,(0,i.oB)({opacity:0}))],o)])),c=((0,i.X$)("tuiFadeInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({opacity:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:1}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({opacity:1}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)]),(0,i.X$)("tuiFadeInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(10px)",opacity:0}))],o)]),(0,i.X$)("tuiDropdownAnimation",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)])),u=(0,i.X$)("tuiScaleIn",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),h=((0,i.X$)("tuiScaleInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideIn",[(0,i.eR)("* => left",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("left => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o),(0,i.eR)("* => right",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("right => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)])),d=((0,i.X$)("tuiSlideInLeft",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o)]),(0,i.X$)("tuiSlideInLeftList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInRight",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)])),p=((0,i.X$)("tuiSlideInRightList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translate3d(0,{{start}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),(0,i.eR)(":leave",[(0,i.oB)({transform:"translate3d(0,{{end}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]));(0,i.X$)("tuiSlideInTopList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))],o)]),(0,i.X$)("tuiSlideInBottomList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))])],{optional:!0})],o)])},12628:(t,e,n)=>{n.d(e,{v0:()=>T,fN:()=>A,O0:()=>E});var i=n(74788),r=n(76480),o=n(57179),s=n(63658),a=n(99434),l=n(75452),c=n(59193),u=n(39761),h=n(88002),d=n(87519),p=n(77320),f=n(54789),g=n(40719),m=n(12057),v=n(91489),_=n(89570);const y=["tuiButton",""];function b(t,e){1&t&&i.GkF(0)}function w(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function C(t,e){if(1&t&&(i.TgZ(0,"span",6),i.YNc(1,w,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function x(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function O(t,e){if(1&t&&(i.TgZ(0,"span",9),i.YNc(1,x,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconRight)}}function k(t,e){if(1&t&&i._UZ(0,"tui-loader",10),2&t){const t=i.oxw();i.Q6J("size",t.loaderSize)("inheritColor",!0)}}const M=["*"],P={size:"l",shape:null,appearance:p.Nm.Primary},S=new i.OlP("[TUI_BUTTON_OPTIONS]",{factory:()=>P}),E=t=>({provide:S,useValue:Object.assign(Object.assign({},P),t)});let T=(()=>{class t extends r.Xn{constructor(t,e,n,i){var r;super(),this.mode=t,this.el=e,this.options=i,this.mode$=(null===(r=this.mode)||void 0===r?void 0:r.change$)||c.E,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe((0,u.O)(null),(0,h.U)((()=>this.computedAppearance)),(0,d.x)()),n.subscribe((t=>{this.updateFocusVisible(t)}))}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&(0,o.V8)(this.el.nativeElement)}get loaderSize(){return"l"===this.size||"xl"===this.size?"m":"s"}get computedAppearance(){var t;return null!==(t=this.appearance)&&void 0!==t?t:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(t){this.updateFocused(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.w,8),i.Y36(i.SBq),i.Y36(s.ku),i.Y36(S))},t.ɵcmp=i.Xpm({type:t,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)})),2&t&&(i.Ikx("tabIndex",e.tabIndex),i.uIk("data-shape",e.shape)("data-size",e.size)("data-appearance",e.computedAppearance)("disabled",e.nativeDisabled),i.ekj("_loading",e.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,a.FT)(t),s.a3,s.ku]),i.qOj],attrs:y,ngContentSelectors:M,decls:8,vars:11,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"appearance","hover","active","disabled","focus"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"size","inheritColor",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"size","inheritColor"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,b,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.TgZ(3,"span",2),i.YNc(4,C,2,1,"span",3),i.Hsn(5),i.YNc(6,O,2,1,"span",4),i.qZA(),i.YNc(7,k,1,2,"tui-loader",5),i.qZA()),2&t&&(i.Q6J("ngIf",i.lcZ(1,9,e.appearance$)),i.xp6(2),i.Q6J("appearance",e.computedAppearance)("hover",e.pseudoHover)("active",e.pseudoActive)("disabled",e.computedDisabled)("focus",e.computedFocusVisible),i.xp6(2),i.Q6J("ngIf",e.icon),i.xp6(2),i.Q6J("ngIf",e.iconRight),i.xp6(1),i.Q6J("ngIf",e.showLoader))},directives:[m.O5,v.o,_.Li,f.PN,g.kM],pipes:[m.Ov],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;outline:none;color:inherit}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin-right:0 -.125rem 0 .125rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;z-index:0;box-sizing:border-box;cursor:pointer}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,_.wq,v.W,f.EI,g.dS]]}),t})()},75111:(t,e,n)=>{n.d(e,{qi:()=>E,gX:()=>T,pc:()=>I,Rs:()=>A,vK:()=>S});var i=n(97582),r=n(74788),o=n(57179),s=n(33770),a=n(66749),l=n(11927),c=n(64493),u=n(44358),h=n(79588),d=n(79456),p=n(88002),f=n(98952),g=n(30126),m=n(54789),v=n(89570),_=n(12057);const y=["tuiOption",""];function b(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t,"\n")}}function w(t,e){1&t&&r._UZ(0,"tui-svg",3)}function C(t,e){if(1&t&&(r.Hsn(0),r.YNc(1,w,1,0,"tui-svg",2)),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.dropdown)}}const x=function(t){return{$implicit:t}},O=["*"];function k(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function M(t,e){if(1&t&&(r.TgZ(0,"div",2),r.YNc(1,k,2,1,"ng-container",3),r.ALo(2,"async"),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.emptyContent||r.lcZ(2,1,t.defaultEmptyContent$))}}function P({currentTarget:t}){return!(0,o.V8)(t)}let S=(()=>{class t{constructor(t,e,n,i,r){this.content=t,this.dataList=e,this.el=n,this.host=i,this.dropdown=r,this.size=null,this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)}onMouseMove({currentTarget:t}){t.focus({preventScroll:!0})}ngOnDestroy(){this.dataList.handleFocusLossIfNecessary(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(d.IQ,8),r.Y36((0,r.Gpc)((()=>E))),r.Y36(r.SBq),r.Y36(d.N1,8),r.Y36(f.td,10))},t.ɵcmp=r.Xpm({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.onClick()}))("mousemove.silent",(function(t){return e.onMouseMove(t)})),2&t&&(r.uIk("disabled",e.disabled||null)("data-size",e.size)("role",e.role),r.ekj("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:y,ngContentSelectors:O,decls:3,vars:4,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"],["base",""],["src","tuiIconChevronRight","class","t-arrow",4,"ngIf"],["src","tuiIconChevronRight",1,"t-arrow"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,b,2,1,"ng-container",0),r.YNc(1,C,2,1,"ng-template",null,1,r.W1O)),2&t){const t=r.MAs(2);r.Q6J("polymorpheusOutlet",e.content||t)("polymorpheusOutletContext",r.VKq(2,x,t))}},directives:[v.Li,_.O5,m.PN],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:space-between;text-align:left;box-sizing:border-box;color:var(--tui-text-01);border-radius:var(--tui-radius-s);outline:none;text-decoration:none;cursor:pointer;background-clip:padding-box;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem;margin:.125rem 0}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[_nghost-%COMP%]:focus, ._with-dropdown[_nghost-%COMP%]{background-color:var(--tui-clear)}[_nghost-%COMP%] [data-list-size="s"][_nghost-%COMP%], [data-list-size="s"] [_nghost-%COMP%], [_nghost-%COMP%] [data-list-size="xs"][_nghost-%COMP%], [data-list-size="xs"] [_nghost-%COMP%], [data-size=s][data-size=s][_nghost-%COMP%], [data-size=xs][data-size=xs][_nghost-%COMP%]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem;margin:var(--tui-data-list-margin) 0}[_nghost-%COMP%] [data-list-size="m"][_nghost-%COMP%], [data-list-size="m"] [_nghost-%COMP%], [data-size=m][data-size=m][_nghost-%COMP%]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem;margin:var(--tui-data-list-margin) 0}[_nghost-%COMP%] [data-list-size="l"][_nghost-%COMP%], [data-list-size="l"] [_nghost-%COMP%], [data-size=l][data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem;margin:var(--tui-data-list-margin) 0}.t-arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}'],changeDetection:0}),(0,i.gn)([(0,g.uX)(P)],t.prototype,"onMouseMove",null),t})(),E=(()=>{class t{constructor(t,e,n){var i;this.controller=t,this.el=e,this.defaultEmptyContent$=n,this.options=s.Mm,this.role="listbox",this.size=(null===(i=this.controller)||void 0===i?void 0:i.size)||"m"}get empty$(){return(0,a.ll)(this.options).pipe((0,p.U)((({length:t})=>!t)))}onFocusIn(t,e){e.contains(t)||this.origin||(this.origin=t)}noop(){}onKeyDownArrow(t,e){const{elements:n}=this;(0,o.VR)(n.indexOf(t),n,e)}handleFocusLossIfNecessary(t=this.el.nativeElement){this.origin&&(0,o.zb)(t)&&(0,o.Pg)(this.origin,!0,!0)}getOptions(t=!1){return this.options.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(l.Pc)}onFocus({target:t},e){if(!(0,c.ve)(t))return;const{elements:n}=this;(0,o.VR)(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(t)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(h.Cs,8),r.Y36(r.SBq),r.Y36(d.PH))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-data-list"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,S,5),2&t){let t;r.iGM(t=r.CRH())&&(e.options=t)}},hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("focusin",(function(t){return e.onFocusIn(t.relatedTarget,t.currentTarget)}))("mousedown.prevent",(function(){return e.noop()}))("keydown.arrowDown.prevent",(function(t){return e.onKeyDownArrow(t.target,1)}))("keydown.arrowUp.prevent",(function(t){return e.onKeyDownArrow(t.target,-1)}))("wheel.silent.passive",(function(){return e.handleFocusLossIfNecessary()}))("mouseleave",(function(t){return e.handleFocusLossIfNecessary(t.target)})),2&t&&r.uIk("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[r._Bn([(0,d.RB)(t),h.Y0])],ngContentSelectors:O,decls:5,vars:3,consts:[["tabindex","0",1,"t-trap",3,"focusin"],["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.NdJ("focusin",(function(t){return e.onFocus(t,!0)})),r.qZA(),r.Hsn(1),r.YNc(2,M,3,3,"div",1),r.ALo(3,"async"),r.TgZ(4,"div",0),r.NdJ("focusin",(function(t){return e.onFocus(t,!1)})),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",r.lcZ(3,1,e.empty$)))},directives:[_.O5,v.Li],pipes:[_.Ov],styles:['tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-03)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-list-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-list-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list>.t-empty{margin:.75rem 1rem}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-02);flex-direction:column;line-height:1rem}tui-data-list[data-list-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-list-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-list-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-base-03)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before{padding:0;margin:0}\n'],encapsulation:2,changeDetection:0}),(0,i.gn)([u.UM],t.prototype,"empty$",null),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})(),A=(()=>{class t{constructor(){this.label=""}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("data-label",e.label)},inputs:{label:"label"}}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[_.ez,m.EI,v.wq]]}),t})()},20707:(t,e,n)=>{n.d(e,{up:()=>$});var i=n(74788),r=n(37801),o=n(66749),s=n(64493),a=n(33770),l=n(99434),c=n(63658),u=n(76480),h=n(49941),d=n(79456),p=n(89570),f=n(59193),g=n(29856),m=n(66682),v=n(79765),_=n(95639),y=n(25917),b=n(45435),w=n(43190),C=n(15257),x=n(88002),O=n(46782),k=n(12057),M=n(62579),P=n(47766),S=n(12628);function E(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function T(t,e){if(1&t&&(i.TgZ(0,"header",6),i.YNc(1,E,2,1,"ng-container",3),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function A(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"div",7),i.TgZ(2,"div",8),i.TgZ(3,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw().context.$implicit.complete()})),i._uU(4),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=e.polymorpheusOutlet,n=i.oxw();let r;i.xp6(1),i.Q6J("innerHTML",t,i.oJD),i.xp6(3),i.hij(" ",(null==(r=n.context.data)?null:r.button)||"OK"," ")}}function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",10),i.TgZ(1,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().close$.next()}))("mousedown.prevent.silent",(function(){return 0})),i.ALo(2,"async"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("appearance",t.fullscreen?"secondary":"")("title",i.lcZ(2,2,t.closeWord$))}}const D={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},L=new i.OlP("[TUI_DIALOGS_CLOSE]",{factory:()=>f.E}),N=new i.OlP("[TUI_DIALOG_OPTIONS]",{factory:()=>D});let F=(()=>{class t extends g.y{constructor(t,e,n){super((t=>(0,m.T)(this.esc$,this.mousedown$).subscribe(t))),this.win=t,this.doc=e,this.el=n,this.esc$=(0,o.mL)(this.doc,"keydown").pipe((0,b.h)((t=>{const e=(0,s.mA)(t);return"Escape"===t.key&&(this.element.contains(e)||this.isOutside(e))}))),this.mousedown$=(0,o.mL)(this.doc,"mousedown").pipe((0,b.h)((t=>(0,P.ic)(this.win)-t.clientX>17&&this.isOutside((0,s.mA)(t)))),(0,w.w)((()=>(0,o.mL)(this.doc,"mouseup").pipe((0,C.q)(1),(0,x.U)(s.mA),(0,b.h)((t=>this.isOutside(t)))))))}get element(){return this.el.nativeElement}isOutside(t){return(0,s.ve)(t)&&(!(0,s.PP)(this.element,t)||t===this.element)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(M.m9),i.LFG(k.K0),i.LFG(i.SBq))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();const z=new Error("Required dialog was dismissed");let R=(()=>{class t{constructor(t,e,n,i,r,o,s){this.duration=t,this.isMobile=e,this.context=n,this.closeWord$=s,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new v.xQ,(0,m.T)(this.close$.pipe((0,w.w)((()=>B(n.closeable)))),r.pipe((0,w.w)((()=>B(n.dismissible)))),o.pipe((0,x.U)(a.Ye))).pipe((0,b.h)(Boolean),(0,O.R)(i)).subscribe((()=>{this.close()}))}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&("fullscreen"===this.size||"page"===this.size)}close(){this.context.required?this.context.$implicit.error(z):this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(d.dx),i.Y36(l.fL),i.Y36(p.yf),i.Y36(c.a3,2),i.Y36(F),i.Y36(L),i.Y36(d.U0))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dialog"]],hostVars:5,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size),i.d8E("@tuiSlideInTop",e.slideInTop)("@tuiFadeIn",e.slideInTop),i.ekj("_centered",e.header))},features:[i._Bn([c.a3,F])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["tuiButton","","tuiAutoFocus","","type","button","size","m",3,"click"],[1,"t-wrapper"],["type","button","tuiIconButton","","automation-id","tui-dialog__close","size","s","icon","tuiIconCloseLarge","shape","rounded",1,"t-close",3,"appearance","title","click","mousedown.prevent.silent"]],template:function(t,e){1&t&&(i.YNc(0,T,2,2,"header",0),i.TgZ(1,"div",1),i._UZ(2,"h2",2),i.TgZ(3,"section"),i.YNc(4,A,5,2,"ng-container",3),i.qZA(),i.qZA(),i._UZ(5,"div",4),i.YNc(6,I,3,4,"div",5)),2&t&&(i.Q6J("ngIf",e.header),i.xp6(2),i.Q6J("id",e.context.id)("textContent",e.context.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),i.xp6(2),i.Q6J("ngIf",e.context.closeable))},directives:[k.O5,p.Li,S.v0,r.k],pipes:[k.Ov],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem #0000007a;content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{width:100%;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-elevation-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-base-06)}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%]:hover, tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[h.X9,h.QF]}}),t})();function B(t){return(0,_.b)(t)?t:(0,y.of)(t)}const j=new p.Al(R);let U=(()=>{class t extends u.d5{constructor(){super(...arguments),this.component=j,this.defaultOptions=Object.assign(Object.assign({},(0,i.f3M)(N)),{data:void 0})}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),$=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,l.Q)(U)],imports:[[p.wq,S.fN,k.ez,r.Q7]]}),t})()},95974:(t,e,n)=>{n.d(e,{gZ:()=>a,n6:()=>l});var i=n(74788),r=n(63658),o=n(12057);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-group-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-group{position:relative;z-index:0;display:flex}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:nth-child(n){border-radius:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin-right:-1px}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-bottom-left-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:last-child{border-top-right-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--tui-radius-m);border-top-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:last-child{border-bottom-left-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-m)}}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_vertical{width:100%}.tui-group_adaptive.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical>*:not(:last-child){margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_horizontal{flex-direction:column;width:100%}.tui-group_adaptive.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal>*:not(:last-child){margin-right:0;margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m",t.addComponent(s)}get orientationHorizontal(){return"horizontal"===this.orientation}get orientationVertical(){return"vertical"===this.orientation}get sizeLarge(){return"l"===this.size}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.gH))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(t,e){2&t&&i.ekj("tui-group_adaptive",e.adaptive)("tui-group_collapsed",e.collapsed)("tui-group_rounded",e.rounded)("tui-group_orientation_horizontal",e.orientationHorizontal)("tui-group_orientation_vertical",e.orientationVertical)("tui-group_radius_large",e.sizeLarge)},inputs:{orientation:"orientation",adaptive:"adaptive",collapsed:"collapsed",rounded:"rounded",size:"size"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})()},23917:(t,e,n)=>{n.d(e,{o1:()=>F,jh:()=>z});var i=n(74788),r=n(43631),o=n(97582),s=n(221),a=n(66749),l=n(63658),c=n(79765),u=n(88002);let h=(()=>{class t{constructor(t,e){this.enabled$=new c.xQ;const n=e.pipe((0,u.U)((e=>!!e&&(!t||!e.length||e.every((e=>!t.contains(e)))))));this.tuiObscured=this.enabled$.pipe((0,a.Xd)((()=>n)))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.e,8),i.Y36(l.AQ,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[i._Bn([l.AQ,l.b0,l.a3])]}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var p=n(92668),f=n(57179),g=n(64493),m=n(99434),v=n(98952),_=n(66640),y=n(30126),b=n(26215),w=n(66682),C=n(59193),x=n(13653),O=n(87519),k=n(89570),M=n(12057);const P=["wrapper"];function S(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const E=function(t,e){return{$implicit:t,close:e}};function T(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",5,6),i.NdJ("keydown",(function(e){return i.CHM(t),i.oxw(2).onKeydown(e)})),i.YNc(2,S,2,1,"ng-container",7),i.qZA(),i._UZ(3,"div")}if(2&t){i.oxw();const t=i.MAs(1),e=i.oxw();i.xp6(2),i.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",i.WLB(2,E,t,e.close))}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1,2),i.NdJ("tuiObscured",(function(e){return i.CHM(t),i.oxw().onHostObscured(e)}))("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)})),i.Hsn(2),i.YNc(3,T,4,5,"ng-template",3,4,i.W1O),i.qZA()}if(2&t){const t=e.tuiLet,n=i.MAs(4),r=i.oxw();i.Q6J("tuiDropdownSided",r.sided)("tuiDropdown",n)("tuiDropdownManual",t&&r.canOpen)("tuiObscuredEnabled",t),i.xp6(3),i.Q6J("polymorpheus",r.context)}}const I=["*"];let D=(()=>{class t extends r.uG{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccessorProxy",""]],features:[i._Bn([{provide:r.uG,multi:!0,deps:[[new i.FiY,new i.tp0,t],t],useFactory:(t,e)=>t||e}]),i.qOj]}),t})(),L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function N(t){var e;return"key"in t&&"escape"===t.key.toLowerCase()&&this.canOpen&&this.open&&!(null===(e=this.dropdown)||void 0===e?void 0:e.nextElementSibling)}let F=(()=>{class t{constructor(t,e){this.hover$=t,this.el=e,this.openChange=new b.X(!1),this.sided=!1,this.canOpen=!0,this.open$=(0,w.T)(this.openChange,this.hover$||C.E).pipe((0,x.T)(1),(0,O.x)()),this.focusedChange=new i.vpe,this.close=()=>this.updateOpen(!1)}set open(t){this.openChange.next(t)}get open(){return this.openChange.value}get host(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.el.nativeElement}get computedHost(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var t,e;return null===(e=null===(t=this.dropdownDirective)||void 0===t?void 0:t.dropdownBoxRef)||void 0===e?void 0:e.location.nativeElement}get nativeFocusableElement(){return(0,f.dT)(this.host)?this.host:(0,f.BW)({initial:this.host,root:this.el.nativeElement})}get focused(){return(0,f.zb)(this.host)||this.open&&!!this.wrapper&&(0,f.zb)(this.wrapper.nativeElement)}onFocusIn(t){this.computedHost.contains(t)||this.updateOpen(!1)}onClick(t){var e;this.hostEditable||!this.computedHost.contains(t)||(null===(e=this.hover$)||void 0===e?void 0:e.hovered)||this.updateOpen(!this.open)}onKeyDownEsc(t){t.stopPropagation(),this.closeDropdown()}onArrow(t,e){this.focusDropdown(t,e)}onKeydown({key:t,target:e,defaultPrevented:n}){!n&&(0,_.kL)(t)&&this.hostEditable&&(0,g.dW)(e)&&!(0,g.Hn)(e)&&this.focusHost()}onActiveZone(t){this.updateFocused(t),t||this.updateOpen(!1)}onHostObscured(t){t&&this.closeDropdown()}updateOpen(t){t&&!this.canOpen||(this.open=t)}get hostEditable(){return(0,g.Hn)(this.computedHost)}focusDropdown(t,e){const n=this.nativeFocusableElement;if(!(n&&(0,g.dW)(n)&&(0,g.ve)(t.target)&&n.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&(0,g.dW)(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void((0,g.Hn)(n)||t.preventDefault());const i=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=(0,f.BW)({initial:i,root:this.wrapper.nativeElement,previous:!e});r&&(r.focus(),t.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){const t=this.nativeFocusableElement;t&&t.focus({preventScroll:!0})}updateFocused(t){this.focusedChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(v.E$,10),i.Y36(i.SBq))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,L,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.dropdownHost=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(P,5,i.SBq),i.Gf(v.td,5),i.Gf(s.e,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.wrapper=t.first),i.iGM(t=i.CRH())&&(e.dropdownDirective=t.first),i.iGM(t=i.CRH())&&(e.activeZone=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("focusin",(function(t){return e.onFocusIn(t.target)}))("click",(function(t){return e.onClick(t.target)}))("keydown.silent",(function(t){return e.onKeyDownEsc(t)}),!1,i.evT)("keydown.arrowDown",(function(t){return e.onArrow(t,!0)}))("keydown.arrowUp",(function(t){return e.onArrow(t,!1)})),2&t&&i.ekj("_hosted_dropdown_focused",e.focused)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[i._Bn([(0,m.FT)(t),{provide:D,deps:[[new i.FiY,new i.PiD,r.uG]],useFactory:t=>null==t?void 0:t[0]}])],ngContentSelectors:I,decls:2,vars:3,consts:[["tuiAccessorProxy","","class","t-wrapper",3,"tuiDropdownSided","tuiDropdown","tuiDropdownManual","tuiObscuredEnabled","tuiObscured","tuiActiveZoneChange",4,"tuiLet"],["tuiAccessorProxy","",1,"t-wrapper",3,"tuiDropdownSided","tuiDropdown","tuiDropdownManual","tuiObscuredEnabled","tuiObscured","tuiActiveZoneChange"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[3,"keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){if(1&t&&(i.F$t(),i.YNc(0,A,5,5,"div",0),i.ALo(1,"async")),2&t){let t;i.Q6J("tuiLet",null!==(t=i.lcZ(1,1,e.open$))&&void 0!==t?t:e.openChange.value)}},directives:[p.Ls,D,v.Cw,v.td,v.VC,v.Tp,h,s.e,k.GL,k.Li],pipes:[M.Ov],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}"],changeDetection:0}),(0,o.gn)([(0,y.uX)(N)],t.prototype,"onKeyDownEsc",null),t})(),z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[M.ez,k.wq,p.WD,d,s.A,v.dp]]}),t})()},82847:(t,e,n)=>{n.d(e,{V:()=>y,j:()=>b});var i=n(74788),r=n(66749),o=n(33770),s=n(57179),a=n(63658),l=n(99434),c=n(12130),u=n(79456),h=n(66682),d=n(88002),p=n(54789),f=n(12057);const g=["tuiLink",""];function m(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}function v(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}const _=["*"];let y=(()=>{class t{constructor(t,e,n){this.el=t,this.mode$=e,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=(0,h.T)((0,r.mL)(this.el.nativeElement,"focusin").pipe((0,d.U)(o.Ye)),(0,r.mL)(this.el.nativeElement,"focusout").pipe((0,d.U)(o.Iy))),n.subscribe((t=>{this.focusVisible=t}))}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return(0,s.V8)(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(u.Au),i.Y36(a.ku))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-host-mode",e.mode),i.ekj("_pseudo",e.pseudo)("_icon-rotated",e.iconRotated)("_focus-visible",e.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[i._Bn([(0,l.FT)(t),a.ku,a.a3,c.CV])],attrs:g,ngContentSelectors:_,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,m,1,1,"tui-svg",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,v,1,1,"tui-svg",2)),2&t&&(i.Q6J("ngIf",e.iconAlignLeft),i.xp6(3),i.Q6J("ngIf",e.iconAlignRight))},directives:[f.O5,p.PN],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:#0000007a}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:#ffffff7a}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:#de4c1e7a}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:#3aa9817a}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})(),b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[f.ez,p.EI]]}),t})()},40719:(t,e,n)=>{n.d(e,{kM:()=>m,dS:()=>v});var i=n(12057),r=n(74788),o=n(41213),s=n(57179),a=n(99434),l=n(66640),c=n(89570);function u(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function h(t,e){if(1&t&&(r.O4$(),r.kcU(),r.TgZ(0,"div",6),r.YNc(1,u,2,1,"ng-container",7),r.qZA()),2&t){const t=r.oxw(2);r.ekj("t-text_horizontal",t.isHorizontal),r.xp6(1),r.Q6J("polymorpheusOutlet",t.textContent)}}function d(t,e){if(1&t&&(r.TgZ(0,"div",2),r.O4$(),r.TgZ(1,"svg",3),r._UZ(2,"circle",4),r.qZA(),r.YNc(3,h,2,3,"div",5),r.qZA()),2&t){const t=r.oxw();r.ekj("t-loader_horizontal",t.isHorizontal)("t-loader_inherit-color",t.inheritColor),r.uIk("data-size",t.size),r.xp6(3),r.Q6J("ngIf",t.hasText)}}const p=["*"],f={size:"m",inheritColor:!1,overlay:!1},g=new r.OlP("[TUI_LOADER_OPTIONS]",{factory:()=>f});let m=(()=>{class t{constructor(t,e,n,i){this.doc=t,this.el=e,this.isIos=n,this.options=i,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=(0,o.Ex)(this.el.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&(0,s.hp)(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!(0,l.R9)(this.size)}get focused(){return(0,s.zb)(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(a.FA),r.Y36(g))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("_loading",e.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:p,decls:3,vars:6,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"fieldset",0),r.Hsn(1),r.qZA(),r.YNc(2,d,4,6,"div",1)),2&t&&(r.ekj("t-content_has-overlay",e.hasOverlay)("t-content_loading",e.loading),r.Q6J("disabled",e.loading&&!e.isApple),r.xp6(2),r.Q6J("ngIf",e.loading))},directives:[i.O5,c.Li],styles:["@keyframes tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:tuiLoaderRotate 3s linear infinite}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),t})(),v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,c.wq]]}),t})()},60885:(t,e,n)=>{n.d(e,{Ls:()=>p,Hi:()=>f});var i=n(74788),r=n(66749),o=n(79456),s=n(54789),a=n(12628),l=n(12057);function c(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon)}}function u(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",(function(){return i.CHM(t),i.oxw().close.emit()})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("title",i.lcZ(1,1,t.closeWord$))}}const h=["*"],d={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle"};let p=(()=>{class t{constructor(t,e){this.closeWord$=t,this.options=e,this.hasIcon=this.options.hasIcon,this.status=this.options.status,this.hideClose=!1,this.close=new i.vpe}get icon(){return d[this.status]}get hasClose(){return!this.hideClose&&(0,r.fw)(this.close)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.U0),i.Y36(o.Ln))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-notification"]],hostVars:5,hostBindings:function(t,e){2&t&&(i.uIk("data-status",e.status),i.ekj("_has-icon",e.hasIcon)("_has-close-button",e.hasClose))},inputs:{hasIcon:"hasIcon",status:"status",hideClose:"hideClose"},outputs:{close:"close"},ngContentSelectors:h,decls:4,vars:2,consts:[["automation-id","tui-notification__icon","class","t-icon",3,"src",4,"ngIf"],[1,"t-content"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","icon","tuiIconCloseLarge","appearance","icon","class","t-close",3,"title","click",4,"ngIf"],["automation-id","tui-notification__icon",1,"t-icon",3,"src"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","icon","tuiIconCloseLarge","appearance","icon",1,"t-close",3,"title","click"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,c,1,1,"tui-svg",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,u,2,3,"button",2)),2&t&&(i.Q6J("ngIf",e.hasIcon),i.xp6(3),i.Q6J("ngIf",e.hasClose))},directives:[l.O5,s.PN,a.v0],pipes:[l.Ov],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;padding:.75rem 1rem;border-radius:var(--tui-radius-m);background:#fff;background:var(--tui-base-01);box-sizing:border-box;overflow:hidden}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";pointer-events:none}._has-close-button[_nghost-%COMP%]{padding-right:2rem}._has-icon[_nghost-%COMP%]{padding-left:2.75rem}[data-status=info][_nghost-%COMP%]{color:var(--tui-info-fill);background:linear-gradient(var(--tui-info-bg),var(--tui-info-bg)),var(--tui-base-01)}[data-status=success][_nghost-%COMP%]{color:var(--tui-success-fill);background:linear-gradient(var(--tui-success-bg),var(--tui-success-bg)),var(--tui-base-01)}[data-status=error][_nghost-%COMP%]{color:var(--tui-error-fill);background:linear-gradient(var(--tui-error-bg),var(--tui-error-bg)),var(--tui-base-01)}[data-status=warning][_nghost-%COMP%]{color:var(--tui-warning-fill);background:linear-gradient(var(--tui-warning-bg),var(--tui-warning-bg)),var(--tui-base-01)}.t-content[_ngcontent-%COMP%]{word-wrap:break-word;color:var(--tui-text-01)}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;display:flex;width:1rem;height:100%;max-height:3rem;align-items:center}.t-close[_ngcontent-%COMP%]{position:absolute;top:.625rem;right:.5rem}'],changeDetection:0}),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[l.ez,s.EI,a.fN]]}),t})()},52697:(t,e,n)=>{n.d(e,{yc:()=>K,B1:()=>tt,KW:()=>nt,MB:()=>et});var i=n(97582),r=n(74788),o=n(63658);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-autofilled-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new r.vpe,t.addComponent(s)}transitionStartHandler({propertyName:t,target:e}){var n;t.includes("box-shadow")&&(null===(n=e)||void 0===n?void 0:n.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.gH))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("transitionstart",(function(t){return e.transitionStartHandler(t)})),2&t&&r.ekj("_autofilled",e.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();var c=n(13633),u=n(99434),h=n(76480),d=n(57179),p=n(44358),f=n(90022),g=n(79588),m=n(66640),v=n(89570),_=n(26215),y=n(22759),b=n(87874),w=n(45435),C=n(88002),x=n(87519),O=n(54789),k=n(77320),M=n(1515),P=n(12057),S=n(91489),E=n(9013),T=n(24751),A=n(43631),I=n(79456);const D=["pre"],L=["focusableElement"];function N(t,e){1&t&&r.GkF(0)}function F(t,e){1&t&&r.GkF(0)}function z(t,e){1&t&&(r.TgZ(0,"div",16),r.Hsn(1,2),r.qZA())}function R(t,e){if(1&t&&r._UZ(0,"tui-svg",19),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}const B=function(t){return{$implicit:t}};function j(t,e){if(1&t&&(r.TgZ(0,"div",17),r.YNc(1,R,1,1,"tui-svg",18),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconLeftContent)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}function U(t,e){if(1&t&&(r.TgZ(0,"label",20),r.Hsn(1,3),r.qZA()),2&t){const t=r.oxw();r.ekj("t-placeholder_raised",t.placeholderRaised),r.Q6J("for",t.computedId)}}function $(t,e){if(1&t&&r._UZ(0,"tui-svg",23),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function V(t,e){if(1&t&&(r.TgZ(0,"div",21),r.YNc(1,$,1,1,"tui-svg",22),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.controller.customContent)}}function Y(t,e){if(1&t&&r._UZ(0,"tui-svg",26),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function q(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",24),r.NdJ("click.stop",(function(){return r.CHM(t),r.oxw().clear()})),r.YNc(1,Y,1,1,"tui-svg",25),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconCleaner||t.controller.options.iconCleaner)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}function H(t,e){if(1&t&&r._UZ(0,"tui-tooltip",27),2&t){const t=r.oxw();r.Q6J("describeId",t.computedId)("content",null==t.hintOptions?null:t.hintOptions.content)}}function Z(t,e){if(1&t&&r._UZ(0,"tui-svg",19),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function G(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,Z,1,1,"tui-svg",18),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconContent)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}const X=[[["input"]],[["select"]],[["tuiContent"]],"*"],J=["input","select","tuiContent","*"],Q=["tuiTextfield",""];let W=(()=>{class t{constructor(t){this.textfield=t,this.prefix$=new _.X(""),this.pre$=this.prefix$.pipe((0,b.g)(0),(0,w.h)((()=>{var t;return!!(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.isConnected)})),(0,C.U)((()=>{var t;return(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.offsetWidth)||0})),(0,x.x)())}get isContextTable(){return this.textfield.appearance===k.Nm.Table}get value(){return this.textfield.value}get filler(){const{focused:t,placeholder:e,exampleText:n,value:i,textfield:r}=this;return e&&n?"":t?n||r.filler.slice(i.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}}return t.ɵfac=function(e){return new(e||t)(r.Y36(u.KZ))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(t,e){if(1&t&&r.Gf(D,7,r.SBq),2&t){let t;r.iGM(t=r.CRH())&&(e.pre=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("animationstart",(function(){return e.ngDoCheck()})),2&t&&r.ekj("_table",e.isContextTable)},decls:5,vars:4,consts:[[1,"t-prefix",3,"textContent"],["pre",""],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(t,e){1&t&&(r._UZ(0,"span",0,1),r._UZ(2,"span",2),r._UZ(3,"span",3),r._UZ(4,"span",4)),2&t&&(r.Q6J("textContent",e.prefix),r.xp6(2),r.Q6J("textContent",e.value),r.xp6(1),r.Q6J("textContent",e.filler),r.xp6(1),r.Q6J("textContent",e.postfix))},styles:['[_nghost-%COMP%]{overflow:hidden;text-overflow:ellipsis;position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-03);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}']}),t})(),K=(()=>{class t extends h.Xn{constructor(t,e,n,i){super(),this.controller=t,this.hintOptions=e,this.options=n,this.el=i,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new r.vpe,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;const{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return(0,d.zb)(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!(null===(t=this.content)||void 0===t?void 0:t.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var t;const e=((null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!e}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return(0,m._X)(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var t;return"cc-exp"===(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.autocomplete)?"ccexpiryyear":null}get computedId(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return(0,y.R)(t,"scroll").pipe((0,C.U)((()=>-1*t.scrollLeft)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){const{nativeFocusableElement:e}=this;e&&t.target!==e&&(t.preventDefault(),e.focus())}onModelChange(t){this.updateValue(t)}onAutofilled(t){this.updateAutofilled(t)}get iconPaddingLeft(){return"l"===this.size?1.75:1.625}get placeholderRaisable(){return"s"!==this.size&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(g.Cs),r.Y36(f.bZ,8),r.Y36(g.z1),r.Y36(r.SBq))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,v.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.content=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(L,5),2&t){let t;r.iGM(t=r.CRH())&&(e.focusableElement=t.first)}},hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)})),2&t&&(r.uIk("data-size",e.size),r.Udp("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),r.ekj("_autofilled",e.autofilled)("_label-outside",e.controller.labelOutside)("_readonly",e.readOnly)("_invalid",e.computedInvalid)("_hidden",e.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[r._Bn([(0,u.FT)(t),g.Y0]),r.qOj],ngContentSelectors:J,decls:23,vars:37,consts:[[4,"ngIf"],["tuiWrapper","","automation-id","tui-primitive-textfield__wrapper",3,"appearance","readOnly","disabled","focus","hover","active","invalid","mousedown","click.prevent.silent","tuiAutofilledChange"],["tuiMaskAccessor","","automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"disabled","id","readOnly","tuiFocusable","ngModel","ngModelChange"],["focusableElement",""],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["automation-id","tui-primitive-textfield__value-decoration","aria-hidden","true",1,"t-value-decoration"],["decor",""],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["tuiWrapper","","appearance","icon","automation-id","tui-primitive-textfield__cleaner","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"describeId","content",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["tuiWrapper","","appearance","icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiWrapper","","appearance","icon",3,"src"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["tuiWrapper","","appearance","icon","automation-id","tui-primitive-textfield__cleaner",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"describeId","content"],[1,"t-icon","t-textfield-icon"]],template:function(t,e){if(1&t&&(r.F$t(X),r.YNc(0,N,1,0,"ng-container",0),r.ALo(1,"async"),r.YNc(2,F,1,0,"ng-container",0),r.ALo(3,"async"),r.TgZ(4,"div",1),r.NdJ("mousedown",(function(t){return e.onMouseDown(t)}))("click.prevent.silent",(function(){return 0}))("tuiAutofilledChange",(function(t){return e.onAutofilled(t)})),r.ALo(5,"async"),r.Hsn(6),r.Hsn(7,1),r.TgZ(8,"input",2,3),r.NdJ("ngModelChange",(function(t){return e.onModelChange(t)})),r.qZA(),r.YNc(10,z,2,0,"div",4),r.TgZ(11,"div",5),r.YNc(12,j,2,4,"div",6),r.TgZ(13,"div",7),r.YNc(14,U,2,3,"label",8),r.TgZ(15,"div",9),r.TgZ(16,"tui-value-decoration",10,11),r.ALo(18,"async"),r.qZA(),r.qZA(),r.qZA(),r.YNc(19,V,2,1,"div",12),r.YNc(20,q,2,4,"span",13),r.YNc(21,H,1,2,"tui-tooltip",14),r.YNc(22,G,2,4,"div",15),r.qZA(),r.qZA()),2&t){const t=r.MAs(9),n=r.MAs(17);r.Q6J("ngIf",r.lcZ(1,29,null==e.content?null:e.content.changes)),r.xp6(2),r.Q6J("ngIf",r.lcZ(3,31,null==e.hintOptions?null:e.hintOptions.change$)),r.xp6(2),r.Udp("--text-indent",r.lcZ(5,33,n.pre$),"px"),r.Q6J("appearance",e.appearance)("readOnly",e.readOnly)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("active",e.pseudoActive)("invalid",e.computedInvalid),r.xp6(4),r.Q6J("disabled",e.computedDisabled)("id",e.id)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable)("ngModel",e.value),r.uIk("name",e.name)("aria-invalid",e.computedInvalid),r.xp6(2),r.Q6J("ngIf",e.inputHidden),r.xp6(2),r.Q6J("ngIf",e.iconLeftContent),r.xp6(2),r.Q6J("ngIf",e.hasPlaceholder),r.xp6(2),r.Udp("text-indent",r.lcZ(18,35,e.getIndent$(t)),"px"),r.ekj("t-has-value",e.value),r.xp6(3),r.Q6J("ngIf",e.hasCustomContent),r.xp6(1),r.Q6J("ngIf",e.hasCleaner),r.xp6(1),r.Q6J("ngIf",e.showHint),r.xp6(1),r.Q6J("ngIf",e.iconContent)}},directives:[P.O5,S.o,a,E.j,T.Fj,c.t,T.JJ,T.On,W,v.Li,O.PN,M.w],pipes:[P.Ov],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left;height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-content[_ngcontent-%COMP%]:after{content:"";margin-right:-.25rem}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]:after{display:none}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-right:.25rem;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-wrapper[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin:0}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;margin:0 0 0 .25rem;-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:0;margin-inline-end:0;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;margin:0 0 0 .25rem;-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:0;margin-inline-end:0;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}.t-icon_left[_ngcontent-%COMP%]{margin:0 .375rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}._autofilled[data-size=s][_nghost-%COMP%]:not(._focused) .t-placeholder[_ngcontent-%COMP%], ._autofilled[data-size=m][_nghost-%COMP%]:not(._focused) .t-placeholder[_ngcontent-%COMP%]{visibility:hidden}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-tooltip[_ngcontent-%COMP%]{margin:0 0 0 .25rem;-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:0;margin-inline-end:0}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;-webkit-padding-end:0;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0}),(0,i.gn)([p.UM],t.prototype,"getIndent$",null),t})(),tt=(()=>{class t extends A.D1{constructor(t){super(t),this.textfield=t}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(t){this.textfield.onModelChange(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(K))},t.ɵdir=r.lG2({type:t,selectors:[["tui-primitive-textfield"]],features:[r._Bn([(0,I.cp)(t)]),r.qOj]}),t})(),et=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.controller=e,this.el=n,this.idService=i,this.legacyMask=r,this.host.process(this.el.nativeElement)}get id(){return this.el.nativeElement.id||this.idService.generate()}get inputMode(){return this.el.nativeElement.inputMode||this.host.inputMode}}return t.ɵfac=function(e){return new(e||t)(r.Y36(I.S0),r.Y36(g.Cs),r.Y36(r.SBq),r.Y36(o.ll),r.Y36(I.sf,8))},t.ɵcmp=r.Xpm({type:t,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("input",(function(t){return!e.legacyMask&&e.host.onValueChange(t.target.value)})),2&t&&(r.Ikx("tabIndex",e.host.focusable?0:-1)("readOnly",e.host.readOnly)("value",e.host.value),r.uIk("id",e.id)("inputMode",e.inputMode)("aria-invalid",e.host.invalid)("disabled",e.host.disabled||null))},features:[r._Bn([g.Y0])],attrs:Q,decls:0,vars:0,template:function(t,e){},styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]::placeholder, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0}),t})(),nt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[P.ez,T.u5,v.wq,E.c,c.u,S.W,O.EI,M.Q,l]]}),t})()},21022:(t,e,n)=>{n.d(e,{G:()=>nt,W:()=>it});var i=n(12057),r=n(74788),o=n(91211),s=n(6249),a=n(33770),l=n(63658),c=n(99434),u=n(25917),h=n(9112),d=n(88002),p=n(46782),f=n(64493),g=n(57179);let m=(()=>{class t{constructor(t,e,n){this.doc=t,this.el=e,this.renderer=n,this.activeElement=(0,g.ie)(this.doc),Promise.resolve().then((()=>{this.el.nativeElement.focus()}))}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(t){const{nativeElement:e}=this.el;if((0,f.PP)(e,t))return;const n=(0,g.BW)({initial:e,root:e});n&&n.focus()}ngOnDestroy(){(0,g.hp)(this.doc),Promise.resolve().then((()=>{(0,f.dW)(this.activeElement)&&this.activeElement.focus()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(r.Qsj))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(t,e){1&t&&r.NdJ("blur",(function(){return e.onBlur()}))("focusin.silent",(function(t){return e.onFocusIn(t.target)}),!1,r.Jf7)}}),t})(),v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();var _=n(71486),y=n(89570),b=n(92668);function w(t,e){1&t&&r.GkF(0)}function C(t,e){if(1&t&&(r.TgZ(0,"section",2),r.YNc(1,w,1,0,"ng-container",3),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0),r.uIk("aria-labelledby",t.id),r.xp6(1),r.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t)}}function x(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",4),r.NdJ("popstate",(function(){const e=r.CHM(t).tuiLet,n=r.oxw();return n.closeLast(n.dialogs,!!e)}),!1,r.Jf7)("transitionend",(function(e){const n=r.CHM(t).tuiLet,i=r.oxw();return i.onDialog(e,!!i.dialogs.length,!!n)})),r.qZA()}if(2&t){const t=r.oxw();r.ekj("t-overlay_visible",t.dialogs.length)}}const O=new r.OlP("[TUI_DIALOG_CLOSES_ON_BACK]",{factory:()=>(0,u.of)(!1)}),k={label:"ignoreMe"};let M=(()=>{class t{constructor(t,e,n,i,r,o){this.isDialogClosesOnBack$=t,this.dialogsByType=e,this.historyRef=n,this.titleService=i,this.destroy$=r,this.cdr=o,this.dialogs=[]}ngOnInit(){(0,h.aj)(this.dialogsByType).pipe((0,d.U)((t=>(new Array).concat(...t).sort(((t,e)=>t.createdAt-e.createdAt)))),(0,p.R)(this.destroy$)).subscribe((t=>{this.dialogs=t,this.cdr.markForCheck()}))}closeLast(t,e){if(!e)return;const[n]=t.slice(-1);n&&(t.length>1&&this.historyRef.pushState(k,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:t},e,n){var i;n&&"letter-spacing"===t&&(e?this.historyRef.pushState(k,this.titleService.getTitle()):(null==(i=this.historyRef.state)?void 0:i.label)===k.label&&this.historyRef.back())}}return t.ɵfac=function(e){return new(e||t)(r.Y36(O),r.Y36(c.qY),r.Y36(s.UA),r.Y36(o.Dx),r.Y36(l.a3,2),r.Y36(r.sBO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-dialog-host"]],features:[r._Bn([l.a3])],decls:3,vars:4,consts:[["tuiFocusTrap","","tuiScrollRef","","tuiOverscroll","all","role","dialog","aria-modal","true","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","popstate","transitionend",4,"tuiLet"],["tuiFocusTrap","","tuiScrollRef","","tuiOverscroll","all","role","dialog","aria-modal","true",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-overlay",3,"popstate","transitionend"]],template:function(t,e){1&t&&(r.YNc(0,C,2,4,"section",0),r.YNc(1,x,1,2,"div",1),r.ALo(2,"async")),2&t&&(r.Q6J("ngForOf",e.dialogs),r.xp6(1),r.Q6J("tuiLet",r.lcZ(2,2,e.isDialogClosesOnBack$)))},directives:[i.sg,b.Ls,m,_.W,y.Li],pipes:[i.Ov],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;overflow:overlay}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}"],data:{animation:[a.Kx]}}),t})(),P=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,y.wq,_.e,v,b.WD]]}),t})();var S=n(42420);function E(t,e){if(1&t&&(r.GkF(0,3),r.ALo(1,"tuiMapper")),2&t){const t=e.$implicit,n=r.oxw(2);r.Q6J("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",r.xi3(1,2,t,n.mapper))}}function T(t,e){if(1&t&&(r.TgZ(0,"div",1),r.YNc(1,E,2,5,"ng-container",2),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0),r.xp6(1),r.Q6J("ngForOf",t)}}let A=(()=>{class t{constructor(t,e,n,i){this.allAlerts=t,this.injector=e,this.destroy$=n,this.cdr=i,this.alerts=[],this.trackBy=t=>t,this.mapper=t=>r.zs3.create({providers:[{provide:y.yf,useValue:t}],parent:this.injector})}ngOnInit(){(0,h.aj)(this.allAlerts).pipe((0,p.R)(this.destroy$)).subscribe((t=>{this.alerts=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(c.bS),r.Y36(r.gxx),r.Y36(l.a3,2),r.Y36(r.sBO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-alert-host"]],features:[r._Bn([l.a3])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(t,e){1&t&&r.YNc(0,T,2,2,"div",0),2&t&&r.Q6J("ngForOf",e.alerts)("ngForTrackBy",e.trackBy)},directives:[i.sg,i.$G],pipes:[S.c],styles:["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[a.Kx]}}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,S.I]]}),t})();var D=n(75122),L=n(69727),N=n(12130),F=n(79456),z=n(54395),R=n(27709),B=n(87941);function j(t,e){if(1&t&&(r.O4$(),r._UZ(0,"defs",4)),2&t){const t=e.$implicit;r.Q6J("innerHTML",t,r.oJD)}}function U(t,e){if(1&t&&(r.O4$(),r.ynx(0),r.YNc(1,j,1,1,"defs",3),r.BQk()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.items)}}function $(t,e){if(1&t&&(r.O4$(),r.TgZ(0,"defs"),r._UZ(1,"svg",6),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("outerHTML",t,r.oJD)}}function V(t,e){if(1&t&&(r.O4$(),r.YNc(0,$,2,1,"defs",5)),2&t){const t=r.oxw();r.Q6J("ngForOf",t.items)}}let Y=(()=>{class t{constructor(t,e,n,r){this.svgService=t,this.cdr=e,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!(0,i.PM)(r)}ngOnInit(){this.svgService.items$.pipe((0,p.R)(this.destroy$)).subscribe((t=>{this.items=t.values(),this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(B.K5),r.Y36(r.sBO),r.Y36(l.a3,2),r.Y36(r.Lbi))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-svg-defs-host"]],features:[r._Bn([l.a3])],decls:4,vars:2,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(t,e){if(1&t&&(r.O4$(),r.TgZ(0,"svg",0),r.YNc(1,U,2,1,"ng-container",1),r.YNc(2,V,1,1,"ng-template",null,2,r.W1O),r.qZA()),2&t){const t=r.MAs(3);r.xp6(1),r.Q6J("ngIf",e.isBrowser)("ngIfElse",t)}},directives:[i.O5,i.sg],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,b.WD]]}),t})();var H=n(221);function Z(t,e){1&t&&r.GkF(0)}const G=function(t){return{$implicit:t}};function X(t,e){if(1&t&&(r.TgZ(0,"div",1),r.YNc(1,Z,1,0,"ng-container",2),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),r.xp6(1),r.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",r.VKq(4,G,t))}}let J=(()=>{class t{constructor(t,e,n){this.hints$=t,this.destroy$=e,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe((0,p.R)(this.destroy$)).subscribe((t=>{this.hints=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(B.BN),r.Y36(l.a3,2),r.Y36(r.sBO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[r._Bn([l.a3])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&r.YNc(0,X,2,6,"div",0),2&t&&r.Q6J("ngForOf",e.hints)},directives:[i.sg,H.e,y.Li],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[a.Kx]}}),t})(),Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,y.wq,H.A]]}),t})();var W=n(30126);function K(t,e){1&t&&r._UZ(0,"tui-scroll-controls",2)}const tt=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],et=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let nt=(()=>{class t{constructor(t,e,n,i,r,o,{body:s},a){this.duration=t,this.dialogs=e,this.isMobile=n,this.isMobileRes$=i,this.isIOS=r,this.isAndroid=o,this.scrollbars$=this.dialogs.length&&!this.isMobile?(0,h.aj)([...this.dialogs]).pipe((0,d.U)((t=>!t.some((({length:t})=>t)))),(0,z.b)(0)):(0,u.of)(!this.isMobile),s.setAttribute("data-tui-theme",a.toLowerCase())}}return t.ɵfac=function(e){return new(e||t)(r.Y36(F.dx),r.Y36(c.qY),r.Y36(c.fL),r.Y36(F.rL),r.Y36(c.FA),r.Y36(c.XG),r.Y36(i.K0),r.Y36(F.r2))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.35.0"],hostVars:6,hostBindings:function(t,e){1&t&&r.NdJ("$.class._mobile",(function(){return e.isMobileRes$})),2&t&&(r.Udp("--tui-duration",e.duration,"ms"),r.ekj("_ios",e.isIOS)("_android",e.isAndroid))},features:[r._Bn([N.yI])],ngContentSelectors:et,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(t,e){1&t&&(r.F$t(tt),r.YNc(0,K,1,0,"tui-scroll-controls",0),r.ALo(1,"async"),r._UZ(2,"tui-svg-defs-host"),r.TgZ(3,"tui-dropdown-host"),r.TgZ(4,"div",1),r.Hsn(5),r.qZA(),r.Hsn(6,1),r._UZ(7,"tui-dialog-host"),r.Hsn(8,2),r._UZ(9,"tui-alert-host"),r.Hsn(10,3),r.qZA(),r.Hsn(11,4),r._UZ(12,"tui-hints-host"),r.Hsn(13,5)),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.scrollbars$))},directives:[i.O5,Y,D.qY,M,A,J,R.tZ],pipes:[i.Ov],styles:['@keyframes tuiPresent{to{content:"1"}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}\n'],encapsulation:2}),t})(),it=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,W.X1,L.N,D.mL,q,Q,P,I,R.eI]]}),t})()},27709:(t,e,n)=>{n.d(e,{tZ:()=>k,eI:()=>M});var i=n(74788),r=n(62579),o=n(66749),s=n(33770),a=n(63658),l=n(92668),c=n(49941),u=n(12130),h=n(79456),d=n(88002),p=n(43190),f=n(46782),g=n(43219),m=n(39761),v=n(87519),_=n(12057),y=n(66682);function b(t,e){if(1&t&&(i.TgZ(0,"div",3),i._UZ(1,"div",4),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.ekj("t-bar_has-horizontal",t[1]),i.Q6J("@tuiFadeIn",e.animation)}}function w(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"div",6),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.ekj("t-bar_has-vertical",t[0]),i.Q6J("@tuiFadeIn",e.animation)}}function C(t,e){if(1&t&&(i.ynx(0),i.YNc(1,b,2,3,"div",1),i.YNc(2,w,2,3,"div",2),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t[0]),i.xp6(1),i.Q6J("ngIf",t[1])}}let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollbarWrapper",""]],features:[i._Bn([{provide:h.zP,useExisting:i.SBq}])]}),t})(),O=(()=>{class t{constructor(t,e,n,i,r,a,l,c){this.wrapper=r,this.container=a,this.doc=l,this.el=c,this.tuiScrollbar="vertical";const{nativeElement:u}=this.el,h=(0,o.mL)(u,"mousedown"),m=(0,o.mL)(this.doc,"mousemove"),v=(0,o.mL)(this.doc,"mouseup"),_=(0,o.mL)(this.wrapper.nativeElement,"mousedown");(0,y.T)(_.pipe((0,o.mp)(),(0,d.U)((t=>this.getScrolled(t,.5,.5)))),h.pipe((0,o.mp)(),(0,o.vm)(),(0,p.w)((t=>{const e=u.getBoundingClientRect(),n=function({clientY:t},{top:e,height:n}){return(t-e)/n}(t,e),i=function({clientX:t},{left:e,width:n}){return(t-e)/n}(t,e);return m.pipe((0,d.U)((t=>this.getScrolled(t,n,i))),(0,f.R)(v))})))).pipe((0,o.fL)(t),(0,f.R)(n)).subscribe((([t,n])=>{"vertical"===this.tuiScrollbar?e.setProperty(this.element,"scrollTop",t):e.setProperty(this.element,"scrollLeft",n)})),(0,y.T)(i.pipe((0,g.p)(s.Yg)),(0,o.pt)(this.element)).pipe((0,o.fL)(t),(0,f.R)(n)).subscribe((()=>{"vertical"===this.tuiScrollbar?(e.setStyle(u,"top",100*this.thumb+"%"),e.setStyle(u,"height",100*this.view+"%")):(e.setStyle(u,"left",100*this.thumb+"%"),e.setStyle(u,"width",100*this.view+"%"))}))}get scrolled(){const{scrollTop:t,scrollHeight:e,clientHeight:n,scrollLeft:i,scrollWidth:r,clientWidth:o}=this.element;return"vertical"===this.tuiScrollbar?t/(e-n):i/(r-o)}get compensation(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return t*t/e>24&&"vertical"===this.tuiScrollbar||n*n/i>24&&"horizontal"===this.tuiScrollbar?0:"vertical"===this.tuiScrollbar?24/t:24/n}get thumb(){const t=this.compensation||this.view;return this.scrolled*(1-t)}get view(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return"vertical"===this.tuiScrollbar?Math.ceil(t/e*100)/100:Math.ceil(n/i*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:t,clientX:e},n,i){const{offsetHeight:r,offsetWidth:o}=this.el.nativeElement,{top:s,left:a,width:l,height:c}=this.wrapper.nativeElement.getBoundingClientRect();return[(this.element.scrollHeight-c)*((t-s-r*n)/(c-r)),(this.element.scrollWidth-l)*((e-a-o*i)/(l-o))]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(i.Qsj),i.Y36(a.a3,2),i.Y36(r.L1),i.Y36(h.zP),i.Y36(h.$_),i.Y36(_.K0),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[i._Bn([a.a3])]}),t})(),k=(()=>{class t{constructor(t,e,n,i,r){this.animation=t,this.ngZone=e,this.scrollRef=n,this.animationFrame$=i,this.mode$=r,this.refresh$=this.animationFrame$.pipe((0,g.p)(300),(0,d.U)((()=>this.scrollbars)),(0,m.O)([!1,!1]),(0,v.x)(((t,e)=>t[0]===e[0]&&t[1]===e[1])),(0,o.Yr)(this.ngZone))}get scrollbars(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.scrollRef.nativeElement;return[Math.ceil(t/e*100)<100,Math.ceil(n/i*100)<100]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(h.Pw),i.Y36(i.R0b),i.Y36(h.$_),i.Y36(r.L1),i.Y36(h.Au))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scroll-controls"]],hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))},features:[i._Bn([u.CV])],decls:2,vars:3,consts:[[4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,e){1&t&&(i.YNc(0,C,3,2,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.refresh$))},directives:[_.O5,x,O],pipes:[_.Ov],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;margin-right:calc(-100% + 1px);-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;background:var(--tui-text-01);background-clip:content-box;box-sizing:border-box;transition-property:width,height;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}[data-mode=onDark][_nghost-%COMP%] .t-thumb[_ngcontent-%COMP%]{background-color:var(--tui-text-01-night)}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[c.QF]},changeDetection:0}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[_.ez,l.WD]]}),t})()},80134:(t,e,n)=>{n.d(e,{IB:()=>p,Jy:()=>f});var i=n(74788),r=n(79456),o=n(62579),s=n(41213),a=n(64493),l=n(99434),c=n(27709),u=n(12057);function h(t,e){1&t&&i._UZ(0,"tui-scroll-controls")}const d=["*"];let p=(()=>{class t{constructor(t,e,n,r){this.cssRef=t,this.el=e,this.userAgent=n,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||(0,s.oK)(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new i.SBq(this.el.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(t){this.delegated=!0,this.browserScrollRef.nativeElement=t}scrollIntoView(t){var e;if(this.delegated)return;const{nativeElement:n}=this.browserScrollRef,{offsetTop:i,offsetLeft:r}=(0,a.YX)(n,t),{clientHeight:o,clientWidth:s}=n,{offsetHeight:l,offsetWidth:c}=t,u=i+l/2-o/2,h=r+c/2-s/2;null===(e=n.scrollTo)||void 0===e||e.call(n,h,u)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.ux),i.Y36(i.SBq),i.Y36(o.yZ),i.Y36(l.FA))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("tui-scrollable.stop",(function(t){return e.onScrollable(t.detail)}))("tui-scroll-into-view.stop",(function(t){return e.scrollIntoView(t.detail)})),2&t&&i.ekj("_legacy",e.showNative)},inputs:{hidden:"hidden"},features:[i._Bn([{provide:r.$_,deps:[t],useFactory:({browserScrollRef:t})=>t}])],ngContentSelectors:d,decls:3,vars:1,consts:[[4,"ngIf"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,h,1,0,"tui-scroll-controls",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()),2&t&&i.Q6J("ngIf",e.showScrollbars)},directives:[u.O5,c.tZ],styles:["[_nghost-%COMP%]{z-index:0;position:relative;display:flex;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}"],changeDetection:0}),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[u.ez,c.eI]]}),t})()},54789:(t,e,n)=>{n.d(e,{PN:()=>I,EI:()=>D});var i=n(97582),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(92668),c=n(68192),u=n(11927),h=(n(18939),n(64493)),d=n(63658),p=n(44358),f=n(18269),g=n(87941),m=n(79456),v=n(66640),_=n(54487),y=n(74235),b=n(25917),w=n(43190),C=n(39761),x=n(5304),O=n(88002);function k(t,e){if(1&t&&o._UZ(0,"div",3),2&t){const t=o.oxw().tuiLet;o.Q6J("innerHTML",t,o.oJD)}}function M(t,e){if(1&t){const t=o.EpF();o.O4$(),o.TgZ(0,"svg",4),o.NdJ("error",(function(){return o.CHM(t),o.oxw(2).onError()})),o._UZ(1,"use"),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.uIk("href",t.use,null,"xlink")}}function P(t,e){if(1&t&&(o.ynx(0),o.YNc(1,k,1,1,"div",1),o.YNc(2,M,2,1,"ng-template",null,2,o.W1O),o.BQk()),2&t){const t=o.MAs(3),e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.isInnerHTML)("ngIfElse",t)}}const S={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},E={iconsPlace:m.xp,path:(0,v.ht)(m.xp),srcProcessor:_.y,contentProcessor:c.N,deprecated:t=>{const e=t.replace("Large","").replace("Outline",""),n=S[e];return n?`${e}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},T=new o.OlP("[TUI_SVG_OPTIONS]",{factory:()=>({iconsPlace:(0,o.f3M)(m.AA),path:(0,o.f3M)(m.ki),deprecated:E.deprecated,srcProcessor:(0,o.f3M)(m.V5),contentProcessor:(0,o.f3M)(m.u_)})}),A=new o.OlP("[TUI_SVG_SRC_INTERCEPTORS]");let I=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l){this.doc=t,this.win=e,this.options=n,this.srcInterceptors=i,this.tuiSanitizer=r,this.svgService=o,this.staticRequestService=s,this.sanitizer=a,this.el=l,this.src$=new y.t(1),this.icon="",this.innerHTML$=this.src$.pipe((0,w.w)((()=>(0,u.Aj)(this.icon)?this.isExternal?this.getExternalIcon(this.icon):(0,b.of)(this.getSafeHtml(this.icon)):(0,b.of)(this.icon))),(0,C.O)(""))}set src(t){var e;this.options.deprecated(String(t)),this.icon=(null!==(e=this.srcInterceptors)&&void 0!==e?e:[]).reduce(((t,e)=>e(t,this.options)),this.options.srcProcessor(t)),this.src$.next()}get src(){return this.icon}get use(){return(0,u.Aj)(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!(0,u.Aj)(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return(0,h.Wf)(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(f.uJ,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return(0,u.Aj)(this.icon)&&this.icon.replace(f.uJ,"").endsWith(".svg")}get isSrc(){return(0,u.Aj)(this.icon)&&(0,v.jL)(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){const{use:t,isUse:e,win:n}=this;return e&&t.startsWith("http")&&!!n.origin&&!t.startsWith(n.origin)}onError(t="External icon is missing on the given URL"){const{icon:e}=this,n=new CustomEvent(f.qT,{bubbles:!0,detail:{message:t,icon:e}});this.el.nativeElement.dispatchEvent(n)}resolveName(t,e){return e(t)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){const e=this.svgService.getOriginal(t);return this.isName&&!e&&t&&this.onError("Attempted to use undefined named icon"),this.isShadowDOM&&this.isName?this.sanitize(e||""):""}sanitize(t){return t=this.options.contentProcessor(t),this.tuiSanitizer&&(0,u.Aj)(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(o.q3G.HTML,t)||""):t}getExternalIcon(t){const e=t.includes(".svg")?t:this.use;return this.staticRequestService.request(e).pipe((0,x.K)((()=>(this.onError("Failed to load external SVG"),(0,b.of)("")))),(0,O.U)((t=>this.sanitize(t.replace("{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[r.ez,l.WD]]}),t})()},1515:(t,e,n)=>{n.d(e,{w:()=>g,Q:()=>m});var i=n(74788),r=n(63658),o=n(99434),s=n(90022),a=n(12130),l=n(79456),c=n(46782),u=n(54789),h=n(91489),d=n(89570),p=n(12057);function f(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}let g=(()=>{class t extends s.bZ{constructor(t,e,n,i){super(n),this.isMobile=i,this.mode=null,this.describeId="",e.pipe((0,c.R)(t)).subscribe((t=>{this.mode=t}))}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(t){var e;this.isMobile&&(t.preventDefault(),t.stopPropagation()),null===(e=this.driver$)||void 0===e||e.toggle()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(l.Au),i.Y36(s.H3),i.Y36(o.fL))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tooltip"]],viewQuery:function(t,e){if(1&t&&i.Gf(s.t6,5),2&t){let t;i.iGM(t=i.CRH())&&(e.driver$=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("mousedown",(function(t){return e.stopOnMobile(t)})),2&t&&i.uIk("data-appearance",e.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId"},features:[i._Bn([r.a3,a.CV]),i.qOj],decls:4,vars:10,consts:[["automation-id","tui-tooltip__icon","tuiWrapper","","appearance","icon",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintDescribe","tuiHintDirection","tuiHintShowDelay","tuiHintHideDelay","tuiHintAppearance"],["driver","tuiHintHover"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(t,e){if(1&t&&(i.TgZ(0,"span",0,1),i.ALo(2,"async"),i.YNc(3,f,1,1,"tui-svg",2),i.qZA()),2&t){const t=i.MAs(1);i.Q6J("hover",i.lcZ(2,8,t)||null)("tuiHint",e.content)("tuiHintDescribe",e.describeId)("tuiHintDirection",e.direction)("tuiHintShowDelay",e.showDelay)("tuiHintHideDelay",e.hideDelay)("tuiHintAppearance",e.computedAppearance),i.xp6(3),i.Q6J("polymorpheusOutlet",e.icon)}},directives:[h.o,s.D,s.xn,s.t6,s.DM,s.$o,d.Li,u.PN],pipes:[p.Ov],styles:['[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[p.ez,h.W,u.EI,s.go,d.wq]]}),t})()},18269:(t,e,n)=>{n.d(e,{oA:()=>o,uJ:()=>r,Jl:()=>s,hW:()=>h,Fw:()=>u,qT:()=>c,fe:()=>l,Nq:()=>a});var i=n(33770);const r=`?v=${i.Ml}`,o=t=>t.includes(".svg#")?t:`#${t}`,s={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:i.f$,zeroPadding:!0,rounding:"truncate"},a=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],l="tui-scroll-into-view",c="tui-icon-error",u=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],h=/\d/},98952:(t,e,n)=>{n.d(e,{td:()=>q,VC:()=>tt,E$:()=>G,Tp:()=>et,dp:()=>ot,Ek:()=>W,A9:()=>nt,Cw:()=>it,yd:()=>rt,fx:()=>Q});var i=n(74788),r=n(62579),o=n(221),s=n(71486),a=n(96111),l=n(63658),c=n(75122),u=n(44358),h=n(75675),d=n(57179),p=n(76480),f=n(33770),g=n(64493),m=n(11927),v=n(99434),_=n(43631),y=n(49941),b=n(12130),w=n(87941),C=n(79456),x=n(43219),O=n(46782),k=n(43190),M=n(87874),P=n(68307),S=n(9945),E=n(88002),T=n(87519),A=n(97582),I=n(47766),D=n(66640),L=n(89570),N=n(79765),F=n(66682),z=n(25917),R=n(26215),B=n(9112),j=n(80134),U=n(12057);function $(t,e){if(1&t&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const V=function(t){return{$implicit:t}},Y=new i.OlP("[TUI_DROPDOWN_COMPONENT]",{factory:()=>K});let q=(()=>{class t{constructor(t,e,n,i,r){this.el=e,this.dropdown=n,this.injector=i,this.dropdownService=r,this.refresh$=new N.xQ,this.dropdownBoxRef=null,this.type="dropdown",this.component=new L.Al(this.dropdown,this.injector),this.refresh$.pipe((0,x.p)(0),(0,O.R)(t)).subscribe((()=>{var t,e;null===(t=this.dropdownBoxRef)||void 0===t||t.changeDetectorRef.detectChanges(),null===(e=this.dropdownBoxRef)||void 0===e||e.changeDetectorRef.markForCheck()}))}get position(){return(0,I.qK)(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content&&!this.dropdownBoxRef?this.dropdownBoxRef=this.dropdownService.add(this.component):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.a3,2),i.Y36(i.SBq),i.Y36(Y),i.Y36(i.gxx),i.Y36(c.ae))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[i._Bn([l.a3,(0,_.Ic)(t),(0,_.Fe)(t)]),i.TTD]}),(0,A.gn)([u.UM],t.prototype,"position",null),t})();const H={showDelay:200,hideDelay:500},Z=new i.OlP("[TUI_DROPDOWN_HOVER_OPTIONS]",{factory:()=>H});let G=(()=>{class t extends _.kk{constructor(t,e){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.toggle$=new N.xQ,this.stream$=(0,F.T)(this.toggle$,this.hovered$).pipe((0,k.w)((t=>(0,z.of)(t).pipe((0,M.g)(t?this.showDelay:this.hideDelay)))),(0,P.b)((t=>{this.hovered=t})),(0,S.B)()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(t){this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(a.gs),i.Y36(Z))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[i._Bn([(0,_.UK)(t),a.gs]),i.qOj]}),t})();const X={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},J=new i.OlP("[TUI_DROPDOWN_OPTIONS]",{factory:()=>X}),Q=t=>({provide:J,deps:[[new i.FiY,W],[new i.tp0,J]],useFactory:(0,D.lp)(t)});let W=(()=>{class t{constructor(t){this.options=t,this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}}return t.ɵfac=function(e){return new(e||t)(i.Y36(J,4))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],appearance:["tuiDropdownAppearance","appearance"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[i._Bn([{provide:J,useExisting:(0,i.Gpc)((()=>t))}])]}),t})(),K=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,h){this.directive=i,this.animation=r,this.el=o,this.host=s,this.accessor=a,this.win=l,this.mode$=c,this.options=u,this.hoverDirective=h,e.pipe((0,E.U)((e=>"fixed"===this.directive.position?t.correct(e):e)),(0,O.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),this.updateWidth(this.accessor.getClientRect().width)}ngOnDestroy(){this.onHoveredChange(!1)}onHoveredChange(t){this.hoverDirective&&this.hoverDirective.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,e){const{style:n}=this.el.nativeElement,{right:i}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:r,offset:o}=this.options,{innerHeight:s}=this.win,{clientRect:a}=this.host,{position:l}=this.directive,c=this.accessor.getClientRect(),u="fixed"===l?0:-a.left,d="fixed"===l?0:-a.top;t+=d;const p=(e+=u)c.left&&t{class t extends _.FP{constructor(t,e,n){super(t,e,n),this.type="dropdown"}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.a3,2),i.Y36(_.kk),i.Y36(_.c2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown",""]],features:[i._Bn([l.a3]),i.qOj]}),t})(),et=(()=>{class t extends _.kk{constructor(){super((t=>this.stream$.subscribe(t))),this.stream$=new R.X(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[i._Bn([(0,_.UK)(t)]),i.qOj,i.TTD]}),t})(),nt=(()=>{class t extends _.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.accessors=n,this.directive=i,this.type="dropdown"}getPosition({width:t,height:e}){var n,i;const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:f.Jy,o=this.viewport.getClientRect(),{minHeight:s,align:a,direction:l,offset:c}=this.options,u=this.previous||l||"bottom",h=Math.max(r.right-t,c),d={top:r.top-2*c-o.top,bottom:o.bottom-r.bottom-2*c},p={top:r.top-c-e,bottom:r.bottom+c,right:h,center:r.left+r.width/2+t/2d.bottom?"top":"bottom";return d[u]>s&&l||d[u]>e?[p[u],p[a]]:(this.previous=g,[p[g],p[a]])}get accessor(){return(0,_.Sv)("dropdown")(this.accessors,this.directive)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(J),i.Y36(C.EO),i.Y36(_.O4),i.Y36(q))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[i._Bn([(0,_.P7)(t)]),i.qOj]}),(0,A.gn)([u.UM],t.prototype,"accessor",null),t})(),it=(()=>{class t extends _.uG{constructor(t,e,n){super(),this.options=t,this.viewport=e,this.vertical=n,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(t){var e,n;if(!1===this.tuiDropdownSided)return this.vertical.getPosition(t);const{height:i,width:r}=t,o=null!==(n=null===(e=this.vertical.accessor)||void 0===e?void 0:e.getClientRect())&&void 0!==n?n:f.Jy,s=this.viewport.getClientRect(),{direction:a,minHeight:l,offset:c}=this.options,u="center"===this.options.align?"left":this.options.align,h={top:o.bottom-s.top,left:o.left-c-s.left,right:s.right-o.right-c,bottom:s.bottom-o.top},d={top:o.bottom-i+this.tuiDropdownSidedOffset+1,left:o.left-r-c,right:o.right+c,bottom:o.top-this.tuiDropdownSidedOffset-1},p=h.top>h.bottom?"top":"bottom",g=h[u]>r?d[u]:h.left>h.right?d.left:d.right;return h[this.previous]>l&&a||this.previous===p?[d[this.previous],g]:(this.previous=p,[d[p],g])}}return t.ɵfac=function(e){return new(e||t)(i.Y36(J),i.Y36(C.EO),i.Y36(nt))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[i._Bn([nt,(0,_.P7)(t)]),i.qOj]}),t})(),rt=(()=>{class t extends _.kk{constructor(t,e,n,i,r,o){super((t=>this.stream$.subscribe(t))),this.range=t,this.doc=e,this.selection$=n,this.el=i,this.vcr=r,this.dropdown=o,this.handler$=new R.X(f.Ye),this.stream$=(0,B.aj)([this.handler$,this.selection$.pipe((0,E.U)((()=>this.getRange())),(0,T.x)())]).pipe((0,E.U)((([t,e])=>{const n=this.el.nativeElement.contains(e.commonAncestorContainer);return this.range=n&&(0,g.wq)(e.commonAncestorContainer)?e:this.range,n&&t(this.range)||this.inDropdown(e)}))),this.position="selection",this.type="dropdown"}set tuiDropdownSelection(t){(0,m.Aj)(t)||this.handler$.next(t)}getClientRect(){switch(this.position){case"tag":{const{commonAncestorContainer:t}=this.range,e=(0,g.ve)(t)?t:t.parentNode;return e&&(0,g.ve)(e)?e.getBoundingClientRect():f.Jy}case"word":return(0,I.DI)(this.range).getBoundingClientRect();default:return this.range.getBoundingClientRect()}}ngOnDestroy(){this.ghost&&this.vcr.element.nativeElement.removeChild(this.ghost)}getRange(){const t=(0,d.ie)(this.doc),e=this.doc.getSelection();return t&&(0,g.qY)(t)&&this.el.nativeElement.contains(t)?this.veryVerySadInputFix(t):(null==e?void 0:e.rangeCount)?e.getRangeAt(0):this.range}boxContains(t){var e;return!!(null===(e=this.dropdown.dropdownBoxRef)||void 0===e?void 0:e.location.nativeElement.contains(t))}inDropdown(t){const{startContainer:e,endContainer:n}=t,{nativeElement:i}=this.el,r=this.boxContains(t.commonAncestorContainer),o=this.boxContains(n)&&i.contains(e),s=this.boxContains(e)&&i.contains(n);return r||o||s}veryVerySadInputFix(t){const{ghost:e=this.initGhost(t)}=this,{top:n,left:i,width:r,height:o}=t.getBoundingClientRect(),{selectionStart:s,selectionEnd:a,value:l}=t,c=this.doc.createRange(),u=this.el.nativeElement.getBoundingClientRect();return e.style.top=(0,h.O)(n-u.top),e.style.left=(0,h.O)(i-u.left),e.style.width=(0,h.O)(r),e.style.height=(0,h.O)(o),e.textContent=f.tU+l+f.f$,c.setStart(e.firstChild,s||0),c.setEnd(e.firstChild,a||0),c}initGhost(t){const e=this.doc.createElement("div"),{font:n,letterSpacing:i,textTransform:r,padding:o}=getComputedStyle(t);return e.style.position="absolute",e.style.pointerEvents="none",e.style.opacity="0",e.style.whiteSpace="pre-wrap",e.style.font=n,e.style.letterSpacing=i,e.style.textTransform=r,e.style.padding=o,this.vcr.element.nativeElement.appendChild(e),this.ghost=e,e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(v.i0),i.Y36(U.K0),i.Y36(C.iS),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(q))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownSelection",""]],inputs:{position:["tuiDropdownSelectionPosition","position"],tuiDropdownSelection:"tuiDropdownSelection"},features:[i._Bn([(0,_.UK)(t),(0,_.Ic)(t)]),i.qOj]}),t})(),ot=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[L.wq,o.A,s.e,j.Jy,a.VE]]}),t})()},90022:(t,e,n)=>{n.d(e,{H3:()=>q,$o:()=>Q,D:()=>Z,xn:()=>W,t6:()=>G,ZY:()=>K,go:()=>et,bZ:()=>H,DM:()=>tt});var i=n(97582),r=n(74788),o=n(76480),s=n(221),a=n(96111),l=n(33770),c=n(64493),u=n(75675),h=n(85648),d=n(63658),p=n(44358),f=n(66749),g=n(57179),m=n(43631),v=n(49941),_=n(75452),y=n(87941),b=n(79456),w=n(89570),C=n(85345);class x{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new O(t,this.durationSelector))}}class O extends C.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=(0,C.ft)(e,new C.IY(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}var k=n(43190),M=n(87874),P=n(46782),S=n(79196),E=n(45435),T=n(68307),A=n(88002),I=n(39761),D=n(87519),L=n(13653),N=n(79765),F=n(66682),z=n(25917),R=n(41291),B=n(26215),j=n(12057),U=n(18269);function $(t,e){if(1&t&&r._UZ(0,"span",1),2&t){const t=e.polymorpheusOutlet;r.Q6J("innerHTML",t,r.oJD)}}const V=new r.OlP("[TUI_HINT_COMPONENT]",{factory:()=>J}),Y={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},q=new r.OlP("[TUI_HINT_OPTIONS]",{factory:()=>Y});let H=(()=>{class t extends o.QJ{constructor(t){super(),this.options=t,this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon}}return t.ɵfac=function(e){return new(e||t)(r.Y36(q,4))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[r._Bn([{provide:q,useExisting:(0,r.Gpc)((()=>t))}]),r.qOj]}),t})(),Z=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.component=e,this.hintService=n,this.options=i,this.activeZone=r,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var t;return null!==(t=this.tuiHintAppearance)&&void 0!==t?t:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(w.Al),r.Y36(y.BN),r.Y36(q),r.Y36(s.e,8))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[r._Bn([(0,m.Ic)(t),(0,m.Fe)(t),{provide:w.Al,deps:[V,r.gxx],useClass:w.Al}]),r.TTD]}),t})(),G=(()=>{class t extends m.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.el=n,this.visible=!1,this.toggle$=new N.xQ,this.stream$=(0,F.T)(this.toggle$.pipe((0,k.w)((t=>(0,z.of)(t).pipe((0,M.g)(t?0:this.hideDelay)))),(0,P.R)(this.hovered$),(0,S.r)()),this.hovered$.pipe((0,k.w)((t=>(0,z.of)(t).pipe((0,M.g)(t?this.showDelay:this.hideDelay)))),(0,P.R)(this.toggle$),(0,S.r)())).pipe((0,E.h)((()=>this.enabled)),(0,T.b)((t=>{this.visible=t}))),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(t=!this.visible){this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(a.gs),r.Y36(q),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[r._Bn([(0,m.UK)(t),a.gs]),r.qOj]}),t})(),X=(()=>{class t extends G{constructor(){super(...arguments),this.currentRect=l.Jy}onMove({clientX:t,clientY:e}){this.currentRect=(0,c.dD)(t,e)}getClientRect(){return this.currentRect}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,e){1&t&&r.NdJ("mousemove.silent",(function(t){return e.onMove(t)}))},features:[r._Bn([(0,m.Ic)(t),(0,m.UK)(t)]),r.qOj]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u){var h;this.animation=i,this.pointer=r,this.accessor=o,this.el=s,this.polymorpheus=a,this.hover=l,this.mode=c,this.visualViewportService=u,this.appearance=this.polymorpheus.$implicit.appearance||(null===(h=this.mode)||void 0===h?void 0:h.mode),e.pipe((0,A.U)((t=>this.visualViewportService.correct(t))),(0,P.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),t.pipe((0,P.R)(n)).subscribe((t=>this.hover.toggle(t)))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(t){this.el.nativeElement.contains(t)||this.hover.el.nativeElement.contains(t)||this.hover.toggle(!1)}update(t,e){const{height:n,width:i}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,o=this.accessor.getClientRect();if(o===l.Jy)return;const s=Math.max(e,4),[a,c]=this.visualViewportService.correct([o.top+o.height/2-t,o.left+o.width/2-s]);r.top=(0,u.O)(t),r.left=(0,u.O)(s),r.setProperty("--top",(0,u.O)((0,h.Ki)(a,.5,n-1))),r.setProperty("--left",(0,u.O)((0,h.Ki)(c,.5,i-1)))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(a.gs),r.Y36(y.KG),r.Y36(d.a3,2),r.Y36(b.Pw),r.Y36(X,8),r.Y36(m.O4),r.Y36(r.SBq),r.Y36(w.yf),r.Y36(G),r.Y36(_.w,8),r.Y36(y.Lp))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(t){return e.onClick(t.target)}),!1,r.evT),2&t&&(r.uIk("data-appearance",e.appearance),r.d8E("@tuiFadeIn",e.animation),r.ekj("_untouchable",e.pointer))},features:[r._Bn([d.a3,y.KG,a.gs,(0,m.ei)("hint"),(0,m.Wk)("hint",Z)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&r.YNc(0,$,1,1,"span",0),2&t&&r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},directives:[w.Li],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-01);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[v.QF]},changeDetection:0}),(0,i.gn)([p.UM],t.prototype,"update",null),t})(),Q=(()=>{class t extends m.kk{constructor(t,e,n){var i;super((t=>this.stream$.subscribe(t))),this.ngZone=t,this.doc=e,this.el=n,this.stream$=(0,f.mL)(this.doc,"keydown",{capture:!0}).pipe((0,k.w)((()=>this.focused?(0,z.of)(!1):(0,F.T)((0,f.mL)(this.doc,"keyup"),(0,f.mL)(this.element,"blur")).pipe((0,A.U)((()=>this.focused))))),(i=t=>t?(0,R.H)(1e3):(0,z.of)(null),t=>t.lift(new x(i))),(0,I.O)(!1),(0,D.x)(),(0,L.T)(1),(0,f.Yr)(this.ngZone)),this.tuiHintDescribe="",this.type="hint"}get focused(){return(0,g.V8)(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe)||this.el.nativeElement}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(j.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[r._Bn([(0,m.UK)(t)]),r.qOj]}),(0,i.gn)([p.UM],t.prototype,"element",null),t})(),W=(()=>{class t extends m.FP{constructor(t,e,n){super(t,e,n),this.type="hint"}}return t.ɵfac=function(e){return new(e||t)(r.Y36(d.a3,2),r.Y36(m.kk),r.Y36(m.c2))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint",""]],features:[r._Bn([d.a3]),r.qOj]}),t})(),K=(()=>{class t extends m.kk{constructor(t){super((t=>this.stream$.subscribe(t))),this.stream$=new B.X(!1),this.tuiHintManual=!1,this.type="hint",t.enabled=!1}ngOnChanges(){this.stream$.next(this.tuiHintManual)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(G))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","","tuiHintManual",""]],inputs:{tuiHintManual:"tuiHintManual"},features:[r._Bn([(0,m.UK)(t)]),r.qOj,r.TTD]}),t})(),tt=(()=>{class t extends m.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.directive=n,this.accessors=i,this.points=U.Fw.reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:[0,0]})),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:t,height:e}){var n,i;const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:l.Jy,o=r.left+r.width/2,s=r.top+r.height/2;if(this.points["top-left"][0]=r.top-e-8,this.points["top-left"][1]=o-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=o-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=o-22,this.points["bottom-left"][0]=r.bottom+8,this.points["bottom-left"][1]=this.points["top-left"][1],this.points.bottom[0]=this.points["bottom-left"][0],this.points.bottom[1]=this.points.top[1],this.points["bottom-right"][0]=this.points["bottom-left"][0],this.points["bottom-right"][1]=this.points["top-right"][1],this.points["left-top"][0]=s-e+22,this.points["left-top"][1]=r.left-t-8,this.points.left[0]=s-e/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=s-22,this.points["left-bottom"][1]=this.points["left-top"][1],this.points["right-top"][0]=this.points["left-top"][0],this.points["right-top"][1]=r.right+8,this.points.right[0]=this.points.left[0],this.points.right[1]=this.points["right-top"][1],this.points["right-bottom"][0]=this.points["left-bottom"][0],this.points["right-bottom"][1]=this.points["right-top"][1],this.checkPosition(this.points[this.direction],t,e))return this.points[this.direction];const a=U.Fw.find((n=>this.checkPosition(this.points[n],t,e)));return this.points[a||this.fallback]}get accessor(){return(0,m.Sv)("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[0]>this.viewport.getClientRect().bottom-this.points.bottom[0]?"top":"bottom"}checkPosition([t,e],n,i){const r=this.viewport.getClientRect();return t>8&&e>8&&t+i{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[j.ez,w.wq]]}),t})()},9013:(t,e,n)=>{n.d(e,{j:()=>s,c:()=>a});var i=n(74788),r=n(24751),o=n(79456);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[i._Bn([{provide:r.JU,deps:[[new i.FiY,o.sE],r.Fj],multi:!0,useFactory:(t,e)=>t?t[0]:e}])]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},75452:(t,e,n)=>{n.d(e,{w:()=>o,z:()=>s});var i=n(74788),r=n(76480);let o=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.mode=null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[i.qOj]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},79588:(t,e,n)=>{n.d(e,{Y0:()=>R,Ym:()=>m,z1:()=>F,kI:()=>I,Cs:()=>z,be:()=>v,cn:()=>L,AW:()=>x,aR:()=>k,xT:()=>P,Tq:()=>E,sz:()=>D});var i=n(74788),r=n(76480),o=n(63658),s=n(66749),a=n(79456),l=n(29856),c=n(98640);const u=new l.y(c.Z);var h=n(66682),d=n(46782);class p{constructor(t,e,n,i,r,o,s,a,l,c,u,h,d){this.change$=t,this.options=e,this.legacyAppearance=n,this.appearanceDirective=i,this.cleanerDirective=r,this.customContentDirective=o,this.iconDirective=s,this.iconLeftDirective=a,this.labelOutsideDirective=l,this.sizeDirective=c,this.prefixDirective=u,this.postfixDirective=h,this.fillerDirective=d}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconLeft(){return this.iconLeftDirective.iconLeft}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}}const f=new i.OlP("[TUI_TEXTFIELD_APPEARANCE_DIRECTIVE]",{factory:()=>new g});let g=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.appearance=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[i._Bn([{provide:f,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const m=new i.OlP("[TUI_TEXTFIELD_CLEANER]",{factory:()=>new v});let v=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.cleaner=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[i._Bn([{provide:m,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const _=new i.OlP("[TUI_TEXTFIELD_CUSTOM_CONTENT]",{factory:()=>new y});let y=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[i._Bn([{provide:_,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const b=new i.OlP("[TUI_TEXTFIELD_FILLER]",{factory:()=>new w});let w=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.filler=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[i._Bn([{provide:b,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const C=new i.OlP("[TUI_TEXTFIELD_ICON]",{factory:function(){return new x}});let x=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[i._Bn([{provide:C,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const O=new i.OlP("[TUI_TEXTFIELD_ICON_LEFT]",{factory:function(){return new k}});let k=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[i._Bn([{provide:O,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const M=new i.OlP("[TUI_TEXTFIELD_LABEL_OUTSIDE]",{factory:()=>new P});let P=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.labelOutside=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[i._Bn([{provide:M,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const S=new i.OlP("[TUI_TEXTFIELD_POSTFIX]",{factory:()=>new E});let E=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.postfix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[i._Bn([{provide:S,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const T=new i.OlP("[TUI_TEXTFIELD_PREFIX]",{factory:()=>new A});let A=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.prefix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[i._Bn([{provide:T,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})();const I=new i.OlP("[TUI_TEXTFIELD_SIZE]",{factory:()=>new D});let D=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.size="l"}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[i._Bn([{provide:I,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})(),L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const N={iconCleaner:"tuiIconClose",hintOnDisabled:!1},F=new i.OlP("[TUI_TEXTFIELD_OPTIONS]",{factory:()=>N}),z=new i.OlP("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),R=[o.a3,{provide:z,deps:[i.sBO,o.a3,F,a.jt,f,m,_,C,O,M,I,T,S,b],useFactory:(t,e,n,i,...r)=>{const o=(0,h.T)(...r.map((({change$:t})=>t||u))).pipe((0,s.NA)(t),(0,d.R)(e));return o.subscribe(),new p(o,n,i,...r)}}]},91489:(t,e,n)=>{n.d(e,{o:()=>a,W:()=>l});var i=n(74788),r=n(77320),o=n(12130),s=n(79456);let a=(()=>{class t{constructor(t){this.mode$=t,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?r.z3.Disabled:this.readOnly?r.z3.Readonly:this.active?r.z3.Active:this.hover?r.z3.Hover:null}get noHover(){return this.readOnly||!1===this.hover}get noActive(){return this.readOnly||!1===this.active}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.Au))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-appearance",e.appearance)("data-state",e.interactiveState),i.ekj("_invalid",e.computedInvalid)("_focused",e.computedFocused)("_no-hover",e.noHover)("_no-active",e.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[i._Bn([o.CV])]}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},77320:(t,e,n)=>{n.d(e,{Nm:()=>i,z3:()=>r,tK:()=>o});var i=(()=>(function(t){t.Icon="icon",t.Primary="primary",t.Accent="accent",t.Secondary="secondary",t.SecondaryDestructive="secondary-destructive",t.Table="table",t.Textfield="textfield",t.Flat="flat",t.Outline="outline",t.Whiteblock="whiteblock",t.WhiteblockActive="whiteblock-active"}(i||(i={})),i))(),r=(()=>(function(t){t.Disabled="disabled",t.Readonly="readonly",t.Active="active",t.Hover="hover"}(r||(r={})),r))(),o=(()=>(function(t){t.Info="info",t.Warning="warning",t.Success="success",t.Error="error"}(o||(o={})),o))()},12130:(t,e,n)=>{n.d(e,{CV:()=>u,yI:()=>c});var i=n(74788),r=n(79456),o=n(75452),s=n(25917),a=n(39761),l=n(88002);const c={provide:r.rL,deps:[[new i.tp0,r.rL],i.SBq],useFactory:(t,{nativeElement:e})=>(e["$.class._mobile"]=t,t)},u={provide:r.Au,deps:[[new i.FiY,o.w],i.SBq],useFactory:(t,{nativeElement:e})=>{const n=t?t.change$.pipe((0,a.O)(null),(0,l.U)((()=>t.mode))):(0,s.of)(null);return e["$.data-mode.attr"]=n,n}}},87941:(t,e,n)=>{n.d(e,{BN:()=>w,KG:()=>C,Ok:()=>x,K5:()=>O,Lp:()=>k});var i=n(74788),r=n(62579),o=n(79456),s=n(26215),a=n(29856),l=n(66682),c=n(41291),u=n(59193),h=n(88002),d=n(87519),p=n(46782),f=n(66749),g=n(63658),m=(n(18939),n(99434)),v=n(43631),_=n(34016),y=n(91211),b=n(47766);let w=(()=>{class t extends s.X{constructor(){super([])}add(t){this.next(this.value.concat(t))}remove(t){this.value.includes(t)&&this.next(this.value.filter((e=>e!==t)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),C=(()=>{class t extends a.y{constructor(t,e,n,i){super((r=>e.pipe((0,h.U)((()=>t.nativeElement.getBoundingClientRect())),(0,h.U)((t=>i.getPosition(t))),(0,f.fL)(n)).subscribe(r)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(r.L1),i.LFG(i.R0b),i.LFG(v.uG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),x=(()=>{class t extends a.y{constructor(t,e,n,i){const r=t?(0,l.T)((0,c.H)(0),n).pipe((0,h.U)((()=>t.isActive)),(0,d.x)(),(0,f.Yr)(e),(0,p.R)(i)):u.E;super((t=>r.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_.Od,8),i.LFG(i.R0b),i.LFG(r.L1),i.LFG(g.a3,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),O=(()=>{class t{constructor(t,e,n){this.tuiSanitizer=t,this.sanitizer=e,this.originals={},this.items$=new s.X(new Map),this.define(n)}define(t){const{value:e}=this.items$;Object.keys(t).forEach((n=>{this.defineIcon(n,t[n],e)})),this.items$.next(e)}getOriginal(t){return this.originals[t]||null}defineIcon(t,e,n){if(n.has(t))return;const i=this.parseSrc(t,e);i&&(n.set(t,i),this.originals=Object.assign(Object.assign({},this.originals),{[t]:e}))}parseSrc(t,e){return this.sanitize((0,b.NK)(e,t))}sanitize(t){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,t):this.sanitizer.sanitize(i.q3G.HTML,t))||"")}}return t.ɵfac=function(e){return new(e||t)(i.LFG(o.hm,8),i.LFG(y.H7),i.LFG(o.It))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e){this.win=t,this.isWebkit=e}correct(t){var e,n,i,r;return this.isWebkit?[t[0]+(null!==(n=null===(e=this.win.visualViewport)||void 0===e?void 0:e.offsetTop)&&void 0!==n?n:0),t[1]+(null!==(r=null===(i=this.win.visualViewport)||void 0===i?void 0:i.offsetLeft)&&void 0!==r?r:0)]:t}}return t.ɵfac=function(e){return new(e||t)(i.LFG(r.m9),i.LFG(m.jF))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},79456:(t,e,n)=>{n.d(e,{Gc:()=>C,dx:()=>x,Pw:()=>O,U0:()=>I,N1:()=>P,PL:()=>L,xp:()=>F,zP:()=>E,It:()=>R,ki:()=>B,AA:()=>z,rL:()=>U,sf:()=>$,Au:()=>V,$R:()=>A,PH:()=>D,Ln:()=>q,HO:()=>H,IQ:()=>Z,hm:()=>J,$_:()=>Q,iS:()=>W,u_:()=>K,V5:()=>tt,jt:()=>et,S0:()=>nt,r2:()=>rt,sE:()=>ot,EO:()=>st,RB:()=>M,oE:()=>S,P7:()=>G,cp:()=>it,ck:()=>at});var i=n(74788),r=n(36424),o=n(66749),s=n(68192),a=n(47232),l=n(47766),c=n(66640),u=n(62579),h=n(9945),d=n(39761),p=n(88002),f=n(87519),g=n(43190),m=n(46782),v=n(77320),_=n(18269),y=n(12057),b=n(66682),w=n(54487);const C=300,x=new i.OlP("[TUI_ANIMATIONS_DURATION]",{factory:()=>C}),O=new i.OlP("[TUI_ANIMATION_OPTIONS]",{factory:()=>({value:"",params:{duration:(0,i.f3M)(x)}})}),k=(new i.OlP("[TUI_ASSERT_ENABLED]",{factory:()=>(0,i.X6Q)()}),new i.OlP("[TUI_DATA_LIST_ACCESSOR]"));function M(t){return{provide:k,useExisting:t}}const P=new i.OlP("[TUI_DATA_LIST_HOST]");function S(t){return{provide:P,useExisting:t}}new i.OlP("[TUI_DAY_TYPE_HANDLER]",{factory:()=>t=>t.isWeekend?"weekend":"weekday"}),new i.OlP("[TUI_DOCUMENT_OR_SHADOW_ROOT]");const E=new i.OlP("[TUI_ELEMENT_REF]"),T=new i.OlP("[TUI_FIRST_DAY_OF_WEEK]",{factory:()=>r.L.Monday}),A=new i.OlP("[TUI_MONTHS]",{factory:(0,a.v)("months")}),I=new i.OlP("[TUI_CLOSE_WORD]",{factory:(0,a.v)("close")}),D=new i.OlP("[TUI_NOTHING_FOUND_MESSAGE]",{factory:(0,a.v)("nothingFoundMessage")}),L=new i.OlP("[TUI_DEFAULT_ERROR_MESSAGE]",{factory:(0,a.v)("defaultErrorMessage")}),N=(new i.OlP("[TUI_SPIN_TEXTS]",{factory:(0,a.v)("spinTexts")}),new i.OlP("[TUI_SHORT_WEEK_DAYS]",{factory:(0,a.v)("shortWeekDays")})),F="assets/taiga-ui/icons",z=new i.OlP("[TUI_ICONS_PLACE]",{factory:()=>F}),R=new i.OlP("[TUI_ICONS]",{factory:()=>({})}),B=new i.OlP("[TUI_ICONS_PATH]",{factory:()=>(0,c.ht)((0,i.f3M)(z))}),j=new i.OlP("[TUI_MEDIA]",{factory:()=>({mobile:768,desktopSmall:1024,desktopLarge:1280})}),U=new i.OlP("[TUI_IS_MOBILE_RES]",{factory:()=>{const t=(0,i.f3M)(u.m9),e=(0,i.f3M)(j);return(0,o.mL)(t,"resize").pipe((0,h.B)(),(0,d.O)(null),(0,p.U)((()=>function(t,{mobile:e}){return(0,l.ic)(t)Y}),H=new i.OlP("[TUI_NUMBER_FORMAT]",{factory:()=>_.Jl}),Z=new i.OlP("[TUI_OPTION_CONTENT]");function G(t){return{provide:Z,useValue:t}}const X=t=>{const e=t.length-1;return[t[e],...t.slice(0,e)]},J=(new i.OlP("[TUI_ORDERED_SHORT_WEEK_DAYS]",{factory:()=>{const t=(0,i.f3M)(T);return(0,i.f3M)(N).pipe((0,p.U)(X),(0,p.U)((e=>[...e.slice(t),...e.slice(0,t)])))}}),new i.OlP("[TUI_SANITIZER]")),Q=new i.OlP("[TUI_SCROLL_REF]",{factory:()=>new i.SBq((0,i.f3M)(y.K0).documentElement)}),W=new i.OlP("[TUI_SELECTION_STREAM]",{factory:()=>{const t=(0,i.f3M)(y.K0);return(0,b.T)((0,o.mL)(t,"selectionchange"),(0,o.mL)(t,"mouseup"),(0,o.mL)(t,"mousedown").pipe((0,g.w)((()=>(0,o.mL)(t,"mousemove").pipe((0,m.R)((0,o.mL)(t,"mouseup")))))),(0,o.mL)(t,"keydown"),(0,o.mL)(t,"keyup")).pipe((0,h.B)())}}),K=new i.OlP("[TUI_SVG_CONTENT_PROCESSOR]",{factory:()=>s.N}),tt=new i.OlP("[TUI_SVG_SRC_PROCESSOR]",{factory:()=>w.y}),et=new i.OlP("[TUI_TEXTFIELD_APPEARANCE]",{factory:()=>v.Nm.Textfield}),nt=new i.OlP("[TUI_TEXTFIELD_HOST]");function it(t){return{provide:nt,useExisting:t}}const rt=new i.OlP("[TUI_THEME]",{factory:()=>"Taiga"}),ot=new i.OlP("[TUI_VALUE_ACCESSOR]"),st=new i.OlP("[TUI_VIEWPORT]",{factory:()=>{const t=(0,i.f3M)(u.m9);return{type:"viewport",getClientRect:()=>({top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight})}}});function at(t){return{provide:st,useExisting:t}}},47766:(t,e,n)=>{n.d(e,{qK:()=>r,ic:()=>o,DI:()=>s,NK:()=>u});var i=n(33770);function r(t){return!(!t||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||r(t.parentElement))}function o({document:t,innerWidth:e}){return Math.max(t.documentElement.clientWidth||0,e||0)}function s(t){const e=t.cloneRange(),{startContainer:n,startOffset:r,endContainer:o,endOffset:s}=e,{ownerDocument:a}=n;if(!a)return e;const l=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,i.Lw);l.currentNode=n;do{const t=l.currentNode,o=t.textContent||"",s=t===n?o.slice(0,Math.max(0,r+1)):o,a=Math.max(s.lastIndexOf(" "),s.lastIndexOf(i.f$),s.lastIndexOf(i.tU))+1;if(e.setStart(t,0),a){e.setStart(t,a);break}}while(l.previousNode());l.currentNode=o;do{const t=l.currentNode,n=t.textContent||"",r=t===o?n.slice(s+1):n,a=[r.indexOf(" "),r.indexOf(i.f$),r.indexOf(i.tU)].reduce(((t,e)=>-1===t||-1===e?Math.max(t,e):Math.min(t,e)),-1);if(e.setEnd(t,n.length),-1!==a){e.setEnd(t,a+n.length-r.length);break}}while(l.nextNode());return e}const a='width="',l='height="',c="")));if(!(null==i?void 0:i.includes(a))||!i.includes(l))return`${n.replace(c,``;const r=i.indexOf(a),o=i.indexOf(l),s=r+a.length,u=o+l.length,h=i.slice(s,i.indexOf('"',s)),d=i.slice(u,i.indexOf('"',u));if(!d||!h||h.includes("%")||d.includes("%")||h.includes("em")||d.includes("em"))return n.replace(c,`${n}`}},12067:(t,e,n)=>{n.d(e,{ag:()=>a,lx:()=>c,Lf:()=>l});var i=n(11927),r=n(85648),o=n(33770),s=n(18269);function a(t){return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function l(t,e){const[,n=""]=function(t){const e=String(t),[n,i]=e.split("e-");let r=e;if(i){const[,e]=n.split("."),o=Number(i)+((null==e?void 0:e.length)||0);r=t.toFixed(o)}return r}(t).split(".");return(0,i.dt)(e)?n.slice(0,Math.max(0,e)):n}function c(t,e={}){const{decimalLimit:n,decimalSeparator:i,thousandSeparator:a,zeroPadding:c,rounding:u}=Object.assign(Object.assign({},s.Jl),e),h=Number.isFinite(n)?(0,r.h0)({value:t,precision:n,method:u}):t,d=String(Math.floor(Math.abs(h)));let p=l(h,n);if(Number.isFinite(n))if(c){const t=Math.max(n-p.length,0);p=`${p}${"0".repeat(t)}`}else p=p.replace(/0*$/,"");const f=d.length%3;let g=(t<0?o.fv:"")+d.charAt(0);for(let t=1;t3&&(g+=a),g+=d.charAt(t);return p?g+i+p:g}},66640:(t,e,n)=>{n.d(e,{_X:()=>s,ht:()=>a,kL:()=>l,jL:()=>c,lp:()=>u,R9:()=>d});var i=n(18269);const r=1.5,o=2.5;function s(t,e=!1,n=!1,i=!1){let s=0;return t&&(s+=r),e&&(s+=r),n&&(s+=r),i&&(s+=o),s}function a(t){const e=t.endsWith("/")?t:`${t}/`;return t=>t.startsWith("tuiIcon")?`${e}${t}.svg${i.uJ}#${t}`:(0,i.oA)(t)}function l(t){return 1===t.length||i.Nq.includes(t)}function c(t){const e=t.trim();return e.startsWith("<")&&e.endsWith(">")}function u(t){return(e,n)=>{const i=e||Object.assign({},n);return Object.keys(t).forEach((e=>{i[e]=t[e]})),i}}const h={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function d(t,e="s"){return h[t]>h[e]}},31081:(t,e,n)=>{n.d(e,{X:()=>i});var i=(()=>(function(t){t.AD="AD",t.AE="AE",t.AF="AF",t.AG="AG",t.AI="AI",t.AL="AL",t.AM="AM",t.AO="AO",t.AR="AR",t.AT="AT",t.AU="AU",t.AW="AW",t.AZ="AZ",t.BA="BA",t.BB="BB",t.BD="BD",t.BE="BE",t.BF="BF",t.BG="BG",t.BH="BH",t.BI="BI",t.BJ="BJ",t.BL="BL",t.BM="BM",t.BN="BN",t.BO="BO",t.BQ="BQ",t.BR="BR",t.BS="BS",t.BT="BT",t.BW="BW",t.BY="BY",t.BZ="BZ",t.CD="CD",t.CF="CF",t.CG="CG",t.CH="CH",t.CI="CI",t.CL="CL",t.CM="CM",t.CN="CN",t.CO="CO",t.CR="CR",t.CU="CU",t.CV="CV",t.CW="CW",t.CY="CY",t.CZ="CZ",t.DE="DE",t.DJ="DJ",t.DK="DK",t.DM="DM",t.DO="DO",t.DZ="DZ",t.EC="EC",t.EE="EE",t.EG="EG",t.ER="ER",t.ES="ES",t.ET="ET",t.FI="FI",t.FJ="FJ",t.FK="FK",t.FM="FM",t.FR="FR",t.GA="GA",t.GB="GB",t.GD="GD",t.GE="GE",t.GF="GF",t.GH="GH",t.GI="GI",t.GL="GL",t.GM="GM",t.GN="GN",t.GP="GP",t.GQ="GQ",t.GR="GR",t.GT="GT",t.GW="GW",t.GY="GY",t.HK="HK",t.HN="HN",t.HR="HR",t.HT="HT",t.HU="HU",t.ID="ID",t.IE="IE",t.IL="IL",t.IN="IN",t.IQ="IQ",t.IR="IR",t.IS="IS",t.IT="IT",t.JM="JM",t.JO="JO",t.JP="JP",t.KE="KE",t.KG="KG",t.KH="KH",t.KM="KM",t.KN="KN",t.KP="KP",t.KR="KR",t.KW="KW",t.KY="KY",t.KZ="KZ",t.LA="LA",t.LB="LB",t.LC="LC",t.LI="LI",t.LK="LK",t.LR="LR",t.LS="LS",t.LT="LT",t.LU="LU",t.LV="LV",t.LY="LY",t.MA="MA",t.MC="MC",t.MD="MD",t.ME="ME",t.MF="MF",t.MG="MG",t.MK="MK",t.ML="ML",t.MM="MM",t.MN="MN",t.MO="MO",t.MQ="MQ",t.MR="MR",t.MS="MS",t.MT="MT",t.MU="MU",t.MV="MV",t.MW="MW",t.MX="MX",t.MY="MY",t.MZ="MZ",t.NA="NA",t.NC="NC",t.NE="NE",t.NG="NG",t.NI="NI",t.NL="NL",t.NO="NO",t.NP="NP",t.NZ="NZ",t.OM="OM",t.PA="PA",t.PE="PE",t.PF="PF",t.PG="PG",t.PH="PH",t.PK="PK",t.PL="PL",t.PT="PT",t.PW="PW",t.PY="PY",t.QA="QA",t.RE="RE",t.RO="RO",t.RS="RS",t.RU="RU",t.RW="RW",t.SA="SA",t.SB="SB",t.SC="SC",t.SD="SD",t.SE="SE",t.SG="SG",t.SH="SH",t.SI="SI",t.SK="SK",t.SL="SL",t.SM="SM",t.SN="SN",t.SO="SO",t.SR="SR",t.ST="ST",t.SV="SV",t.SX="SX",t.SY="SY",t.SZ="SZ",t.TC="TC",t.TD="TD",t.TG="TG",t.TH="TH",t.TJ="TJ",t.TL="TL",t.TM="TM",t.TN="TN",t.TO="TO",t.TR="TR",t.TT="TT",t.TW="TW",t.TZ="TZ",t.UA="UA",t.UG="UG",t.UY="UY",t.UZ="UZ",t.VC="VC",t.VE="VE",t.VG="VG",t.VN="VN",t.VU="VU",t.WS="WS",t.XK="XK",t.YE="YE",t.YT="YT",t.ZA="ZA",t.ZM="ZM",t.ZW="ZW",t.US="US",t.CA="CA"}(i||(i={})),i))()},47232:(t,e,n)=>{n.d(e,{v:()=>p});var i=n(74788),r=n(31081);const o={months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:{[r.X.AD]:"Andorra",[r.X.AE]:"United Arab Emirates",[r.X.AF]:"Afghanistan",[r.X.AG]:"Antigua and Barbuda",[r.X.BL]:"Saint Barthélemy",[r.X.AI]:"Anguilla",[r.X.AL]:"Albania",[r.X.AM]:"Armenia",[r.X.AO]:"Angola",[r.X.AR]:"Argentina",[r.X.AT]:"Austria",[r.X.AU]:"Australia",[r.X.AW]:"Aruba",[r.X.AZ]:"Azerbaijan",[r.X.BA]:"Bosnia and Herzegovina",[r.X.BB]:"Barbados",[r.X.BD]:"Bangladesh",[r.X.BE]:"Belgium",[r.X.BF]:"Burkina Faso",[r.X.BG]:"Bulgaria",[r.X.BH]:"Bahrain",[r.X.BI]:"Burundi",[r.X.BJ]:"Benin",[r.X.GF]:"Guyana",[r.X.BM]:"Bermuda",[r.X.BN]:"Brunei Darussalam",[r.X.BO]:"Bolivia",[r.X.BQ]:"Bonaire, Sint Eustatius and Saba",[r.X.BR]:"Brazil",[r.X.BS]:"Bahamas",[r.X.BT]:"Bhutan",[r.X.BW]:"Botswana",[r.X.BY]:"Belarus",[r.X.BZ]:"Belize",[r.X.CA]:"Canada",[r.X.CD]:"Dem. Rep. Congo (Kinshasa)",[r.X.CF]:"Central African Republic",[r.X.CG]:"Congo (Brazzaville)",[r.X.CH]:"Switzerland",[r.X.CI]:"Ivory Coast",[r.X.CL]:"Chile",[r.X.CM]:"Cameroon",[r.X.CN]:"China",[r.X.CO]:"Colombia",[r.X.CR]:"Costa Rica",[r.X.CU]:"Cuba",[r.X.CV]:"Cape Verde",[r.X.CW]:"Curaçao",[r.X.CY]:"Cyprus",[r.X.CZ]:"Czech Republic",[r.X.DE]:"Germany",[r.X.DJ]:"Djibouti",[r.X.DK]:"Denmark",[r.X.DM]:"Dominica",[r.X.DO]:"Dominican Republic",[r.X.DZ]:"Algeria",[r.X.EC]:"Ecuador",[r.X.EE]:"Estonia",[r.X.EG]:"Egypt",[r.X.ER]:"Eritrea",[r.X.ES]:"Spain",[r.X.ET]:"Ethiopia",[r.X.FI]:"Finland",[r.X.FJ]:"Fiji",[r.X.FK]:"Falkland Islands",[r.X.FM]:"F.S. of Micronesia",[r.X.FR]:"France",[r.X.GA]:"Gabon",[r.X.GB]:"United Kingdom",[r.X.GD]:"Grenada",[r.X.GE]:"Georgia",[r.X.GP]:"Guadeloupe",[r.X.GH]:"Ghana",[r.X.GI]:"Gibraltar",[r.X.GL]:"Greenland",[r.X.GM]:"Gambia",[r.X.GN]:"Guinea",[r.X.MF]:"Saint-Martin",[r.X.GQ]:"Equatorial Guinea",[r.X.GR]:"Greece",[r.X.GT]:"Guatemala",[r.X.GW]:"Guinea-Bissau",[r.X.GY]:"Guyana",[r.X.HK]:"Hong Kong",[r.X.HN]:"Honduras",[r.X.HR]:"Croatia",[r.X.HT]:"Haiti",[r.X.HU]:"Hungary",[r.X.ID]:"Indonesia",[r.X.IE]:"Ireland",[r.X.IL]:"Israel",[r.X.IN]:"India",[r.X.IQ]:"Iraq",[r.X.IR]:"Iran",[r.X.IS]:"Iceland",[r.X.IT]:"Italy",[r.X.JM]:"Jamaica",[r.X.JO]:"Jordan",[r.X.JP]:"Japan",[r.X.KE]:"Kenya",[r.X.KG]:"Kyrgyzstan",[r.X.KH]:"Cambodia",[r.X.KM]:"Comoros",[r.X.KN]:"Saint Kitts and Nevis",[r.X.KP]:"Korean PDR",[r.X.KR]:"Rep. Korea",[r.X.KW]:"Kuwait",[r.X.KY]:"Cayman Islands",[r.X.KZ]:"Kazakhstan",[r.X.LA]:"Laos",[r.X.LB]:"Lebanon",[r.X.LC]:"Saint Lucia",[r.X.LI]:"Liechtenstein",[r.X.LK]:"Sri Lanka",[r.X.LR]:"Liberia",[r.X.LS]:"Lesotho",[r.X.LT]:"Lithuania",[r.X.LU]:"Luxembourg",[r.X.LV]:"Latvia",[r.X.LY]:"Libya",[r.X.MA]:"Morocco",[r.X.MC]:"Monaco",[r.X.MD]:"Moldova",[r.X.ME]:"Montenegro",[r.X.MQ]:"Martinique",[r.X.MG]:"Madagascar",[r.X.MK]:"Rep. of North Macedonia",[r.X.ML]:"Mali",[r.X.MM]:"Burma (Myanmar)",[r.X.MN]:"Mongolia",[r.X.MO]:"Macau",[r.X.RE]:"Réunion",[r.X.MR]:"Mauritania",[r.X.MS]:"Montserrat",[r.X.MT]:"Malta",[r.X.MU]:"Mauritius",[r.X.MV]:"Maldives",[r.X.MW]:"Malawi",[r.X.MX]:"Mexico",[r.X.MY]:"Malaysia",[r.X.MZ]:"Mozambique",[r.X.NA]:"Namibia",[r.X.NC]:"New Caledonia",[r.X.NE]:"Niger",[r.X.NG]:"Nigeria",[r.X.NI]:"Nicaragua",[r.X.NL]:"Netherlands",[r.X.NO]:"Norway",[r.X.NP]:"Nepal",[r.X.NZ]:"New Zealand",[r.X.OM]:"Oman",[r.X.PA]:"Panama",[r.X.PE]:"Peru",[r.X.PF]:"French Polynesia (Tahiti)",[r.X.PG]:"Papua New Guinea",[r.X.PH]:"Philippines",[r.X.PK]:"Pakistan",[r.X.PL]:"Poland",[r.X.PT]:"Portugal",[r.X.PW]:"Palau",[r.X.PY]:"Paraguay",[r.X.QA]:"Qatar",[r.X.YT]:"Mayotte",[r.X.RO]:"Romania",[r.X.RS]:"Serbia",[r.X.RU]:"Russia",[r.X.RW]:"Rwanda",[r.X.SA]:"Saudi Arabia",[r.X.SB]:"Solomon Islands",[r.X.SC]:"Seychelles",[r.X.SD]:"Sudan",[r.X.SE]:"Sweden",[r.X.SG]:"Singapore",[r.X.SH]:"Saint Helena",[r.X.SI]:"Slovenia",[r.X.SK]:"Slovakia",[r.X.SL]:"Sierra Leone",[r.X.SM]:"San Marino",[r.X.SN]:"Senegal",[r.X.SO]:"Somalia",[r.X.SR]:"Suriname",[r.X.ST]:"Sao Tome and Principe",[r.X.SV]:"El Salvador",[r.X.SX]:"Sint Maarten",[r.X.SY]:"Syrian Arab Republic",[r.X.SZ]:"Swaziland",[r.X.TC]:"Turks and Caicos",[r.X.TD]:"Chad",[r.X.TG]:"Togo",[r.X.TH]:"Thailand",[r.X.TJ]:"Tajikistan",[r.X.TL]:"East Timor",[r.X.TM]:"Turkmenistan",[r.X.TN]:"Tunisia",[r.X.TO]:"Tonga",[r.X.TR]:"Turkey",[r.X.TT]:"Trinidad and Tobago",[r.X.TW]:"Taiwan",[r.X.TZ]:"Tanzania",[r.X.UA]:"Ukraine",[r.X.UG]:"Uganda",[r.X.US]:"USA",[r.X.UY]:"Uruguay",[r.X.UZ]:"Uzbekistan",[r.X.VC]:"Saint Vincent and the Grenadines",[r.X.VE]:"Venezuela",[r.X.VG]:"British Virgin Islands",[r.X.VN]:"Vietnam",[r.X.VU]:"Vanuatu",[r.X.WS]:"Samoa",[r.X.XK]:"Kosovo",[r.X.YE]:"Yemen",[r.X.ZA]:"South Africa",[r.X.ZM]:"Zambia",[r.X.ZW]:"Zimbabwe"}},s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},o),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop it here",defaultLabelMultiple:"or drop them here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}}),{showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}}),{cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}});var a=n(25917);const l=new i.OlP("[TUI_DEFAULT_LANGUAGE]",{factory:()=>s}),c=new i.OlP("[TUI_LANGUAGE]",{factory:()=>(0,a.of)((0,i.f3M)(l))});new i.OlP("[TUI_LANGUAGE_LOADER]"),new i.OlP("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var u=n(95639),h=n(43190),d=n(88002);function p(t){return()=>(0,i.f3M)(c).pipe((0,h.w)((t=>(0,u.b)(t)?t:(0,a.of)(t))),(0,d.U)((e=>e[t])))}},4246:(t,e,n)=>{n.d(e,{eC:()=>b,zX:()=>w});var i=n(74788),r=n(75111),o=n(40719),s=n(79588),a=n(79456),l=n(56747),c=n(32498),u=n(33770),h=n(57179),d=n(11927),p=n(12057),f=n(89570);function g(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function m(t,e){if(1&t&&(i.TgZ(0,"button",4,5),i.TgZ(2,"span",6),i.YNc(3,g,2,1,"ng-container",7),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.MAs(1),r=i.oxw(2);i.Q6J("value",t)("disabled",r.disabledItemHandler(t)),i.xp6(3),i.Q6J("polymorpheusOutlet",r.itemContent)("polymorpheusOutletContext",r.getContext(t,n))}}function v(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",2),i.YNc(1,m,4,4,"button",3),i.qZA()),2&t){const t=i.oxw();i.Q6J("emptyContent",t.emptyContent)("size",t.size),i.xp6(1),i.Q6J("ngForOf",t.items)}}function _(t,e){1&t&&i._UZ(0,"tui-loader",8)}let y=(()=>{class t{constructor(t,e){this.itemsHandlers=t,this.defaultSize=e,this.optionsQuery=u.Mm,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=this.defaultSize,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:e}){return{$implicit:t,active:(0,h.V8)(e)}}getOptions(t=!1){return this.optionsQuery.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(d.Pc)}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(r.vK,5),2&t){let t;i.iGM(t=i.CRH())&&(e.optionsQuery=t)}},inputs:{disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"}}),t})(),b=(()=>{class t extends y{constructor(t,e){super(t,(null==e?void 0:e.size)||"m"),this.items=[]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.Ys),i.Y36(s.Cs,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-data-list-wrapper",3,"labels",""]],inputs:{items:"items"},features:[i._Bn([(0,a.RB)(t),s.Y0]),i.qOj],decls:3,vars:2,consts:[[3,"emptyContent","size",4,"ngIf","ngIfElse"],["loading",""],[3,"emptyContent","size"],["tuiElement","","tuiOption","","automation-id","tui-data-list-wrapper__option",3,"value","disabled",4,"ngFor","ngForOf"],["tuiElement","","tuiOption","","automation-id","tui-data-list-wrapper__option",3,"value","disabled"],["elementRef","elementRef"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(t,e){if(1&t&&(i.YNc(0,v,2,3,"tui-data-list",0),i.YNc(1,_,1,0,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.items)("ngIfElse",t)}},directives:[p.O5,r.qi,p.sg,r.vK,c.U,f.Li,o.kM],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0}),t})(),w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[p.ez,f.wq,c.D,r.pc,o.dS]]}),t})()},72764:(t,e,n)=>{n.d(e,{qS:()=>A,g5:()=>I,_H:()=>D});var i=n(97582),r=n(74788),o=n(24751),s=n(72878),a=n(76480),l=n(33770),c=n(85648),u=n(99434),h=n(44358),d=n(52697),p=n(12628),f=n(12067),g=n(79456),m=n(43631),v=n(79588),_=n(89570),y=n(75093),b=n(45642),w=n(12057);function C(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function x(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,C,2,1,"ng-container",7),r.qZA()),2&t){r.oxw();const t=r.MAs(9);r.xp6(1),r.Q6J("polymorpheusOutlet",t)}}function O(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"section",8),r.TgZ(1,"button",9),r.NdJ("mousedown.prevent",(function(){r.CHM(t);const e=r.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()}))("click.prevent",(function(){r.CHM(t);const e=r.oxw();return e.onArrow(e.step)})),r._uU(2," + "),r.qZA(),r.TgZ(3,"button",9),r.NdJ("mousedown.prevent",(function(){r.CHM(t);const e=r.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()}))("click.prevent",(function(){r.CHM(t);const e=r.oxw();return e.onArrow(-e.step)})),r._uU(4," - "),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(),e=r.MAs(1);r.xp6(1),r.Q6J("icon",t.options.icons.up)("appearance",e.appearance)("disabled",!t.canIncrement)("focusable",!1),r.xp6(2),r.Q6J("icon",t.options.icons.down)("appearance",e.appearance)("disabled",!t.canDecrement)("focusable",!1)}}function k(t,e){1&t&&r.GkF(0)}function M(t,e){1&t&&r.Hsn(0,2)}const P=["*",[["input"]],[["tuiContent"]]],S=["*","input","tuiContent"],E={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0,decimal:"not-zero",precision:2},T=new r.OlP("[TUI_INPUT_NUMBER_OPTIONS]",{factory:()=>E});let A=(()=>{class t extends a.F9{constructor(t,e,n,i,r){super(t,e),this.options=n,this.numberFormat=i,this.isIOS=r,this.unfinishedValue="",this.min=this.options.min,this.max=this.options.max,this.decimal=this.options.decimal,this.precision=this.options.precision,this.step=this.options.step,this.prefix="",this.postfix="",this.polymorpheusValueContent=l.Mm}get nativeFocusableElement(){return!this.primitiveTextfield||this.computedDisabled?null:this.primitiveTextfield.nativeFocusableElement}get focused(){return!!this.primitiveTextfield&&this.primitiveTextfield.focused}get isNegativeAllowed(){return this.min<0}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":"never"===this.decimal?"numeric":"decimal"}get calculatedMaxLength(){return 18+("never"!==this.decimal&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0)+this.numberFormat.thousandSeparator.repeat(5).length}get formattedValue(){return null!==this.value?this.getFormattedValue(this.value||0):""}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}get canDecrement(){return this.interactive&&(this.value||0)>this.min}get canIncrement(){return this.interactive&&(this.value||0)this.max||(this.value=e)}onFocused(t){if(this.updateFocused(t),t)return;const e=this.unfinishedValue?(0,s.vZ)(this.unfinishedValue,this.numberFormat.decimalSeparator):this.nativeNumberValue;this.unfinishedValue=null,Number.isNaN(e)?this.clear():(this.value=e,this.nativeValue=this.formattedValue)}getFormattedValue(t){const e=Math.abs(t)%1>0;let n="always"===this.decimal||e&&"never"!==this.decimal?this.precision:0;const i=e?(0,f.Lf)(t,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=i.length),(0,f.lx)(t,Object.assign(Object.assign({},this.numberFormat),{decimalLimit:n})).replace(l.fv,l.em)}get isNativeValueNotFinished(){const t=this.nativeNumberValue;return t<0?t>this.max:t{class t extends m.D1{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.maxLength=this.host.calculatedMaxLength,this.host.nativeFocusableElement.inputMode=this.host.inputMode)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["tui-input-number"]],features:[r._Bn([(0,g.cp)(t)]),r.qOj]}),t})(),D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[w.ez,b.U5,d.KW,v.cn,y.S,_.wq,p.fN]]}),t})()},21673:(t,e,n)=>{n.d(e,{K3:()=>_,wU:()=>y,Qf:()=>b});var i=n(74788),r=n(24751),o=n(221),s=n(76480),a=n(57179),l=n(99434),c=n(23917),u=n(52697),h=n(75111),d=n(79456),p=n(43631),f=n(93213),g=n(12057);const m=["*",[["input"]]],v=["*","input"];let _=(()=>{class t extends s.M${constructor(t,e){super(t,e),this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return(0,a.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get canOpen(){return this.interactive&&!!this.datalist}onValueChange(t){this.value=t,this.open=!0}onActiveZone(t){this.updateFocused(t)}handleOption(t){this.setNativeValue(String(t)),this.focusInput(),this.value=String(t),this.open=!1}getFallbackValue(){return""}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}setNativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,h.gX,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(c.o1,5),i.Gf(u.yc,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first),i.iGM(t=i.CRH())&&(e.textfield=t.first)}},features:[i._Bn([f.E2,(0,l.FT)(t),(0,d.oE)(t),(0,s.wB)(t)],[f.yn]),i.qOj],ngContentSelectors:v,decls:4,vars:11,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input__textfield",1,"t-textfield",3,"pseudoFocus","pseudoHover","invalid","nativeId","readOnly","disabled","focusable","value","valueChange"]],template:function(t,e){1&t&&(i.F$t(m),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.onValueChange(t)})),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.qZA(),i.qZA()),2&t&&(i.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),i.xp6(1),i.Q6J("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("invalid",e.computedInvalid)("nativeId",e.nativeId)("readOnly",e.readOnly)("disabled",e.computedDisabled)("focusable",e.computedFocusable)("value",e.value))},directives:[c.o1,o.e,u.yc,u.B1],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),t})(),y=(()=>{class t extends p.D1{onValueChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["tui-input"]],features:[i._Bn([(0,d.cp)(t)]),i.qOj]}),t})(),b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[g.ez,o.A,u.KW,c.jh]]}),t})()},74337:(t,e,n)=>{n.d(e,{uJ:()=>ht,OI:()=>dt,Jy:()=>pt});var i=n(74788),r=n(23917),o=n(52697),s=n(79588),a=n(91489),l=n(75111),c=n(79456),u=n(43631),h=n(76480),d=n(63658),p=n(56747);let f=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.control=e,this.el=n,this.idService=i,this.itemsHandlers=r,this.disabledItemHandler=null,this.datalist=null}get id(){return this.el.nativeElement.id||this.idService.generate()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.S0),i.Y36(h.M$),i.Y36(i.SBq),i.Y36(d.ll),i.Y36(p.Ys))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(l.gX,7,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("id",e.id)},inputs:{disabledItemHandler:"disabledItemHandler"}}),t})();var g=n(4246),m=n(12057);let v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var _=n(24751),y=n(221),b=n(57179),w=n(99434),C=n(54789),x=n(66640),O=n(89570);function k(t,e){if(1&t&&i._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function M(t,e){1&t&&i.GkF(0)}const P={iconSmall:"tuiIconChevronDown",iconLarge:"tuiIconChevronDownLarge"},S=new i.OlP("[TUI_ARROW_OPTIONS]",{factory:()=>P}),E=new i.OlP("[TUI_ARROW_MODE]",{factory:()=>({interactive:A,disabled:A})});let T=(()=>{class t{constructor(t,e,n){this.dropdown=t,this.textfieldSize=e,this.options=n}get rotated(){return this.dropdown.open}get arrowIcon(){return(0,x.R9)(this.textfieldSize.size)?this.options.iconLarge:this.options.iconSmall}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.o1),i.Y36(s.kI),i.Y36(S))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_rotated",e.rotated)},decls:3,vars:4,consts:[[3,"src",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"src"]],template:function(t,e){1&t&&(i.YNc(0,k,1,1,"tui-svg",0),i.YNc(1,M,1,0,"ng-container",1),i.ALo(2,"async")),2&t&&(i.Q6J("polymorpheusOutlet",e.arrowIcon),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,2,e.dropdown.openChange)))},directives:[O.Li,m.O5,C.PN],pipes:[m.Ov],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})();const A=new O.Al(T);let I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,C.EI,O.wq]]}),t})();var D=n(66749),L=n(33770),N=n(11927),F=n(18269),z=n(41291),R=n(46782);let B=(()=>{class t{constructor(t,e){this.el=t,this.destroy$=e}set tuiScrollIntoView(t){t&&(0,z.H)(0).pipe((0,R.R)(this.destroy$)).subscribe((()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(F.fe,{bubbles:!0,detail:this.el.nativeElement}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(d.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i._Bn([d.a3])]}),t})(),j=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var U=n(79765),$=n(66682),V=n(59193),Y=n(39761),q=n(88002),H=n(87519);function Z(t,e){1&t&&i._UZ(0,"tui-svg",3),2&t&&i.Q6J("tuiScrollIntoView",!0)}function G(t,e){1&t&&i._UZ(0,"span",4)}let X=(()=>{class t{constructor(t,e,n,i,r,o,s){this.context=t,this.host=e,this.el=n,this.option=i,this.dataList=r,this.control=o,this.abstractControl=s,this.changeDetection$=new U.xQ,this.selected$=(0,$.T)(this.changeDetection$,this.control.valueChanges||V.E,(0,D.mL)(this.el.nativeElement,"animationstart")).pipe((0,Y.O)(null),(0,q.U)((()=>this.selected)),(0,H.x)())}get matcher(){return this.host.identityMatcher||L.bg}ngDoCheck(){this.changeDetection$.next()}ngOnInit(){Promise.resolve().then((()=>{(0,N.Pc)(this.option.value)&&this.host.checkOption&&this.host.checkOption(this.option.value)}))}get value(){var t,e;return null!==(e=null===(t=this.abstractControl)||void 0===t?void 0:t.value)&&void 0!==e?e:this.control.value}get selected(){return(0,N.Pc)(this.option.value)&&(0,N.Pc)(this.value)&&this.matcher(this.value,this.option.value)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(O.yf),i.Y36(c.N1),i.Y36(i.SBq),i.Y36(l.vK),i.Y36(l.qi,8),i.Y36(_.a5),i.Y36(h.M$,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","src","tuiIconCheckLarge","class","t-checkmark",3,"tuiScrollIntoView",4,"ngIf","ngIfElse"],["dummy",""],["automation-id","tui-select-option__checkmark","src","tuiIconCheckLarge",1,"t-checkmark",3,"tuiScrollIntoView"],[1,"t-dummy"]],template:function(t,e){if(1&t&&(i.GkF(0,0),i.YNc(1,Z,1,1,"tui-svg",1),i.ALo(2,"async"),i.YNc(3,G,1,0,"ng-template",null,2,i.W1O)),2&t){const t=i.MAs(4);i.Q6J("ngTemplateOutlet",e.context.$implicit),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,3,e.selected$))("ngIfElse",t)}},directives:[m.tP,m.O5,C.PN,B],pipes:[m.Ov],styles:["@keyframes retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin:0 -.375rem 0 auto;border-left:5px solid transparent}.t-dummy[_ngcontent-%COMP%]{width:1.5rem}"],changeDetection:0}),t})();const J=new O.Al(X);let Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,C.EI,j]]}),t})();var W=n(93213);function K(t,e){1&t&&i.Hsn(0,2,["*ngIf","isMobile"])}function tt(t,e){if(1&t&&i.YNc(0,K,1,0,"ng-content",6),2&t){const t=i.oxw();i.Q6J("ngIf",t.isMobile)}}function et(t,e){1&t&&i.GkF(0,7)}function nt(t,e){if(1&t&&i._UZ(0,"div",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}const it=function(t,e){return{$implicit:t,active:e}};function rt(t,e){if(1&t&&(i.TgZ(0,"div",8),i.YNc(1,nt,1,1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",i.WLB(2,it,t.value,t.computedFocused))}}function ot(t,e){1&t&&i.GkF(0)}function st(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,ot,1,0,"ng-container",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.arrow)}}const at=["*",[["input"]],[["select"]]],lt=["*","input","select"],ct={valueContent:""},ut=new i.OlP("[TUI_SELECT_OPTIONS]",{factory:()=>ct});let ht=(()=>{class t extends h.F9{constructor(t,e,n,i,r,o,s){super(t,e),this.textfieldCleaner=n,this.arrowMode=i,this.itemsHandlers=r,this.options=o,this.isMobile=s,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.valueContent=this.options.valueContent}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeFocusableElement(){return this.textfield?this.textfield.nativeFocusableElement:null}get focused(){return(0,b.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile}get computedValue(){return null===this.value?"":this.stringify(this.value)||" "}get computedContent(){return this.valueContent||this.computedValue}onValueChange(t){this.value=t&&t||null}onActiveZone(t){this.updateFocused(t)}onKeyDownDelete(){this.textfieldCleaner.cleaner&&(this.value=null)}handleOption(t){var e;this.focusInput(),this.value=t,null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!1)}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(_.a5,10),i.Y36(i.sBO),i.Y36(s.Ym),i.Y36(E),i.Y36(p.Ys),i.Y36(ut),i.Y36(w.fL))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,f,7),i.Suo(n,l.gX,5,i.Rgc)),2&t){let t;i.iGM(t=i.CRH())&&(e.nativeSelect=t.first),i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(o.yc,5),i.Gf(r.o1,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first)}},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",valueContent:"valueContent"},features:[i._Bn([(0,w.FT)(t),(0,h.wB)(t),(0,c.oE)(t),(0,c.P7)(J)],[W.yn]),i.qOj],ngContentSelectors:lt,decls:10,vars:15,consts:[[1,"t-hosted",3,"canOpen","content","tuiActiveZoneChange"],["automation-id","tui-select__textfield",1,"t-textfield",3,"tuiTextfieldIcon","editable","pseudoFocus","pseudoHover","pseudoActive","invalid","nativeId","readOnly","disabled","focusable","value","valueChange","keydown.delete.prevent","keydown.backspace.prevent"],["select",""],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["ngProjectAs","tuiContent","automation-id","tui-select__value","class","t-value",5,["tuiContent"],4,"ngIf"],["icon",""],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["ngProjectAs","tuiContent","automation-id","tui-select__value",5,["tuiContent"],1,"t-value"],["class","t-primitive-value",3,"textContent",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive-value",3,"textContent"],["tuiWrapper","","appearance","icon",1,"t-icon"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t&&(i.F$t(at),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.onValueChange(t)}))("keydown.delete.prevent",(function(){return e.onKeyDownDelete()}))("keydown.backspace.prevent",(function(){return e.onKeyDownDelete()})),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.YNc(4,tt,1,1,"ng-template",null,2,i.W1O),i.YNc(6,et,1,0,"ng-container",3),i.YNc(7,rt,2,5,"div",4),i.qZA(),i.YNc(8,st,2,1,"ng-template",null,5,i.W1O),i.qZA()),2&t){const t=i.MAs(5),n=i.MAs(9);i.Q6J("canOpen",e.interactive&&!e.nativeDropdownMode)("content",e.datalist||""),i.xp6(1),i.Q6J("tuiTextfieldIcon",e.arrow?n:"")("editable",!1)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoActive",e.pseudoActive)("invalid",e.computedInvalid)("nativeId",e.nativeId)("readOnly",e.readOnly)("disabled",e.computedDisabled)("focusable",e.computedFocusable)("value",e.computedValue),i.xp6(5),i.Q6J("ngTemplateOutlet",t),i.xp6(1),i.Q6J("ngIf",null!==e.value)}},directives:[r.o1,y.e,o.yc,o.B1,s.AW,m.tP,m.O5,O.Li,a.o],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}[_nghost-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}._readonly[_nghost-%COMP%] input{cursor:default}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.t-primitive-value[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),dt=(()=>{class t extends u.D1{get readOnly(){return!0}get value(){return this.host.computedValue}get stringify(){return this.host.stringify}onValueChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["tui-select"]],features:[i._Bn([(0,c.cp)(t)]),i.qOj]}),t})(),pt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,O.wq,y.A,o.KW,r.jh,Q,I,a.W,s.cn,g.zX,l.pc,v]]}),t})()},25470:(t,e,n)=>{n.d(e,{ph:()=>T,YM:()=>A});var i=n(74788),r=n(24751),o=n(44541),s=n(13633),a=n(75059),l=n(88491);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var u=n(76480),h=n(57179),d=n(99434),p=n(91489),f=n(40719),g=n(54789),m=n(77320),v=n(75452),_=n(12057),y=n(89570);const b=["focusableElement"];function w(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("size",t.loaderSize)("inheritColor",!0)("showLoader",t.value)}}function C(t,e){if(1&t&&i._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const x=function(t){return{$implicit:t}};function O(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,C,1,1,"tui-svg",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOn)("polymorpheusOutletContext",i.VKq(2,x,t.size))}}function k(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("size",t.loaderSize)("inheritColor",!0)("showLoader",!t.value)}}function M(t,e){if(1&t&&i._UZ(0,"tui-svg",12),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function P(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,M,1,1,"tui-svg",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOff)("polymorpheusOutletContext",i.VKq(2,x,t.size))}}const S={icons:{toggleOff:({$implicit:t})=>"m"===t?"tuiIconToggleOff":"tuiIconToggleOffLarge",toggleOn:({$implicit:t})=>"m"===t?"tuiIconToggleOn":"tuiIconToggleOnLarge"},appearances:{checked:m.Nm.Primary,unchecked:m.Nm.Secondary},singleColor:!1,showIcons:!1,size:"m"},E=new i.OlP("[TUI_TOGGLE_OPTIONS]",{factory:()=>S});let T=(()=>{class t extends u.M${constructor(t,e,n,i){super(t,e),this.modeDirective=n,this.options=i,this.singleColor=this.options.singleColor,this.showIcons=this.options.showIcons,this.showLoader=!1,this.size=this.options.size}get iconOn(){return this.options.icons.toggleOn}get iconOff(){return this.options.icons.toggleOff}get nativeFocusableElement(){return this.focusableElement?this.focusableElement.nativeElement:null}get focused(){return(0,h.V8)(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.value?this.options.appearances.checked:this.options.appearances.unchecked}get sizeM(){return"m"===this.size}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){return this.modeDirective?this.modeDirective.mode:null}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}getFallbackValue(){return!1}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(v.w,8),i.Y36(E))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-toggle"]],viewQuery:function(t,e){if(1&t&&i.Gf(b,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size)("data-mode",e.hostMode),i.ekj("_checked",e.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,d.FT)(t),(0,u.wB)(t)]),i.qOj],decls:9,vars:16,consts:[["tuiWrapper","",3,"appearance","readOnly","disabled","focus","hover","active","invalid"],[1,"t-toggle"],["class","t-loader",3,"size","inheritColor","showLoader",4,"ngIf"],["class","t-icon-wrapper",4,"ngIf"],[1,"t-circle"],["type","checkbox","role","switch","automation-id","tui-toggle__checkbox",1,"t-checkbox",3,"id","disabled","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-loader",3,"size","inheritColor","showLoader"],[1,"t-icon-wrapper"],["automation-id","tui-toggle__check-icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__check-icon",1,"t-icon",3,"src"],["automation-id","tui-toggle__cancel-icon","class","t-icon t-icon_off",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__cancel-icon",1,"t-icon","t-icon_off",3,"src"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,w,1,3,"tui-loader",2),i.YNc(3,O,2,4,"span",3),i._UZ(4,"div",4),i.YNc(5,k,1,3,"tui-loader",2),i.YNc(6,P,2,4,"span",3),i.qZA(),i.TgZ(7,"input",5,6),i.NdJ("tuiCheckedChange",(function(t){return e.value=t}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("appearance",e.appearance)("readOnly",e.readOnly)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("active",e.pseudoActive)("invalid",e.computedInvalid),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(1),i.Q6J("id",e.id)("disabled",e.disabled)("tuiFocusable",e.focusable)("tuiChecked",e.value),i.uIk("aria-checked",e.value))},directives:[p.o,_.O5,o.t,s.t,a.U,l.q,f.kM,y.Li,g.PN],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-size=m][_nghost-%COMP%]{width:2rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:3rem;height:1.5rem}.t-checkbox[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.t-checkbox[_ngcontent-%COMP%]:-webkit-autofill, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.t-toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-size=m][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translate(-1rem)}[data-size=l][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translate(-1.5rem)}._checked[_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{transform:translate(0)}.t-circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%] .t-circle_light[_ngcontent-%COMP%]{opacity:.24}[data-size=m][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-size=l][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}[_nghost-%COMP%]:not(._checked) .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.t-icon-wrapper[_ngcontent-%COMP%]{display:flex}.t-icon[_ngcontent-%COMP%]{opacity:.8}.t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[_.ez,a.F,s.u,c,l.c,o.S,p.W,g.EI,f.dS,y.wq]]}),t})()},75093:(t,e,n)=>{n.d(e,{n:()=>o,S:()=>s});var i=n(74788),r=n(93213);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiValueAccessor",""]],features:[i._Bn([r.E2])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},93213:(t,e,n)=>{n.d(e,{yn:()=>c,E2:()=>u});var i=n(74788),r=n(79456);n(88002);var o=n(98952),s=n(56747),a=(n(25917),n(54487)),l=n(24751);s.RZ;const c=(0,o.fx)({limitWidth:"fixed",align:"right"}),u={provide:r.sE,deps:[[new i.FiY,new i.PiD,l.JU]],useFactory:a.y}},56747:(t,e,n)=>{n.d(e,{UV:()=>u,Ys:()=>p,RZ:()=>f,ue:()=>l,mT:()=>c,WO:()=>g,Z4:()=>m});var i=n(74788),r=n(31081),o=n(47232),s=n(34887),a=n(33770);new i.OlP("[TUI_CALENDAR_DATE_STREAM]"),new i.OlP("[TUI_COUNTRIES_MASKS]",{factory:()=>({[r.X.AD]:"+376###-###",[r.X.AE]:"+971-##-###-####",[r.X.AF]:"+93##-###-####",[r.X.AG]:"+1(268) ###-####",[r.X.AI]:"+1(264) ###-####",[r.X.AL]:"+355(###) ###-###",[r.X.AM]:"+374##-###-###",[r.X.AO]:"+244(###) ###-###",[r.X.AR]:"+54(###) ###-####",[r.X.AT]:"+43(###) ###-####",[r.X.AU]:"+61#-####-####",[r.X.AW]:"+297###-####",[r.X.AZ]:"+994##-###-##-##",[r.X.BA]:"+387 ###-####-##",[r.X.BB]:"+1(246) ###-####",[r.X.BD]:"+880##-###-###",[r.X.BE]:"+32(###) ###-###",[r.X.BF]:"+226##-##-####",[r.X.BG]:"+359(###) ###-###",[r.X.BH]:"+973####-####",[r.X.BI]:"+257##-##-####",[r.X.BJ]:"+229##-##-####",[r.X.BL]:"+590 ## ## ## ## ##",[r.X.BM]:"+1(441) ###-####",[r.X.BN]:"+673###-####",[r.X.BO]:"+591#-###-####",[r.X.BQ]:"+599-###-####",[r.X.BR]:"+55(##) ####-####",[r.X.BS]:"+1(242) ###-####",[r.X.BT]:"+975#-###-###",[r.X.BW]:"+267##-###-###",[r.X.BY]:"+375(##) ###-##-##",[r.X.BZ]:"+501###-####",[r.X.CA]:"+1(###) ###-####",[r.X.CD]:"+243(###) ###-###",[r.X.CF]:"+236-##-##-####",[r.X.CG]:"+242##-###-####",[r.X.CH]:"+41##-###-####",[r.X.CI]:"+225##-##-###-###",[r.X.CL]:"+56#-####-####",[r.X.CM]:"+237#####-####",[r.X.CN]:"+86(###) ####-####",[r.X.CO]:"+57(###) ###-####",[r.X.CR]:"+506####-####",[r.X.CU]:"+53#-###-####",[r.X.CV]:"+238(###) ##-##",[r.X.CW]:"+5999-###-####",[r.X.CY]:"+357##-###-###",[r.X.CZ]:"+420(###) ###-###",[r.X.DE]:"+49(###) ###-###-##",[r.X.DJ]:"+253##-##-##-##",[r.X.DK]:"+45##-##-##-##",[r.X.DM]:"+1(767) ###-####",[r.X.DO]:"+1(###) ###-####",[r.X.DZ]:"+213##-###-####",[r.X.EC]:"+593##-###-####",[r.X.EE]:"+372####-####",[r.X.EG]:"+20(###) ###-####",[r.X.ER]:"+291#-###-###",[r.X.ES]:"+34(###) ###-###",[r.X.ET]:"+251##-###-####",[r.X.FI]:"+358(###) ###-##-##",[r.X.FJ]:"+679##-#####",[r.X.FK]:"+500#####",[r.X.FM]:"+691###-####",[r.X.FR]:"+33 ## ## ## ## ##",[r.X.GA]:"+241##-##-##-##",[r.X.GB]:"+44##-####-####",[r.X.GD]:"+1(473) ###-####",[r.X.GE]:"+995(###) ###-###",[r.X.GF]:"+594 ## ## ## ## ##",[r.X.GH]:"+233(###) ###-###",[r.X.GI]:"+350###-#####",[r.X.GL]:"+299##-##-##",[r.X.GM]:"+220(###) ##-##",[r.X.GN]:"+224##-###-###",[r.X.GP]:"+590 ## ## ## ## ##",[r.X.GQ]:"+240##-###-####",[r.X.GR]:"+30(###) ###-####",[r.X.GT]:"+502#-###-####",[r.X.GW]:"+245#-######",[r.X.GY]:"+592###-####",[r.X.HK]:"+852####-####",[r.X.HN]:"+504####-####",[r.X.HR]:"+385##-###-####",[r.X.HT]:"+509##-##-####",[r.X.HU]:"+36(###) ###-###",[r.X.ID]:"+62(###) ###-##-###",[r.X.IE]:"+353(###) ###-###",[r.X.IL]:"+972##-###-####",[r.X.IN]:"+91(####) ###-###",[r.X.IQ]:"+964(###) ###-####",[r.X.IR]:"+98(###) ###-####",[r.X.IS]:"+354###-####",[r.X.IT]:"+39(###) ####-###",[r.X.JM]:"+1(876) ###-####",[r.X.JO]:"+962#-####-####",[r.X.JP]:"+81-##-####-####",[r.X.KE]:"+254###-######",[r.X.KG]:"+996(###) ###-###",[r.X.KH]:"+855##-###-###",[r.X.KM]:"+269##-#####",[r.X.KN]:"+1(869) ###-####",[r.X.KP]:"+850####-#############",[r.X.KR]:"+82##-###-####",[r.X.KW]:"+965####-####",[r.X.KY]:"+1(345) ###-####",[r.X.KZ]:"+7(###) ###-##-##",[r.X.LA]:"+856##-##-###-###",[r.X.LB]:"+961##-###-###",[r.X.LC]:"+1(758) ###-####",[r.X.LI]:"+423(###) ###-####",[r.X.LK]:"+94##-###-####",[r.X.LR]:"+231##-###-###",[r.X.LS]:"+266#-###-####",[r.X.LT]:"+370(###) ##-###",[r.X.LU]:"+352(###) ###-###",[r.X.LV]:"+371##-###-###",[r.X.LY]:"+218##-###-####",[r.X.MA]:"+212##-####-###",[r.X.MC]:"+377###-###-###",[r.X.MD]:"+373####-####",[r.X.ME]:"+382##-###-###",[r.X.MF]:"+590 ## ## ## ## ##",[r.X.MG]:"+261##-##-#####",[r.X.MK]:"+389##-###-###",[r.X.ML]:"+223##-##-####",[r.X.MM]:"+95##-###-###",[r.X.MN]:"+976##-##-####",[r.X.MO]:"+853####-####",[r.X.MQ]:"+596 ## ## ## ## ##",[r.X.MR]:"+222##-##-####",[r.X.MS]:"+1(664) ###-####",[r.X.MT]:"+356####-####",[r.X.MU]:"+230####-####",[r.X.MV]:"+960###-####",[r.X.MW]:"+265#-####-####",[r.X.MX]:"+52(###) ###-####",[r.X.MY]:"+60(###) ###-###",[r.X.MZ]:"+258##-###-###",[r.X.NA]:"+264##-###-####",[r.X.NC]:"+687 ### ###",[r.X.NE]:"+227##-##-####",[r.X.NG]:"+234(###) ###-####",[r.X.NI]:"+505####-####",[r.X.NL]:"+31##-###-####",[r.X.NO]:"+47(###) ##-###",[r.X.NP]:"+977##-###-###",[r.X.NZ]:"+64(###) ###-####",[r.X.OM]:"+968##-###-###",[r.X.PA]:"+507###-####",[r.X.PE]:"+51(###) ###-###",[r.X.PF]:"+689 ## ## ## ##",[r.X.PG]:"+675(###) ##-###",[r.X.PH]:"+63(###) ###-####",[r.X.PK]:"+92(###) ###-####",[r.X.PL]:"+48(###) ###-###",[r.X.PT]:"+351##-###-####",[r.X.PW]:"+680###-####",[r.X.PY]:"+595(###) ###-###",[r.X.QA]:"+974####-####",[r.X.RE]:"+262 ## ## ## ## ##",[r.X.RO]:"+40##-###-####",[r.X.RS]:"+381##-###-####",[r.X.RU]:"+7### ###-##-##",[r.X.RW]:"+250(###) ###-###",[r.X.SA]:"+966#-####-####",[r.X.SB]:"+677###-####",[r.X.SC]:"+248#-###-###",[r.X.SD]:"+249##-###-####",[r.X.SE]:"+46##-###-####",[r.X.SG]:"+65####-####",[r.X.SH]:"+290####",[r.X.SI]:"+386##-###-###",[r.X.SK]:"+421(###) ###-###",[r.X.SL]:"+232##-######",[r.X.SM]:"+378####-######",[r.X.SN]:"+221##-###-####",[r.X.SO]:"+252##-###-###",[r.X.SR]:"+597###-####",[r.X.ST]:"+239##-#####",[r.X.SV]:"+503##-##-####",[r.X.SX]:"+1(721) ###-####",[r.X.SY]:"+963##-####-###",[r.X.SZ]:"+268##-##-####",[r.X.TC]:"+1(649) ###-####",[r.X.TD]:"+235##-##-##-##",[r.X.TG]:"+228##-###-###",[r.X.TH]:"+66##-###-####",[r.X.TJ]:"+992##-###-####",[r.X.TL]:"+670###-#####",[r.X.TM]:"+993#-###-####",[r.X.TN]:"+216##-###-###",[r.X.TO]:"+676#####",[r.X.TR]:"+90(###) ###-####",[r.X.TT]:"+1(868) ###-####",[r.X.TW]:"+886#-####-####",[r.X.TZ]:"+255##-###-####",[r.X.UA]:"+380(##) ###-##-##",[r.X.UG]:"+256(###) ###-###",[r.X.US]:"+1(###) ###-####",[r.X.UY]:"+598#-###-##-##",[r.X.UZ]:"+998##-###-####",[r.X.VC]:"+1(784) ###-####",[r.X.VE]:"+58(###) ###-####",[r.X.VG]:"+1(284)###-####",[r.X.VN]:"+84(###) ####-###",[r.X.VU]:"+678##-#####",[r.X.WS]:"+685##-####",[r.X.XK]:"+383##-###-###",[r.X.YE]:"+967###-###-###",[r.X.YT]:"+262 ## ## ## ## ##",[r.X.ZA]:"+27##-###-####",[r.X.ZM]:"+260##-###-####",[r.X.ZW]:"+263#-######"})}),new i.OlP("[TUI_DATE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),new i.OlP("[TUI_PROMPT_WORDS]",{factory:(0,o.v)("prompt")}),new i.OlP("[TUI_CANCEL_WORD]",{factory:(0,o.v)("cancel")}),new i.OlP("[TUI_DONE_WORD]",{factory:(0,o.v)("done")});const l=new i.OlP("[TUI_MORE_WORD]",{factory:(0,o.v)("more")}),c=(new i.OlP("[TUI_HIDE_TEXT]",{factory:(0,o.v)("hide")}),new i.OlP("[TUI_SHOW_ALL_TEXT]",{factory:(0,o.v)("showAll")}),new i.OlP("[TUI_OTHER_DATE_TEXT]",{factory:(0,o.v)("otherDate")}),new i.OlP("[TUI_CHOOSE_DAY_OR_RANGE_TEXTS]",{factory:(0,o.v)("mobileCalendarTexts")}),new i.OlP("[TUI_FROM_TO_TEXTS]",{factory:(0,o.v)("range")}),new i.OlP("[TUI_PLUS_MINUS_TEXTS]",{factory:(0,o.v)("countTexts")})),u=(new i.OlP("[TUI_TIME_TEXTS]",{factory:(0,o.v)("time")}),new i.OlP("[TUI_DATE_TEXTS]",{factory:(0,o.v)("dateTexts")}),new i.OlP("[TUI_DIGITAL_INFORMATION_UNITS]",{factory:(0,o.v)("digitalInformationUnits")}),new i.OlP("[TUI_COPY_TEXTS]",{factory:(0,o.v)("copyTexts")})),h=(new i.OlP("[TUI_PASSWORD_TEXTS]",{factory:(0,o.v)("passwordTexts")}),new i.OlP("[TUI_CALENDAR_MONTHS]",{factory:(0,o.v)("shortCalendarMonths")}),new i.OlP("[TUI_FILE_TEXTS]",{factory:(0,o.v)("fileTexts")}),new i.OlP("[TUI_PAGINATION_TEXTS]",{factory:(0,o.v)("pagination")}),new i.OlP("[TUI_INPUT_FILE_TEXTS]",{factory:(0,o.v)("inputFileTexts")}),new i.OlP("[TUI_MULTI_SELECT_TEXTS]",{factory:(0,o.v)("multiSelectTexts")}),new i.OlP("[TUI_COUNTRIES]",{factory:(0,o.v)("countries")}),{icon:({$implicit:t})=>"s"===t?"tuiIconCalendar":"tuiIconCalendarLarge",min:s.K1,max:s.Oy,nativePicker:!1}),d=(new i.OlP("[TUI_INPUT_DATE_OPTIONS]",{factory:()=>h}),{stringify:a.yZ,identityMatcher:a.bg,disabledItemHandler:a.Iy}),p=new i.OlP("[TUI_ITEMS_HANDLERS]",{factory:()=>d}),f=(new i.OlP("[TUI_MOBILE_CALENDAR]"),new i.OlP("[TUI_MONTH_FORMATTER]")),g=new i.OlP("[TUI_TAB_MARGIN]",{factory:()=>24}),m=new i.OlP("[TUI_VALIDATION_ERRORS]",{factory:()=>({})})},30126:(t,e,n)=>{n.d(e,{X1:()=>_,Gt:()=>v,uX:()=>m});var i=n(91211),r=n(74788),o=n(59193),s=n(22416),a=n(41439),l=n(70409);class c{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter((t=>!this.modifier.includes(t))).join(".")}}let u=(()=>{class t extends c{constructor(){super(...arguments),this.modifier="$"}addEventListener(t,e){t[e]=t[e]||o.E;const n=this.getMethod(t,e),i=this.manager.getZone().onStable,r=(0,s.z)(i.pipe((0,l.o)((()=>t[e]===o.E))),(0,a.P)((()=>t[e]))).subscribe(n);return()=>r.unsubscribe()}getMethod(t,e){const[,n,i,r=""]=e.split(".");return e.endsWith(".attr")?e=>null===e?t.removeAttribute(n):t.setAttribute(n,String(e)):"class"===n?e=>t.classList.toggle(i,!!e):"style"===n?e=>t.style.setProperty(i.replace(/[a-z][A-Z]/g,(t=>`${t[0]}-${t[1].toLowerCase()}`)),`${e}${r}`):e=>t[n]=e}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),h=(()=>{class t extends c{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(t){return t.includes(".")&&!this.unwrap(t).includes(".")}addEventListener(t,e,n){return t.addEventListener(this.unwrap(e),n,{once:e.includes(".once"),passive:e.includes(".passive"),capture:e.includes(".capture")}),()=>t.removeEventListener(this.unwrap(e),n)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),d=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.preventDefault(),n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),p=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".self"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.target===t.currentTarget&&n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),f=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,n,i){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular((()=>this.manager.addEventListener(e,this.unwrap(n),i)))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const g=[f,u,h,d,p,(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.stopPropagation(),n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()].map((t=>({provide:i.s3,multi:!0,useClass:t})));function m(t){return(e,n,i)=>{const{value:r}=i;i.value=function(...e){t.apply(this,e)&&(f.ngZone?f.ngZone.run((()=>r.apply(this,e))):r.apply(this,e))}}}function v(t){return t}let _=(()=>{class t{constructor([e]){console.assert(!(e instanceof f)||t.initialized,"EventPluginsModule must come after BrowserModule in imports"),t.initialized=!0}}return t.initialized=!1,t.ɵfac=function(e){return new(e||t)(r.LFG(i.s3))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:g}),t})()},89570:(t,e,n)=>{n.d(e,{yf:()=>r,Al:()=>o,wq:()=>h,Li:()=>l,GL:()=>s});var i=n(74788);const r=new i.OlP("POLYMORPHEUS_CONTEXT");class o{constructor(t,e){this.component=t,this.i=e}createInjector(t,e){return i.zs3.create({parent:this.i||t,providers:[{provide:r,useValue:e}]})}}let s=(()=>{class t{constructor(t,e){this.template=t,this.cdr=e,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),t})();class a{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}}let l=(()=>{class t{constructor(t,e,n){this.vcr=t,this.i=e,this.t=n,this.content=""}get template(){return c(this.content)?this.content.template:this.content instanceof i.Rgc?this.content:this.t}ngOnChanges({content:t}){var e;const n=this.getContext();this.v&&(this.v.context=n),null===(e=this.c)||void 0===e||e.injector.get(i.sBO).markForCheck(),t&&(this.vcr.clear(),u(this.content)?this.process(this.content):null!=(n instanceof a&&n.$implicit)&&(this.v=this.vcr.createEmbeddedView(this.template,n)))}ngDoCheck(){c(this.content)&&this.content.check()}static ngTemplateContextGuard(t,e){return!0}getContext(){return c(t=this.content)||t instanceof i.Rgc||u(this.content)?this.context:new a("function"==typeof this.content?this.content(this.context):this.content);var t}process(t){const e=t.createInjector(this.i,this.context&&new Proxy(this.context,{get:(t,e)=>{var n;return null===(n=this.context)||void 0===n?void 0:n[e]}}));this.c=this.vcr.createComponent(e.get(i._Vd).resolveComponentFactory(t.component),0,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.zs3),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[i.TTD]}),t})();function c(t){return t instanceof s}function u(t){return t instanceof o}let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},23358:function(t){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,i,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return i&&e(o,i.prototype),o},n.apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;r/gm),q=h(/\${[\w\W]*}/gm),H=h(/^data-[\-\w.\u00B7-\uFFFF]/),Z=h(/^aria-[\-\w]+$/),G=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=h(/^(?:\w+script|data):/i),J=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=h(/^html$/i),W=function(){return"undefined"==typeof window?null:window};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W(),r=function(t){return e(t)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,h=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,m=n.DOMParser,S=n.trustedTypes,K=h.prototype,tt=A(K,"cloneNode"),et=A(K,"nextSibling"),nt=A(K,"childNodes"),it=A(K,"parentNode");if("function"==typeof l){var rt=s.createElement("template");rt.content&&rt.content.ownerDocument&&(s=rt.content.ownerDocument)}var ot=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(S,o),st=ot?ot.createHTML(""):"",at=s,lt=at.implementation,ct=at.createNodeIterator,ut=at.createDocumentFragment,ht=at.getElementsByTagName,dt=o.importNode,pt={};try{pt=T(s).documentMode?s.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof it&<&&void 0!==lt.createHTMLDocument&&9!==pt;var gt,mt,vt=V,_t=Y,yt=q,bt=H,wt=Z,Ct=X,xt=J,Ot=G,kt=null,Mt=E({},[].concat(i(I),i(D),i(L),i(F),i(R))),Pt=null,St=E({},[].concat(i(B),i(j),i(U),i($))),Et=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,At=null,It=!0,Dt=!0,Lt=!1,Nt=!0,Ft=!1,zt=!1,Rt=!1,Bt=!1,jt=!1,Ut=!1,$t=!1,Vt=!0,Yt=!1,qt=!0,Ht=!1,Zt={},Gt=null,Xt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Jt=null,Qt=E({},["audio","video","img","source","image","track"]),Wt=null,Kt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",ie=ne,re=!1,oe=null,se=E({},[te,ee,ne],w),ae=["application/xhtml+xml","text/html"],le=null,ce=s.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},he=function(e){le&&le===e||(e&&"object"===t(e)||(e={}),e=T(e),gt=gt=-1===ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===gt?w:b,kt="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,mt):Mt,Pt="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,mt):St,oe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,w):se,Wt="ADD_URI_SAFE_ATTR"in e?E(T(Kt),e.ADD_URI_SAFE_ATTR,mt):Kt,Jt="ADD_DATA_URI_TAGS"in e?E(T(Qt),e.ADD_DATA_URI_TAGS,mt):Qt,Gt="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,mt):Xt,Tt="FORBID_TAGS"in e?E({},e.FORBID_TAGS,mt):{},At="FORBID_ATTR"in e?E({},e.FORBID_ATTR,mt):{},Zt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Lt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ft=e.SAFE_FOR_TEMPLATES||!1,zt=e.WHOLE_DOCUMENT||!1,jt=e.RETURN_DOM||!1,Ut=e.RETURN_DOM_FRAGMENT||!1,$t=e.RETURN_TRUSTED_TYPE||!1,Bt=e.FORCE_BODY||!1,Vt=!1!==e.SANITIZE_DOM,Yt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,Ht=e.IN_PLACE||!1,Ot=e.ALLOWED_URI_REGEXP||Ot,ie=e.NAMESPACE||ne,Et=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ue(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ue(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ft&&(Dt=!1),Ut&&(jt=!0),Zt&&(kt=E({},i(R)),Pt=[],!0===Zt.html&&(E(kt,I),E(Pt,B)),!0===Zt.svg&&(E(kt,D),E(Pt,j),E(Pt,$)),!0===Zt.svgFilters&&(E(kt,L),E(Pt,j),E(Pt,$)),!0===Zt.mathMl&&(E(kt,F),E(Pt,U),E(Pt,$))),e.ADD_TAGS&&(kt===Mt&&(kt=T(kt)),E(kt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Pt===St&&(Pt=T(Pt)),E(Pt,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&E(Wt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Gt===Xt&&(Gt=T(Gt)),E(Gt,e.FORBID_CONTENTS,mt)),qt&&(kt["#text"]=!0),zt&&E(kt,["html","head","body"]),kt.table&&(E(kt,["tbody"]),delete Tt.tbody),u&&u(e),le=e)},de=E({},["mi","mo","mn","ms","mtext"]),pe=E({},["foreignobject","desc","title","annotation-xml"]),fe=E({},["title","style","font","a","script"]),ge=E({},D);E(ge,L),E(ge,N);var me=E({},F);E(me,z);var ve=function(t){y(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},_e=function(t,e){try{y(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){y(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Pt[t])if(jt||Ut)try{ve(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ye=function(t){var e,n;if(Bt)t=""+t;else{var i=C(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===gt&&ie===ne&&(t=''+t+"");var r=ot?ot.createHTML(t):t;if(ie===ne)try{e=(new m).parseFromString(r,gt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=re?st:r}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),ie===ne?ht.call(e,zt?"html":"body")[0]:zt?e.documentElement:o},be=function(t){return ct.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},we=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ce=function(t,e,n){ft[t]&&v(ft[t],(function(t){t.call(r,e,n,le)}))},xe=function(t){var e,n;if(Ce("beforeSanitizeElements",t,null),(n=t)instanceof g&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return ve(t),!0;if(M(/[\u0080-\uFFFF]/,t.nodeName))return ve(t),!0;var i=mt(t.nodeName);if(Ce("uponSanitizeElement",t,{tagName:i,allowedTags:kt}),t.hasChildNodes()&&!we(t.firstElementChild)&&(!we(t.content)||!we(t.content.firstElementChild))&&M(/<[/\w]/g,t.innerHTML)&&M(/<[/\w]/g,t.textContent))return ve(t),!0;if("select"===i&&M(/